@gitbook/api 0.197.0 → 0.199.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
@@ -35,6 +35,29 @@ export declare enum BillingStatus {
35
35
  Unpaid = "unpaid",
36
36
  Paused = "paused"
37
37
  }
38
+ /** Lifecycle state of a pull or merge request on the Git provider. */
39
+ export declare enum GitProviderChangeState {
40
+ Open = "open",
41
+ Closed = "closed",
42
+ Merged = "merged"
43
+ }
44
+ /** Lifecycle state of a durable Git Sync run. */
45
+ export declare enum GitSyncRunState {
46
+ Queued = "queued",
47
+ Running = "running",
48
+ Success = "success",
49
+ Failure = "failure",
50
+ Timeout = "timeout",
51
+ Cancelled = "cancelled"
52
+ }
53
+ /** Operation performed by a durable Git Sync run. */
54
+ export declare enum GitSyncRunOperation {
55
+ Import = "import",
56
+ Export = "export",
57
+ Check = "check",
58
+ Merge = "merge",
59
+ Recovery = "recovery"
60
+ }
38
61
  /**
39
62
  * Core stages of a Git Sync process. This is not exhaustive, but should cover
40
63
  * the important ones.
@@ -258,6 +281,10 @@ export declare enum SiteInsightsLinkPosition {
258
281
  Sidebar = "sidebar",
259
282
  Content = "content"
260
283
  }
284
+ /** How a page's markdown was requested. `page-action` means a reader used the site's page-actions menu — its copy or view-as-markdown action — rather than a client fetching the URL directly. */
285
+ export declare enum SiteInsightsMarkdownSource {
286
+ PageAction = "page-action"
287
+ }
261
288
  /** Context in which the event was recorded. */
