@gitbook/api 0.138.0 → 0.140.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
@@ -93,6 +93,47 @@ export declare enum SpaceEditMode {
93
93
  Live = "live",
94
94
  Locked = "locked"
95
95
  }
96
+ /** The merge rules inherits from the organization configuration. */
97
+ export interface MergeRulesConfigurationInherit {
98
+ type: 'inherit';
99
+ }
100
+ /**
101
+ * Expression to evaluate
102
+ * @minLength 0
103
+ * @maxLength 1024
104
+ */
105
+ export type Expression = string;
106
+ /** The merge rule is written in the advanced custom expression syntax. */
107
+ export type MergeRule = {
108
+ rule: 'require_specific_reviewers';
109
+ /** List of user IDs. */
110
+ users: string[];
111
+ } | {
112
+ rule: 'require_one_of_specific_reviewers';
113
+ /** List of user IDs. */
114
+ users: string[];
115
+ } | {
116
+ rule: 'allow_bypass';
117
+ /** List of user IDs. */
118
+ users: string[];
119
+ } | {
120
+ rule: 'require_at_least_one_review' | 'require_all_reviews_approved' | 'require_agent_review' | 'require_up_to_date_change_request' | 'require_change_request_subject' | 'require_change_request_description';
121
+ } | {
122
+ rule: 'custom';
123
+ /** Expression to evaluate */
124
+ expression: Expression;
125
+ };
126
+ /** The merge rules are composed of individual rules that must all pass. */
127
+ export interface MergeRulesConfigurationRules {
128
+ type: 'rules';
129
+ rules: MergeRule[];
130
+ }
131
+ /** The merge rules are disabled, change requests can be merged without review. */
132
+ export interface MergeRulesConfigurationNone {
133
+ type: 'none';
134
+ }
135
+ export type MergeRulesStandaloneConfiguration = MergeRulesConfigurationRules | MergeRulesConfigurationNone;
136
+ export type MergeRulesSpaceConfiguration = MergeRulesConfigurationInherit | MergeRulesStandaloneConfiguration;
96
137
  export declare enum TranslationLanguage {
97
138
  En = "en",
98
139
  Fr = "fr",
@@ -214,6 +255,7 @@ export interface Space {
214
255
  * * `locked`: All edits are locked for this space.
215
256
  */
216
257
  editMode?: SpaceEditMode;
258
+ mergeRules: MergeRulesSpaceConfiguration;
217
259
  /** URLs associated with the object */
218
260
  urls: {
219
261
  /**
@@ -788,9 +830,21 @@ export interface DocumentTableViewCards {
788
830
  /** Should we display the column title or not */
789
831
  hideColumnTitle?: boolean;
790
832
  }
833
+ /** Object fit for image display in card views */
834
+ export declare enum CardsImageObjectFit {
835
+ Contain = "contain",
836
+ Fill = "fill",
837
+ Cover = "cover"
838
+ }
839
+ /** A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings. */
840
+ export type DocumentTableImageRecord = ContentRefFile | ContentRefURL | {
841
+ ref: ContentRefFile | ContentRefURL;
842
+ /** Object fit for image display in card views */
843
+ objectFit?: CardsImageObjectFit;
844
+ };
791
845
  export interface DocumentTableRecord {
792
846
  orderIndex: string;
793
- values: Record<string, number | string | null | boolean | string[] | ContentRef>;
847
+ values: Record<string, number | string | null | boolean | string[] | ContentRef | DocumentTableImageRecord>;
794
848
  }
795
849
  export interface DocumentTableDefinitionBase {
796
850
  id: string;
@@ -1584,9 +1638,12 @@ export interface ChangeRequest {
1584
1638
  status: ChangeRequestStatus;
1585
1639
  /** Subject of the change request */
1586
1640
  subject: ChangeRequestSubject;
1641
+ description?: JSONDocument;
1587
1642
  createdBy: User;
1588
1643
  createdAt: Timestamp;
1589
1644
  updatedAt: Timestamp;
1645
+ /** ID of the space in which the change request was created. */
1646
+ space: string;
1590
1647
  /** ID of the active revision in the change request. */
1591
1648
  revision: string;
1592
1649
  /** ID of the initial revision in the space from which the change request was created. */
@@ -1810,6 +1867,7 @@ export interface Organization {
1810
1867
  plan: BillingProduct;
1811
1868
  /** Billing details, only available for org members. */
1812
1869
  billing?: OrganizationBilling;
1870
+ mergeRules: MergeRulesStandaloneConfiguration;
1813
1871
  /** URLs associated with the object */
1814
1872
  urls: {
1815
1873
  /**
@@ -2017,6 +2075,13 @@ export declare enum OpenAPISpecProcessingErrorCode {
2017
2075
  FETCH_ERROR = "FETCH_ERROR",
2018
2076
  PARSE_ERROR = "PARSE_ERROR"
2019
2077
  }
2078
+ /** OpenAPI error object. */
2079
+ export interface OpenAPIErrorObject {
2080
+ /** Description of the error. */
2081
+ message: string;
2082
+ /** Unique code of the error. */
2083
+ error?: string;
2084
+ }
2020
2085
  export interface OpenAPISpec {
2021
2086
  /** The object type, which is always "openapi-spec" */
2022
2087
  object: 'openapi-spec';
@@ -2043,6 +2108,7 @@ export interface OpenAPISpec {
2043
2108
  lastProcessedAt?: Timestamp;
2044
2109
  /** OpenAPI processing error code */
2045
2110
  lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
2111
+ lastProcessedErrors?: OpenAPIErrorObject[];
2046
2112
  /** The set of permissions for the OpenAPI specification. */
2047
2113
  permissions: {
2048
2114
  /** Can the user view the specification. */
@@ -2314,6 +2380,7 @@ export interface UserContributor {
2314
2380
  updatedAt: Timestamp;
2315
2381
  count: number;
2316
2382
  user: User;
2383
+ actionType: 'edit' | 'comment';
2317
2384
  }
2318
2385
  export declare enum RevisionPageType {
2319
2386
  Document = "document",
@@ -2529,15 +2596,11 @@ export declare enum IntegrationVisibility {
2529
2596
  Unlisted = "unlisted"
2530
2597
  }
2531
2598
  export declare enum IntegrationScope {
2532
- SpaceViewsRead = "space:views:read",
2533
2599
  SpaceContentRead = "space:content:read",
2534
2600
  SpaceContentWrite = "space:content:write",
2535
2601
  SpaceMetadataRead = "space:metadata:read",
2536
2602
  SpaceMetadataWrite = "space:metadata:write",
2537
- SpaceScriptInject = "space:script:inject",
2538
- SpaceScriptCookies = "space:script:cookies",
2539
2603
  SpaceGitSync = "space:git:sync",
2540
- SpaceVisitorAuth = "space:visitor:auth",
2541
2604
  SiteMetadataRead = "site:metadata:read",
2542
2605
  SiteViewsRead = "site:views:read",
2543
2606
  SiteScriptInject = "site:script:inject",
@@ -2545,7 +2608,6 @@ export declare enum IntegrationScope {
2545
2608
  SiteVisitorAuth = "site:visitor:auth",
2546
2609
  SiteAdaptiveRead = "site:adaptive:read",
2547
2610
  SiteAdaptiveWrite = "site:adaptive:write",
2548
- SiteAiAsk = "site:ai:ask",
2549
2611
  OpenapiRead = "openapi:read",
2550
2612
  OpenapiWrite = "openapi:write",
2551
2613
  ConversationsIngest = "conversations:ingest"
@@ -2746,14 +2808,6 @@ export type SpaceIntegrationBlocks = {
2746
2808
  name: string;
2747
2809
  blocks: IntegrationBlock[];
2748
2810
  }[];
2749
- export interface SpaceIntegrationScript {
2750
- /** Script URL to load. */
2751
- script: URL;
2752
- /** Content Security Policy to secure the loading of this script. */
2753
- contentSecurityPolicy?: string;
2754
- /** If true, the script will potentially load use cookies and visitors should be aware. */
2755
- cookies: boolean;
2756
- }
2757
2811
  /** Secrets stored on the integration and passed at runtime. */
2758
2812
  export type IntegrationSecrets = Record<string, string>;
2759
2813
  export interface PublishIntegration {
@@ -2945,29 +2999,6 @@ export type SiteInstallationDeletedEvent = SiteEvent & {
2945
2999
  configuration?: object;
2946
3000
  };
2947
3001
  };
2948
- /** Event received when a page has been visited. */
2949
- export type SpaceViewEvent = SpaceEvent & {
2950
- type: 'space_view';
2951
- /** Unique identifier of the visited page. */
2952
- pageId?: string;
2953
- /** Analytics info on the GitBook's content visitor. */
2954
- visitor: {
2955
- /** GitBook's unique identifier of the visitor. */
2956
- anonymousId: string;
2957
- /** The visitors cookies. */
2958
- cookies: Record<string, string>;
2959
- /** User-agent of the visitor. */
2960
- userAgent: string;
2961
- /** IP address of the visitor. */
2962
- ip: string;
2963
- /** Language of the visitor. */
2964
- language?: string;
2965
- };
2966
- /** The GitBook content's URL visited (including URL params). */
2967
- url: string;
2968
- /** The URL of referrer that linked to the page. */
2969
- referrer: string;
2970
- };
2971
3002
  /** Event received when a page has been visited on a site. */
2972
3003
  export type SiteViewEvent = SiteEvent & {
2973
3004
  type: 'site_view';
@@ -3066,11 +3097,11 @@ export type FetchEvent = BaseEvent & {
3066
3097
  request: FetchRequest;
3067
3098
  };
3068
3099
  /** Common properties for all events related to fetching a published script from an installation */
3069
- export type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
3100
+ export type FetchPublishedScriptEvent = SiteEvent & {
3070
3101
  type: 'fetch_published_script';
3071
3102
  };
3072
3103
  /** Common properties for all events related to authenticated access from an installation */
3073
- export type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
3104
+ export type FetchVisitorAuthenticationEvent = SiteEvent & {
3074
3105
  type: 'fetch_visitor_authentication';
3075
3106
  location?: string;
3076
3107
  };
@@ -3152,7 +3183,7 @@ export type ContentComputeRevisionEvent = ContentComputeEvent & {
3152
3183
  type: 'content_compute_revision';
3153
3184
  };
3154
3185
  /** Any event that can be received from GitBook. */
3155
- export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3186
+ export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3156
3187
  export interface IntegrationEvent {
3157
3188
  /** Unique ID of the event. */
3158
3189
  id: string;
@@ -3821,11 +3852,6 @@ export type SiteSectionDescription = string;
3821
3852
  * @maxLength 100
3822
3853
  */
3823
3854
  export type SiteSectionPath = string;
3824
- /**
3825
- * @minLength 1
3826
- * @maxLength 1024
3827
- */
3828
- export type Condition = string;
3829
3855
  /**
3830
3856
  * Path to the space on the site
3831
3857
  * @minLength 1
@@ -3846,7 +3872,7 @@ export interface SiteSpace {
3846
3872
  /** Whether this is the default space for the site */
3847
3873
  default?: boolean;
3848
3874
  /** Conditional expression used to evaluate whether the site space should be shown to the site's visitor. */
3849
- condition?: Condition;
3875
+ condition?: Expression;
3850
3876
  /** Whether the space has advanced customization feature enabled */
3851
3877
  hasAdvancedCustomizationFeature?: boolean;
3852
3878
  /** URLs associated with the object */
@@ -3872,7 +3898,7 @@ export interface SiteSection {
3872
3898
  /** Path to the section on the site */
3873
3899
  path: SiteSectionPath;
3874
3900
  /** Conditional expression used to evaluate whether the site section should be shown to the site's visitor. */
3875
- condition?: Condition;
3901
+ condition?: Expression;
3876
3902
  /** ID of the section group the section belongs to in the site */
3877
3903
  sectionGroup?: string;
3878
3904
  siteSpaces: SiteSpace[];
@@ -4194,6 +4220,11 @@ export type CreateSpace = {
4194
4220
  } | {
4195
4221
  computedSource: ComputedContentSourceRevision;
4196
4222
  }));
4223
+ /** An installed integration with its current status */
4224
+ export interface InstalledIntegration {
4225
+ status: IntegrationInstallationStatus;
4226
+ integration: Integration;
4227
+ }
4197
4228
  /**
4198
4229
  * @minLength 1
4199
4230
  * @maxLength 30
@@ -4782,6 +4813,30 @@ export type CustomizationFontDefinition = CustomizationFontDefinitionInput & {
4782
4813
  * @maxLength 512
4783
4814
  */
4784
4815
  export type StorageFileKey = string;
4816
+ export interface ContentImportSource {
4817
+ type: 'website';
4818
+ url: URL;
4819
+ }
4820
+ export interface ChangeRequestPointer {
4821
+ type: 'change-request';
4822
+ /** Unique identifier for the space */
4823
+ space: string;
4824
+ /** Unique identifier for the change request */
4825
+ changeRequest: string;
4826
+ }
4827
+ export type ContentImportTarget = SpacePointer | ChangeRequestPointer;
4828
+ export interface ContentImportRun {
4829
+ /** Unique ID of the import */
4830
+ id: string;
4831
+ /** Date when the import has started */
4832
+ startedAt?: Timestamp;
4833
+ /** Filled when the imported is in status "completed" */
4834
+ completedAt?: Timestamp;
4835
+ /** Status of the import */
4836
+ status: 'pending' | 'in-progress' | 'completed' | 'failed' | 'cancelled';
4837
+ /** Ids of the imported pages */
4838
+ pages?: string[];
4839
+ }
4785
4840
  /** 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. */
4786
4841
  export type BillingOperationPreviewResponse = {
4787
4842
  /** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
@@ -5005,7 +5060,7 @@ export interface CustomizationHeaderItem {
5005
5060
  to: ContentRef | null;
5006
5061
  links: CustomizationContentLink[];
5007
5062
  /** Conditional expression used to evaluate whether the header item should be shown to the site's visitor. */
5008
- condition?: Condition;
5063
+ condition?: Expression;
5009
5064
  }
5010
5065
  export interface CustomizationFooterGroup {
5011
5066
  title: string;
@@ -5034,8 +5089,7 @@ export declare enum CustomizationThemeMode {
5034
5089
  export declare enum CustomizationAIMode {
5035
5090
  None = "none",
5036
5091
  Search = "search",
5037
- Assistant = "assistant",
5038
- Integration = "integration"
5092
+ Assistant = "assistant"
5039
5093
  }
5040
5094
  /**
5041
5095
  * How external links should open when clicked.
@@ -5150,8 +5204,6 @@ export interface SiteCustomizationSettings {
5150
5204
  };
5151
5205
  ai: {
5152
5206
  mode: CustomizationAIMode;
5153
- /** The integration to use for the AI features on the site. Only required if mode is set to "integration". */
5154
- integrationId?: string;
5155
5207
  };
5156
5208
  advancedCustomization: {
5157
5209
  /** If true, Advanced customization is enabled */
@@ -5283,6 +5335,12 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
5283
5335
  export type SiteSearchScope = {
5284
5336
  /** 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. */
5285
5337
  mode: 'default';
5338
+ /** 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. */
5339
+ currentSiteSpace?: string;
5340
+ /**
5341
+ * 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.
5342
+ * @deprecated
5343
+ */
5286
5344
  includedSiteSpaces?: string[];
5287
5345
  } | {
5288
5346
  /** Only search in the provided site spaces. */
@@ -5534,6 +5592,15 @@ export interface AIToolCallCreateAgentTask {
5534
5592
  title: string;
5535
5593
  };
5536
5594
  }
5595
+ export interface AIToolCallComment {
5596
+ tool: 'comment';
5597
+ /** The ID of the space being commented. */
5598
+ spaceId: string;
5599
+ /** The page being commented. */
5600
+ page?: ChangedRevisionPage;
5601
+ /** The ID of the comment being posted. */
5602
+ commentId: string;
5603
+ }
5537
5604
  /** Tool called from an MCP server */
5538
5605
  export interface AIToolCallMCP {
5539
5606
  tool: 'mcp';
@@ -5550,7 +5617,7 @@ export interface AIToolCallOther {
5550
5617
  /** Summary of a generic tool call. */
5551
5618
  summary: AIToolCallOtherSummary;
5552
5619
  }
5553
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallMCP | AIToolCallOther;
5620
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallComment | AIToolCallMCP | AIToolCallOther;
5554
5621
  /** Message emitted by the server to indicate that the AI has called a tool. */
5555
5622
  export interface AIStreamResponseToolCall {
5556
5623
  type: 'response_tool_call';
@@ -6699,6 +6766,14 @@ export interface IntegrationEnvironment {
6699
6766
  installation?: string;
6700
6767
  };
6701
6768
  }
6769
+ export interface SpaceIntegrationScript {
6770
+ /** Script URL to load. */
6771
+ script: URL;
6772
+ /** Content Security Policy to secure the loading of this script. */
6773
+ contentSecurityPolicy?: string;
6774
+ /** If true, the script will potentially load use cookies and visitors should be aware. */
6775
+ cookies: boolean;
6776
+ }
6702
6777
  /** Response expected for an event of type `content_compute_document`. */
6703
6778
  export interface ContentComputeDocumentEventResponse {
6704
6779
  document: Document;
@@ -6906,6 +6981,11 @@ export interface OrganizationCustomFontsChannel {
6906
6981
  channel: 'organization-fonts';
6907
6982
  organization: string;
6908
6983
  }
6984
+ /** Subscription channel for all change requests in an organization. */
6985
+ export interface OrganizationChangeRequestsChannel {
6986
+ channel: 'organization-change-requests';
6987
+ organization: string;
6988
+ }
6909
6989
  export interface SpaceCommentsChannel {
6910
6990
  channel: 'space-comments';
6911
6991
  space: string;
@@ -7068,8 +7148,12 @@ export interface AgentTasksChannel {
7068
7148
  /** The ID of the organization. */
7069
7149
  organization: string;
7070
7150
  }
7151
+ export interface ImportRunChannel {
7152
+ channel: 'import-run';
7153
+ runId: string;
7154
+ }
7071
7155
  /** Channel to subscribe to for realtime updates. */
7072
- 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 | 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;
7156
+ 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;
7073
7157
  export interface TranslationRunChannelData {
7074
7158
  channel: 'translation-run';
7075
7159
  data: {
@@ -7079,6 +7163,10 @@ export interface TranslationRunChannelData {
7079
7163
  updatedAt: Timestamp;
7080
7164
  };
7081
7165
  }
7166
+ export interface ImportRunChannelData {
7167
+ channel: 'import-run';
7168
+ data: ContentImportRun;
7169
+ }
7082
7170
  export interface GitSyncOperationChannelData {
7083
7171
  channel: 'space-gitsync-operation';
7084
7172
  data: GitSyncOperation;
@@ -7117,7 +7205,7 @@ export interface APIChannelMutationData {
7117
7205
  };
7118
7206
  }
7119
7207
  /** Data passed through a realtime channel */
7120
- export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | TranslationRunChannelData | APIChannelMutationData;
7208
+ export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | OrganizationAIIndexationChannelData | TranslationRunChannelData | ImportRunChannelData | APIChannelMutationData;
7121
7209
  export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
7122
7210
  type: 'object';
7123
7211
  description: string;
@@ -7198,6 +7286,15 @@ export interface AgentStreamState {
7198
7286
  state: AgentState;
7199
7287
  }
7200
7288
  export type AgentStream = AgentStreamMessages | AgentStreamMessageResponse | AgentStreamState;
7289
+ /** Context available when evaluating merge rules expressions. */
7290
+ export interface MergeRulesEvaluationContext {
7291
+ space: Space;
7292
+ changeRequest: ChangeRequest;
7293
+ /** The reviews posted on the change request. */
7294
+ reviews: ChangeRequestReview[];
7295
+ /** The user who is attempting to merge the change request. */
7296
+ actor: User;
7297
+ }
7201
7298
  export type RequestSpaceTrackPageView = SpaceTrackPageView;
7202
7299
  export type RequestSiteTrackPageView = SiteTrackPageView;
7203
7300
  export type RequestPublishIntegration = PublishIntegration;
@@ -7396,6 +7493,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7396
7493
  /** Default level for a piece of content */
7397
7494
  defaultLevel?: DefaultLevel;
7398
7495
  language?: TranslationLanguage;
7496
+ mergeRules?: MergeRulesSpaceConfiguration;
7399
7497
  } & ({
7400
7498
  /** Unicode codepoint or character of the emoji */
7401
7499
  emoji: Emoji;
@@ -8087,6 +8185,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8087
8185
  * @default "open"
8088
8186
  */
8089
8187
  status?: ChangeRequestStatus;
8188
+ /** If defined, only change requests created by this user will be returned. */
8189
+ creator?: string;
8090
8190
  /** If defined, only change requests with contributions from this user will be returned. */
8091
8191
  contributor?: string;
8092
8192
  }, params?: RequestParams) => Promise<HttpResponse<List & {
@@ -8120,6 +8220,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8120
8220
  updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
8121
8221
  /** Subject of the change request */
8122
8222
  subject?: ChangeRequestSubject;
8223
+ description?: JSONDocument;
8123
8224
  status?: "draft" | "open" | "archived";
8124
8225
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
8125
8226
  /**
@@ -8229,6 +8330,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8229
8330
  users: string[];
8230
8331
  /** Optionally, update the subject of the change request when requesting reviewers. */
8231
8332
  subject?: string;
8333
+ /** Optionally, update the description of the change request when requesting reviewers. */
8334
+ description?: JSONDocument;
8232
8335
  }, params?: RequestParams) => Promise<HttpResponse<{
8233
8336
  /** The user requests that were sent. */
8234
8337
  users?: ChangeRequestRequestedReviewer[];
@@ -9216,22 +9319,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9216
9319
  message: string;
9217
9320
  };
9218
9321
  }>>;
9219
- /**
9220
- * No description
9221
- *
9222
- * @tags space-integrations
9223
- * @name ListSpaceIntegrationScripts
9224
- * @summary List all the scripts to embed in published content for a space
9225
- * @request GET:/spaces/{spaceId}/integration-scripts
9226
- * @secure
9227
- */
9228
- listSpaceIntegrationScripts: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceIntegrationScript[], {
9229
- error: {
9230
- /** @format int32 */
9231
- code: 400;
9232
- message: string;
9233
- };
9234
- }>>;
9235
9322
  /**
9236
9323
  * No description
9237
9324
  *
@@ -10182,6 +10269,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10182
10269
  sso?: boolean;
10183
10270
  ai?: boolean;
10184
10271
  inviteLinks?: boolean;
10272
+ mergeRules?: MergeRulesStandaloneConfiguration;
10185
10273
  }, params?: RequestParams) => Promise<HttpResponse<Organization, {
10186
10274
  error: {
10187
10275
  /** @format int32 */
@@ -10561,6 +10649,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10561
10649
  * @secure
10562
10650
  */
10563
10651
  deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
10652
+ /**
10653
+ * @description Join an organization if the user's verified email domain matches one of the organization's allowed email domains. This endpoint allows existing users to join organizations they're eligible for based on their email domain.
10654
+ *
10655
+ * @tags organizations
10656
+ * @name JoinOrganization
10657
+ * @summary Join an organization
10658
+ * @request POST:/orgs/{organizationId}/join
10659
+ * @secure
10660
+ */
10661
+ joinOrganization: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, {
10662
+ error: {
10663
+ /** @format int32 */
10664
+ code: 400;
10665
+ message: string;
10666
+ };
10667
+ } | {
10668
+ error: {
10669
+ /** @format int32 */
10670
+ code: 404;
10671
+ message: string;
10672
+ };
10673
+ }>>;
10564
10674
  /**
10565
10675
  * No description
10566
10676
  *
@@ -10584,6 +10694,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10584
10694
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10585
10695
  items: SearchSpaceResult[];
10586
10696
  }, any>>;
10697
+ /**
10698
+ * No description
10699
+ *
10700
+ * @tags change-requests
10701
+ * @name ListChangeRequestsForOrganization
10702
+ * @summary List all change requests in an organization
10703
+ * @request GET:/orgs/{organizationId}/change-requests
10704
+ * @secure
10705
+ */
10706
+ listChangeRequestsForOrganization: (organizationId: string, query?: {
10707
+ /** Identifier of the page results to fetch. */
10708
+ page?: string;
10709
+ /**
10710
+ * The number of results per page
10711
+ * @min 0
10712
+ * @max 1000
10713
+ */
10714
+ limit?: number;
10715
+ /**
10716
+ * If defined, only change requests matching this status will be returned.
10717
+ * @default "open"
10718
+ */
10719
+ status?: ChangeRequestStatus;
10720
+ /** If defined, only change requests created by this user will be returned. */
10721
+ creator?: string;
10722
+ /** If defined, only change requests with contributions from this user will be returned. */
10723
+ contributor?: string;
10724
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
10725
+ items: ChangeRequest[];
10726
+ }, any>>;
10587
10727
  /**
10588
10728
  * No description
10589
10729
  *
@@ -10760,13 +10900,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10760
10900
  * @max 1000
10761
10901
  */
10762
10902
  limit?: number;
10763
- /** A search string to filter integrations by name */
10764
- search?: string;
10903
+ /**
10904
+ * Filter installations by their target (organization, space, or site). When not provided, defaults to organization-level installations for backwards compatibility
10905
+ * @default "organization"
10906
+ */
10907
+ target?: "organization" | "space" | "site";
10765
10908
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10766
- items: {
10767
- status: IntegrationInstallationStatus;
10768
- integration: Integration;
10769
- }[];
10909
+ items: InstalledIntegration[];
10770
10910
  }, any>>;
10771
10911
  /**
10772
10912
  * @description Lists SAML providers configured for the specified organization.
@@ -12200,7 +12340,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12200
12340
  /** ID of the site-space to be used as the default in this section. */
12201
12341
  defaultSiteSpace?: string;
12202
12342
  /** Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed. */
12203
- condition?: Condition | null;
12343
+ condition?: Expression | null;
12204
12344
  icon?: Icon | null;
12205
12345
  description?: SiteSectionDescription | null;
12206
12346
  }, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
@@ -12314,7 +12454,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12314
12454
  /** Path to the space on the site */
12315
12455
  path?: SiteSpacePath;
12316
12456
  /** Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed. */
12317
- condition?: Condition | null;
12457
+ condition?: Expression | null;
12318
12458
  /** The content that this site space points to. If not set, the space will remain unchanged. */
12319
12459
  spaceId?: string;
12320
12460
  }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
@@ -12829,6 +12969,33 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12829
12969
  */
12830
12970
  deleteSiteMcpServerById: (organizationId: string, siteId: string, siteMcpServerId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
12831
12971
  };
12972
+ org: {
12973
+ /**
12974
+ * No description
12975
+ *
12976
+ * @tags imports
12977
+ * @name StartImportRun
12978
+ * @summary Import content into a space from a website
12979
+ * @request POST:/org/{organizationId}/imports
12980
+ * @secure
12981
+ */
12982
+ startImportRun: (organizationId: string, data: {
12983
+ source: ContentImportSource;
12984
+ target: ContentImportTarget;
12985
+ }, params?: RequestParams) => Promise<HttpResponse<ContentImportRun, {
12986
+ error: {
12987
+ /** @format int32 */
12988
+ code: 400;
12989
+ message: string;
12990
+ };
12991
+ } | {
12992
+ error: {
12993
+ /** @format int32 */
12994
+ code: 404;
12995
+ message: string;
12996
+ };
12997
+ }>>;
12998
+ };
12832
12999
  subdomains: {
12833
13000
  /**
12834
13001
  * No description