@gitbook/api 0.33.0 → 0.35.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/GitBookAPIError.d.ts +4 -0
- package/dist/client.d.ts +578 -68
- package/dist/index.cjs +108 -3
- package/dist/index.js +106 -3
- package/package.json +1 -1
- package/spec/openapi.json +1753 -217
- package/spec/openapi.yaml +1099 -104
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
|
|
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
|
|
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,20 @@ 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
|
-
/**
|
|
1606
|
-
|
|
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
|
-
/**
|
|
1617
|
-
|
|
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
|
+
});
|
|
1627
1688
|
export interface Capture {
|
|
1628
1689
|
/** Unique identifier for the capture */
|
|
1629
1690
|
id: string;
|
|
@@ -1776,6 +1837,30 @@ export interface UpdateSnippetSchema {
|
|
|
1776
1837
|
/** A new title for the snippet. */
|
|
1777
1838
|
title?: string;
|
|
1778
1839
|
}
|
|
1840
|
+
export interface SyncedBlock {
|
|
1841
|
+
/** Unique identifier for the synced block */
|
|
1842
|
+
id: string;
|
|
1843
|
+
/** ID of the organization owning this synced block */
|
|
1844
|
+
organization: string;
|
|
1845
|
+
/** @format date-time */
|
|
1846
|
+
createdAt: string;
|
|
1847
|
+
/**
|
|
1848
|
+
* Timestamp of when the synced block was last edited, if it has been edited since its creation.
|
|
1849
|
+
* @format date-time
|
|
1850
|
+
*/
|
|
1851
|
+
editedAt?: 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,54 @@ export interface ContentAuditSourceSection {
|
|
|
1812
1897
|
space: Space;
|
|
1813
1898
|
page: RevisionPageDocument;
|
|
1814
1899
|
}
|
|
1900
|
+
export declare type ContentReferenceUsage = {
|
|
1901
|
+
/**
|
|
1902
|
+
* Text to display to represent the reference. Possible values include:
|
|
1903
|
+
* - `broken` - The target does not exist in the revision.
|
|
1904
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1905
|
+
*/
|
|
1906
|
+
status?: ContentReferenceStatus;
|
|
1907
|
+
/** The reference target where a list of pages are pointing at */
|
|
1908
|
+
targetReference: ContentReferenceResolved;
|
|
1909
|
+
/** All pages where the target is being referenced. */
|
|
1910
|
+
locationReferences: ContentReferenceResolved[];
|
|
1911
|
+
}[];
|
|
1912
|
+
export interface ContentReferenceResolved {
|
|
1913
|
+
/** Text to display to represent the reference */
|
|
1914
|
+
text: string;
|
|
1915
|
+
/** The type of the content reference */
|
|
1916
|
+
type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url';
|
|
1917
|
+
/** Target in-app url for the reference */
|
|
1918
|
+
url: string;
|
|
1919
|
+
extra: {
|
|
1920
|
+
space?: Space;
|
|
1921
|
+
page?: RevisionPageDocument;
|
|
1922
|
+
file?: RevisionFile;
|
|
1923
|
+
snippet?: Snippet;
|
|
1924
|
+
user?: User;
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* Text to display to represent the reference. Possible values include:
|
|
1929
|
+
* - `broken` - The target does not exist in the revision.
|
|
1930
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1931
|
+
*/
|
|
1932
|
+
export declare enum ContentReferenceStatus {
|
|
1933
|
+
Broken = "broken",
|
|
1934
|
+
InApp = "in-app"
|
|
1935
|
+
}
|
|
1936
|
+
export interface ContentReferencesStats {
|
|
1937
|
+
/** Total count of links */
|
|
1938
|
+
total: number;
|
|
1939
|
+
broken: {
|
|
1940
|
+
/** Count of broken links */
|
|
1941
|
+
total: number;
|
|
1942
|
+
/** 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. */
|
|
1943
|
+
space: number;
|
|
1944
|
+
/** Count of broken links that were broken in current change request, if applicable. */
|
|
1945
|
+
changeRequest: number;
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1815
1948
|
export interface ChangeRequest {
|
|
1816
1949
|
/** Type of Object, always equals to "change-request" */
|
|
1817
1950
|
object: 'change-request';
|
|
@@ -1834,6 +1967,11 @@ export interface ChangeRequest {
|
|
|
1834
1967
|
* @format uri
|
|
1835
1968
|
*/
|
|
1836
1969
|
app: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* URL of the user in the API
|
|
1972
|
+
* @format uri
|
|
1973
|
+
*/
|
|
1974
|
+
location: string;
|
|
1837
1975
|
};
|
|
1838
1976
|
}
|
|
1839
1977
|
export declare enum ChangeRequestStatus {
|
|
@@ -2040,6 +2178,9 @@ export declare type SearchAIAnswerSource = {
|
|
|
2040
2178
|
export interface SearchAIRecommendedQuestions {
|
|
2041
2179
|
questions: string[];
|
|
2042
2180
|
}
|
|
2181
|
+
export interface SearchAIRecommendedQuestionStream {
|
|
2182
|
+
question: string;
|
|
2183
|
+
}
|
|
2043
2184
|
export declare enum AnalyticsSearchPeriod {
|
|
2044
2185
|
LastMonth = "last_month",
|
|
2045
2186
|
LastWeek = "last_week",
|
|
@@ -2263,7 +2404,8 @@ export declare enum IntegrationScope {
|
|
|
2263
2404
|
SpaceScriptInject = "space:script:inject",
|
|
2264
2405
|
SpaceScriptCookies = "space:script:cookies",
|
|
2265
2406
|
SpaceGitSync = "space:git:sync",
|
|
2266
|
-
SpaceVisitorAuth = "space:visitor:auth"
|
|
2407
|
+
SpaceVisitorAuth = "space:visitor:auth",
|
|
2408
|
+
SiteVisitorAuth = "site:visitor:auth"
|
|
2267
2409
|
}
|
|
2268
2410
|
/** A search string to filter integrations by name */
|
|
2269
2411
|
export declare type IntegrationSearchQuery = any;
|
|
@@ -2446,6 +2588,33 @@ export interface IntegrationSpaceInstallation {
|
|
|
2446
2588
|
publicEndpoint: string;
|
|
2447
2589
|
};
|
|
2448
2590
|
}
|
|
2591
|
+
/** Installation of an integration at a site level */
|
|
2592
|
+
export interface IntegrationSiteInstallation {
|
|
2593
|
+
/** Unique name identifier of the integration */
|
|
2594
|
+
integration: string;
|
|
2595
|
+
/** ID of the integration installation */
|
|
2596
|
+
installation: string;
|
|
2597
|
+
/** ID of the site the integration is installed on. */
|
|
2598
|
+
site: string;
|
|
2599
|
+
status: IntegrationInstallationStatus;
|
|
2600
|
+
/** Configuration of the integration for this site */
|
|
2601
|
+
configuration: object;
|
|
2602
|
+
/** External IDs assigned by the integration. */
|
|
2603
|
+
externalIds: IntegrationInstallationExternalIds;
|
|
2604
|
+
/** URLs associated with the object */
|
|
2605
|
+
urls: {
|
|
2606
|
+
/**
|
|
2607
|
+
* URL of the integration's site installation in the API
|
|
2608
|
+
* @format uri
|
|
2609
|
+
*/
|
|
2610
|
+
location: string;
|
|
2611
|
+
/**
|
|
2612
|
+
* Public HTTP endpoint for the integration's site installation
|
|
2613
|
+
* @format uri
|
|
2614
|
+
*/
|
|
2615
|
+
publicEndpoint: string;
|
|
2616
|
+
};
|
|
2617
|
+
}
|
|
2449
2618
|
export declare enum IntegrationInstallationStatus {
|
|
2450
2619
|
Active = "active",
|
|
2451
2620
|
Pending = "pending",
|
|
@@ -3399,7 +3568,7 @@ export interface ContentKitURL {
|
|
|
3399
3568
|
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | {
|
|
3400
3569
|
channel: 'organization';
|
|
3401
3570
|
organization: string;
|
|
3402
|
-
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
|
|
3571
|
+
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
|
|
3403
3572
|
channel: 'organization-experimental-features';
|
|
3404
3573
|
organization: string;
|
|
3405
3574
|
} | {
|
|
@@ -3422,7 +3591,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
|
|
|
3422
3591
|
space: string;
|
|
3423
3592
|
changeRequest?: string;
|
|
3424
3593
|
comment: string;
|
|
3425
|
-
} | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel;
|
|
3594
|
+
} | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel;
|
|
3426
3595
|
export interface SpaceInfoChannel {
|
|
3427
3596
|
channel: 'space';
|
|
3428
3597
|
space: string;
|
|
@@ -3559,6 +3728,11 @@ export interface OrganizationInstallationsChannel {
|
|
|
3559
3728
|
channel: 'organization-installations';
|
|
3560
3729
|
organization: string;
|
|
3561
3730
|
}
|
|
3731
|
+
/** Subscription channel for changes in sites in an organization. */
|
|
3732
|
+
export interface OrganizationSitesChannel {
|
|
3733
|
+
channel: 'organization-sites';
|
|
3734
|
+
organization: string;
|
|
3735
|
+
}
|
|
3562
3736
|
export interface IntegrationChannel {
|
|
3563
3737
|
channel: 'integration';
|
|
3564
3738
|
integration: string;
|
|
@@ -3579,6 +3753,21 @@ export interface IntegrationSpaceInstallationsChannel {
|
|
|
3579
3753
|
integration: string;
|
|
3580
3754
|
installation: string;
|
|
3581
3755
|
}
|
|
3756
|
+
export interface IntegrationSiteInstallationChannel {
|
|
3757
|
+
channel: 'integration-site-installation';
|
|
3758
|
+
integration: string;
|
|
3759
|
+
installation: string;
|
|
3760
|
+
site: string;
|
|
3761
|
+
}
|
|
3762
|
+
export interface IntegrationSiteInstallationsChannel {
|
|
3763
|
+
channel: 'integration-site-installations';
|
|
3764
|
+
integration: string;
|
|
3765
|
+
installation: string;
|
|
3766
|
+
}
|
|
3767
|
+
export interface SiteChannel {
|
|
3768
|
+
channel: 'site';
|
|
3769
|
+
site: string;
|
|
3770
|
+
}
|
|
3582
3771
|
/** Custom field */
|
|
3583
3772
|
export interface CustomField {
|
|
3584
3773
|
id: string;
|
|
@@ -3814,6 +4003,168 @@ export interface ShareLink {
|
|
|
3814
4003
|
* @maxLength 50
|
|
3815
4004
|
*/
|
|
3816
4005
|
export declare type ShareLinkName = string;
|
|
4006
|
+
export interface Site {
|
|
4007
|
+
object: 'site';
|
|
4008
|
+
/** Unique identifier of the site */
|
|
4009
|
+
id: string;
|
|
4010
|
+
/** Title of the site */
|
|
4011
|
+
title: SiteTitle;
|
|
4012
|
+
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
4013
|
+
hostname?: SiteHostname;
|
|
4014
|
+
/** Basename for the site. For e.g. /api */
|
|
4015
|
+
basename: SiteBasename;
|
|
4016
|
+
/**
|
|
4017
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
4018
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
4019
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
4020
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
4021
|
+
* * `unpublished`: The site is not accessible to anyone.
|
|
4022
|
+
*/
|
|
4023
|
+
visibility: SiteVisibility;
|
|
4024
|
+
siteSpaces: number;
|
|
4025
|
+
/** @format date-time */
|
|
4026
|
+
createdAt: string;
|
|
4027
|
+
/** URLs associated with the object */
|
|
4028
|
+
urls: {
|
|
4029
|
+
/**
|
|
4030
|
+
* URL of the site in the API
|
|
4031
|
+
* @format uri
|
|
4032
|
+
*/
|
|
4033
|
+
location: string;
|
|
4034
|
+
/**
|
|
4035
|
+
* URL of the site in the application
|
|
4036
|
+
* @format uri
|
|
4037
|
+
*/
|
|
4038
|
+
app: string;
|
|
4039
|
+
/**
|
|
4040
|
+
* URL of the published version of the site. Only defined when visibility is not "unpublished."
|
|
4041
|
+
* @format uri
|
|
4042
|
+
*/
|
|
4043
|
+
published?: string;
|
|
4044
|
+
};
|
|
4045
|
+
}
|
|
4046
|
+
/**
|
|
4047
|
+
* Title of the site
|
|
4048
|
+
* @minLength 2
|
|
4049
|
+
* @maxLength 50
|
|
4050
|
+
*/
|
|
4051
|
+
export declare type SiteTitle = string;
|
|
4052
|
+
export interface SiteCustomizationSettings {
|
|
4053
|
+
styling: {
|
|
4054
|
+
primaryColor: CustomizationThemedColor;
|
|
4055
|
+
corners: CustomizationCorners;
|
|
4056
|
+
font: CustomizationFont;
|
|
4057
|
+
background: CustomizationBackground;
|
|
4058
|
+
};
|
|
4059
|
+
internationalization: {
|
|
4060
|
+
/** Language for the UI element */
|
|
4061
|
+
locale: CustomizationLocale;
|
|
4062
|
+
};
|
|
4063
|
+
favicon: {
|
|
4064
|
+
icon: CustomizationThemedURL;
|
|
4065
|
+
} | {
|
|
4066
|
+
/** Unicode codepoint or character of the emoji */
|
|
4067
|
+
emoji: Emoji;
|
|
4068
|
+
} | object;
|
|
4069
|
+
header: {
|
|
4070
|
+
preset: CustomizationHeaderPreset;
|
|
4071
|
+
logo?: CustomizationThemedURL;
|
|
4072
|
+
backgroundColor?: CustomizationThemedColor;
|
|
4073
|
+
linkColor?: CustomizationThemedColor;
|
|
4074
|
+
links: CustomizationHeaderLink[];
|
|
4075
|
+
};
|
|
4076
|
+
footer: {
|
|
4077
|
+
logo?: CustomizationThemedURL;
|
|
4078
|
+
groups: CustomizationFooterGroup[];
|
|
4079
|
+
/** @maxLength 300 */
|
|
4080
|
+
copyright?: string;
|
|
4081
|
+
};
|
|
4082
|
+
themes: {
|
|
4083
|
+
default: CustomizationThemeMode;
|
|
4084
|
+
/** Should the reader be able to switch between dark and light mode */
|
|
4085
|
+
toggeable: boolean;
|
|
4086
|
+
};
|
|
4087
|
+
pdf: {
|
|
4088
|
+
/** If true, PDF export is enabled for the published site. */
|
|
4089
|
+
enabled: boolean;
|
|
4090
|
+
};
|
|
4091
|
+
feedback: {
|
|
4092
|
+
/** If true, feedback gathering is enabled */
|
|
4093
|
+
enabled: boolean;
|
|
4094
|
+
};
|
|
4095
|
+
aiSearch: {
|
|
4096
|
+
/** If true, AI search is enabled */
|
|
4097
|
+
enabled: boolean;
|
|
4098
|
+
};
|
|
4099
|
+
git: {
|
|
4100
|
+
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync */
|
|
4101
|
+
showEditLink: boolean;
|
|
4102
|
+
};
|
|
4103
|
+
pagination: {
|
|
4104
|
+
/** Whether the pagination navigation should be displayed on pages. */
|
|
4105
|
+
enabled: boolean;
|
|
4106
|
+
};
|
|
4107
|
+
trademark: {
|
|
4108
|
+
/** Whether the GitBook trademark ("Powered by GitBook") should be visible */
|
|
4109
|
+
enabled: boolean;
|
|
4110
|
+
};
|
|
4111
|
+
privacyPolicy: {
|
|
4112
|
+
url?: URL;
|
|
4113
|
+
};
|
|
4114
|
+
socialPreview: {
|
|
4115
|
+
url?: URL;
|
|
4116
|
+
};
|
|
4117
|
+
}
|
|
4118
|
+
/**
|
|
4119
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
4120
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
4121
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
4122
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
4123
|
+
* * `unpublished`: The site is not accessible to anyone.
|
|
4124
|
+
*/
|
|
4125
|
+
export declare enum SiteVisibility {
|
|
4126
|
+
Public = "public",
|
|
4127
|
+
Unlisted = "unlisted",
|
|
4128
|
+
ShareLink = "share-link",
|
|
4129
|
+
VisitorAuth = "visitor-auth",
|
|
4130
|
+
Unpublished = "unpublished"
|
|
4131
|
+
}
|
|
4132
|
+
export declare type SitePublishingAuth = {
|
|
4133
|
+
/** Type of Object, always equals to "publishing-auth" */
|
|
4134
|
+
object: 'publishing-auth';
|
|
4135
|
+
/** Private key used to sign JWT tokens. */
|
|
4136
|
+
privateKey: string;
|
|
4137
|
+
/**
|
|
4138
|
+
* URL to redirect to when the visitor auth secret is invalid.
|
|
4139
|
+
* @format uri
|
|
4140
|
+
*/
|
|
4141
|
+
fallbackURL?: string;
|
|
4142
|
+
} & SpaceVisitorAuth;
|
|
4143
|
+
/**
|
|
4144
|
+
* Basename for the site. For e.g. /api
|
|
4145
|
+
* @maxLength 100
|
|
4146
|
+
*/
|
|
4147
|
+
export declare type SiteBasename = string;
|
|
4148
|
+
/**
|
|
4149
|
+
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
4150
|
+
* @maxLength 100
|
|
4151
|
+
*/
|
|
4152
|
+
export declare type SiteHostname = string;
|
|
4153
|
+
export interface SiteSpace {
|
|
4154
|
+
/** Unique identifier of the site-space */
|
|
4155
|
+
id: string;
|
|
4156
|
+
/** Path to the space on the site */
|
|
4157
|
+
path: SiteSpacePath;
|
|
4158
|
+
space: Space;
|
|
4159
|
+
/** Whether this is the default space for the site */
|
|
4160
|
+
default?: boolean;
|
|
4161
|
+
}
|
|
4162
|
+
/**
|
|
4163
|
+
* Path to the space on the site
|
|
4164
|
+
* @minLength 1
|
|
4165
|
+
* @maxLength 100
|
|
4166
|
+
*/
|
|
4167
|
+
export declare type SiteSpacePath = string;
|
|
3817
4168
|
import { EventIterator } from 'event-iterator';
|
|
3818
4169
|
export declare type QueryParamsType = Record<string | number, any>;
|
|
3819
4170
|
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
@@ -4026,7 +4377,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4026
4377
|
*/
|
|
4027
4378
|
visibility?: ContentVisibility;
|
|
4028
4379
|
/** The integration property, if set, is ignored. */
|
|
4029
|
-
visitorAuth?:
|
|
4380
|
+
visitorAuth?: SpaceVisitorAuth;
|
|
4030
4381
|
/** Default level for a piece of content */
|
|
4031
4382
|
defaultLevel?: DefaultLevel;
|
|
4032
4383
|
} & ({
|
|
@@ -4207,6 +4558,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4207
4558
|
* @secure
|
|
4208
4559
|
*/
|
|
4209
4560
|
getRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
4561
|
+
/**
|
|
4562
|
+
* No description
|
|
4563
|
+
*
|
|
4564
|
+
* @name StreamRecommendedQuestionsInSpace
|
|
4565
|
+
* @summary Stream a list of questions that can be asked in a space.
|
|
4566
|
+
* @request GET:/spaces/{spaceId}/search/questions/stream
|
|
4567
|
+
* @secure
|
|
4568
|
+
*/
|
|
4569
|
+
streamRecommendedQuestionsInSpace: (spaceId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
4210
4570
|
/**
|
|
4211
4571
|
* No description
|
|
4212
4572
|
*
|
|
@@ -4227,6 +4587,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4227
4587
|
* @secure
|
|
4228
4588
|
*/
|
|
4229
4589
|
exportToGitRepository: (spaceId: string, data: RequestExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4590
|
+
/**
|
|
4591
|
+
* No description
|
|
4592
|
+
*
|
|
4593
|
+
* @tags spaces
|
|
4594
|
+
* @name SyncGitRepository
|
|
4595
|
+
* @summary Synchronize a Git repository with the space content.
|
|
4596
|
+
* @request POST:/spaces/{spaceId}/git/sync
|
|
4597
|
+
* @secure
|
|
4598
|
+
*/
|
|
4599
|
+
syncGitRepository: (spaceId: string, data: RequestSyncGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4230
4600
|
/**
|
|
4231
4601
|
* No description
|
|
4232
4602
|
*
|
|
@@ -4426,7 +4796,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4426
4796
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
4427
4797
|
* @secure
|
|
4428
4798
|
*/
|
|
4429
|
-
getChangeRequestById: (spaceId: string, changeRequestId: string
|
|
4799
|
+
getChangeRequestById: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error | {
|
|
4430
4800
|
error: {
|
|
4431
4801
|
/** @format int32 */
|
|
4432
4802
|
code: 404;
|
|
@@ -4442,7 +4812,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4442
4812
|
* @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
|
|
4443
4813
|
* @secure
|
|
4444
4814
|
*/
|
|
4445
|
-
updateChangeRequestById: (spaceId: string, changeRequestId: string
|
|
4815
|
+
updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
|
|
4446
4816
|
/** Subject of the change request */
|
|
4447
4817
|
subject?: ChangeRequestSubject;
|
|
4448
4818
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
@@ -4455,7 +4825,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4455
4825
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/merge
|
|
4456
4826
|
* @secure
|
|
4457
4827
|
*/
|
|
4458
|
-
mergeChangeRequest: (spaceId: string, changeRequestId: string
|
|
4828
|
+
mergeChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
4459
4829
|
/** ID of the resulting revision */
|
|
4460
4830
|
revision: string;
|
|
4461
4831
|
result: 'merge' | 'conflicts';
|
|
@@ -4469,7 +4839,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4469
4839
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/update
|
|
4470
4840
|
* @secure
|
|
4471
4841
|
*/
|
|
4472
|
-
updateChangeRequest: (spaceId: string, changeRequestId: string
|
|
4842
|
+
updateChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
4473
4843
|
/** ID of the resulting revision */
|
|
4474
4844
|
revision: string;
|
|
4475
4845
|
result: 'update' | 'conflicts';
|
|
@@ -4483,7 +4853,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4483
4853
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
4484
4854
|
* @secure
|
|
4485
4855
|
*/
|
|
4486
|
-
getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string
|
|
4856
|
+
getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
|
|
4487
4857
|
/** Output format for the content. */
|
|
4488
4858
|
format?: 'document' | 'markdown';
|
|
4489
4859
|
/** Identifier of the page results to fetch. */
|
|
@@ -4508,7 +4878,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4508
4878
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
|
|
4509
4879
|
* @secure
|
|
4510
4880
|
*/
|
|
4511
|
-
submitChangeRequestReview: (spaceId: string, changeRequestId: string
|
|
4881
|
+
submitChangeRequestReview: (spaceId: string, changeRequestId: string, data: {
|
|
4512
4882
|
/** The status of the submitted review. */
|
|
4513
4883
|
status: ChangeRequestReviewStatus;
|
|
4514
4884
|
/** Optionally, provide a comment along with the review. */
|
|
@@ -4523,7 +4893,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4523
4893
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
4524
4894
|
* @secure
|
|
4525
4895
|
*/
|
|
4526
|
-
getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string
|
|
4896
|
+
getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
|
|
4527
4897
|
/** Identifier of the page results to fetch. */
|
|
4528
4898
|
page?: string;
|
|
4529
4899
|
/** The number of results per page */
|
|
@@ -4540,7 +4910,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4540
4910
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
|
|
4541
4911
|
* @secure
|
|
4542
4912
|
*/
|
|
4543
|
-
requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string
|
|
4913
|
+
requestReviewersForChangeRequest: (spaceId: string, changeRequestId: string, data: {
|
|
4544
4914
|
/** An array of user ids that will be requested. */
|
|
4545
4915
|
users: string[];
|
|
4546
4916
|
/** Optionally, update the subject of the change request when requesting reviewers. */
|
|
@@ -4558,7 +4928,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4558
4928
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
4559
4929
|
* @secure
|
|
4560
4930
|
*/
|
|
4561
|
-
listCommentsInChangeRequest: (spaceId: string, changeRequestId: string
|
|
4931
|
+
listCommentsInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
|
|
4562
4932
|
/** Identifier of the page results to fetch. */
|
|
4563
4933
|
page?: string;
|
|
4564
4934
|
/** The number of results per page */
|
|
@@ -4589,7 +4959,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4589
4959
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
|
|
4590
4960
|
* @secure
|
|
4591
4961
|
*/
|
|
4592
|
-
postCommentInChangeRequest: (spaceId: string, changeRequestId: string
|
|
4962
|
+
postCommentInChangeRequest: (spaceId: string, changeRequestId: string, data: PostCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
4593
4963
|
/**
|
|
4594
4964
|
* No description
|
|
4595
4965
|
*
|
|
@@ -4599,7 +4969,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4599
4969
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
4600
4970
|
* @secure
|
|
4601
4971
|
*/
|
|
4602
|
-
getCommentInChangeRequest: (spaceId: string, changeRequestId: string
|
|
4972
|
+
getCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
|
|
4603
4973
|
/** Output format for the content. */
|
|
4604
4974
|
format?: 'document' | 'markdown';
|
|
4605
4975
|
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
@@ -4612,7 +4982,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4612
4982
|
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
4613
4983
|
* @secure
|
|
4614
4984
|
*/
|
|
4615
|
-
deleteCommentInChangeRequest: (spaceId: string, changeRequestId: string
|
|
4985
|
+
deleteCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4616
4986
|
/**
|
|
4617
4987
|
* No description
|
|
4618
4988
|
*
|
|
@@ -4622,7 +4992,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4622
4992
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
|
|
4623
4993
|
* @secure
|
|
4624
4994
|
*/
|
|
4625
|
-
updateCommentInChangeRequest: (spaceId: string, changeRequestId: string
|
|
4995
|
+
updateCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
4626
4996
|
/**
|
|
4627
4997
|
* No description
|
|
4628
4998
|
*
|
|
@@ -4632,7 +5002,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4632
5002
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
4633
5003
|
* @secure
|
|
4634
5004
|
*/
|
|
4635
|
-
listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string
|
|
5005
|
+
listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
|
|
4636
5006
|
/** Identifier of the page results to fetch. */
|
|
4637
5007
|
page?: string;
|
|
4638
5008
|
/** The number of results per page */
|
|
@@ -4651,7 +5021,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4651
5021
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
|
|
4652
5022
|
* @secure
|
|
4653
5023
|
*/
|
|
4654
|
-
postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string
|
|
5024
|
+
postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, data: PostCommentReplySchema, query?: {
|
|
4655
5025
|
/** Output format for the content. */
|
|
4656
5026
|
format?: 'document' | 'markdown';
|
|
4657
5027
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
@@ -4664,7 +5034,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4664
5034
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
4665
5035
|
* @secure
|
|
4666
5036
|
*/
|
|
4667
|
-
getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string
|
|
5037
|
+
getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, query?: {
|
|
4668
5038
|
/** Output format for the content. */
|
|
4669
5039
|
format?: 'document' | 'markdown';
|
|
4670
5040
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
@@ -4677,7 +5047,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4677
5047
|
* @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
4678
5048
|
* @secure
|
|
4679
5049
|
*/
|
|
4680
|
-
updateCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string
|
|
5050
|
+
updateCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, data: UpdateCommentSchema, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
4681
5051
|
/**
|
|
4682
5052
|
* No description
|
|
4683
5053
|
*
|
|
@@ -4687,7 +5057,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4687
5057
|
* @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
|
|
4688
5058
|
* @secure
|
|
4689
5059
|
*/
|
|
4690
|
-
deleteCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string
|
|
5060
|
+
deleteCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4691
5061
|
/**
|
|
4692
5062
|
* No description
|
|
4693
5063
|
*
|
|
@@ -4697,7 +5067,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4697
5067
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
|
|
4698
5068
|
* @secure
|
|
4699
5069
|
*/
|
|
4700
|
-
getContributorsByChangeRequestId: (spaceId: string, changeRequestId: string
|
|
5070
|
+
getContributorsByChangeRequestId: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4701
5071
|
items: UserContributor[];
|
|
4702
5072
|
}, Error | {
|
|
4703
5073
|
error: {
|
|
@@ -4714,7 +5084,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4714
5084
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
4715
5085
|
* @secure
|
|
4716
5086
|
*/
|
|
4717
|
-
getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string
|
|
5087
|
+
getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
4718
5088
|
/**
|
|
4719
5089
|
* No description
|
|
4720
5090
|
*
|
|
@@ -4723,7 +5093,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4723
5093
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/import
|
|
4724
5094
|
* @secure
|
|
4725
5095
|
*/
|
|
4726
|
-
importContentInChangeRequest: (spaceId: string, changeRequestId: string
|
|
5096
|
+
importContentInChangeRequest: (spaceId: string, changeRequestId: string, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
|
|
4727
5097
|
/**
|
|
4728
5098
|
* No description
|
|
4729
5099
|
*
|
|
@@ -4732,7 +5102,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4732
5102
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
|
|
4733
5103
|
* @secure
|
|
4734
5104
|
*/
|
|
4735
|
-
listPagesInChangeRequest: (spaceId: string, changeRequestId: string
|
|
5105
|
+
listPagesInChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
4736
5106
|
pages: RevisionPage[];
|
|
4737
5107
|
}, Error>>;
|
|
4738
5108
|
/**
|
|
@@ -4743,7 +5113,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4743
5113
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
|
|
4744
5114
|
* @secure
|
|
4745
5115
|
*/
|
|
4746
|
-
listFilesInChangeRequestById: (spaceId: string, changeRequestId: string
|
|
5116
|
+
listFilesInChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
|
|
4747
5117
|
/** Identifier of the page results to fetch. */
|
|
4748
5118
|
page?: string;
|
|
4749
5119
|
/** The number of results per page */
|
|
@@ -4759,7 +5129,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4759
5129
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
|
|
4760
5130
|
* @secure
|
|
4761
5131
|
*/
|
|
4762
|
-
getFileInChangeRequestById: (spaceId: string, changeRequestId: string
|
|
5132
|
+
getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
4763
5133
|
/**
|
|
4764
5134
|
* No description
|
|
4765
5135
|
*
|
|
@@ -4768,7 +5138,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4768
5138
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
|
|
4769
5139
|
* @secure
|
|
4770
5140
|
*/
|
|
4771
|
-
getPageInChangeRequestById: (spaceId: string, changeRequestId: string
|
|
5141
|
+
getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
|
|
4772
5142
|
/** Output format for the content. */
|
|
4773
5143
|
format?: 'document' | 'markdown';
|
|
4774
5144
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
@@ -4780,7 +5150,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4780
5150
|
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import
|
|
4781
5151
|
* @secure
|
|
4782
5152
|
*/
|
|
4783
|
-
importContentInChangeRequestPageById: (spaceId: string, changeRequestId: string
|
|
5153
|
+
importContentInChangeRequestPageById: (spaceId: string, changeRequestId: string, pageId: string, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
|
|
4784
5154
|
/**
|
|
4785
5155
|
* No description
|
|
4786
5156
|
*
|
|
@@ -4789,10 +5159,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4789
5159
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
|
|
4790
5160
|
* @secure
|
|
4791
5161
|
*/
|
|
4792
|
-
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string
|
|
5162
|
+
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
|
|
4793
5163
|
/** Output format for the content. */
|
|
4794
5164
|
format?: 'document' | 'markdown';
|
|
4795
5165
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
5166
|
+
/**
|
|
5167
|
+
* No description
|
|
5168
|
+
*
|
|
5169
|
+
* @tags spaces
|
|
5170
|
+
* @name TouchContentInChangeRequest
|
|
5171
|
+
* @summary Touch Hive content, marking it as modified as part of this change request.
|
|
5172
|
+
* @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/touched-content
|
|
5173
|
+
* @secure
|
|
5174
|
+
*/
|
|
5175
|
+
touchContentInChangeRequest: (spaceId: string, changeRequestId: string, data: {
|
|
5176
|
+
/** The content id of the touched content. */
|
|
5177
|
+
contentId: string;
|
|
5178
|
+
/** The branch id of the touched content. */
|
|
5179
|
+
branchId: string;
|
|
5180
|
+
/** The relation of the touched content to the change request. */
|
|
5181
|
+
relation: 'synced-block';
|
|
5182
|
+
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
4796
5183
|
/**
|
|
4797
5184
|
* No description
|
|
4798
5185
|
*
|
|
@@ -5105,6 +5492,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5105
5492
|
message: string;
|
|
5106
5493
|
};
|
|
5107
5494
|
}>>;
|
|
5495
|
+
/**
|
|
5496
|
+
* No description
|
|
5497
|
+
*
|
|
5498
|
+
* @tags spaces
|
|
5499
|
+
* @name GetSpacePublishingPreviewById
|
|
5500
|
+
* @summary Get a URL to preview the published content of a space. The URL will be valid for 1 hour.
|
|
5501
|
+
* @request GET:/spaces/{spaceId}/publishing/preview
|
|
5502
|
+
* @secure
|
|
5503
|
+
*/
|
|
5504
|
+
getSpacePublishingPreviewById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
5505
|
+
url: URL;
|
|
5506
|
+
}, Error | {
|
|
5507
|
+
error: {
|
|
5508
|
+
/** @format int32 */
|
|
5509
|
+
code: 400;
|
|
5510
|
+
message: string;
|
|
5511
|
+
};
|
|
5512
|
+
}>>;
|
|
5513
|
+
/**
|
|
5514
|
+
* No description
|
|
5515
|
+
*
|
|
5516
|
+
* @tags integrations, spaces
|
|
5517
|
+
* @name ListSpaceIntegrations
|
|
5518
|
+
* @summary List integrations enabled in a space.
|
|
5519
|
+
* @request GET:/spaces/{spaceId}/integrations
|
|
5520
|
+
* @secure
|
|
5521
|
+
*/
|
|
5522
|
+
listSpaceIntegrations: (spaceId: string, query?: {
|
|
5523
|
+
/** A search string to filter integrations by name */
|
|
5524
|
+
search?: any;
|
|
5525
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5526
|
+
items: Integration[];
|
|
5527
|
+
}, Error>>;
|
|
5108
5528
|
/**
|
|
5109
5529
|
* No description
|
|
5110
5530
|
*
|
|
@@ -5841,7 +6261,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5841
6261
|
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
|
|
5842
6262
|
* @secure
|
|
5843
6263
|
*/
|
|
5844
|
-
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data:
|
|
6264
|
+
updateIntegrationSpaceInstallation: (integrationName: string, installationId: string, spaceId: string, data: RequestUpdateIntegrationSpaceInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSpaceInstallation, Error>>;
|
|
5845
6265
|
/**
|
|
5846
6266
|
* No description
|
|
5847
6267
|
*
|
|
@@ -6209,20 +6629,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6209
6629
|
* @secure
|
|
6210
6630
|
*/
|
|
6211
6631
|
joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
|
|
6632
|
+
/**
|
|
6633
|
+
* No description
|
|
6634
|
+
*
|
|
6635
|
+
* @tags organizations
|
|
6636
|
+
* @name CreateOrganizationInvite
|
|
6637
|
+
* @summary Create a new organization invite
|
|
6638
|
+
* @request POST:/orgs/{organizationId}/link-invites
|
|
6639
|
+
* @secure
|
|
6640
|
+
*/
|
|
6641
|
+
createOrganizationInvite: (organizationId: string, data: CreateOrganizationInvite, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
|
|
6212
6642
|
/**
|
|
6213
6643
|
* No description
|
|
6214
6644
|
*
|
|
6215
6645
|
* @tags organizations
|
|
6216
6646
|
* @name UpdateOrganizationInviteById
|
|
6217
6647
|
* @summary Update an organization invite.
|
|
6218
|
-
* @request PATCH:/orgs/{organizationId}/invites/{inviteId}
|
|
6648
|
+
* @request PATCH:/orgs/{organizationId}/link-invites/{inviteId}
|
|
6219
6649
|
* @secure
|
|
6220
6650
|
*/
|
|
6221
6651
|
updateOrganizationInviteById: (organizationId: string, inviteId: string, data: {
|
|
6222
6652
|
/** The role of a member in an organization, null for guests */
|
|
6223
|
-
role
|
|
6653
|
+
role: MemberRoleOrGuest;
|
|
6654
|
+
} | {
|
|
6224
6655
|
/** The role of a member in an organization, null for guests */
|
|
6225
|
-
|
|
6656
|
+
level: MemberRoleOrGuest;
|
|
6226
6657
|
}, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
|
|
6227
6658
|
/**
|
|
6228
6659
|
* No description
|
|
@@ -6230,7 +6661,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6230
6661
|
* @tags organizations
|
|
6231
6662
|
* @name DeleteOrganizationInviteById
|
|
6232
6663
|
* @summary Deletes an organization invite.
|
|
6233
|
-
* @request DELETE:/orgs/{organizationId}/invites/{inviteId}
|
|
6664
|
+
* @request DELETE:/orgs/{organizationId}/link-invites/{inviteId}
|
|
6234
6665
|
* @secure
|
|
6235
6666
|
*/
|
|
6236
6667
|
deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
@@ -6836,6 +7267,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6836
7267
|
parentPage?: RevisionPageDocument | RevisionPageGroup;
|
|
6837
7268
|
}[];
|
|
6838
7269
|
}, Error>>;
|
|
7270
|
+
/**
|
|
7271
|
+
* No description
|
|
7272
|
+
*
|
|
7273
|
+
* @tags organizations
|
|
7274
|
+
* @name CreateSyncedBlock
|
|
7275
|
+
* @summary Create a new synced block
|
|
7276
|
+
* @request POST:/orgs/{organizationId}/synced-blocks
|
|
7277
|
+
* @secure
|
|
7278
|
+
*/
|
|
7279
|
+
createSyncedBlock: (organizationId: string, data: {
|
|
7280
|
+
/** Title of synced block */
|
|
7281
|
+
title?: string;
|
|
7282
|
+
document: Document;
|
|
7283
|
+
}, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
7284
|
+
/**
|
|
7285
|
+
* No description
|
|
7286
|
+
*
|
|
7287
|
+
* @tags organizations
|
|
7288
|
+
* @name GetSyncedBlock
|
|
7289
|
+
* @summary Get a synced block by its ID
|
|
7290
|
+
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
7291
|
+
* @secure
|
|
7292
|
+
*/
|
|
7293
|
+
getSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
6839
7294
|
/**
|
|
6840
7295
|
* No description
|
|
6841
7296
|
*
|
|
@@ -6860,6 +7315,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6860
7315
|
* @secure
|
|
6861
7316
|
*/
|
|
6862
7317
|
getRecommendedQuestionsInOrganization: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
|
|
7318
|
+
/**
|
|
7319
|
+
* No description
|
|
7320
|
+
*
|
|
7321
|
+
* @name StreamRecommendedQuestionsInOrganization
|
|
7322
|
+
* @summary Stream a list of questions recommended to be asked in an organization.
|
|
7323
|
+
* @request GET:/orgs/{organizationId}/ask/questions/stream
|
|
7324
|
+
* @secure
|
|
7325
|
+
*/
|
|
7326
|
+
streamRecommendedQuestionsInOrganization: (organizationId: string, params?: RequestParams) => EventIterator<SearchAIRecommendedQuestionStream>;
|
|
6863
7327
|
/**
|
|
6864
7328
|
* No description
|
|
6865
7329
|
*
|
|
@@ -6953,6 +7417,46 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6953
7417
|
message: string;
|
|
6954
7418
|
};
|
|
6955
7419
|
}>>;
|
|
7420
|
+
/**
|
|
7421
|
+
* No description
|
|
7422
|
+
*
|
|
7423
|
+
* @tags sites
|
|
7424
|
+
* @name ListSites
|
|
7425
|
+
* @summary List all the sites created in an organization
|
|
7426
|
+
* @request GET:/orgs/{organizationId}/sites
|
|
7427
|
+
* @secure
|
|
7428
|
+
*/
|
|
7429
|
+
listSites: (organizationId: string, query?: {
|
|
7430
|
+
/** Identifier of the page results to fetch. */
|
|
7431
|
+
page?: string;
|
|
7432
|
+
/** The number of results per page */
|
|
7433
|
+
limit?: number;
|
|
7434
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7435
|
+
items: Site[];
|
|
7436
|
+
}, Error>>;
|
|
7437
|
+
/**
|
|
7438
|
+
* No description
|
|
7439
|
+
*
|
|
7440
|
+
* @tags sites
|
|
7441
|
+
* @name CreateSite
|
|
7442
|
+
* @summary Create a site in an organization
|
|
7443
|
+
* @request POST:/orgs/{organizationId}/sites
|
|
7444
|
+
* @secure
|
|
7445
|
+
*/
|
|
7446
|
+
createSite: (organizationId: string, data: {
|
|
7447
|
+
/** Title of the site */
|
|
7448
|
+
title: SiteTitle;
|
|
7449
|
+
/**
|
|
7450
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
7451
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
7452
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
7453
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
7454
|
+
* * `unpublished`: The site is not accessible to anyone.
|
|
7455
|
+
*/
|
|
7456
|
+
visibility?: SiteVisibility;
|
|
7457
|
+
/** ID of spaces to be added to the site */
|
|
7458
|
+
spaces: string[];
|
|
7459
|
+
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
6956
7460
|
};
|
|
6957
7461
|
internal: {
|
|
6958
7462
|
/**
|
|
@@ -7015,7 +7519,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7015
7519
|
url: URL;
|
|
7016
7520
|
/** JWT token generated for a visitor auth session */
|
|
7017
7521
|
visitorAuthToken?: string;
|
|
7018
|
-
}, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error
|
|
7522
|
+
}, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error | {
|
|
7523
|
+
error: {
|
|
7524
|
+
/** @format int32 */
|
|
7525
|
+
code: 404;
|
|
7526
|
+
message: string;
|
|
7527
|
+
};
|
|
7528
|
+
}>>;
|
|
7019
7529
|
};
|
|
7020
7530
|
}
|
|
7021
7531
|
export {};
|