@gitbook/api 0.173.0 → 0.175.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
@@ -16,6 +16,10 @@ export declare enum SiteAdsStatus {
16
16
  Rejected = "rejected",
17
17
  Disabled = "disabled"
18
18
  }
19
+ export declare enum CustomizationThemeMode {
20
+ Light = "light",
21
+ Dark = "dark"
22
+ }
19
23
  export declare enum APIIntegrationScope {
20
24
  IntegrationRead = "integration:read",
21
25
  IntegrationUpdate = "integration:update",
@@ -121,6 +125,14 @@ export declare enum CustomHostnameDnsStatus {
121
125
  DnsCloudflareProxied = "dns_cloudflare_proxied",
122
126
  DnsWrongCaa = "dns_wrong_caa"
123
127
  }
128
+ export declare enum SiteChannelRole {
129
+ Collaborator = "collaborator",
130
+ Support = "support"
131
+ }
132
+ export declare enum SiteChannelStatus {
133
+ Active = "active",
134
+ Pending = "pending"
135
+ }
124
136
  export declare enum SiteInsightsQueryRangePreset {
125
137
  LastYear = "lastYear",
126
138
  Last3Months = "last3Months",
@@ -250,12 +262,12 @@ export declare enum AIModel {
250
262
  }
251
263
  export declare enum AIMessageRole {
252
264
  User = "user",
253
- Assistant = "assistant",
254
- Developer = "developer"
265
+ Assistant = "assistant"
255
266
  }
256
267
  export declare enum SiteConfigurableChannelType {
257
268
  BuiltinSlack = "builtin:slack",
258
- BuiltinDiscord = "builtin:discord"
269
+ BuiltinDiscord = "builtin:discord",
270
+ BuiltinGithub = "builtin:github"
259
271
  }
260
272
  export declare enum SiteCoreChannelType {
261
273
  Site = "site",
@@ -268,6 +280,12 @@ export declare enum SiteQuestionAnswerHelpfulness {
268
280
  Medium = "medium",
269
281
  High = "high"
270
282
  }
283
+ /** Whether the response answered the question. */
284
+ export declare enum SiteQuestionAnswerResolution {
285
+ No = "no",
286
+ Partially = "partially",
287
+ Yes = "yes"
288
+ }
271
289
  /** Relevance classification of the user question. */
272
290
  export declare enum SiteQuestionAnswerRelevance {
273
291
  Relevant = "relevant",
@@ -275,12 +293,6 @@ export declare enum SiteQuestionAnswerRelevance {
275
293
  OffTopic = "off-topic",
276
294
  Unclear = "unclear"
277
295
  }
278
- /** Whether the response answered the question. */
279
- export declare enum SiteQuestionAnswerResolution {
280
- No = "no",
281
- Partially = "partially",
282
- Yes = "yes"
283
- }
284
296
  /** Relative score adjustment applied to records from a connection when searching. */
285
297
  export declare enum ContextSearchBoost {
286
298
  X08 = "x0.8",
@@ -368,9 +380,10 @@ export declare enum CustomizationAIMode {
368
380
  Search = "search",
369
381
  Assistant = "assistant"
370
382
  }
371
- export declare enum CustomizationThemeMode {
383
+ export declare enum CustomizationDefaultThemeMode {
372
384
  Light = "light",
373
- Dark = "dark"
385
+ Dark = "dark",
386
+ System = "system"
374
387
  }
375
388
  /**
376
389
  * The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
@@ -1020,7 +1033,7 @@ export declare enum ContentVisibility {
1020
1033
  /** Data passed through a realtime channel */
1021
1034
  export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
1022
1035
  /** Channel to subscribe to for realtime updates. */
1023
- export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1036
+ export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceContentRefs | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelChangeRequestContentRefs | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1024
1037
  export type PublishedContentRedirect = {
1025
1038
  /** Type of target for the redirect */
1026
1039
  target: "application" | "content";
@@ -2735,6 +2748,15 @@ export interface ChangeRequest {
2735
2748
  revisionMerged?: string;
2736
2749
  /** Count of opened comments on the change request. */
2737
2750
  comments: number;
2751
+ /** Site context associated with the change request when it was created from a site topic or finding. */
2752
+ siteTopic?: {
2753
+ /** ID of the site associated with the change request. */
2754
+ site: string;
2755
+ /** ID of the site topic associated with the change request. */
2756
+ topic: string;
2757
+ /** ID of the site finding associated with the change request, when applicable. */
2758
+ finding?: string;
2759
+ };
2738
2760
  /** If true, the change request is not up-to-date with latest changes in the main content. */
2739
2761
  outdated: boolean;
2740
2762
  /** URLs associated with the object */
@@ -4754,16 +4776,16 @@ export interface CreateOrganization {
4754
4776
  * @maxLength 128
4755
4777
  */
4756
4778
  export type SiteSectionTitle = string;
4757
- /** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
4758
- export type LocalizedTitle = Record<TranslationLanguage, string>;
4779
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
4780
+ export type LocalizedString128 = Record<TranslationLanguage, string>;
4759
4781
  /**
4760
4782
  * Description of the site section
4761
4783
  * @minLength 0
4762
4784
  * @maxLength 256
4763
4785
  */
4764
4786
  export type SiteSectionDescription = string;
4765
- /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
4766
- export type LocalizedSectionDescription = Record<TranslationLanguage, string>;
4787
+ /** Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only. */
4788
+ export type LocalizedString256 = Record<TranslationLanguage, string>;
4767
4789
  /**
4768
4790
  * Path to the section on the site
4769
4791
  * @minLength 1
@@ -4787,8 +4809,8 @@ export interface SiteSpace {
4787
4809
  section?: string;
4788
4810
  space: Space;
4789
4811
  title: string;
4790
- /** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
4791
- localizedTitle?: LocalizedTitle;
4812
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
4813
+ localizedTitle?: LocalizedString128;
4792
4814
  /** Whether this is the default space for the site */
4793
4815
  default?: boolean;
4794
4816
  /** Conditional expression used to evaluate whether the site space should be shown to the site's visitor. */
@@ -4815,12 +4837,12 @@ export interface SiteSection {
4815
4837
  id: string;
4816
4838
  /** Title of the site section */
4817
4839
  title: SiteSectionTitle;
4818
- /** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
4819
- localizedTitle?: LocalizedTitle;
4840
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
4841
+ localizedTitle?: LocalizedString128;
4820
4842
  /** Description of the site section */
4821
4843
  description?: SiteSectionDescription;
4822
- /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
4823
- localizedDescription?: LocalizedSectionDescription;
4844
+ /** Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only. */
4845
+ localizedDescription?: LocalizedString256;
4824
4846
  /** Whether this is the default section for the site */
4825
4847
  default?: boolean;
4826
4848
  /** Whether the site section is draft and not live. */
@@ -4856,8 +4878,8 @@ export interface SiteSectionGroup {
4856
4878
  id: string;
4857
4879
  /** Title of the site section group */
4858
4880
  title: SiteSectionGroupTitle;
4859
- /** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
4860
- localizedTitle?: LocalizedTitle;
4881
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
4882
+ localizedTitle?: LocalizedString128;
4861
4883
  /**
4862
4884
  * List of site section ids that are members of the group. Use `children` instead.
4863
4885
  * @deprecated
@@ -5709,15 +5731,23 @@ export interface CustomizationThemedCodeTheme {
5709
5731
  light: CustomizationCodeTheme;
5710
5732
  dark: CustomizationCodeTheme;
5711
5733
  }
5734
+ /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
5735
+ export type LocalizedString = Record<TranslationLanguage, string>;
5712
5736
  /** @maxLength 64 */
5713
5737
  export type CustomizationContentLinkTitle = string;
5738
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
5739
+ export type LocalizedString64 = Record<TranslationLanguage, string>;
5714
5740
  export interface CustomizationContentLink {
5715
5741
  title: CustomizationContentLinkTitle;
5742
+ /** Localized overrides for the link title, keyed by locale. */
5743
+ localizedTitle?: LocalizedString64;
5716
5744
  /** A relative reference to content in GitBook. */
5717
5745
  to: ContentRef;
5718
5746
  }
5719
5747
  export interface CustomizationHeaderItem {
5720
5748
  title: string;
5749
+ /** Localized overrides for the header item title, keyed by locale. */
5750
+ localizedTitle?: LocalizedString;
5721
5751
  style?: "link" | "button-primary" | "button-secondary";
5722
5752
  to: ContentRef | null;
5723
5753
  links: CustomizationContentLink[];
@@ -5726,6 +5756,8 @@ export interface CustomizationHeaderItem {
5726
5756
  }
5727
5757
  export interface CustomizationFooterGroup {
5728
5758
  title: string;
5759
+ /** Localized overrides for the footer group title, keyed by locale. */
5760
+ localizedTitle?: LocalizedString;
5729
5761
  links: CustomizationContentLink[];
5730
5762
  }
5731
5763
  /**
@@ -5739,6 +5771,8 @@ export interface CustomizationAnnouncement {
5739
5771
  enabled: boolean;
5740
5772
  /** The text content of the announcement. */
5741
5773
  message: CustomizationAnnouncementMessage;
5774
+ /** Localized overrides for the announcement message, keyed by locale. */
5775
+ localizedMessage?: LocalizedString128;
5742
5776
  /** The content or URL the announcement links to when clicked. */
5743
5777
  link?: CustomizationContentLink;
5744
5778
  /** The style of the announcement. Used to style the banner with the right semantic color and enable/disable features like hiding the banner. */
@@ -5781,7 +5815,7 @@ export interface SiteCustomizationSettingsBase {
5781
5815
  /** Title to use for the published site. If not defined, it'll fallback to the default content title. */
5782
5816
  title?: SiteTitle;
5783
5817
  /** Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed. */
5784
- localizedTitle?: LocalizedTitle;
5818
+ localizedTitle?: LocalizedString128;
5785
5819
  styling: {
5786
5820
  /**
5787
5821
  * The theme to apply to the site. Supercedes the old header preset themes.
@@ -5875,7 +5909,7 @@ export interface SiteCustomizationSettingsBase {
5875
5909
  announcement?: CustomizationAnnouncement;
5876
5910
  /** Customization options for the dark/light theme modes. */
5877
5911
  themes: {
5878
- default: CustomizationThemeMode;
5912
+ default: CustomizationDefaultThemeMode;
5879
5913
  /** Should the reader be able to switch between dark and light mode */
5880
5914
  toggeable: boolean;
5881
5915
  };
@@ -6287,6 +6321,7 @@ export interface SiteQuestion {
6287
6321
  /** Type classification of the user question. */
6288
6322
  type: SiteQuestionType;
6289
6323
  createdAt: Timestamp;
6324
+ askedAt: Timestamp;
6290
6325
  /** Aggregated stats for questions and linked answers. */
6291
6326
  stats: SiteQuestionStats;
6292
6327
  /** URLs associated with the site question. */
@@ -6904,7 +6939,7 @@ export interface AIMessageContext {
6904
6939
  }
6905
6940
  /** Input version of an AI message. */
6906
6941
  export interface AIMessageInput {
6907
- role: "user";
6942
+ role: AIMessageRole;
6908
6943
  content: string | JSONDocument;
6909
6944
  /** Context about the current user sending a message. */
6910
6945
  context?: AIMessageContext;
@@ -7580,26 +7615,46 @@ export interface SiteMcpServer {
7580
7615
  location: string;
7581
7616
  };
7582
7617
  }
7618
+ /**
7619
+ * A generic channel name or pattern. For example, "general" or "support-*".
7620
+ * @pattern ^[a-zA-Z0-9_\*-]+$
7621
+ */
7622
+ export type GenericChannelPattern = string;
7623
+ /**
7624
+ * A GitHub repository name or pattern in the format "owner/repository". For example, "my-org/my-repo" or "my-org/*" to allow all repositories under "my-org".
7625
+ * @pattern ^[a-zA-Z0-9._*-]+\/[a-zA-Z0-9._*-]+$
7626
+ */
7627
+ export type GitHubRepositoryPattern = string;
7583
7628
  export type SiteChannelSetup = {
7584
7629
  type: "builtin:slack";
7585
- setupSettings: object;
7630
+ setupSettings: {
7631
+ /** List of allowed Slack channel names or patterns. If empty, all channels are allowed. */
7632
+ allowedChannels?: GenericChannelPattern[];
7633
+ };
7634
+ } | {
7635
+ type: "builtin:github";
7636
+ setupSettings: {
7637
+ /** List of allowed GitHub repository names or patterns. If empty, all repositories are allowed. */
7638
+ allowedRepositories?: GitHubRepositoryPattern[];
7639
+ };
7586
7640
  } | {
7587
7641
  type: "builtin:discord";
7588
- setupSettings: object;
7642
+ setupSettings: {
7643
+ /** List of allowed Discord channel names or patterns. If empty, all channels are allowed. */
7644
+ allowedChannels?: GenericChannelPattern[];
7645
+ };
7589
7646
  };
7590
- /** Usage settings for a site channel. */
7591
- export type SiteChannelUsageSettings = object;
7592
7647
  export type SiteChannel = SiteChannelSetup & {
7593
7648
  object: "site-channel";
7594
7649
  /** Unique identifier for the site channel. */
7595
7650
  id: string;
7651
+ status: SiteChannelStatus;
7652
+ role: SiteChannelRole;
7596
7653
  /**
7597
7654
  * Number of answers linked to this channel.
7598
7655
  * @min 0
7599
7656
  */
7600
7657
  answers: number;
7601
- /** Usage settings for a site channel. */
7602
- usageSettings: SiteChannelUsageSettings;
7603
7658
  createdAt: Timestamp;
7604
7659
  urls: {
7605
7660
  /**
@@ -8339,6 +8394,11 @@ export interface APIChannelSite {
8339
8394
  channel: "site";
8340
8395
  site: string;
8341
8396
  }
8397
+ /** Subscription channel for changes in site channels. */
8398
+ export interface APIChannelSiteChannels {
8399
+ channel: "site-channels";
8400
+ site: string;
8401
+ }
8342
8402
  /** Subscription channel for changes in site context. */
8343
8403
  export interface APIChannelSiteContext {
8344
8404
  channel: "site-context";
@@ -8529,8 +8589,8 @@ export interface MergeRulesEvaluationContext {
8529
8589
  /** The user who is attempting to merge the change request. */
8530
8590
  actor: User;
8531
8591
  }
8532
- /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
8533
- export type LocalizedString = Record<TranslationLanguage, string>;
8592
+ /** Localized content reference, keyed by locale. Contains overrides for non-default languages only. */
8593
+ export type LocalizedContentRef = Record<TranslationLanguage, ContentRef>;
8534
8594
  export type RequestSpaceTrackPageView = SpaceTrackPageView;
8535
8595
  export type RequestSiteTrackPageView = SiteTrackPageView;
8536
8596
  export type RequestPublishIntegration = PublishIntegration;
@@ -8803,37 +8863,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8803
8863
  message: string;
8804
8864
  };
8805
8865
  }>>;
8806
- /**
8807
- * @description Transfer a space to another organization, collection or both.
8808
- *
8809
- * @tags spaces
8810
- * @name TransferSpace
8811
- * @summary Transfer a space
8812
- * @request POST:/spaces/{spaceId}/transfer
8813
- * @secure
8814
- */
8815
- transferSpace: (spaceId: EntityId, data: {
8816
- /** The unique id of the target organization */
8817
- organization: string;
8818
- }, params?: RequestParams) => Promise<HttpResponse<Space, {
8819
- error: {
8820
- /** @format int32 */
8821
- code: 404;
8822
- message: string;
8823
- };
8824
- } | {
8825
- error: {
8826
- /** @format int32 */
8827
- code: 409;
8828
- message: string;
8829
- };
8830
- } | {
8831
- error: {
8832
- /** @format int32 */
8833
- code: 412;
8834
- message: string;
8835
- };
8836
- }>>;
8837
8866
  /**
8838
8867
  * No description
8839
8868
  *
@@ -13478,8 +13507,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13478
13507
  updateSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
13479
13508
  /** Title of the site section group */
13480
13509
  title?: SiteSectionGroupTitle;
13481
- /** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
13482
- localizedTitle?: LocalizedTitle;
13510
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
13511
+ localizedTitle?: LocalizedString128;
13483
13512
  icon?: Icon | null;
13484
13513
  /** Whether the site section group is draft and not live. */
13485
13514
  draft?: boolean;
@@ -13494,31 +13523,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13494
13523
  * @secure
13495
13524
  */
13496
13525
  deleteSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
13497
- /**
13498
- * No description
13499
- *
13500
- * @tags site-section-groups
13501
- * @name AddSectionToGroup
13502
- * @summary Add a section to a section group
13503
- * @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections
13504
- * @deprecated
13505
- * @secure
13506
- */
13507
- addSectionToGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
13508
- /** ID of the section to add to the section group */
13509
- sectionId: string;
13510
- }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
13511
- /**
13512
- * No description
13513
- *
13514
- * @tags site-section-groups
13515
- * @name RemoveSectionFromGroup
13516
- * @summary Remove a section from a section group
13517
- * @request DELETE:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}
13518
- * @deprecated
13519
- * @secure
13520
- */
13521
- removeSectionFromGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
13522
13526
  /**
13523
13527
  * No description
13524
13528
  *
@@ -13573,8 +13577,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13573
13577
  updateSiteSectionById: (organizationId: EntityId, siteId: string, siteSectionId: string, data: {
13574
13578
  /** Title of the site section */
13575
13579
  title?: SiteSectionTitle;
13576
- /** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
13577
- localizedTitle?: LocalizedTitle;
13580
+ /** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
13581
+ localizedTitle?: LocalizedString128;
13578
13582
  /** Path to the section on the site */
13579
13583
  path?: SiteSectionPath;
13580
13584
  /** ID of the site-space to be used as the default in this section. */
@@ -13585,8 +13589,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13585
13589
  /** Whether the site section is draft and not live. */
13586
13590
  draft?: boolean;
13587
13591
  description?: SiteSectionDescription | null;
13588
- /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
13589
- localizedDescription?: LocalizedSectionDescription;
13592
+ /** Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only. */
13593
+ localizedDescription?: LocalizedString256;
13590
13594
  /** ID of the section group to move the section into. Set to null to move the section to the root of the site. */
13591
13595
  siteSectionGroupId?: string | null;
13592
13596
  }, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
@@ -14077,10 +14081,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14077
14081
  to?: Timestamp;
14078
14082
  /** Filter questions by question type. */
14079
14083
  type?: SiteQuestionType;
14084
+ /** Filter questions by question relevance. */
14085
+ relevance?: SiteQuestionAnswerRelevance[];
14080
14086
  /** Filter questions by answer resolution. */
14081
- answered?: SiteQuestionAnswerResolution;
14082
- /** Filter questions by associated site topic ID. */
14083
- topic?: string;
14087
+ answered?: SiteQuestionAnswerResolution[];
14088
+ /** Filter questions by associated site topic IDs. */
14089
+ topic?: string[];
14090
+ /**
14091
+ * An order for the items in the list
14092
+ * @default "desc"
14093
+ */
14094
+ order?: "asc" | "desc";
14095
+ /** Sort questions by latest ask activity, answered rate, or positive feedback rate. If omitted, ordering stays on canonical question creation date to preserve current behavior. */
14096
+ sort?: "askedAt" | "stats.answered" | "stats.feedback";
14084
14097
  /** Identifier of the page results to fetch. */
14085
14098
  page?: string;
14086
14099
  /**
@@ -14101,7 +14114,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14101
14114
  * @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}
14102
14115
  * @secure
14103
14116
  */
14104
- getSiteQuestionById: (organizationId: EntityId, siteId: string, siteQuestionId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
14117
+ getSiteQuestionById: (organizationId: EntityId, siteId: string, siteQuestionId: string, query?: {
14118
+ /** Filter stats to answers created at or after this timestamp. */
14119
+ from?: Timestamp;
14120
+ /** Filter stats to answers created at or before this timestamp. */
14121
+ to?: Timestamp;
14122
+ /** Filter stats by question relevance. */
14123
+ relevance?: SiteQuestionAnswerRelevance[];
14124
+ /** Filter stats by answer resolution. */
14125
+ answered?: SiteQuestionAnswerResolution[];
14126
+ }, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
14105
14127
  /**
14106
14128
  * No description
14107
14129
  *
@@ -14120,6 +14142,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14120
14142
  * @max 1000
14121
14143
  */
14122
14144
  limit?: number;
14145
+ /** Filter sources to answers created at or after this timestamp. */
14146
+ from?: Timestamp;
14147
+ /** Filter sources to answers created at or before this timestamp. */
14148
+ to?: Timestamp;
14149
+ /** Filter answer sources by question relevance. */
14150
+ relevance?: SiteQuestionAnswerRelevance[];
14151
+ /** Filter answer sources by answer resolution. */
14152
+ answered?: SiteQuestionAnswerResolution[];
14123
14153
  }, params?: RequestParams) => Promise<HttpResponse<List & {
14124
14154
  items: SiteQuestionAnswerSource[];
14125
14155
  }, any>>;
@@ -14141,6 +14171,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14141
14171
  topic?: string[];
14142
14172
  /** Filter stats by question relevance. */
14143
14173
  relevance?: SiteQuestionAnswerRelevance[];
14174
+ /** Filter stats by answer resolution. */
14175
+ answered?: SiteQuestionAnswerResolution[];
14144
14176
  }, params?: RequestParams) => Promise<HttpResponse<SiteQuestionStats, any>>;
14145
14177
  /**
14146
14178
  * No description
@@ -14154,14 +14186,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14154
14186
  listSiteQuestionAnswers: (organizationId: EntityId, siteId: string, query?: {
14155
14187
  /** Filter answers to a specific site question ID. */
14156
14188
  question?: string;
14189
+ /** Filter answers created at or after this timestamp. */
14190
+ from?: Timestamp;
14191
+ /** Filter answers created at or before this timestamp. */
14192
+ to?: Timestamp;
14157
14193
  /** Filter answers by ISO language code. */
14158
14194
  language?: string;
14159
14195
  /** Filter answers by answered resolution. */
14160
- answered?: SiteQuestionAnswerResolution;
14196
+ answered?: SiteQuestionAnswerResolution[];
14161
14197
  /** Filter answers by answered helpfulness. */
14162
14198
  helpfulness?: SiteQuestionAnswerHelpfulness;
14163
14199
  /** Filter answers by question relevance. */
14164
- relevance?: SiteQuestionAnswerRelevance;
14200
+ relevance?: SiteQuestionAnswerRelevance[];
14165
14201
  /** Filter answers by question type. */
14166
14202
  "question.type"?: SiteQuestionType;
14167
14203
  /** Filter answers by associated site topic ID. */
@@ -14287,7 +14323,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14287
14323
  /** Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title. */
14288
14324
  title?: SiteTitle | null;
14289
14325
  /** Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed. */
14290
- localizedTitle?: LocalizedTitle | null;
14326
+ localizedTitle?: LocalizedString128 | null;
14291
14327
  styling?: {
14292
14328
  /** The site theme. Set to null to reset the override. */
14293
14329
  theme?: CustomizationTheme | null;
@@ -14361,7 +14397,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14361
14397
  };
14362
14398
  themes?: {
14363
14399
  /** The theme mode default value. Set to null to reset the override. */
14364
- default?: CustomizationThemeMode | null;
14400
+ default?: CustomizationDefaultThemeMode | null;
14365
14401
  /** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
14366
14402
  toggeable?: boolean | null;
14367
14403
  };
@@ -15065,8 +15101,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15065
15101
  * @secure
15066
15102
  */
15067
15103
  createSiteChannel: (organizationId: EntityId, siteId: string, data: SiteChannelSetup & {
15068
- /** Usage settings for a site channel. */
15069
- usageSettings?: SiteChannelUsageSettings;
15104
+ role?: SiteChannelRole;
15070
15105
  }, params?: RequestParams) => Promise<HttpResponse<SiteChannel, any>>;
15071
15106
  /**
15072
15107
  * No description
@@ -15078,6 +15113,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15078
15113
  * @secure
15079
15114
  */
15080
15115
  getSiteChannelById: (organizationId: EntityId, siteId: string, siteChannelId: string, params?: RequestParams) => Promise<HttpResponse<SiteChannel, any>>;
15116
+ /**
15117
+ * No description
15118
+ *
15119
+ * @tags site-channels
15120
+ * @name UpdateSiteChannelById
15121
+ * @summary Update a site channel
15122
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}
15123
+ * @secure
15124
+ */
15125
+ updateSiteChannelById: (organizationId: EntityId, siteId: string, siteChannelId: string, data: SiteChannelSetup | {
15126
+ role?: SiteChannelRole;
15127
+ }, params?: RequestParams) => Promise<HttpResponse<SiteChannel, any>>;
15081
15128
  /**
15082
15129
  * No description
15083
15130
  *
@@ -126,7 +126,7 @@ export declare const CUSTOMIZATION_HEADER_PRESET_ENUM: ["default", "bold", "cont
126
126
  export declare const CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH = 64;
127
127
  export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH = 128;
128
128
  export declare const CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH = 2;
129
- export declare const CUSTOMIZATION_THEME_MODE_ENUM: ["light", "dark"];
129
+ export declare const CUSTOMIZATION_DEFAULT_THEME_MODE_ENUM: ["light", "dark", "system"];
130
130
  export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
131
131
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
132
132
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
@@ -150,12 +150,12 @@ export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
150
150
  export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
151
151
  export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
152
152
  export declare const CONTEXT_SEARCH_BOOST_ENUM: ["x0.8", "x1.0", "x1.2"];
153
- export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
154
153
  export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
154
+ export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
155
155
  export declare const SITE_QUESTION_ANSWER_HELPFULNESS_ENUM: ["low", "medium", "high"];
156
156
  export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
157
- export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord"];
158
- export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
157
+ export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord", "builtin:github"];
158
+ export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant"];
159
159
  export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
160
160
  export declare const SITE_SETTINGS_SCAN_TOPICS_ENUM: ["auto", "never"];
161
161
  export declare const SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM: ["always", "auto-fixable", "never"];
@@ -174,6 +174,10 @@ export declare const SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH = 512;
174
174
  export declare const SITE_REDIRECT_SOURCE_PATH_PATTERN = "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$";
175
175
  export declare const SITE_MCP_SERVER_NAME_MAX_LENGTH = 100;
176
176
  export declare const SITE_MCP_SERVER_NAME_MIN_LENGTH = 1;
177
+ export declare const GENERIC_CHANNEL_PATTERN_PATTERN = "^[a-zA-Z0-9_\\*-]+$";
178
+ export declare const GIT_HUB_REPOSITORY_PATTERN_PATTERN = "^[a-zA-Z0-9._*-]+\\/[a-zA-Z0-9._*-]+$";
179
+ export declare const SITE_CHANNEL_STATUS_ENUM: ["active", "pending"];
180
+ export declare const SITE_CHANNEL_ROLE_ENUM: ["collaborator", "support"];
177
181
  export declare const CUSTOM_HOSTNAME_DNS_STATUS_ENUM: ["dns_passed", "dns_wrong_cname", "dns_no_cname", "dns_cloudflare_proxied", "dns_wrong_caa"];
178
182
  export declare const CUSTOM_HOSTNAME_SSL_STATUS_ENUM: ["live", "ssl_unknown", "ssl_pending", "ssl_failed", "ssl_retry_expired"];
179
183
  export declare const CUSTOM_HOSTNAME_ERROR_STATUS_ENUM: ["invalid_domain", "internal_error"];
@@ -189,6 +193,7 @@ export declare const GIT_SYNC_OPERATION_DIRECTION_ENUM: ["export", "import"];
189
193
  export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check", "content_process", "finalize"];
190
194
  export declare const BILLING_STATUS_ENUM: ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
191
195
  export declare const APIINTEGRATION_SCOPE_ENUM: ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
196
+ export declare const CUSTOMIZATION_THEME_MODE_ENUM: ["light", "dark"];
192
197
  export declare const SITE_ADS_STATUS_ENUM: ["pending", "in-review", "live", "rejected", "disabled"];
193
198
  export declare const SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM: ["page", "record"];
194
199
  export declare const AGENT_STATUS_ENUM: ["idle", "processing", "errored"];