@gitbook/api 0.141.0 → 0.143.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
@@ -1251,7 +1251,7 @@ export interface DocumentBlockColumn {
1251
1251
  object: 'block';
1252
1252
  type: 'column';
1253
1253
  key?: string;
1254
- nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote)[];
1254
+ nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockHint | DocumentBlockContentRef | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockIntegration | DocumentBlockMath | DocumentBlockQuote | DocumentBlockTable)[];
1255
1255
  isVoid?: false;
1256
1256
  data: {
1257
1257
  width?: Length;
@@ -1836,9 +1836,18 @@ export declare enum BillingTrialStatus {
1836
1836
  Ended = "ended",
1837
1837
  Expired = "expired"
1838
1838
  }
1839
- export declare enum OrganizationBlockReason {
1840
- Security = "security"
1839
+ /** Source for an organization block */
1840
+ export declare enum BlockSource {
1841
+ Backoffice = "backoffice",
1842
+ External = "external",
1843
+ Internal = "internal"
1841
1844
  }
1845
+ /**
1846
+ * A short description giving context on the reason for the block.
1847
+ * @minLength 1
1848
+ * @maxLength 255
1849
+ */
1850
+ export type BlockReason = string;
1842
1851
  export interface Organization {
1843
1852
  /** Type of Object, always equals to "organization" */
1844
1853
  object: 'organization';
@@ -1895,7 +1904,10 @@ export interface Organization {
1895
1904
  customHostname?: string;
1896
1905
  /** If the organization is blocked, information about the block will appear here */
1897
1906
  blocked?: {
1898
- reason: OrganizationBlockReason;
1907
+ /** Source for an organization block */
1908
+ source?: BlockSource;
1909
+ /** A short description giving context on the reason for the block. */
1910
+ reason: BlockReason;
1899
1911
  };
1900
1912
  /**
1901
1913
  * Deprecated. Always true. All organizations are on new trials.
@@ -2293,6 +2305,8 @@ export interface ChangeRequestReview {
2293
2305
  requestedBy?: User;
2294
2306
  /** The status of the review. */
2295
2307
  status: ChangeRequestReviewStatus;
2308
+ /** Whether this review has been superseded by a newer review request or submission. */
2309
+ outdated: boolean;
2296
2310
  comment?: Comment;
2297
2311
  createdAt: Timestamp;
2298
2312
  updatedAt: Timestamp;
@@ -2601,6 +2615,7 @@ export declare enum IntegrationScope {
2601
2615
  SpaceMetadataRead = "space:metadata:read",
2602
2616
  SpaceMetadataWrite = "space:metadata:write",
2603
2617
  SpaceGitSync = "space:git:sync",
2618
+ PageFeedbackRead = "page:feedback:read",
2604
2619
  SiteMetadataRead = "site:metadata:read",
2605
2620
  SiteViewsRead = "site:views:read",
2606
2621
  SiteScriptInject = "site:script:inject",
@@ -2999,6 +3014,19 @@ export type SiteInstallationDeletedEvent = SiteEvent & {
2999
3014
  configuration?: object;
3000
3015
  };
3001
3016
  };
3017
+ /** Analytics info on the GitBook's content visitor. */
3018
+ export interface EventVisitor {
3019
+ /** GitBook's unique identifier of the visitor. */
3020
+ anonymousId: string;
3021
+ /** The visitors cookies. */
3022
+ cookies: Record<string, string>;
3023
+ /** User-agent of the visitor. */
3024
+ userAgent: string;
3025
+ /** IP address of the visitor. */
3026
+ ip: string;
3027
+ /** Language of the visitor. */
3028
+ language?: string;
3029
+ }
3002
3030
  /** Event received when a page has been visited on a site. */
3003
3031
  export type SiteViewEvent = SiteEvent & {
3004
3032
  type: 'site_view';
@@ -3012,18 +3040,7 @@ export type SiteViewEvent = SiteEvent & {
3012
3040
  /** Unique identifier of the visited page. */
3013
3041
  pageId?: string;
3014
3042
  /** Analytics info on the GitBook's content visitor. */
3015
- visitor: {
3016
- /** GitBook's unique identifier of the visitor. */
3017
- anonymousId: string;
3018
- /** The visitors cookies. */
3019
- cookies: Record<string, string>;
3020
- /** User-agent of the visitor. */
3021
- userAgent: string;
3022
- /** IP address of the visitor. */
3023
- ip: string;
3024
- /** Language of the visitor. */
3025
- language?: string;
3026
- };
3043
+ visitor: EventVisitor;
3027
3044
  /** The GitBook content's URL visited (including URL params). */
3028
3045
  url: string;
3029
3046
  /** The URL of referrer that linked to the page. */
@@ -3182,8 +3199,44 @@ export type ContentComputeDocumentEvent = ContentComputeEvent & {
3182
3199
  export type ContentComputeRevisionEvent = ContentComputeEvent & {
3183
3200
  type: 'content_compute_revision';
3184
3201
  };
3202
+ export declare enum PageFeedbackRating {
3203
+ Bad = "bad",
3204
+ Ok = "ok",
3205
+ Good = "good"
3206
+ }
3207
+ /** Event received when feedback has been submitted on a page. */
3208
+ export type PageFeedbackEvent = BaseEvent & {
3209
+ type: 'page_feedback';
3210
+ /** ID of the integration installation */
3211
+ installationId: string;
3212
+ /**
3213
+ * Unique identifier of the space in the site.
3214
+ * @deprecated
3215
+ */
3216
+ spaceId?: string;
3217
+ /** Unique identifier of the site. */
3218
+ siteId: string;
3219
+ /** Unique identifier of the page where feedback was submitted. */
3220
+ pageId?: string;
3221
+ /** The feedback data submitted by the visitor. */
3222
+ feedback: {
3223
+ rating: PageFeedbackRating;
3224
+ /**
3225
+ * Optional comment provided with the feedback.
3226
+ * @minLength 1
3227
+ * @maxLength 512
3228
+ */
3229
+ comment?: string;
3230
+ };
3231
+ /** Analytics info on the GitBook's content visitor. */
3232
+ visitor: EventVisitor;
3233
+ /** The GitBook content's URL where feedback was submitted. */
3234
+ url: string;
3235
+ /** The URL of referrer that linked to the page. */
3236
+ referrer: string;
3237
+ };
3185
3238
  /** Any event that can be received from GitBook. */
3186
- export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3239
+ export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent | PageFeedbackEvent;
3187
3240
  export interface IntegrationEvent {
3188
3241
  /** Unique ID of the event. */
3189
3242
  id: string;
@@ -3926,8 +3979,15 @@ export interface SiteSectionGroup {
3926
3979
  id: string;
3927
3980
  /** Title of the site section group */
3928
3981
  title: SiteSectionGroupTitle;
3929
- /** List of site section ids that are members of the group */
3982
+ /**
3983
+ * List of site section ids that are members of the group. Use `children` instead.
3984
+ * @deprecated
3985
+ */
3930
3986
  sections: SiteSection[];
3987
+ /** ID of the parent section group this group belongs to */
3988
+ sectionGroup?: string;
3989
+ /** List of all child sections and groups nested under this group */
3990
+ children: (SiteSection | SiteSectionGroup)[];
3931
3991
  /** Name of the icon */
3932
3992
  icon?: Icon;
3933
3993
  }
@@ -4747,7 +4807,8 @@ export interface StorageFileMetadata {
4747
4807
  size: number;
4748
4808
  }
4749
4809
  export declare enum StorageUploadKind {
4750
- CustomizationFont = "customization_font"
4810
+ CustomizationFont = "customization_font",
4811
+ ImportFile = "import_file"
4751
4812
  }
4752
4813
  export interface StorageUploadURL {
4753
4814
  /** The kind of file to upload */
@@ -4813,10 +4874,13 @@ export type CustomizationFontDefinition = CustomizationFontDefinitionInput & {
4813
4874
  * @maxLength 512
4814
4875
  */
4815
4876
  export type StorageFileKey = string;
4816
- export interface ContentImportSource {
4877
+ export type ContentImportSource = {
4817
4878
  type: 'website';
4818
4879
  url: URL;
4819
- }
4880
+ } | {
4881
+ type: 'file';
4882
+ files: string[];
4883
+ };
4820
4884
  export interface ChangeRequestPointer {
4821
4885
  type: 'change-request';
4822
4886
  /** Unique identifier for the space */
@@ -5747,11 +5811,6 @@ export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
5747
5811
  pageId: string;
5748
5812
  };
5749
5813
  };
5750
- export declare enum PageFeedbackRating {
5751
- Bad = "bad",
5752
- Ok = "ok",
5753
- Good = "good"
5754
- }
5755
5814
  export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
5756
5815
  type: 'page_post_feedback';
5757
5816
  feedback: {
@@ -6390,6 +6449,8 @@ export interface UserBackOfficeInfo {
6390
6449
  /** The context to send when blocking/unblocking */
6391
6450
  export interface BlockContext {
6392
6451
  block: boolean;
6452
+ /** A short description giving context on the reason for the block. */
6453
+ reason?: BlockReason;
6393
6454
  }
6394
6455
  /** The GitBook User impersonation info. */
6395
6456
  export interface UserImpersonationInfo {
@@ -8265,6 +8326,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8265
8326
  getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
8266
8327
  /** Output format for the content. */
8267
8328
  format?: "document" | "markdown";
8329
+ /** Filter reviews marked as outdated. */
8330
+ outdated?: boolean;
8268
8331
  /** Identifier of the page results to fetch. */
8269
8332
  page?: string;
8270
8333
  /**
@@ -11761,7 +11824,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11761
11824
  */
11762
11825
  visibility?: SiteVisibility;
11763
11826
  /** ID of spaces to be added to the site */
11764
- spaces?: string[] | "sample" | "empty";
11827
+ spaces?: string[];
11765
11828
  }, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
11766
11829
  /**
11767
11830
  * No description
@@ -12239,6 +12302,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12239
12302
  icon?: Icon | null;
12240
12303
  /** IDs of the sections to be added to the section group */
12241
12304
  sections?: string[];
12305
+ /** ID of the parent section group to nest this group under. If not provided, the section group will be added at the root of the site. */
12306
+ parent?: string;
12242
12307
  }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
12243
12308
  /**
12244
12309
  * No description
@@ -12841,6 +12906,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12841
12906
  * @max 1000
12842
12907
  */
12843
12908
  limit?: number;
12909
+ /** Search for a redirect by path */
12910
+ search?: string;
12844
12911
  }, params?: RequestParams) => Promise<HttpResponse<List & {
12845
12912
  items: SiteRedirect[];
12846
12913
  }, any>>;
package/dist/index.cjs CHANGED
@@ -190,6 +190,7 @@ __export(src_exports, {
190
190
  BillingProduct: () => BillingProduct,
191
191
  BillingSwitchAction: () => BillingSwitchAction,
192
192
  BillingTrialStatus: () => BillingTrialStatus,
193
+ BlockSource: () => BlockSource,
193
194
  CardsImageObjectFit: () => CardsImageObjectFit,
194
195
  ChangeRequestReviewStatus: () => ChangeRequestReviewStatus,
195
196
  ChangeRequestStatus: () => ChangeRequestStatus,
@@ -240,7 +241,6 @@ __export(src_exports, {
240
241
  OpenAPISpecProcessingErrorCode: () => OpenAPISpecProcessingErrorCode,
241
242
  OpenAPISpecProcessingState: () => OpenAPISpecProcessingState,
242
243
  OpenAPISpecVisibility: () => OpenAPISpecVisibility,
243
- OrganizationBlockReason: () => OrganizationBlockReason,
244
244
  OrganizationCommunityType: () => OrganizationCommunityType,
245
245
  OrganizationType: () => OrganizationType,
246
246
  OrganizationUseCase: () => OrganizationUseCase,
@@ -282,7 +282,7 @@ module.exports = __toCommonJS(src_exports);
282
282
 
283
283
  // package.json
284
284
  var name = "@gitbook/api";
285
- var version = "0.141.0";
285
+ var version = "0.143.0";
286
286
 
287
287
  // src/client.ts
288
288
  var import_event_iterator = __toESM(require_node(), 1);
@@ -547,10 +547,12 @@ var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
547
547
  BillingTrialStatus2["Expired"] = "expired";
548
548
  return BillingTrialStatus2;
549
549
  })(BillingTrialStatus || {});
550
- var OrganizationBlockReason = /* @__PURE__ */ ((OrganizationBlockReason2) => {
551
- OrganizationBlockReason2["Security"] = "security";
552
- return OrganizationBlockReason2;
553
- })(OrganizationBlockReason || {});
550
+ var BlockSource = /* @__PURE__ */ ((BlockSource2) => {
551
+ BlockSource2["Backoffice"] = "backoffice";
552
+ BlockSource2["External"] = "external";
553
+ BlockSource2["Internal"] = "internal";
554
+ return BlockSource2;
555
+ })(BlockSource || {});
554
556
  var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
555
557
  OpenAPISpecProcessingState2["Pending"] = "pending";
556
558
  OpenAPISpecProcessingState2["Progress"] = "progress";
@@ -616,6 +618,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
616
618
  IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
617
619
  IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
618
620
  IntegrationScope2["SpaceGitSync"] = "space:git:sync";
621
+ IntegrationScope2["PageFeedbackRead"] = "page:feedback:read";
619
622
  IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
620
623
  IntegrationScope2["SiteViewsRead"] = "site:views:read";
621
624
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
@@ -654,6 +657,12 @@ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstalla
654
657
  IntegrationInstallationSiteSelection2["Selected"] = "selected";
655
658
  return IntegrationInstallationSiteSelection2;
656
659
  })(IntegrationInstallationSiteSelection || {});
660
+ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
661
+ PageFeedbackRating2["Bad"] = "bad";
662
+ PageFeedbackRating2["Ok"] = "ok";
663
+ PageFeedbackRating2["Good"] = "good";
664
+ return PageFeedbackRating2;
665
+ })(PageFeedbackRating || {});
657
666
  var SiteType = /* @__PURE__ */ ((SiteType2) => {
658
667
  SiteType2["Basic"] = "basic";
659
668
  SiteType2["Premium"] = "premium";
@@ -783,6 +792,7 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
783
792
  })(TranslationStatus || {});
784
793
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
785
794
  StorageUploadKind2["CustomizationFont"] = "customization_font";
795
+ StorageUploadKind2["ImportFile"] = "import_file";
786
796
  return StorageUploadKind2;
787
797
  })(StorageUploadKind || {});
788
798
  var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
@@ -915,12 +925,6 @@ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2)
915
925
  SiteInsightsDisplayContext2["Embed"] = "embed";
916
926
  return SiteInsightsDisplayContext2;
917
927
  })(SiteInsightsDisplayContext || {});
918
- var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
919
- PageFeedbackRating2["Bad"] = "bad";
920
- PageFeedbackRating2["Ok"] = "ok";
921
- PageFeedbackRating2["Good"] = "good";
922
- return PageFeedbackRating2;
923
- })(PageFeedbackRating || {});
924
928
  var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
