@gitbook/api 0.35.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/index.cjs CHANGED
@@ -196,6 +196,9 @@ __export(src_exports, {
196
196
  ContentType: () => ContentType,
197
197
  ContentVisibility: () => ContentVisibility,
198
198
  CustomFieldType: () => CustomFieldType,
199
+ CustomHostnameDnsStatus: () => CustomHostnameDnsStatus,
200
+ CustomHostnameErrorStatus: () => CustomHostnameErrorStatus,
201
+ CustomHostnameSslStatus: () => CustomHostnameSslStatus,
199
202
  CustomizationBackground: () => CustomizationBackground,
200
203
  CustomizationCorners: () => CustomizationCorners,
201
204
  CustomizationFont: () => CustomizationFont,
@@ -224,6 +227,8 @@ __export(src_exports, {
224
227
  RevisionPageLayoutPreset: () => RevisionPageLayoutPreset,
225
228
  RevisionPageType: () => RevisionPageType,
226
229
  RevisionSemanticChangeType: () => RevisionSemanticChangeType,
230
+ SiteSubscriptionStatus: () => SiteSubscriptionStatus,
231
+ SiteSubscriptionType: () => SiteSubscriptionType,
227
232
  SiteVisibility: () => SiteVisibility,
228
233
  SpaceBlockReason: () => SpaceBlockReason,
229
234
  SpaceEditMode: () => SpaceEditMode,
@@ -233,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
233
238
 
234
239
  // package.json
235
240
  var name = "@gitbook/api";
236
- var version = "0.35.0";
241
+ var version = "0.36.0";
237
242
 
238
243
  // src/client.ts
239
244
  var import_event_iterator = __toESM(require_node(), 1);
@@ -467,6 +472,7 @@ var ContentAuditRelationStatus = /* @__PURE__ */ ((ContentAuditRelationStatus2)
467
472
  return ContentAuditRelationStatus2;
468
473
  })(ContentAuditRelationStatus || {});
469
474
  var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
475
+ ContentReferenceStatus2["Ok"] = "ok";
470
476
  ContentReferenceStatus2["Broken"] = "broken";
471
477
  ContentReferenceStatus2["InApp"] = "in-app";
472
478
  return ContentReferenceStatus2;
@@ -694,6 +700,37 @@ var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
694
700
  SiteVisibility2["Unpublished"] = "unpublished";
695
701
  return SiteVisibility2;
696
702
  })(SiteVisibility || {});
703
+ var SiteSubscriptionStatus = /* @__PURE__ */ ((SiteSubscriptionStatus2) => {
704
+ SiteSubscriptionStatus2["Active"] = "active";
705
+ SiteSubscriptionStatus2["Inactive"] = "inactive";
706
+ return SiteSubscriptionStatus2;
707
+ })(SiteSubscriptionStatus || {});
708
+ var SiteSubscriptionType = /* @__PURE__ */ ((SiteSubscriptionType2) => {
709
+ SiteSubscriptionType2["Basic"] = "basic";
710
+ SiteSubscriptionType2["Premium"] = "premium";
711
+ return SiteSubscriptionType2;
712
+ })(SiteSubscriptionType || {});
713
+ var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
714
+ CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
715
+ CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
716
+ CustomHostnameDnsStatus2["DnsNoCname"] = "dns_no_cname";
717
+ CustomHostnameDnsStatus2["DnsCloudflareProxied"] = "dns_cloudflare_proxied";
718
+ CustomHostnameDnsStatus2["DnsWrongCaa"] = "dns_wrong_caa";
719
+ return CustomHostnameDnsStatus2;
720
+ })(CustomHostnameDnsStatus || {});
721
+ var CustomHostnameSslStatus = /* @__PURE__ */ ((CustomHostnameSslStatus2) => {
722
+ CustomHostnameSslStatus2["Live"] = "live";
723
+ CustomHostnameSslStatus2["SslUnknown"] = "ssl_unknown";
724
+ CustomHostnameSslStatus2["SslPending"] = "ssl_pending";
725
+ CustomHostnameSslStatus2["SslFailed"] = "ssl_failed";
726
+ CustomHostnameSslStatus2["SslRetryExpired"] = "ssl_retry_expired";
727
+ return CustomHostnameSslStatus2;
728
+ })(CustomHostnameSslStatus || {});
729
+ var CustomHostnameErrorStatus = /* @__PURE__ */ ((CustomHostnameErrorStatus2) => {
730
+ CustomHostnameErrorStatus2["InvalidDomain"] = "invalid_domain";
731
+ CustomHostnameErrorStatus2["InternalError"] = "internal_error";
732
+ return CustomHostnameErrorStatus2;
733
+ })(CustomHostnameErrorStatus || {});
697
734
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
698
735
  ContentType2["Json"] = "application/json";
