@gitbook/api 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1148 -190
- package/dist/index.cjs +282 -12
- package/dist/index.js +275 -12
- package/package.json +1 -1
- package/spec/openapi.json +7155 -4453
- package/spec/openapi.yaml +2275 -602
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.36.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -405,6 +405,12 @@ var ContentAuditRelationStatus = /* @__PURE__ */ ((ContentAuditRelationStatus2)
|
|
|
405
405
|
ContentAuditRelationStatus2["Rejected"] = "rejected";
|
|
406
406
|
return ContentAuditRelationStatus2;
|
|
407
407
|
})(ContentAuditRelationStatus || {});
|
|
408
|
+
var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
|
|
409
|
+
ContentReferenceStatus2["Ok"] = "ok";
|
|
410
|
+
ContentReferenceStatus2["Broken"] = "broken";
|
|
411
|
+
ContentReferenceStatus2["InApp"] = "in-app";
|
|
412
|
+
return ContentReferenceStatus2;
|
|
413
|
+
})(ContentReferenceStatus || {});
|
|
408
414
|
var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
409
415
|
ChangeRequestStatus2["Draft"] = "draft";
|
|
410
416
|
ChangeRequestStatus2["Open"] = "open";
|
|
@@ -442,6 +448,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
442
448
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
443
449
|
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
444
450
|
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
451
|
+
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
445
452
|
return IntegrationScope2;
|
|
446
453
|
})(IntegrationScope || {});
|
|
447
454
|
var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
|
|
@@ -619,6 +626,45 @@ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
|
|
|
619
626
|
PageFeedbackRating2["Good"] = "good";
|
|
620
627
|
return PageFeedbackRating2;
|
|
621
628
|
})(PageFeedbackRating || {});
|
|
629
|
+
var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
|
|
630
|
+
SiteVisibility2["Public"] = "public";
|
|
631
|
+
SiteVisibility2["Unlisted"] = "unlisted";
|
|
632
|
+
SiteVisibility2["ShareLink"] = "share-link";
|
|
633
|
+
SiteVisibility2["VisitorAuth"] = "visitor-auth";
|
|
634
|
+
SiteVisibility2["Unpublished"] = "unpublished";
|
|
635
|
+
return SiteVisibility2;
|
|
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 || {});
|
|
622
668
|
var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
623
669
|
ContentType2["Json"] = "application/json";
|
|
624
670
|
ContentType2["FormData"] = "multipart/form-data";
|
|
@@ -983,6 +1029,12 @@ var Api = class extends HttpClient {
|
|
|
983
1029
|
format: "json",
|
|
984
1030
|
...params
|
|
985
1031
|
}),
|
|
1032
|
+
streamRecommendedQuestionsInSpace: (spaceId, params = {}) => this.streamRequest({
|
|
1033
|
+
path: `/spaces/${spaceId}/search/questions/stream`,
|
|
1034
|
+
method: "GET",
|
|
1035
|
+
secure: true,
|
|
1036
|
+
...params
|
|
1037
|
+
}),
|
|
986
1038
|
importGitRepository: (spaceId, data, params = {}) => this.request({
|
|
987
1039
|
path: `/spaces/${spaceId}/git/import`,
|
|
988
1040
|
method: "POST",
|
|
@@ -999,6 +1051,14 @@ var Api = class extends HttpClient {
|
|
|
999
1051
|
type: "application/json" /* Json */,
|
|
1000
1052
|
...params
|
|
1001
1053
|
}),
|
|
1054
|
+
syncGitRepository: (spaceId, data, params = {}) => this.request({
|
|
1055
|
+
path: `/spaces/${spaceId}/git/sync`,
|
|
1056
|
+
method: "POST",
|
|
1057
|
+
body: data,
|
|
1058
|
+
secure: true,
|
|
1059
|
+
type: "application/json" /* Json */,
|
|
1060
|
+
...params
|
|
1061
|
+
}),
|
|
1002
1062
|
getSpaceGitInfo: (spaceId, params = {}) => this.request({
|
|
1003
1063
|
path: `/spaces/${spaceId}/git/info`,
|
|
1004
1064
|
method: "GET",
|
|
@@ -1037,9 +1097,10 @@ var Api = class extends HttpClient {
|
|
|
1037
1097
|
type: "application/json" /* Json */,
|
|
1038
1098
|
...params
|
|
1039
1099
|
}),
|
|
1040
|
-
getCurrentRevision: (spaceId, params = {}) => this.request({
|
|
1100
|
+
getCurrentRevision: (spaceId, query, params = {}) => this.request({
|
|
1041
1101
|
path: `/spaces/${spaceId}/content`,
|
|
1042
1102
|
method: "GET",
|
|
1103
|
+
query,
|
|
1043
1104
|
secure: true,
|
|
1044
1105
|
format: "json",
|
|
1045
1106
|
...params
|
|
@@ -1053,9 +1114,10 @@ var Api = class extends HttpClient {
|
|
|
1053
1114
|
format: "json",
|
|
1054
1115
|
...params
|
|
1055
1116
|
}),
|
|
1056
|
-
listPages: (spaceId, params = {}) => this.request({
|
|
1117
|
+
listPages: (spaceId, query, params = {}) => this.request({
|
|
1057
1118
|
path: `/spaces/${spaceId}/content/pages`,
|
|
1058
1119
|
method: "GET",
|
|
1120
|
+
query,
|
|
1059
1121
|
secure: true,
|
|
1060
1122
|
format: "json",
|
|
1061
1123
|
...params
|
|
@@ -1068,9 +1130,10 @@ var Api = class extends HttpClient {
|
|
|
1068
1130
|
format: "json",
|
|
1069
1131
|
...params
|
|
1070
1132
|
}),
|
|
1071
|
-
getFileById: (spaceId, fileId, params = {}) => this.request({
|
|
1133
|
+
getFileById: (spaceId, fileId, query, params = {}) => this.request({
|
|
1072
1134
|
path: `/spaces/${spaceId}/content/files/${fileId}`,
|
|
1073
1135
|
method: "GET",
|
|
1136
|
+
query,
|
|
1074
1137
|
secure: true,
|
|
1075
1138
|
format: "json",
|
|
1076
1139
|
...params
|
|
@@ -1189,6 +1252,14 @@ var Api = class extends HttpClient {
|
|
|
1189
1252
|
format: "json",
|
|
1190
1253
|
...params
|
|
1191
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
|
+
}),
|
|
1192
1263
|
listCommentsInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1193
1264
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments`,
|
|
1194
1265
|
method: "GET",
|
|
@@ -1277,9 +1348,10 @@ var Api = class extends HttpClient {
|
|
|
1277
1348
|
format: "json",
|
|
1278
1349
|
...params
|
|
1279
1350
|
}),
|
|
1280
|
-
getRevisionOfChangeRequestById: (spaceId, changeRequestId, params = {}) => this.request({
|
|
1351
|
+
getRevisionOfChangeRequestById: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1281
1352
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content`,
|
|
1282
1353
|
method: "GET",
|
|
1354
|
+
query,
|
|
1283
1355
|
secure: true,
|
|
1284
1356
|
format: "json",
|
|
1285
1357
|
...params
|
|
@@ -1293,9 +1365,10 @@ var Api = class extends HttpClient {
|
|
|
1293
1365
|
format: "json",
|
|
1294
1366
|
...params
|
|
1295
1367
|
}),
|
|
1296
|
-
listPagesInChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
|
|
1368
|
+
listPagesInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1297
1369
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
|
|
1298
1370
|
method: "GET",
|
|
1371
|
+
query,
|
|
1299
1372
|
secure: true,
|
|
1300
1373
|
format: "json",
|
|
1301
1374
|
...params
|
|
@@ -1308,9 +1381,10 @@ var Api = class extends HttpClient {
|
|
|
1308
1381
|
format: "json",
|
|
1309
1382
|
...params
|
|
1310
1383
|
}),
|
|
1311
|
-
getFileInChangeRequestById: (spaceId, changeRequestId, fileId, params = {}) => this.request({
|
|
1384
|
+
getFileInChangeRequestById: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
|
|
1312
1385
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}`,
|
|
1313
1386
|
method: "GET",
|
|
1387
|
+
query,
|
|
1314
1388
|
secure: true,
|
|
1315
1389
|
format: "json",
|
|
1316
1390
|
...params
|
|
@@ -1340,9 +1414,19 @@ var Api = class extends HttpClient {
|
|
|
1340
1414
|
format: "json",
|
|
1341
1415
|
...params
|
|
1342
1416
|
}),
|
|
1343
|
-
|
|
1417
|
+
touchContentInChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
1418
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/touched-content`,
|
|
1419
|
+
method: "POST",
|
|
1420
|
+
body: data,
|
|
1421
|
+
secure: true,
|
|
1422
|
+
type: "application/json" /* Json */,
|
|
1423
|
+
format: "json",
|
|
1424
|
+
...params
|
|
1425
|
+
}),
|
|
1426
|
+
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1344
1427
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1345
1428
|
method: "GET",
|
|
1429
|
+
query,
|
|
1346
1430
|
secure: true,
|
|
1347
1431
|
format: "json",
|
|
1348
1432
|
...params
|
|
@@ -1355,9 +1439,10 @@ var Api = class extends HttpClient {
|
|
|
1355
1439
|
format: "json",
|
|
1356
1440
|
...params
|
|
1357
1441
|
}),
|
|
1358
|
-
listPagesInRevisionById: (spaceId, revisionId, params = {}) => this.request({
|
|
1442
|
+
listPagesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1359
1443
|
path: `/spaces/${spaceId}/revisions/${revisionId}/pages`,
|
|
1360
1444
|
method: "GET",
|
|
1445
|
+
query,
|
|
1361
1446
|
secure: true,
|
|
1362
1447
|
format: "json",
|
|
1363
1448
|
...params
|
|
@@ -1370,9 +1455,10 @@ var Api = class extends HttpClient {
|
|
|
1370
1455
|
format: "json",
|
|
1371
1456
|
...params
|
|
1372
1457
|
}),
|
|
1373
|
-
getFileInRevisionById: (spaceId, revisionId, fileId, params = {}) => this.request({
|
|
1458
|
+
getFileInRevisionById: (spaceId, revisionId, fileId, query, params = {}) => this.request({
|
|
1374
1459
|
path: `/spaces/${spaceId}/revisions/${revisionId}/files/${fileId}`,
|
|
1375
1460
|
method: "GET",
|
|
1461
|
+
query,
|
|
1376
1462
|
secure: true,
|
|
1377
1463
|
format: "json",
|
|
1378
1464
|
...params
|
|
@@ -1513,6 +1599,21 @@ var Api = class extends HttpClient {
|
|
|
1513
1599
|
format: "json",
|
|
1514
1600
|
...params
|
|
1515
1601
|
}),
|
|
1602
|
+
getSpacePublishingPreviewById: (spaceId, params = {}) => this.request({
|
|
1603
|
+
path: `/spaces/${spaceId}/publishing/preview`,
|
|
1604
|
+
method: "GET",
|
|
1605
|
+
secure: true,
|
|
1606
|
+
format: "json",
|
|
1607
|
+
...params
|
|
1608
|
+
}),
|
|
1609
|
+
listSpaceIntegrations: (spaceId, query, params = {}) => this.request({
|
|
1610
|
+
path: `/spaces/${spaceId}/integrations`,
|
|
1611
|
+
method: "GET",
|
|
1612
|
+
query,
|
|
1613
|
+
secure: true,
|
|
1614
|
+
format: "json",
|
|
1615
|
+
...params
|
|
1616
|
+
}),
|
|
1516
1617
|
listSpaceIntegrationsBlocks: (spaceId, params = {}) => this.request({
|
|
1517
1618
|
path: `/spaces/${spaceId}/integration-blocks`,
|
|
1518
1619
|
method: "GET",
|
|
@@ -2068,8 +2169,17 @@ var Api = class extends HttpClient {
|
|
|
2068
2169
|
format: "json",
|
|
2069
2170
|
...params
|
|
2070
2171
|
}),
|
|
2172
|
+
createOrganizationInvite: (organizationId, data, params = {}) => this.request({
|
|
2173
|
+
path: `/orgs/${organizationId}/link-invites`,
|
|
2174
|
+
method: "POST",
|
|
2175
|
+
body: data,
|
|
2176
|
+
secure: true,
|
|
2177
|
+
type: "application/json" /* Json */,
|
|
2178
|
+
format: "json",
|
|
2179
|
+
...params
|
|
2180
|
+
}),
|
|
2071
2181
|
updateOrganizationInviteById: (organizationId, inviteId, data, params = {}) => this.request({
|
|
2072
|
-
path: `/orgs/${organizationId}/invites/${inviteId}`,
|
|
2182
|
+
path: `/orgs/${organizationId}/link-invites/${inviteId}`,
|
|
2073
2183
|
method: "PATCH",
|
|
2074
2184
|
body: data,
|
|
2075
2185
|
secure: true,
|
|
@@ -2078,7 +2188,7 @@ var Api = class extends HttpClient {
|
|
|
2078
2188
|
...params
|
|
2079
2189
|
}),
|
|
2080
2190
|
deleteOrganizationInviteById: (organizationId, inviteId, params = {}) => this.request({
|
|
2081
|
-
path: `/orgs/${organizationId}/invites/${inviteId}`,
|
|
2191
|
+
path: `/orgs/${organizationId}/link-invites/${inviteId}`,
|
|
2082
2192
|
method: "DELETE",
|
|
2083
2193
|
secure: true,
|
|
2084
2194
|
...params
|
|
@@ -2393,6 +2503,30 @@ var Api = class extends HttpClient {
|
|
|
2393
2503
|
format: "json",
|
|
2394
2504
|
...params
|
|
2395
2505
|
}),
|
|
2506
|
+
createSyncedBlock: (organizationId, data, params = {}) => this.request({
|
|
2507
|
+
path: `/orgs/${organizationId}/synced-blocks`,
|
|
2508
|
+
method: "POST",
|
|
2509
|
+
body: data,
|
|
2510
|
+
secure: true,
|
|
2511
|
+
type: "application/json" /* Json */,
|
|
2512
|
+
format: "json",
|
|
2513
|
+
...params
|
|
2514
|
+
}),
|
|
2515
|
+
getSyncedBlock: (organizationId, syncedBlockId, params = {}) => this.request({
|
|
2516
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}`,
|
|
2517
|
+
method: "GET",
|
|
2518
|
+
secure: true,
|
|
2519
|
+
format: "json",
|
|
2520
|
+
...params
|
|
2521
|
+
}),
|
|
2522
|
+
updateSyncedBlock: (organizationId, syncedBlockId, data, params = {}) => this.request({
|
|
2523
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}`,
|
|
2524
|
+
method: "PUT",
|
|
2525
|
+
body: data,
|
|
2526
|
+
secure: true,
|
|
2527
|
+
type: "application/json" /* Json */,
|
|
2528
|
+
...params
|
|
2529
|
+
}),
|
|
2396
2530
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2397
2531
|
path: `/orgs/${organizationId}/ask`,
|
|
2398
2532
|
method: "POST",
|
|
@@ -2410,6 +2544,12 @@ var Api = class extends HttpClient {
|
|
|
2410
2544
|
format: "json",
|
|
2411
2545
|
...params
|
|
2412
2546
|
}),
|
|
2547
|
+
streamRecommendedQuestionsInOrganization: (organizationId, params = {}) => this.streamRequest({
|
|
2548
|
+
path: `/orgs/${organizationId}/ask/questions/stream`,
|
|
2549
|
+
method: "GET",
|
|
2550
|
+
secure: true,
|
|
2551
|
+
...params
|
|
2552
|
+
}),
|
|
2413
2553
|
streamAskInOrganization: (organizationId, query, params = {}) => this.streamRequest({
|
|
2414
2554
|
path: `/orgs/${organizationId}/ask/stream`,
|
|
2415
2555
|
method: "GET",
|
|
@@ -2448,6 +2588,122 @@ var Api = class extends HttpClient {
|
|
|
2448
2588
|
secure: true,
|
|
2449
2589
|
format: "json",
|
|
2450
2590
|
...params
|
|
2591
|
+
}),
|
|
2592
|
+
listSites: (organizationId, query, params = {}) => this.request({
|
|
2593
|
+
path: `/orgs/${organizationId}/sites`,
|
|
2594
|
+
method: "GET",
|
|
2595
|
+
query,
|
|
2596
|
+
secure: true,
|
|
2597
|
+
format: "json",
|
|
2598
|
+
...params
|
|
2599
|
+
}),
|
|
2600
|
+
createSite: (organizationId, data, params = {}) => this.request({
|
|
2601
|
+
path: `/orgs/${organizationId}/sites`,
|
|
2602
|
+
method: "POST",
|
|
2603
|
+
body: data,
|
|
2604
|
+
secure: true,
|
|
2605
|
+
type: "application/json" /* Json */,
|
|
2606
|
+
format: "json",
|
|
2607
|
+
...params
|
|
2608
|
+
}),
|
|
2609
|
+
getSiteById: (organizationId, siteId, params = {}) => this.request({
|
|
2610
|
+
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2611
|
+
method: "GET",
|
|
2612
|
+
secure: true,
|
|
2613
|
+
format: "json",
|
|
2614
|
+
...params
|
|
2615
|
+
}),
|
|
2616
|
+
updateSiteById: (organizationId, siteId, data, params = {}) => this.request({
|
|
2617
|
+
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2618
|
+
method: "PATCH",
|
|
2619
|
+
body: data,
|
|
2620
|
+
secure: true,
|
|
2621
|
+
type: "application/json" /* Json */,
|
|
2622
|
+
format: "json",
|
|
2623
|
+
...params
|
|
2624
|
+
}),
|
|
2625
|
+
deleteSiteById: (organizationId, siteId, params = {}) => this.request({
|
|
2626
|
+
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2627
|
+
method: "DELETE",
|
|
2628
|
+
secure: true,
|
|
2629
|
+
...params
|
|
2630
|
+
}),
|
|
2631
|
+
getSitePublishingAuthSettings: (organizationId, siteId, params = {}) => this.request({
|
|
2632
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2633
|
+
method: "GET",
|
|
2634
|
+
secure: true,
|
|
2635
|
+
format: "json",
|
|
2636
|
+
...params
|
|
2637
|
+
}),
|
|
2638
|
+
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2639
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2640
|
+
method: "POST",
|
|
2641
|
+
body: data,
|
|
2642
|
+
secure: true,
|
|
2643
|
+
type: "application/json" /* Json */,
|
|
2644
|
+
format: "json",
|
|
2645
|
+
...params
|
|
2646
|
+
}),
|
|
2647
|
+
listSiteSpaces: (organizationId, siteId, query, params = {}) => this.request({
|
|
2648
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2649
|
+
method: "GET",
|
|
2650
|
+
query,
|
|
2651
|
+
secure: true,
|
|
2652
|
+
format: "json",
|
|
2653
|
+
...params
|
|
2654
|
+
}),
|
|
2655
|
+
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2656
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2657
|
+
method: "PATCH",
|
|
2658
|
+
body: data,
|
|
2659
|
+
secure: true,
|
|
2660
|
+
type: "application/json" /* Json */,
|
|
2661
|
+
format: "json",
|
|
2662
|
+
...params
|
|
2663
|
+
}),
|
|
2664
|
+
deleteSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2665
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
|
|
2666
|
+
method: "DELETE",
|
|
2667
|
+
secure: true,
|
|
2668
|
+
...params
|
|
2669
|
+
})
|
|
2670
|
+
};
|
|
2671
|
+
this.customHostnames = {
|
|
2672
|
+
getCustomHostname: (hostname, params = {}) => this.request({
|
|
2673
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2674
|
+
method: "GET",
|
|
2675
|
+
secure: true,
|
|
2676
|
+
format: "json",
|
|
2677
|
+
...params
|
|
2678
|
+
}),
|
|
2679
|
+
setupCustomHostname: (hostname, data, params = {}) => this.request({
|
|
2680
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2681
|
+
method: "POST",
|
|
2682
|
+
body: data,
|
|
2683
|
+
secure: true,
|
|
2684
|
+
type: "application/json" /* Json */,
|
|
2685
|
+
format: "json",
|
|
2686
|
+
...params
|
|
2687
|
+
}),
|
|
2688
|
+
dnsRevalidateCustomHostname: (hostname, params = {}) => this.request({
|
|
2689
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2690
|
+
method: "PATCH",
|
|
2691
|
+
secure: true,
|
|
2692
|
+
...params
|
|
2693
|
+
}),
|
|
2694
|
+
removeCustomHostname: (hostname, params = {}) => this.request({
|
|
2695
|
+
path: `/custom-hostnames/${hostname}`,
|
|
2696
|
+
method: "DELETE",
|
|
2697
|
+
secure: true,
|
|
2698
|
+
...params
|
|
2699
|
+
}),
|
|
2700
|
+
testCustomHostname: (hostname, data, params = {}) => this.request({
|
|
2701
|
+
path: `/custom-hostnames/${hostname}/test`,
|
|
2702
|
+
method: "POST",
|
|
2703
|
+
body: data,
|
|
2704
|
+
secure: true,
|
|
2705
|
+
type: "application/json" /* Json */,
|
|
2706
|
+
...params
|
|
2451
2707
|
})
|
|
2452
2708
|
};
|
|
2453
2709
|
this.internal = {
|
|
@@ -2576,9 +2832,13 @@ export {
|
|
|
2576
2832
|
ContentAuditRelationStatus,
|
|
2577
2833
|
ContentAuditRelationType,
|
|
2578
2834
|
ContentKitIcon,
|
|
2835
|
+
ContentReferenceStatus,
|
|
2579
2836
|
ContentType,
|
|
2580
2837
|
ContentVisibility,
|
|
2581
2838
|
CustomFieldType,
|
|
2839
|
+
CustomHostnameDnsStatus,
|
|
2840
|
+
CustomHostnameErrorStatus,
|
|
2841
|
+
CustomHostnameSslStatus,
|
|
2582
2842
|
CustomizationBackground,
|
|
2583
2843
|
CustomizationCorners,
|
|
2584
2844
|
CustomizationFont,
|
|
@@ -2607,6 +2867,9 @@ export {
|
|
|
2607
2867
|
RevisionPageLayoutPreset,
|
|
2608
2868
|
RevisionPageType,
|
|
2609
2869
|
RevisionSemanticChangeType,
|
|
2870
|
+
SiteSubscriptionStatus,
|
|
2871
|
+
SiteSubscriptionType,
|
|
2872
|
+
SiteVisibility,
|
|
2610
2873
|
SpaceBlockReason,
|
|
2611
2874
|
SpaceEditMode,
|
|
2612
2875
|
TeamMemberRole
|