925
929
  SiteInsightsLinkPosition2["Announcement"] = "announcement";
926
930
  SiteInsightsLinkPosition2["Header"] = "header";
@@ -3856,6 +3860,7 @@ var GitBookAPI = class extends Api {
3856
3860
  BillingProduct,
3857
3861
  BillingSwitchAction,
3858
3862
  BillingTrialStatus,
3863
+ BlockSource,
3859
3864
  CardsImageObjectFit,
3860
3865
  ChangeRequestReviewStatus,
3861
3866
  ChangeRequestStatus,
@@ -3906,7 +3911,6 @@ var GitBookAPI = class extends Api {
3906
3911
  OpenAPISpecProcessingErrorCode,
3907
3912
  OpenAPISpecProcessingState,
3908
3913
  OpenAPISpecVisibility,
3909
- OrganizationBlockReason,
3910
3914
  OrganizationCommunityType,
3911
3915
  OrganizationType,
3912
3916
  OrganizationUseCase,
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.141.0";
175
+ var version = "0.143.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -437,10 +437,12 @@ var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
437
437
  BillingTrialStatus2["Expired"] = "expired";
438
438
  return BillingTrialStatus2;
439
439
  })(BillingTrialStatus || {});
440
- var OrganizationBlockReason = /* @__PURE__ */ ((OrganizationBlockReason2) => {
441
- OrganizationBlockReason2["Security"] = "security";
442
- return OrganizationBlockReason2;
443
- })(OrganizationBlockReason || {});
440
+ var BlockSource = /* @__PURE__ */ ((BlockSource2) => {
441
+ BlockSource2["Backoffice"] = "backoffice";
442
+ BlockSource2["External"] = "external";
443
+ BlockSource2["Internal"] = "internal";
444
+ return BlockSource2;
445
+ })(BlockSource || {});
444
446
  var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2) => {
445
447
  OpenAPISpecProcessingState2["Pending"] = "pending";
446
448
  OpenAPISpecProcessingState2["Progress"] = "progress";
@@ -506,6 +508,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
506
508
  IntegrationScope2["SpaceMetadataRead"] = "space:metadata:read";
507
509
  IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
508
510
  IntegrationScope2["SpaceGitSync"] = "space:git:sync";
511
+ IntegrationScope2["PageFeedbackRead"] = "page:feedback:read";
509
512
  IntegrationScope2["SiteMetadataRead"] = "site:metadata:read";
510
513
  IntegrationScope2["SiteViewsRead"] = "site:views:read";
511
514
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
@@ -544,6 +547,12 @@ var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstalla
544
547
  IntegrationInstallationSiteSelection2["Selected"] = "selected";
545
548
  return IntegrationInstallationSiteSelection2;
546
549
  })(IntegrationInstallationSiteSelection || {});
