@gitbook/api 0.143.1 → 0.144.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
@@ -561,12 +561,40 @@ export interface DocumentMarkStrikethrough {
561
561
  object: 'mark';
562
562
  type: 'strikethrough';
563
563
  }
564
+ export declare enum DocumentTextColor {
565
+ Default = "default",
566
+ Green = "green",
567
+ Blue = "blue",
568
+ Red = "red",
569
+ Orange = "orange",
570
+ Yellow = "yellow",
571
+ Purple = "purple",
572
+ Primary = "$primary",
573
+ Info = "$info",
574
+ Success = "$success",
575
+ Warning = "$warning",
576
+ Danger = "$danger"
577
+ }
578
+ export declare enum DocumentTextBackgroundColor {
579
+ Default = "default",
580
+ Green = "green",
581
+ Blue = "blue",
582
+ Red = "red",
583
+ Orange = "orange",
584
+ Yellow = "yellow",
585
+ Purple = "purple",
586
+ Primary = "$primary",
587
+ Info = "$info",
588
+ Success = "$success",
589
+ Warning = "$warning",
590
+ Danger = "$danger"
591
+ }
564
592
  export interface DocumentMarkColor {
565
593
  object: 'mark';
566
594
  type: 'color';
567
595
  data: {
568
- text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
569
- background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple' | '$primary' | '$info' | '$success' | '$warning' | '$danger';
596
+ text: DocumentTextColor;
597
+ background: DocumentTextBackgroundColor;
570
598
  };
571
599
  }