262
289
  export declare enum SiteInsightsDisplayContext {
263
290
  Site = "site",
@@ -1185,6 +1212,8 @@ export type PublishedContentRedirect = {
1185
1212
  /** Result of a search */
1186
1213
  export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
1187
1214
  export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
1215
+ /** What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through. */
1216
+ export type AgentFeedbackSubject = AgentFeedbackSubjectMCPTool | AgentFeedbackSubjectCliCommand | AgentFeedbackSubjectApiEndpoint | AgentFeedbackSubjectDocumentation | AgentFeedbackSubjectGeneric;
1188
1217
  /** Resource targeted by a Git Sync installation. */
1189
1218
  export type GitSyncInstallationTarget = {
1190
1219
  /** Type of resource targeted by the Git Sync installation. */
@@ -2305,6 +2334,26 @@ export type DocumentTableDefinitionImage = DocumentTableDefinitionBase & {
2305
2334
  type: "image";
2306
2335
  };
2307
2336
  export type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef | DocumentTableDefinitionImage;
2337
+ /**
2338
+ * Number of rows or columns covered by a table cell merge
2339
+ * @min 1
2340
+ * @max 50
2341
+ */
2342
+ export type DocumentTableCellSpan = number;
2343
+ /** Positional table cell merge range. The anchor and spans are resolved against the current sorted record order and visible column order. The current document model applies only non-overlapping horizontal or vertical merges of adjacent Text or Number body cells; unsupported ranges are removed during normalization. */
2344
+ export interface DocumentTableCellMerge {
2345
+ /** Cell at the top-left of the merged range */
2346
+ anchor: {
2347
+ /** ID of the anchor record */
2348
+ record: string;
2349
+ /** ID of the anchor column */
2350
+ column: string;
2351
+ };
2352
+ /** Number of rows or columns covered by a table cell merge */
2353
+ rowSpan: DocumentTableCellSpan;
2354
+ /** Number of rows or columns covered by a table cell merge */
2355
+ colSpan: DocumentTableCellSpan;
2356
+ }
2308
2357
  export interface DocumentFragment {
2309
2358
  object: "fragment";
2310
2359
  key?: string;
@@ -2321,6 +2370,8 @@ export interface DocumentBlockTable {
2321
2370
  view: DocumentTableViewGrid | DocumentTableViewCards;
2322
2371
  records: Record<string, DocumentTableRecord>;
2323
2372
  definition: Record<string, DocumentTableDefinition>;
2373
+ /** Positional table cell merge ranges. The current document model retains only non-overlapping horizontal or vertical merges between adjacent Text or Number body cells. Anchors and spans are resolved against the table's current sorted record order and visible column order. */
2374
+ cellMerges?: DocumentTableCellMerge[];
2324
2375
  /** Whether to render the block as a full width one */
2325
2376
  fullWidth?: boolean;
2326
2377
  /** Whether to show the search bar on the table. When unset, search is shown automatically on grid tables once they have enough rows. */
@@ -3415,8 +3466,10 @@ export interface AgentConversation {
3415
3466
  id: string;
3416
3467
  /** The title of the conversation, generated from the first message. Absent until generated. */
3417
3468
  title?: string;
3418
- /** Whether the conversation is shared with everyone who has access to the change request, rather than only its creator. Conversations are shared by default; a private conversation is only ever visible to its creator and stays private for good. */
3469
+ /** Whether the conversation is shared with everyone who has access to its context, rather than only its creator. Conversations are shared by default; a private conversation is only ever visible to its creator and stays private for good. */
3419
3470
  shared: boolean;
3471
+ /** The change request the conversation is currently editing in. Only set for organization agent conversations, which start without one and attach a change request the first time the agent needs to change content. Absent for change request conversations, whose change request is the conversation's context. */
3472
+ changeRequest?: string;
3420
3473
  createdAt: Timestamp;
3421
3474
  updatedAt: Timestamp;
3422
3475
  }
@@ -4604,6 +4657,8 @@ export type FetchVisitorAuthenticationEvent = SiteEvent & {
4604
4657
  location?: string;
4605
4658
  /** Whitelisted search parameters from the visitor authentication request. */
4606
4659
  searchParams?: Record<string, string>;
4660
+ /** Whitelisted cookies from the visitor authentication request. */
4661
+ cookies?: Record<string, string>;
4607
4662
  /** The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect. */
4608
4663
  action?: "logout";
4609
4664
  };
@@ -7087,6 +7142,133 @@ export interface SearchRecordResult {
7087
7142
  * @maxLength 1024
7088
7143
  */
7089
7144
  export type AgentGoal = string;
7145
+ /** The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of. */
7146
+ export interface AgentFeedbackReportedBy {
7147
+ /**
7148
+ * Self-reported model powering the agent.
7149
+ * @maxLength 100
7150
+ */
7151
+ model?: string;
7152
+ /**
7153
+ * User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in.
7154
+ * @maxLength 512
7155
+ */
7156
+ userAgent?: string;
7157
+ /**
7158
+ * Whether the user explicitly asked the agent to submit this feedback.
7159
+ * @default false
7160
+ */
7161
+ onDemand?: boolean;
7162
+ }
7163
+ /** Feedback about a tool exposed by an MCP server. */
7164
+ export interface AgentFeedbackSubjectMCPTool {
7165
+ kind: "mcp-tool";
7166
+ /**
7167
+ * Name of the tool the agent called, as it was exposed to the agent.
7168
+ * @maxLength 200
7169
+ */
7170
+ toolName: string;
7171
+ /**
7172
+ * What the tool was pointed at, for a tool that dispatches to something else rather than doing one fixed thing. For a tool that invokes an API operation, the identifier of that operation.
7173
+ * @maxLength 200
7174
+ */
7175
+ target?: string;
7176
+ }
7177
+ /** Feedback about a command exposed by a command line interface. */
7178
+ export interface AgentFeedbackSubjectCliCommand {
7179
+ kind: "cli-command";
7180
+ /**
7181
+ * The command the agent ran, without its arguments. Do not include any auth or other sensitive information.
7182
+ * @maxLength 200
7183
+ */
7184
+ command: string;
7185
+ /**
7186
+ * Names of the flags passed to the command. It must never contain their values.
7187
+ * @maxItems 50
7188
+ */
7189
+ flags?: string[];
7190
+ }
7191
+ /** Feedback about an API endpoint the agent called directly, without an MCP server or a command line interface in between. */
7192
+ export interface AgentFeedbackSubjectApiEndpoint {
7193
+ kind: "api-endpoint";
7194
+ /** HTTP method of the endpoint. */
7195
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
7196
+ /**
7197
+ * Templated path of the endpoint, for example `/v1/orders/{orderId}/fulfill`. It must never contain resolved identifiers or query string values.
7198
+ * @maxLength 500
7199
+ */
7200
+ path: string;
7201
+ }
7202
+ /** Feedback about published documentation, such as a page that is outdated, incorrect, or missing information the agent needed to help its user. */
7203
+ export interface AgentFeedbackSubjectDocumentation {
7204
+ kind: "documentation";
7205
+ /** URL of the content the feedback is about. */
7206
+ url: URL;
7207
+ }
7208
+ /** Feedback with no single tool, command, endpoint, or page behind it, such as product friction or a capability the agent expected to find and could not. */
7209
+ export interface AgentFeedbackSubjectGeneric {
7210
+ kind: "generic";
7211
+ }
7212
+ /** The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for. */
7213
+ export interface AgentFeedbackContent {
7214
+ /**
7215
+ * Classification of the feedback:
7216
+ * - Usability: The subject was hard to understand or use correctly, such as a confusing name or unclear parameters.
7217
+ * - Reliability: The subject behaved inconsistently, failed unexpectedly, or returned unusable results.
7218
+ * - Documentation: The description, schema, or guidance about the subject was missing, unclear, or misleading.
7219
+ * - Efficiency: Reaching the outcome took more calls, steps, or tokens than it should have.
7220
+ * - Interoperability: The subject did not compose well with other tools, operations, or formats.
7221
+ * - Could not accomplish: Nothing exposed to the agent could accomplish what it needed to do.
7222
+ */
7223
+ category: "usability" | "reliability" | "documentation" | "efficiency" | "interoperability" | "could-not-accomplish";
7224
+ /** How much the issue impeded the agent. */
7225
+ severity?: "low" | "medium" | "high";
7226
+ /** What the agent was working towards when it ran into the issue. */
7227
+ goal?: AgentGoal;
7228
+ /**
7229
+ * A short summary of what went wrong, in the agent's own words.
7230
+ * @minLength 1
7231
+ * @maxLength 256
7232
+ */
7233
+ summary: string;
7234
+ /**
7235
+ * Additional explanation of the issue and how the agent ran into it.
7236
+ * @maxLength 4096
7237
+ */
7238
+ detail?: string;
7239
+ /**
7240
+ * How the agent worked around the issue, when it managed to.
7241
+ * @maxLength 2048
7242
+ */
7243
+ workaround?: string;
7244
+ /** How the agent interacted with the subject before reporting. */
7245
+ metrics?: {
7246
+ /**
7247
+ * Number of times the agent used the subject.
7248
+ * @min 0
7249
+ */
7250
+ callCount?: number;
7251
+ /**
7252
+ * Number of those uses that produced a usable result.
7253
+ * @min 0
7254
+ */
7255
+ successCount?: number;
7256
+ /**
7257
+ * Number of those uses that were retries after a failure.
7258
+ * @min 0
7259
+ */
7260
+ retryCount?: number;
7261
+ };
7262
+ }
7263
+ /** Feedback submitted by an AI agent about a tool, command, endpoint or page it worked with. `reportedBy` and `feedback` have the same shape whatever the feedback is about; only `subject` varies. */
7264
+ export interface AgentFeedbackInput {
7265
+ /** The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of. */
7266
+ reportedBy?: AgentFeedbackReportedBy;
7267
+ /** What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through. */
7268
+ subject: AgentFeedbackSubject;
7269
+ /** The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for. */
7270
+ feedback: AgentFeedbackContent;
7271
+ }
7090
7272
  /** Identifiers for a GitBook site session, used for analytics and adaptive content. */
7091
7273
  export interface SiteInsightsSession {
7092
7274
  /** GitBook's unique identifier of the visitor. */
@@ -7852,6 +8034,8 @@ export interface AIToolCallEditPage {
7852
8034
  /** The base revision ID used to compare the page change in the current conversation. */
7853
8035
  baseRevisionId: string;
7854
8036
  page: ChangedRevisionPage;
8037
+ /** The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits. */
8038
+ changeRequestId?: string;
7855
8039
  }
7856
8040
  export interface AIToolCallCreatePage {
7857
8041
  tool: "createPage";
@@ -7860,6 +8044,8 @@ export interface AIToolCallCreatePage {
7860
8044
  /** The base revision ID used to compare the page change in the current conversation. */
7861
8045
  baseRevisionId: string;
7862
8046
  page: ChangedRevisionPage;
8047
+ /** The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits. */
8048
+ changeRequestId?: string;
7863
8049
  }
7864
8050
  export interface AIToolCallDeletePage {
7865
8051
  tool: "deletePage";
@@ -7868,6 +8054,8 @@ export interface AIToolCallDeletePage {
7868
8054
  /** The base revision ID used to compare the page deletion in the current conversation. */
7869
8055
  baseRevisionId: string;
7870
8056
  page: ChangedRevisionPage;
8057
+ /** The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits. */
8058
+ changeRequestId?: string;
7871
8059
  }
7872
8060
  export interface AIToolCallRenamePage {
7873
8061
  tool: "renamePage";
@@ -7876,6 +8064,8 @@ export interface AIToolCallRenamePage {
7876
8064
  /** The base revision ID used to compare the page rename in the current conversation. */
7877
8065
  baseRevisionId: string;
7878
8066
  page: ChangedRevisionPage;
8067
+ /** The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits. */
8068
+ changeRequestId?: string;
7879
8069
  /** The new title of the page. */
7880
8070
  title: string;
7881
8071
  }
@@ -7886,6 +8076,8 @@ export interface AIToolCallMovePage {
7886
8076
  /** The base revision ID used to compare the page move in the current conversation. */
7887
8077
  baseRevisionId: string;
7888
8078
  page: ChangedRevisionPage;
8079
+ /** The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits. */
8080
+ changeRequestId?: string;
7889
8081
  to?: ChangedRevisionPage;
7890
8082
  /**
7891
8083
  * Indicates how the page was moved relative to the "to" page.
@@ -8196,6 +8388,11 @@ export interface AIMessage {
8196
8388
  task?: AIMessageTask;
8197
8389
  /** The response that generated this message. */
8198
8390
  response?: AIMessageResponseMetadata;
8391
+ /**
8392
+ * When the message was added to the conversation. Absent on messages recorded before this field existed.
8393
+ * @format date-time
8394
+ */
8395
+ createdAt?: string;
8199
8396
  }
8200
8397
  export type SiteQuestionAnswerWithResponse = SiteQuestionAnswer & {
8201
8398
  response: AIMessage;
@@ -8514,6 +8711,8 @@ export type SiteInsightsEventPageView = SiteInsightsEventBase & {
8514
8711
  };
8515
8712
  export type SiteInsightsEventPageMarkdownRequest = SiteInsightsEventBase & {
8516
8713
  type: "page_markdown_request";
8714
+ /** How a page's markdown was requested. `page-action` means a reader used the site's page-actions menu — its copy or view-as-markdown action — rather than a client fetching the URL directly. */
8715
+ markdownSource?: SiteInsightsMarkdownSource;
8517
8716
  };
8518
8717
  export type SiteInsightsEventSearchOpen = SiteInsightsEventBase & {
8519
8718
  type: "search_open";
@@ -8689,6 +8888,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
8689
8888
  column: "eventLLMSVariant";
8690
8889
  } | {
8691
8890
  column: "eventPageNotFoundType";
8891
+ } | {
8892
+ column: "eventMarkdownSource";
8692
8893
  } | {
8693
8894
  column: "eventSearchQuery";
8694
8895
  } | {
@@ -8798,6 +8999,9 @@ export type SiteInsightsQueryEventsValues = {
8798
8999
  } | {
8799
9000
  column: "eventPageNotFoundType";
8800
9001
  values: (null | SiteInsightsPageNotFoundType)[];
9002
+ } | {
9003
+ column: "eventMarkdownSource";
9004
+ values: (null | SiteInsightsMarkdownSource)[];
8801
9005
  } | {
8802
9006
  column: "siteSpace";
8803
9007
  values: (string | null)[];
@@ -9647,7 +9851,7 @@ export interface GitSyncSiteOperation {
9647
9851
  error?: string;
9648
9852
  /** An action the user can take to resolve a failed Git Sync operation. */
9649
9853
  errorAction?: GitSyncOperationErrorAction;
9650
- spaces: Record<string, GitSyncSpaceOperation>;
9854
+ spaces?: Record<string, GitSyncSpaceOperation>;
9651
9855
  }
9652
9856
  /**
9653
9857
  * A section group — a container that nests sections (and other section
@@ -10445,12 +10649,26 @@ export interface AgentStreamMessageResponse {
10445
10649
  type: "message_response";
10446
10650
  response: AIStreamResponse;
10447
10651
  }
10652
+ /** A message waiting for the agent's current response to finish, held in the order it will be processed. The identifier addresses the entry to remove it from the queue or run it immediately. */
10653
+ export interface AgentQueuedMessage {
10654
+ /** Identifier of the queue entry, unique within the conversation. */
10655
+ id: string;
10656
+ /** Input version of an AI message. */
10657
+ message: AIMessageInput;
10658
+ /**
10659
+ * When the message entered the queue.
10660
+ * @format date-time
10661
+ */
10662
+ queuedAt: string;
10663
+ }
10448
10664
  /** Describes what the agent is currently doing while processing, used to display a live activity indicator in the conversation. */
10449
10665
  export interface AgentActivity {
10450
10666
  /** The kind of activity the agent is currently performing. `thinking` while it reasons or decides on a next action, `tool` while it runs a tool, and `responding` while it writes its answer. */
10451
10667
  type: "thinking" | "tool" | "responding";
10452
10668
  /** When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`). */
10453
10669
  tool?: string;
10670
+ /** What to show the user instead of a label derived from `tool`, for a tool whose name means nothing to them — an MCP server's, say, where it reads "Searching documentation". */
10671
+ label?: string;
10454
10672
  }
10455
10673
  /** An option the user can pick when answering a question asked by the agent. */
10456
10674
  export interface AgentQuestionOption {
@@ -10468,16 +10686,27 @@ export interface AgentPendingQuestion {
10468
10686
  /** The options the user can choose from. */
10469
10687
  options: AgentQuestionOption[];
10470
10688
  }
10689
+ /** Where the agent's content edits land. Usually a change request, which is how published content is changed; a space whose live edits are unlocked is the exception, and is edited in place. Carries identifiers only: the client resolves the change request's number and subject, or the space's title, through the API. */
10690
+ export interface AgentEditTarget {
10691
+ /** The ID of the space the edits are made in. */
10692
+ spaceId: string;
10693
+ /** The ID of the change request the edits are made in. Absent when the space itself is the target, through its unlocked live edits. */
10694
+ changeRequestId?: string;
10695
+ }
10471
10696
  export interface AgentState {
10472
10697
  status: AgentStatus;
10473
10698
  /** List of response suggestions for the user to select from. */
10474
10699
  suggestions: string[];
10475
- /** List of messages sent by the users queued to processed. */
10700
+ /** List of messages sent by the users queued to processed. Superseded by `queue`, which carries the same messages with the identifiers needed to act on them; kept for compatibility with clients that predate it. */
10476
10701
  queuedMessages: AIMessageInput[];
10702
+ /** Messages waiting for the current response to finish, in the order they will be processed. */
10703
+ queue?: AgentQueuedMessage[];
10477
10704
  /** What the agent is currently doing. Only set while the agent is processing. */
10478
10705
  activity?: AgentActivity;
10479
10706
  /** A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control. */
10480
10707
  pendingQuestion?: AgentPendingQuestion;
10708
+ /** Where the agent currently edits content. Absent until something is attached: the organization agent starts read-only, while a change request agent always edits the change request it belongs to. */
10709
+ editTarget?: AgentEditTarget;
10481
10710
  }
10482
10711
  /** Payload emitted by the agent with its current state. */
10483
10712
  export interface AgentStreamState {
@@ -14670,6 +14899,60 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14670
14899
  /** Document describing the Docs agent instructions. */
14671
14900
  instructions: JSONDocument;
14672
14901
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationAgentInstructions, any>>;
14902
+ /**
14903
+ * @description Returns a paginated list of the calling user's AI agent conversations with the organization agent. Unlike change request conversations, these are not tied to a single change request: the agent works across the organization and only attaches a change request when it needs to edit content. A conversation belongs to the user who started it and is never visible to anyone else.
14904
+ *
14905
+ * @tags organizations, agents
14906
+ * @name ListOrganizationAgentConversations
14907
+ * @summary List AI agent conversations in an organization
14908
+ * @request GET:/orgs/{organizationId}/agent/conversations
14909
+ * @secure
14910
+ */
14911
+ listOrganizationAgentConversations: (organizationId: EntityId, query?: {
14912
+ /** Identifier of the page results to fetch. */
14913
+ page?: string;
14914
+ /**
14915
+ * The number of results per page
14916
+ * @min 0
14917
+ * @max 1000
14918
+ */
14919
+ limit?: number;
14920
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
14921
+ items: AgentConversation[];
14922
+ }, any>>;
14923
+ /**
14924
+ * @description Prepares a conversation so the client can connect to it, giving the agent the credentials it acts with. Call this before opening a conversation; connecting to one that was never provisioned yields an agent whose tools all fail. The conversation itself is only recorded once the user sends a first message, so opening the agent and closing it again leaves nothing behind. Safe to call again to refresh an expiring session.
14925
+ *
14926
+ * @tags organizations, agents
14927
+ * @name ProvisionOrganizationAgentConversation
14928
+ * @summary Provision an AI agent conversation in an organization
14929
+ * @request PUT:/orgs/{organizationId}/agent/conversations/{conversationId}
14930
+ * @secure
14931
+ */
14932
+ provisionOrganizationAgentConversation: (organizationId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
14933
+ /**
14934
+ * @description Updates one of the calling user's conversations with the organization agent. Use this to rename it.
14935
+ *
14936
+ * @tags organizations, agents
14937
+ * @name UpdateOrganizationAgentConversation
14938
+ * @summary Update an AI agent conversation in an organization
14939
+ * @request PATCH:/orgs/{organizationId}/agent/conversations/{conversationId}
14940
+ * @secure
14941
+ */
14942
+ updateOrganizationAgentConversation: (organizationId: EntityId, conversationId: string, data: {
14943
+ /** The new title of the conversation. */
14944
+ title: string;
14945
+ }, params?: RequestParams) => Promise<HttpResponse<AgentConversation, any>>;
14946
+ /**
14947
+ * @description Deletes one of the calling user's conversations with the organization agent, destroying the messages it holds. This cannot be undone.
14948
+ *
14949
+ * @tags organizations, agents
14950
+ * @name DeleteOrganizationAgentConversation
14951
+ * @summary Delete an agent conversation in an organization
14952
+ * @request DELETE:/orgs/{organizationId}/agent/conversations/{conversationId}
14953
+ * @secure
14954
+ */
14955
+ deleteOrganizationAgentConversation: (organizationId: EntityId, conversationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
14673
14956
  /**
14674
14957
  * No description
14675
14958
  *
@@ -15562,6 +15845,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15562
15845
  icon?: Icon | null;
15563
15846
  /** Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live. */
15564
15847
  draft?: boolean;
15848
+ /** ID of the parent section group to move this section group into. Set to null to move the section group to the root of the site. */
15849
+ parentSectionGroupId?: string | null;
15565
15850
  }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
15566
15851
  /**
15567
15852
  * No description
@@ -15796,12 +16081,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15796
16081
  items: (SearchSpaceResult | SearchRecordResult)[];
15797
16082
  }, any>>;
15798
16083
  /**
15799
- * @description Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.
16084
+ * @description Hints the search backend that latency-sensitive site search requests are likely to arrive soon. Call this when a visitor opens the site's search interface.
16085
+ *
16086
+ * @tags sites
16087
+ * @name PrewarmSiteSearch
16088
+ * @summary Prewarm a site's search cache
16089
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/search/prewarm
16090
+ * @secure
16091
+ */
16092
+ prewarmSiteSearch: (organizationId: EntityId, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
16093
+ /**
16094
+ * @description Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user. Deprecated in favour of `submitAgentFeedbackToSite`, which collects feedback about every surface a site exposes to agents. Send the same payload there as a `site-content` subject.
15800
16095
  *
15801
16096
  * @tags site-insights
15802
16097
  * @name SubmitSiteAgentFeedback
15803
- * @summary Submit agent feedback for a site
16098
+ * @summary Submit agent feedback for a site. (Deprecated) use submitAgentFeedbackToSite instead.
15804
16099
  * @request POST:/orgs/{organizationId}/sites/{siteId}/agent-feedback
16100
+ * @deprecated
15805
16101
  * @secure
15806
16102
  */
15807
16103
  submitSiteAgentFeedback: (organizationId: EntityId, siteId: string, data: {
@@ -15822,6 +16118,33 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15822
16118
  /** Surface the feedback was submitted from. When omitted, the feedback is recorded with an unknown source. */
15823
16119
  source?: AgentFeedbackSource;
15824
16120
  }, params?: RequestParams) => Promise<HttpResponse<void, any>>;
16121
+ /**
16122
+ * @description Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. The site collects and owns the feedback rather than being its subject.
16123
+ *
16124
+ * @tags site-agent-feedback
16125
+ * @name SubmitAgentFeedbackToSite
16126
+ * @summary Submit agent feedback
16127
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/agents/feedback
16128
+ * @secure
16129
+ */
16130
+ submitAgentFeedbackToSite: (organizationId: EntityId, siteId: string, data: AgentFeedbackInput, params?: RequestParams) => Promise<HttpResponse<{
16131
+ /** Unique identifier of the submission. */
16132
+ id: string;
16133
+ /** Message relayed back to the agent, acknowledging the feedback and telling it what happens next. */
16134
+ result: string;
16135
+ }, {
16136
+ error: {
16137
+ /** @format int32 */
16138
+ code: 400;
16139
+ message: string;
16140
+ };
16141
+ } | {
16142
+ error: {
16143
+ /** @format int32 */
16144
+ code: 403;
16145
+ message: string;
16146
+ };
16147
+ }>>;
15825
16148
  /**
15826
16149
  * @description The response is streamed.
15827
16150
  *
@@ -185,6 +185,7 @@ export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium",
185
185
  export declare const SITE_SETTINGS_SCAN_TOPICS_ENUM: ["auto", "never"];
186
186
  export declare const SITE_SETTINGS_FINDING_CHANGE_REQUESTS_ENUM: ["always", "auto-fixable", "never"];
187
187
  export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "server", "embed", "mcp"];
188
+ export declare const SITE_INSIGHTS_MARKDOWN_SOURCE_ENUM: ["page-action"];
188
189
  export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
189
190
  export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
190
191
  export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
@@ -215,6 +216,9 @@ export declare const SHA256_MIN_LENGTH = 64;
215
216
  export declare const GIT_BOOK_USERS_ENUM: ["gitbook:agent"];
216
217
  export declare const REVISION_SEMANTIC_CHANGE_TYPE_ENUM: ["page_created", "page_edited", "page_deleted", "page_moved", "file_created", "file_edited", "file_deleted", "custom_fields_edited", "tag_created", "tag_deleted", "tag_edited"];
217
218
  export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check", "content_process", "finalize"];
219
+ export declare const GIT_SYNC_RUN_OPERATION_ENUM: ["import", "export", "check", "merge", "recovery"];
220
+ export declare const GIT_SYNC_RUN_STATE_ENUM: ["queued", "running", "success", "failure", "timeout", "cancelled"];
221
+ export declare const GIT_PROVIDER_CHANGE_STATE_ENUM: ["open", "closed", "merged"];
218
222
  export declare const BILLING_STATUS_ENUM: ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
219
223
  export declare const APIINTEGRATION_SCOPE_ENUM: ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
220
224
  export declare const CUSTOMIZATION_THEME_MODE_ENUM: ["light", "dark"];