550
+ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
551
+ PageFeedbackRating2["Bad"] = "bad";
552
+ PageFeedbackRating2["Ok"] = "ok";
553
+ PageFeedbackRating2["Good"] = "good";
554
+ return PageFeedbackRating2;
555
+ })(PageFeedbackRating || {});
547
556
  var SiteType = /* @__PURE__ */ ((SiteType2) => {
548
557
  SiteType2["Basic"] = "basic";
549
558
  SiteType2["Premium"] = "premium";
@@ -673,6 +682,7 @@ var TranslationStatus = /* @__PURE__ */ ((TranslationStatus2) => {
673
682
  })(TranslationStatus || {});
674
683
  var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
675
684
  StorageUploadKind2["CustomizationFont"] = "customization_font";
685
+ StorageUploadKind2["ImportFile"] = "import_file";
676
686
  return StorageUploadKind2;
677
687
  })(StorageUploadKind || {});
678
688
  var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
@@ -805,12 +815,6 @@ var SiteInsightsDisplayContext = /* @__PURE__ */ ((SiteInsightsDisplayContext2)
805
815
  SiteInsightsDisplayContext2["Embed"] = "embed";
806
816
  return SiteInsightsDisplayContext2;
807
817
  })(SiteInsightsDisplayContext || {});
808
- var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
809
- PageFeedbackRating2["Bad"] = "bad";
810
- PageFeedbackRating2["Ok"] = "ok";
811
- PageFeedbackRating2["Good"] = "good";
812
- return PageFeedbackRating2;
813
- })(PageFeedbackRating || {});
814
818
  var SiteInsightsLinkPosition = /* @__PURE__ */ ((SiteInsightsLinkPosition2) => {
815
819
  SiteInsightsLinkPosition2["Announcement"] = "announcement";
816
820
  SiteInsightsLinkPosition2["Header"] = "header";
@@ -3745,6 +3749,7 @@ export {
3745
3749
  BillingProduct,
3746
3750
  BillingSwitchAction,
3747
3751
  BillingTrialStatus,
3752
+ BlockSource,
3748
3753
  CardsImageObjectFit,
3749
3754
  ChangeRequestReviewStatus,
3750
3755
  ChangeRequestStatus,
@@ -3795,7 +3800,6 @@ export {
3795
3800
  OpenAPISpecProcessingErrorCode,
3796
3801
  OpenAPISpecProcessingState,
3797
3802
  OpenAPISpecVisibility,
3798
- OrganizationBlockReason,
3799
3803
  OrganizationCommunityType,
3800
3804
  OrganizationType,
3801
3805
  OrganizationUseCase,
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.141.0",
7
+ "version": "0.143.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -2694,6 +2694,14 @@
2694
2694
  {
2695
2695
  "$ref": "#/components/parameters/documentFormat"
2696
2696
  },
2697
+ {
2698
+ "in": "query",
2699
+ "name": "outdated",
2700
+ "description": "Filter reviews marked as outdated.",
2701
+ "schema": {
2702
+ "type": "boolean"
2703
+ }
2704
+ },
2697
2705
  {
2698
2706
  "$ref": "#/components/parameters/listPage"
2699
2707
  },
@@ -11983,23 +11991,11 @@
11983
11991
  "$ref": "#/components/schemas/SiteVisibility"
11984
11992
  },
11985
11993
  "spaces": {
11986
- "oneOf": [
11987
- {
11988
- "type": "array",
11989
- "description": "ID of spaces to be added to the site",
11990
- "items": {
11991
- "type": "string"
11992
- }
11993
- },
11994
- {
11995
- "type": "string",
11996
- "description": "Create a new space associated to the site",
11997
- "enum": [
11998
- "sample",
11999
- "empty"
12000
- ]
12001
- }
12002
- ]
11994
+ "type": "array",
11995
+ "description": "ID of spaces to be added to the site",
11996
+ "items": {
11997
+ "type": "string"
11998
+ }
12003
11999
  }
12004
12000
  }
12005
12001
  }
@@ -13364,6 +13360,10 @@
13364
13360
  "type": "string"
13365
13361
  },