572
600
  export interface DocumentMarkSuperscript {
@@ -604,6 +632,7 @@ export interface DocumentInlineImage {
604
632
  ref: ContentRefURL | ContentRefFile;
605
633
  refDark?: ContentRefURL | ContentRefFile;
606
634
  caption?: string;
635
+ alt?: string;
607
636
  size?: 'original' | 'line';
608
637
  };
609
638
  isVoid: true;
@@ -673,6 +702,7 @@ export interface DocumentInlineIcon {
673
702
  key?: string;
674
703
  data: {
675
704
  icon: string;
705
+ color?: DocumentTextColor;
676
706
  };
677
707
  isVoid: true;
678
708
  }
@@ -761,6 +791,13 @@ export interface DocumentBlockCode {
761
791
  overflow?: 'scroll' | 'wrap';
762
792
  lineNumbers?: boolean;
763
793
  fullWidth?: boolean;
794
+ expandable?: boolean;
795
+ /**
796
+ * Number of lines rendered in a code block when it is collapsed
797
+ * @min 1
798
+ * @default 10
799
+ */
800
+ collapsedLineCount?: number;
764
801
  };
765
802
  nodes: DocumentBlockCodeLine[];
766
803
  isVoid?: false;
@@ -999,6 +1036,7 @@ export interface DocumentBlockImages {
999
1036
  data: {
1000
1037
  align?: 'center' | 'left' | 'right';
1001
1038
  fullWidth?: boolean;
1039
+ withFrame?: boolean;
1002
1040
  };
1003
1041
  nodes: DocumentBlockImage[];
1004
1042
  isVoid: false;
@@ -1656,6 +1694,8 @@ export interface ChangeRequest {
1656
1694
  comments: number;
1657
1695
  /** If true, the change request is not up-to-date with latest changes in the main content. */
1658
1696
  outdated: boolean;
1697
+ /** ID of the conversations issues cluster associated with this change request. */
1698
+ conversationsIssuesCluster?: string;
1659
1699
  /** URLs associated with the object */
1660
1700
  urls: {
1661
1701
  /**
@@ -1688,33 +1728,6 @@ export type RevisionTypeComputed = RevisionBase & {
1688
1728
  type: 'computed';
1689
1729
  };
1690
1730
  export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
1691
- export declare enum ImportContentSource {
1692
- Website = "website",
1693
- Docx = "docx",
1694
- Markdown = "markdown",
1695
- Html = "html",
1696
- Zip = "zip",
1697
- Confluence = "confluence",
1698
- GithubWiki = "github-wiki",
1699
- Notion = "notion",
1700
- GoogleDocs = "google-docs"
1701
- }
1702
- export interface ImportContent {
1703
- /**
1704
- * URL of the content to import.
1705
- * @format uri
1706
- */
1707
- url: string;
1708
- source: ImportContentSource;
1709
- }
1710
- export interface ImportContentResult {
1711
- /** ID of the newly created revision. */
1712
- revision: string;
1713
- /** How many resources were imported */
1714
- importedResources: number;
1715
- /** How many resources were processed */
1716
- totalResources: number;
1717
- }
1718
1731
  /** Parameters for a space template */
1719
1732
  export interface SpaceTemplateParams {
1720
1733
  contentRefs?: Record<string, ContentRef>;
@@ -1895,6 +1908,8 @@ export interface Organization {
1895
1908
  trial: {
1896
1909
  /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
1897
1910
  status: BillingTrialStatus;
1911
+ /** Number of trials the organization has consumed. */
1912
+ count: number;
1898
1913
  /** The trial's end date, if the organization has or had a trial. */
1899
1914
  endDate?: Timestamp;
1900
1915
  /** The decision taken by the user at the end of the trial */
@@ -2215,6 +2230,12 @@ export interface EmojiReaction {
2215
2230
  }[];
2216
2231
  }
2217
2232
  export type EmojiReactions = EmojiReaction[];
2233
+ /** Contributor towards content. */
2234
+ export interface UserContributor {
2235
+ updatedAt: Timestamp;
2236
+ count: number;
2237
+ user: User;
2238
+ }
2218
2239
  /** Details about the table cell this comment is attached to, if any. */
2219
2240
  export interface TableCellTarget {
2220
2241
  record: string;
@@ -2235,6 +2256,8 @@ export type Comment = {
2235
2256
  reactions: EmojiReactions;
2236
2257
  /** The number of replies to this comment. */
2237
2258
  replies: number;
2259
+ /** The users who replied to this comment. */
2260
+ repliers: UserContributor[];
2238
2261
  /** The content of the comment. */
2239
2262
  body: Document;
2240
2263
  /** Information about the target of the comment. */
@@ -2242,7 +2265,6 @@ export type Comment = {
2242
2265
  /** The node this comment is attached to. */
2243
2266
  node?: {
2244
2267
  id: string;
2245
- preview?: string;
2246
2268
  };
2247
2269
  /** Details about the table cell this comment is attached to, if any. */
2248
2270
  tableCell?: TableCellTarget;
@@ -2251,11 +2273,9 @@ export type Comment = {
2251
2273
  /** The review containing this comment, if this comment was made as part of a review. */
2252
2274
  review?: string;
2253
2275
  /** Information about the page, if this comment refers to a specific page. */
2254
- page?: RevisionPageBase & {
2255
- /** The fully qualified path to the page */
2256
- path: string;
2257
- /** True if the target of this comment no longer exists in the primary content */
2258
- outdated: boolean;
2276
+ page?: {
2277
+ /** The ID of the page */
2278
+ id: string;
2259
2279
  };
2260
2280
  /** The space containing this comment. */
2261
2281
  space: string;
@@ -2310,6 +2330,14 @@ export interface ChangeRequestReview {
2310
2330
  comment?: Comment;
2311
2331
  createdAt: Timestamp;
2312
2332
  updatedAt: Timestamp;
2333
+ /** URLs associated with the object */
2334
+ urls: {
2335
+ /**
2336
+ * URL of the review in the API
2337
+ * @format uri
2338
+ */
2339
+ location: string;
2340
+ };
2313
2341
  }
2314
2342
  export interface Team {
2315
2343
  /** Type of Object, always equals to "team" */
@@ -2389,13 +2417,9 @@ export interface PostCommentReplySchema {
2389
2417
  /** The content of the comment. */
2390
2418
  body: Document;
2391
2419
  }
2392
- /** Contributor towards content. */
2393
- export interface UserContributor {
2394
- updatedAt: Timestamp;
2395
- count: number;
2396
- user: User;
2420
+ export type ChangeRequestUserContributor = UserContributor & {
2397
2421
  actionType: 'edit' | 'comment';
2398
- }
2422
+ };
2399
2423
  export declare enum RevisionPageType {
2400
2424
  Document = "document",
2401
2425
  Group = "group",
@@ -3396,6 +3420,7 @@ export declare enum SiteFeatureKey {
3396
3420
  SitesAds = "sites-ads",
3397
3421
  SitesAiSearch = "sites-ai-search",
3398
3422
  SitesAiAssistant = "sites-ai-assistant",
3423
+ SitesEmbed = "sites-embed",
3399
3424
  SitesApiPlayground = "sites-api-playground",
3400
3425
  SitesBasicCustomization = "sites-basic-customization",
3401
3426
  SitesCustomDomain = "sites-custom-domain",
@@ -4279,6 +4304,8 @@ export type CreateSpace = {
4279
4304
  template: ApplySpaceTemplate;
4280
4305
  } | {
4281
4306
  computedSource: ComputedContentSourceRevision;
4307
+ } | {
4308
+ empty: true;
4282
4309
  }));
4283
4310
  /** An installed integration with its current status */
4284
4311
  export interface InstalledIntegration {
@@ -4566,29 +4593,6 @@ export interface ConversationsIssuesCluster {
4566
4593
  app: string;
4567
4594
  };
4568
4595
  }
4569
- export interface ConversationIssue {
4570
- object: 'conversation-issue';
4571
- /** The ID of the conversation issue */
4572
- id: string;
4573
- /** The title of the conversation issue */
4574
- title: string;
4575
- /** The summary of the conversation issue */
4576
- summary: string;
4577
- createdAt: Timestamp;
4578
- ingestedAt: Timestamp;
4579
- /** The ID of the conversation the issue belongs to */
4580
- conversation: string;
4581
- /** The ID of the cluster the issue has been linked to */
4582
- cluster?: string;
4583
- /** URLs associated with the conversation issue */
4584
- urls: {
4585
- /**
4586
- * URL of the conversation issue in the API
4587
- * @format uri
4588
- */
4589
- location: string;
4590
- };
4591
- }
4592
4596
  /** Integration source */
4593
4597
  export type ConversationSource = string | 'email';
4594
4598
  export interface Conversation {
@@ -4645,6 +4649,29 @@ export interface ConversationInput {
4645
4649
  subject?: string;
4646
4650
  parts: ConversationPart[];
4647
4651
  }
4652
+ export interface ConversationIssue {
4653
+ object: 'conversation-issue';
4654
+ /** The ID of the conversation issue */
4655
+ id: string;
4656
+ /** The title of the conversation issue */
4657
+ title: string;
4658
+ /** The summary of the conversation issue */
4659
+ summary: string;
4660
+ createdAt: Timestamp;
4661
+ ingestedAt: Timestamp;
4662
+ /** The ID of the conversation the issue belongs to */
4663
+ conversation: string;
4664
+ /** The ID of the cluster the issue has been linked to */
4665
+ cluster?: string;
4666
+ /** URLs associated with the conversation issue */
4667
+ urls: {
4668
+ /**
4669
+ * URL of the conversation issue in the API
4670
+ * @format uri
4671
+ */
4672
+ location: string;
4673
+ };
4674
+ }
4648
4675
  /** State and settings of the agent */
4649
4676
  export interface AgentsSetupState {
4650
4677
  /** The email address of the agent. Emails can be forwarded to it to ingest conversations. */
@@ -4670,6 +4697,19 @@ export interface AgentsSetupState {
4670
4697
  /** The settings for the agent. */
4671
4698
  settings: object;
4672
4699
  }
4700
+ export interface OrganizationAgentInstructions {
4701
+ object: 'agent-instructions';
4702
+ /** Document containing the Docs agent instructions. */
4703
+ instructions: JSONDocument;
4704
+ updatedAt: Timestamp;
4705
+ /** Identifier of the member who last updated the instructions. */
4706
+ updatedBy: string;
4707
+ /** URLs related to the custom instructions. */
4708
+ urls: {
4709
+ /** Relative URL to the resource in the API. */
4710
+ location: string;
4711
+ };
4712
+ }
4673
4713
  /** The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `started`: The task is open, a change request is associated with it. - `completed`: The task is completed. - `canceled`: The task has been canceled by a human. */
4674
4714
  export declare enum AgentTaskStatus {
4675
4715
  Backlog = "backlog",
@@ -4898,16 +4938,24 @@ export interface ContentImportRun {
4898
4938
  completedAt?: Timestamp;
4899
4939
  /** Status of the import */
4900
4940
  status: 'pending' | 'in-progress' | 'completed' | 'failed' | 'cancelled';
4901
- /** Ids of the imported pages */
4902
- pages?: string[];
4941
+ /** Imported pages */
4942
+ pages?: {
4943
+ /** ID of page */
4944
+ id: string;
4945
+ /** Source URL where the page has been imported from */
4946
+ sourceURL?: string;
4947
+ }[];
4903
4948
  }
4904
- /** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
4905
- export type BillingOperationPreviewResponse = {
4949
+ /** A response to a request to preview the publishing of a site. It indicates whether the operation can proceed immediately, requires checkout, if a trial is available or if a trial extension is available. */
4950
+ export type SitePublishOperationPreviewResponse = {
4906
4951
  /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
4907
4952
  type: 'go-ahead';
4908
4953
  } | {
4909
4954
  /** By going ahead with this operation, the user will be starting a trial in GitBook. */
4910
4955
  type: 'trial-available';
4956
+ } | {
4957
+ /** The organization is eligible for an additional trial when publishing the site. */
4958
+ type: 'extended-trial-available';
4911
4959
  } | {
4912
4960
  /** User must checkout to complete the operation. */
4913
4961
  type: 'checkout';
@@ -5373,8 +5421,20 @@ export interface SiteStructureItemMovePosition {
5373
5421
  * It is used to represent the structure of a site.
5374
5422
  */
5375
5423
  export type SiteStructureItem = SiteSpace | SiteSection | SiteSectionGroup;
5424
+ /** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
5425
+ export type BillingOperationPreviewResponse = {
5426
+ /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
5427
+ type: 'go-ahead';
5428
+ } | {
5429
+ /** By going ahead with this operation, the user will be starting a trial in GitBook. */
5430
+ type: 'trial-available';
5431
+ } | {
5432
+ /** User must checkout to complete the operation. */
5433
+ type: 'checkout';
5434
+ invoice?: BillingInvoicePreview;
5435
+ };
5376
5436
  /** The reason or feature that triggered the site upgrade */
5377
- export type SiteUpgradeReason = SiteFeatureKey | 'settings' | 'publish-downgrade' | 'from-billing-modal' | 'payment-failed-modal';
5437
+ export type SiteUpgradeReason = SiteFeatureKey | 'settings' | 'billing-page' | 'end-of-trial';
5378
5438
  export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
5379
5439
  /** Type of Object, always equals to "publishing-auth" */
5380
5440
  object: 'publishing-auth';
@@ -5403,11 +5463,6 @@ export type SiteSearchScope = {
5403
5463
  mode: 'default';
5404
5464
  /** The ID of the site space that must always be included in the search results. The language of this site space will be used to match other site spaces with the same language, if applicable. */
5405
5465
  currentSiteSpace?: string;
5406
- /**
5407
- * Site spaces to include in search results in addition to default site spaces. This is deprecated and will be removed soon. Please use 'currentSiteSpace' instead.
5408
- * @deprecated
5409
- */
5410
- includedSiteSpaces?: string[];
5411
5466
  } | {
5412
5467
  /** Only search in the provided site spaces. */
5413
5468
  mode: 'specific';
@@ -5480,17 +5535,6 @@ export interface AIMessageInput {
5480
5535
  /** Context about the current user sending a message. */
5481
5536
  context?: AIMessageContext;
5482
5537
  }
5483
- /** Indicate that the AI should response with a JSON object corresponding to the provided schema. */
5484
- export interface AIOutputObject {
5485
- type: 'object';
5486
- /** The JSON schema to use for the object. */
5487
- schema: object;
5488
- }
5489
- /** Indicate that the AI should respond with a rich text document. */
5490
- export interface AIOutputDocument {
5491
- type: 'document';
5492
- }
5493
- export type AIOutputFormat = AIOutputObject | AIOutputDocument;
5494
5538
  export declare enum AIModel {
5495
5539
  Fast = "fast",
5496
5540
  ReasoningLow = "reasoning-low",
@@ -5532,6 +5576,30 @@ export interface AIToolCallResult {
5532
5576
  /** Summary of a generic tool call. */
5533
5577
  summary?: AIToolCallOtherSummary;
5534
5578
  }
5579
+ /** When the agent is responding to a comment. */
5580
+ export type AIMessageTask = {
5581
+ type: 'respond_to_comment';
5582
+ /** The ID of the space to respond to the comment in. */
5583
+ spaceId: string;
5584
+ /** The ID of the change request to respond to the comment in. */
5585
+ changeRequestId?: string;
5586
+ /** The ID of the comment to respond to. */
5587
+ commentId: string;
5588
+ } | {
5589
+ type: 'review_change_request';
5590
+ /** The ID of the space the change request is in. */
5591
+ spaceId: string;
5592
+ /** The ID of the change request to review. */
5593
+ changeRequestId: string;
5594
+ };
5595
+ /** Message emitted by the server to indicate the start of the AI response. */
5596
+ export interface AIStreamResponseStart {
5597
+ type: 'response_start';
5598
+ /** The ID of the message that this event is composing. */
5599
+ messageId: string;
5600
+ /** When the agent is responding to a comment. */
5601
+ task?: AIMessageTask;
5602
+ }
5535
5603
  /** 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. */
5536
5604
  export interface AIStreamResponseFinish {
5537
5605
  type: 'response_finish';
@@ -5646,16 +5714,18 @@ export interface AIToolCallGetPageDiff {
5646
5714
  spaceId: string;
5647
5715
  page: ChangedRevisionPage;
5648
5716
  }
5649
- export interface AIToolCallCreateAgentTask {
5650
- tool: 'createAgentTask';
5651
- /** The ID of the space the task belongs to. */
5717
+ export interface AIToolCallCreateChangeRequest {
5718
+ tool: 'createChangeRequest';
5719
+ /** The ID of the space the change request belongs to. */
5652
5720
  spaceId: string;
5653
5721
  action: 'create' | 'update';
5654
- task: {
5655
- /** The unique identifier of the task. */
5722
+ changeRequest: {
5723
+ /** The unique identifier of the change request. */
5656
5724
  id: string;
5657
- /** The title of the task. */
5658
- title: string;
5725
+ /** Incremental identifier of the change request. */
5726
+ number: number;
5727
+ /** A brief summary of the change request. */
5728
+ subject: string;
5659
5729
  };
5660
5730
  }
5661
5731
  export interface AIToolCallComment {
@@ -5667,6 +5737,30 @@ export interface AIToolCallComment {
5667
5737
  /** The ID of the comment being posted. */
5668
5738
  commentId: string;
5669
5739
  }
5740
+ export interface AIToolCallReplyToComment {
5741
+ tool: 'replyToComment';
5742
+ /** The ID of the space being commented. */
5743
+ spaceId: string;
5744
+ /** The page being commented. */
5745
+ page?: ChangedRevisionPage;
5746
+ /** The ID of the comment being replied to. */
5747
+ commentId: string;
5748
+ /** The ID of the reply being posted. */
5749
+ replyId: string;
5750
+ }
5751
+ export interface AIToolCallSubmitChangeRequestReview {
5752
+ tool: 'submitChangeRequestReview';
5753
+ /** The ID of the space where the review was submitted. */
5754
+ spaceId: string;
5755
+ /** The ID of the change request being reviewed. */
5756
+ changeRequestId: string;
5757
+ /** Result of the review. */
5758
+ status: ChangeRequestReviewStatus;
5759
+ /** Identifier of the review that was created. */
5760
+ reviewId: string;
5761
+ /** Identifier of the comment that was created as part of the review. */
5762
+ commentId: string;
5763
+ }
5670
5764
  /** Tool called from an MCP server */
5671
5765
  export interface AIToolCallMCP {
5672
5766
  tool: 'mcp';
@@ -5683,7 +5777,7 @@ export interface AIToolCallOther {
5683
5777
  /** Summary of a generic tool call. */
5684
5778
  summary: AIToolCallOtherSummary;
5685
5779
  }
5686
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallComment | AIToolCallMCP | AIToolCallOther;
5780
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
5687
5781
  /** Message emitted by the server to indicate that the AI has called a tool. */
5688
5782
  export interface AIStreamResponseToolCall {
5689
5783
  type: 'response_tool_call';
@@ -5717,7 +5811,7 @@ export interface AIStreamResponseFollowupSuggestion {
5717
5811
  messageId: string;
5718
5812
  suggestions: string[];
5719
5813
  }
5720
- export type AIStreamResponse = AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion;
5814
+ export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion;
5721
5815
  /** Analytics info on the GitBook's site session. */
5722
5816
  export interface SiteInsightsEventSession {
5723
5817
  /** GitBook's unique identifier of the visitor. */
@@ -6424,11 +6518,6 @@ export interface CustomDomainInfo {
6424
6518
  ssl?: CloudflareHostnameTLSInfo;
6425
6519
  verificationErrors: string[];
6426
6520
  }
6427
- /** The GitBook Staff User info. */
6428
- export interface StaffUserInfo {
6429
- id: string;
6430
- searchKey: string;
6431
- }
6432
6521
  /** The User Firebase Auth Info. */
6433
6522
  export interface FirebaseUserInfo {
6434
6523
  uid: string;
@@ -6451,6 +6540,7 @@ export interface BlockContext {
6451
6540
  block: boolean;
6452
6541
  /** A short description giving context on the reason for the block. */
6453
6542
  reason?: BlockReason;
6543
+ blockPaidOrg?: boolean;
6454
6544
  }
6455
6545
  /** The GitBook User impersonation info. */
6456
6546
  export interface UserImpersonationInfo {
@@ -6495,7 +6585,6 @@ export interface UserSpacesPermissions {
6495
6585
  /** All the permissions of a user */
6496
6586
  export interface Index {
6497
6587
  updatedAt: Timestamp;
6498
- searchKey: string;
6499
6588
  organizations: Record<string, UserOrganizationsPermissions>;
6500
6589
  collections: Record<string, UserCollectionsPermissions>;
6501
6590
  spaces: Record<string, UserSpacesPermissions>;
@@ -7044,6 +7133,11 @@ export interface OrganizationCustomFontsChannel {
7044
7133
  channel: 'organization-fonts';
7045
7134
  organization: string;
7046
7135
  }
7136
+ /** Subscription channel for Docs agent instructions changes in an organization. */
7137
+ export interface OrganizationAgentInstructionsChannel {
7138
+ channel: 'organization-agent-instructions';
7139
+ organization: string;
7140
+ }
7047
7141
  /** Subscription channel for all change requests in an organization. */
7048
7142
  export interface OrganizationChangeRequestsChannel {
7049
7143
  channel: 'organization-change-requests';
@@ -7063,12 +7157,6 @@ export interface CommentInfoChannel {
7063
7157
  space: string;
7064
7158
  comment: string;
7065
7159
  }
7066
- export interface CommentReplyInfoChannel {
7067
- channel: 'space-comment-reply';
7068
- space: string;
7069
- comment: string;
7070
- commentReply: string;
7071
- }
7072
7160
  export interface CommentRepliesChannel {
7073
7161
  channel: 'space-comment-replies';
7074
7162
  space: string;
@@ -7216,7 +7304,7 @@ export interface ImportRunChannel {
7216
7304
  runId: string;
7217
7305
  }
7218
7306
  /** Channel to subscribe to for realtime updates. */
7219
- export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | AgentTaskChannel | AgentTasksChannel | ImportRunChannel;
7307
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | OrganizationAgentInstructionsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | AgentTaskChannel | AgentTasksChannel | ImportRunChannel;
7220
7308
  export interface TranslationRunChannelData {
7221
7309
  channel: 'translation-run';
7222
7310
  data: {
@@ -7309,19 +7397,9 @@ export interface AIMessage {
7309
7397
  id: string;
7310
7398
  role: AIMessageRole;
7311
7399
  steps: AIMessageStep[];
7400
+ /** When the agent is responding to a comment. */
7401
+ task?: AIMessageTask;
7312
7402
  }
7313
- /** Request to reset the chat. */
7314
- export interface AgentRequestReset {
7315
- type: 'reset';
7316
- }
7317
- /** Request to post a message to the agent. */
7318
- export interface AgentRequestPostMessage {
7319
- type: 'post_message';
7320
- /** Input version of an AI message. */
7321
- message: AIMessageInput;
7322
- }
7323
- /** Payload to send to the agent. */
7324
- export type AgentRequest = AgentRequestReset | AgentRequestPostMessage;
7325
7403
  /** Payload emitted by the agent to reset the messages. */
7326
7404
  export interface AgentStreamMessages {
7327
7405
  type: 'messages';
@@ -7348,7 +7426,12 @@ export interface AgentStreamState {
7348
7426
  type: 'state';
7349
7427
  state: AgentState;
7350
7428
  }
7351
- export type AgentStream = AgentStreamMessages | AgentStreamMessageResponse | AgentStreamState;
7429
+ /** Payload emitted by the agent is responding to a RPC call. */
7430
+ export interface AgentStreamRPC {
7431
+ type: 'rpc';
7432
+ message: string | object;
7433
+ }
7434
+ export type AgentStream = AgentStreamMessages | AgentStreamMessageResponse | AgentStreamState | AgentStreamRPC;
7352
7435
  /** Context available when evaluating merge rules expressions. */
7353
7436
  export interface MergeRulesEvaluationContext {
7354
7437
  space: Space;
@@ -7368,7 +7451,6 @@ export type RequestUpgradeOrganizationBilling = UpgradeOrganizationBilling;
7368
7451
  export type RequestInviteUsersToOrganization = InviteUsersToOrganization;
7369
7452
  export type RequestImportGitRepository = ImportGitRepository;
7370
7453
  export type RequestExportToGitRepository = ExportToGitRepository;
7371
- export type RequestImportContent = ImportContent;
7372
7454
  export type RequestCreateSpace = CreateSpace;
7373
7455
  export type RequestRenderIntegrationUI = RenderIntegrationUI;
7374
7456
  export type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
@@ -7909,16 +7991,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7909
7991
  */
7910
7992
  computed?: boolean;
7911
7993
  }, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
7912
- /**
7913
- * No description
7914
- *
7915
- * @tags space-content
7916
- * @name ImportContent
7917
- * @summary Import content in a space
7918
- * @request POST:/spaces/{spaceId}/content/import
7919
- * @secure
7920
- */
7921
- importContent: (spaceId: string, data: ImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, any>>;
7922
7994
  /**
7923
7995
  * No description
7924
7996
  *
@@ -8106,16 +8178,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8106
8178
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8107
8179
  items: ContentLocation[];
8108
8180
  }, any>>;
8109
- /**
8110
- * No description
8111
- *
8112
- * @tags space-content
8113
- * @name ImportContentInPageById
8114
- * @summary Import content into a space page
8115
- * @request POST:/spaces/{spaceId}/content/page/{pageId}/import
8116
- * @secure
8117
- */
8118
- importContentInPageById: (spaceId: string, pageId: string, data: ImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, any>>;
8119
8181
  /**
8120
8182
  * No description
8121
8183
  *
@@ -8258,6 +8320,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8258
8320
  creator?: string;
8259
8321
  /** If defined, only change requests with contributions from this user will be returned. */
8260
8322
  contributor?: string;
8323
+ /** If defined, only change requests with a requested reviewer for this user will be returned. */
8324
+ requestedReviewer?: string;
8325
+ /** If defined, only change requests associated with this conversations issues cluster will be returned. */
8326
+ conversationsIssuesCluster?: string;
8261
8327
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8262
8328
  items: ChangeRequest[];
8263
8329
  }, any>>;
@@ -8366,6 +8432,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8366
8432
  /** Optionally, provide a comment along with the review. */
8367
8433
  comment?: Document;
8368
8434
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, any>>;
8435
+ /**
8436
+ * No description
8437
+ *
8438
+ * @tags change-requests-reviews
8439
+ * @name GetChangeRequestReviewById
8440
+ * @summary Get a change request review by its ID
8441
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}
8442
+ * @secure
8443
+ */
8444
+ getChangeRequestReviewById: (spaceId: string, changeRequestId: string, reviewId: string, query?: {
8445
+ /** Output format for the content. */
8446
+ format?: "document" | "markdown";
8447
+ }, params?: RequestParams) => Promise<HttpResponse<ChangeRequestReview, {
8448
+ error: {
8449
+ /** @format int32 */
8450
+ code: 404;
8451
+ message: string;
8452
+ };
8453
+ }>>;
8369
8454
  /**
8370
8455
  * No description
8371
8456
  *
@@ -8612,7 +8697,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8612
8697
  * @secure
8613
8698
  */
8614
8699
  getContributorsByChangeRequestId: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<List & {
8615
- items: UserContributor[];
8700
+ items: ChangeRequestUserContributor[];
8616
8701
  }, {
8617
8702
  error: {
8618
8703
  /** @format int32 */
@@ -8641,16 +8726,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8641
8726
  */
8642
8727
  computed?: boolean;
8643
8728
  }, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
8644
- /**
8645
- * No description
8646
- *
8647
- * @tags change-request-content
8648
- * @name ImportContentInChangeRequest
8649
- * @summary Import content in a change request
8650
- * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/import
8651
- * @secure
8652
- */
8653
- importContentInChangeRequest: (spaceId: string, changeRequestId: string, data: ImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, any>>;
8654
8729
  /**
8655
8730
  * No description
8656
8731
  *
@@ -8821,47 +8896,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8821
8896
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8822
8897
  items: ContentLocation[];
8823
8898
  }, any>>;
8824
- /**
8825
- * No description
8826
- *
8827
- * @tags change-request-content
8828
- * @name ImportContentInChangeRequestPageById
8829
- * @summary Import content into a change request page
8830
- * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import
8831
- * @secure
8832
- */
8833
- importContentInChangeRequestPageById: (spaceId: string, changeRequestId: string, pageId: string, data: ImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, any>>;
8834
- /**
8835
- * No description
8836
- *
8837
- * @tags change-request-content
8838
- * @name GetPageInChangeRequestByPath
8839
- * @summary Get a change request page by its path
8840
- * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
8841
- * @secure
8842
- */
8843
- getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
8844
- /** Output format for the content. */
8845
- format?: "document" | "markdown";
8846
- /**
8847
- * Controls whether the document should be evaluated.
8848
- * - When set to `true`, the entire document will be evaluated.
8849
- * - When set to `deterministic-only`, only expressions that depend
8850
- * exclusively on deterministic inputs will be evaluated.
8851
- * @default false
8852
- */
8853
- evaluated?: boolean | "deterministic-only";
8854
- /**
8855
- * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
8856
- * @default true
8857
- */
8858
- metadata?: boolean;
8859
- /**
8860
- * If `false` is passed, content will not be computed
8861
- * @default true
8862
- */
8863
- computed?: boolean;
8864
- }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
8865
8899
  /**
8866
8900
  * No description
8867
8901
  *
@@ -9126,6 +9160,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9126
9160
  */
9127
9161
  computed?: boolean;
9128
9162
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
9163
+ /**
9164
+ * No description
9165
+ *
9166
+ * @tags change-request-content
9167
+ * @name GetPageInChangeRequestByPath
9168
+ * @summary Get a change request page by its path
9169
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
9170
+ * @secure
9171
+ */
9172
+ getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
9173
+ /** Output format for the content. */
9174
+ format?: "document" | "markdown";
9175
+ /**
9176
+ * Controls whether the document should be evaluated.
9177
+ * - When set to `true`, the entire document will be evaluated.
9178
+ * - When set to `deterministic-only`, only expressions that depend
9179
+ * exclusively on deterministic inputs will be evaluated.
9180
+ * @default false
9181
+ */
9182
+ evaluated?: boolean | "deterministic-only";
9183
+ /**
9184
+ * If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
9185
+ * @default true
9186
+ */
9187
+ metadata?: boolean;
9188
+ /**
9189
+ * If `false` is passed, content will not be computed
9190
+ * @default true
9191
+ */
9192
+ computed?: boolean;
9193
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, any>>;
9129
9194
  /**
9130
9195
  * No description
9131
9196
  *
@@ -10810,6 +10875,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10810
10875
  creator?: string;
10811
10876
  /** If defined, only change requests with contributions from this user will be returned. */
10812
10877
  contributor?: string;
10878
+ /** If defined, only change requests with a requested reviewer for this user will be returned. */
10879
+ requestedReviewer?: string;
10880
+ /** If defined, only change requests associated with this conversations issues cluster will be returned. */
10881
+ conversationsIssuesCluster?: string;
10813
10882
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10814
10883
  items: ChangeRequest[];
10815
10884
  }, any>>;
@@ -11356,7 +11425,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11356
11425
  /**
11357
11426
  * No description
11358
11427
  *
11359
- * @tags agents
11428
+ * @tags conversations
11360
11429
  * @name ListConversationsIssuesClusters
11361
11430
  * @summary List conversations issues clusters
11362
11431
  * @request GET:/orgs/{organizationId}/conversations-clusters
@@ -11402,13 +11471,46 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11402
11471
  /**
11403
11472
  * No description
11404
11473
  *
11405
- * @tags agents
11406
- * @name ListConversationsIssuesInCluster
11407
- * @summary List conversations issues in a cluster
11408
- * @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}/issues
11474
+ * @tags conversations
11475
+ * @name ListConversations
11476
+ * @summary List conversations
11477
+ * @request GET:/orgs/{organizationId}/conversations
11478
+ * @secure
11479
+ */
11480
+ listConversations: (organizationId: string, query?: {
11481
+ /** Identifier of the page results to fetch. */
11482
+ page?: string;
11483
+ /**
11484
+ * The number of results per page
11485
+ * @min 0
11486
+ * @max 1000
11487
+ */
11488
+ limit?: number;
11489
+ /** Filter conversations by their source identifier */
11490
+ source?: string;
11491
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
11492
+ items: Conversation[];
11493
+ }, any>>;
11494
+ /**
11495
+ * No description
11496
+ *
11497
+ * @tags conversations
11498
+ * @name IngestConversation
11499
+ * @summary Ingest conversations
11500
+ * @request POST:/orgs/{organizationId}/conversations
11501
+ * @secure
11502
+ */
11503
+ ingestConversation: (organizationId: string, data: ConversationInput | ConversationInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
11504
+ /**
11505
+ * No description
11506
+ *
11507
+ * @tags conversations
11508
+ * @name ListConversationsIssues
11509
+ * @summary List conversation issues
11510
+ * @request GET:/orgs/{organizationId}/conversations-issues
11409
11511
  * @secure
11410
11512
  */
11411
- listConversationsIssuesInCluster: (organizationId: string, clusterId: string, query?: {
11513
+ listConversationsIssues: (organizationId: string, query?: {
11412
11514
  /** Identifier of the page results to fetch. */
11413
11515
  page?: string;
11414
11516
  /**
@@ -11417,11 +11519,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11417
11519
  * @max 1000
11418
11520
  */
11419
11521
  limit?: number;
11522
+ /** Filter conversation issues by cluster identifier. */
11523
+ cluster?: string;
11524
+ /** Filter conversation issues by conversation identifier. */
11525
+ conversation?: string;
11420
11526
  }, params?: RequestParams) => Promise<HttpResponse<List & {
11421
11527
  items: {
11422
11528
  issue: ConversationIssue;
11423
11529
  conversation: Conversation;
11424
11530
  }[];
11531
+ }, any>>;
11532
+ /**
11533
+ * No description
11534
+ *
11535
+ * @tags conversations
11536
+ * @name GetConversationIssueById
11537
+ * @summary Get a conversation issue by ID
11538
+ * @request GET:/orgs/{organizationId}/conversations-issues/{issueId}
11539
+ * @secure
11540
+ */
11541
+ getConversationIssueById: (organizationId: string, issueId: string, params?: RequestParams) => Promise<HttpResponse<{
11542
+ issue: ConversationIssue;
11543
+ conversation: Conversation;
11425
11544
  }, {
11426
11545
  error: {
11427
11546
  /** @format int32 */
@@ -11433,12 +11552,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11433
11552
  * No description
11434
11553
  *
11435
11554
  * @tags conversations
11436
- * @name IngestConversation
11437
- * @summary Ingest conversations
11438
- * @request POST:/orgs/{organizationId}/conversations
11555
+ * @name GetConversationById
11556
+ * @summary Get a conversation by ID
11557
+ * @request GET:/orgs/{organizationId}/conversations/{conversationId}
11439
11558
  * @secure
11440
11559
  */
11441
- ingestConversation: (organizationId: string, data: ConversationInput | ConversationInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
11560
+ getConversationById: (organizationId: string, conversationId: string, params?: RequestParams) => Promise<HttpResponse<{
11561
+ conversation: Conversation;
11562
+ parts: ConversationPart[];
11563
+ metadata: ConversationMetadata;
11564
+ }, {
11565
+ error: {
11566
+ /** @format int32 */
11567
+ code: 404;
11568
+ message: string;
11569
+ };
11570
+ }>>;
11442
11571
  /**
11443
11572
  * @description Get the state of the agent.
11444
11573
  *
@@ -11449,6 +11578,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11449
11578
  * @secure
11450
11579
  */
11451
11580
  getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentsSetupState, any>>;
11581
+ /**
11582
+ * No description
11583
+ *
11584
+ * @tags organizations, agents
11585
+ * @name GetOrganizationAgentInstructions
11586
+ * @summary Get Docs agent instructions for an organization
11587
+ * @request GET:/orgs/{organizationId}/agent-instructions
11588
+ * @secure
11589
+ */
11590
+ getOrganizationAgentInstructions: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationAgentInstructions, any>>;
11591
+ /**
11592
+ * No description
11593
+ *
11594
+ * @tags organizations, agents
11595
+ * @name UpdateOrganizationAgentInstructions
11596
+ * @summary Update Docs agent instructions for an organization
11597
+ * @request PUT:/orgs/{organizationId}/agent-instructions
11598
+ * @secure
11599
+ */
11600
+ updateOrganizationAgentInstructions: (organizationId: string, data: {
11601
+ /** Document describing the Docs agent instructions. */
11602
+ instructions: JSONDocument;
11603
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationAgentInstructions, any>>;
11452
11604
  /**
11453
11605
  * No description
11454
11606
  *
@@ -12832,8 +12984,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12832
12984
  previousResponseId?: string;
12833
12985
  /** The messages to send to the AI agent. */
12834
12986
  input: AIMessageInput[];
12835
- /** @deprecated */
12836
- output?: AIOutputFormat;
12837
12987
  model?: AIModel;
12838
12988
  /** Custom tools to provide to the AI agent. */
12839
12989
  tools?: AIToolDefinition[];
@@ -13088,6 +13238,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13088
13238
  message: string;
13089
13239
  };
13090
13240
  }>>;
13241
+ /**
13242
+ * No description
13243
+ *
13244
+ * @tags imports
13245
+ * @name CancelImportRun
13246
+ * @summary Cancel an import run
13247
+ * @request POST:/org/{organizationId}/imports/{importRunId}/cancel
13248
+ * @secure
13249
+ */
13250
+ cancelImportRun: (organizationId: string, importRunId: string, params?: RequestParams) => Promise<HttpResponse<ContentImportRun, {
13251
+ error: {
13252
+ /** @format int32 */
13253
+ code: 400;
13254
+ message: string;
13255
+ };
13256
+ } | {
13257
+ error: {
13258
+ /** @format int32 */
13259
+ code: 404;
13260
+ message: string;
13261
+ };
13262
+ }>>;
13091
13263
  };
13092
13264
  subdomains: {
13093
13265
  /**