@gitbook/api 0.88.0 → 0.89.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
@@ -71,6 +71,10 @@ export interface DocumentMarkCode {
71
71
  object: 'mark';
72
72
  type: 'code';
73
73
  }
74
+ export interface DocumentMarkKeyboard {
75
+ object: 'mark';
76
+ type: 'keyboard';
77
+ }
74
78
  export interface DocumentMarkStrikethrough {
75
79
  object: 'mark';
76
80
  type: 'strikethrough';
@@ -83,7 +87,7 @@ export interface DocumentMarkColor {
83
87
  background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
84
88
  };
85
89
  }
86
- export type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkStrikethrough | DocumentMarkColor;
90
+ export type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkKeyboard | DocumentMarkStrikethrough | DocumentMarkColor;
87
91
  export interface DocumentTextLeaf {
88
92
  object: 'leaf';
89
93
  text: string;
@@ -1441,7 +1445,10 @@ export declare enum ImportContentSource {
1441
1445
  OpenApi = "open-api"
1442
1446
  }
1443
1447
  export interface ImportContent {
1444
- /** URL of the content to import. */
1448
+ /**
1449
+ * URL of the content to import.
1450
+ * @format uri
1451
+ */
1445
1452
  url: string;
1446
1453
  source: ImportContentSource;
1447
1454
  }
@@ -3595,6 +3602,8 @@ export type SiteAds = {
3595
3602
  topic: SiteAdsTopic;
3596
3603
  } | {
3597
3604
  status: 'rejected';
3605
+ /** Reason for the rejection */
3606
+ reason?: string;
3598
3607
  } | {
3599
3608
  status: 'live' | 'disabled';
3600
3609
  /** Topic of the content */
@@ -3679,6 +3688,11 @@ export type SiteSectionTitle = string;
3679
3688
  * @maxLength 100
3680
3689
  */
3681
3690
  export type SiteSectionPath = string;
3691
+ /**
3692
+ * @minLength 1
3693
+ * @maxLength 1024
3694
+ */
3695
+ export type Condition = string;
3682
3696
  /**
3683
3697
  * Path to the space on the site
3684
3698
  * @minLength 1
@@ -3698,6 +3712,8 @@ export interface SiteSpace {
3698
3712
  title: string;
3699
3713
  /** Whether this is the default space for the site */
3700
3714
  default?: boolean;
3715
+ /** Conditional expression used to evaluate whether the site space should be shown to the site's visitor. */
3716
+ condition?: Condition;
3701
3717
  /** Whether the space has advanced customization feature enabled */
3702
3718
  hasAdvancedCustomizationFeature?: boolean;
3703
3719
  /** URLs associated with the object */
@@ -3720,6 +3736,10 @@ export interface SiteSection {
3720
3736
  default?: boolean;
3721
3737
  /** Path to the section on the site */
3722
3738
  path: SiteSectionPath;
3739
+ /** Conditional expression used to evaluate whether the site section should be shown to the site's visitor. */
3740
+ condition?: Condition;
3741
+ /** ID of the section group the section belongs to in the site */
3742
+ sectionGroup?: string;
3723
3743
  siteSpaces: SiteSpace[];
3724
3744
  /** URLs associated with the object */
3725
3745
  urls: {
@@ -3951,6 +3971,32 @@ export type BillingUpgrade = {
3951
3971
  } | {
3952
3972
  result: 'interval_changed';
3953
3973
  };
3974
+ /** These are all the features we check to determine the new pricing site type. */
3975
+ export declare enum SiteToMigrateFeature {
3976
+ Sections = "sections",
3977
+ VisitorAuth = "visitor-auth",
3978
+ Redirects = "redirects",
3979
+ CustomHostname = "custom-hostname",
3980
+ AISearch = "AI-search",
3981
+ PDFExport = "PDF-export",
3982
+ PageRatings = "page-ratings",
3983
+ CustomLogo = "custom-logo",
3984
+ CustomThemePreset = "custom-theme-preset",
3985
+ CustomFonts = "custom-fonts",
3986
+ CustomIcons = "custom-icons",
3987
+ CustomFooterLogo = "custom-footer-logo",
3988
+ CustomFooterCopyright = "custom-footer-copyright",
3989
+ CustomFooterLinks = "custom-footer-links",
3990
+ Unlisted = "unlisted",
3991
+ ShareLinks = "share-links"
3992
+ }
3993
+ export interface SiteToMigrate {
3994
+ object: 'site-to-migrate';
3995
+ site: Site;
3996
+ /** The new type of the site */
3997
+ newType: SiteType;
3998
+ features: SiteToMigrateFeature[];
3999
+ }
3954
4000
  export interface BillingPortal {
3955
4001
  /** URL to the billing portal for an organization */
3956
4002
  url: string;
@@ -3968,13 +4014,6 @@ export interface CreateSpace {
3968
4014
  /** ID of a parent collection */
3969
4015
  parent?: string;
3970
4016
  }
3971
- export interface OrganizationExperimentalFeature {
3972
- id: string;
3973
- title: string;
3974
- description: string;
3975
- enabled: boolean;
3976
- stage: 'alpha' | 'beta';
3977
- }
3978
4017
  /**
3979
4018
  * @minLength 1
3980
4019
  * @maxLength 30
@@ -4425,6 +4464,24 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
4425
4464
  */
4426
4465
  fallbackURL?: string;
4427
4466
  };
4467
+ /**
4468
+ * Title of the site section group
4469
+ * @minLength 1
4470
+ * @maxLength 100
4471
+ */
4472
+ export type SiteSectionGroupTitle = string;
4473
+ export interface SiteSectionGroup {
4474
+ /** The object type, which is always "site-section-group" */
4475
+ object: 'site-section-group';
4476
+ /** Unique identifier of the site section group */
4477
+ id: string;
4478
+ /** Title of the site section group */
4479
+ title: SiteSectionGroupTitle;
4480
+ /** List of site section ids that are members of the group */
4481
+ sections: SiteSection[];
4482
+ /** Name of the icon */
4483
+ icon?: Icon;
4484
+ }
4428
4485
  export type SiteSearchScope = {
4429
4486
  /** Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content. */
4430
4487
  mode: 'default';
@@ -4438,6 +4495,10 @@ export type SiteSearchScope = {
4438
4495
  /** Search in all sections and site spaces. This scope is wide and deep. */
4439
4496
  mode: 'all';
4440
4497
  };
4498
+ export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
4499
+ /** Indicates whether the site customization settings have been overridden. */
4500
+ hasOverrides: boolean;
4501
+ };
4441
4502
  export interface SiteSectionPointer {
4442
4503
  type: 'site-section';
4443
4504
  /** Unique identifier for the site section */
@@ -4591,6 +4652,17 @@ export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
4591
4652
  rating: PageFeedbackRating;
4592
4653
  };
4593
4654
  };
4655
+ export type SiteInsightsEventPagePostFeedbackComment = SiteInsightsEventBase & {
4656
+ type: 'page_post_feedback_comment';
4657
+ feedback: {
4658
+ rating: PageFeedbackRating;
4659
+ /**
4660
+ * @minLength 1
4661
+ * @maxLength 512
4662
+ */
4663
+ comment: string;
4664
+ };
4665
+ };
4594
4666
  export type SiteInsightsEventAskQuestion = SiteInsightsEventBase & {
4595
4667
  type: 'ask_question';
4596
4668
  /** Question being asked. */
@@ -4620,17 +4692,46 @@ export type SiteInsightsEventAPIClientRequest = SiteInsightsEventBase & {
4620
4692
  /** Pointer to an operation in the OpenAPI spec. */
4621
4693
  operation: OpenAPIOperationPointer;
4622
4694
  };
4623
- export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest;
4695
+ export declare enum SiteInsightsTrademarkPlacement {
4696
+ Sidebar = "sidebar",
4697
+ Ad = "ad",
4698
+ Footer = "footer"
4699
+ }
4700
+ export type SiteInsightsEventTrademarkClick = SiteInsightsEventBase & {
4701
+ type: 'trademark_click';
4702
+ placement: SiteInsightsTrademarkPlacement;
4703
+ };
4704
+ export declare enum SiteInsightsAdPlacement {
4705
+ Aside = "aside"
4706
+ }
4707
+ export interface SiteInsightsAd {
4708
+ domain: string;
4709
+ zoneId: string;
4710
+ placement: SiteInsightsAdPlacement;
4711
+ }
4712
+ export type SiteInsightsEventAdClick = SiteInsightsEventBase & {
4713
+ type: 'ad_click';
4714
+ ad: SiteInsightsAd;
4715
+ };
4716
+ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
4717
+ type: 'ad_display';
4718
+ ad: SiteInsightsAd;
4719
+ };
4720
+ export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay;
4624
4721
  export declare enum SiteInsightsEventType {
4625
4722
  PageView = "page_view",
4626
4723
  SearchOpen = "search_open",
4627
4724
  SearchTypeQuery = "search_type_query",
4628
4725
  SearchOpenResult = "search_open_result",
4629
4726
  PagePostFeedback = "page_post_feedback",
4727
+ PagePostFeedbackComment = "page_post_feedback_comment",
4630
4728
  AskQuestion = "ask_question",
4631
4729
  LinkClick = "link_click",
4632
4730
  ApiClientOpen = "api_client_open",
4633
- ApiClientRequest = "api_client_request"
4731
+ ApiClientRequest = "api_client_request",
4732
+ AdClick = "ad_click",
4733
+ AdDisplay = "ad_display",
4734
+ TrademarkClick = "trademark_click"
4634
4735
  }
4635
4736
  export declare enum SiteInsightsVisitorBrowser {
4636
4737
  Chrome = "chrome",
@@ -4769,6 +4870,15 @@ export type SiteInsightsQueryEventsValues = {
4769
4870
  } | {
4770
4871
  column: 'utmContent';
4771
4872
  values: string[];
4873
+ } | {
4874
+ column: 'eventAdDomain';
4875
+ values: string[];
4876
+ } | {
4877
+ column: 'eventAdPlacement';
4878
+ values: SiteInsightsAdPlacement[];
4879
+ } | {
4880
+ column: 'eventTrademarkPlacement';
4881
+ values: SiteInsightsTrademarkPlacement[];
4772
4882
  };
4773
4883
  export declare enum SiteInsightsQueryOperator {
4774
4884
  In = "in",
@@ -4848,6 +4958,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
4848
4958
  } | {
4849
4959
  column: 'visitorClaim';
4850
4960
  claim: string;
4961
+ } | {
4962
+ column: 'eventAdDomain';
4963
+ } | {
4964
+ column: 'eventAdPlacement';
4965
+ } | {
4966
+ column: 'eventTrademarkPlacement';
4851
4967
  };
4852
4968
  export declare enum SiteInsightsQueryRange {
4853
4969
  LastYear = "lastYear",
@@ -5597,10 +5713,6 @@ export interface OrganizationSitesChannel {
5597
5713
  channel: 'organization-sites';
5598
5714
  organization: string;
5599
5715
  }
5600
- export interface OrganizationExperimentalFeaturesChannel {
5601
- channel: 'organization-experimental-features';
5602
- organization: string;
5603
- }
5604
5716
  /** Channel for messages everytime a space is indexed by the AI in an organization */
5605
5717
  export interface OrganizationAIIndexationChannel {
5606
5718
  channel: 'organization-ai-indexation';
@@ -5729,7 +5841,7 @@ export interface GitSyncOperationChannel {
5729
5841
  space: string;
5730
5842
  }
5731
5843
  /** Channel to subscribe to for realtime updates. */
5732
- export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationAIIndexationChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
5844
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
5733
5845
  export interface GitSyncOperationChannelData {
5734
5846
  channel: 'space-gitsync-operation';
5735
5847
  data: GitSyncOperation;
@@ -6351,6 +6463,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6351
6463
  message: string;
6352
6464
  };
6353
6465
  }>>;
6466
+ /**
6467
+ * No description
6468
+ *
6469
+ * @tags spaces
6470
+ * @name RemoveUserFromSpace
6471
+ * @summary Remove a user from a space
6472
+ * @request DELETE:/spaces/{spaceId}/permissions/users/{userId}
6473
+ * @secure
6474
+ */
6475
+ removeUserFromSpace: (spaceId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
6476
+ error: {
6477
+ /** @format int32 */
6478
+ code: 404;
6479
+ message: string;
6480
+ };
6481
+ }>>;
6354
6482
  /**
6355
6483
  * No description
6356
6484
  *
@@ -7965,6 +8093,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7965
8093
  message: string;
7966
8094
  };
7967
8095
  }>>;
8096
+ /**
8097
+ * No description
8098
+ *
8099
+ * @tags collections
8100
+ * @name RemoveTeamFromCollection
8101
+ * @summary Remove a team from a collection
8102
+ * @request DELETE:/collections/{collectionId}/permissions/teams/{teamId}
8103
+ * @secure
8104
+ */
8105
+ removeTeamFromCollection: (collectionId: string, teamId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8106
+ error: {
8107
+ /** @format int32 */
8108
+ code: 404;
8109
+ message: string;
8110
+ };
8111
+ }>>;
8112
+ /**
8113
+ * No description
8114
+ *
8115
+ * @tags collections
8116
+ * @name RemoveUserFromCollection
8117
+ * @summary Remove a user from a collection
8118
+ * @request DELETE:/collections/{collectionId}/permissions/users/{userId}
8119
+ * @secure
8120
+ */
8121
+ removeUserFromCollection: (collectionId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
8122
+ error: {
8123
+ /** @format int32 */
8124
+ code: 404;
8125
+ message: string;
8126
+ };
8127
+ }>>;
7968
8128
  /**
7969
8129
  * No description
7970
8130
  *
@@ -9013,6 +9173,59 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9013
9173
  /** The app screen URL to bring the user back to after a canceled checkout. */
9014
9174
  cancelReturnURL?: string;
9015
9175
  }, params?: RequestParams) => Promise<HttpResponse<BillingUpgrade, Error>>;
9176
+ /**
9177
+ * No description
9178
+ *
9179
+ * @tags organizations
9180
+ * @name MigrateOrganizationPlan
9181
+ * @summary Migrate an organization's legacy billing plan to new pricing
9182
+ * @request POST:/orgs/{organizationId}/billing/migrate
9183
+ * @secure
9184
+ */
9185
+ migrateOrganizationPlan: (organizationId: string, query: {
9186
+ /** The desired billing interval */
9187
+ interval: BillingInterval;
9188
+ /** The new product to upgrade to */
9189
+ product: "free_2024" | "plus_2024" | "pro_2024";
9190
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9191
+ /**
9192
+ * No description
9193
+ *
9194
+ * @tags organizations
9195
+ * @name PreviewMigrateOrganizationPlan
9196
+ * @summary Preview a migration of an organization to new pricing.
9197
+ * @request GET:/orgs/{organizationId}/billing/migrate
9198
+ * @secure
9199
+ */
9200
+ previewMigrateOrganizationPlan: (organizationId: string, query: {
9201
+ /** The desired billing interval */
9202
+ interval: BillingInterval;
9203
+ /** The new product to upgrade to */
9204
+ product: "free_2024" | "plus_2024" | "pro_2024";
9205
+ }, params?: RequestParams) => Promise<HttpResponse<{
9206
+ invoice?: BillingInvoicePreview;
9207
+ }, Error>>;
9208
+ /**
9209
+ * No description
9210
+ *
9211
+ * @tags organizations, sites
9212
+ * @name ListSitesToMigrate
9213
+ * @summary Lists all legacy sites of an org and computes their new type and contributing features
9214
+ * @request GET:/orgs/{organizationId}/billing/migrate/sites
9215
+ * @secure
9216
+ */
9217
+ listSitesToMigrate: (organizationId: string, query?: {
9218
+ /** Identifier of the page results to fetch. */
9219
+ page?: string;
9220
+ /**
9221
+ * The number of results per page
9222
+ * @min 0
9223
+ * @max 1000
9224
+ */
9225
+ limit?: number;
9226
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
9227
+ items: SiteToMigrate[];
9228
+ }, Error>>;
9016
9229
  /**
9017
9230
  * No description
9018
9231
  *
@@ -9322,26 +9535,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9322
9535
  integration: Integration;
9323
9536
  }[];
9324
9537
  }, Error>>;
9325
- /**
9326
- * No description
9327
- *
9328
- * @tags organizations
9329
- * @name ListOrgExperimentalFeatures
9330
- * @summary List experiemental features for the given organization.
9331
- * @request GET:/orgs/{organizationId}/experiments
9332
- * @secure
9333
- */
9334
- listOrgExperimentalFeatures: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationExperimentalFeature[], Error>>;
9335
- /**
9336
- * No description
9337
- *
9338
- * @tags organizations
9339
- * @name UpdateOrgExperimentalFeatures
9340
- * @summary Toggle on or off experimental features.
9341
- * @request POST:/orgs/{organizationId}/experiments
9342
- * @secure
9343
- */
9344
- updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9345
9538
  /**
9346
9539
  * @description Lists SAML providers configured for the specified organization.
9347
9540
  *
@@ -10289,6 +10482,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10289
10482
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10290
10483
  items: SiteSpace[];
10291
10484
  }, Error>>;
10485
+ /**
10486
+ * No description
10487
+ *
10488
+ * @tags sites
10489
+ * @name AddSectionGroupToSite
10490
+ * @summary Add a section group to a site in an organization
10491
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups
10492
+ * @secure
10493
+ */
10494
+ addSectionGroupToSite: (organizationId: string, siteId: string, data: {
10495
+ /** Title of the site section group */
10496
+ title: SiteSectionGroupTitle;
10497
+ /** IDs of the sections to be added to the section group */
10498
+ sections?: string[];
10499
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, Error>>;
10500
+ /**
10501
+ * No description
10502
+ *
10503
+ * @tags sites
10504
+ * @name UpdateSiteSectionGroupById
10505
+ * @summary Update a section group on a site in an organization
10506
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}
10507
+ * @secure
10508
+ */
10509
+ updateSiteSectionGroupById: (organizationId: string, siteId: string, siteSectionGroupId: string, data: {
10510
+ /** Title of the site section group */
10511
+ title?: SiteSectionGroupTitle;
10512
+ icon?: Icon | null;
10513
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, Error>>;
10514
+ /**
10515
+ * No description
10516
+ *
10517
+ * @tags sites
10518
+ * @name DeleteSiteSectionGroupById
10519
+ * @summary Delete a section group on a site in an organization
10520
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}
10521
+ * @secure
10522
+ */
10523
+ deleteSiteSectionGroupById: (organizationId: string, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
10292
10524
  /**
10293
10525
  * No description
10294
10526
  *
@@ -10346,6 +10578,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10346
10578
  path?: SiteSectionPath;
10347
10579
  /** ID of the site-space to be used as the default in this section. */
10348
10580
  defaultSiteSpace?: string;
10581
+ /** Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed. */
10582
+ condition?: Condition | null;
10349
10583
  icon?: Icon | null;
10350
10584
  }, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
10351
10585
  /**
@@ -10437,6 +10671,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10437
10671
  updateSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
10438
10672
  /** Path to the space on the site */
10439
10673
  path?: SiteSpacePath;
10674
+ /** Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed. */
10675
+ condition?: Condition | null;
10440
10676
  }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
10441
10677
  /**
10442
10678
  * No description
@@ -10581,6 +10817,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10581
10817
  message: string;
10582
10818
  };
10583
10819
  }>>;
10820
+ /**
10821
+ * No description
10822
+ *
10823
+ * @tags sites
10824
+ * @name DeleteSiteSpaceCustomizationById
10825
+ * @summary Removes the customization configuration for a site space.
10826
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
10827
+ * @secure
10828
+ */
10829
+ deleteSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
10830
+ error: {
10831
+ /** @format int32 */
10832
+ code: 400;
10833
+ message: string;
10834
+ };
10835
+ }>>;
10584
10836
  /**
10585
10837
  * No description
10586
10838
  *
@@ -10590,10 +10842,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10590
10842
  * @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw
10591
10843
  * @secure
10592
10844
  */
10593
- getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings & {
10594
- /** Indicates whether the site customization settings have been overridden. */
10595
- hasOverrides: boolean;
10596
- }, Error | {
10845
+ getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteSpaceCustomizationSettings, Error | {
10597
10846
  error: {
10598
10847
  /** @format int32 */
10599
10848
  code: 400;
@@ -10979,14 +11228,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10979
11228
  * @max 1000
10980
11229
  */
10981
11230
  limit?: number;
11231
+ /**
11232
+ * Filter sites by their ads review status
11233
+ * @default "in-review"
11234
+ */
11235
+ status?: "in-review" | "live" | "rejected";
10982
11236
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10983
- items: {
11237
+ items: ({
10984
11238
  id: string;
10985
11239
  url: string;
10986
11240
  email: string;
10987
11241
  /** Topic of the content */
10988
11242
  topic: SiteAdsTopic;
10989
- }[];
11243
+ } & ({
11244
+ status: "in-review";
11245
+ } | {
11246
+ status: "live";
11247
+ /** The ad network zone ID */
11248
+ zoneId: string;
11249
+ } | {
11250
+ status: "rejected";
11251
+ /** Reason for the rejection */
11252
+ reason?: string;
11253
+ }))[];
10990
11254
  }, Error>>;
10991
11255
  /**
10992
11256
  * No description
@@ -11005,6 +11269,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11005
11269
  reportingId: string;
11006
11270
  } | {
11007
11271
  status: "rejected";
11272
+ /**
11273
+ * Reason for the rejection
11274
+ * @maxLength 512
11275
+ */
11276
+ reason?: string;
11008
11277
  } | {
11009
11278
  status: "pending";
11010
11279
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;