13366
13362
  "description": "IDs of the sections to be added to the section group"
13363
+ },
13364
+ "parent": {
13365
+ "type": "string",
13366
+ "description": "ID of the parent section group to nest this group under. If not provided, the section group will be added at the root of the site."
13367
13367
  }
13368
13368
  },
13369
13369
  "required": [
@@ -15558,6 +15558,14 @@
15558
15558
  },
15559
15559
  {
15560
15560
  "$ref": "#/components/parameters/listLimit"
15561
+ },
15562
+ {
15563
+ "name": "search",
15564
+ "in": "query",
15565
+ "description": "Search for a redirect by path",
15566
+ "schema": {
15567
+ "type": "string"
15568
+ }
15561
15569
  }
15562
15570
  ],
15563
15571
  "responses": {
@@ -22188,6 +22196,9 @@
22188
22196
  },
22189
22197
  {
22190
22198
  "$ref": "#/components/schemas/DocumentBlockQuote"
22199
+ },
22200
+ {
22201
+ "$ref": "#/components/schemas/DocumentBlockTable"
22191
22202
  }
22192
22203
  ]
22193
22204
  }
@@ -24177,12 +24188,21 @@
24177
24188
  "expired"
24178
24189
  ]
24179
24190
  },
24180
- "OrganizationBlockReason": {
24191
+ "BlockSource": {
24181
24192
  "type": "string",
24193
+ "description": "Source for an organization block",
24182
24194
  "enum": [
24183
- "security"
24195
+ "backoffice",
24196
+ "external",
24197
+ "internal"
24184
24198
  ]
24185
24199
  },
24200
+ "BlockReason": {
24201
+ "type": "string",
24202
+ "description": "A short description giving context on the reason for the block.",
24203
+ "minLength": 1,
24204
+ "maxLength": 255
24205
+ },
24186
24206
  "Organization": {
24187
24207
  "type": "object",
24188
24208
  "properties": {
@@ -24300,8 +24320,11 @@
24300
24320
  "type": "object",
24301
24321
  "description": "If the organization is blocked, information about the block will appear here",
24302
24322
  "properties": {
24323
+ "source": {
24324
+ "$ref": "#/components/schemas/BlockSource"
24325
+ },
24303
24326
  "reason": {
24304
- "$ref": "#/components/schemas/OrganizationBlockReason"
24327
+ "$ref": "#/components/schemas/BlockReason"
24305
24328
  }
24306
24329
  },
24307
24330
  "required": [
@@ -25379,6 +25402,10 @@
25379
25402
  "description": "The status of the review.",
25380
25403
  "$ref": "#/components/schemas/ChangeRequestReviewStatus"
25381
25404
  },
25405
+ "outdated": {
25406
+ "type": "boolean",
25407
+ "description": "Whether this review has been superseded by a newer review request or submission."
25408
+ },
25382
25409
  "comment": {
25383
25410
  "$ref": "#/components/schemas/Comment"
25384
25411
  },
@@ -25395,6 +25422,7 @@
25395
25422
  "revision",
25396
25423
  "reviewer",
25397
25424
  "status",
25425
+ "outdated",
25398
25426
  "createdAt",
25399
25427
  "updatedAt"
25400
25428
  ]
@@ -26370,6 +26398,7 @@
26370
26398
  "space:metadata:read",
26371
26399
  "space:metadata:write",
26372
26400
  "space:git:sync",
26401
+ "page:feedback:read",
26373
26402
  "site:metadata:read",
26374
26403
  "site:views:read",
26375
26404
  "site:script:inject",
@@ -27426,6 +27455,41 @@
27426
27455
  }
27427
27456
  ]
