@gitbook/api 0.179.0 → 0.181.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
@@ -143,6 +143,14 @@ export declare enum SiteChannelStatus {
143
143
  Active = "active",
144
144
  Pending = "pending"
145
145
  }
146
+ /**
147
+ * Transport protocol used to connect to the MCP server
148
+ * @default "sse"
149
+ */
150
+ export declare enum SiteMcpServerTransport {
151
+ Sse = "sse",
152
+ Http = "http"
153
+ }
146
154
  export declare enum SiteInsightsQueryRangePreset {
147
155
  LastYear = "lastYear",
148
156
  Last3Months = "last3Months",
@@ -166,6 +174,8 @@ export declare enum SiteInsightsVisitorBot {
166
174
  Facebookbot = "facebookbot",
167
175
  Applebot = "applebot",
168
176
  Chatgpt = "chatgpt",
177
+ Openai = "openai",
178
+ Claude = "claude",
169
179
  Anthropic = "anthropic",
170
180
  Gemini = "gemini",
171
181
  Perplexity = "perplexity",
@@ -179,7 +189,9 @@ export declare enum SiteInsightsVisitorBot {
179
189
  Youbot = "youbot",
180
190
  Cursor = "cursor",
181
191
  Vscode = "vscode",
182
- ClaudeCode = "claude-code"
192
+ ClaudeCode = "claude-code",
193
+ Codex = "codex",
194
+ Opencode = "opencode"
183
195
  }
184
196
  export declare enum SiteInsightsVisitorOS {
185
197
  Windows = "windows",
@@ -270,27 +282,28 @@ export declare enum AIModel {
270
282
  ReasoningMedium = "reasoning-medium",
271
283
  ReasoningHigh = "reasoning-high"
272
284
  }
285
+ /**
286
+ * The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time.
287
+ * @default "normal"
288
+ */
289
+ export declare enum AIMessageMode {
290
+ Normal = "normal",
291
+ Fast = "fast"
292
+ }
273
293
  /** The phase of a step in a message from the AI agent. */
274
294
  export declare enum AIMessageStepPhase {
275
295
  Commentary = "commentary",
276
296
  FinalAnswer = "final_answer"
277
297
  }
298
+ /** Describe the state in which the steps started. */
299
+ export declare enum AIMessageStepStartCondition {
300
+ Compaction = "compaction"
301
+ }
278
302
  export declare enum AIMessageRole {
279
303
  User = "user",
280
304
  Assistant = "assistant",
281
305
  Developer = "developer"
282
306
  }
283
- export declare enum SiteConfigurableChannelType {
284
- BuiltinSlack = "builtin:slack",
285
- BuiltinDiscord = "builtin:discord",
286
- BuiltinGithub = "builtin:github",
287
- BuiltinLinear = "builtin:linear"
288
- }
289
- export declare enum SiteCoreChannelType {
290
- Site = "site",
291
- Embed = "embed",
292
- Api = "api"
293
- }
294
307
  /** Helpfulness of the response for the end user need. */
295
308
  export declare enum SiteQuestionAnswerHelpfulness {
296
309
  Low = "low",
@@ -303,6 +316,17 @@ export declare enum SiteQuestionAnswerResolution {
303
316
  Partially = "partially",
304
317
  Yes = "yes"
305
318
  }
319
+ export declare enum SiteConfigurableChannelType {
320
+ BuiltinSlack = "builtin:slack",
321
+ BuiltinDiscord = "builtin:discord",
322
+ BuiltinGithub = "builtin:github",
323
+ BuiltinLinear = "builtin:linear"
324
+ }
325
+ export declare enum SiteCoreChannelType {
326
+ Site = "site",
327
+ Embed = "embed",
328
+ Api = "api"
329
+ }
306
330
  /** Relevance classification of the user question. */
307
331
  export declare enum SiteQuestionAnswerRelevance {
308
332
  Relevant = "relevant",
@@ -680,6 +704,7 @@ export declare enum SiteFeatureKey {
680
704
  SitesAds = "sites-ads",
681
705
  SitesAiSearch = "sites-ai-search",
682
706
  SitesAiAssistant = "sites-ai-assistant",
707
+ SitesAiInsights = "sites-ai-insights",
683
708
  SitesConnections = "sites-connections",
684
709
  SitesChannels = "sites-channels",
685
710
  SitesEmbed = "sites-embed",
@@ -988,6 +1013,11 @@ export declare enum GitSyncProvider {
988
1013
  Gitlab = "gitlab",
989
1014
  GithubLegacy = "github-legacy"
990
1015
  }
1016
+ export declare enum GitSyncInstallationStatus {
1017
+ Unauthenticated = "unauthenticated",
1018
+ Active = "active",
1019
+ Pending = "pending"
1020
+ }
991
1021
  export declare enum TranslationLanguage {
992
1022
  En = "en",
993
1023
  Fr = "fr",
@@ -1058,9 +1088,19 @@ export declare enum ContentVisibility {
1058
1088
  /** Data passed through a realtime channel */
1059
1089
  export type APIChannelData = APIChannelGitSyncOperationData | APIChannelSpaceContentRefsData | APIChannelChangeRequestContentRefsData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
1060
1090
  /** Channel to subscribe to for realtime updates. */
1061
- 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;
1062
- /** Provider-specific setup payload for a Git Sync installation. */
1063
- export type GitSyncInstallationSetup = GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab;
1091
+ 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 | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
1092
+ /** Resource targeted by a Git Sync installation. */
1093
+ export type GitSyncInstallationTarget = {
1094
+ /** Type of resource targeted by the Git Sync installation. */
1095
+ type: "space";
1096
+ /** Unique identifier of the space targeted by the Git Sync installation. */
1097
+ spaceId: string;
1098
+ } | {
1099
+ /** Type of resource targeted by the Git Sync installation. */
1100
+ type: "site";
1101
+ /** Unique identifier of the site targeted by the Git Sync installation. */
1102
+ siteId: string;
1103
+ };
1064
1104
  export type PublishedContentRedirect = {
1065
1105
  /** Type of target for the redirect */
1066
1106
  target: "application" | "content";
@@ -1210,10 +1250,16 @@ export type MergeRulesSpaceConfiguration = MergeRulesConfigurationInherit | Merg
1210
1250
  export interface GitSyncState {
1211
1251
  /** Repository name. */
1212
1252
  repoName?: string;
1253
+ installationStatus?: GitSyncInstallationStatus;
1213
1254
  /** The provider of the Git Sync installation. */
1214
1255
  installationProvider?: GitSyncProvider;
1215
- /** The integration name providing the Git Sync. */
1256
+ /**
1257
+ * The integration name providing the Git Sync.
1258
+ * @deprecated
1259
+ */
1216
1260
  integration?: string;
1261
+ /** The ID of the Git Sync installation. */
1262
+ installationId?: string;
1217
1263
  /** The URL to the repository tree, used when rendering public content. */
1218
1264
  url?: string;
1219
1265
  /** When the Git provider details were last updated */
@@ -2143,6 +2189,12 @@ export interface DocumentBlockIntegration {
2143
2189
  fullWidth?: boolean;
2144
2190
  };
2145
2191
  isVoid: true;
2192
+ meta?: {
2193
+ /** A content token that can be used to authenticate requests for cross-space integration blocks. */
2194
+ token?: string;
2195
+ /** ID of the space the integration block originates from */
2196
+ spaceId?: string;
2197
+ };
2146
2198
  }
2147
2199
  export interface DocumentBlockExpandable {
2148
2200
  object: "block";
@@ -2507,6 +2559,7 @@ export interface TranslationResult {
2507
2559
  space: string;
2508
2560
  /** ID of the revision generated by the translation */
2509
2561
  revision: string;
2562
+ language: TranslationLanguage;
2510
2563
  }
2511
2564
  export interface ComputedContentDependencyTranslation {
2512
2565
  ref: TranslationRef;
@@ -2635,6 +2688,11 @@ export interface ComputedContentSourceDocumentTranslation {
2635
2688
  space: string;
2636
2689
  document: string;
2637
2690
  };
2691
+ dependencies: {
2692
+ translation: {
2693
+ ref: TranslationRef;
2694
+ } | ComputedContentDependencyTranslation;
2695
+ };
2638
2696
  }
2639
2697
  export type ComputedContentSourceDocument = ComputedContentSourceDocumentOpenAPI | ComputedContentSourceDocumentTranslation | ComputedContentSourceIntegration;
2640
2698
  export type RevisionPageGroup = RevisionPageBase & {
@@ -3657,6 +3715,7 @@ export interface OrganizationMember {
3657
3715
  sso: boolean;
3658
3716
  spaces: number;
3659
3717
  teams: number;
3718
+ sites: number;
3660
3719
  }
3661
3720
  /**
3662
3721
  * Title of the integration
@@ -4163,6 +4222,8 @@ export type FetchPublishedScriptEvent = SiteEvent & {
4163
4222
  export type FetchVisitorAuthenticationEvent = SiteEvent & {
4164
4223
  type: "fetch_visitor_authentication";
4165
4224
  location?: string;
4225
+ /** The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect. */
4226
+ action?: "logout";
4166
4227
  };
4167
4228
  /** Common properties for ContentKit context. */
4168
4229
  export interface ContentKitContextBase {
@@ -4429,6 +4490,7 @@ export interface Site {
4429
4490
  /** Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting. */
4430
4491
  published: boolean;
4431
4492
  siteSpaces: number;
4493
+ gitSync?: GitSyncState;
4432
4494
  /** @format date-time */
4433
4495
  createdAt: string;
4434
4496
  adaptiveContent?: SiteAdaptiveContent;
@@ -4462,6 +4524,11 @@ export interface Site {
4462
4524
  * @format uri
4463
4525
  */
4464
4526
  login?: string;
4527
+ /**
4528
+ * URL of the logout endpoint for visitors to sign out from the site auth backend.
4529
+ * @format uri
4530
+ */
4531
+ logout?: string;
4465
4532
  };
4466
4533
  }
4467
4534
  export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
@@ -4986,6 +5053,12 @@ export interface MemberContentPermission {
4986
5053
  permission: MemberRole;
4987
5054
  space: Space;
4988
5055
  }
5056
+ /** Permission of an organization member in a site. */
5057
+ export interface MemberSitePermission {
5058
+ site: Site;
5059
+ /** The role of a member in an organization, null for guests */
5060
+ permission: MemberRoleOrGuest;
5061
+ }
4989
5062
  export interface TeamMember {
4990
5063
  /**
4991
5064
  * "The role of a team member.
@@ -5688,6 +5761,8 @@ export interface ContentImportRun {
5688
5761
  completedAt?: Timestamp;
5689
5762
  /** Status of the import */
5690
5763
  status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
5764
+ /** Reason for the import failure when `status` is `failed`. */
5765
+ reason?: string;
5691
5766
  /** Pages included in the import */
5692
5767
  pages?: {
5693
5768
  /** ID of page */
@@ -6114,6 +6189,11 @@ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrat
6114
6189
  * @format uri
6115
6190
  */
6116
6191
  fallbackURL?: string;
6192
+ /**
6193
+ * URL used to log visitors out from the upstream custom auth backend.
6194
+ * @format uri
6195
+ */
6196
+ logoutURL?: string;
6117
6197
  /**
6118
6198
  * Name of the authenticated access integration installed on the site (if any).
6119
6199
  * It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
@@ -6126,6 +6206,11 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
6126
6206
  * @format uri
6127
6207
  */
6128
6208
  fallbackURL?: string | null;
6209
+ /**
6210
+ * A logout URL used to log visitors out from the upstream custom auth backend. If not provided, the logout URL will not be changed. If set to null, the logout URL will be unset.
6211
+ * @format uri
6212
+ */
6213
+ logoutURL?: string | null;
6129
6214
  };
6130
6215
  export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
6131
6216
  export type SiteSearchScope = {
@@ -6538,6 +6623,7 @@ export interface SiteTopic {
6538
6623
  location: string;
6539
6624
  };
6540
6625
  }
6626
+ export type SiteChannelType = SiteCoreChannelType | SiteConfigurableChannelType;
6541
6627
  export interface SiteQuestionAnswerSourceBase {
6542
6628
  object: "site-question-answer-source";
6543
6629
  /** The ID of the source. */
@@ -6717,24 +6803,32 @@ export interface AIToolCallEditPage {
6717
6803
  tool: "editPage";
6718
6804
  /** The ID of the space being edited. */
6719
6805
  spaceId: string;
6806
+ /** The base revision ID used to compare the page change in the current conversation. */
6807
+ baseRevisionId: string;
6720
6808
  page: ChangedRevisionPage;
6721
6809
  }
6722
6810
  export interface AIToolCallCreatePage {
6723
6811
  tool: "createPage";
6724
6812
  /** The ID of the space being edited. */
6725
6813
  spaceId: string;
6814
+ /** The base revision ID used to compare the page change in the current conversation. */
6815
+ baseRevisionId: string;
6726
6816
  page: ChangedRevisionPage;
6727
6817
  }
6728
6818
  export interface AIToolCallDeletePage {
6729
6819
  tool: "deletePage";
6730
6820
  /** The ID of the space being edited. */
6731
6821
  spaceId: string;
6822
+ /** The base revision ID used to compare the page deletion in the current conversation. */
6823
+ baseRevisionId: string;
6732
6824
  page: ChangedRevisionPage;
6733
6825
  }
6734
6826
  export interface AIToolCallRenamePage {
6735
6827
  tool: "renamePage";
6736
6828
  /** The ID of the space being edited. */
6737
6829
  spaceId: string;
6830
+ /** The base revision ID used to compare the page rename in the current conversation. */
6831
+ baseRevisionId: string;
6738
6832
  page: ChangedRevisionPage;
6739
6833
  /** The new title of the page. */
6740
6834
  title: string;
@@ -6743,6 +6837,8 @@ export interface AIToolCallMovePage {
6743
6837
  tool: "movePage";
6744
6838
  /** The ID of the space being edited. */
6745
6839
  spaceId: string;
6840
+ /** The base revision ID used to compare the page move in the current conversation. */
6841
+ baseRevisionId: string;
6746
6842
  page: ChangedRevisionPage;
6747
6843
  to?: ChangedRevisionPage;
6748
6844
  /**
@@ -6768,12 +6864,16 @@ export interface AIToolCallCreateReusableContent {
6768
6864
  tool: "createReusableContent";
6769
6865
  /** The ID of the space being edited. */
6770
6866
  spaceId: string;
6867
+ /** The base revision ID used to compare the reusable content change in the current conversation. */
6868
+ baseRevisionId: string;
6771
6869
  reusableContent: ChangedRevisionReusableContent;
6772
6870
  }
6773
6871
  export interface AIToolCallEditReusableContent {
6774
6872
  tool: "editReusableContent";
6775
6873
  /** The ID of the space being edited. */
6776
6874
  spaceId: string;
6875
+ /** The base revision ID used to compare the reusable content change in the current conversation. */
6876
+ baseRevisionId: string;
6777
6877
  reusableContent: ChangedRevisionReusableContent;
6778
6878
  }
6779
6879
  export interface AIToolCallGetReusableContent {
@@ -6862,6 +6962,8 @@ export interface Timerange {
6862
6962
  export interface AIAttachmentImage {
6863
6963
  type: "image";
6864
6964
  url: URL;
6965
+ /** Name of the image file. */
6966
+ filename?: string;
6865
6967
  }
6866
6968
  export interface AIAttachmentFile {
6867
6969
  type: "file";
@@ -6871,8 +6973,28 @@ export interface AIAttachmentFile {
6871
6973
  contentType: "application/pdf";
6872
6974
  }
6873
6975
  export type AIAttachment = AIAttachmentImage | AIAttachmentFile;
6976
+ /** Context about the current user sending a message. */
6977
+ export interface AIMessageContext {
6978
+ location?: {
6979
+ /** ID of the current space. */
6980
+ spaceId: string;
6981
+ /** ID of the current page. */
6982
+ pageId: string;
6983
+ };
6984
+ /** Range of the current selection in a document. */
6985
+ selection?: {
6986
+ anchorKey: string | null;
6987
+ anchorOffset: number;
6988
+ focusKey: string | null;
6989
+ focusOffset: number;
6990
+ /** Snapshot of the selection for display. */
6991
+ content?: string;
6992
+ };
6993
+ }
6874
6994
  /** A step in a message from the AI agent. */
6875
6995
  export interface AIMessageStep {
6996
+ /** Describe the state in which the steps started. */
6997
+ startCondition?: AIMessageStepStartCondition;
6876
6998
  content?: JSONDocument;
6877
6999
  reasoning?: JSONDocument;
6878
7000
  toolCalls?: AIToolCall[];
@@ -6883,6 +7005,8 @@ export interface AIMessageStep {
6883
7005
  reasoning?: Timerange;
6884
7006
  };
6885
7007
  attachments?: AIAttachment[];
7008
+ /** Context about the current user sending a message. */
7009
+ context?: AIMessageContext;
6886
7010
  }
6887
7011
  /** When the agent is responding to a comment. */
6888
7012
  export type AIMessageTask = {
@@ -7008,22 +7132,6 @@ export interface TeamSitePermissionOverride {
7008
7132
  permission: MemberRoleOrGuest;
7009
7133
  team: OrganizationTeam;
7010
7134
  }
7011
- /** Context about the current user sending a message. */
7012
- export interface AIMessageContext {
7013
- location?: {
7014
- /** ID of the current space. */
7015
- spaceId: string;
7016
- /** ID of the current page. */
7017
- pageId: string;
7018
- };
7019
- /** Range of the current selection in a document. */
7020
- selection?: {
7021
- anchorKey: string | null;
7022
- anchorOffset: number;
7023
- focusKey: string | null;
7024
- focusOffset: number;
7025
- };
7026
- }
7027
7135
  /** Input version of an AI message. */
7028
7136
  export interface AIMessageInput {
7029
7137
  role: AIMessageRole;
@@ -7031,6 +7139,8 @@ export interface AIMessageInput {
7031
7139
  /** Context about the current user sending a message. */
7032
7140
  context?: AIMessageContext;
7033
7141
  attachments?: AIAttachment[];
7142
+ /** The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time. */
7143
+ mode?: AIMessageMode;
7034
7144
  }
7035
7145
  /** Description of a tool that can be called from an AI agent. */
7036
7146
  export interface AIToolDefinition {
@@ -7151,7 +7261,15 @@ export interface AIStreamResponseAttachment {
7151
7261
  stepIndex: number;
7152
7262
  attachment: AIAttachment;
7153
7263
  }
7154
- export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseStepStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment;
7264
+ /** Message emitted by the server to indicate a context compaction event. */
7265
+ export interface AIStreamResponseCompaction {
7266
+ type: "response_compaction";
7267
+ /** The ID of the message that this event is composing. */
7268
+ messageId: string;
7269
+ /** The index of the step of the message that this event is composing. */
7270
+ stepIndex: number;
7271
+ }
7272
+ export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseStepStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment | AIStreamResponseCompaction;
7155
7273
  export interface SiteAgentSettingsInput {
7156
7274
  /** Settings related to scanning for a site. */
7157
7275
  scans: {
@@ -7701,6 +7819,8 @@ export interface SiteMcpServer {
7701
7819
  /** Name of the MCP server */
7702
7820
  name: SiteMcpServerName;
7703
7821
  url: URL;
7822
+ /** Transport protocol used to connect to the MCP server */
7823
+ transport: SiteMcpServerTransport;
7704
7824
  /** HTTP headers sent with requests to this server */
7705
7825
  headers: SiteMcpServerHeaders;
7706
7826
  /** Conditional expression used to evaluate whether the MCP server should be available to the site's visitor. */
@@ -7976,11 +8096,6 @@ export interface SiteVisitorPayload {
7976
8096
  jwtToken?: string;
7977
8097
  unsignedClaims?: PlainObject;
7978
8098
  }
7979
- /** Resource targeted by a Git Sync installation. Currently only spaces are supported. */
7980
- export interface GitSyncInstallationTarget {
7981
- /** Unique identifier of the space targeted by the Git Sync installation. */
7982
- spaceId: string;
7983
- }
7984
8099
  /** Common setup fields for a Git Sync installation. */
7985
8100
  export interface GitSyncInstallationSetupCommon {
7986
8101
  /** Optional directory used when syncing a monorepo subdirectory. */
@@ -7996,18 +8111,21 @@ export interface GitSyncInstallationSetupCommon {
7996
8111
  priority?: GitSyncInstallationPriority;
7997
8112
  }
7998
8113
  /** GitHub provider configuration for a Git Sync installation. */
7999
- export type GitSyncInstallationSetupGitHub = GitSyncInstallationSetupCommon & {
8114
+ export interface GitSyncInstallationSetupGitHub {
8000
8115
  provider: "github";
8001
8116
  /** GitHub specific configuration for the Git Sync installation. */
8002
8117
  providerConfiguration: {
8003
8118
  /** GitHub repository identifier. */
8004
8119
  repositoryId?: number;
8005
- /** GitHub repository branch. */
8120
+ /**
8121
+ * GitHub repository branch ref.
8122
+ * @pattern ^refs/heads/.+$
8123
+ */
8006
8124
  branch?: string;
8007
8125
  };
8008
- };
8126
+ }
8009
8127
  /** GitLab provider configuration for a Git Sync installation. */
8010
- export type GitSyncInstallationSetupGitLab = GitSyncInstallationSetupCommon & {
8128
+ export interface GitSyncInstallationSetupGitLab {
8011
8129
  provider: "gitlab";
8012
8130
  /** GitLab specific configuration for the Git Sync installation. */
8013
8131
  providerConfiguration: {
@@ -8015,22 +8133,36 @@ export type GitSyncInstallationSetupGitLab = GitSyncInstallationSetupCommon & {
8015
8133
  projectId?: number;
8016
8134
  /** GitLab access token with appropriate scopes for repository access. */
8017
8135
  accessToken?: string;
8018
- /** Custom GitLab instance URL, if using a self-hosted GitLab. */
8019
- customInstanceURL?: string;
8020
- /** GitLab repository branch. */
8136
+ /** Custom GitLab instance URL, if using a self-hosted GitLab. Use null to clear a self-hosted URL. */
8137
+ customInstanceURL?: string | null;
8138
+ /**
8139
+ * GitLab repository branch ref.
8140
+ * @pattern ^refs/heads/.+$
8141
+ */
8021
8142
  branch?: string;
8022
8143
  };
8023
- };
8144
+ }
8145
+ /** Provider-specific setup payload for a Git Sync installation. */
8146
+ export type GitSyncInstallationSetup = GitSyncInstallationSetupCommon & (GitSyncInstallationSetupGitHub | GitSyncInstallationSetupGitLab);
8024
8147
  export type GitSyncInstallation = GitSyncInstallationSetup & {
8025
8148
  object: "git-sync-installation";
8026
8149
  /** Unique identifier of the Git Sync installation. */
8027
8150
  id: string;
8028
- /** Resource targeted by a Git Sync installation. Currently only spaces are supported. */
8151
+ /** Resource targeted by a Git Sync installation. */
8029
8152
  target: GitSyncInstallationTarget;
8153
+ status: GitSyncInstallationStatus;
8030
8154
  createdAt: Timestamp;
8031
8155
  /** Identifier of the user who created the installation. */
8032
8156
  createdBy: string;
8033
8157
  updatedAt: Timestamp;
8158
+ /** URLs associated with the installation */
8159
+ urls: {
8160
+ /**
8161
+ * URL of the installation endpoint in the API
8162
+ * @format uri
8163
+ */
8164
+ location: string;
8165
+ };
8034
8166
  };
8035
8167
  /** GitHub repository that can be selected for Git Sync. */
8036
8168
  export interface GitSyncGitHubRepository {
@@ -8657,6 +8789,10 @@ export interface APIChannelCustomHostname {
8657
8789
  channel: "custom-hostname";
8658
8790
  customHostname: string;
8659
8791
  }
8792
+ export interface APIChannelGitSyncInstallation {
8793
+ channel: "git-sync-installation";
8794
+ installation: string;
8795
+ }
8660
8796
  export interface APIChannelGitSyncOperation {
8661
8797
  channel: "space-gitsync-operation";
8662
8798
  space: string;
@@ -8731,7 +8867,6 @@ export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDe
8731
8867
  properties: Record<string, SiteAdaptiveDeterministicJSONSchemaClaimsProperties>;
8732
8868
  additionalProperties: false;
8733
8869
  };
8734
- export type SiteChannelType = SiteCoreChannelType | SiteConfigurableChannelType;
8735
8870
  export interface Seat {
8736
8871
  object: "seat";
8737
8872
  /** The unique ID of the organization */
@@ -8756,8 +8891,10 @@ export interface AgentStreamMessageResponse {
8756
8891
  }
8757
8892
  export interface AgentState {
8758
8893
  status: AgentStatus;
8759
- /** A list of response suggestions for the user to select from. */
8894
+ /** List of response suggestions for the user to select from. */
8760
8895
  suggestions: string[];
8896
+ /** List of messages sent by the users queued to processed. */
8897
+ queuedMessages: AIMessageInput[];
8761
8898
  }
8762
8899
  /** Payload emitted by the agent with its current state. */
8763
8900
  export interface AgentStreamState {
@@ -9433,6 +9570,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9433
9570
  getPageById: (spaceId: EntityId, pageId: EntityId, query?: {
9434
9571
  /** Output format for the content. */
9435
9572
  format?: "document" | "markdown";
9573
+ /**
9574
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
9575
+ *
9576
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
9577
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
9578
+ * @default "relative"
9579
+ */
9580
+ "format.markdown.refs"?: "relative" | "stable";
9436
9581
  /**
9437
9582
  * Controls whether the document should be evaluated.
9438
9583
  * - When set to `true`, the entire document will be evaluated.
@@ -9531,6 +9676,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9531
9676
  getPageByPath: (spaceId: EntityId, pagePath: string, query?: {
9532
9677
  /** Output format for the content. */
9533
9678
  format?: "document" | "markdown";
9679
+ /**
9680
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
9681
+ *
9682
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
9683
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
9684
+ * @default "relative"
9685
+ */
9686
+ "format.markdown.refs"?: "relative" | "stable";
9534
9687
  /**
9535
9688
  * Controls whether the document should be evaluated.
9536
9689
  * - When set to `true`, the entire document will be evaluated.
@@ -10187,6 +10340,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10187
10340
  getPageInChangeRequestById: (spaceId: EntityId, changeRequestId: EntityId, pageId: EntityId, query?: {
10188
10341
  /** Output format for the content. */
10189
10342
  format?: "document" | "markdown";
10343
+ /**
10344
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
10345
+ *
10346
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
10347
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
10348
+ * @default "relative"
10349
+ */
10350
+ "format.markdown.refs"?: "relative" | "stable";
10190
10351
  /**
10191
10352
  * Controls whether the document should be evaluated.
10192
10353
  * - When set to `true`, the entire document will be evaluated.
@@ -10461,6 +10622,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10461
10622
  getPageInRevisionById: (spaceId: EntityId, revisionId: EntityId, pageId: EntityId, query?: {
10462
10623
  /** Output format for the content. */
10463
10624
  format?: "document" | "markdown";
10625
+ /**
10626
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
10627
+ *
10628
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
10629
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
10630
+ * @default "relative"
10631
+ */
10632
+ "format.markdown.refs"?: "relative" | "stable";
10464
10633
  /**
10465
10634
  * Controls whether the document should be evaluated.
10466
10635
  * - When set to `true`, the entire document will be evaluated.
@@ -10525,6 +10694,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10525
10694
  getPageInRevisionByPath: (spaceId: EntityId, revisionId: EntityId, pagePath: string, query?: {
10526
10695
  /** Output format for the content. */
10527
10696
  format?: "document" | "markdown";
10697
+ /**
10698
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
10699
+ *
10700
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
10701
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
10702
+ * @default "relative"
10703
+ */
10704
+ "format.markdown.refs"?: "relative" | "stable";
10528
10705
  /**
10529
10706
  * Controls whether the document should be evaluated.
10530
10707
  * - When set to `true`, the entire document will be evaluated.
@@ -10573,6 +10750,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10573
10750
  getPageInChangeRequestByPath: (spaceId: EntityId, changeRequestId: EntityId, pagePath: string, query?: {
10574
10751
  /** Output format for the content. */
10575
10752
  format?: "document" | "markdown";
10753
+ /**
10754
+ * Controls how content references are formatted in markdown output. Ignored unless `format=markdown`.
10755
+ *
10756
+ * - `relative`: Format page references as relative links from the current page. Other references might not be handled.
10757
+ * - `stable`: Format content references as stable idempotent refs containing their identifiers.
10758
+ * @default "relative"
10759
+ */
10760
+ "format.markdown.refs"?: "relative" | "stable";
10576
10761
  /**
10577
10762
  * Controls whether the document should be evaluated.
10578
10763
  * - When set to `true`, the entire document will be evaluated.
@@ -14291,6 +14476,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14291
14476
  type?: SiteQuestionType;
14292
14477
  /** Filter questions by question relevance. */
14293
14478
  relevance?: SiteQuestionAnswerRelevance[];
14479
+ /** Filter questions by answer channel type. */
14480
+ channelType?: SiteChannelType[];
14294
14481
  /** Filter questions by answer resolution. */
14295
14482
  answered?: SiteQuestionAnswerResolution[];
14296
14483
  /** Filter questions by associated site topic IDs. */
@@ -14329,6 +14516,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14329
14516
  to?: Timestamp;
14330
14517
  /** Filter stats by question relevance. */
14331
14518
  relevance?: SiteQuestionAnswerRelevance[];
14519
+ /** Filter stats by answer channel type. */
14520
+ channelType?: SiteChannelType[];
14332
14521
  /** Filter stats by answer resolution. */
14333
14522
  answered?: SiteQuestionAnswerResolution[];
14334
14523
  }, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
@@ -14356,6 +14545,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14356
14545
  to?: Timestamp;
14357
14546
  /** Filter answer sources by question relevance. */
14358
14547
  relevance?: SiteQuestionAnswerRelevance[];
14548
+ /** Filter answer sources by answer channel type. */
14549
+ channelType?: SiteChannelType[];
14359
14550
  /** Filter answer sources by answer resolution. */
14360
14551
  answered?: SiteQuestionAnswerResolution[];
14361
14552
  }, params?: RequestParams) => Promise<HttpResponse<List & {
@@ -14379,6 +14570,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14379
14570
  topic?: string[];
14380
14571
  /** Filter stats by question relevance. */
14381
14572
  relevance?: SiteQuestionAnswerRelevance[];
14573
+ /** Filter stats by answer channel type. */
14574
+ channelType?: SiteChannelType[];
14382
14575
  /** Filter stats by answer resolution. */
14383
14576
  answered?: SiteQuestionAnswerResolution[];
14384
14577
  }, params?: RequestParams) => Promise<HttpResponse<SiteQuestionStats, any>>;
@@ -14406,6 +14599,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14406
14599
  helpfulness?: SiteQuestionAnswerHelpfulness;
14407
14600
  /** Filter answers by question relevance. */
14408
14601
  relevance?: SiteQuestionAnswerRelevance[];
14602
+ /** Filter answers by answer channel type. */
14603
+ channelType?: SiteChannelType[];
14409
14604
  /** Filter answers by question type. */
14410
14605
  "question.type"?: SiteQuestionType;
14411
14606
  /** Filter answers by associated site topic ID. */
@@ -15235,6 +15430,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15235
15430
  /** Name of the MCP server */
15236
15431
  name: SiteMcpServerName;
15237
15432
  url: URL;
15433
+ /** Transport protocol used to connect to the MCP server */
15434
+ transport?: SiteMcpServerTransport;
15238
15435
  /** HTTP headers sent with requests to this server */
15239
15436
  headers: SiteMcpServerHeaders;
15240
15437
  /** Conditional expression used to evaluate whether the MCP server should be available to the site's visitor (should evaluate to a boolean). If set to null, the condition will be removed. */
@@ -15267,6 +15464,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15267
15464
  * @maxLength 2048
15268
15465
  */
15269
15466
  url?: string;
15467
+ /** Transport protocol used to connect to the MCP server */
15468
+ transport?: SiteMcpServerTransport;
15270
15469
  /** HTTP headers sent with requests to this server */
15271
15470
  headers?: SiteMcpServerHeaders;
15272
15471
  /** Conditional expression used to evaluate whether the MCP server should be available 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. */
@@ -15635,7 +15834,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15635
15834
  installGitSyncProviderOnTarget: (data: {
15636
15835
  /** The provider of the Git Sync installation. */
15637
15836
  provider: GitSyncInstallationProvider;
15638
- /** Resource targeted by a Git Sync installation. Currently only spaces are supported. */
15837
+ /** Resource targeted by a Git Sync installation. */
15639
15838
  target: GitSyncInstallationTarget;
15640
15839
  }, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, {
15641
15840
  error: {
@@ -15650,6 +15849,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15650
15849
  message: string;
15651
15850
  };
15652
15851
  }>>;
15852
+ /**
15853
+ * No description
15854
+ *
15855
+ * @tags git
15856
+ * @name GetGitSyncInstallationById
15857
+ * @summary Get a Git Sync installation
15858
+ * @request GET:/git/installations/{installationId}
15859
+ * @secure
15860
+ */
15861
+ getGitSyncInstallationById: (installationId: string, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, {
15862
+ error: {
15863
+ /** @format int32 */
15864
+ code: 401;
15865
+ message: string;
15866
+ };
15867
+ } | {
15868
+ error: {
15869
+ /** @format int32 */
15870
+ code: 404;
15871
+ message: string;
15872
+ };
15873
+ }>>;
15653
15874
  /**
15654
15875
  * No description
15655
15876
  *