699
736
  ContentType2["FormData"] = "multipart/form-data";
@@ -1126,9 +1163,10 @@ var Api = class extends HttpClient {
1126
1163
  type: "application/json" /* Json */,
1127
1164
  ...params
1128
1165
  }),
1129
- getCurrentRevision: (spaceId, params = {}) => this.request({
1166
+ getCurrentRevision: (spaceId, query, params = {}) => this.request({
1130
1167
  path: `/spaces/${spaceId}/content`,
1131
1168
  method: "GET",
1169
+ query,
1132
1170
  secure: true,
1133
1171
  format: "json",
1134
1172
  ...params
@@ -1142,9 +1180,10 @@ var Api = class extends HttpClient {
1142
1180
  format: "json",
1143
1181
  ...params
1144
1182
  }),
1145
- listPages: (spaceId, params = {}) => this.request({
1183
+ listPages: (spaceId, query, params = {}) => this.request({
1146
1184
  path: `/spaces/${spaceId}/content/pages`,
1147
1185
  method: "GET",
1186
+ query,
1148
1187
  secure: true,
1149
1188
  format: "json",
1150
1189
  ...params
@@ -1157,9 +1196,10 @@ var Api = class extends HttpClient {
1157
1196
  format: "json",
1158
1197
  ...params
1159
1198
  }),
1160
- getFileById: (spaceId, fileId, params = {}) => this.request({
1199
+ getFileById: (spaceId, fileId, query, params = {}) => this.request({
1161
1200
  path: `/spaces/${spaceId}/content/files/${fileId}`,
1162
1201
  method: "GET",
1202
+ query,
1163
1203
  secure: true,
1164
1204
  format: "json",
1165
1205
  ...params
@@ -1278,6 +1318,14 @@ var Api = class extends HttpClient {
1278
1318
  format: "json",
1279
1319
  ...params
1280
1320
  }),
1321
+ listChangeRequestLinks: (spaceId, changeRequestId, query, params = {}) => this.request({
1322
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/links`,
1323
+ method: "GET",
1324
+ query,
1325
+ secure: true,
1326
+ format: "json",
1327
+ ...params
1328
+ }),
1281
1329
  listCommentsInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
1282
1330
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/comments`,
1283
1331
  method: "GET",
@@ -1366,9 +1414,10 @@ var Api = class extends HttpClient {
1366
1414
  format: "json",
1367
1415
  ...params
1368
1416
  }),
1369
- getRevisionOfChangeRequestById: (spaceId, changeRequestId, params = {}) => this.request({
1417
+ getRevisionOfChangeRequestById: (spaceId, changeRequestId, query, params = {}) => this.request({
1370
1418
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content`,
1371
1419
  method: "GET",
1420
+ query,
1372
1421
  secure: true,
1373
1422
  format: "json",
1374
1423
  ...params
@@ -1382,9 +1431,10 @@ var Api = class extends HttpClient {
1382
1431
  format: "json",
1383
1432
  ...params
1384
1433
  }),
1385
- listPagesInChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
1434
+ listPagesInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
1386
1435
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
1387
1436
  method: "GET",
1437
+ query,
1388
1438
  secure: true,
1389
1439
  format: "json",
1390
1440
  ...params
@@ -1397,9 +1447,10 @@ var Api = class extends HttpClient {
1397
1447
  format: "json",
1398
1448
  ...params
1399
1449
  }),
1400
- getFileInChangeRequestById: (spaceId, changeRequestId, fileId, params = {}) => this.request({
1450
+ getFileInChangeRequestById: (spaceId, changeRequestId, fileId, query, params = {}) => this.request({
1401
1451
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}`,
1402
1452
  method: "GET",
1453
+ query,
1403
1454
  secure: true,
1404
1455
  format: "json",
1405
1456
  ...params
@@ -1438,9 +1489,10 @@ var Api = class extends HttpClient {
1438
1489
  format: "json",
1439
1490
  ...params
1440
1491
  }),
1441
- getRevisionById: (spaceId, revisionId, params = {}) => this.request({
1492
+ getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1442
1493
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1443
1494
  method: "GET",
1495
+ query,
1444
1496
  secure: true,
1445
1497
  format: "json",
1446
1498
  ...params
@@ -1453,9 +1505,10 @@ var Api = class extends HttpClient {
1453
1505
  format: "json",
1454
1506
  ...params
1455
1507
  }),
1456
- listPagesInRevisionById: (spaceId, revisionId, params = {}) => this.request({
1508
+ listPagesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1457
1509
  path: `/spaces/${spaceId}/revisions/${revisionId}/pages`,
1458
1510
  method: "GET",
1511
+ query,
1459
1512
  secure: true,
1460
1513
  format: "json",
1461
1514
  ...params
@@ -1468,9 +1521,10 @@ var Api = class extends HttpClient {
1468
1521
  format: "json",
1469
1522
  ...params
1470
1523
  }),
1471
- getFileInRevisionById: (spaceId, revisionId, fileId, params = {}) => this.request({
1524
+ getFileInRevisionById: (spaceId, revisionId, fileId, query, params = {}) => this.request({
1472
1525
  path: `/spaces/${spaceId}/revisions/${revisionId}/files/${fileId}`,
1473
1526
  method: "GET",
1527
+ query,
1474
1528
  secure: true,
1475
1529
  format: "json",
1476
1530
  ...params
@@ -2531,6 +2585,14 @@ var Api = class extends HttpClient {
2531
2585
  format: "json",
2532
2586
  ...params
2533
2587
  }),
2588
+ updateSyncedBlock: (organizationId, syncedBlockId, data, params = {}) => this.request({
2589
+ path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}`,
2590
+ method: "PUT",
2591
+ body: data,
2592
+ secure: true,
2593
+ type: "application/json" /* Json */,
2594
+ ...params
2595
+ }),
2534
2596
  askInOrganization: (organizationId, data, query, params = {}) => this.request({
2535
2597
  path: `/orgs/${organizationId}/ask`,
2536
2598
  method: "POST",
@@ -2609,6 +2671,105 @@ var Api = class extends HttpClient {
2609
2671
  type: "application/json" /* Json */,
2610
2672
  format: "json",
2611
2673
  ...params
2674
+ }),
2675
+ getSiteById: (organizationId, siteId, params = {}) => this.request({
2676
+ path: `/orgs/${organizationId}/sites/${siteId}`,
2677
+ method: "GET",
2678
+ secure: true,
2679
+ format: "json",
2680
+ ...params
2681
+ }),
2682
+ updateSiteById: (organizationId, siteId, data, params = {}) => this.request({
2683
+ path: `/orgs/${organizationId}/sites/${siteId}`,
2684
+ method: "PATCH",
2685
+ body: data,
2686
+ secure: true,
2687
+ type: "application/json" /* Json */,
2688
+ format: "json",
2689
+ ...params
2690
+ }),
2691
+ deleteSiteById: (organizationId, siteId, params = {}) => this.request({
2692
+ path: `/orgs/${organizationId}/sites/${siteId}`,
2693
+ method: "DELETE",
2694
+ secure: true,
2695
+ ...params
2696
+ }),
2697
+ getSitePublishingAuthSettings: (organizationId, siteId, params = {}) => this.request({
2698
+ path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
2699
+ method: "GET",
2700
+ secure: true,
2701
+ format: "json",
2702
+ ...params
2703
+ }),
2704
+ addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
2705
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
2706
+ method: "POST",
2707
+ body: data,
2708
+ secure: true,
2709
+ type: "application/json" /* Json */,
2710
+ format: "json",
2711
+ ...params
2712
+ }),
2713
+ listSiteSpaces: (organizationId, siteId, query, params = {}) => this.request({
2714
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
2715
+ method: "GET",
2716
+ query,
2717
+ secure: true,
2718
+ format: "json",
2719
+ ...params
2720
+ }),
2721
+ updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2722
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
2723
+ method: "PATCH",
2724
+ body: data,
2725
+ secure: true,
2726
+ type: "application/json" /* Json */,
2727
+ format: "json",
2728
+ ...params
2729
+ }),
2730
+ deleteSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
2731
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}`,
2732
+ method: "DELETE",
2733
+ secure: true,
2734
+ ...params
2735
+ })
2736
+ };
2737
+ this.customHostnames = {
2738
+ getCustomHostname: (hostname, params = {}) => this.request({
2739
+ path: `/custom-hostnames/${hostname}`,
2740
+ method: "GET",
2741
+ secure: true,
2742
+ format: "json",
2743
+ ...params
2744
+ }),
2745
+ setupCustomHostname: (hostname, data, params = {}) => this.request({
2746
+ path: `/custom-hostnames/${hostname}`,
2747
+ method: "POST",
2748
+ body: data,
2749
+ secure: true,
2750
+ type: "application/json" /* Json */,
2751
+ format: "json",
2752
+ ...params
2753
+ }),
2754
+ dnsRevalidateCustomHostname: (hostname, params = {}) => this.request({
2755
+ path: `/custom-hostnames/${hostname}`,
2756
+ method: "PATCH",
2757
+ secure: true,
2758
+ ...params
2759
+ }),
2760
+ removeCustomHostname: (hostname, params = {}) => this.request({
2761
+ path: `/custom-hostnames/${hostname}`,
2762
+ method: "DELETE",
2763
+ secure: true,
2764
+ ...params
2765
+ }),
2766
+ testCustomHostname: (hostname, data, params = {}) => this.request({
2767
+ path: `/custom-hostnames/${hostname}/test`,
2768
+ method: "POST",
2769
+ body: data,
2770
+ secure: true,
2771
+ type: "application/json" /* Json */,
2772
+ ...params
2612
2773
  })
2613
2774
  };
2614
2775
  this.internal = {
@@ -2742,6 +2903,9 @@ var GitBookAPI = class extends Api {
2742
2903
  ContentType,
2743
2904
  ContentVisibility,
2744
2905
  CustomFieldType,
2906
+ CustomHostnameDnsStatus,
2907
+ CustomHostnameErrorStatus,
2908
+ CustomHostnameSslStatus,
2745
2909
  CustomizationBackground,
2746
2910
  CustomizationCorners,
2747
2911
  CustomizationFont,
@@ -2770,6 +2934,8 @@ var GitBookAPI = class extends Api {
2770
2934
  RevisionPageLayoutPreset,
2771
2935
  RevisionPageType,
2772
2936
  RevisionSemanticChangeType,
2937
+ SiteSubscriptionStatus,
2938
+ SiteSubscriptionType,
2773
2939
  SiteVisibility,
2774
2940
  SpaceBlockReason,
2775
2941
  SpaceEditMode,
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.35.0";
175
+ var version = "0.36.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,10 @@ var Api = class extends HttpClient {
1377
1423
  format: "json",
1378
1424
  ...params
1379
1425
  }),
1380
- getRevisionById: (spaceId, revisionId, params = {}) => this.request({
1426
+ getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1381
1427
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1382
1428
  method: "GET",
1429
+ query,
1383
1430
  secure: true,
1384
1431
  format: "json",
1385
1432
  ...params
@@ -1392,9 +1439,10 @@ var Api = class extends HttpClient {
1392
1439
  format: "json",
1393
1440
  ...params
1394
1441
  }),
1395
- listPagesInRevisionById: (spaceId, revisionId, params = {}) => this.request({
1442
+ listPagesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1396
1443
  path: `/spaces/${spaceId}/revisions/${revisionId}/pages`,
1397
1444
  method: "GET",
1445
+ query,
1398
1446
  secure: true,
1399
1447
  format: "json",
1400
1448
  ...params
@@ -1407,9 +1455,10 @@ var Api = class extends HttpClient {
1407
1455
  format: "json",
1408
1456
  ...params
1409
1457
  }),
1410
- getFileInRevisionById: (spaceId, revisionId, fileId, params = {}) => this.request({
1458
+ getFileInRevisionById: (spaceId, revisionId, fileId, query, params = {}) => this.request({
1411
1459
  path: `/spaces/${spaceId}/revisions/${revisionId}/files/${fileId}`,
1412
1460
  method: "GET",
1461
+ query,
1413
1462
  secure: true,
1414
1463
  format: "json",
1415
1464
  ...params
@@ -2470,6 +2519,14 @@ var Api = class extends HttpClient {
2470
2519
  format: "json",
2471
2520
  ...params
2472
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
+ }),
2473
2530
  askInOrganization: (organizationId, data, query, params = {}) => this.request({
2474
2531
  path: `/orgs/${organizationId}/ask`,
2475
2532
  method: "POST",
@@ -2548,6 +2605,105 @@ var Api = class extends HttpClient {
2548
2605
  type: "application/json" /* Json */,
2549
2606
  format: "json",
2550
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
2551
2707
  })
2552
2708
  };
2553
2709
  this.internal = {
@@ -2680,6 +2836,9 @@ export {
2680
2836
  ContentType,
2681
2837
  ContentVisibility,
2682
2838
  CustomFieldType,
2839
+ CustomHostnameDnsStatus,
2840
+ CustomHostnameErrorStatus,
2841
+ CustomHostnameSslStatus,
2683
2842
  CustomizationBackground,
2684
2843
  CustomizationCorners,
2685
2844
  CustomizationFont,
@@ -2708,6 +2867,8 @@ export {
2708
2867
  RevisionPageLayoutPreset,
2709
2868
  RevisionPageType,
2710
2869
  RevisionSemanticChangeType,
2870
+ SiteSubscriptionStatus,
2871
+ SiteSubscriptionType,
2711
2872
  SiteVisibility,
2712
2873
  SpaceBlockReason,
2713
2874
  SpaceEditMode,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.35.0",
7
+ "version": "0.36.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",