27428
27457
  },
27458
+ "EventVisitor": {
27459
+ "type": "object",
27460
+ "description": "Analytics info on the GitBook's content visitor.",
27461
+ "properties": {
27462
+ "anonymousId": {
27463
+ "type": "string",
27464
+ "description": "GitBook's unique identifier of the visitor."
27465
+ },
27466
+ "cookies": {
27467
+ "type": "object",
27468
+ "description": "The visitors cookies.",
27469
+ "additionalProperties": {
27470
+ "type": "string"
27471
+ }
27472
+ },
27473
+ "userAgent": {
27474
+ "type": "string",
27475
+ "description": "User-agent of the visitor."
27476
+ },
27477
+ "ip": {
27478
+ "type": "string",
27479
+ "description": "IP address of the visitor."
27480
+ },
27481
+ "language": {
27482
+ "type": "string",
27483
+ "description": "Language of the visitor."
27484
+ }
27485
+ },
27486
+ "required": [
27487
+ "anonymousId",
27488
+ "cookies",
27489
+ "userAgent",
27490
+ "ip"
27491
+ ]
27492
+ },
27429
27493
  "SiteViewEvent": {
27430
27494
  "allOf": [
27431
27495
  {
@@ -27455,39 +27519,7 @@
27455
27519
  "description": "Unique identifier of the visited page."
27456
27520
  },
27457
27521
  "visitor": {
27458
- "type": "object",
27459
- "description": "Analytics info on the GitBook's content visitor.",
27460
- "properties": {
27461
- "anonymousId": {
27462
- "type": "string",
27463
- "description": "GitBook's unique identifier of the visitor."
27464
- },
27465
- "cookies": {
27466
- "type": "object",
27467
- "description": "The visitors cookies.",
27468
- "additionalProperties": {
27469
- "type": "string"
27470
- }
27471
- },
27472
- "userAgent": {
27473
- "type": "string",
27474
- "description": "User-agent of the visitor."
27475
- },
27476
- "ip": {
27477
- "type": "string",
27478
- "description": "IP address of the visitor."
27479
- },
27480
- "language": {
27481
- "type": "string",
27482
- "description": "Language of the visitor."
27483
- }
27484
- },
27485
- "required": [
27486
- "anonymousId",
27487
- "cookies",
27488
- "userAgent",
27489
- "ip"
27490
- ]
27522
+ "$ref": "#/components/schemas/EventVisitor"
27491
27523
  },
27492
27524
  "url": {
27493
27525
  "type": "string",
@@ -28080,6 +28112,88 @@
28080
28112
  }
28081
28113
  ]
28082
28114
  },
28115
+ "PageFeedbackRating": {
28116
+ "type": "string",
28117
+ "enum": [
28118
+ "bad",
28119
+ "ok",
28120
+ "good"
28121
+ ]
28122
+ },
28123
+ "PageFeedbackEvent": {
28124
+ "allOf": [
28125
+ {
28126
+ "$ref": "#/components/schemas/BaseEvent"
28127
+ },
28128
+ {
28129
+ "type": "object",
28130
+ "description": "Event received when feedback has been submitted on a page.",
28131
+ "properties": {
28132
+ "type": {
28133
+ "type": "string",
28134
+ "enum": [
28135
+ "page_feedback"
28136
+ ]
28137
+ },
28138
+ "installationId": {
28139
+ "type": "string",
28140
+ "description": "ID of the integration installation"
28141
+ },
28142
+ "spaceId": {
28143
+ "type": "string",
28144
+ "description": "Unique identifier of the space in the site.",
28145
+ "deprecated": true
28146
+ },
28147
+ "siteId": {
28148
+ "type": "string",
28149
+ "description": "Unique identifier of the site."
28150
+ },
28151
+ "pageId": {
28152
+ "type": "string",
28153
+ "description": "Unique identifier of the page where feedback was submitted."
28154
+ },
28155
+ "feedback": {
28156
+ "type": "object",
28157
+ "description": "The feedback data submitted by the visitor.",
28158
+ "properties": {
28159
+ "rating": {
28160
+ "$ref": "#/components/schemas/PageFeedbackRating"
28161
+ },
28162
+ "comment": {
28163
+ "type": "string",
28164
+ "description": "Optional comment provided with the feedback.",
28165
+ "minLength": 1,
28166
+ "maxLength": 512
28167
+ }
28168
+ },
28169
+ "required": [
28170
+ "rating"
28171
+ ]
28172
+ },
28173
+ "visitor": {
28174
+ "$ref": "#/components/schemas/EventVisitor"
28175
+ },
28176
+ "url": {
28177
+ "type": "string",
28178
+ "description": "The GitBook content's URL where feedback was submitted."
28179
+ },
28180
+ "referrer": {
28181
+ "type": "string",
28182
+ "description": "The URL of referrer that linked to the page."
28183
+ }
28184
+ },
28185
+ "required": [
28186
+ "type",
28187
+ "installationId",
28188
+ "siteId",
28189
+ "feedback",
28190
+ "visitor",
28191
+ "url",
28192
+ "referrer"
28193
+ ]
28194
+ }
28195
+ ]
28196
+ },
28083
28197
  "Event": {
28084
28198
  "description": "Any event that can be received from GitBook.",
28085
28199
  "oneOf": [
@@ -28133,6 +28247,9 @@
28133
28247
  },
28134
28248
  {
28135
28249
  "$ref": "#/components/schemas/ContentComputeRevisionEvent"
28250
+ },
28251
+ {
28252
+ "$ref": "#/components/schemas/PageFeedbackEvent"
28136
28253
  }
28137
28254
  ],
