@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/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.37.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -406,6 +406,7 @@ var ContentAuditRelationStatus = /* @__PURE__ */ ((ContentAuditRelationStatus2)
|
|
|
406
406
|
return ContentAuditRelationStatus2;
|
|
407
407
|
})(ContentAuditRelationStatus || {});
|
|
408
408
|
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
409
|
+
ContentReferenceStatus2["Ok"] = "ok";
|
|
409
410
|
ContentReferenceStatus2["Broken"] = "broken";
|
|
410
411
|
ContentReferenceStatus2["InApp"] = "in-app";
|
|
411
412
|
return ContentReferenceStatus2;
|
|
@@ -633,6 +634,37 @@ var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
|
|
|
633
634
|
SiteVisibility2["Unpublished"] = "unpublished";
|
|
634
635
|
return SiteVisibility2;
|
|
635
636
|
})(SiteVisibility || {});
|
|
637
|
+
var SiteSubscriptionStatus = /* @__PURE__ */ ((SiteSubscriptionStatus2) => {
|
|
638
|
+
SiteSubscriptionStatus2["Active"] = "active";
|
|
639
|
+
SiteSubscriptionStatus2["Inactive"] = "inactive";
|
|
640
|
+
return SiteSubscriptionStatus2;
|
|
641
|
+
})(SiteSubscriptionStatus || {});
|
|
642
|
+
var SiteSubscriptionType = /* @__PURE__ */ ((SiteSubscriptionType2) => {
|
|
643
|
+
SiteSubscriptionType2["Basic"] = "basic";
|
|
644
|
+
SiteSubscriptionType2["Premium"] = "premium";
|
|
645
|
+
return SiteSubscriptionType2;
|
|
646
|
+
})(SiteSubscriptionType || {});
|
|
647
|
+
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
648
|
+
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
649
|
+
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
650
|
+
CustomHostnameDnsStatus2["DnsNoCname"] = "dns_no_cname";
|
|
651
|
+
CustomHostnameDnsStatus2["DnsCloudflareProxied"] = "dns_cloudflare_proxied";
|
|
652
|
+
CustomHostnameDnsStatus2["DnsWrongCaa"] = "dns_wrong_caa";
|
|
653
|
+
return CustomHostnameDnsStatus2;
|
|
654
|
+
})(CustomHostnameDnsStatus || {});
|
|
655
|
+
var CustomHostnameSslStatus = /* @__PURE__ */ ((CustomHostnameSslStatus2) => {
|
|
656
|
+
CustomHostnameSslStatus2["Live"] = "live";
|
|
657
|
+
CustomHostnameSslStatus2["SslUnknown"] = "ssl_unknown";
|
|
658
|
+
CustomHostnameSslStatus2["SslPending"] = "ssl_pending";
|
|
659
|
+
CustomHostnameSslStatus2["SslFailed"] = "ssl_failed";
|
|
660
|
+
CustomHostnameSslStatus2["SslRetryExpired"] = "ssl_retry_expired";
|
|
661
|
+
return CustomHostnameSslStatus2;
|
|
662
|
+
})(CustomHostnameSslStatus || {});
|
|
663
|
+
var CustomHostnameErrorStatus = /* @__PURE__ */ ((CustomHostnameErrorStatus2) => {
|
|
664
|
+
CustomHostnameErrorStatus2["InvalidDomain"] = "invalid_domain";
|
|
665
|
+
CustomHostnameErrorStatus2["InternalError"] = "internal_error";
|
|
666
|
+
return CustomHostnameErrorStatus2;
|
|
667
|
+
})(CustomHostnameErrorStatus || {});
|
|
636
668
|
var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
637
669
|
ContentType2["Json"] = "application/json";
|
|
638
670
|
ContentType2["FormData"] = "multipart/form-data";
|
|
@@ -1065,9 +1097,10 @@ var Api = class extends HttpClient {
|
|
|
1065
1097
|
type: "application/json" /* Json */,
|
|
1066
1098
|
...params
|
|
1067
1099
|
}),
|
|
1068
|
-
getCurrentRevision: (spaceId, params = {}) => this.request({
|
|
1100
|
+
getCurrentRevision: (spaceId, query, params = {}) => this.request({
|
|
1069
1101
|
path: `/spaces/${spaceId}/content`,
|
|
1070
1102
|
method: "GET",
|
|
1103
|
+
query,
|
|
1071
1104
|
secure: true,
|
|
1072
1105
|
format: "json",
|
|
1073
1106
|
...params
|
|
@@ -1081,9 +1114,10 @@ var Api = class extends HttpClient {
|
|
|
1081
1114
|
format: "json",
|
|
1082
1115
|
...params
|
|
1083
1116
|
}),
|
|
1084
|
-
listPages: (spaceId, params = {}) => this.request({
|
|
1117
|
+
listPages: (spaceId, query, params = {}) => this.request({
|
|
1085
1118
|
path: `/spaces/${spaceId}/content/pages`,
|
|
1086
1119
|
method: "GET",
|
|
1120
|
+
query,
|
|
1087
1121
|
secure: true,
|
|
1088
1122
|
format: "json",
|
|
1089
1123
|
...params
|
|
@@ -1096,9 +1130,10 @@ var Api = class extends HttpClient {
|
|
|
1096
1130
|
format: "json",
|
|
1097
1131
|
...params
|
|
1098
1132
|
}),
|
|
1099
|
-
getFileById: (spaceId, fileId, params = {}) => this.request({
|
|
1133
|
+
getFileById: (spaceId, fileId, query, params = {}) => this.request({
|
|
1100
1134
|
path: `/spaces/${spaceId}/content/files/${fileId}`,
|
|
1101
1135
|
method: "GET",
|
|
1136
|
+
query,
|
|
1102
1137
|
secure: true,
|
|
1103
1138
|
format: "json",
|
|
1104
1139
|
...params
|
|
@@ -1217,6 +1252,14 @@ var Api = class extends HttpClient {
|
|
|
1217
1252
|
format: "json",
|
|
1218
1253
|
...params
|
|
1219
1254
|
}),
|
|
1255
|
+
listChangeRequestLinks: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1256
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/links`,
|
|
1257
|
+
method: "GET",
|
|
1258
|
+
query,
|
|
1259
|
+
secure: true,
|
|
1260
|
+
format: "json",
|
|
1261
|
+
...params
|
|
1262
|
+
}),
|
|
1220
1263
|
listCommentsInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1221
1264
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments`,
|
|
1222
1265
|
method: "GET",
|
|
@@ -1305,9 +1348,10 @@ var Api = class extends HttpClient {
|
|
|
1305
1348
|
format: "json",
|
|
1306
1349
|
...params
|
|
1307
1350
|
}),
|
|
1308
|
-
getRevisionOfChangeRequestById: (spaceId, changeRequestId, params = {}) => this.request({
|
|
1351
|
+
getRevisionOfChangeRequestById: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1309
1352
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content`,
|
|
1310
1353
|
method: "GET",
|
|
1354
|
+
query,
|
|
1311
1355
|
secure: true,
|
|
1312
1356
|
format: "json",
|
|
1313
1357
|
...params
|
|
@@ -1321,9 +1365,10 @@ var Api = class extends HttpClient {
|
|
|
1321
1365
|
format: "json",
|
|
1322
1366
|
...params
|
|
1323
1367
|
}),
|
|
1324
|
-
listPagesInChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
|
|
1368
|
+
listPagesInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1325
1369
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
|
|
1326
1370
|
method: "GET",
|
|
1371
|
+
query,
|
|
1327
1372
|
secure: true,
|
|
1328
1373
|
format: "json",
|
|
1329
1374
|
...params
|
|
@@ -1336,9 +1381,10 @@ var Api = class extends HttpClient {
|
|
|
1336
1381
|
format: "json",
|
|
1337
1382
|
...params
|
|
1338
1383
|
}),
|
|
1339
|
-
getFileInChangeRequestById: (spaceId, changeRequestId, fileId, params = {}) => this.request({
|
|
1384
|
+
getFileInChangeRequestById: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
|
|
1340
1385
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}`,
|
|
1341
1386
|
method: "GET",
|
|
1387
|
+
query,
|
|
1342
1388
|
secure: true,
|
|
1343
1389
|
format: "json",
|
|
1344
1390
|
...params
|
|
@@ -1377,9 +1423,18 @@ var Api = class extends HttpClient {
|
|
|
1377
1423
|
format: "json",
|
|
1378
1424
|
...params
|
|
1379
1425
|
}),
|
|
1380
|
-
|
|
1426
|
+
getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1427
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
|
|
1428
|
+
method: "GET",
|
|
1429
|
+
query,
|
|
1430
|
+
secure: true,
|
|
1431
|
+
format: "json",
|
|
1432
|
+
...params
|
|
1433
|
+
}),
|
|
1434
|
+
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1381
1435
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1382
1436
|
method: "GET",
|
|
1437
|
+
query,
|
|
1383
1438
|
secure: true,
|
|
1384
1439
|
format: "json",
|
|
1385
1440
|
...params
|
|
@@ -1392,9 +1447,10 @@ var Api = class extends HttpClient {
|
|
|
1392
1447
|
format: "json",
|
|
1393
1448
|
...params
|
|
1394
1449
|
}),
|
|
1395
|
-
listPagesInRevisionById: (spaceId, revisionId, params = {}) => this.request({
|
|
1450
|
+
listPagesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1396
1451
|
path: `/spaces/${spaceId}/revisions/${revisionId}/pages`,
|
|
1397
1452
|
method: "GET",
|
|
1453
|
+
query,
|
|
1398
1454
|
secure: true,
|
|
1399
1455
|
format: "json",
|
|
1400
1456
|
...params
|
|
@@ -1407,9 +1463,10 @@ var Api = class extends HttpClient {
|
|
|
1407
1463
|
format: "json",
|
|
1408
1464
|
...params
|
|
1409
1465
|
}),
|
|
1410
|
-
getFileInRevisionById: (spaceId, revisionId, fileId, params = {}) => this.request({
|
|
1466
|
+
getFileInRevisionById: (spaceId, revisionId, fileId, query, params = {}) => this.request({
|
|
1411
1467
|
path: `/spaces/${spaceId}/revisions/${revisionId}/files/${fileId}`,
|
|
1412
1468
|
method: "GET",
|
|
1469
|
+
query,
|
|
1413
1470
|
secure: true,
|
|
1414
1471
|
format: "json",
|
|
1415
1472
|
...params
|
|
@@ -1641,6 +1698,14 @@ var Api = class extends HttpClient {
|
|
|
1641
1698
|
method: "DELETE",
|
|
1642
1699
|
secure: true,
|
|
1643
1700
|
...params
|
|
1701
|
+
}),
|
|
1702
|
+
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
1703
|
+
path: `/spaces/${spaceId}/links`,
|
|
1704
|
+
method: "GET",
|
|
1705
|
+
query,
|
|
1706
|
+
secure: true,
|
|
1707
|
+
format: "json",
|
|
1708
|
+
...params
|
|
1644
1709
|
})
|
|
1645
1710
|
};
|
|
1646
1711
|
this.collections = {
|
|
@@ -1934,6 +1999,45 @@ var Api = class extends HttpClient {
|
|
|
1934
1999
|
method: "DELETE",
|
|
1935
2000
|
secure: true,
|
|
1936
2001
|
...params
|
|
2002
|
+
}),
|
|
2003
|
+
listIntegrationInstallationSites: (integrationName, installationId, query, params = {}) => this.request({
|
|
2004
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2005
|
+
method: "GET",
|
|
2006
|
+
query,
|
|
2007
|
+
secure: true,
|
|
2008
|
+
format: "json",
|
|
2009
|
+
...params
|
|
2010
|
+
}),
|
|
2011
|
+
installIntegrationOnSite: (integrationName, installationId, data, params = {}) => this.request({
|
|
2012
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2013
|
+
method: "POST",
|
|
2014
|
+
body: data,
|
|
2015
|
+
secure: true,
|
|
2016
|
+
type: "application/json" /* Json */,
|
|
2017
|
+
format: "json",
|
|
2018
|
+
...params
|
|
2019
|
+
}),
|
|
2020
|
+
getIntegrationSiteInstallation: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2021
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2022
|
+
method: "GET",
|
|
2023
|
+
secure: true,
|
|
2024
|
+
format: "json",
|
|
2025
|
+
...params
|
|
2026
|
+
}),
|
|
2027
|
+
updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, params = {}) => this.request({
|
|
2028
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2029
|
+
method: "PATCH",
|
|
2030
|
+
body: data,
|
|
2031
|
+
secure: true,
|
|
2032
|
+
type: "application/json" /* Json */,
|
|
2033
|
+
format: "json",
|
|
2034
|
+
...params
|
|
2035
|
+
}),
|
|
2036
|
+
uninstallIntegrationFromSite: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2037
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2038
|
+
method: "DELETE",
|
|
2039
|
+
secure: true,
|
|
2040
|
+
...params
|
|
1937
2041
|
})
|
|
1938
2042
|
};
|
|
1939
2043
|
this.orgs = {
|
|
@@ -2303,6 +2407,62 @@ var Api = class extends HttpClient {
|
|
|
2303
2407
|
type: "application/json" /* Json */,
|
|
2304
2408
|
...params
|
|
2305
2409
|
}),
|
|
2410
|
+
getUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2411
|
+
path: `/orgs/${organizationId}/usage`,
|
|
2412
|
+
method: "GET",
|
|
2413
|
+
secure: true,
|
|
2414
|
+
format: "json",
|
|
2415
|
+
...params
|
|
2416
|
+
}),
|
|
2417
|
+
getCollectionsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2418
|
+
path: `/orgs/${organizationId}/usage/collections`,
|
|
2419
|
+
method: "GET",
|
|
2420
|
+
secure: true,
|
|
2421
|
+
format: "json",
|
|
2422
|
+
...params
|
|
2423
|
+
}),
|
|
2424
|
+
getSpacesUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2425
|
+
path: `/orgs/${organizationId}/usage/spaces`,
|
|
2426
|
+
method: "GET",
|
|
2427
|
+
secure: true,
|
|
2428
|
+
format: "json",
|
|
2429
|
+
...params
|
|
2430
|
+
}),
|
|
2431
|
+
getSitesUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2432
|
+
path: `/orgs/${organizationId}/usage/sites`,
|
|
2433
|
+
method: "GET",
|
|
2434
|
+
secure: true,
|
|
2435
|
+
format: "json",
|
|
2436
|
+
...params
|
|
2437
|
+
}),
|
|
2438
|
+
getTeamsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2439
|
+
path: `/orgs/${organizationId}/usage/teams`,
|
|
2440
|
+
method: "GET",
|
|
2441
|
+
secure: true,
|
|
2442
|
+
format: "json",
|
|
2443
|
+
...params
|
|
2444
|
+
}),
|
|
2445
|
+
getMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2446
|
+
path: `/orgs/${organizationId}/usage/members`,
|
|
2447
|
+
method: "GET",
|
|
2448
|
+
secure: true,
|
|
2449
|
+
format: "json",
|
|
2450
|
+
...params
|
|
2451
|
+
}),
|
|
2452
|
+
getTeamMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2453
|
+
path: `/orgs/${organizationId}/usage/team-members`,
|
|
2454
|
+
method: "GET",
|
|
2455
|
+
secure: true,
|
|
2456
|
+
format: "json",
|
|
2457
|
+
...params
|
|
2458
|
+
}),
|
|
2459
|
+
getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2460
|
+
path: `/orgs/${organizationId}/usage/seats`,
|
|
2461
|
+
method: "GET",
|
|
2462
|
+
secure: true,
|
|
2463
|
+
format: "json",
|
|
2464
|
+
...params
|
|
2465
|
+
}),
|
|
2306
2466
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
2307
2467
|
path: `/orgs/${organizationId}/schemas`,
|
|
2308
2468
|
method: "GET",
|
|
@@ -2470,6 +2630,22 @@ var Api = class extends HttpClient {
|
|
|
2470
2630
|
format: "json",
|
|
2471
2631
|
...params
|
|
2472
2632
|
}),
|
|
2633
|
+
updateSyncedBlock: (organizationId, syncedBlockId, data, params = {}) => this.request({
|
|
2634
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}`,
|
|
2635
|
+
method: "PUT",
|
|
2636
|
+
body: data,
|
|
2637
|
+
secure: true,
|
|
2638
|
+
type: "application/json" /* Json */,
|
|
2639
|
+
...params
|
|
2640
|
+
}),
|
|
2641
|
+
getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2642
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
|
|
2643
|
+
method: "GET",
|
|
2644
|
+
query,
|
|
2645
|
+
secure: true,
|
|
2646
|
+
format: "json",
|
|
2647
|
+
...params
|
|
2648
|
+
}),
|
|
2473
2649
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2474
2650
|
path: `/orgs/${organizationId}/ask`,
|
|
2475
2651
|
method: "POST",
|
|
@@ -2548,6 +2724,227 @@ var Api = class extends HttpClient {
|
|
|
2548
2724
|
type: "application/json" /* Json */,
|
|
2549
2725
|
format: "json",
|
|
2550
2726
|
...params
|
|
2727
|
+
}),
|
|
2728
|
+
getSiteById: (organizationId, siteId, params = {}) => this.request({
|
|
2729
|
+
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2730
|
+
method: "GET",
|
|
2731
|
+
secure: true,
|
|
2732
|
+
format: "json",
|
|
2733
|
+
...params
|
|
2734
|
+
}),
|
|
2735
|
+
updateSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
2736
|
+
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2737
|
+
method: "PATCH",
|
|
2738
|
+
body: data,
|
|
2739
|
+
secure: true,
|
|
2740
|
+
type: "application/json" /* Json */,
|
|
2741
|
+
format: "json",
|
|
2742
|
+
...params
|
|
2743
|
+
}),
|
|
2744
|
+
deleteSiteById: (organizationId, siteId, params = {}) => this.request({
|
|
2745
|
+
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2746
|
+
method: "DELETE",
|
|
2747
|
+
secure: true,
|
|
2748
|
+
...params
|
|
2749
|
+
}),
|
|
2750
|
+
listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
|
|
2751
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2752
|
+
method: "GET",
|
|
2753
|
+
query,
|
|
2754
|
+
secure: true,
|
|
2755
|
+
format: "json",
|
|
2756
|
+
...params
|
|
2757
|
+
}),
|
|
2758
|
+
createSiteShareLink: (organizationId, siteId, data, params = {}) => this.request({
|
|
2759
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2760
|
+
method: "POST",
|
|
2761
|
+
body: data,
|
|
2762
|
+
secure: true,
|
|
2763
|
+
type: "application/json" /* Json */,
|
|
2764
|
+
format: "json",
|
|
2765
|
+
...params
|
|
2766
|
+
}),
|
|
2767
|
+
updateSiteShareLinkById: (organizationId, siteId, shareLinkId, data, params = {}) => this.request({
|
|
2768
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
|
|
2769
|
+
method: "PATCH",
|
|
2770
|
+
body: data,
|
|
2771
|
+
secure: true,
|
|
2772
|
+
type: "application/json" /* Json */,
|
|
2773
|
+
format: "json",
|
|
2774
|
+
...params
|
|
2775
|
+
}),
|
|
2776
|
+
deleteSiteShareLinkById: (organizationId, siteId, shareLinkId, params = {}) => this.request({
|
|
2777
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
|
|
2778
|
+
method: "DELETE",
|
|
2779
|
+
secure: true,
|
|
2780
|
+
...params
|
|
2781
|
+
}),
|
|
2782
|
+
getSitePublishingAuthSettings: (organizationId, siteId, params = {}) => this.request({
|
|
2783
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2784
|
+
method: "GET",
|
|
2785
|
+
secure: true,
|
|
2786
|
+
format: "json",
|
|
2787
|
+
...params
|
|
2788
|
+
}),
|
|
2789
|
+
updateSitePublishingAuthSettings: (organizationId, siteId, data, params = {}) => this.request({
|
|
2790
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2791
|
+
method: "PATCH",
|
|
2792
|
+
body: data,
|
|
2793
|
+
secure: true,
|
|
2794
|
+
type: "application/json" /* Json */,
|
|
2795
|
+
format: "json",
|
|
2796
|
+
...params
|
|
2797
|
+
}),
|
|
2798
|
+
getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
|
|
2799
|
+
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2800
|
+
method: "GET",
|
|
2801
|
+
secure: true,
|
|
2802
|
+
format: "json",
|
|
2803
|
+
...params
|
|
2804
|
+
}),
|
|
2805
|
+
updateSiteCustomizationById: (organizationId, siteId, data, params = {}) => this.request({
|
|
2806
|
+
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2807
|
+
method: "PUT",
|
|
2808
|
+
body: data,
|
|
2809
|
+
secure: true,
|
|
2810
|
+
type: "application/json" /* Json */,
|
|
2811
|
+
format: "json",
|
|
2812
|
+
...params
|
|
2813
|
+
}),
|
|
2814
|
+
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2815
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2816
|
+
method: "POST",
|
|
2817
|
+
body: data,
|
|
2818
|
+
secure: true,
|
|
2819
|
+
type: "application/json" /* Json */,
|
|
2820
|
+
format: "json",
|
|
2821
|
+
...params
|
|
2822
|
+
}),
|
|
2823
|
+
listSiteSpaces: (organizationId, siteId, query, params = {}) => this.request({
|
|
2824
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2825
|
+
method: "GET",
|
|
2826
|
+
query,
|
|
2827
|
+
secure: true,
|
|
2828
|
+
format: "json",
|
|
2829
|
+
...params
|
|
2830
|
+
}),
|
|
2831
|
+
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2832
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2833
|
+
method: "PATCH",
|
|
2834
|
+
body: data,
|
|
2835
|
+
secure: true,
|
|
2836
|
+
type: "application/json" /* Json */,
|
|
2837
|
+
format: "json",
|
|
2838
|
+
...params
|
|
2839
|
+
}),
|
|
2840
|
+
deleteSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2841
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2842
|
+
method: "DELETE",
|
|
2843
|
+
secure: true,
|
|
2844
|
+
...params
|
|
2845
|
+
}),
|
|
2846
|
+
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2847
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2848
|
+
method: "GET",
|
|
2849
|
+
secure: true,
|
|
2850
|
+
format: "json",
|
|
2851
|
+
...params
|
|
2852
|
+
}),
|
|
2853
|
+
listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
|
|
2854
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2855
|
+
method: "GET",
|
|
2856
|
+
secure: true,
|
|
2857
|
+
format: "json",
|
|
2858
|
+
...params
|
|
2859
|
+
}),
|
|
2860
|
+
addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2861
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2862
|
+
method: "POST",
|
|
2863
|
+
body: data,
|
|
2864
|
+
secure: true,
|
|
2865
|
+
type: "application/json" /* Json */,
|
|
2866
|
+
...params
|
|
2867
|
+
}),
|
|
2868
|
+
removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2869
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2870
|
+
method: "DELETE",
|
|
2871
|
+
body: data,
|
|
2872
|
+
secure: true,
|
|
2873
|
+
type: "application/json" /* Json */,
|
|
2874
|
+
...params
|
|
2875
|
+
}),
|
|
2876
|
+
assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2877
|
+
path: `/orgs/${organizationId}/seats/members`,
|
|
2878
|
+
method: "PUT",
|
|
2879
|
+
body: data,
|
|
2880
|
+
secure: true,
|
|
2881
|
+
type: "application/json" /* Json */,
|
|
2882
|
+
...params
|
|
2883
|
+
}),
|
|
2884
|
+
revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2885
|
+
path: `/orgs/${organizationId}/seats/members`,
|
|
2886
|
+
method: "DELETE",
|
|
2887
|
+
body: data,
|
|
2888
|
+
secure: true,
|
|
2889
|
+
type: "application/json" /* Json */,
|
|
2890
|
+
...params
|
|
2891
|
+
}),
|
|
2892
|
+
getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2893
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2894
|
+
method: "GET",
|
|
2895
|
+
secure: true,
|
|
2896
|
+
format: "json",
|
|
2897
|
+
...params
|
|
2898
|
+
}),
|
|
2899
|
+
assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2900
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2901
|
+
method: "PUT",
|
|
2902
|
+
secure: true,
|
|
2903
|
+
...params
|
|
2904
|
+
}),
|
|
2905
|
+
revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2906
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2907
|
+
method: "DELETE",
|
|
2908
|
+
secure: true,
|
|
2909
|
+
...params
|
|
2910
|
+
})
|
|
2911
|
+
};
|
|
2912
|
+
this.customHostnames = {
|
|
2913
|
+
getCustomHostname: (hostname, params = {}) => this.request({
|
|
2914
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2915
|
+
method: "GET",
|
|
2916
|
+
secure: true,
|
|
2917
|
+
format: "json",
|
|
2918
|
+
...params
|
|
2919
|
+
}),
|
|
2920
|
+
setupCustomHostname: (hostname, data, params = {}) => this.request({
|
|
2921
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2922
|
+
method: "POST",
|
|
2923
|
+
body: data,
|
|
2924
|
+
secure: true,
|
|
2925
|
+
type: "application/json" /* Json */,
|
|
2926
|
+
format: "json",
|
|
2927
|
+
...params
|
|
2928
|
+
}),
|
|
2929
|
+
dnsRevalidateCustomHostname: (hostname, params = {}) => this.request({
|
|
2930
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2931
|
+
method: "PATCH",
|
|
2932
|
+
secure: true,
|
|
2933
|
+
...params
|
|
2934
|
+
}),
|
|
2935
|
+
removeCustomHostname: (hostname, params = {}) => this.request({
|
|
2936
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2937
|
+
method: "DELETE",
|
|
2938
|
+
secure: true,
|
|
2939
|
+
...params
|
|
2940
|
+
}),
|
|
2941
|
+
testCustomHostname: (hostname, data, params = {}) => this.request({
|
|
2942
|
+
path: `/custom-hostnames/${hostname}/test`,
|
|
2943
|
+
method: "POST",
|
|
2944
|
+
body: data,
|
|
2945
|
+
secure: true,
|
|
2946
|
+
type: "application/json" /* Json */,
|
|
2947
|
+
...params
|
|
2551
2948
|
})
|
|
2552
2949
|
};
|
|
2553
2950
|
this.internal = {
|
|
@@ -2680,6 +3077,9 @@ export {
|
|
|
2680
3077
|
ContentType,
|
|
2681
3078
|
ContentVisibility,
|
|
2682
3079
|
CustomFieldType,
|
|
3080
|
+
CustomHostnameDnsStatus,
|
|
3081
|
+
CustomHostnameErrorStatus,
|
|
3082
|
+
CustomHostnameSslStatus,
|
|
2683
3083
|
CustomizationBackground,
|
|
2684
3084
|
CustomizationCorners,
|
|
2685
3085
|
CustomizationFont,
|
|
@@ -2708,6 +3108,8 @@ export {
|
|
|
2708
3108
|
RevisionPageLayoutPreset,
|
|
2709
3109
|
RevisionPageType,
|
|
2710
3110
|
RevisionSemanticChangeType,
|
|
3111
|
+
SiteSubscriptionStatus,
|
|
3112
|
+
SiteSubscriptionType,
|
|
2711
3113
|
SiteVisibility,
|
|
2712
3114
|
SpaceBlockReason,
|
|
2713
3115
|
SpaceEditMode,
|