@gitbook/api 0.35.0 → 0.37.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 +1376 -85
- package/dist/index.cjs +417 -10
- package/dist/index.js +412 -10
- package/package.json +1 -1
- package/spec/openapi.json +4244 -945
- package/spec/openapi.yaml +2086 -149
package/dist/client.d.ts
CHANGED
|
@@ -588,6 +588,7 @@ export interface DocumentInlineLink {
|
|
|
588
588
|
key?: string;
|
|
589
589
|
nodes: (DocumentText | DocumentInlineImage)[];
|
|
590
590
|
data: {
|
|
591
|
+
/** A relative reference to content in GitBook. */
|
|
591
592
|
ref: ContentRef;
|
|
592
593
|
};
|
|
593
594
|
isVoid?: false;
|
|
@@ -627,6 +628,7 @@ export interface DocumentInlineMention {
|
|
|
627
628
|
type: 'mention';
|
|
628
629
|
key?: string;
|
|
629
630
|
data: {
|
|
631
|
+
/** A relative reference to content in GitBook. */
|
|
630
632
|
ref: ContentRef;
|
|
631
633
|
};
|
|
632
634
|
isVoid: true;
|
|
@@ -982,6 +984,7 @@ export interface DocumentBlockContentRef {
|
|
|
982
984
|
type: 'content-ref';
|
|
983
985
|
key?: string;
|
|
984
986
|
data: {
|
|
987
|
+
/** A relative reference to content in GitBook. */
|
|
985
988
|
ref: ContentRef;
|
|
986
989
|
};
|
|
987
990
|
isVoid: true;
|
|
@@ -1029,6 +1032,7 @@ export interface DocumentBlockSyncedBlock {
|
|
|
1029
1032
|
};
|
|
1030
1033
|
isVoid: true;
|
|
1031
1034
|
}
|
|
1035
|
+
/** A relative reference to content in GitBook. */
|
|
1032
1036
|
export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock;
|
|
1033
1037
|
export interface ContentRefURL {
|
|
1034
1038
|
kind: 'url';
|
|
@@ -1074,6 +1078,51 @@ export interface ContentRefSyncedBlock {
|
|
|
1074
1078
|
syncedBlock: string;
|
|
1075
1079
|
organization: string;
|
|
1076
1080
|
}
|
|
1081
|
+
/** An absolute reference to content in GitBook. */
|
|
1082
|
+
export declare type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
|
|
1083
|
+
export interface ContentLocationURL {
|
|
1084
|
+
kind: 'url';
|
|
1085
|
+
url: string;
|
|
1086
|
+
}
|
|
1087
|
+
export interface ContentLocationFile {
|
|
1088
|
+
kind: 'file';
|
|
1089
|
+
organization: Organization;
|
|
1090
|
+
space: Space;
|
|
1091
|
+
changeRequest?: ChangeRequest;
|
|
1092
|
+
file: RevisionFile;
|
|
1093
|
+
}
|
|
1094
|
+
export interface ContentLocationPage {
|
|
1095
|
+
kind: 'page';
|
|
1096
|
+
organization: Organization;
|
|
1097
|
+
page: RevisionPage;
|
|
1098
|
+
space: Space;
|
|
1099
|
+
changeRequest?: ChangeRequest;
|
|
1100
|
+
anchor?: string;
|
|
1101
|
+
}
|
|
1102
|
+
export interface ContentLocationUser {
|
|
1103
|
+
kind: 'user';
|
|
1104
|
+
user: User;
|
|
1105
|
+
}
|
|
1106
|
+
export interface ContentLocationCollection {
|
|
1107
|
+
kind: 'collection';
|
|
1108
|
+
organization: Organization;
|
|
1109
|
+
collection: Collection;
|
|
1110
|
+
}
|
|
1111
|
+
export interface ContentLocationSpace {
|
|
1112
|
+
kind: 'space';
|
|
1113
|
+
organization: Organization;
|
|
1114
|
+
space: Space;
|
|
1115
|
+
}
|
|
1116
|
+
export interface ContentLocationSnippet {
|
|
1117
|
+
kind: 'snippet';
|
|
1118
|
+
organization: Organization;
|
|
1119
|
+
snippet: Snippet;
|
|
1120
|
+
}
|
|
1121
|
+
export interface ContentLocationSyncedBlock {
|
|
1122
|
+
kind: 'synced-block';
|
|
1123
|
+
organization: Organization;
|
|
1124
|
+
syncedBlock: SyncedBlock;
|
|
1125
|
+
}
|
|
1077
1126
|
export interface Space {
|
|
1078
1127
|
/** Type of Object, always equals to "space" */
|
|
1079
1128
|
object: 'space';
|
|
@@ -1153,15 +1202,20 @@ export declare enum SpaceEditMode {
|
|
|
1153
1202
|
* @maxLength 50
|
|
1154
1203
|
*/
|
|
1155
1204
|
export declare type SpaceTitle = string;
|
|
1156
|
-
export declare type SpaceVisitorAuth = {
|
|
1205
|
+
export declare type SpaceVisitorAuth = SpaceVisitorAuthCustomBackend | (SpaceVisitorAuthIntegrationBackend & {
|
|
1206
|
+
/** Name of integration being used as the backend for Visitor Authentication */
|
|
1207
|
+
integration: string;
|
|
1208
|
+
});
|
|
1209
|
+
/** Custom backend for Visitor Authentication */
|
|
1210
|
+
export interface SpaceVisitorAuthCustomBackend {
|
|
1157
1211
|
/** Custom backend for Visitor Authentication */
|
|
1158
1212
|
backend: 'custom';
|
|
1159
|
-
}
|
|
1213
|
+
}
|
|
1214
|
+
/** Integration backend for Visitor Authentication */
|
|
1215
|
+
export interface SpaceVisitorAuthIntegrationBackend {
|
|
1160
1216
|
/** Integration as backend for Visitor Authentication */
|
|
1161
1217
|
backend: 'integration';
|
|
1162
|
-
|
|
1163
|
-
integration: string;
|
|
1164
|
-
};
|
|
1218
|
+
}
|
|
1165
1219
|
export interface RevisionBase {
|
|
1166
1220
|
/** Type of Object, always equals to "revision" */
|
|
1167
1221
|
object: 'revision';
|
|
@@ -1295,6 +1349,7 @@ export declare type RevisionPageLink = RevisionPageBase & {
|
|
|
1295
1349
|
/** @deprecated */
|
|
1296
1350
|
kind: 'link';
|
|
1297
1351
|
type: 'link';
|
|
1352
|
+
/** A relative reference to content in GitBook. */
|
|
1298
1353
|
target: ContentRef;
|
|
1299
1354
|
href?: string;
|
|
1300
1355
|
};
|
|
@@ -1335,7 +1390,9 @@ export declare enum ImportContentSource {
|
|
|
1335
1390
|
OpenApi = "open-api"
|
|
1336
1391
|
}
|
|
1337
1392
|
export interface ChangeAttributeContentReference {
|
|
1393
|
+
/** A relative reference to content in GitBook. */
|
|
1338
1394
|
before?: ContentRef;
|
|
1395
|
+
/** A relative reference to content in GitBook. */
|
|
1339
1396
|
after?: ContentRef;
|
|
1340
1397
|
}
|
|
1341
1398
|
export interface ChangeAttributeCustomFields {
|
|
@@ -1685,6 +1742,93 @@ export declare type OrganizationInvite = {
|
|
|
1685
1742
|
/** The collection the member has been invited to */
|
|
1686
1743
|
collection: Collection;
|
|
1687
1744
|
});
|
|
1745
|
+
export interface OrganizationPointer {
|
|
1746
|
+
type: 'organization';
|
|
1747
|
+
/** Unique identifier for the organization */
|
|
1748
|
+
organization: string;
|
|
1749
|
+
}
|
|
1750
|
+
/** All usage metrics of an organization */
|
|
1751
|
+
export interface OrganizationUsage {
|
|
1752
|
+
/** Spaces usage metrics of an organization */
|
|
1753
|
+
spaces: OrganizationUsageSpaces;
|
|
1754
|
+
/** Collections usage metrics of an organization */
|
|
1755
|
+
collections: OrganizationUsageCollections;
|
|
1756
|
+
/** Sites usage metrics of an organization */
|
|
1757
|
+
sites: OrganizationUsageSites;
|
|
1758
|
+
/** Seats usage metrics of an organization */
|
|
1759
|
+
seats: OrganizationUsageSeats;
|
|
1760
|
+
/** Team members usage metrics of an organization */
|
|
1761
|
+
teams: OrganizationUsageTeams;
|
|
1762
|
+
/** Members usage metrics of an organization */
|
|
1763
|
+
members: OrganizationUsageMembers;
|
|
1764
|
+
/** Team members usage metrics of an organization */
|
|
1765
|
+
teamMembers: OrganizationUsageTeamMembers;
|
|
1766
|
+
}
|
|
1767
|
+
/** Spaces usage metrics of an organization */
|
|
1768
|
+
export interface OrganizationUsageSpaces {
|
|
1769
|
+
/** Count of all spaces */
|
|
1770
|
+
total: number;
|
|
1771
|
+
}
|
|
1772
|
+
/** Collections usage metrics of an organization */
|
|
1773
|
+
export interface OrganizationUsageCollections {
|
|
1774
|
+
/** Count of all collections */
|
|
1775
|
+
total: number;
|
|
1776
|
+
}
|
|
1777
|
+
/** Sites usage metrics of an organization */
|
|
1778
|
+
export interface OrganizationUsageSites {
|
|
1779
|
+
/** Count of all sites */
|
|
1780
|
+
total: number;
|
|
1781
|
+
/** Count of all public sites */
|
|
1782
|
+
public: number;
|
|
1783
|
+
/** Count of all unlisted sites */
|
|
1784
|
+
unlisted: number;
|
|
1785
|
+
/** Count of all link-shared sites */
|
|
1786
|
+
shareLink: number;
|
|
1787
|
+
/** Count of all visitor-authenticated sites */
|
|
1788
|
+
visitorAuth: number;
|
|
1789
|
+
/** Count of all unpublished sites */
|
|
1790
|
+
unpublished: number;
|
|
1791
|
+
}
|
|
1792
|
+
/** Members usage metrics of an organization */
|
|
1793
|
+
export interface OrganizationUsageMembers {
|
|
1794
|
+
/** Count of all members */
|
|
1795
|
+
total: number;
|
|
1796
|
+
/** Count of all admins */
|
|
1797
|
+
admin: number;
|
|
1798
|
+
/** Count of all creators */
|
|
1799
|
+
create: number;
|
|
1800
|
+
/** Count of all editors */
|
|
1801
|
+
edit: number;
|
|
1802
|
+
/** Count of all reviewers */
|
|
1803
|
+
review: number;
|
|
1804
|
+
/** Count of all commenters */
|
|
1805
|
+
comment: number;
|
|
1806
|
+
/** Count of all readers */
|
|
1807
|
+
read: number;
|
|
1808
|
+
/** Count of all guests */
|
|
1809
|
+
guest: number;
|
|
1810
|
+
}
|
|
1811
|
+
/** Team members usage metrics of an organization */
|
|
1812
|
+
export interface OrganizationUsageTeams {
|
|
1813
|
+
/** Count of all teams */
|
|
1814
|
+
total: number;
|
|
1815
|
+
}
|
|
1816
|
+
/** Team members usage metrics of an organization */
|
|
1817
|
+
export interface OrganizationUsageTeamMembers {
|
|
1818
|
+
/** Count of all organization members in a team */
|
|
1819
|
+
total: number;
|
|
1820
|
+
/** Count of all team owners */
|
|
1821
|
+
owner: number;
|
|
1822
|
+
/** Count of all team members */
|
|
1823
|
+
member: number;
|
|
1824
|
+
}
|
|
1825
|
+
/** Seats usage metrics of an organization */
|
|
1826
|
+
export interface OrganizationUsageSeats {
|
|
1827
|
+
/** The total amount of seats in the organization. */
|
|
1828
|
+
total: number;
|
|
1829
|
+
/** How many seats are still available. */
|
|
1830
|
+
available: number;
|
|
1831
|
+
}
|
|
1688
1832
|
export interface Capture {
|
|
1689
1833
|
/** Unique identifier for the capture */
|
|
1690
1834
|
id: string;
|
|
@@ -1844,22 +1988,17 @@ export interface SyncedBlock {
|
|
|
1844
1988
|
organization: string;
|
|
1845
1989
|
/** @format date-time */
|
|
1846
1990
|
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
1991
|
/**
|
|
1853
1992
|
* Title describing the synced block.
|
|
1854
1993
|
* @maxLength 100
|
|
1855
1994
|
*/
|
|
1856
1995
|
title?: string;
|
|
1857
|
-
document: JSONDocument;
|
|
1858
1996
|
/** URLs associated with the object */
|
|
1859
1997
|
urls: {
|
|
1860
1998
|
/** URL of the synced block in the API */
|
|
1861
1999
|
location: URL;
|
|
1862
2000
|
};
|
|
2001
|
+
files?: RevisionFile[];
|
|
1863
2002
|
}
|
|
1864
2003
|
/** Content audit relation */
|
|
1865
2004
|
export interface ContentAuditRelation {
|
|
@@ -1897,28 +2036,31 @@ export interface ContentAuditSourceSection {
|
|
|
1897
2036
|
space: Space;
|
|
1898
2037
|
page: RevisionPageDocument;
|
|
1899
2038
|
}
|
|
1900
|
-
export
|
|
2039
|
+
export interface ContentReferenceUsage {
|
|
1901
2040
|
/**
|
|
1902
2041
|
* Text to display to represent the reference. Possible values include:
|
|
2042
|
+
* - `ok` - No problems detected for this content reference.
|
|
1903
2043
|
* - `broken` - The target does not exist in the revision.
|
|
1904
2044
|
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1905
2045
|
*/
|
|
1906
|
-
status
|
|
2046
|
+
status: ContentReferenceStatus;
|
|
1907
2047
|
/** The reference target where a list of pages are pointing at */
|
|
1908
2048
|
targetReference: ContentReferenceResolved;
|
|
1909
2049
|
/** All pages where the target is being referenced. */
|
|
1910
2050
|
locationReferences: ContentReferenceResolved[];
|
|
1911
|
-
}
|
|
2051
|
+
}
|
|
1912
2052
|
export interface ContentReferenceResolved {
|
|
1913
2053
|
/** Text to display to represent the reference */
|
|
1914
2054
|
text: string;
|
|
1915
2055
|
/** The type of the content reference */
|
|
1916
|
-
type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url';
|
|
2056
|
+
type: 'space' | 'page' | 'file' | 'anchor' | 'collection' | 'user' | 'snippet' | 'url' | 'synced-block';
|
|
1917
2057
|
/** Target in-app url for the reference */
|
|
1918
2058
|
url: string;
|
|
1919
2059
|
extra: {
|
|
2060
|
+
collection?: Collection;
|
|
1920
2061
|
space?: Space;
|
|
1921
|
-
page?:
|
|
2062
|
+
page?: RevisionPage;
|
|
2063
|
+
anchor?: RevisionPage;
|
|
1922
2064
|
file?: RevisionFile;
|
|
1923
2065
|
snippet?: Snippet;
|
|
1924
2066
|
user?: User;
|
|
@@ -1926,10 +2068,12 @@ export interface ContentReferenceResolved {
|
|
|
1926
2068
|
}
|
|
1927
2069
|
/**
|
|
1928
2070
|
* Text to display to represent the reference. Possible values include:
|
|
2071
|
+
* - `ok` - No problems detected for this content reference.
|
|
1929
2072
|
* - `broken` - The target does not exist in the revision.
|
|
1930
2073
|
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1931
2074
|
*/
|
|
1932
2075
|
export declare enum ContentReferenceStatus {
|
|
2076
|
+
Ok = "ok",
|
|
1933
2077
|
Broken = "broken",
|
|
1934
2078
|
InApp = "in-app"
|
|
1935
2079
|
}
|
|
@@ -1939,10 +2083,8 @@ export interface ContentReferencesStats {
|
|
|
1939
2083
|
broken: {
|
|
1940
2084
|
/** Count of broken links */
|
|
1941
2085
|
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
2086
|
/** Count of broken links that were broken in current change request, if applicable. */
|
|
1945
|
-
changeRequest
|
|
2087
|
+
changeRequest?: number;
|
|
1946
2088
|
};
|
|
1947
2089
|
}
|
|
1948
2090
|
export interface ChangeRequest {
|
|
@@ -3565,13 +3707,20 @@ export interface ContentKitURL {
|
|
|
3565
3707
|
query?: Record<string, string | ContentKitDynamicBinding>;
|
|
3566
3708
|
}
|
|
3567
3709
|
/** Channel to subscribe to for API updates. */
|
|
3568
|
-
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel |
|
|
3710
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | {
|
|
3711
|
+
channel: 'space-broken-links';
|
|
3712
|
+
space: string;
|
|
3713
|
+
} | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | {
|
|
3714
|
+
channel: 'space-change-request-broken-links';
|
|
3715
|
+
space: string;
|
|
3716
|
+
changeRequest: string;
|
|
3717
|
+
} | CollectionChannel | CollectionPublishingCustomizationChannel | {
|
|
3569
3718
|
channel: 'organization';
|
|
3570
3719
|
organization: string;
|
|
3571
|
-
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | {
|
|
3720
|
+
} | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationSeatsChannel | OrganizationUsageSeatsChannel | OrganizationSeatChannel | {
|
|
3572
3721
|
channel: 'organization-experimental-features';
|
|
3573
3722
|
organization: string;
|
|
3574
|
-
} | {
|
|
3723
|
+
} | OrganizationSyncedBlockChannel | {
|
|
3575
3724
|
channel: 'space-comments';
|
|
3576
3725
|
space: string;
|
|
3577
3726
|
changeRequest?: string;
|
|
@@ -3591,7 +3740,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
|
|
|
3591
3740
|
space: string;
|
|
3592
3741
|
changeRequest?: string;
|
|
3593
3742
|
comment: string;
|
|
3594
|
-
} | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel;
|
|
3743
|
+
} | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | CustomHostnameChannel;
|
|
3595
3744
|
export interface SpaceInfoChannel {
|
|
3596
3745
|
channel: 'space';
|
|
3597
3746
|
space: string;
|
|
@@ -3680,6 +3829,11 @@ export interface OrganizationTeamChannel {
|
|
|
3680
3829
|
organization: string;
|
|
3681
3830
|
team: string;
|
|
3682
3831
|
}
|
|
3832
|
+
export interface OrganizationSyncedBlockChannel {
|
|
3833
|
+
channel: 'organization-synced-block';
|
|
3834
|
+
organization: string;
|
|
3835
|
+
syncedBlock: string;
|
|
3836
|
+
}
|
|
3683
3837
|
export interface OrganizationTeamMembersChannel {
|
|
3684
3838
|
channel: 'organization-team-members';
|
|
3685
3839
|
organization: string;
|
|
@@ -3733,6 +3887,22 @@ export interface OrganizationSitesChannel {
|
|
|
3733
3887
|
channel: 'organization-sites';
|
|
3734
3888
|
organization: string;
|
|
3735
3889
|
}
|
|
3890
|
+
/** Subscription channel for changes in a member seat in an organization. */
|
|
3891
|
+
export interface OrganizationSeatChannel {
|
|
3892
|
+
channel: 'organization-seat';
|
|
3893
|
+
organization: string;
|
|
3894
|
+
member: string;
|
|
3895
|
+
}
|
|
3896
|
+
/** Subscription channel for changes in seats in an organization. */
|
|
3897
|
+
export interface OrganizationSeatsChannel {
|
|
3898
|
+
channel: 'organization-seats';
|
|
3899
|
+
organization: string;
|
|
3900
|
+
}
|
|
3901
|
+
/** Subscription channel for changes in seats usage in an organization. */
|
|
3902
|
+
export interface OrganizationUsageSeatsChannel {
|
|
3903
|
+
channel: 'organization-usage-seats';
|
|
3904
|
+
organization: string;
|
|
3905
|
+
}
|
|
3736
3906
|
export interface IntegrationChannel {
|
|
3737
3907
|
channel: 'integration';
|
|
3738
3908
|
integration: string;
|
|
@@ -3768,6 +3938,43 @@ export interface SiteChannel {
|
|
|
3768
3938
|
channel: 'site';
|
|
3769
3939
|
site: string;
|
|
3770
3940
|
}
|
|
3941
|
+
export interface SiteCustomizationChannel {
|
|
3942
|
+
channel: 'site-customization';
|
|
3943
|
+
site: string;
|
|
3944
|
+
}
|
|
3945
|
+
export interface SitePublishingAuthChannel {
|
|
3946
|
+
channel: 'site-publishing-auth';
|
|
3947
|
+
site: string;
|
|
3948
|
+
}
|
|
3949
|
+
export interface SiteSpaceChannel {
|
|
3950
|
+
channel: 'site-space';
|
|
3951
|
+
site: string;
|
|
3952
|
+
siteSpace: string;
|
|
3953
|
+
}
|
|
3954
|
+
export interface SiteSpaceCustomizationChannel {
|
|
3955
|
+
channel: 'site-space-customization';
|
|
3956
|
+
site: string;
|
|
3957
|
+
siteSpace: string;
|
|
3958
|
+
}
|
|
3959
|
+
/** Subscription channel for changes in site spaces in an organization. */
|
|
3960
|
+
export interface SiteSpacesChannel {
|
|
3961
|
+
channel: 'site-spaces';
|
|
3962
|
+
site: string;
|
|
3963
|
+
}
|
|
3964
|
+
export interface SiteShareLinkChannel {
|
|
3965
|
+
channel: 'site-share-link';
|
|
3966
|
+
site: string;
|
|
3967
|
+
siteShareLink: string;
|
|
3968
|
+
}
|
|
3969
|
+
/** Subscription channel for changes in share links in a site */
|
|
3970
|
+
export interface SiteShareLinksChannel {
|
|
3971
|
+
channel: 'site-share-links';
|
|
3972
|
+
site: string;
|
|
3973
|
+
}
|
|
3974
|
+
export interface CustomHostnameChannel {
|
|
3975
|
+
channel: 'custom-hostname';
|
|
3976
|
+
customHostname: string;
|
|
3977
|
+
}
|
|
3771
3978
|
/** Custom field */
|
|
3772
3979
|
export interface CustomField {
|
|
3773
3980
|
id: string;
|
|
@@ -3943,6 +4150,7 @@ export declare type CustomizationHeaderLink = CustomizationContentLink & {
|
|
|
3943
4150
|
};
|
|
3944
4151
|
export interface CustomizationContentLink {
|
|
3945
4152
|
title: string;
|
|
4153
|
+
/** A relative reference to content in GitBook. */
|
|
3946
4154
|
to: ContentRef;
|
|
3947
4155
|
}
|
|
3948
4156
|
export interface CustomizationFooterGroup {
|
|
@@ -4003,6 +4211,11 @@ export interface ShareLink {
|
|
|
4003
4211
|
* @maxLength 50
|
|
4004
4212
|
*/
|
|
4005
4213
|
export declare type ShareLinkName = string;
|
|
4214
|
+
export interface SitePointer {
|
|
4215
|
+
type: 'site';
|
|
4216
|
+
/** Unique identifier for the site */
|
|
4217
|
+
site: string;
|
|
4218
|
+
}
|
|
4006
4219
|
export interface Site {
|
|
4007
4220
|
object: 'site';
|
|
4008
4221
|
/** Unique identifier of the site */
|
|
@@ -4011,7 +4224,7 @@ export interface Site {
|
|
|
4011
4224
|
title: SiteTitle;
|
|
4012
4225
|
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
4013
4226
|
hostname?: SiteHostname;
|
|
4014
|
-
/** Basename for the site. For e.g.
|
|
4227
|
+
/** Basename for the site. For e.g. api */
|
|
4015
4228
|
basename: SiteBasename;
|
|
4016
4229
|
/**
|
|
4017
4230
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
@@ -4024,6 +4237,7 @@ export interface Site {
|
|
|
4024
4237
|
siteSpaces: number;
|
|
4025
4238
|
/** @format date-time */
|
|
4026
4239
|
createdAt: string;
|
|
4240
|
+
subscription: SiteSubscription;
|
|
4027
4241
|
/** URLs associated with the object */
|
|
4028
4242
|
urls: {
|
|
4029
4243
|
/**
|
|
@@ -4140,17 +4354,27 @@ export declare type SitePublishingAuth = {
|
|
|
4140
4354
|
*/
|
|
4141
4355
|
fallbackURL?: string;
|
|
4142
4356
|
} & SpaceVisitorAuth;
|
|
4357
|
+
export declare type SitePublishingAuthUpdate = (SpaceVisitorAuthCustomBackend | SpaceVisitorAuthIntegrationBackend) & {
|
|
4358
|
+
/**
|
|
4359
|
+
* A fallback URL that will be used if authentication fails.
|
|
4360
|
+
* @format uri
|
|
4361
|
+
*/
|
|
4362
|
+
fallbackURL?: string;
|
|
4363
|
+
};
|
|
4143
4364
|
/**
|
|
4144
|
-
* Basename for the site. For e.g.
|
|
4365
|
+
* Basename for the site. For e.g. api
|
|
4366
|
+
* @minLength 1
|
|
4145
4367
|
* @maxLength 100
|
|
4146
4368
|
*/
|
|
4147
4369
|
export declare type SiteBasename = string;
|
|
4148
4370
|
/**
|
|
4149
4371
|
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
4150
|
-
* @
|
|
4372
|
+
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
4151
4373
|
*/
|
|
4152
4374
|
export declare type SiteHostname = string;
|
|
4153
4375
|
export interface SiteSpace {
|
|
4376
|
+
/** The object type, which is always "site-space" */
|
|
4377
|
+
object?: 'site-space';
|
|
4154
4378
|
/** Unique identifier of the site-space */
|
|
4155
4379
|
id: string;
|
|
4156
4380
|
/** Path to the space on the site */
|
|
@@ -4165,6 +4389,64 @@ export interface SiteSpace {
|
|
|
4165
4389
|
* @maxLength 100
|
|
4166
4390
|
*/
|
|
4167
4391
|
export declare type SiteSpacePath = string;
|
|
4392
|
+
export declare enum SiteSubscriptionStatus {
|
|
4393
|
+
Active = "active",
|
|
4394
|
+
Inactive = "inactive"
|
|
4395
|
+
}
|
|
4396
|
+
export declare enum SiteSubscriptionType {
|
|
4397
|
+
Basic = "basic",
|
|
4398
|
+
Premium = "premium"
|
|
4399
|
+
}
|
|
4400
|
+
export interface SiteSubscription {
|
|
4401
|
+
type: SiteSubscriptionType;
|
|
4402
|
+
status: SiteSubscriptionStatus;
|
|
4403
|
+
}
|
|
4404
|
+
export interface CustomHostname {
|
|
4405
|
+
object: 'custom-hostname';
|
|
4406
|
+
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
4407
|
+
hostname: SiteHostname;
|
|
4408
|
+
target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
|
|
4409
|
+
isActive: boolean;
|
|
4410
|
+
status?: CustomHostnameStatus;
|
|
4411
|
+
/** URLs associated with the object */
|
|
4412
|
+
urls: {
|
|
4413
|
+
/**
|
|
4414
|
+
* URL of the custom hostname in the API
|
|
4415
|
+
* @format uri
|
|
4416
|
+
*/
|
|
4417
|
+
location: string;
|
|
4418
|
+
};
|
|
4419
|
+
}
|
|
4420
|
+
export declare type CustomHostnameStatus = CustomHostnameDnsStatus | CustomHostnameSslStatus | CustomHostnameErrorStatus;
|
|
4421
|
+
export declare enum CustomHostnameDnsStatus {
|
|
4422
|
+
DnsPassed = "dns_passed",
|
|
4423
|
+
DnsWrongCname = "dns_wrong_cname",
|
|
4424
|
+
DnsNoCname = "dns_no_cname",
|
|
4425
|
+
DnsCloudflareProxied = "dns_cloudflare_proxied",
|
|
4426
|
+
DnsWrongCaa = "dns_wrong_caa"
|
|
4427
|
+
}
|
|
4428
|
+
export declare enum CustomHostnameSslStatus {
|
|
4429
|
+
Live = "live",
|
|
4430
|
+
SslUnknown = "ssl_unknown",
|
|
4431
|
+
SslPending = "ssl_pending",
|
|
4432
|
+
SslFailed = "ssl_failed",
|
|
4433
|
+
SslRetryExpired = "ssl_retry_expired"
|
|
4434
|
+
}
|
|
4435
|
+
export declare enum CustomHostnameErrorStatus {
|
|
4436
|
+
InvalidDomain = "invalid_domain",
|
|
4437
|
+
InternalError = "internal_error"
|
|
4438
|
+
}
|
|
4439
|
+
export interface Seat {
|
|
4440
|
+
object: 'seat';
|
|
4441
|
+
/** The unique ID of the organization */
|
|
4442
|
+
organization: string;
|
|
4443
|
+
/** The unique ID of the organization member */
|
|
4444
|
+
member: string;
|
|
4445
|
+
/** @format date-time */
|
|
4446
|
+
createdAt: string;
|
|
4447
|
+
/** @format date-time */
|
|
4448
|
+
updatedAt: string;
|
|
4449
|
+
}
|
|
4168
4450
|
import { EventIterator } from 'event-iterator';
|
|
4169
4451
|
export declare type QueryParamsType = Record<string | number, any>;
|
|
4170
4452
|
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
@@ -4259,7 +4541,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4259
4541
|
query: string;
|
|
4260
4542
|
/** Identifier of the page results to fetch. */
|
|
4261
4543
|
page?: string;
|
|
4262
|
-
/**
|
|
4544
|
+
/**
|
|
4545
|
+
* The number of results per page
|
|
4546
|
+
* @min 0
|
|
4547
|
+
* @max 1000
|
|
4548
|
+
*/
|
|
4263
4549
|
limit?: number;
|
|
4264
4550
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4265
4551
|
items: SearchSpaceResult[];
|
|
@@ -4499,7 +4785,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4499
4785
|
query: string;
|
|
4500
4786
|
/** Identifier of the page results to fetch. */
|
|
4501
4787
|
page?: string;
|
|
4502
|
-
/**
|
|
4788
|
+
/**
|
|
4789
|
+
* The number of results per page
|
|
4790
|
+
* @min 0
|
|
4791
|
+
* @max 1000
|
|
4792
|
+
*/
|
|
4503
4793
|
limit?: number;
|
|
4504
4794
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4505
4795
|
items: SearchPageResult[];
|
|
@@ -4664,7 +4954,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4664
4954
|
* @request GET:/spaces/{spaceId}/content
|
|
4665
4955
|
* @secure
|
|
4666
4956
|
*/
|
|
4667
|
-
getCurrentRevision: (spaceId: string,
|
|
4957
|
+
getCurrentRevision: (spaceId: string, query?: {
|
|
4958
|
+
/**
|
|
4959
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
4960
|
+
* @default true
|
|
4961
|
+
*/
|
|
4962
|
+
metadata?: boolean;
|
|
4963
|
+
}, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
4668
4964
|
/**
|
|
4669
4965
|
* No description
|
|
4670
4966
|
*
|
|
@@ -4682,7 +4978,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4682
4978
|
* @request GET:/spaces/{spaceId}/content/pages
|
|
4683
4979
|
* @secure
|
|
4684
4980
|
*/
|
|
4685
|
-
listPages: (spaceId: string,
|
|
4981
|
+
listPages: (spaceId: string, query?: {
|
|
4982
|
+
/**
|
|
4983
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
4984
|
+
* @default true
|
|
4985
|
+
*/
|
|
4986
|
+
metadata?: boolean;
|
|
4987
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
4686
4988
|
pages: RevisionPage[];
|
|
4687
4989
|
}, Error>>;
|
|
4688
4990
|
/**
|
|
@@ -4696,8 +4998,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4696
4998
|
listFiles: (spaceId: string, query?: {
|
|
4697
4999
|
/** Identifier of the page results to fetch. */
|
|
4698
5000
|
page?: string;
|
|
4699
|
-
/**
|
|
5001
|
+
/**
|
|
5002
|
+
* The number of results per page
|
|
5003
|
+
* @min 0
|
|
5004
|
+
* @max 1000
|
|
5005
|
+
*/
|
|
4700
5006
|
limit?: number;
|
|
5007
|
+
/**
|
|
5008
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5009
|
+
* @default true
|
|
5010
|
+
*/
|
|
5011
|
+
metadata?: boolean;
|
|
4701
5012
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4702
5013
|
items: RevisionFile[];
|
|
4703
5014
|
}, Error>>;
|
|
@@ -4709,7 +5020,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4709
5020
|
* @request GET:/spaces/{spaceId}/content/files/{fileId}
|
|
4710
5021
|
* @secure
|
|
4711
5022
|
*/
|
|
4712
|
-
getFileById: (spaceId: string, fileId: string,
|
|
5023
|
+
getFileById: (spaceId: string, fileId: string, query?: {
|
|
5024
|
+
/**
|
|
5025
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5026
|
+
* @default true
|
|
5027
|
+
*/
|
|
5028
|
+
metadata?: boolean;
|
|
5029
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
4713
5030
|
/**
|
|
4714
5031
|
* No description
|
|
4715
5032
|
*
|
|
@@ -4721,6 +5038,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4721
5038
|
getPageById: (spaceId: string, pageId: string, query?: {
|
|
4722
5039
|
/** Output format for the content. */
|
|
4723
5040
|
format?: 'document' | 'markdown';
|
|
5041
|
+
/**
|
|
5042
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5043
|
+
* @default true
|
|
5044
|
+
*/
|
|
5045
|
+
metadata?: boolean;
|
|
4724
5046
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
4725
5047
|
/**
|
|
4726
5048
|
* No description
|
|
@@ -4742,6 +5064,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4742
5064
|
getPageByPath: (spaceId: string, pagePath: string, query?: {
|
|
4743
5065
|
/** Output format for the content. */
|
|
4744
5066
|
format?: 'document' | 'markdown';
|
|
5067
|
+
/**
|
|
5068
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5069
|
+
* @default true
|
|
5070
|
+
*/
|
|
5071
|
+
metadata?: boolean;
|
|
4745
5072
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
4746
5073
|
/**
|
|
4747
5074
|
* No description
|
|
@@ -4777,7 +5104,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4777
5104
|
listChangeRequestsForSpace: (spaceId: string, query?: {
|
|
4778
5105
|
/** Identifier of the page results to fetch. */
|
|
4779
5106
|
page?: string;
|
|
4780
|
-
/**
|
|
5107
|
+
/**
|
|
5108
|
+
* The number of results per page
|
|
5109
|
+
* @min 0
|
|
5110
|
+
* @max 1000
|
|
5111
|
+
*/
|
|
4781
5112
|
limit?: number;
|
|
4782
5113
|
/**
|
|
4783
5114
|
* If defined, only change requests matching this status will be returned
|
|
@@ -4858,7 +5189,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4858
5189
|
format?: 'document' | 'markdown';
|
|
4859
5190
|
/** Identifier of the page results to fetch. */
|
|
4860
5191
|
page?: string;
|
|
4861
|
-
/**
|
|
5192
|
+
/**
|
|
5193
|
+
* The number of results per page
|
|
5194
|
+
* @min 0
|
|
5195
|
+
* @max 1000
|
|
5196
|
+
*/
|
|
4862
5197
|
limit?: number;
|
|
4863
5198
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4864
5199
|
items: ChangeRequestReview[];
|
|
@@ -4896,7 +5231,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4896
5231
|
getRequestedReviewersByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
|
|
4897
5232
|
/** Identifier of the page results to fetch. */
|
|
4898
5233
|
page?: string;
|
|
4899
|
-
/**
|
|
5234
|
+
/**
|
|
5235
|
+
* The number of results per page
|
|
5236
|
+
* @min 0
|
|
5237
|
+
* @max 1000
|
|
5238
|
+
*/
|
|
4900
5239
|
limit?: number;
|
|
4901
5240
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4902
5241
|
items: ChangeRequestRequestedReviewer[];
|
|
@@ -4919,6 +5258,42 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4919
5258
|
/** The user requests that were sent. */
|
|
4920
5259
|
users?: ChangeRequestRequestedReviewer[];
|
|
4921
5260
|
}, Error>>;
|
|
5261
|
+
/**
|
|
5262
|
+
* No description
|
|
5263
|
+
*
|
|
5264
|
+
* @tags spaces, links
|
|
5265
|
+
* @name ListChangeRequestLinks
|
|
5266
|
+
* @summary Get all links in the context of a change request including their status and location where they appear.
|
|
5267
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
|
|
5268
|
+
* @secure
|
|
5269
|
+
*/
|
|
5270
|
+
listChangeRequestLinks: (spaceId: string, changeRequestId: string, query?: {
|
|
5271
|
+
/** Identifier of the page results to fetch. */
|
|
5272
|
+
page?: string;
|
|
5273
|
+
/**
|
|
5274
|
+
* The number of results per page
|
|
5275
|
+
* @min 0
|
|
5276
|
+
* @max 1000
|
|
5277
|
+
*/
|
|
5278
|
+
limit?: number;
|
|
5279
|
+
/**
|
|
5280
|
+
* Text to display to represent the reference. Possible values include:
|
|
5281
|
+
* - `ok` - No problems detected for this content reference.
|
|
5282
|
+
* - `broken` - The target does not exist in the revision.
|
|
5283
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
5284
|
+
*/
|
|
5285
|
+
status?: ContentReferenceStatus;
|
|
5286
|
+
brokenContext?: 'change-request' | 'space';
|
|
5287
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5288
|
+
stats: ContentReferencesStats;
|
|
5289
|
+
items: ContentReferenceUsage[];
|
|
5290
|
+
}, Error | {
|
|
5291
|
+
error: {
|
|
5292
|
+
/** @format int32 */
|
|
5293
|
+
code: 404;
|
|
5294
|
+
message: string;
|
|
5295
|
+
};
|
|
5296
|
+
}>>;
|
|
4922
5297
|
/**
|
|
4923
5298
|
* No description
|
|
4924
5299
|
*
|
|
@@ -4931,7 +5306,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4931
5306
|
listCommentsInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
|
|
4932
5307
|
/** Identifier of the page results to fetch. */
|
|
4933
5308
|
page?: string;
|
|
4934
|
-
/**
|
|
5309
|
+
/**
|
|
5310
|
+
* The number of results per page
|
|
5311
|
+
* @min 0
|
|
5312
|
+
* @max 1000
|
|
5313
|
+
*/
|
|
4935
5314
|
limit?: number;
|
|
4936
5315
|
/**
|
|
4937
5316
|
* An order for the items in the list
|
|
@@ -5005,7 +5384,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5005
5384
|
listCommentRepliesInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
|
|
5006
5385
|
/** Identifier of the page results to fetch. */
|
|
5007
5386
|
page?: string;
|
|
5008
|
-
/**
|
|
5387
|
+
/**
|
|
5388
|
+
* The number of results per page
|
|
5389
|
+
* @min 0
|
|
5390
|
+
* @max 1000
|
|
5391
|
+
*/
|
|
5009
5392
|
limit?: number;
|
|
5010
5393
|
/** Output format for the content. */
|
|
5011
5394
|
format?: 'document' | 'markdown';
|
|
@@ -5084,7 +5467,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5084
5467
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
|
|
5085
5468
|
* @secure
|
|
5086
5469
|
*/
|
|
5087
|
-
getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string,
|
|
5470
|
+
getRevisionOfChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
|
|
5471
|
+
/**
|
|
5472
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5473
|
+
* @default true
|
|
5474
|
+
*/
|
|
5475
|
+
metadata?: boolean;
|
|
5476
|
+
}, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
5088
5477
|
/**
|
|
5089
5478
|
* No description
|
|
5090
5479
|
*
|
|
@@ -5102,7 +5491,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5102
5491
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
|
|
5103
5492
|
* @secure
|
|
5104
5493
|
*/
|
|
5105
|
-
listPagesInChangeRequest: (spaceId: string, changeRequestId: string,
|
|
5494
|
+
listPagesInChangeRequest: (spaceId: string, changeRequestId: string, query?: {
|
|
5495
|
+
/**
|
|
5496
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5497
|
+
* @default true
|
|
5498
|
+
*/
|
|
5499
|
+
metadata?: boolean;
|
|
5500
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5106
5501
|
pages: RevisionPage[];
|
|
5107
5502
|
}, Error>>;
|
|
5108
5503
|
/**
|
|
@@ -5116,8 +5511,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5116
5511
|
listFilesInChangeRequestById: (spaceId: string, changeRequestId: string, query?: {
|
|
5117
5512
|
/** Identifier of the page results to fetch. */
|
|
5118
5513
|
page?: string;
|
|
5119
|
-
/**
|
|
5514
|
+
/**
|
|
5515
|
+
* The number of results per page
|
|
5516
|
+
* @min 0
|
|
5517
|
+
* @max 1000
|
|
5518
|
+
*/
|
|
5120
5519
|
limit?: number;
|
|
5520
|
+
/**
|
|
5521
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5522
|
+
* @default true
|
|
5523
|
+
*/
|
|
5524
|
+
metadata?: boolean;
|
|
5121
5525
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5122
5526
|
items: RevisionFile[];
|
|
5123
5527
|
}, Error>>;
|
|
@@ -5129,7 +5533,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5129
5533
|
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
|
|
5130
5534
|
* @secure
|
|
5131
5535
|
*/
|
|
5132
|
-
getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string,
|
|
5536
|
+
getFileInChangeRequestById: (spaceId: string, changeRequestId: string, fileId: string, query?: {
|
|
5537
|
+
/**
|
|
5538
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5539
|
+
* @default true
|
|
5540
|
+
*/
|
|
5541
|
+
metadata?: boolean;
|
|
5542
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5133
5543
|
/**
|
|
5134
5544
|
* No description
|
|
5135
5545
|
*
|
|
@@ -5141,6 +5551,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5141
5551
|
getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
|
|
5142
5552
|
/** Output format for the content. */
|
|
5143
5553
|
format?: 'document' | 'markdown';
|
|
5554
|
+
/**
|
|
5555
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5556
|
+
* @default true
|
|
5557
|
+
*/
|
|
5558
|
+
metadata?: boolean;
|
|
5144
5559
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
5145
5560
|
/**
|
|
5146
5561
|
* No description
|
|
@@ -5162,6 +5577,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5162
5577
|
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
|
|
5163
5578
|
/** Output format for the content. */
|
|
5164
5579
|
format?: 'document' | 'markdown';
|
|
5580
|
+
/**
|
|
5581
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5582
|
+
* @default true
|
|
5583
|
+
*/
|
|
5584
|
+
metadata?: boolean;
|
|
5165
5585
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
5166
5586
|
/**
|
|
5167
5587
|
* No description
|
|
@@ -5180,6 +5600,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5180
5600
|
/** The relation of the touched content to the change request. */
|
|
5181
5601
|
relation: 'synced-block';
|
|
5182
5602
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
5603
|
+
/**
|
|
5604
|
+
* No description
|
|
5605
|
+
*
|
|
5606
|
+
* @tags spaces
|
|
5607
|
+
* @name GetChangeRequestPdf
|
|
5608
|
+
* @summary Generate a URL to export the content of a change request as a PDF.
|
|
5609
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/pdf
|
|
5610
|
+
* @secure
|
|
5611
|
+
*/
|
|
5612
|
+
getChangeRequestPdf: (spaceId: string, changeRequestId: string, query?: {
|
|
5613
|
+
/** Generate a PDF only for the provided page. */
|
|
5614
|
+
only?: boolean;
|
|
5615
|
+
/** ID of a specific page to generate a PDF for. */
|
|
5616
|
+
page?: string;
|
|
5617
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5618
|
+
/** Temporary URL to print the content. The URL will work for 1h. */
|
|
5619
|
+
url: URL;
|
|
5620
|
+
}, Error>>;
|
|
5183
5621
|
/**
|
|
5184
5622
|
* No description
|
|
5185
5623
|
*
|
|
@@ -5188,7 +5626,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5188
5626
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}
|
|
5189
5627
|
* @secure
|
|
5190
5628
|
*/
|
|
5191
|
-
getRevisionById: (spaceId: string, revisionId: string,
|
|
5629
|
+
getRevisionById: (spaceId: string, revisionId: string, query?: {
|
|
5630
|
+
/**
|
|
5631
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5632
|
+
* @default true
|
|
5633
|
+
*/
|
|
5634
|
+
metadata?: boolean;
|
|
5635
|
+
}, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
5192
5636
|
/**
|
|
5193
5637
|
* No description
|
|
5194
5638
|
*
|
|
@@ -5198,16 +5642,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5198
5642
|
* @secure
|
|
5199
5643
|
*/
|
|
5200
5644
|
getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
|
|
5645
|
+
/**
|
|
5646
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5647
|
+
* @default true
|
|
5648
|
+
*/
|
|
5649
|
+
metadata?: boolean;
|
|
5201
5650
|
/**
|
|
5202
5651
|
* Limit the number of changes returned
|
|
5203
5652
|
* @default 10
|
|
5204
5653
|
*/
|
|
5205
5654
|
limit?: number;
|
|
5206
|
-
/**
|
|
5207
|
-
* Whether to include changes to metadata, such as git information and custom fields
|
|
5208
|
-
* @default true
|
|
5209
|
-
*/
|
|
5210
|
-
metadata?: boolean;
|
|
5211
5655
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5212
5656
|
changes: RevisionSemanticChange[];
|
|
5213
5657
|
/** How many changes were omitted because above the result limit */
|
|
@@ -5221,7 +5665,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5221
5665
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
|
|
5222
5666
|
* @secure
|
|
5223
5667
|
*/
|
|
5224
|
-
listPagesInRevisionById: (spaceId: string, revisionId: string,
|
|
5668
|
+
listPagesInRevisionById: (spaceId: string, revisionId: string, query?: {
|
|
5669
|
+
/**
|
|
5670
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5671
|
+
* @default true
|
|
5672
|
+
*/
|
|
5673
|
+
metadata?: boolean;
|
|
5674
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5225
5675
|
pages: RevisionPage[];
|
|
5226
5676
|
}, Error>>;
|
|
5227
5677
|
/**
|
|
@@ -5235,8 +5685,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5235
5685
|
listFilesInRevisionById: (spaceId: string, revisionId: string, query?: {
|
|
5236
5686
|
/** Identifier of the page results to fetch. */
|
|
5237
5687
|
page?: string;
|
|
5238
|
-
/**
|
|
5688
|
+
/**
|
|
5689
|
+
* The number of results per page
|
|
5690
|
+
* @min 0
|
|
5691
|
+
* @max 1000
|
|
5692
|
+
*/
|
|
5239
5693
|
limit?: number;
|
|
5694
|
+
/**
|
|
5695
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5696
|
+
* @default true
|
|
5697
|
+
*/
|
|
5698
|
+
metadata?: boolean;
|
|
5240
5699
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5241
5700
|
items: RevisionFile[];
|
|
5242
5701
|
}, Error>>;
|
|
@@ -5248,7 +5707,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5248
5707
|
* @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
|
|
5249
5708
|
* @secure
|
|
5250
5709
|
*/
|
|
5251
|
-
getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string,
|
|
5710
|
+
getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, query?: {
|
|
5711
|
+
/**
|
|
5712
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5713
|
+
* @default true
|
|
5714
|
+
*/
|
|
5715
|
+
metadata?: boolean;
|
|
5716
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5252
5717
|
/**
|
|
5253
5718
|
* No description
|
|
5254
5719
|
*
|
|
@@ -5260,9 +5725,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5260
5725
|
getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
|
|
5261
5726
|
/** Output format for the content. */
|
|
5262
5727
|
format?: 'document' | 'markdown';
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5728
|
+
/**
|
|
5729
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5730
|
+
* @default true
|
|
5731
|
+
*/
|
|
5732
|
+
metadata?: boolean;
|
|
5733
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
5734
|
+
/**
|
|
5735
|
+
* No description
|
|
5266
5736
|
*
|
|
5267
5737
|
* @name GetPageInRevisionByPath
|
|
5268
5738
|
* @summary Get a page by its path in a revision.
|
|
@@ -5272,6 +5742,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5272
5742
|
getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
|
|
5273
5743
|
/** Output format for the content. */
|
|
5274
5744
|
format?: 'document' | 'markdown';
|
|
5745
|
+
/**
|
|
5746
|
+
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5747
|
+
* @default true
|
|
5748
|
+
*/
|
|
5749
|
+
metadata?: boolean;
|
|
5275
5750
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
5276
5751
|
/**
|
|
5277
5752
|
* No description
|
|
@@ -5285,7 +5760,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5285
5760
|
listCommentsInSpace: (spaceId: string, query?: {
|
|
5286
5761
|
/** Identifier of the page results to fetch. */
|
|
5287
5762
|
page?: string;
|
|
5288
|
-
/**
|
|
5763
|
+
/**
|
|
5764
|
+
* The number of results per page
|
|
5765
|
+
* @min 0
|
|
5766
|
+
* @max 1000
|
|
5767
|
+
*/
|
|
5289
5768
|
limit?: number;
|
|
5290
5769
|
/**
|
|
5291
5770
|
* An order for the items in the list
|
|
@@ -5359,7 +5838,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5359
5838
|
listCommentRepliesInSpace: (spaceId: string, commentId: string, query?: {
|
|
5360
5839
|
/** Identifier of the page results to fetch. */
|
|
5361
5840
|
page?: string;
|
|
5362
|
-
/**
|
|
5841
|
+
/**
|
|
5842
|
+
* The number of results per page
|
|
5843
|
+
* @min 0
|
|
5844
|
+
* @max 1000
|
|
5845
|
+
*/
|
|
5363
5846
|
limit?: number;
|
|
5364
5847
|
/** Output format for the content. */
|
|
5365
5848
|
format?: 'document' | 'markdown';
|
|
@@ -5421,7 +5904,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5421
5904
|
listPermissionsAggregateInSpace: (spaceId: string, query?: {
|
|
5422
5905
|
/** Identifier of the page results to fetch. */
|
|
5423
5906
|
page?: string;
|
|
5424
|
-
/**
|
|
5907
|
+
/**
|
|
5908
|
+
* The number of results per page
|
|
5909
|
+
* @min 0
|
|
5910
|
+
* @max 1000
|
|
5911
|
+
*/
|
|
5425
5912
|
limit?: number;
|
|
5426
5913
|
/** If defined, only members with this role will be returned. */
|
|
5427
5914
|
role?: MemberRole;
|
|
@@ -5654,6 +6141,41 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5654
6141
|
* @secure
|
|
5655
6142
|
*/
|
|
5656
6143
|
deleteSpaceShareLinkById: (spaceId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
6144
|
+
/**
|
|
6145
|
+
* No description
|
|
6146
|
+
*
|
|
6147
|
+
* @tags spaces, links
|
|
6148
|
+
* @name ListSpaceLinks
|
|
6149
|
+
* @summary Get all links in the context of a space including their status and location where they appear.
|
|
6150
|
+
* @request GET:/spaces/{spaceId}/links
|
|
6151
|
+
* @secure
|
|
6152
|
+
*/
|
|
6153
|
+
listSpaceLinks: (spaceId: string, query?: {
|
|
6154
|
+
/** Identifier of the page results to fetch. */
|
|
6155
|
+
page?: string;
|
|
6156
|
+
/**
|
|
6157
|
+
* The number of results per page
|
|
6158
|
+
* @min 0
|
|
6159
|
+
* @max 1000
|
|
6160
|
+
*/
|
|
6161
|
+
limit?: number;
|
|
6162
|
+
/**
|
|
6163
|
+
* Text to display to represent the reference. Possible values include:
|
|
6164
|
+
* - `ok` - No problems detected for this content reference.
|
|
6165
|
+
* - `broken` - The target does not exist in the revision.
|
|
6166
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
6167
|
+
*/
|
|
6168
|
+
status?: ContentReferenceStatus;
|
|
6169
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6170
|
+
stats: ContentReferencesStats;
|
|
6171
|
+
items: ContentReferenceUsage[];
|
|
6172
|
+
}, Error | {
|
|
6173
|
+
error: {
|
|
6174
|
+
/** @format int32 */
|
|
6175
|
+
code: 404;
|
|
6176
|
+
message: string;
|
|
6177
|
+
};
|
|
6178
|
+
}>>;
|
|
5657
6179
|
};
|
|
5658
6180
|
collections: {
|
|
5659
6181
|
/**
|
|
@@ -5715,7 +6237,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5715
6237
|
listSpacesInCollectionById: (collectionId: string, query?: {
|
|
5716
6238
|
/** Identifier of the page results to fetch. */
|
|
5717
6239
|
page?: string;
|
|
5718
|
-
/**
|
|
6240
|
+
/**
|
|
6241
|
+
* The number of results per page
|
|
6242
|
+
* @min 0
|
|
6243
|
+
* @max 1000
|
|
6244
|
+
*/
|
|
5719
6245
|
limit?: number;
|
|
5720
6246
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5721
6247
|
items: Space[];
|
|
@@ -5790,7 +6316,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5790
6316
|
listPermissionsAggregateInCollection: (collectionId: string, query?: {
|
|
5791
6317
|
/** Identifier of the page results to fetch. */
|
|
5792
6318
|
page?: string;
|
|
5793
|
-
/**
|
|
6319
|
+
/**
|
|
6320
|
+
* The number of results per page
|
|
6321
|
+
* @min 0
|
|
6322
|
+
* @max 1000
|
|
6323
|
+
*/
|
|
5794
6324
|
limit?: number;
|
|
5795
6325
|
/** If defined, only members with this role will be returned. */
|
|
5796
6326
|
role?: MemberRole;
|
|
@@ -5912,7 +6442,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5912
6442
|
listIntegrations: (query?: {
|
|
5913
6443
|
/** Identifier of the page results to fetch. */
|
|
5914
6444
|
page?: string;
|
|
5915
|
-
/**
|
|
6445
|
+
/**
|
|
6446
|
+
* The number of results per page
|
|
6447
|
+
* @min 0
|
|
6448
|
+
* @max 1000
|
|
6449
|
+
*/
|
|
5916
6450
|
limit?: number;
|
|
5917
6451
|
/** A search string to filter integrations by name */
|
|
5918
6452
|
search?: any;
|
|
@@ -5981,7 +6515,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5981
6515
|
listIntegrationInstallations: (integrationName: string, query?: {
|
|
5982
6516
|
/** Identifier of the page results to fetch. */
|
|
5983
6517
|
page?: string;
|
|
5984
|
-
/**
|
|
6518
|
+
/**
|
|
6519
|
+
* The number of results per page
|
|
6520
|
+
* @min 0
|
|
6521
|
+
* @max 1000
|
|
6522
|
+
*/
|
|
5985
6523
|
limit?: number;
|
|
5986
6524
|
/** External Id to filter by */
|
|
5987
6525
|
externalId?: string;
|
|
@@ -6016,7 +6554,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6016
6554
|
listIntegrationEvents: (integrationName: string, query?: {
|
|
6017
6555
|
/** Identifier of the page results to fetch. */
|
|
6018
6556
|
page?: string;
|
|
6019
|
-
/**
|
|
6557
|
+
/**
|
|
6558
|
+
* The number of results per page
|
|
6559
|
+
* @min 0
|
|
6560
|
+
* @max 1000
|
|
6561
|
+
*/
|
|
6020
6562
|
limit?: number;
|
|
6021
6563
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6022
6564
|
items: IntegrationEvent[];
|
|
@@ -6052,7 +6594,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6052
6594
|
listIntegrationSpaceInstallations: (integrationName: string, query?: {
|
|
6053
6595
|
/** Identifier of the page results to fetch. */
|
|
6054
6596
|
page?: string;
|
|
6055
|
-
/**
|
|
6597
|
+
/**
|
|
6598
|
+
* The number of results per page
|
|
6599
|
+
* @min 0
|
|
6600
|
+
* @max 1000
|
|
6601
|
+
*/
|
|
6056
6602
|
limit?: number;
|
|
6057
6603
|
/** External Id to filter by */
|
|
6058
6604
|
externalId?: string;
|
|
@@ -6214,7 +6760,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6214
6760
|
listIntegrationInstallationSpaces: (integrationName: string, installationId: string, query?: {
|
|
6215
6761
|
/** Identifier of the page results to fetch. */
|
|
6216
6762
|
page?: string;
|
|
6217
|
-
/**
|
|
6763
|
+
/**
|
|
6764
|
+
* The number of results per page
|
|
6765
|
+
* @min 0
|
|
6766
|
+
* @max 1000
|
|
6767
|
+
*/
|
|
6218
6768
|
limit?: number;
|
|
6219
6769
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6220
6770
|
items: IntegrationSpaceInstallation[];
|
|
@@ -6271,6 +6821,80 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6271
6821
|
* @secure
|
|
6272
6822
|
*/
|
|
6273
6823
|
uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
6824
|
+
/**
|
|
6825
|
+
* No description
|
|
6826
|
+
*
|
|
6827
|
+
* @tags integrations
|
|
6828
|
+
* @name ListIntegrationInstallationSites
|
|
6829
|
+
* @summary List installations on sites for an integration in an organization
|
|
6830
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}/sites
|
|
6831
|
+
* @secure
|
|
6832
|
+
*/
|
|
6833
|
+
listIntegrationInstallationSites: (integrationName: string, installationId: string, query?: {
|
|
6834
|
+
/** Identifier of the page results to fetch. */
|
|
6835
|
+
page?: string;
|
|
6836
|
+
/**
|
|
6837
|
+
* The number of results per page
|
|
6838
|
+
* @min 0
|
|
6839
|
+
* @max 1000
|
|
6840
|
+
*/
|
|
6841
|
+
limit?: number;
|
|
6842
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6843
|
+
items: IntegrationSiteInstallation[];
|
|
6844
|
+
}, Error>>;
|
|
6845
|
+
/**
|
|
6846
|
+
* No description
|
|
6847
|
+
*
|
|
6848
|
+
* @tags integrations
|
|
6849
|
+
* @name InstallIntegrationOnSite
|
|
6850
|
+
* @summary Install integration on a site using an existing installation
|
|
6851
|
+
* @request POST:/integrations/{integrationName}/installations/{installationId}/sites
|
|
6852
|
+
* @secure
|
|
6853
|
+
*/
|
|
6854
|
+
installIntegrationOnSite: (integrationName: string, installationId: string, data: {
|
|
6855
|
+
/** ID of the site to install the integration on */
|
|
6856
|
+
siteId: string;
|
|
6857
|
+
}, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
|
|
6858
|
+
error: {
|
|
6859
|
+
/** @format int32 */
|
|
6860
|
+
code: 404;
|
|
6861
|
+
message: string;
|
|
6862
|
+
};
|
|
6863
|
+
}>>;
|
|
6864
|
+
/**
|
|
6865
|
+
* No description
|
|
6866
|
+
*
|
|
6867
|
+
* @tags integrations
|
|
6868
|
+
* @name GetIntegrationSiteInstallation
|
|
6869
|
+
* @summary Get a specific integration's site installation
|
|
6870
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
6871
|
+
* @secure
|
|
6872
|
+
*/
|
|
6873
|
+
getIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error | {
|
|
6874
|
+
error: {
|
|
6875
|
+
/** @format int32 */
|
|
6876
|
+
code: 404;
|
|
6877
|
+
message: string;
|
|
6878
|
+
};
|
|
6879
|
+
}>>;
|
|
6880
|
+
/**
|
|
6881
|
+
* No description
|
|
6882
|
+
*
|
|
6883
|
+
* @name UpdateIntegrationSiteInstallation
|
|
6884
|
+
* @summary Update external IDs and configurations of an integration's installation for a site
|
|
6885
|
+
* @request PATCH:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
6886
|
+
* @secure
|
|
6887
|
+
*/
|
|
6888
|
+
updateIntegrationSiteInstallation: (integrationName: string, installationId: string, siteId: string, data: RequestUpdateIntegrationSiteInstallation, params?: RequestParams) => Promise<HttpResponse<IntegrationSiteInstallation, Error>>;
|
|
6889
|
+
/**
|
|
6890
|
+
* No description
|
|
6891
|
+
*
|
|
6892
|
+
* @name UninstallIntegrationFromSite
|
|
6893
|
+
* @summary Uninstall the integration from a site
|
|
6894
|
+
* @request DELETE:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
|
|
6895
|
+
* @secure
|
|
6896
|
+
*/
|
|
6897
|
+
uninstallIntegrationFromSite: (integrationName: string, installationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
6274
6898
|
};
|
|
6275
6899
|
orgs: {
|
|
6276
6900
|
/**
|
|
@@ -6285,7 +6909,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6285
6909
|
listOrganizationsForAuthenticatedUser: (query?: {
|
|
6286
6910
|
/** Identifier of the page results to fetch. */
|
|
6287
6911
|
page?: string;
|
|
6288
|
-
/**
|
|
6912
|
+
/**
|
|
6913
|
+
* The number of results per page
|
|
6914
|
+
* @min 0
|
|
6915
|
+
* @max 1000
|
|
6916
|
+
*/
|
|
6289
6917
|
limit?: number;
|
|
6290
6918
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6291
6919
|
items: Organization[];
|
|
@@ -6371,7 +6999,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6371
6999
|
listMembersInOrganizationById: (organizationId: string, query?: {
|
|
6372
7000
|
/** Identifier of the page results to fetch. */
|
|
6373
7001
|
page?: string;
|
|
6374
|
-
/**
|
|
7002
|
+
/**
|
|
7003
|
+
* The number of results per page
|
|
7004
|
+
* @min 0
|
|
7005
|
+
* @max 1000
|
|
7006
|
+
*/
|
|
6375
7007
|
limit?: number;
|
|
6376
7008
|
/** The Role to filter the member list by */
|
|
6377
7009
|
role?: MemberRole | 'guest';
|
|
@@ -6445,7 +7077,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6445
7077
|
listSpacesForOrganizationMember: (organizationId: string, userId: string, query?: {
|
|
6446
7078
|
/** Identifier of the page results to fetch. */
|
|
6447
7079
|
page?: string;
|
|
6448
|
-
/**
|
|
7080
|
+
/**
|
|
7081
|
+
* The number of results per page
|
|
7082
|
+
* @min 0
|
|
7083
|
+
* @max 1000
|
|
7084
|
+
*/
|
|
6449
7085
|
limit?: number;
|
|
6450
7086
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6451
7087
|
items: MemberContentPermission[];
|
|
@@ -6462,7 +7098,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6462
7098
|
listTeamsForOrganizationMember: (organizationId: string, userId: string, query?: {
|
|
6463
7099
|
/** Identifier of the page results to fetch. */
|
|
6464
7100
|
page?: string;
|
|
6465
|
-
/**
|
|
7101
|
+
/**
|
|
7102
|
+
* The number of results per page
|
|
7103
|
+
* @min 0
|
|
7104
|
+
* @max 1000
|
|
7105
|
+
*/
|
|
6466
7106
|
limit?: number;
|
|
6467
7107
|
/** If provided, only teams whose name contains the given parameter will be returned. Case insensitive. */
|
|
6468
7108
|
title?: string;
|
|
@@ -6484,7 +7124,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6484
7124
|
listTeamsInOrganizationById: (organizationId: string, query?: {
|
|
6485
7125
|
/** Identifier of the page results to fetch. */
|
|
6486
7126
|
page?: string;
|
|
6487
|
-
/**
|
|
7127
|
+
/**
|
|
7128
|
+
* The number of results per page
|
|
7129
|
+
* @min 0
|
|
7130
|
+
* @max 1000
|
|
7131
|
+
*/
|
|
6488
7132
|
limit?: number;
|
|
6489
7133
|
/** The unique identifier of a member of the organization. Only teams they can manage will be returned. */
|
|
6490
7134
|
owner?: string;
|
|
@@ -6566,7 +7210,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6566
7210
|
listTeamMembersInOrganizationById: (organizationId: string, teamId: string, query?: {
|
|
6567
7211
|
/** Identifier of the page results to fetch. */
|
|
6568
7212
|
page?: string;
|
|
6569
|
-
/**
|
|
7213
|
+
/**
|
|
7214
|
+
* The number of results per page
|
|
7215
|
+
* @min 0
|
|
7216
|
+
* @max 1000
|
|
7217
|
+
*/
|
|
6570
7218
|
limit?: number;
|
|
6571
7219
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6572
7220
|
items: OrganizationTeamMember[];
|
|
@@ -6728,7 +7376,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6728
7376
|
query: string;
|
|
6729
7377
|
/** Identifier of the page results to fetch. */
|
|
6730
7378
|
page?: string;
|
|
6731
|
-
/**
|
|
7379
|
+
/**
|
|
7380
|
+
* The number of results per page
|
|
7381
|
+
* @min 0
|
|
7382
|
+
* @max 1000
|
|
7383
|
+
*/
|
|
6732
7384
|
limit?: number;
|
|
6733
7385
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6734
7386
|
items: SearchSpaceResult[];
|
|
@@ -6745,7 +7397,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6745
7397
|
listSpacesInOrganizationById: (organizationId: string, query?: {
|
|
6746
7398
|
/** Identifier of the page results to fetch. */
|
|
6747
7399
|
page?: string;
|
|
6748
|
-
/**
|
|
7400
|
+
/**
|
|
7401
|
+
* The number of results per page
|
|
7402
|
+
* @min 0
|
|
7403
|
+
* @max 1000
|
|
7404
|
+
*/
|
|
6749
7405
|
limit?: number;
|
|
6750
7406
|
/** If defined, only content with this visibility will be returned. */
|
|
6751
7407
|
visibility?: ContentVisibility;
|
|
@@ -6774,7 +7430,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6774
7430
|
listSpacesWithGitSyncInOrganizationById: (organizationId: string, query?: {
|
|
6775
7431
|
/** Identifier of the page results to fetch. */
|
|
6776
7432
|
page?: string;
|
|
6777
|
-
/**
|
|
7433
|
+
/**
|
|
7434
|
+
* The number of results per page
|
|
7435
|
+
* @min 0
|
|
7436
|
+
* @max 1000
|
|
7437
|
+
*/
|
|
6778
7438
|
limit?: number;
|
|
6779
7439
|
/** If defined, only spaces with matching Git sync status are returned */
|
|
6780
7440
|
status?: GitSyncOperationState;
|
|
@@ -6797,7 +7457,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6797
7457
|
listCollectionsInOrganizationById: (organizationId: string, query?: {
|
|
6798
7458
|
/** Identifier of the page results to fetch. */
|
|
6799
7459
|
page?: string;
|
|
6800
|
-
/**
|
|
7460
|
+
/**
|
|
7461
|
+
* The number of results per page
|
|
7462
|
+
* @min 0
|
|
7463
|
+
* @max 1000
|
|
7464
|
+
*/
|
|
6801
7465
|
limit?: number;
|
|
6802
7466
|
/**
|
|
6803
7467
|
* If true, all nested collections will be listed
|
|
@@ -6834,7 +7498,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6834
7498
|
listOrganizationCustomFields: (organizationId: string, query?: {
|
|
6835
7499
|
/** Identifier of the page results to fetch. */
|
|
6836
7500
|
page?: string;
|
|
6837
|
-
/**
|
|
7501
|
+
/**
|
|
7502
|
+
* The number of results per page
|
|
7503
|
+
* @min 0
|
|
7504
|
+
* @max 1000
|
|
7505
|
+
*/
|
|
6838
7506
|
limit?: number;
|
|
6839
7507
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6840
7508
|
items: CustomField[];
|
|
@@ -6909,7 +7577,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6909
7577
|
listOrganizationIntegrations: (organizationId: string, query?: {
|
|
6910
7578
|
/** Identifier of the page results to fetch. */
|
|
6911
7579
|
page?: string;
|
|
6912
|
-
/**
|
|
7580
|
+
/**
|
|
7581
|
+
* The number of results per page
|
|
7582
|
+
* @min 0
|
|
7583
|
+
* @max 1000
|
|
7584
|
+
*/
|
|
6913
7585
|
limit?: number;
|
|
6914
7586
|
/** A search string to filter integrations by name */
|
|
6915
7587
|
search?: any;
|
|
@@ -6946,7 +7618,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6946
7618
|
listOrganizationInstallations: (organizationId: string, query?: {
|
|
6947
7619
|
/** Identifier of the page results to fetch. */
|
|
6948
7620
|
page?: string;
|
|
6949
|
-
/**
|
|
7621
|
+
/**
|
|
7622
|
+
* The number of results per page
|
|
7623
|
+
* @min 0
|
|
7624
|
+
* @max 1000
|
|
7625
|
+
*/
|
|
6950
7626
|
limit?: number;
|
|
6951
7627
|
/** A search string to filter integrations by name */
|
|
6952
7628
|
search?: any;
|
|
@@ -6977,6 +7653,107 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6977
7653
|
* @secure
|
|
6978
7654
|
*/
|
|
6979
7655
|
updateOrgExperimentalFeatures: (organizationId: string, data: Record<string, boolean>, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
7656
|
+
/**
|
|
7657
|
+
* No description
|
|
7658
|
+
*
|
|
7659
|
+
* @tags organizations, usage
|
|
7660
|
+
* @name GetUsageForOrganizationById
|
|
7661
|
+
* @summary Get all usage metrics for an organization
|
|
7662
|
+
* @request GET:/orgs/{organizationId}/usage
|
|
7663
|
+
* @secure
|
|
7664
|
+
*/
|
|
7665
|
+
getUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationUsage, Error>>;
|
|
7666
|
+
/**
|
|
7667
|
+
* No description
|
|
7668
|
+
*
|
|
7669
|
+
* @tags organizations, usage
|
|
7670
|
+
* @name GetCollectionsUsageForOrganizationById
|
|
7671
|
+
* @summary Get collections usage metrics for an organization
|
|
7672
|
+
* @request GET:/orgs/{organizationId}/usage/collections
|
|
7673
|
+
* @secure
|
|
7674
|
+
*/
|
|
7675
|
+
getCollectionsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7676
|
+
/** Collections usage metrics of an organization */
|
|
7677
|
+
collections: OrganizationUsageCollections;
|
|
7678
|
+
}, Error>>;
|
|
7679
|
+
/**
|
|
7680
|
+
* No description
|
|
7681
|
+
*
|
|
7682
|
+
* @tags organizations, usage
|
|
7683
|
+
* @name GetSpacesUsageForOrganizationById
|
|
7684
|
+
* @summary Get spaces usage metrics for an organization
|
|
7685
|
+
* @request GET:/orgs/{organizationId}/usage/spaces
|
|
7686
|
+
* @secure
|
|
7687
|
+
*/
|
|
7688
|
+
getSpacesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7689
|
+
/** Spaces usage metrics of an organization */
|
|
7690
|
+
spaces: OrganizationUsageSpaces;
|
|
7691
|
+
}, Error>>;
|
|
7692
|
+
/**
|
|
7693
|
+
* No description
|
|
7694
|
+
*
|
|
7695
|
+
* @tags organizations, usage
|
|
7696
|
+
* @name GetSitesUsageForOrganizationById
|
|
7697
|
+
* @summary Get sites usage metrics for an organization
|
|
7698
|
+
* @request GET:/orgs/{organizationId}/usage/sites
|
|
7699
|
+
* @secure
|
|
7700
|
+
*/
|
|
7701
|
+
getSitesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7702
|
+
/** Sites usage metrics of an organization */
|
|
7703
|
+
sites: OrganizationUsageSites;
|
|
7704
|
+
}, Error>>;
|
|
7705
|
+
/**
|
|
7706
|
+
* No description
|
|
7707
|
+
*
|
|
7708
|
+
* @tags organizations, usage
|
|
7709
|
+
* @name GetTeamsUsageForOrganizationById
|
|
7710
|
+
* @summary Get teams usage metrics for an organization
|
|
7711
|
+
* @request GET:/orgs/{organizationId}/usage/teams
|
|
7712
|
+
* @secure
|
|
7713
|
+
*/
|
|
7714
|
+
getTeamsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7715
|
+
/** Team members usage metrics of an organization */
|
|
7716
|
+
teams: OrganizationUsageTeams;
|
|
7717
|
+
}, Error>>;
|
|
7718
|
+
/**
|
|
7719
|
+
* No description
|
|
7720
|
+
*
|
|
7721
|
+
* @tags organizations, usage
|
|
7722
|
+
* @name GetMembersUsageForOrganizationById
|
|
7723
|
+
* @summary Get members usage metrics for an organization
|
|
7724
|
+
* @request GET:/orgs/{organizationId}/usage/members
|
|
7725
|
+
* @secure
|
|
7726
|
+
*/
|
|
7727
|
+
getMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7728
|
+
/** Members usage metrics of an organization */
|
|
7729
|
+
members: OrganizationUsageMembers;
|
|
7730
|
+
}, Error>>;
|
|
7731
|
+
/**
|
|
7732
|
+
* No description
|
|
7733
|
+
*
|
|
7734
|
+
* @tags organizations, usage
|
|
7735
|
+
* @name GetTeamMembersUsageForOrganizationById
|
|
7736
|
+
* @summary Get team members usage metrics for an organization
|
|
7737
|
+
* @request GET:/orgs/{organizationId}/usage/team-members
|
|
7738
|
+
* @secure
|
|
7739
|
+
*/
|
|
7740
|
+
getTeamMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7741
|
+
/** Team members usage metrics of an organization */
|
|
7742
|
+
teamMembers: OrganizationUsageTeamMembers;
|
|
7743
|
+
}, Error>>;
|
|
7744
|
+
/**
|
|
7745
|
+
* No description
|
|
7746
|
+
*
|
|
7747
|
+
* @tags organizations, usage
|
|
7748
|
+
* @name GetSeatsUsageForOrganizationById
|
|
7749
|
+
* @summary Get seats usage metrics for an organization
|
|
7750
|
+
* @request GET:/orgs/{organizationId}/usage/seats
|
|
7751
|
+
* @secure
|
|
7752
|
+
*/
|
|
7753
|
+
getSeatsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
7754
|
+
/** Seats usage metrics of an organization */
|
|
7755
|
+
seats: OrganizationUsageSeats;
|
|
7756
|
+
}, Error>>;
|
|
6980
7757
|
/**
|
|
6981
7758
|
* No description
|
|
6982
7759
|
*
|
|
@@ -6989,7 +7766,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6989
7766
|
listEntitySchemas: (organizationId: string, query?: {
|
|
6990
7767
|
/** Identifier of the page results to fetch. */
|
|
6991
7768
|
page?: string;
|
|
6992
|
-
/**
|
|
7769
|
+
/**
|
|
7770
|
+
* The number of results per page
|
|
7771
|
+
* @min 0
|
|
7772
|
+
* @max 1000
|
|
7773
|
+
*/
|
|
6993
7774
|
limit?: number;
|
|
6994
7775
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6995
7776
|
items: EntitySchema[];
|
|
@@ -7036,7 +7817,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7036
7817
|
listSchemaEntities: (organizationId: string, entityType: EntityType, query?: {
|
|
7037
7818
|
/** Identifier of the page results to fetch. */
|
|
7038
7819
|
page?: string;
|
|
7039
|
-
/**
|
|
7820
|
+
/**
|
|
7821
|
+
* The number of results per page
|
|
7822
|
+
* @min 0
|
|
7823
|
+
* @max 1000
|
|
7824
|
+
*/
|
|
7040
7825
|
limit?: number;
|
|
7041
7826
|
/** Query to filter entities with, ex: a == 'something' && b >= 10 */
|
|
7042
7827
|
query?: string;
|
|
@@ -7083,7 +7868,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7083
7868
|
format?: 'document' | 'markdown';
|
|
7084
7869
|
/** Identifier of the page results to fetch. */
|
|
7085
7870
|
page?: string;
|
|
7086
|
-
/**
|
|
7871
|
+
/**
|
|
7872
|
+
* The number of results per page
|
|
7873
|
+
* @min 0
|
|
7874
|
+
* @max 1000
|
|
7875
|
+
*/
|
|
7087
7876
|
limit?: number;
|
|
7088
7877
|
/** The context in which the item was captured */
|
|
7089
7878
|
context?: 'walkthrough' | 'thread';
|
|
@@ -7166,7 +7955,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7166
7955
|
listSnippets: (organizationId: string, query?: {
|
|
7167
7956
|
/** Identifier of the page results to fetch. */
|
|
7168
7957
|
page?: string;
|
|
7169
|
-
/**
|
|
7958
|
+
/**
|
|
7959
|
+
* The number of results per page
|
|
7960
|
+
* @min 0
|
|
7961
|
+
* @max 1000
|
|
7962
|
+
*/
|
|
7170
7963
|
limit?: number;
|
|
7171
7964
|
/** If specified, only snippets from the specified source will be returned. */
|
|
7172
7965
|
source?: string;
|
|
@@ -7250,7 +8043,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7250
8043
|
getSnippetSuggestedLocations: (organizationId: string, snippetId: string, query?: {
|
|
7251
8044
|
/** Identifier of the page results to fetch. */
|
|
7252
8045
|
page?: string;
|
|
7253
|
-
/**
|
|
8046
|
+
/**
|
|
8047
|
+
* The number of results per page
|
|
8048
|
+
* @min 0
|
|
8049
|
+
* @max 1000
|
|
8050
|
+
*/
|
|
7254
8051
|
limit?: number;
|
|
7255
8052
|
/** If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces. */
|
|
7256
8053
|
spaceId?: string;
|
|
@@ -7291,6 +8088,40 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7291
8088
|
* @secure
|
|
7292
8089
|
*/
|
|
7293
8090
|
getSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
8091
|
+
/**
|
|
8092
|
+
* No description
|
|
8093
|
+
*
|
|
8094
|
+
* @tags organizations
|
|
8095
|
+
* @name UpdateSyncedBlock
|
|
8096
|
+
* @summary Update an existing synced block.
|
|
8097
|
+
* @request PUT:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
8098
|
+
* @secure
|
|
8099
|
+
*/
|
|
8100
|
+
updateSyncedBlock: (organizationId: string, syncedBlockId: string, data: {
|
|
8101
|
+
/** A new title for the Synced Block. */
|
|
8102
|
+
title?: string;
|
|
8103
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8104
|
+
/**
|
|
8105
|
+
* No description
|
|
8106
|
+
*
|
|
8107
|
+
* @tags organizations
|
|
8108
|
+
* @name GetSyncedBlockBacklinks
|
|
8109
|
+
* @summary Get a list of pages that reference this synced block.
|
|
8110
|
+
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks
|
|
8111
|
+
* @secure
|
|
8112
|
+
*/
|
|
8113
|
+
getSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
|
|
8114
|
+
/** Identifier of the page results to fetch. */
|
|
8115
|
+
page?: string;
|
|
8116
|
+
/**
|
|
8117
|
+
* The number of results per page
|
|
8118
|
+
* @min 0
|
|
8119
|
+
* @max 1000
|
|
8120
|
+
*/
|
|
8121
|
+
limit?: number;
|
|
8122
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8123
|
+
items: ContentLocation[];
|
|
8124
|
+
}, Error>>;
|
|
7294
8125
|
/**
|
|
7295
8126
|
* No description
|
|
7296
8127
|
*
|
|
@@ -7349,7 +8180,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7349
8180
|
listContentAuditRelations: (organizationId: string, query?: {
|
|
7350
8181
|
/** Identifier of the page results to fetch. */
|
|
7351
8182
|
page?: string;
|
|
7352
|
-
/**
|
|
8183
|
+
/**
|
|
8184
|
+
* The number of results per page
|
|
8185
|
+
* @min 0
|
|
8186
|
+
* @max 1000
|
|
8187
|
+
*/
|
|
7353
8188
|
limit?: number;
|
|
7354
8189
|
/**
|
|
7355
8190
|
* Status of the audit relation to filter on
|
|
@@ -7429,8 +8264,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7429
8264
|
listSites: (organizationId: string, query?: {
|
|
7430
8265
|
/** Identifier of the page results to fetch. */
|
|
7431
8266
|
page?: string;
|
|
7432
|
-
/**
|
|
8267
|
+
/**
|
|
8268
|
+
* The number of results per page
|
|
8269
|
+
* @min 0
|
|
8270
|
+
* @max 1000
|
|
8271
|
+
*/
|
|
7433
8272
|
limit?: number;
|
|
8273
|
+
/** Identifier of the space to filter the sites by */
|
|
8274
|
+
space?: string;
|
|
7434
8275
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7435
8276
|
items: Site[];
|
|
7436
8277
|
}, Error>>;
|
|
@@ -7445,7 +8286,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7445
8286
|
*/
|
|
7446
8287
|
createSite: (organizationId: string, data: {
|
|
7447
8288
|
/** Title of the site */
|
|
7448
|
-
title
|
|
8289
|
+
title?: SiteTitle;
|
|
7449
8290
|
/**
|
|
7450
8291
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
7451
8292
|
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
@@ -7455,8 +8296,458 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7455
8296
|
*/
|
|
7456
8297
|
visibility?: SiteVisibility;
|
|
7457
8298
|
/** ID of spaces to be added to the site */
|
|
7458
|
-
spaces
|
|
8299
|
+
spaces?: string[];
|
|
7459
8300
|
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8301
|
+
/**
|
|
8302
|
+
* No description
|
|
8303
|
+
*
|
|
8304
|
+
* @tags sites
|
|
8305
|
+
* @name GetSiteById
|
|
8306
|
+
* @summary Get an organization site by its ID
|
|
8307
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}
|
|
8308
|
+
* @secure
|
|
8309
|
+
*/
|
|
8310
|
+
getSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error | {
|
|
8311
|
+
error: {
|
|
8312
|
+
/** @format int32 */
|
|
8313
|
+
code: 404;
|
|
8314
|
+
message: string;
|
|
8315
|
+
};
|
|
8316
|
+
}>>;
|
|
8317
|
+
/**
|
|
8318
|
+
* No description
|
|
8319
|
+
*
|
|
8320
|
+
* @tags sites
|
|
8321
|
+
* @name UpdateSiteById
|
|
8322
|
+
* @summary Update a site in an organization
|
|
8323
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}
|
|
8324
|
+
* @secure
|
|
8325
|
+
*/
|
|
8326
|
+
updateSiteById: (organizationId: string, siteId: string, data: {
|
|
8327
|
+
/** Title of the site */
|
|
8328
|
+
title?: SiteTitle;
|
|
8329
|
+
/**
|
|
8330
|
+
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
8331
|
+
* * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
|
|
8332
|
+
* * `share-link`: Anyone with a secret token in the url can access the site.
|
|
8333
|
+
* * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
|
|
8334
|
+
* * `unpublished`: The site is not accessible to anyone.
|
|
8335
|
+
*/
|
|
8336
|
+
visibility?: SiteVisibility;
|
|
8337
|
+
/** Basename for the site. For e.g. api */
|
|
8338
|
+
basename?: SiteBasename;
|
|
8339
|
+
/** ID of the site-space to be used as the default */
|
|
8340
|
+
defaultSiteSpace?: string;
|
|
8341
|
+
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8342
|
+
/**
|
|
8343
|
+
* No description
|
|
8344
|
+
*
|
|
8345
|
+
* @tags sites
|
|
8346
|
+
* @name DeleteSiteById
|
|
8347
|
+
* @summary Delete a site in an organization
|
|
8348
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}
|
|
8349
|
+
* @secure
|
|
8350
|
+
*/
|
|
8351
|
+
deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8352
|
+
/**
|
|
8353
|
+
* No description
|
|
8354
|
+
*
|
|
8355
|
+
* @tags sites
|
|
8356
|
+
* @name ListSiteShareLinks
|
|
8357
|
+
* @summary List all the share links created in a site
|
|
8358
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/share-links
|
|
8359
|
+
* @secure
|
|
8360
|
+
*/
|
|
8361
|
+
listSiteShareLinks: (organizationId: string, siteId: string, query?: {
|
|
8362
|
+
/** Identifier of the page results to fetch. */
|
|
8363
|
+
page?: string;
|
|
8364
|
+
/**
|
|
8365
|
+
* The number of results per page
|
|
8366
|
+
* @min 0
|
|
8367
|
+
* @max 1000
|
|
8368
|
+
*/
|
|
8369
|
+
limit?: number;
|
|
8370
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8371
|
+
items: ShareLink[];
|
|
8372
|
+
}, Error>>;
|
|
8373
|
+
/**
|
|
8374
|
+
* No description
|
|
8375
|
+
*
|
|
8376
|
+
* @tags sites
|
|
8377
|
+
* @name CreateSiteShareLink
|
|
8378
|
+
* @summary Create a share link in a site
|
|
8379
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/share-links
|
|
8380
|
+
* @secure
|
|
8381
|
+
*/
|
|
8382
|
+
createSiteShareLink: (organizationId: string, siteId: string, data: {
|
|
8383
|
+
/** Name of the share link */
|
|
8384
|
+
name: ShareLinkName;
|
|
8385
|
+
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
8386
|
+
/**
|
|
8387
|
+
* No description
|
|
8388
|
+
*
|
|
8389
|
+
* @tags sites
|
|
8390
|
+
* @name UpdateSiteShareLinkById
|
|
8391
|
+
* @summary Update the details of a site share link
|
|
8392
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
|
|
8393
|
+
* @secure
|
|
8394
|
+
*/
|
|
8395
|
+
updateSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, data: {
|
|
8396
|
+
active?: boolean;
|
|
8397
|
+
/** Name of the share link */
|
|
8398
|
+
name?: ShareLinkName;
|
|
8399
|
+
}, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
|
|
8400
|
+
/**
|
|
8401
|
+
* No description
|
|
8402
|
+
*
|
|
8403
|
+
* @tags sites
|
|
8404
|
+
* @name DeleteSiteShareLinkById
|
|
8405
|
+
* @summary Deletes a site share link
|
|
8406
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}
|
|
8407
|
+
* @secure
|
|
8408
|
+
*/
|
|
8409
|
+
deleteSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8410
|
+
/**
|
|
8411
|
+
* No description
|
|
8412
|
+
*
|
|
8413
|
+
* @tags sites
|
|
8414
|
+
* @name GetSitePublishingAuthSettings
|
|
8415
|
+
* @summary Get the publishing authentication settings for a site.
|
|
8416
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/publishing/auth
|
|
8417
|
+
* @secure
|
|
8418
|
+
*/
|
|
8419
|
+
getSitePublishingAuthSettings: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
|
|
8420
|
+
error: {
|
|
8421
|
+
/** @format int32 */
|
|
8422
|
+
code: 400;
|
|
8423
|
+
message: string;
|
|
8424
|
+
};
|
|
8425
|
+
}>>;
|
|
8426
|
+
/**
|
|
8427
|
+
* No description
|
|
8428
|
+
*
|
|
8429
|
+
* @tags sites
|
|
8430
|
+
* @name UpdateSitePublishingAuthSettings
|
|
8431
|
+
* @summary Update the publishing authentication settings for a site.
|
|
8432
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/publishing/auth
|
|
8433
|
+
* @secure
|
|
8434
|
+
*/
|
|
8435
|
+
updateSitePublishingAuthSettings: (organizationId: string, siteId: string, data: SitePublishingAuthUpdate, params?: RequestParams) => Promise<HttpResponse<SitePublishingAuth, Error | {
|
|
8436
|
+
error: {
|
|
8437
|
+
/** @format int32 */
|
|
8438
|
+
code: 400;
|
|
8439
|
+
message: string;
|
|
8440
|
+
};
|
|
8441
|
+
}>>;
|
|
8442
|
+
/**
|
|
8443
|
+
* No description
|
|
8444
|
+
*
|
|
8445
|
+
* @tags sites
|
|
8446
|
+
* @name GetSiteCustomizationById
|
|
8447
|
+
* @summary Get the customization configuration for a site.
|
|
8448
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/customization
|
|
8449
|
+
* @secure
|
|
8450
|
+
*/
|
|
8451
|
+
getSiteCustomizationById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
8452
|
+
error: {
|
|
8453
|
+
/** @format int32 */
|
|
8454
|
+
code: 400;
|
|
8455
|
+
message: string;
|
|
8456
|
+
};
|
|
8457
|
+
}>>;
|
|
8458
|
+
/**
|
|
8459
|
+
* No description
|
|
8460
|
+
*
|
|
8461
|
+
* @tags sites
|
|
8462
|
+
* @name UpdateSiteCustomizationById
|
|
8463
|
+
* @summary Update the customization configuration for a site.
|
|
8464
|
+
* @request PUT:/orgs/{organizationId}/sites/{siteId}/customization
|
|
8465
|
+
* @secure
|
|
8466
|
+
*/
|
|
8467
|
+
updateSiteCustomizationById: (organizationId: string, siteId: string, data: SiteCustomizationSettings, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
8468
|
+
error: {
|
|
8469
|
+
/** @format int32 */
|
|
8470
|
+
code: 400;
|
|
8471
|
+
message: string;
|
|
8472
|
+
};
|
|
8473
|
+
}>>;
|
|
8474
|
+
/**
|
|
8475
|
+
* No description
|
|
8476
|
+
*
|
|
8477
|
+
* @tags sites
|
|
8478
|
+
* @name AddSpaceToSite
|
|
8479
|
+
* @summary Add a space to a site in an organization
|
|
8480
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/spaces
|
|
8481
|
+
* @secure
|
|
8482
|
+
*/
|
|
8483
|
+
addSpaceToSite: (organizationId: string, siteId: string, data: {
|
|
8484
|
+
/** ID of the space */
|
|
8485
|
+
spaceId: string;
|
|
8486
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
|
|
8487
|
+
/**
|
|
8488
|
+
* No description
|
|
8489
|
+
*
|
|
8490
|
+
* @tags sites
|
|
8491
|
+
* @name ListSiteSpaces
|
|
8492
|
+
* @summary List all the site spaces under a site in an organization
|
|
8493
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces
|
|
8494
|
+
* @secure
|
|
8495
|
+
*/
|
|
8496
|
+
listSiteSpaces: (organizationId: string, siteId: string, query?: {
|
|
8497
|
+
/** Identifier of the page results to fetch. */
|
|
8498
|
+
page?: string;
|
|
8499
|
+
/**
|
|
8500
|
+
* The number of results per page
|
|
8501
|
+
* @min 0
|
|
8502
|
+
* @max 1000
|
|
8503
|
+
*/
|
|
8504
|
+
limit?: number;
|
|
8505
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8506
|
+
items: SiteSpace[];
|
|
8507
|
+
}, Error>>;
|
|
8508
|
+
/**
|
|
8509
|
+
* No description
|
|
8510
|
+
*
|
|
8511
|
+
* @tags sites
|
|
8512
|
+
* @name UpdateSiteSpaceById
|
|
8513
|
+
* @summary Update a space on a site in an organization
|
|
8514
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
|
|
8515
|
+
* @secure
|
|
8516
|
+
*/
|
|
8517
|
+
updateSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
8518
|
+
/** Path to the space on the site */
|
|
8519
|
+
path?: SiteSpacePath;
|
|
8520
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
|
|
8521
|
+
/**
|
|
8522
|
+
* No description
|
|
8523
|
+
*
|
|
8524
|
+
* @tags sites
|
|
8525
|
+
* @name DeleteSiteSpaceById
|
|
8526
|
+
* @summary Delete a space on a site in an organization
|
|
8527
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}
|
|
8528
|
+
* @secure
|
|
8529
|
+
*/
|
|
8530
|
+
deleteSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8531
|
+
/**
|
|
8532
|
+
* No description
|
|
8533
|
+
*
|
|
8534
|
+
* @tags sites
|
|
8535
|
+
* @name GetSiteSpaceCustomizationById
|
|
8536
|
+
* @summary Get the customization configuration for a site space.
|
|
8537
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization
|
|
8538
|
+
* @secure
|
|
8539
|
+
*/
|
|
8540
|
+
getSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
8541
|
+
error: {
|
|
8542
|
+
/** @format int32 */
|
|
8543
|
+
code: 400;
|
|
8544
|
+
message: string;
|
|
8545
|
+
};
|
|
8546
|
+
}>>;
|
|
8547
|
+
/**
|
|
8548
|
+
* No description
|
|
8549
|
+
*
|
|
8550
|
+
* @tags seats
|
|
8551
|
+
* @name ListSeatsInOrganizationById
|
|
8552
|
+
* @summary List all seats in an organization
|
|
8553
|
+
* @request GET:/orgs/{organizationId}/seats
|
|
8554
|
+
* @secure
|
|
8555
|
+
*/
|
|
8556
|
+
listSeatsInOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8557
|
+
items: Seat[];
|
|
8558
|
+
}, Error>>;
|
|
8559
|
+
/**
|
|
8560
|
+
* No description
|
|
8561
|
+
*
|
|
8562
|
+
* @tags seats
|
|
8563
|
+
* @name AddSeatsToOrganizationById
|
|
8564
|
+
* @summary Add more seats to an organization
|
|
8565
|
+
* @request POST:/orgs/{organizationId}/seats
|
|
8566
|
+
* @secure
|
|
8567
|
+
*/
|
|
8568
|
+
addSeatsToOrganizationById: (organizationId: string, data: {
|
|
8569
|
+
/** How many seats to add */
|
|
8570
|
+
amount: number;
|
|
8571
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8572
|
+
/**
|
|
8573
|
+
* No description
|
|
8574
|
+
*
|
|
8575
|
+
* @tags seats
|
|
8576
|
+
* @name RemoveSeatsFromOrganizationById
|
|
8577
|
+
* @summary Remove unassigned seats from an organization
|
|
8578
|
+
* @request DELETE:/orgs/{organizationId}/seats
|
|
8579
|
+
* @secure
|
|
8580
|
+
*/
|
|
8581
|
+
removeSeatsFromOrganizationById: (organizationId: string, data: {
|
|
8582
|
+
/** How many seats to remove. Omit to remove all unassigned seats. */
|
|
8583
|
+
amount?: number;
|
|
8584
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8585
|
+
/**
|
|
8586
|
+
* No description
|
|
8587
|
+
*
|
|
8588
|
+
* @tags seats
|
|
8589
|
+
* @name AssignSeatsToMembersInOrganizationById
|
|
8590
|
+
* @summary Assign seats for one or more members within an organization
|
|
8591
|
+
* @request PUT:/orgs/{organizationId}/seats/members
|
|
8592
|
+
* @secure
|
|
8593
|
+
*/
|
|
8594
|
+
assignSeatsToMembersInOrganizationById: (organizationId: string, data: {
|
|
8595
|
+
/** The unique ID of the organization member */
|
|
8596
|
+
member: string;
|
|
8597
|
+
}[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8598
|
+
error: {
|
|
8599
|
+
/** @format int32 */
|
|
8600
|
+
code: 409;
|
|
8601
|
+
message: string;
|
|
8602
|
+
};
|
|
8603
|
+
}>>;
|
|
8604
|
+
/**
|
|
8605
|
+
* No description
|
|
8606
|
+
*
|
|
8607
|
+
* @tags seats
|
|
8608
|
+
* @name RevokeSeatsFromMembersInOrganizationById
|
|
8609
|
+
* @summary Revoke seats for one or more members within an organization
|
|
8610
|
+
* @request DELETE:/orgs/{organizationId}/seats/members
|
|
8611
|
+
* @secure
|
|
8612
|
+
*/
|
|
8613
|
+
revokeSeatsFromMembersInOrganizationById: (organizationId: string, data: {
|
|
8614
|
+
/** The unique ID of the organization member */
|
|
8615
|
+
member: string;
|
|
8616
|
+
}[], params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8617
|
+
error: {
|
|
8618
|
+
/** @format int32 */
|
|
8619
|
+
code: 409;
|
|
8620
|
+
message: string;
|
|
8621
|
+
};
|
|
8622
|
+
}>>;
|
|
8623
|
+
/**
|
|
8624
|
+
* No description
|
|
8625
|
+
*
|
|
8626
|
+
* @tags seats
|
|
8627
|
+
* @name GetSeatForMemberInOrganizationById
|
|
8628
|
+
* @summary Get the seat of a member of the organization
|
|
8629
|
+
* @request GET:/orgs/{organizationId}/seats/members/{userId}
|
|
8630
|
+
* @secure
|
|
8631
|
+
*/
|
|
8632
|
+
getSeatForMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<Seat, Error | {
|
|
8633
|
+
error: {
|
|
8634
|
+
/** @format int32 */
|
|
8635
|
+
code: 409;
|
|
8636
|
+
message: string;
|
|
8637
|
+
};
|
|
8638
|
+
}>>;
|
|
8639
|
+
/**
|
|
8640
|
+
* No description
|
|
8641
|
+
*
|
|
8642
|
+
* @tags seats
|
|
8643
|
+
* @name AssignSeatToMemberInOrganizationById
|
|
8644
|
+
* @summary Assign an available seat to a member of the organization
|
|
8645
|
+
* @request PUT:/orgs/{organizationId}/seats/members/{userId}
|
|
8646
|
+
* @secure
|
|
8647
|
+
*/
|
|
8648
|
+
assignSeatToMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8649
|
+
error: {
|
|
8650
|
+
/** @format int32 */
|
|
8651
|
+
code: 409;
|
|
8652
|
+
message: string;
|
|
8653
|
+
};
|
|
8654
|
+
}>>;
|
|
8655
|
+
/**
|
|
8656
|
+
* No description
|
|
8657
|
+
*
|
|
8658
|
+
* @tags seats
|
|
8659
|
+
* @name RevokeSeatFromMemberInOrganizationById
|
|
8660
|
+
* @summary Revoke a seat from a member of the organization
|
|
8661
|
+
* @request DELETE:/orgs/{organizationId}/seats/members/{userId}
|
|
8662
|
+
* @secure
|
|
8663
|
+
*/
|
|
8664
|
+
revokeSeatFromMemberInOrganizationById: (organizationId: string, userId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8665
|
+
error: {
|
|
8666
|
+
/** @format int32 */
|
|
8667
|
+
code: 409;
|
|
8668
|
+
message: string;
|
|
8669
|
+
};
|
|
8670
|
+
}>>;
|
|
8671
|
+
};
|
|
8672
|
+
customHostnames: {
|
|
8673
|
+
/**
|
|
8674
|
+
* No description
|
|
8675
|
+
*
|
|
8676
|
+
* @tags custom-hostnames
|
|
8677
|
+
* @name GetCustomHostname
|
|
8678
|
+
* @summary Get the details about a custom hostname.
|
|
8679
|
+
* @request GET:/custom-hostnames/{hostname}
|
|
8680
|
+
* @secure
|
|
8681
|
+
*/
|
|
8682
|
+
getCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error>>;
|
|
8683
|
+
/**
|
|
8684
|
+
* No description
|
|
8685
|
+
*
|
|
8686
|
+
* @tags custom-hostnames
|
|
8687
|
+
* @name SetupCustomHostname
|
|
8688
|
+
* @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.
|
|
8689
|
+
* @request POST:/custom-hostnames/{hostname}
|
|
8690
|
+
* @secure
|
|
8691
|
+
*/
|
|
8692
|
+
setupCustomHostname: (hostname: string, data: {
|
|
8693
|
+
target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
|
|
8694
|
+
}, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
|
|
8695
|
+
error: {
|
|
8696
|
+
/** @format int32 */
|
|
8697
|
+
code: 409;
|
|
8698
|
+
message: string;
|
|
8699
|
+
};
|
|
8700
|
+
}>>;
|
|
8701
|
+
/**
|
|
8702
|
+
* No description
|
|
8703
|
+
*
|
|
8704
|
+
* @tags custom-hostnames
|
|
8705
|
+
* @name DnsRevalidateCustomHostname
|
|
8706
|
+
* @summary Revalidate a custom hostname's DNS records and status.
|
|
8707
|
+
* @request PATCH:/custom-hostnames/{hostname}
|
|
8708
|
+
* @secure
|
|
8709
|
+
*/
|
|
8710
|
+
dnsRevalidateCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8711
|
+
error: {
|
|
8712
|
+
/** @format int32 */
|
|
8713
|
+
code: 409;
|
|
8714
|
+
message: string;
|
|
8715
|
+
};
|
|
8716
|
+
}>>;
|
|
8717
|
+
/**
|
|
8718
|
+
* No description
|
|
8719
|
+
*
|
|
8720
|
+
* @tags custom-hostnames
|
|
8721
|
+
* @name RemoveCustomHostname
|
|
8722
|
+
* @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.
|
|
8723
|
+
* @request DELETE:/custom-hostnames/{hostname}
|
|
8724
|
+
* @secure
|
|
8725
|
+
*/
|
|
8726
|
+
removeCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8727
|
+
/**
|
|
8728
|
+
* No description
|
|
8729
|
+
*
|
|
8730
|
+
* @tags custom-hostnames
|
|
8731
|
+
* @name TestCustomHostname
|
|
8732
|
+
* @summary Test if a custom hostname can be used for a content or organization.
|
|
8733
|
+
* @request POST:/custom-hostnames/{hostname}/test
|
|
8734
|
+
* @secure
|
|
8735
|
+
*/
|
|
8736
|
+
testCustomHostname: (hostname: string, data: {
|
|
8737
|
+
target: OrganizationPointer | SpacePointer | CollectionPointer | SitePointer;
|
|
8738
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
8739
|
+
error: {
|
|
8740
|
+
/** @format int32 */
|
|
8741
|
+
code: 400;
|
|
8742
|
+
message: string;
|
|
8743
|
+
};
|
|
8744
|
+
} | {
|
|
8745
|
+
error: {
|
|
8746
|
+
/** @format int32 */
|
|
8747
|
+
code: 409;
|
|
8748
|
+
message: string;
|
|
8749
|
+
};
|
|
8750
|
+
}>>;
|
|
7460
8751
|
};
|
|
7461
8752
|
internal: {
|
|
7462
8753
|
/**
|