@gitbook/api 0.115.0 → 0.116.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
@@ -48,6 +48,11 @@ export type UserAPITokenExtended = UserAPIToken & {
48
48
  /** The actual token value. */
49
49
  token: string;
50
50
  };
51
+ /**
52
+ * @format uri
53
+ * @maxLength 2048
54
+ */
55
+ export type URL = string;
51
56
  /**
52
57
  * Title of the space
53
58
  * @maxLength 50
@@ -86,11 +91,6 @@ export declare enum SpaceEditMode {
86
91
  Live = "live",
87
92
  Locked = "locked"
88
93
  }
89
- /**
90
- * @format uri
91
- * @maxLength 2048
92
- */
93
- export type URL = string;
94
94
  /** The provider of the Git Sync installation. */
95
95
  export declare enum GitSyncProvider {
96
96
  Github = "github",
@@ -1101,7 +1101,24 @@ export interface DocumentBlockStepper {
1101
1101
  isVoid?: false;
1102
1102
  data?: object;
1103
1103
  }
1104
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
1104
+ export interface DocumentBlockColumn {
1105
+ object: 'block';
1106
+ type: 'column';
1107
+ key?: string;
1108
+ nodes: DocumentBlocksEssentials[];
1109
+ isVoid?: false;
1110
+ }
1111
+ export interface DocumentBlockColumns {
1112
+ object: 'block';
1113
+ type: 'columns';
1114
+ key?: string;
1115
+ data: {
1116
+ fullWidth?: boolean;
1117
+ };
1118
+ nodes: DocumentBlockColumn[];
1119
+ isVoid: false;
1120
+ }
1121
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn;
1105
1122
  export interface DocumentInlineMention {
1106
1123
  object: 'inline';
1107
1124
  type: 'mention';
@@ -2153,25 +2170,6 @@ export interface UserContributor {
2153
2170
  count: number;
2154
2171
  user: User;
2155
2172
  }
2156
- /**
2157
- * The status of the session.
2158
- * - pending: The session is pending for input from the user.
2159
- * - running: The session is being processed by GitBook.
2160
- * - failed: The session processing has failed.
2161
- */
2162
- export declare enum ChangeRequestBrainstormStatus {
2163
- Pending = "pending",
2164
- Failed = "failed",
2165
- Running = "running"
2166
- }
2167
- export declare enum ChangeRequestBrainstormActor {
2168
- User = "user",
2169
- Agent = "agent"
2170
- }
2171
- export interface ChangeRequestBrainstormContext {
2172
- /** Path of the page the user is currently viewing. */
2173
- page: string;
2174
- }
2175
2173
  export declare enum RevisionPageType {
2176
2174
  Document = "document",
2177
2175
  Group = "group",
@@ -2184,111 +2182,6 @@ export interface ChangedRevisionPage {
2184
2182
  title: string;
2185
2183
  path?: string;
2186
2184
  }
2187
- export type ChangeRequestBrainstormLog = {
2188
- tool: 'get-page';
2189
- intent: string;
2190
- page: ChangedRevisionPage;
2191
- } | {
2192
- tool: 'search-keyword';
2193
- intent: string;
2194
- query: string;
2195
- } | {
2196
- tool: 'search-semantic';
2197
- intent: string;
2198
- query: string;
2199
- } | {
2200
- tool: 'create-page';
2201
- page: ChangedRevisionPage;
2202
- } | {
2203
- tool: 'delete-page';
2204
- page: ChangedRevisionPage;
2205
- } | {
2206
- tool: 'edit-page';
2207
- page: ChangedRevisionPage;
2208
- };
2209
- /**
2210
- * The status of the plan.
2211
- * - pending: The task is pending for input from the user.
2212
- * - running: The task is being processed by GitBook.
2213
- * - failed: The task processing has failed.
2214
- * - completed: The task has been completed.
2215
- */
2216
- export declare enum ChangeRequestBrainstormPlanStatus {
2217
- Pending = "pending",
2218
- Failed = "failed",
2219
- Running = "running",
2220
- Completed = "completed"
2221
- }
2222
- /**
2223
- * @minLength 1
2224
- * @maxLength 100
2225
- */
2226
- export type ChangeRequestBrainstormPlanStepTitle = string;
2227
- export declare enum ChangeRequestBrainstormPlanStepStatus {
2228
- Pending = "pending",
2229
- Succeeded = "succeeded",
2230
- Failed = "failed",
2231
- Running = "running"
2232
- }
2233
- export interface ChangeRequestBrainstormPlanStep {
2234
- title: ChangeRequestBrainstormPlanStepTitle;
2235
- status: ChangeRequestBrainstormPlanStepStatus;
2236
- instruction: JSONDocument;
2237
- /** Logs related to the implementation phase of the step. */
2238
- implementation?: {
2239
- /** A summary of the execution phase. */
2240
- summary?: JSONDocument;
2241
- /** Logs related to the execution phase of the step. */
2242
- logs: ChangeRequestBrainstormLog[];
2243
- };
2244
- }
2245
- export interface ChangeRequestBrainstormPlan {
2246
- /**
2247
- * The status of the plan.
2248
- * - pending: The task is pending for input from the user.
2249
- * - running: The task is being processed by GitBook.
2250
- * - failed: The task processing has failed.
2251
- * - completed: The task has been completed.
2252
- */
2253
- status: ChangeRequestBrainstormPlanStatus;
2254
- /** The title of the plan. */
2255
- title: string;
2256
- /** The steps of the plan to execute the plan. */
2257
- steps: ChangeRequestBrainstormPlanStep[];
2258
- context?: ChangeRequestBrainstormContext;
2259
- }
2260
- export interface ChangeRequestBrainstormAttachmentPlan {
2261
- type: 'plan';
2262
- plan: ChangeRequestBrainstormPlan;
2263
- }
2264
- export interface ChangeRequestBrainstormAttachmentMessage {
2265
- type: 'message';
2266
- suggestions: string[];
2267
- }
2268
- export type ChangeRequestBrainstormAttachment = ChangeRequestBrainstormAttachmentPlan | ChangeRequestBrainstormAttachmentMessage;
2269
- export interface ChangeRequestBrainstormMessage {
2270
- /** The unique identifier of the chat message. */
2271
- id: string;
2272
- actor: ChangeRequestBrainstormActor;
2273
- message: JSONDocument;
2274
- context?: ChangeRequestBrainstormContext;
2275
- /** Logs related to the processing of the message. */
2276
- logs?: ChangeRequestBrainstormLog[];
2277
- attachment?: ChangeRequestBrainstormAttachment;
2278
- }
2279
- export interface ChangeRequestBrainstormSession {
2280
- /** The unique identifier of the session. */
2281
- id: string;
2282
- /**
2283
- * The status of the session.
2284
- * - pending: The session is pending for input from the user.
2285
- * - running: The session is being processed by GitBook.
2286
- * - failed: The session processing has failed.
2287
- */
2288
- status: ChangeRequestBrainstormStatus;
2289
- /** Conversation messages related to the brainstorming phase of the task. */
2290
- messages: ChangeRequestBrainstormMessage[];
2291
- }
2292
2185
  export interface RevisionSemanticChangePageCreated {
2293
2186
  type: 'page_created';
2294
2187
  page: ChangedRevisionPage;
@@ -2444,6 +2337,25 @@ export interface UpdateCommentReplySchema {
2444
2337
  /** Reactions to remove from the comment. */
2445
2338
  removedReactions?: string[];
2446
2339
  }
2340
+ export interface OrganizationMember {
2341
+ /** Type of Object, always equals to "member" */
2342
+ object: 'member';
2343
+ /** Unique identifier for the user. */
2344
+ id: string;
2345
+ /** The role of a member in an organization, null for guests */
2346
+ role: MemberRoleOrGuest;
2347
+ user: User;
2348
+ /** Whatever the membership of this user is disabled and prevent them from accessing content. */
2349
+ disabled: boolean;
2350
+ /** Date at which the user joined the organization. */
2351
+ joinedAt: Timestamp;
2352
+ /** Date at which the user was last seen active in the organization. */
2353
+ lastSeenAt?: Timestamp;
2354
+ /** Whether the user can login with SSO. */
2355
+ sso: boolean;
2356
+ spaces: number;
2357
+ teams: number;
2358
+ }
2447
2359
  /**
2448
2360
  * Title of the integration
2449
2361
  * @minLength 2
@@ -3880,25 +3792,6 @@ export interface OrganizationAllContent {
3880
3792
  /** List of soft-deleted spaces. */
3881
3793
  deletedSpaces: OrganizationAllSpace[];
3882
3794
  }
3883
- export interface OrganizationMember {
3884
- /** Type of Object, always equals to "member" */
3885
- object: 'member';
3886
- /** Unique identifier for the user. */
3887
- id: string;
3888
- /** The role of a member in an organization, null for guests */
3889
- role: MemberRoleOrGuest;
3890
- user: User;
3891
- /** Whatever the membership of this user is disabled and prevent them from accessing content. */
3892
- disabled: boolean;
3893
- /** Date at which the user joined the organization. */
3894
- joinedAt: Timestamp;
3895
- /** Date at which the user was last seen active in the organization. */
3896
- lastSeenAt?: Timestamp;
3897
- /** Whether the user can login with SSO. */
3898
- sso: boolean;
3899
- spaces: number;
3900
- teams: number;
3901
- }
3902
3795
  /** Permission of a member in a content. */
3903
3796
  export interface MemberContentPermission {
3904
3797
  /**
@@ -4152,6 +4045,15 @@ export type SAMLProviderLabel = string;
4152
4045
  export type SAMLProviderEntityID = string;
4153
4046
  /** @maxLength 10000 */
4154
4047
  export type SAMLProviderCertificate = string;
4048
+ /**
4049
+ * Status of the provider.
4050
+ * - `active`: The provider is active and can be used to authenticate users.
4051
+ * - `pending`: The provider is pending and is not yet fully configured.
4052
+ */
4053
+ export declare enum SAMLProviderStatus {
4054
+ Active = "active",
4055
+ Pending = "pending"
4056
+ }
4155
4057
  export interface OrganizationSAMLProvider {
4156
4058
  /** Type of Object, always equals to "saml-provider" */
4157
4059
  object: 'saml-provider';
@@ -4166,6 +4068,12 @@ export interface OrganizationSAMLProvider {
4166
4068
  defaultRole: MemberRoleOrGuest;
4167
4069
  /** Date at which the provider was created. */
4168
4070
  createdAt: Timestamp;
4071
+ /**
4072
+ * Status of the provider.
4073
+ * - `active`: The provider is active and can be used to authenticate users.
4074
+ * - `pending`: The provider is pending and is not yet fully configured.
4075
+ */
4076
+ status: SAMLProviderStatus;
4169
4077
  /** Metadata about the service provider. */
4170
4078
  service: {
4171
4079
  /**
@@ -4490,9 +4398,6 @@ export type BillingOperationPreviewResponse = {
4490
4398
  /** User must checkout to complete the operation. */
4491
4399
  type: 'checkout';
4492
4400
  invoice?: BillingInvoicePreview;
4493
- } | {
4494
- /** User cannot proceed with the operation due to lack of permissions. */
4495
- type: 'no-permissions';
4496
4401
  } | {
4497
4402
  /** User needs to go through the legacy upgrade flow. */
4498
4403
  type: 'legacy-upgrade';
@@ -4886,10 +4791,10 @@ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrat
4886
4791
  };
4887
4792
  export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
4888
4793
  /**
4889
- * A fallback URL that will be used if authentication fails.
4794
+ * A fallback URL that will be used if authentication fails. If not provided, the fallback URL will not be changed. If set to null, the fallback URL will be unset.
4890
4795
  * @format uri
4891
4796
  */
4892
- fallbackURL?: string;
4797
+ fallbackURL?: string | null;
4893
4798
  };
4894
4799
  export type SiteSearchScope = {
4895
4800
  /** Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content. */
@@ -4953,6 +4858,7 @@ export interface UserSitePermission {
4953
4858
  }
4954
4859
  export declare enum AIMessageRole {
4955
4860
  User = "user",
4861
+ Assistant = "assistant",
4956
4862
  Developer = "developer"
4957
4863
  }
4958
4864
  /** Attachment to attach search results to a message. */
@@ -4980,10 +4886,22 @@ export interface AIMessageAttachmentPages {
4980
4886
  spaceId: string;
4981
4887
  }
4982
4888
  export type AIMessageAttachment = AIMessageAttachmentSearch | AIMessageAttachmentVisitorProfile | AIMessageAttachmentPage | AIMessageAttachmentPages;
4889
+ /** Context about the current user sending a message. */
4890
+ export interface AIMessageContext {
4891
+ location?: {
4892
+ /** ID of the current space. */
4893
+ spaceId: string;
4894
+ /** ID of the current page. */
4895
+ pageId: string;
4896
+ };
4897
+ }
4898
+ /** Input version of an AI message. */
4983
4899
  export interface AIMessageInput {
4984
4900
  role: AIMessageRole;
4985
4901
  content: string | JSONDocument;
4986
4902
  attachments?: AIMessageAttachment[];
4903
+ /** Context about the current user sending a message. */
4904
+ context?: AIMessageContext;
4987
4905
  }
4988
4906
  /** Indicate that the AI should response with a JSON object corresponding to the provided schema. */
4989
4907
  export interface AIOutputObject {
@@ -5014,18 +4932,26 @@ export interface AIToolCapabilities {
5014
4932
  /** Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests. */
5015
4933
  export interface AIStreamResponseFinish {
5016
4934
  type: 'response_finish';
4935
+ /** The ID of the message that this event is composing. */
4936
+ messageId: string;
5017
4937
  /** The ID of the response */
5018
4938
  responseId: string;
5019
4939
  }
5020
4940
  /** Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block. */
5021
4941
  export interface AIStreamResponseDocument {
5022
4942
  type: 'response_document';
4943
+ /** The ID of the message that this event is composing. */
4944
+ messageId: string;
4945
+ /** The index of the step of the message that this event is composing. */
4946
+ stepIndex: number;
5023
4947
  operation: 'insert' | 'update';
5024
- blocks: DocumentBlock[];
4948
+ blocks: DocumentBlocksTopLevels[];
5025
4949
  }
5026
4950
  /** Message emitted by the server to indicate a chunk of the JSON object response. */
5027
4951
  export interface AIStreamResponseObject {
5028
4952
  type: 'response_object';
4953
+ /** The ID of the message that this event is composing. */
4954
+ messageId: string;
5029
4955
  /** The chunk of the JSON object response */
5030
4956
  jsonChunk: string;
5031
4957
  }
@@ -5060,10 +4986,77 @@ export interface AIToolCallSearch {
5060
4986
  query: string;
5061
4987
  results: AIToolCallSearchResult[];
5062
4988
  }
5063
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch;
4989
+ export interface AIToolCallEditPage {
4990
+ tool: 'editPage';
4991
+ /** The ID of the space being edited. */
4992
+ spaceId: string;
4993
+ page: ChangedRevisionPage;
4994
+ }
4995
+ export interface AIToolCallCreatePage {
4996
+ tool: 'createPage';
4997
+ /** The ID of the space being edited. */
4998
+ spaceId: string;
4999
+ page: ChangedRevisionPage;
5000
+ }
5001
+ export interface AIToolCallDeletePage {
5002
+ tool: 'deletePage';
5003
+ /** The ID of the space being edited. */
5004
+ spaceId: string;
5005
+ page: ChangedRevisionPage;
5006
+ }
5007
+ export interface AIToolCallRenamePage {
5008
+ tool: 'renamePage';
5009
+ /** The ID of the space being edited. */
5010
+ spaceId: string;
5011
+ page: ChangedRevisionPage;
5012
+ /** The new title of the page. */
5013
+ title: string;
5014
+ }
5015
+ export interface AIToolCallMovePage {
5016
+ tool: 'movePage';
5017
+ /** The ID of the space being edited. */
5018
+ spaceId: string;
5019
+ page: ChangedRevisionPage;
5020
+ to?: ChangedRevisionPage;
5021
+ /**
5022
+ * Indicates how the page was moved relative to the "to" page.
5023
+ * - `within`: moved as the last child of the target page (or to the root when `to` is omitted)
5024
+ * - `before`: moved directly before the target page
5025
+ * - `after`: moved directly after the target page
5026
+ */
5027
+ moveType: 'within' | 'before' | 'after';
5028
+ }
5029
+ export interface AIToolCallListModifiedPages {
5030
+ tool: 'listModifiedPages';
5031
+ /** The ID of the space being accessed. */
5032
+ spaceId: string;
5033
+ }
5034
+ export interface AIToolCallGetPageDiff {
5035
+ tool: 'getPageDiff';
5036
+ /** The ID of the space being accessed. */
5037
+ spaceId: string;
5038
+ page: ChangedRevisionPage;
5039
+ }
5040
+ export interface AIToolCallCreateAgentTask {
5041
+ tool: 'createAgentTask';
5042
+ /** The ID of the space the task belongs to. */
5043
+ spaceId: string;
5044
+ action: 'create' | 'update';
5045
+ task: {
5046
+ /** The unique identifier of the task. */
5047
+ id: string;
5048
+ /** The title of the task. */
5049
+ title: string;
5050
+ };
5051
+ }
5052
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask;
5064
5053
  /** Message emitted by the server to indicate that the AI has called a tool. */
5065
5054
  export interface AIStreamResponseToolCall {
5066
5055
  type: 'response_tool_call';
5056
+ /** The ID of the message that this event is composing. */
5057
+ messageId: string;
5058
+ /** The index of the step of the message that this event is composing. */
5059
+ stepIndex: number;
5067
5060
  toolCall: AIToolCall;
5068
5061
  }
5069
5062
  export type AIStreamResponse = AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall;
@@ -6582,6 +6575,93 @@ export interface Seat {
6582
6575
  /** @format date-time */
6583
6576
  updatedAt: string;
6584
6577
  }
6578
+ /** A step in a message from the AI agent. */
6579
+ export interface AIMessageStep {
6580
+ content: JSONDocument;
6581
+ toolCalls?: AIToolCall[];
6582
+ }
6583
+ export interface AIMessage {
6584
+ id: string;
6585
+ role: AIMessageRole;
6586
+ steps: AIMessageStep[];
6587
+ }
6588
+ /** Request to reset the chat. */
6589
+ export interface AgentRequestReset {
6590
+ type: 'reset';
6591
+ }
6592
+ /** Request to post a message to the agent. */
6593
+ export interface AgentRequestPostMessage {
6594
+ type: 'post_message';
6595
+ /** Input version of an AI message. */
6596
+ message: AIMessageInput;
6597
+ }
6598
+ /** Payload to send to the agent. */
6599
+ export type AgentRequest = AgentRequestReset | AgentRequestPostMessage;
6600
+ /** Payload emitted by the agent to reset the messages. */
6601
+ export interface AgentStreamMessages {
6602
+ type: 'messages';
6603
+ operation: 'append' | 'replace';
6604
+ messages: AIMessage[];
6605
+ }
6606
+ /** Payload emitted by the agent with a partial message. */
6607
+ export interface AgentStreamMessageResponse {
6608
+ type: 'message_response';
6609
+ response: AIStreamResponse;
6610
+ }
6611
+ export declare enum AgentStatus {
6612
+ Idle = "idle",
6613
+ Processing = "processing",
6614
+ Errored = "errored"
6615
+ }
6616
+ export interface AgentState {
6617
+ status: AgentStatus;
6618
+ /** A list of response suggestions for the user to select from. */
6619
+ suggestions: string[];
6620
+ }
6621
+ /** Payload emitted by the agent with its current state. */
6622
+ export interface AgentStreamState {
6623
+ type: 'state';
6624
+ state: AgentState;
6625
+ }
6626
+ export type AgentStream = AgentStreamMessages | AgentStreamMessageResponse | AgentStreamState;
6627
+ export interface ConversationMetadata {
6628
+ /** URL to the conversation */
6629
+ url?: string;
6630
+ attributes?: Record<string, string>;
6631
+ /** Date of the conversation creation */
6632
+ createdAt?: Timestamp;
6633
+ }
6634
+ /** A message posted in the conversation by a user or a team member. */
6635
+ export interface ConversationPartMessage {
6636
+ type: 'message';
6637
+ role: 'user' | 'assistant' | 'team-member';
6638
+ /** Markdown or HTML body of the message. */
6639
+ body: string;
6640
+ }
6641
+ export type ConversationPart = ConversationPartMessage;
6642
+ export interface ConversationInput {
6643
+ /**
6644
+ * The unique identifier for the conversation, relative to the source in which it was created.
6645
+ * @minLength 1
6646
+ * @maxLength 255
6647
+ */
6648
+ id: string;
6649
+ metadata?: ConversationMetadata;
6650
+ /**
6651
+ * The subject of the conversation.
6652
+ * @maxLength 512
6653
+ */
6654
+ subject?: string;
6655
+ parts: ConversationPart[];
6656
+ }
6657
+ /** The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `in-progress`: The task is in progress. - `in-review`: The task is completed, a human should review the result. - `done`: The task is completed. - `rejected`: The task has been rejected by a human. */
6658
+ export declare enum AgentTaskStatus {
6659
+ Backlog = "backlog",
6660
+ InProgress = "in-progress",
6661
+ InReview = "in-review",
6662
+ Done = "done",
6663
+ Rejected = "rejected"
6664
+ }
6585
6665
  export type RequestSpaceTrackPageView = SpaceTrackPageView;
6586
6666
  export type RequestSiteTrackPageView = SiteTrackPageView;
6587
6667
  export type RequestPublishIntegration = PublishIntegration;
@@ -6721,6 +6801,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6721
6801
  message: string;
6722
6802
  };
6723
6803
  }>>;
6804
+ /**
6805
+ * @description Update a GitBook account's details.
6806
+ *
6807
+ * @tags users, critical
6808
+ * @name UpdateUserById
6809
+ * @summary Update a user by its ID
6810
+ * @request PATCH:/users/{userId}
6811
+ * @secure
6812
+ */
6813
+ updateUserById: (userId: string, data: {
6814
+ /**
6815
+ * Full name for the user
6816
+ * @minLength 1
6817
+ * @maxLength 64
6818
+ */
6819
+ displayName?: string;
6820
+ photoURL?: URL;
6821
+ }, params?: RequestParams) => Promise<HttpResponse<User, {
6822
+ error: {
6823
+ /** @format int32 */
6824
+ code: 404;
6825
+ message: string;
6826
+ };
6827
+ }>>;
6724
6828
  };
6725
6829
  spaces: {
6726
6830
  /**
@@ -7637,6 +7741,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7637
7741
  status?: "all" | "open" | "resolved";
7638
7742
  /** The target page of the comment */
7639
7743
  targetPage?: string;
7744
+ /** User IDs to filter queried comments on */
7745
+ authors?: string[];
7640
7746
  }, params?: RequestParams) => Promise<HttpResponse<List & {
7641
7747
  items: Comment[];
7642
7748
  }, any>>;
@@ -8256,6 +8362,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8256
8362
  format?: "document" | "markdown";
8257
8363
  /** The target page of the comment */
8258
8364
  targetPage?: string;
8365
+ /** User IDs to filter queried comments on */
8366
+ authors?: string[];
8259
8367
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8260
8368
  items: Comment[];
8261
8369
  }, any>>;
@@ -8368,6 +8476,48 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8368
8476
  * @secure
8369
8477
  */
8370
8478
  deleteCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
8479
+ /**
8480
+ * No description
8481
+ *
8482
+ * @tags space-comments, critical
8483
+ * @name ListCommentersInSpace
8484
+ * @summary List all users who commented in a space
8485
+ * @request GET:/spaces/{spaceId}/commenters
8486
+ * @secure
8487
+ */
8488
+ listCommentersInSpace: (spaceId: string, query?: {
8489
+ /** Identifier of the page results to fetch. */
8490
+ page?: string;
8491
+ /**
8492
+ * The number of results per page
8493
+ * @min 0
8494
+ * @max 1000
8495
+ */
8496
+ limit?: number;
8497
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8498
+ items: OrganizationMember[];
8499
+ }, any>>;
8500
+ /**
8501
+ * No description
8502
+ *
8503
+ * @tags change-request-comments, critical
8504
+ * @name ListCommentersInChangeRequest
8505
+ * @summary List all users who commented in a CR
8506
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/commenters
8507
+ * @secure
8508
+ */
8509
+ listCommentersInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
8510
+ /** Identifier of the page results to fetch. */
8511
+ page?: string;
8512
+ /**
8513
+ * The number of results per page
8514
+ * @min 0
8515
+ * @max 1000
8516
+ */
8517
+ limit?: number;
8518
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8519
+ items: OrganizationMember[];
8520
+ }, any>>;
8371
8521
  /**
8372
8522
  * No description
8373
8523
  *
@@ -11690,6 +11840,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11690
11840
  streamAiResponseInSite: (organizationId: string, siteId: string, data: {
11691
11841
  /** The ID of the previous response to continue from */
11692
11842
  previousResponseId?: string;
11843
+ /** Instructions for the AI */
11844
+ instructions?: string;
11693
11845
  input: AIMessageInput[];
11694
11846
  output: AIOutputFormat;
11695
11847
  model?: AIModel;