28138
28255
  "discriminator": {
@@ -30310,11 +30427,30 @@
30310
30427
  },
30311
30428
  "sections": {
30312
30429
  "type": "array",
30313
- "description": "List of site section ids that are members of the group",
30430
+ "deprecated": true,
30431
+ "description": "List of site section ids that are members of the group. Use `children` instead.",
30314
30432
  "items": {
30315
30433
  "$ref": "#/components/schemas/SiteSection"
30316
30434
  }
30317
30435
  },
30436
+ "sectionGroup": {
30437
+ "type": "string",
30438
+ "description": "ID of the parent section group this group belongs to"
30439
+ },
30440
+ "children": {
30441
+ "type": "array",
30442
+ "description": "List of all child sections and groups nested under this group",
30443
+ "items": {
30444
+ "oneOf": [
30445
+ {
30446
+ "$ref": "#/components/schemas/SiteSection"
30447
+ },
30448
+ {
30449
+ "$ref": "#/components/schemas/SiteSectionGroup"
30450
+ }
30451
+ ]
30452
+ }
30453
+ },
30318
30454
  "icon": {
30319
30455
  "$ref": "#/components/schemas/Icon"
30320
30456
  }
@@ -30323,7 +30459,8 @@
30323
30459
  "object",
30324
30460
  "id",
30325
30461
  "title",
30326
- "sections"
30462
+ "sections",
30463
+ "children"
30327
30464
  ]
30328
30465
  },
