@gitbook/api 0.34.0 → 0.36.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
@@ -116,6 +116,18 @@ export interface RequestUpdateIntegrationInstallation {
116
116
  /** Describe whether all spaces have been selected or there's a selection involved */
117
117
  space_selection?: IntegrationInstallationSpaceSelection;
118
118
  }
119
+ export interface RequestUpdateIntegrationSpaceInstallation {
120
+ /** External IDs assigned by the integration. */
121
+ externalIds?: IntegrationInstallationExternalIds;
122
+ /** Configuration of the integration at the account level */
123
+ configuration?: IntegrationInstallationConfiguration;
124
+ }
125
+ export interface RequestUpdateIntegrationSiteInstallation {
126
+ /** External IDs assigned by the integration. */
127
+ externalIds?: IntegrationInstallationExternalIds;
128
+ /** Configuration of the integration at the account level */
129
+ configuration?: IntegrationInstallationConfiguration;
130
+ }
119
131
  export interface RequestUpgradeOrganizationBilling {
120
132
  /** Name of the product */
121
133
  product: BillingProduct;
@@ -159,6 +171,30 @@ export interface RequestImportGitRepository {
159
171
  /** Optional metadata to store on the space about the Git provider */
160
172
  gitInfo?: RequestUpdateSpaceGitInfo;
161
173
  }
174
+ export interface RequestSyncGitRepository {
175
+ /** Git ref in the format "refs/heads/main" */
176
+ ref: string;
177
+ /** URL of the Git repository used for synchronization. It can contain basic auth credentials. */
178
+ repoURL: string;
179
+ /** URL to use as a prefix for external file references. */
180
+ repoTreeURL: string;
181
+ /** URL to use as a prefix for the commit URL. */
182
+ repoCommitURL: string;
183
+ /** Path to a root directory for the project in the repository. */
184
+ repoProjectDirectory?: string;
185
+ /** Template message for the commit generated during the synchronization. */
186
+ commitMessageTemplate: string;
187
+ /** If true, the synchronization of the ref will generate a revision without updating the space primary content. */
188
+ standalone?: boolean;
189
+ /** Whether to force the synchronization */
190
+ force?: {
191
+ priority: 'gitbook' | 'git';
192
+ };
193
+ /** The timestamp of the event. It ensures the synchronize operations are executed in the same order on GitBook and on the remote repository. */
194
+ timestamp?: Timestamp;
195
+ /** Optional metadata to store on the space about the Git provider */
196
+ gitInfo?: RequestUpdateSpaceGitInfo;
197
+ }
162
198
  export interface RequestExportToGitRepository {
163
199
  /** URL of the Git repository to export to. It can contain basic auth credentials. */
164
200
  url: string;
@@ -235,6 +271,23 @@ export interface RequestUpdateSpaceGitInfo {
235
271
  /** The repository's tree URL */
236
272
  url?: string;
237
273
  }
274
+ export declare type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
275
+ export interface CreateInviteToSpace {
276
+ /** The level of the member in the target space */
277
+ level: MemberRoleOrGuest;
278
+ /** The ID of space the member has been invited to */
279
+ space: string;
280
+ }
281
+ export interface CreateInviteToCollection {
282
+ /** The level of the member in the target collection */
283
+ level: MemberRoleOrGuest;
284
+ /** The ID of collection the member has been invited to */
285
+ collection: string;
286
+ }
287
+ export interface CreateInviteToOrganization {
288
+ /** The role of the member in the organization */
289
+ role: MemberRoleOrGuest;
290
+ }
238
291
  export interface ApiInformation {
239
292
  /** Current release of GitBook */
240
293
  version: string;
@@ -276,7 +329,7 @@ export interface User {
276
329
  * URL of the user in the API
277
330
  * @format uri
278
331
  */
279
- location?: string;
332
+ location: string;
280
333
  };
281
334
  }
282
335
  /** The API token details, excluding the token itself. */
@@ -483,7 +536,7 @@ export interface JSONDocument {
483
536
  };
484
537
  nodes: DocumentBlocksTopLevels[];
485
538
  }
486
- export declare type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
539
+ export declare type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
487
540
  export declare type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
488
541
  export interface DocumentText {
489
542
  object: 'text';
@@ -498,7 +551,7 @@ export interface DocumentFragment {
498
551
  nodes: DocumentBlocksEssentials[];
499
552
  }
500
553
  export declare type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
501
- export declare type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
554
+ export declare type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
502
555
  export interface DocumentTextLeaf {
503
556
  object: 'leaf';
504
557
  text: string;
@@ -663,7 +716,7 @@ export interface DocumentBlockListItem {
663
716
  object: 'block';
664
717
  type: 'list-item';
665
718
  key?: string;
666
- nodes: DocumentBlocksEssentials[];
719
+ nodes: (DocumentBlocksEssentials | DocumentBlockCode | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockTable)[];
667
720
  isVoid?: false;
668
721
  data?: {
669
722
  checked?: boolean;
@@ -963,7 +1016,20 @@ export interface DocumentBlockDivider {
963
1016
  isVoid: true;
964
1017
  data: object;
965
1018
  }
966
- export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet;
1019
+ export interface DocumentBlockSyncedBlock {
1020
+ object: 'block';
1021
+ type: 'synced-block';
1022
+ key?: string;
1023
+ data: {
1024
+ ref: ContentRefSyncedBlock;
1025
+ };
1026
+ meta?: {
1027
+ /** API Token to use to fetch the synced block from the API. */
1028
+ apiToken: string;
1029
+ };
1030
+ isVoid: true;
1031
+ }
1032
+ export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock;
967
1033
  export interface ContentRefURL {
968
1034
  kind: 'url';
969
1035
  url: string;
@@ -1003,6 +1069,11 @@ export interface ContentRefSnippet {
1003
1069
  snippet: string;
1004
1070
  organization: string;
1005
1071
  }
1072
+ export interface ContentRefSyncedBlock {
1073
+ kind: 'synced-block';
1074
+ syncedBlock: string;
1075
+ organization: string;
1076
+ }
1006
1077
  export interface Space {
1007
1078
  /** Type of Object, always equals to "space" */
1008
1079
  object: 'space';
@@ -1061,15 +1132,7 @@ export interface Space {
1061
1132
  /** ID of the parent collection. */
1062
1133
  parent?: string;
1063
1134
  gitSync?: GitSyncState;
1064
- visitorAuth?: {
1065
- /** Custom backend for Visitor Authentication */
1066
- backend: 'custom';
1067
- } | {
1068
- /** Integration as backend for Visitor Authentication */
1069
- backend: 'integration';
1070
- /** Name of integration being used as the backend for Visitor Authentication */
1071
- integration: string;
1072
- };
1135
+ visitorAuth?: SpaceVisitorAuth;
1073
1136
  /** ID of the active revision in the space. */
1074
1137
  revision: string;
1075
1138
  /** Default level for a piece of content */
@@ -1090,6 +1153,15 @@ export declare enum SpaceEditMode {
1090
1153
  * @maxLength 50
1091
1154
  */
1092
1155
  export declare type SpaceTitle = string;
1156
+ export declare type SpaceVisitorAuth = {
1157
+ /** Custom backend for Visitor Authentication */
1158
+ backend: 'custom';
1159
+ } | {
1160
+ /** Integration as backend for Visitor Authentication */
1161
+ backend: 'integration';
1162
+ /** Name of integration being used as the backend for Visitor Authentication */
1163
+ integration: string;
1164
+ };
1093
1165
  export interface RevisionBase {
1094
1166
  /** Type of Object, always equals to "revision" */
1095
1167
  object: 'revision';
@@ -1599,31 +1671,25 @@ export declare type OrganizationInvite = {
1599
1671
  object: 'invite';
1600
1672
  /** Unique identifier for the organization invite */
1601
1673
  id: string;
1674
+ } & ({
1602
1675
  /** The role of the member in the organization */
1603
1676
  role: MemberRoleOrGuest;
1604
1677
  } | {
1605
- /** Type of Object, always equals to "invite" */
1606
- object: 'invite';
1607
- /** Unique identifier for the organization invite */
1608
- id: string;
1609
- /** The role of the member in the organization */
1610
- role: MemberRoleOrGuest;
1611
- /** The role of the member in the target space */
1612
- contentLevel: MemberRoleOrGuest;
1678
+ /** The level of the member in the target space */
1679
+ level: MemberRoleOrGuest;
1613
1680
  /** The space the member has been invited to */
1614
1681
  space: Space;
1615
1682
  } | {
1616
- /** Type of Object, always equals to "invite" */
1617
- object: 'invite';
1618
- /** Unique identifier for the organization invite */
1619
- id: string;
1620
- /** The role of the member in the organization */
1621
- role: MemberRoleOrGuest;
1622
- /** The role of the member in the target collection */
1623
- contentLevel: MemberRoleOrGuest;
1683
+ /** The level of the member in the target collection */
1684
+ level: MemberRoleOrGuest;
1624
1685
  /** The collection the member has been invited to */
1625
1686
  collection: Collection;
1626
- };
1687
+ });
1688
+ export interface OrganizationPointer {
1689
+ type: 'organization';
1690
+ /** Unique identifier for the organization */
1691
+ organization: string;
1692
+ }
1627
1693
  export interface Capture {
1628
1694
  /** Unique identifier for the capture */
1629
1695
  id: string;
@@ -1776,6 +1842,25 @@ export interface UpdateSnippetSchema {
1776
1842
  /** A new title for the snippet. */
1777
1843
  title?: string;
1778
1844
  }
1845
+ export interface SyncedBlock {
1846
+ /** Unique identifier for the synced block */
1847
+ id: string;
1848
+ /** ID of the organization owning this synced block */
1849
+ organization: string;
1850
+ /** @format date-time */
1851
+ createdAt: string;
1852
+ /**
1853
+ * Title describing the synced block.
1854
+ * @maxLength 100
1855
+ */
1856
+ title?: string;
1857
+ document: JSONDocument;
1858
+ /** URLs associated with the object */
1859
+ urls: {
1860
+ /** URL of the synced block in the API */
1861
+ location: URL;
1862
+ };
1863
+ }
1779
1864
  /** Content audit relation */
1780
1865
  export interface ContentAuditRelation {
1781
1866
  id: string;
@@ -1812,6 +1897,59 @@ export interface ContentAuditSourceSection {
1812
1897
  space: Space;
1813
1898
  page: RevisionPageDocument;
1814
1899
  }
1900
+ export interface ContentReferenceUsage {
1901
+ /**
1902
+ * Text to display to represent the reference. Possible values include:
1903
+ * - `ok` - No problems detected for this content reference.
1904
+ * - `broken` - The target does not exist in the revision.
1905
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
1906
+ */
1907
+ status: ContentReferenceStatus;
1908
+ /** The reference target where a list of pages are pointing at */
1909
+ targetReference: ContentReferenceResolved;
1910
+ /** All pages where the target is being referenced. */
1911
+ locationReferences: ContentReferenceResolved[];
1912
+ }
1913
+ export interface ContentReferenceResolved {
1914
+ /** Text to display to represent the reference */
1915
+ text: string;
1916
+ /** The type of the content reference */
1917
+ type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url' | 'synced-block';
1918
+ /** Target in-app url for the reference */
1919
+ url: string;
1920
+ extra: {
1921
+ collection?: Collection;
1922
+ space?: Space;
1923
+ page?: RevisionPage;
1924
+ anchor?: RevisionPage;
1925
+ file?: RevisionFile;
1926
+ snippet?: Snippet;
1927
+ user?: User;
1928
+ };
1929
+ }
1930
+ /**
1931
+ * Text to display to represent the reference. Possible values include:
1932
+ * - `ok` - No problems detected for this content reference.
1933
+ * - `broken` - The target does not exist in the revision.
1934
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
1935
+ */
1936
+ export declare enum ContentReferenceStatus {
1937
+ Ok = "ok",
1938
+ Broken = "broken",
1939
+ InApp = "in-app"
1940
+ }
1941
+ export interface ContentReferencesStats {
1942
+ /** Total count of links */
1943
+ total: number;
1944
+ broken: {
1945
+ /** Count of broken links */
1946
+ total: number;
1947
+ /** Count of broken links in space. When in the context of a change request it refers to the broken links already existing at the time of the change request creation. */
1948
+ space: number;
1949
+ /** Count of broken links that were broken in current change request, if applicable. */
1950
+ changeRequest: number;
1951
+ };
1952
+ }
1815
1953
  export interface ChangeRequest {
1816
1954
  /** Type of Object, always equals to "change-request" */
1817
1955
  object: 'change-request';
@@ -1834,6 +1972,11 @@ export interface ChangeRequest {
1834
1972
  * @format uri
1835
1973
  */
1836
1974
  app: string;
1975
+ /**
1976
+ * URL of the user in the API
1977
+ * @format uri
1978
+ */
1979
+ location: string;
1837
1980
  };
1838
1981
  }
1839
1982
  export declare enum ChangeRequestStatus {
@@ -2040,6 +2183,9 @@ export declare type SearchAIAnswerSource = {
2040
2183
  export interface SearchAIRecommendedQuestions {
2041
2184
  questions: string[];
2042
2185
  }
2186
+ export interface SearchAIRecommendedQuestionStream {
2187
+ question: string;
2188
+ }
2043
2189
  export declare enum AnalyticsSearchPeriod {
2044
2190
  LastMonth = "last_month",
2045
2191
  LastWeek = "last_week",
@@ -2263,7 +2409,8 @@ export declare enum IntegrationScope {
2263
2409
  SpaceScriptInject = "space:script:inject",
2264
2410
  SpaceScriptCookies = "space:script:cookies",
2265
2411
  SpaceGitSync = "space:git:sync",
2266
- SpaceVisitorAuth = "space:visitor:auth"
2412
+ SpaceVisitorAuth = "space:visitor:auth",
2413
+ SiteVisitorAuth = "site:visitor:auth"
2267
2414
  }
2268
2415
  /** A search string to filter integrations by name */
2269
2416
  export declare type IntegrationSearchQuery = any;
@@ -2446,6 +2593,33 @@ export interface IntegrationSpaceInstallation {
2446
2593
  publicEndpoint: string;
2447
2594
  };
2448
2595
  }
2596
+ /** Installation of an integration at a site level */
2597
+ export interface IntegrationSiteInstallation {
2598
+ /** Unique name identifier of the integration */
2599
+ integration: string;
2600
+ /** ID of the integration installation */
2601
+ installation: string;
2602
+ /** ID of the site the integration is installed on. */
2603
+ site: string;
2604
+ status: IntegrationInstallationStatus;
2605
+ /** Configuration of the integration for this site */
2606
+ configuration: object;
2607
+ /** External IDs assigned by the integration. */
2608
+ externalIds: IntegrationInstallationExternalIds;
2609
+ /** URLs associated with the object */
2610
+ urls: {
2611
+ /**
2612
+ * URL of the integration's site installation in the API
2613
+ * @format uri
2614
+ */
2615
+ location: string;
2616
+ /**
2617
+ * Public HTTP endpoint for the integration's site installation
2618
+ * @format uri
2619
+ */
2620
+ publicEndpoint: string;
2621
+ };
2622
+ }
2449
2623
  export declare enum IntegrationInstallationStatus {
2450
2624
  Active = "active",
2451
2625
  Pending = "pending",
@@ -3396,13 +3570,17 @@ export interface ContentKitURL {
3396
3570
  query?: Record<string, string | ContentKitDynamicBinding>;
3397
3571
  }
3398
3572
  /** Channel to subscribe to for API updates. */
3399
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | {
3573
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | {
3574
+ channel: 'space-change-request-broken-links';
3575
+ space: string;
3576
+ changeRequest: string;
3577
+ } | CollectionChannel | CollectionPublishingCustomizationChannel | {
3400
3578
  channel: 'organization';
3401
3579
  organization: string;
3402
- } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
3580
+ } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
3403
3581
  channel: 'organization-experimental-features';
3404
3582
  organization: string;
3405
- } | {
3583
+ } | OrganizationSyncedBlockChannel | {
3406
3584
  channel: 'space-comments';
3407
3585
  space: string;
3408
3586
  changeRequest?: string;
@@ -3422,7 +3600,10 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
3422
3600
  space: string;
3423
3601
  changeRequest?: string;
3424
3602
  comment: string;
3425
- } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel;
3603
+ } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteSpaceChannel | SiteSpacesChannel | {
3604
+ channel: 'site-publishing-auth';
3605
+ site: string;
3606
+ } | CustomHostnameChannel;
3426
3607
  export interface SpaceInfoChannel {
3427
3608
  channel: 'space';
3428
3609
  space: string;
@@ -3511,6 +3692,11 @@ export interface OrganizationTeamChannel {
3511
3692
  organization: string;
3512
3693
  team: string;
3513
3694
  }
3695
+ export interface OrganizationSyncedBlockChannel {
3696
+ channel: 'organization-synced-block';
3697
+ organization: string;
3698
+ syncedBlock: string;
3699
+ }
3514
3700
  export interface OrganizationTeamMembersChannel {
3515
3701
  channel: 'organization-team-members';
3516
3702
  organization: string;
@@ -3559,6 +3745,11 @@ export interface OrganizationInstallationsChannel {
3559
3745
  channel: 'organization-installations';
3560
3746
  organization: string;
3561
3747
  }
3748
+ /** Subscription channel for changes in sites in an organization. */
3749
+ export interface OrganizationSitesChannel {
3750
+ channel: 'organization-sites';
3751
+ organization: string;
3752
+ }
3562
3753
  export interface IntegrationChannel {
3563
3754
  channel: 'integration';
3564
3755
  integration: string;
@@ -3579,6 +3770,35 @@ export interface IntegrationSpaceInstallationsChannel {
3579
3770
  integration: string;
3580
3771
  installation: string;
3581
3772
  }
3773
+ export interface IntegrationSiteInstallationChannel {
3774
+ channel: 'integration-site-installation';
3775
+ integration: string;
3776
+ installation: string;
3777
+ site: string;
3778
+ }
3779
+ export interface IntegrationSiteInstallationsChannel {
3780
+ channel: 'integration-site-installations';
3781
+ integration: string;
3782
+ installation: string;
3783
+ }
3784
+ export interface SiteChannel {
3785
+ channel: 'site';
3786
+ site: string;
3787
+ }
3788
+ export interface SiteSpaceChannel {
3789
+ channel: 'site-space';
3790
+ site: string;
3791
+ siteSpace: string;
3792
+ }
3793
+ /** Subscription channel for changes in site spaces in an organization. */
3794
+ export interface SiteSpacesChannel {
3795
+ channel: 'site-spaces';
3796
+ site: string;
3797
+ }
3798
+ export interface CustomHostnameChannel {
3799
+ channel: 'custom-hostname';
3800
+ customHostname: string;
3801
+ }
3582
3802
  /** Custom field */
3583
3803
  export interface CustomField {
3584
3804
  id: string;
@@ -3814,121 +4034,352 @@ export interface ShareLink {
3814
4034
  * @maxLength 50
3815
4035
  */
3816
4036
  export declare type ShareLinkName = string;
3817
- import { EventIterator } from 'event-iterator';
3818
- export declare type QueryParamsType = Record<string | number, any>;
3819
- export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
3820
- export interface FullRequestParams extends Omit<RequestInit, 'body'> {
3821
- /** set parameter to `true` for call `securityWorker` for this request */
3822
- secure?: boolean;
3823
- /** request path */
3824
- path: string;
3825
- /** content type of request body */
3826
- type?: ContentType;
3827
- /** query params */
3828
- query?: QueryParamsType;
3829
- /** format of response (i.e. response.json() -> format: "json") */
3830
- format?: ResponseFormat;
3831
- /** request body */
3832
- body?: unknown;
3833
- /** base url */
3834
- baseUrl?: string;
3835
- /** request cancellation token */
3836
- cancelToken?: CancelToken;
3837
- }
3838
- export declare type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
3839
- export interface ApiConfig<SecurityDataType = unknown> {
3840
- baseUrl?: string;
3841
- baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
3842
- securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
3843
- customFetch?: typeof fetch;
3844
- }
3845
- export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
3846
- data: D;
3847
- error: E;
3848
- }
3849
- declare type CancelToken = Symbol | string | number;
3850
- export declare enum ContentType {
3851
- Json = "application/json",
3852
- FormData = "multipart/form-data",
3853
- UrlEncoded = "application/x-www-form-urlencoded",
3854
- Text = "text/plain"
3855
- }
3856
- export declare class HttpClient<SecurityDataType = unknown> {
3857
- baseUrl: string;
3858
- private securityData;
3859
- private securityWorker?;
3860
- private abortControllers;
3861
- private customFetch;
3862
- private baseApiParams;
3863
- constructor(apiConfig?: ApiConfig<SecurityDataType>);
3864
- setSecurityData: (data: SecurityDataType | null) => void;
3865
- protected encodeQueryParam(key: string, value: any): string;
3866
- protected addQueryParam(query: QueryParamsType, key: string): string;
3867
- protected addArrayQueryParam(query: QueryParamsType, key: string): any;
3868
- protected toQueryString(rawQuery?: QueryParamsType): string;
3869
- protected addQueryParams(rawQuery?: QueryParamsType): string;
3870
- private contentFormatters;
3871
- protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
3872
- protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
3873
- abortRequest: (cancelToken: CancelToken) => void;
3874
- request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
3875
- streamRequest: <T, E>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
3876
- }
3877
- /**
3878
- * @title GitBook API
3879
- * @version 0.0.1-beta
3880
- * @termsOfService https://policies.gitbook.com
3881
- * @baseUrl {host}/v1
3882
- * @contact API Support <support@gitbook.com> (https://gitbook.com/support)
3883
- *
3884
- * The GitBook API
3885
- */
3886
- export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
4037
+ export interface Site {
4038
+ object: 'site';
4039
+ /** Unique identifier of the site */
4040
+ id: string;
4041
+ /** Title of the site */
4042
+ title: SiteTitle;
4043
+ /** Custom hostname for the site, for e.g. docs.mycompany.com */
4044
+ hostname?: SiteHostname;
4045
+ /** Basename for the site. For e.g. api */
4046
+ basename: SiteBasename;
3887
4047
  /**
3888
- * @description Access the release version and build date of the GitBook codebase
3889
- *
3890
- * @tags api
3891
- * @name GetApiInformation
3892
- * @summary Get information about the state of the GitBook API
3893
- * @request GET:/
3894
- * @secure
4048
+ * * `public`: Anyone can access the site, and the site is indexed by search engines.
4049
+ * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
4050
+ * * `share-link`: Anyone with a secret token in the url can access the site.
4051
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
4052
+ * * `unpublished`: The site is not accessible to anyone.
3895
4053
  */
3896
- getApiInformation: (params?: RequestParams) => Promise<HttpResponse<ApiInformation, Error>>;
3897
- search: {
4054
+ visibility: SiteVisibility;
4055
+ siteSpaces: number;
4056
+ /** @format date-time */
4057
+ createdAt: string;
4058
+ subscription: SiteSubscription;
4059
+ /** URLs associated with the object */
4060
+ urls: {
3898
4061
  /**
3899
- * No description
3900
- *
3901
- * @tags search
3902
- * @name SearchContent
3903
- * @summary Search content across spaces that is accessible by the currently authenticated target
3904
- * @request GET:/search
3905
- * @secure
4062
+ * URL of the site in the API
4063
+ * @format uri
3906
4064
  */
3907
- searchContent: (query: {
3908
- query: string;
3909
- /** Identifier of the page results to fetch. */
3910
- page?: string;
3911
- /** The number of results per page */
3912
- limit?: number;
3913
- }, params?: RequestParams) => Promise<HttpResponse<List & {
3914
- items: SearchSpaceResult[];
3915
- }, Error>>;
4065
+ location: string;
3916
4066
  /**
3917
- * No description
3918
- *
3919
- * @name AskQueryWithGet
3920
- * @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
3921
- * @request GET:/search/ask
3922
- * @deprecated
3923
- * @secure
4067
+ * URL of the site in the application
4068
+ * @format uri
3924
4069
  */
3925
- askQueryWithGet: (query: {
3926
- query: string;
3927
- /** Output format for the content. */
3928
- format?: 'document' | 'markdown';
3929
- }, params?: RequestParams) => Promise<HttpResponse<{
3930
- /** Answer from AI for a question asked on a content. */
3931
- answer?: SearchAIAnswer;
4070
+ app: string;
4071
+ /**
4072
+ * URL of the published version of the site. Only defined when visibility is not "unpublished."
4073
+ * @format uri
4074
+ */
4075
+ published?: string;
4076
+ };
4077
+ }
4078
+ /**
4079
+ * Title of the site
4080
+ * @minLength 2
4081
+ * @maxLength 50
4082
+ */
4083
+ export declare type SiteTitle = string;
4084
+ export interface SiteCustomizationSettings {
4085
+ styling: {
4086
+ primaryColor: CustomizationThemedColor;
4087
+ corners: CustomizationCorners;
4088
+ font: CustomizationFont;
4089
+ background: CustomizationBackground;
4090
+ };
4091
+ internationalization: {
4092
+ /** Language for the UI element */
4093
+ locale: CustomizationLocale;
4094
+ };
4095
+ favicon: {
4096
+ icon: CustomizationThemedURL;
4097
+ } | {
4098
+ /** Unicode codepoint or character of the emoji */
4099
+ emoji: Emoji;
4100
+ } | object;
4101
+ header: {
4102
+ preset: CustomizationHeaderPreset;
4103
+ logo?: CustomizationThemedURL;
4104
+ backgroundColor?: CustomizationThemedColor;
4105
+ linkColor?: CustomizationThemedColor;
4106
+ links: CustomizationHeaderLink[];
4107
+ };
4108
+ footer: {
4109
+ logo?: CustomizationThemedURL;
4110
+ groups: CustomizationFooterGroup[];
4111
+ /** @maxLength 300 */
4112
+ copyright?: string;
4113
+ };
4114
+ themes: {
4115
+ default: CustomizationThemeMode;
4116
+ /** Should the reader be able to switch between dark and light mode */
4117
+ toggeable: boolean;
4118
+ };
4119
+ pdf: {
4120
+ /** If true, PDF export is enabled for the published site. */
4121
+ enabled: boolean;
4122
+ };
4123
+ feedback: {
4124
+ /** If true, feedback gathering is enabled */
4125
+ enabled: boolean;
4126
+ };
4127
+ aiSearch: {
4128
+ /** If true, AI search is enabled */
4129
+ enabled: boolean;
4130
+ };
4131
+ git: {
4132
+ /** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
4133
+ showEditLink: boolean;
4134
+ };
4135
+ pagination: {
4136
+ /** Whether the pagination navigation should be displayed on pages. */
4137
+ enabled: boolean;
4138
+ };
4139
+ trademark: {
4140
+ /** Whether the GitBook trademark ("Powered by GitBook") should be visible */
4141
+ enabled: boolean;
4142
+ };
4143
+ privacyPolicy: {
4144
+ url?: URL;
4145
+ };
4146
+ socialPreview: {
4147
+ url?: URL;
4148
+ };
4149
+ }
4150
+ /**
4151
+ * * `public`: Anyone can access the site, and the site is indexed by search engines.
4152
+ * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
4153
+ * * `share-link`: Anyone with a secret token in the url can access the site.
4154
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
4155
+ * * `unpublished`: The site is not accessible to anyone.
4156
+ */
4157
+ export declare enum SiteVisibility {
4158
+ Public = "public",
4159
+ Unlisted = "unlisted",
4160
+ ShareLink = "share-link",
4161
+ VisitorAuth = "visitor-auth",
4162
+ Unpublished = "unpublished"
4163
+ }
4164
+ export declare type SitePublishingAuth = {
4165
+ /** Type of Object, always equals to "publishing-auth" */
4166
+ object: 'publishing-auth';
4167
+ /** Private key used to sign JWT tokens. */
4168
+ privateKey: string;
4169
+ /**
4170
+ * URL to redirect to when the visitor auth secret is invalid.
4171
+ * @format uri
4172
+ */
4173
+ fallbackURL?: string;
4174
+ } & SpaceVisitorAuth;
4175
+ /**
4176
+ * Basename for the site. For e.g. api
4177
+ * @minLength 1
4178
+ * @maxLength 100
4179
+ */
4180
+ export declare type SiteBasename = string;
4181
+ /**
4182
+ * Custom hostname for the site, for e.g. docs.mycompany.com
4183
+ * @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
4184
+ */
4185
+ export declare type SiteHostname = string;
4186
+ export interface SiteSpace {
4187
+ /** The object type, which is always "site-space" */
4188
+ object?: 'site-space';
4189
+ /** Unique identifier of the site-space */
4190
+ id: string;
4191
+ /** Path to the space on the site */
4192
+ path: SiteSpacePath;
4193
+ space: Space;
4194
+ /** Whether this is the default space for the site */
4195
+ default?: boolean;
4196
+ }
4197
+ /**
4198
+ * Path to the space on the site
4199
+ * @minLength 1
4200
+ * @maxLength 100
4201
+ */
4202
+ export declare type SiteSpacePath = string;
4203
+ export declare enum SiteSubscriptionStatus {
4204
+ Active = "active",
4205
+ Inactive = "inactive"
4206
+ }
4207
+ export declare enum SiteSubscriptionType {
4208
+ Basic = "basic",
4209
+ Premium = "premium"
4210
+ }
4211
+ export interface SiteSubscription {
4212
+ type: SiteSubscriptionType;
4213
+ status: SiteSubscriptionStatus;
4214
+ }
4215
+ export interface CustomHostname {
4216
+ object: 'custom-hostname';
4217
+ /** Custom hostname for the site, for e.g. docs.mycompany.com */
4218
+ hostname: SiteHostname;
4219
+ target: OrganizationPointer | SpacePointer | CollectionPointer;
4220
+ isActive: boolean;
4221
+ status?: CustomHostnameStatus;
4222
+ /** URLs associated with the object */
4223
+ urls: {
4224
+ /**
4225
+ * URL of the custom hostname in the API
4226
+ * @format uri
4227
+ */
4228
+ location: string;
4229
+ };
4230
+ }
4231
+ export declare type CustomHostnameStatus = CustomHostnameDnsStatus | CustomHostnameSslStatus | CustomHostnameErrorStatus;
4232
+ export declare enum CustomHostnameDnsStatus {
4233
+ DnsPassed = "dns_passed",
4234
+ DnsWrongCname = "dns_wrong_cname",
4235
+ DnsNoCname = "dns_no_cname",
4236
+ DnsCloudflareProxied = "dns_cloudflare_proxied",
4237
+ DnsWrongCaa = "dns_wrong_caa"
4238
+ }
4239
+ export declare enum CustomHostnameSslStatus {
4240
+ Live = "live",
4241
+ SslUnknown = "ssl_unknown",
4242
+ SslPending = "ssl_pending",
4243
+ SslFailed = "ssl_failed",
4244
+ SslRetryExpired = "ssl_retry_expired"
4245
+ }
4246
+ export declare enum CustomHostnameErrorStatus {
4247
+ InvalidDomain = "invalid_domain",
4248
+ InternalError = "internal_error"
4249
+ }
4250
+ export interface Seat {
4251
+ object: 'seat';
4252
+ /** The unique ID of the organization */
4253
+ organization: string;
4254
+ /** The unique ID of the organization member */
4255
+ member: string;
4256
+ /** @format date-time */
4257
+ createdAt: string;
4258
+ /** @format date-time */
4259
+ updatedAt: string;
4260
+ }
4261
+ /** A summary of the seats usage and availability in the organization. */
4262
+ export interface SeatsUsage {
4263
+ /** The total amount of seats in the organization. */
4264
+ total: number;
4265
+ /** How many seats are still available. */
4266
+ available: number;
4267
+ }
4268
+ import { EventIterator } from 'event-iterator';
4269
+ export declare type QueryParamsType = Record<string | number, any>;
4270
+ export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
4271
+ export interface FullRequestParams extends Omit<RequestInit, 'body'> {
4272
+ /** set parameter to `true` for call `securityWorker` for this request */
4273
+ secure?: boolean;
4274
+ /** request path */
4275
+ path: string;
4276
+ /** content type of request body */
4277
+ type?: ContentType;
4278
+ /** query params */
4279
+ query?: QueryParamsType;
4280
+ /** format of response (i.e. response.json() -> format: "json") */
4281
+ format?: ResponseFormat;
4282
+ /** request body */
4283
+ body?: unknown;
4284
+ /** base url */
4285
+ baseUrl?: string;
4286
+ /** request cancellation token */
4287
+ cancelToken?: CancelToken;
4288
+ }
4289
+ export declare type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
4290
+ export interface ApiConfig<SecurityDataType = unknown> {
4291
+ baseUrl?: string;
4292
+ baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
4293
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
4294
+ customFetch?: typeof fetch;
4295
+ }
4296
+ export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
4297
+ data: D;
4298
+ error: E;
4299
+ }
4300
+ declare type CancelToken = Symbol | string | number;
4301
+ export declare enum ContentType {
4302
+ Json = "application/json",
4303
+ FormData = "multipart/form-data",
4304
+ UrlEncoded = "application/x-www-form-urlencoded",
4305
+ Text = "text/plain"
4306
+ }
4307
+ export declare class HttpClient<SecurityDataType = unknown> {
4308
+ baseUrl: string;
4309
+ private securityData;
4310
+ private securityWorker?;
4311
+ private abortControllers;
4312
+ private customFetch;
4313
+ private baseApiParams;
4314
+ constructor(apiConfig?: ApiConfig<SecurityDataType>);
4315
+ setSecurityData: (data: SecurityDataType | null) => void;
4316
+ protected encodeQueryParam(key: string, value: any): string;
4317
+ protected addQueryParam(query: QueryParamsType, key: string): string;
4318
+ protected addArrayQueryParam(query: QueryParamsType, key: string): any;
4319
+ protected toQueryString(rawQuery?: QueryParamsType): string;
4320
+ protected addQueryParams(rawQuery?: QueryParamsType): string;
4321
+ private contentFormatters;
4322
+ protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
4323
+ protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
4324
+ abortRequest: (cancelToken: CancelToken) => void;
4325
+ request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
4326
+ streamRequest: <T, E>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
4327
+ }
4328
+ /**
4329
+ * @title GitBook API
4330
+ * @version 0.0.1-beta
4331
+ * @termsOfService https://policies.gitbook.com
4332
+ * @baseUrl {host}/v1
4333
+ * @contact API Support <support@gitbook.com> (https://gitbook.com/support)
4334
+ *
4335
+ * The GitBook API
4336
+ */
4337
+ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
4338
+ /**
4339
+ * @description Access the release version and build date of the GitBook codebase
4340
+ *
4341
+ * @tags api
4342
+ * @name GetApiInformation
4343
+ * @summary Get information about the state of the GitBook API
4344
+ * @request GET:/
4345
+ * @secure
4346
+ */
4347
+ getApiInformation: (params?: RequestParams) => Promise<HttpResponse<ApiInformation, Error>>;
4348
+ search: {
4349
+ /**
4350
+ * No description
4351
+ *
4352
+ * @tags search
4353
+ * @name SearchContent
4354
+ * @summary Search content across spaces that is accessible by the currently authenticated target
4355
+ * @request GET:/search
4356
+ * @secure
4357
+ */
4358
+ searchContent: (query: {
4359
+ query: string;
4360
+ /** Identifier of the page results to fetch. */
4361
+ page?: string;
4362
+ /** The number of results per page */
4363
+ limit?: number;
4364
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
4365
+ items: SearchSpaceResult[];
4366
+ }, Error>>;
4367
+ /**
4368
+ * No description
4369
+ *
4370
+ * @name AskQueryWithGet
4371
+ * @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
4372
+ * @request GET:/search/ask
4373
+ * @deprecated
4374
+ * @secure
4375
+ */
4376
+ askQueryWithGet: (query: {
4377
+ query: string;
4378
+ /** Output format for the content. */
4379
+ format?: 'document' | 'markdown';
4380
+ }, params?: RequestParams) => Promise<HttpResponse<{
4381
+ /** Answer from AI for a question asked on a content. */
4382
+ answer?: SearchAIAnswer;
3932
4383
  }, Error>>;
3933
4384
  /**
3934
4385
  * No description
@@ -4026,7 +4477,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4026
4477
  */
4027
4478
  visibility?: ContentVisibility;
4028
4479
  /** The integration property, if set, is ignored. */
4029
- visitorAuth?: any;
4480
+ visitorAuth?: SpaceVisitorAuth;
4030
4481
  /** Default level for a piece of content */
4031
4482
  defaultLevel?: DefaultLevel;
4032
4483
  } & ({
@@ -4207,6 +4658,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4207
4658
  * @secure
4208
4659
  */
4209
4660
  getRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
4661
+ /**
4662
+ * No description
4663
+ *
4664
+ * @name StreamRecommendedQuestionsInSpace
4665
+ * @summary Stream a list of questions that can be asked in a space.
4666
+ * @request GET:/spaces/{spaceId}/search/questions/stream
4667
+ * @secure
4668
+ */
4669
+ streamRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
4210
4670
  /**
4211
4671
  * No description
4212
4672
  *
@@ -4227,6 +4687,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4227
4687
  * @secure
4228
4688
  */
4229
4689
  exportToGitRepository: (spaceId: string, data: RequestExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4690
+ /**
4691
+ * No description
4692
+ *
4693
+ * @tags spaces
4694
+ * @name SyncGitRepository
4695
+ * @summary Synchronize a Git repository with the space content.
4696
+ * @request POST:/spaces/{spaceId}/git/sync
4697
+ * @secure
4698
+ */
4699
+ syncGitRepository: (spaceId: string, data: RequestSyncGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4230
4700
  /**
4231
4701
  * No description
4232
4702
  *
@@ -4294,7 +4764,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4294
4764
  * @request GET:/spaces/{spaceId}/content
4295
4765
  * @secure
4296
4766
  */
4297
- getCurrentRevision: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4767
+ getCurrentRevision: (spaceId: string, query?: {
4768
+ /**
4769
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4770
+ * @default true
4771
+ */
4772
+ metadata?: boolean;
4773
+ }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4298
4774
  /**
4299
4775
  * No description
4300
4776
  *
@@ -4312,7 +4788,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4312
4788
  * @request GET:/spaces/{spaceId}/content/pages
4313
4789
  * @secure
4314
4790
  */
4315
- listPages: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<{
4791
+ listPages: (spaceId: string, query?: {
4792
+ /**
4793
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4794
+ * @default true
4795
+ */
4796
+ metadata?: boolean;
4797
+ }, params?: RequestParams) => Promise<HttpResponse<{
4316
4798
  pages: RevisionPage[];
4317
4799
  }, Error>>;
4318
4800
  /**
@@ -4328,6 +4810,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4328
4810
  page?: string;
4329
4811
  /** The number of results per page */
4330
4812
  limit?: number;
4813
+ /**
4814
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4815
+ * @default true
4816
+ */
4817
+ metadata?: boolean;
4331
4818
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4332
4819
  items: RevisionFile[];
4333
4820
  }, Error>>;
@@ -4339,7 +4826,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4339
4826
  * @request GET:/spaces/{spaceId}/content/files/{fileId}
4340
4827
  * @secure
4341
4828
  */
4342
- getFileById: (spaceId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4829
+ getFileById: (spaceId: string, fileId: string, query?: {
4830
+ /**
4831
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4832
+ * @default true
4833
+ */
4834
+ metadata?: boolean;
4835
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4343
4836
  /**
4344
4837
  * No description
4345
4838
  *
@@ -4351,6 +4844,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4351
4844
  getPageById: (spaceId: string, pageId: string, query?: {
4352
4845
  /** Output format for the content. */
4353
4846
  format?: 'document' | 'markdown';
4847
+ /**
4848
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4849
+ * @default true
4850
+ */
4851
+ metadata?: boolean;
4354
4852
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
4355
4853
  /**
4356
4854
  * No description
@@ -4372,6 +4870,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4372
4870
  getPageByPath: (spaceId: string, pagePath: string, query?: {
4373
4871
  /** Output format for the content. */
4374
4872
  format?: 'document' | 'markdown';
4873
+ /**
4874
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
4875
+ * @default true
4876
+ */
4877
+ metadata?: boolean;
4375
4878
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
4376
4879
  /**
4377
4880
  * No description
@@ -4426,7 +4929,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4426
4929
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}
4427
4930
  * @secure
4428
4931
  */
4429
- getChangeRequestById: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error | {
4932
+ getChangeRequestById: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error | {
4430
4933
  error: {
4431
4934
  /** @format int32 */
4432
4935
  code: 404;
@@ -4442,7 +4945,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4442
4945
  * @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
4443
4946
  * @secure
4444
4947
  */
4445
- updateChangeRequestById: (spaceId: string, changeRequestId: string | number, data: {
4948
+ updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
4446
4949
  /** Subject of the change request */
4447
4950
  subject?: ChangeRequestSubject;
4448
4951
  }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
@@ -4455,7 +4958,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4455
4958
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/merge
4456
4959
  * @secure
4457
4960
  */
4458
- mergeChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
4961
+ mergeChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
4459
4962
  /** ID of the resulting revision */
4460
4963
  revision: string;
4461
4964
  result: 'merge' | 'conflicts';
@@ -4469,7 +4972,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4469
4972
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/update
4470
4973
  * @secure
4471
4974
  */
4472
- updateChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
4975
+ updateChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
4473
4976
  /** ID of the resulting revision */
4474
4977
  revision: string;
4475
4978
  result: 'update' | 'conflicts';
@@ -4483,7 +4986,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4483
4986
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
4484
4987
  * @secure
4485
4988
  */
4486
- getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
4989
+ getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
4487
4990
  /** Output format for the content. */
4488
4991
  format?: 'document' | 'markdown';
4489
4992
  /** Identifier of the page results to fetch. */
@@ -4508,7 +5011,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4508
5011
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
4509
5012
  * @secure
4510
5013
  */
4511
- submitChangeRequestReview: (spaceId: string, changeRequestId: string | number, data: {
5014
+ submitChangeRequestReview: (spaceId: string, changeRequestId: string, data: {
4512
5015
  /** The status of the submitted review. */
4513
5016
  status: ChangeRequestReviewStatus;
4514
5017
  /** Optionally, provide a comment along with the review. */
@@ -4523,7 +5026,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4523
5026
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
4524
5027
  * @secure
4525
5028
  */
4526
- getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string | number, query?: {
5029
+ getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
4527
5030
  /** Identifier of the page results to fetch. */
4528
5031
  page?: string;
4529
5032
  /** The number of results per page */
@@ -4540,7 +5043,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4540
5043
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
4541
5044
  * @secure
4542
5045
  */
4543
- requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string | number, data: {
5046
+ requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string, data: {
4544
5047
  /** An array of user ids that will be requested. */
4545
5048
  users: string[];
4546
5049
  /** Optionally, update the subject of the change request when requesting reviewers. */
@@ -4549,6 +5052,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4549
5052
  /** The user requests that were sent. */
4550
5053
  users?: ChangeRequestRequestedReviewer[];
4551
5054
  }, Error>>;
5055
+ /**
5056
+ * No description
5057
+ *
5058
+ * @tags spaces, links
5059
+ * @name ListChangeRequestLinks
5060
+ * @summary Get all links in the context of a change request including their status and location where they appear.
5061
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
5062
+ * @secure
5063
+ */
5064
+ listChangeRequestLinks: (spaceId: string, changeRequestId: string, query?: {
5065
+ /** Identifier of the page results to fetch. */
5066
+ page?: string;
5067
+ /** The number of results per page */
5068
+ limit?: number;
5069
+ /**
5070
+ * Text to display to represent the reference. Possible values include:
5071
+ * - `ok` - No problems detected for this content reference.
5072
+ * - `broken` - The target does not exist in the revision.
5073
+ * - `in-app` - The target is a URL link pointing to an internal location in the app.
5074
+ */
5075
+ status?: ContentReferenceStatus;
5076
+ brokenContext?: 'change-request' | 'space';
5077
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
5078
+ stats: ContentReferencesStats;
5079
+ items: ContentReferenceUsage[];
5080
+ }, Error | {
5081
+ error: {
5082
+ /** @format int32 */
5083
+ code: 404;
5084
+ message: string;
5085
+ };
5086
+ }>>;
4552
5087
  /**
4553
5088
  * No description
4554
5089
  *
@@ -4558,7 +5093,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4558
5093
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
4559
5094
  * @secure
4560
5095
  */
4561
- listCommentsInChangeRequest: (spaceId: string, changeRequestId: string | number, query?: {
5096
+ listCommentsInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
4562
5097
  /** Identifier of the page results to fetch. */
4563
5098
  page?: string;
4564
5099
  /** The number of results per page */
@@ -4589,7 +5124,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4589
5124
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
4590
5125
  * @secure
4591
5126
  */
4592
- postCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
5127
+ postCommentInChangeRequest: (spaceId: string, changeRequestId: string, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
4593
5128
  /**
4594
5129
  * No description
4595
5130
  *
@@ -4599,7 +5134,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4599
5134
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
4600
5135
  * @secure
4601
5136
  */
4602
- getCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
5137
+ getCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
4603
5138
  /** Output format for the content. */
4604
5139
  format?: 'document' | 'markdown';
4605
5140
  }, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
@@ -4612,7 +5147,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4612
5147
  * @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
4613
5148
  * @secure
4614
5149
  */
4615
- deleteCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5150
+ deleteCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4616
5151
  /**
4617
5152
  * No description
4618
5153
  *
@@ -4622,7 +5157,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4622
5157
  * @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
4623
5158
  * @secure
4624
5159
  */
4625
- updateCommentInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
5160
+ updateCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
4626
5161
  /**
4627
5162
  * No description
4628
5163
  *
@@ -4632,7 +5167,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4632
5167
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
4633
5168
  * @secure
4634
5169
  */
4635
- listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, query?: {
5170
+ listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
4636
5171
  /** Identifier of the page results to fetch. */
4637
5172
  page?: string;
4638
5173
  /** The number of results per page */
@@ -4651,7 +5186,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4651
5186
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
4652
5187
  * @secure
4653
5188
  */
4654
- postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, data: PostCommentReplySchema, query?: {
5189
+ postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, data: PostCommentReplySchema, query?: {
4655
5190
  /** Output format for the content. */
4656
5191
  format?: 'document' | 'markdown';
4657
5192
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
@@ -4664,7 +5199,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4664
5199
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
4665
5200
  * @secure
4666
5201
  */
4667
- getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, query?: {
5202
+ getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, query?: {
4668
5203
  /** Output format for the content. */
4669
5204
  format?: 'document' | 'markdown';
4670
5205
  }, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
@@ -4677,7 +5212,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4677
5212
  * @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
4678
5213
  * @secure
4679
5214
  */
4680
- updateCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
5215
+ updateCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
4681
5216
  /**
4682
5217
  * No description
4683
5218
  *
@@ -4687,7 +5222,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4687
5222
  * @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
4688
5223
  * @secure
4689
5224
  */
4690
- deleteCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string | number, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5225
+ deleteCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4691
5226
  /**
4692
5227
  * No description
4693
5228
  *
@@ -4697,7 +5232,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4697
5232
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
4698
5233
  * @secure
4699
5234
  */
4700
- getContributorsByChangeRequestId: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<List & {
5235
+ getContributorsByChangeRequestId: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<List & {
4701
5236
  items: UserContributor[];
4702
5237
  }, Error | {
4703
5238
  error: {
@@ -4714,7 +5249,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4714
5249
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
4715
5250
  * @secure
4716
5251
  */
4717
- getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5252
+ getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
5253
+ /**
5254
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5255
+ * @default true
5256
+ */
5257
+ metadata?: boolean;
5258
+ }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4718
5259
  /**
4719
5260
  * No description
4720
5261
  *
@@ -4723,7 +5264,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4723
5264
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/import
4724
5265
  * @secure
4725
5266
  */
4726
- importContentInChangeRequest: (spaceId: string, changeRequestId: string | number, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
5267
+ importContentInChangeRequest: (spaceId: string, changeRequestId: string, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
4727
5268
  /**
4728
5269
  * No description
4729
5270
  *
@@ -4732,7 +5273,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4732
5273
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
4733
5274
  * @secure
4734
5275
  */
4735
- listPagesInChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
5276
+ listPagesInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
5277
+ /**
5278
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5279
+ * @default true
5280
+ */
5281
+ metadata?: boolean;
5282
+ }, params?: RequestParams) => Promise<HttpResponse<{
4736
5283
  pages: RevisionPage[];
4737
5284
  }, Error>>;
4738
5285
  /**
@@ -4743,11 +5290,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4743
5290
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
4744
5291
  * @secure
4745
5292
  */
4746
- listFilesInChangeRequestById: (spaceId: string, changeRequestId: string | number, query?: {
5293
+ listFilesInChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
4747
5294
  /** Identifier of the page results to fetch. */
4748
5295
  page?: string;
4749
5296
  /** The number of results per page */
4750
5297
  limit?: number;
5298
+ /**
5299
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5300
+ * @default true
5301
+ */
5302
+ metadata?: boolean;
4751
5303
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4752
5304
  items: RevisionFile[];
4753
5305
  }, Error>>;
@@ -4759,7 +5311,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4759
5311
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
4760
5312
  * @secure
4761
5313
  */
4762
- getFileInChangeRequestById: (spaceId: string, changeRequestId: string | number, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
5314
+ getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string, query?: {
5315
+ /**
5316
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5317
+ * @default true
5318
+ */
5319
+ metadata?: boolean;
5320
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4763
5321
  /**
4764
5322
  * No description
4765
5323
  *
@@ -4768,9 +5326,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4768
5326
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
4769
5327
  * @secure
4770
5328
  */
4771
- getPageInChangeRequestById: (spaceId: string, changeRequestId: string | number, pageId: string, query?: {
5329
+ getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
4772
5330
  /** Output format for the content. */
4773
5331
  format?: 'document' | 'markdown';
5332
+ /**
5333
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5334
+ * @default true
5335
+ */
5336
+ metadata?: boolean;
4774
5337
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
4775
5338
  /**
4776
5339
  * No description
@@ -4780,7 +5343,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4780
5343
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import
4781
5344
  * @secure
4782
5345
  */
4783
- importContentInChangeRequestPageById: (spaceId: string, changeRequestId: string | number, pageId: string, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
5346
+ importContentInChangeRequestPageById: (spaceId: string, changeRequestId: string, pageId: string, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
4784
5347
  /**
4785
5348
  * No description
4786
5349
  *
@@ -4789,10 +5352,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4789
5352
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
4790
5353
  * @secure
4791
5354
  */
4792
- getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string | number, pagePath: string, query?: {
5355
+ getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
4793
5356
  /** Output format for the content. */
4794
5357
  format?: 'document' | 'markdown';
5358
+ /**
5359
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5360
+ * @default true
5361
+ */
5362
+ metadata?: boolean;
4795
5363
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
5364
+ /**
5365
+ * No description
5366
+ *
5367
+ * @tags spaces
5368
+ * @name TouchContentInChangeRequest
5369
+ * @summary Touch Hive content, marking it as modified as part of this change request.
5370
+ * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/touched-content
5371
+ * @secure
5372
+ */
5373
+ touchContentInChangeRequest: (spaceId: string, changeRequestId: string, data: {
5374
+ /** The content id of the touched content. */
5375
+ contentId: string;
5376
+ /** The branch id of the touched content. */
5377
+ branchId: string;
5378
+ /** The relation of the touched content to the change request. */
5379
+ relation: 'synced-block';
5380
+ }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
4796
5381
  /**
4797
5382
  * No description
4798
5383
  *
@@ -4801,7 +5386,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4801
5386
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}
4802
5387
  * @secure
4803
5388
  */
4804
- getRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
5389
+ getRevisionById: (spaceId: string, revisionId: string, query?: {
5390
+ /**
5391
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5392
+ * @default true
5393
+ */
5394
+ metadata?: boolean;
5395
+ }, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4805
5396
  /**
4806
5397
  * No description
4807
5398
  *
@@ -4811,16 +5402,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4811
5402
  * @secure
4812
5403
  */
4813
5404
  getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
5405
+ /**
5406
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5407
+ * @default true
5408
+ */
5409
+ metadata?: boolean;
4814
5410
  /**
4815
5411
  * Limit the number of changes returned
4816
5412
  * @default 10
4817
5413
  */
4818
5414
  limit?: number;
4819
- /**
4820
- * Whether to include changes to metadata, such as git information and custom fields
4821
- * @default true
4822
- */
4823
- metadata?: boolean;
4824
5415
  }, params?: RequestParams) => Promise<HttpResponse<{
4825
5416
  changes: RevisionSemanticChange[];
4826
5417
  /** How many changes were omitted because above the result limit */
@@ -4834,7 +5425,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4834
5425
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
4835
5426
  * @secure
4836
5427
  */
4837
- listPagesInRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<{
5428
+ listPagesInRevisionById: (spaceId: string, revisionId: string, query?: {
5429
+ /**
5430
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5431
+ * @default true
5432
+ */
5433
+ metadata?: boolean;
5434
+ }, params?: RequestParams) => Promise<HttpResponse<{
4838
5435
  pages: RevisionPage[];
4839
5436
  }, Error>>;
4840
5437
  /**
@@ -4850,6 +5447,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4850
5447
  page?: string;
4851
5448
  /** The number of results per page */
4852
5449
  limit?: number;
5450
+ /**
5451
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5452
+ * @default true
5453
+ */
5454
+ metadata?: boolean;
4853
5455
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4854
5456
  items: RevisionFile[];
4855
5457
  }, Error>>;
@@ -4861,7 +5463,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4861
5463
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
4862
5464
  * @secure
4863
5465
  */
4864
- getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
5466
+ getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, query?: {
5467
+ /**
5468
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5469
+ * @default true
5470
+ */
5471
+ metadata?: boolean;
5472
+ }, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4865
5473
  /**
4866
5474
  * No description
4867
5475
  *
@@ -4873,6 +5481,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4873
5481
  getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
4874
5482
  /** Output format for the content. */
4875
5483
  format?: 'document' | 'markdown';
5484
+ /**
5485
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5486
+ * @default true
5487
+ */
5488
+ metadata?: boolean;
4876
5489
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
4877
5490
  /**
4878
5491
  * No description
@@ -4885,6 +5498,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4885
5498
  getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
4886
5499
  /** Output format for the content. */
4887
5500
  format?: 'document' | 'markdown';
5501
+ /**
5502
+ * If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
5503
+ * @default true
5504
+ */
5505
+ metadata?: boolean;
4888
5506
  }, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
4889
5507
  /**
4890
5508
  * No description
@@ -5105,6 +5723,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5105
5723
  message: string;
5106
5724
  };
5107
5725
  }>>;
5726
+ /**
5727
+ * No description
5728
+ *
5729
+ * @tags spaces
5730
+ * @name GetSpacePublishingPreviewById
5731
+ * @summary Get a URL to preview the published content of a space. The URL will be valid for 1 hour.
5732
+ * @request GET:/spaces/{spaceId}/publishing/preview
5733
+ * @secure
5734
+ */
5735
+ getSpacePublishingPreviewById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<{
5736
+ url: URL;
5737
+ }, Error | {
5738
+ error: {
5739
+ /** @format int32 */
5740
+ code: 400;
5741
+ message: string;
5742
+ };
5743
+ }>>;
5744
+ /**
5745
+ * No description
5746
+ *
5747
+ * @tags integrations, spaces
5748
+ * @name ListSpaceIntegrations
5749
+ * @summary List integrations enabled in a space.
5750
+ * @request GET:/spaces/{spaceId}/integrations
5751
+ * @secure
5752
+ */
5753
+ listSpaceIntegrations: (spaceId: string, query?: {
5754
+ /** A search string to filter integrations by name */
5755
+ search?: any;
5756
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
5757
+ items: Integration[];
5758
+ }, Error>>;
5108
5759
  /**
5109
5760
  * No description
5110
5761
  *
@@ -5841,7 +6492,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5841
6492
  * @request PATCH:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
5842
6493
  * @secure
5843
6494
  */
5844
- updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: RequestUpdateIntegrationInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error>>;
6495
+ updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: RequestUpdateIntegrationSpaceInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error>>;
5845
6496
  /**
5846
6497
  * No description
5847
6498
  *
@@ -6209,20 +6860,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6209
6860
  * @secure
6210
6861
  */
6211
6862
  joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
6863
+ /**
6864
+ * No description
6865
+ *
6866
+ * @tags organizations
6867
+ * @name CreateOrganizationInvite
6868
+ * @summary Create a new organization invite
6869
+ * @request POST:/orgs/{organizationId}/link-invites
6870
+ * @secure
6871
+ */
6872
+ createOrganizationInvite: (organizationId: string, data: CreateOrganizationInvite, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
6212
6873
  /**
6213
6874
  * No description
6214
6875
  *
6215
6876
  * @tags organizations
6216
6877
  * @name UpdateOrganizationInviteById
6217
6878
  * @summary Update an organization invite.
6218
- * @request PATCH:/orgs/{organizationId}/invites/{inviteId}
6879
+ * @request PATCH:/orgs/{organizationId}/link-invites/{inviteId}
6219
6880
  * @secure
6220
6881
  */
6221
6882
  updateOrganizationInviteById: (organizationId: string, inviteId: string, data: {
6222
6883
  /** The role of a member in an organization, null for guests */
6223
- role?: MemberRoleOrGuest;
6884
+ role: MemberRoleOrGuest;
6885
+ } | {
6224
6886
  /** The role of a member in an organization, null for guests */
6225
- contentLevel?: MemberRoleOrGuest;
6887
+ level: MemberRoleOrGuest;
6226
6888
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
6227
6889
  /**
6228
6890
  * No description
@@ -6230,7 +6892,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6230
6892
  * @tags organizations
6231
6893
  * @name DeleteOrganizationInviteById
6232
6894
  * @summary Deletes an organization invite.
6233
- * @request DELETE:/orgs/{organizationId}/invites/{inviteId}
6895
+ * @request DELETE:/orgs/{organizationId}/link-invites/{inviteId}
6234
6896
  * @secure
6235
6897
  */
6236
6898
  deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
@@ -6836,6 +7498,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6836
7498
  parentPage?: RevisionPageDocument | RevisionPageGroup;
6837
7499
  }[];
6838
7500
  }, Error>>;
7501
+ /**
7502
+ * No description
7503
+ *
7504
+ * @tags organizations
7505
+ * @name CreateSyncedBlock
7506
+ * @summary Create a new synced block
7507
+ * @request POST:/orgs/{organizationId}/synced-blocks
7508
+ * @secure
7509
+ */
7510
+ createSyncedBlock: (organizationId: string, data: {
7511
+ /** Title of synced block */
7512
+ title?: string;
7513
+ document: Document;
7514
+ }, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
7515
+ /**
7516
+ * No description
7517
+ *
7518
+ * @tags organizations
7519
+ * @name GetSyncedBlock
7520
+ * @summary Get a synced block by its ID
7521
+ * @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
7522
+ * @secure
7523
+ */
7524
+ getSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
7525
+ /**
7526
+ * No description
7527
+ *
7528
+ * @tags organizations
7529
+ * @name UpdateSyncedBlock
7530
+ * @summary Update an existing synced block.
7531
+ * @request PUT:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
7532
+ * @secure
7533
+ */
7534
+ updateSyncedBlock: (organizationId: string, syncedBlockId: string, data: {
7535
+ /** A new title for the Synced Block. */
7536
+ title?: string;
7537
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6839
7538
  /**
6840
7539
  * No description
6841
7540
  *
@@ -6860,6 +7559,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6860
7559
  * @secure
6861
7560
  */
6862
7561
  getRecommendedQuestionsInOrganization: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
7562
+ /**
7563
+ * No description
7564
+ *
7565
+ * @name StreamRecommendedQuestionsInOrganization
7566
+ * @summary Stream a list of questions recommended to be asked in an organization.
7567
+ * @request GET:/orgs/{organizationId}/ask/questions/stream
7568
+ * @secure
7569
+ */
7570
+ streamRecommendedQuestionsInOrganization: (organizationId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
6863
7571
  /**
6864
7572
  * No description
6865
7573
  *
@@ -6953,6 +7661,250 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6953
7661
  message: string;
6954
7662
  };
6955
7663
  }>>;
7664
+ /**
7665
+ * No description
7666
+ *
7667
+ * @tags sites
7668
+ * @name ListSites
7669
+ * @summary List all the sites created in an organization
7670
+ * @request GET:/orgs/{organizationId}/sites
7671
+ * @secure
7672
+ */
7673
+ listSites: (organizationId: string, query?: {
7674
+ /** Identifier of the page results to fetch. */
7675
+ page?: string;
7676
+ /** The number of results per page */
7677
+ limit?: number;
7678
+ /** Identifier of the space to filter the sites by */
7679
+ space?: string;
7680
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
7681
+ items: Site[];
7682
+ }, Error>>;
7683
+ /**
7684
+ * No description
7685
+ *
7686
+ * @tags sites
7687
+ * @name CreateSite
7688
+ * @summary Create a site in an organization
7689
+ * @request POST:/orgs/{organizationId}/sites
7690
+ * @secure
7691
+ */
7692
+ createSite: (organizationId: string, data: {
7693
+ /** Title of the site */
7694
+ title?: SiteTitle;
7695
+ /**
7696
+ * * `public`: Anyone can access the site, and the site is indexed by search engines.
7697
+ * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
7698
+ * * `share-link`: Anyone with a secret token in the url can access the site.
7699
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
7700
+ * * `unpublished`: The site is not accessible to anyone.
7701
+ */
7702
+ visibility?: SiteVisibility;
7703
+ /** ID of spaces to be added to the site */
7704
+ spaces?: string[];
7705
+ }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
7706
+ /**
7707
+ * No description
7708
+ *
7709
+ * @tags sites
7710
+ * @name GetSiteById
7711
+ * @summary Get an organization site by its ID
7712
+ * @request GET:/orgs/{organizationId}/sites/{siteId}
7713
+ * @secure
7714
+ */
7715
+ getSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error | {
7716
+ error: {
7717
+ /** @format int32 */
7718
+ code: 404;
7719
+ message: string;
7720
+ };
7721
+ }>>;
7722
+ /**
7723
+ * No description
7724
+ *
7725
+ * @tags sites
7726
+ * @name UpdateSiteById
7727
+ * @summary Update a site in an organization
7728
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}
7729
+ * @secure
7730
+ */
7731
+ updateSiteById: (organizationId: string, siteId: string, data: {
7732
+ /** Title of the site */
7733
+ title?: SiteTitle;
7734
+ /**
7735
+ * * `public`: Anyone can access the site, and the site is indexed by search engines.
7736
+ * * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
7737
+ * * `share-link`: Anyone with a secret token in the url can access the site.
7738
+ * * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
7739
+ * * `unpublished`: The site is not accessible to anyone.
7740
+ */
7741
+ visibility?: SiteVisibility;
7742
+ /** Custom hostname for the site, for e.g. docs.mycompany.com */
7743
+ hostname?: SiteHostname;
7744
+ /** Basename for the site. For e.g. api */
7745
+ basename?: SiteBasename;
7746
+ /** ID of the site-space to be used as the default */
7747
+ defaultSiteSpace?: string;
7748
+ }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
7749
+ /**
7750
+ * No description
7751
+ *
7752
+ * @tags sites
7753
+ * @name DeleteSiteById
7754
+ * @summary Delete a site in an organization
7755
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}
7756
+ * @secure
7757
+ */
7758
+ deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7759
+ /**
7760
+ * No description
7761
+ *
7762
+ * @tags sites
7763
+ * @name GetSitePublishingAuthSettings
7764
+ * @summary Get the publishing authentication settings for a site.
7765
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/auth
7766
+ * @secure
7767
+ */
7768
+ getSitePublishingAuthSettings: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
7769
+ error: {
7770
+ /** @format int32 */
7771
+ code: 400;
7772
+ message: string;
7773
+ };
7774
+ }>>;
7775
+ /**
7776
+ * No description
7777
+ *
7778
+ * @tags sites
7779
+ * @name AddSpaceToSite
7780
+ * @summary Add a space to a site in an organization
7781
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/spaces
7782
+ * @secure
7783
+ */
7784
+ addSpaceToSite: (organizationId: string, siteId: string, data: {
7785
+ /** ID of the space */
7786
+ spaceId: string;
7787
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
7788
+ /**
7789
+ * No description
7790
+ *
7791
+ * @tags sites
7792
+ * @name ListSiteSpaces
7793
+ * @summary List all the site spaces under a site in an organization
7794
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/spaces
7795
+ * @secure
7796
+ */
7797
+ listSiteSpaces: (organizationId: string, siteId: string, query?: {
7798
+ /** Identifier of the page results to fetch. */
7799
+ page?: string;
7800
+ /** The number of results per page */
7801
+ limit?: number;
7802
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
7803
+ items: SiteSpace[];
7804
+ }, Error>>;
7805
+ /**
7806
+ * No description
7807
+ *
7808
+ * @tags sites
7809
+ * @name UpdateSiteSpaceById
7810
+ * @summary Update a space on a site in an organization
7811
+ * @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
7812
+ * @secure
7813
+ */
7814
+ updateSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
7815
+ /** Path to the space on the site */
7816
+ path?: SiteSpacePath;
7817
+ }, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
7818
+ /**
7819
+ * No description
7820
+ *
7821
+ * @tags sites
7822
+ * @name DeleteSiteSpaceById
7823
+ * @summary Delete a space on a site in an organization
7824
+ * @request DELETE:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
7825
+ * @secure
7826
+ */
7827
+ deleteSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7828
+ };
7829
+ customHostnames: {
7830
+ /**
7831
+ * No description
7832
+ *
7833
+ * @tags custom-hostnames
7834
+ * @name GetCustomHostname
7835
+ * @summary Get the details about a custom hostname.
7836
+ * @request GET:/custom-hostnames/{hostname}
7837
+ * @secure
7838
+ */
7839
+ getCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error>>;
7840
+ /**
7841
+ * No description
7842
+ *
7843
+ * @tags custom-hostnames
7844
+ * @name SetupCustomHostname
7845
+ * @summary Setup a custom hostname on a content or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
7846
+ * @request POST:/custom-hostnames/{hostname}
7847
+ * @secure
7848
+ */
7849
+ setupCustomHostname: (hostname: string, data: {
7850
+ target: OrganizationPointer | SpacePointer | CollectionPointer;
7851
+ }, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
7852
+ error: {
7853
+ /** @format int32 */
7854
+ code: 409;
7855
+ message: string;
7856
+ };
7857
+ }>>;
7858
+ /**
7859
+ * No description
7860
+ *
7861
+ * @tags custom-hostnames
7862
+ * @name DnsRevalidateCustomHostname
7863
+ * @summary Revalidate a custom hostname's DNS records and status.
7864
+ * @request PATCH:/custom-hostnames/{hostname}
7865
+ * @secure
7866
+ */
7867
+ dnsRevalidateCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7868
+ error: {
7869
+ /** @format int32 */
7870
+ code: 409;
7871
+ message: string;
7872
+ };
7873
+ }>>;
7874
+ /**
7875
+ * No description
7876
+ *
7877
+ * @tags custom-hostnames
7878
+ * @name RemoveCustomHostname
7879
+ * @summary Remove a custom hostname from a content or organization. The custom hostname will continue to point to the content or organization unless it is used for another one.
7880
+ * @request DELETE:/custom-hostnames/{hostname}
7881
+ * @secure
7882
+ */
7883
+ removeCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
7884
+ /**
7885
+ * No description
7886
+ *
7887
+ * @tags custom-hostnames
7888
+ * @name TestCustomHostname
7889
+ * @summary Test if a custom hostname can be used for a content or organization.
7890
+ * @request POST:/custom-hostnames/{hostname}/test
7891
+ * @secure
7892
+ */
7893
+ testCustomHostname: (hostname: string, data: {
7894
+ target: OrganizationPointer | SpacePointer | CollectionPointer;
7895
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
7896
+ error: {
7897
+ /** @format int32 */
7898
+ code: 400;
7899
+ message: string;
7900
+ };
7901
+ } | {
7902
+ error: {
7903
+ /** @format int32 */
7904
+ code: 409;
7905
+ message: string;
7906
+ };
7907
+ }>>;
6956
7908
  };
6957
7909
  internal: {
6958
7910
  /**
@@ -7015,7 +7967,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7015
7967
  url: URL;
7016
7968
  /** JWT token generated for a visitor auth session */
7017
7969
  visitorAuthToken?: string;
7018
- }, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error>>;
7970
+ }, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error | {
7971
+ error: {
7972
+ /** @format int32 */
7973
+ code: 404;
7974
+ message: string;
7975
+ };
7976
+ }>>;
7019
7977
  };
7020
7978
  }
7021
7979
  export {};