30329
30466
  "SiteStructure": {
@@ -32674,7 +32811,8 @@
32674
32811
  "StorageUploadKind": {
32675
32812
  "type": "string",
32676
32813
  "enum": [
32677
- "customization_font"
32814
+ "customization_font",
32815
+ "import_file"
32678
32816
  ]
32679
32817
  },
32680
32818
  "StorageUploadURL": {
@@ -32822,21 +32960,47 @@
32822
32960
  "maxLength": 512
32823
32961
  },
32824
32962
  "ContentImportSource": {
32825
- "type": "object",
32826
- "properties": {
32827
- "type": {
32828
- "type": "string",
32829
- "enum": [
32830
- "website"
32963
+ "oneOf": [
32964
+ {
32965
+ "type": "object",
32966
+ "properties": {
32967
+ "type": {
32968
+ "type": "string",
32969
+ "enum": [
32970
+ "website"
32971
+ ]
32972
+ },
32973
+ "url": {
32974
+ "$ref": "#/components/schemas/URL"
32975
+ }
32976
+ },
32977
+ "required": [
32978
+ "type",
32979
+ "url"
32831
32980
  ]
32832
32981
  },
32833
- "url": {
32834
- "$ref": "#/components/schemas/URL"
32982
+ {
32983
+ "type": "object",
32984
+ "properties": {
32985
+ "type": {
32986
+ "type": "string",
32987
+ "enum": [
32988
+ "file"
32989
+ ]
32990
+ },
32991
+ "files": {
32992
+ "type": "array",
32993
+ "items": {
32994
+ "description": "Key of file",
32995
+ "type": "string"
32996
+ }
32997
+ }
32998
+ },
32999
+ "required": [
33000
+ "type",
33001
+ "files"
33002
+ ]
32835
33003
  }
32836
- },
32837
- "required": [
32838
- "type",
32839
- "url"
32840
33004
  ]
32841
33005
  },
32842
33006
  "ChangeRequestPointer": {
@@ -35542,14 +35706,6 @@
35542
35706
  }
35543
35707
  ]
35544
35708
  },
35545
- "PageFeedbackRating": {
35546
- "type": "string",
35547
- "enum": [
35548
- "bad",
35549
- "ok",
35550
- "good"
35551
- ]
35552
- },
35553
35709
  "SiteInsightsEventPagePostFeedback": {
35554
35710
  "allOf": [
35555
35711
  {
@@ -38399,6 +38555,9 @@
38399
38555
  "properties": {
38400
38556
  "block": {
38401
38557
  "type": "boolean"
38558
+ },
38559
+ "reason": {
38560
+ "$ref": "#/components/schemas/BlockReason"
38402
38561
  }
38403
38562
  },
38404
38563
  "required": [
package/spec/openapi.yaml CHANGED
@@ -1745,6 +1745,11 @@ paths:
1745
1745
  - $ref: "#/components/parameters/spaceId"
1746
1746
  - $ref: "#/components/parameters/changeRequestId"
1747
1747
  - $ref: "#/components/parameters/documentFormat"
1748
+ - in: query
1749
+ name: outdated
1750
+ description: Filter reviews marked as outdated.
1751
+ schema:
1752
+ type: boolean
1748
1753
  - $ref: "#/components/parameters/listPage"
1749
1754
  - $ref: "#/components/parameters/listLimit"
1750
1755
  responses:
@@ -6815,16 +6820,10 @@ paths:
6815
6820
  visibility:
6816
6821
  $ref: "#/components/schemas/SiteVisibility"
6817
6822
  spaces:
6818
- oneOf:
6819
- - type: array
6820
- description: ID of spaces to be added to the site
6821
- items:
6822
- type: string
6823
- - type: string
6824
- description: Create a new space associated to the site
6825
- enum:
6826
- - sample
6827
- - empty
6823
+ type: array
6824
+ description: ID of spaces to be added to the site
6825
+ items:
6826
+ type: string
6828
6827
  responses:
6829
6828
  "201":
6830
6829
  description: Site created
@@ -7581,6 +7580,9 @@ paths:
7581
7580
  items:
7582
7581
  type: string
7583
7582
  description: IDs of the sections to be added to the section group
7583
+ parent:
7584
+ type: string
7585
+ description: ID of the parent section group to nest this group under. If not provided, the section group will be added at the root of the site.
7584
7586
  required:
7585
7587
  - title
7586
7588
  responses:
@@ -8804,6 +8806,11 @@ paths:
8804
8806
  - $ref: "#/components/parameters/siteId"
8805
8807
  - $ref: "#/components/parameters/listPage"
8806
8808
  - $ref: "#/components/parameters/listLimit"
8809
+ - name: search
8810
+ in: query
8811
+ description: Search for a redirect by path
8812
+ schema:
8813
+ type: string
8807
8814
  responses:
8808
8815
  "200":
8809
8816
  description: The list of redirects for the site.
@@ -13079,6 +13086,7 @@ components:
13079
13086
  - $ref: "#/components/schemas/DocumentBlockIntegration"
13080
13087
  - $ref: "#/components/schemas/DocumentBlockMath"
13081
13088
  - $ref: "#/components/schemas/DocumentBlockQuote"
13089
+ - $ref: "#/components/schemas/DocumentBlockTable"
13082
13090
  isVoid:
13083
13091
  type: boolean
13084
13092
  enum:
@@ -14342,10 +14350,18 @@ components:
14342
14350
  - active
14343
14351
  - ended
14344
14352
  - expired
14345
- OrganizationBlockReason:
14353
+ BlockSource:
14346
14354
  type: string
14355
+ description: Source for an organization block
14347
14356
  enum:
14348
- - security
14357
+ - backoffice
14358
+ - external
14359
+ - internal
14360
+ BlockReason:
14361
+ type: string
14362
+ description: A short description giving context on the reason for the block.
14363
+ minLength: 1
14364
+ maxLength: 255
14349
14365
  Organization:
14350
14366
  type: object
14351
14367
  properties:
@@ -14431,8 +14447,10 @@ components:
14431
14447
  type: object
14432
14448
  description: If the organization is blocked, information about the block will appear here
14433
14449
  properties:
14450
+ source:
14451
+ $ref: "#/components/schemas/BlockSource"
14434
14452
  reason:
14435
- $ref: "#/components/schemas/OrganizationBlockReason"
14453
+ $ref: "#/components/schemas/BlockReason"
14436
14454
  required:
14437
14455
  - reason
14438
14456
  internal_isOnNewTrial:
@@ -15188,6 +15206,9 @@ components:
15188
15206
  status:
15189
15207
  description: The status of the review.
15190
15208
  $ref: "#/components/schemas/ChangeRequestReviewStatus"
15209
+ outdated:
15210
+ type: boolean
15211
+ description: Whether this review has been superseded by a newer review request or submission.
15191
15212
  comment:
15192
15213
  $ref: "#/components/schemas/Comment"
15193
15214
  createdAt:
@@ -15200,6 +15221,7 @@ components:
15200
15221
  - revision
15201
15222
  - reviewer
15202
15223
  - status
15224
+ - outdated
15203
15225
  - createdAt
15204
15226
  - updatedAt
15205
15227
  Team:
@@ -15852,6 +15874,7 @@ components:
15852
15874
  - space:metadata:read
15853
15875
  - space:metadata:write
15854
15876
  - space:git:sync
15877
+ - page:feedback:read
15855
15878
  - site:metadata:read
15856
15879
  - site:views:read
15857
15880
  - site:script:inject
@@ -16561,6 +16584,32 @@ components:
16561
16584
  required:
16562
16585
  - type
16563
16586
  - previous
16587
+ EventVisitor:
16588
+ type: object
16589
+ description: Analytics info on the GitBook's content visitor.
16590
+ properties:
16591
+ anonymousId:
16592
+ type: string
16593
+ description: GitBook's unique identifier of the visitor.
16594
+ cookies:
16595
+ type: object
16596
+ description: The visitors cookies.
16597
+ additionalProperties:
16598
+ type: string
16599
+ userAgent:
16600
+ type: string
16601
+ description: User-agent of the visitor.
16602
+ ip:
16603
+ type: string
16604
+ description: IP address of the visitor.
16605
+ language:
16606
+ type: string
16607
+ description: Language of the visitor.
16608
+ required:
16609
+ - anonymousId
16610
+ - cookies
16611
+ - userAgent
16612
+ - ip
16564
16613
  SiteViewEvent:
16565
16614
  allOf:
16566
16615
  - $ref: "#/components/schemas/SiteEvent"
@@ -16582,31 +16631,7 @@ components:
16582
16631
  type: string
16583
16632
  description: Unique identifier of the visited page.
16584
16633
  visitor:
16585
- type: object
16586
- description: Analytics info on the GitBook's content visitor.
16587
- properties:
16588
- anonymousId:
16589
- type: string
16590
- description: GitBook's unique identifier of the visitor.
16591
- cookies:
16592
- type: object
16593
- description: The visitors cookies.
16594
- additionalProperties:
16595
- type: string
16596
- userAgent:
16597
- type: string
16598
- description: User-agent of the visitor.
16599
- ip:
16600
- type: string
16601
- description: IP address of the visitor.
16602
- language:
16603
- type: string
16604
- description: Language of the visitor.
16605
- required:
16606
- - anonymousId
16607
- - cookies
16608
- - userAgent
16609
- - ip
16634
+ $ref: "#/components/schemas/EventVisitor"
16610
16635
  url:
16611
16636
  type: string
16612
16637
  description: The GitBook content's URL visited (including URL params).
@@ -16967,6 +16992,64 @@ components:
16967
16992
  - content_compute_revision
16968
16993
  required:
16969
16994
  - type
16995
+ PageFeedbackRating:
16996
+ type: string
16997
+ enum:
16998
+ - bad
16999
+ - ok
17000
+ - good
17001
+ PageFeedbackEvent:
17002
+ allOf:
17003
+ - $ref: "#/components/schemas/BaseEvent"
17004
+ - type: object
17005
+ description: Event received when feedback has been submitted on a page.
17006
+ properties:
17007
+ type:
17008
+ type: string
17009
+ enum:
17010
+ - page_feedback
17011
+ installationId:
17012
+ type: string
17013
+ description: ID of the integration installation
17014
+ spaceId:
17015
+ type: string
17016
+ description: Unique identifier of the space in the site.
17017
+ deprecated: true
17018
+ siteId:
17019
+ type: string
17020
+ description: Unique identifier of the site.
17021
+ pageId:
17022
+ type: string
17023
+ description: Unique identifier of the page where feedback was submitted.
17024
+ feedback:
17025
+ type: object
17026
+ description: The feedback data submitted by the visitor.
17027
+ properties:
17028
+ rating:
17029
+ $ref: "#/components/schemas/PageFeedbackRating"
17030
+ comment:
17031
+ type: string
17032
+ description: Optional comment provided with the feedback.
17033
+ minLength: 1
17034
+ maxLength: 512
17035
+ required:
17036
+ - rating
17037
+ visitor:
17038
+ $ref: "#/components/schemas/EventVisitor"
17039
+ url:
17040
+ type: string
17041
+ description: The GitBook content's URL where feedback was submitted.
17042
+ referrer:
17043
+ type: string
17044
+ description: The URL of referrer that linked to the page.
17045
+ required:
17046
+ - type
17047
+ - installationId
17048
+ - siteId
17049
+ - feedback
17050
+ - visitor
17051
+ - url
17052
+ - referrer
16970
17053
  Event:
16971
17054
  description: Any event that can be received from GitBook.
16972
17055
  oneOf:
@@ -16987,6 +17070,7 @@ components:
16987
17070
  - $ref: "#/components/schemas/UIRenderEvent"
16988
17071
  - $ref: "#/components/schemas/ContentComputeDocumentEvent"
16989
17072
  - $ref: "#/components/schemas/ContentComputeRevisionEvent"
17073
+ - $ref: "#/components/schemas/PageFeedbackEvent"
16990
17074
  discriminator:
16991
17075
  propertyName: type
16992
17076
  IntegrationEvent:
@@ -18425,9 +18509,20 @@ components:
18425
18509
  $ref: "#/components/schemas/SiteSectionGroupTitle"
18426
18510
  sections:
18427
18511
  type: array
18428
- description: List of site section ids that are members of the group
18512
+ deprecated: true
18513
+ description: List of site section ids that are members of the group. Use `children` instead.
18429
18514
  items:
18430
18515
  $ref: "#/components/schemas/SiteSection"
18516
+ sectionGroup:
18517
+ type: string
18518
+ description: ID of the parent section group this group belongs to
18519
+ children:
18520
+ type: array
18521
+ description: List of all child sections and groups nested under this group
18522
+ items:
18523
+ oneOf:
18524
+ - $ref: "#/components/schemas/SiteSection"
18525
+ - $ref: "#/components/schemas/SiteSectionGroup"
18431
18526
  icon:
18432
18527
  $ref: "#/components/schemas/Icon"
18433
18528
  required:
@@ -18435,6 +18530,7 @@ components:
18435
18530
  - id
18436
18531
  - title
18437
18532
  - sections
18533
+ - children
18438
18534
  SiteStructure:
18439
18535
  oneOf:
18440
18536
  - type: object
@@ -20079,6 +20175,7 @@ components:
20079
20175
  type: string
20080
20176
  enum:
20081
20177
  - customization_font
20178
+ - import_file
20082
20179
  StorageUploadURL:
20083
20180
  type: object
20084
20181
  properties:
@@ -20182,17 +20279,32 @@ components:
20182
20279
  minLength: 1
20183
20280
  maxLength: 512
20184
20281
  ContentImportSource:
20185
- type: object
20186
- properties:
20187
- type:
20188
- type: string
20189
- enum:
20190
- - website
20191
- url:
20192
- $ref: "#/components/schemas/URL"
20193
- required:
20194
- - type
20195
- - url
20282
+ oneOf:
20283
+ - type: object
20284
+ properties:
20285
+ type:
20286
+ type: string
20287
+ enum:
20288
+ - website
20289
+ url:
20290
+ $ref: "#/components/schemas/URL"
20291
+ required:
20292
+ - type
20293
+ - url
20294
+ - type: object
20295
+ properties:
20296
+ type:
20297
+ type: string
20298
+ enum:
20299
+ - file
20300
+ files:
20301
+ type: array
20302
+ items:
20303
+ description: Key of file
20304
+ type: string
20305
+ required:
20306
+ - type
20307
+ - files
20196
20308
  ChangeRequestPointer:
20197
20309
  type: object
20198
20310
  properties:
@@ -22086,12 +22198,6 @@ components:
22086
22198
  - type
22087
22199
  - query
22088
22200
  - result
22089
- PageFeedbackRating:
22090
- type: string
22091
- enum:
22092
- - bad
22093
- - ok
22094
- - good
22095
22201
  SiteInsightsEventPagePostFeedback:
22096
22202
  allOf:
22097
22203
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -23885,6 +23991,8 @@ components:
23885
23991
  properties:
23886
23992
  block:
23887
23993
  type: boolean
23994
+ reason:
23995
+ $ref: "#/components/schemas/BlockReason"
23888
23996
  required:
23889
23997
  - block
23890
23998
  UserImpersonationInfo: