@gitbook/api 0.27.0 → 0.29.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 +399 -57
- package/dist/index.cjs +136 -18
- package/dist/index.js +134 -18
- package/package.json +1 -1
- package/spec/openapi.json +1385 -337
- package/spec/openapi.yaml +820 -162
package/dist/index.cjs
CHANGED
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
ContentType: () => ContentType,
|
|
37
37
|
ContentVisibility: () => ContentVisibility,
|
|
38
38
|
CustomFieldType: () => CustomFieldType,
|
|
39
|
+
CustomizationBackground: () => CustomizationBackground,
|
|
39
40
|
CustomizationCorners: () => CustomizationCorners,
|
|
40
41
|
CustomizationFont: () => CustomizationFont,
|
|
41
42
|
CustomizationHeaderPreset: () => CustomizationHeaderPreset,
|
|
@@ -63,6 +64,7 @@ __export(src_exports, {
|
|
|
63
64
|
RevisionPageLayoutPreset: () => RevisionPageLayoutPreset,
|
|
64
65
|
RevisionPageType: () => RevisionPageType,
|
|
65
66
|
RevisionSemanticChangeType: () => RevisionSemanticChangeType,
|
|
67
|
+
SpaceBlockReason: () => SpaceBlockReason,
|
|
66
68
|
SpaceEditMode: () => SpaceEditMode,
|
|
67
69
|
TeamMemberRole: () => TeamMemberRole
|
|
68
70
|
});
|
|
@@ -70,7 +72,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
70
72
|
|
|
71
73
|
// package.json
|
|
72
74
|
var name = "@gitbook/api";
|
|
73
|
-
var version = "0.
|
|
75
|
+
var version = "0.29.0";
|
|
74
76
|
|
|
75
77
|
// src/client.ts
|
|
76
78
|
var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
|
|
@@ -304,6 +306,14 @@ var PurgeCDNCacheContextType = /* @__PURE__ */ ((PurgeCDNCacheContextType2) => {
|
|
|
304
306
|
PurgeCDNCacheContextType2["Hosts"] = "hosts";
|
|
305
307
|
return PurgeCDNCacheContextType2;
|
|
306
308
|
})(PurgeCDNCacheContextType || {});
|
|
309
|
+
var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
|
|
310
|
+
SpaceBlockReason2["DMCA"] = "DMCA";
|
|
311
|
+
SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
|
|
312
|
+
SpaceBlockReason2["MALWARE"] = "MALWARE";
|
|
313
|
+
SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
|
|
314
|
+
SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
|
|
315
|
+
return SpaceBlockReason2;
|
|
316
|
+
})(SpaceBlockReason || {});
|
|
307
317
|
var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
308
318
|
ContentKitIcon2["Close"] = "close";
|
|
309
319
|
ContentKitIcon2["Edit"] = "edit";
|
|
@@ -375,6 +385,11 @@ var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
|
|
|
375
385
|
CustomizationCorners2["Rounded"] = "rounded";
|
|
376
386
|
return CustomizationCorners2;
|
|
377
387
|
})(CustomizationCorners || {});
|
|
388
|
+
var CustomizationBackground = /* @__PURE__ */ ((CustomizationBackground2) => {
|
|
389
|
+
CustomizationBackground2["Plain"] = "plain";
|
|
390
|
+
CustomizationBackground2["Match"] = "match";
|
|
391
|
+
return CustomizationBackground2;
|
|
392
|
+
})(CustomizationBackground || {});
|
|
378
393
|
var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
|
|
379
394
|
PageFeedbackRating2["Bad"] = "bad";
|
|
380
395
|
PageFeedbackRating2["Ok"] = "ok";
|
|
@@ -630,6 +645,24 @@ var Api = class extends HttpClient {
|
|
|
630
645
|
format: "json",
|
|
631
646
|
...params
|
|
632
647
|
}),
|
|
648
|
+
moveSpace: (spaceId, data, params = {}) => this.request({
|
|
649
|
+
path: `/spaces/${spaceId}/move`,
|
|
650
|
+
method: "POST",
|
|
651
|
+
body: data,
|
|
652
|
+
secure: true,
|
|
653
|
+
type: "application/json" /* Json */,
|
|
654
|
+
format: "json",
|
|
655
|
+
...params
|
|
656
|
+
}),
|
|
657
|
+
transferSpace: (spaceId, data, params = {}) => this.request({
|
|
658
|
+
path: `/spaces/${spaceId}/transfer`,
|
|
659
|
+
method: "POST",
|
|
660
|
+
body: data,
|
|
661
|
+
secure: true,
|
|
662
|
+
type: "application/json" /* Json */,
|
|
663
|
+
format: "json",
|
|
664
|
+
...params
|
|
665
|
+
}),
|
|
633
666
|
searchSpaceContent: (spaceId, query, params = {}) => this.request({
|
|
634
667
|
path: `/spaces/${spaceId}/search`,
|
|
635
668
|
method: "GET",
|
|
@@ -811,6 +844,15 @@ var Api = class extends HttpClient {
|
|
|
811
844
|
format: "json",
|
|
812
845
|
...params
|
|
813
846
|
}),
|
|
847
|
+
updateChangeRequestById: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
848
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}`,
|
|
849
|
+
method: "PATCH",
|
|
850
|
+
body: data,
|
|
851
|
+
secure: true,
|
|
852
|
+
type: "application/json" /* Json */,
|
|
853
|
+
format: "json",
|
|
854
|
+
...params
|
|
855
|
+
}),
|
|
814
856
|
mergeChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
|
|
815
857
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/merge`,
|
|
816
858
|
method: "POST",
|
|
@@ -1235,6 +1277,30 @@ var Api = class extends HttpClient {
|
|
|
1235
1277
|
secure: true,
|
|
1236
1278
|
format: "json",
|
|
1237
1279
|
...params
|
|
1280
|
+
}),
|
|
1281
|
+
createSpaceShareLink: (spaceId, data, params = {}) => this.request({
|
|
1282
|
+
path: `/spaces/${spaceId}/share-links`,
|
|
1283
|
+
method: "POST",
|
|
1284
|
+
body: data,
|
|
1285
|
+
secure: true,
|
|
1286
|
+
type: "application/json" /* Json */,
|
|
1287
|
+
format: "json",
|
|
1288
|
+
...params
|
|
1289
|
+
}),
|
|
1290
|
+
updateSpaceShareLinkById: (spaceId, shareLinkId, data, params = {}) => this.request({
|
|
1291
|
+
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1292
|
+
method: "PATCH",
|
|
1293
|
+
body: data,
|
|
1294
|
+
secure: true,
|
|
1295
|
+
type: "application/json" /* Json */,
|
|
1296
|
+
format: "json",
|
|
1297
|
+
...params
|
|
1298
|
+
}),
|
|
1299
|
+
deleteSpaceShareLinkById: (spaceId, shareLinkId, params = {}) => this.request({
|
|
1300
|
+
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1301
|
+
method: "DELETE",
|
|
1302
|
+
secure: true,
|
|
1303
|
+
...params
|
|
1238
1304
|
})
|
|
1239
1305
|
};
|
|
1240
1306
|
this.collections = {
|
|
@@ -1268,6 +1334,24 @@ var Api = class extends HttpClient {
|
|
|
1268
1334
|
format: "json",
|
|
1269
1335
|
...params
|
|
1270
1336
|
}),
|
|
1337
|
+
moveCollection: (collectionId, data, params = {}) => this.request({
|
|
1338
|
+
path: `/collections/${collectionId}/move`,
|
|
1339
|
+
method: "POST",
|
|
1340
|
+
body: data,
|
|
1341
|
+
secure: true,
|
|
1342
|
+
type: "application/json" /* Json */,
|
|
1343
|
+
format: "json",
|
|
1344
|
+
...params
|
|
1345
|
+
}),
|
|
1346
|
+
transferCollection: (collectionId, data, params = {}) => this.request({
|
|
1347
|
+
path: `/collections/${collectionId}/transfer`,
|
|
1348
|
+
method: "POST",
|
|
1349
|
+
body: data,
|
|
1350
|
+
secure: true,
|
|
1351
|
+
type: "application/json" /* Json */,
|
|
1352
|
+
format: "json",
|
|
1353
|
+
...params
|
|
1354
|
+
}),
|
|
1271
1355
|
listPermissionsAggregateInCollection: (collectionId, query, params = {}) => this.request({
|
|
1272
1356
|
path: `/collections/${collectionId}/permissions/aggregate`,
|
|
1273
1357
|
method: "GET",
|
|
@@ -1307,6 +1391,30 @@ var Api = class extends HttpClient {
|
|
|
1307
1391
|
type: "application/json" /* Json */,
|
|
1308
1392
|
format: "json",
|
|
1309
1393
|
...params
|
|
1394
|
+
}),
|
|
1395
|
+
createCollectionShareLink: (collectionId, data, params = {}) => this.request({
|
|
1396
|
+
path: `/collections/${collectionId}/share-links`,
|
|
1397
|
+
method: "POST",
|
|
1398
|
+
body: data,
|
|
1399
|
+
secure: true,
|
|
1400
|
+
type: "application/json" /* Json */,
|
|
1401
|
+
format: "json",
|
|
1402
|
+
...params
|
|
1403
|
+
}),
|
|
1404
|
+
updateCollectionShareLinkById: (collectionId, shareLinkId, data, params = {}) => this.request({
|
|
1405
|
+
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1406
|
+
method: "PATCH",
|
|
1407
|
+
body: data,
|
|
1408
|
+
secure: true,
|
|
1409
|
+
type: "application/json" /* Json */,
|
|
1410
|
+
format: "json",
|
|
1411
|
+
...params
|
|
1412
|
+
}),
|
|
1413
|
+
deleteCollectionShareLinkById: (collectionId, shareLinkId, params = {}) => this.request({
|
|
1414
|
+
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1415
|
+
method: "DELETE",
|
|
1416
|
+
secure: true,
|
|
1417
|
+
...params
|
|
1310
1418
|
})
|
|
1311
1419
|
};
|
|
1312
1420
|
this.integrations = {
|
|
@@ -1519,6 +1627,15 @@ var Api = class extends HttpClient {
|
|
|
1519
1627
|
secure: true,
|
|
1520
1628
|
...params
|
|
1521
1629
|
}),
|
|
1630
|
+
updateOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
1631
|
+
path: `/orgs/${organizationId}`,
|
|
1632
|
+
method: "PATCH",
|
|
1633
|
+
body: data,
|
|
1634
|
+
secure: true,
|
|
1635
|
+
type: "application/json" /* Json */,
|
|
1636
|
+
format: "json",
|
|
1637
|
+
...params
|
|
1638
|
+
}),
|
|
1522
1639
|
listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
1523
1640
|
path: `/orgs/${organizationId}/members`,
|
|
1524
1641
|
method: "GET",
|
|
@@ -1663,6 +1780,21 @@ var Api = class extends HttpClient {
|
|
|
1663
1780
|
format: "json",
|
|
1664
1781
|
...params
|
|
1665
1782
|
}),
|
|
1783
|
+
updateOrganizationInviteById: (organizationId, inviteId, data, params = {}) => this.request({
|
|
1784
|
+
path: `/orgs/${organizationId}/invites/${inviteId}`,
|
|
1785
|
+
method: "PATCH",
|
|
1786
|
+
body: data,
|
|
1787
|
+
secure: true,
|
|
1788
|
+
type: "application/json" /* Json */,
|
|
1789
|
+
format: "json",
|
|
1790
|
+
...params
|
|
1791
|
+
}),
|
|
1792
|
+
deleteOrganizationInviteById: (organizationId, inviteId, params = {}) => this.request({
|
|
1793
|
+
path: `/orgs/${organizationId}/invites/${inviteId}`,
|
|
1794
|
+
method: "DELETE",
|
|
1795
|
+
secure: true,
|
|
1796
|
+
...params
|
|
1797
|
+
}),
|
|
1666
1798
|
upgradeOrganizationPlan: (organizationId, data, params = {}) => this.request({
|
|
1667
1799
|
path: `/orgs/${organizationId}/billing`,
|
|
1668
1800
|
method: "POST",
|
|
@@ -1899,21 +2031,6 @@ var Api = class extends HttpClient {
|
|
|
1899
2031
|
format: "json",
|
|
1900
2032
|
...params
|
|
1901
2033
|
}),
|
|
1902
|
-
deleteCapture: (organizationId, captureId, params = {}) => this.request({
|
|
1903
|
-
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1904
|
-
method: "DELETE",
|
|
1905
|
-
secure: true,
|
|
1906
|
-
...params
|
|
1907
|
-
}),
|
|
1908
|
-
updateCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1909
|
-
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1910
|
-
method: "PUT",
|
|
1911
|
-
body: data,
|
|
1912
|
-
secure: true,
|
|
1913
|
-
type: "application/json" /* Json */,
|
|
1914
|
-
format: "json",
|
|
1915
|
-
...params
|
|
1916
|
-
}),
|
|
1917
2034
|
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1918
2035
|
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
1919
2036
|
method: "POST",
|
|
@@ -1949,10 +2066,9 @@ var Api = class extends HttpClient {
|
|
|
1949
2066
|
format: "json",
|
|
1950
2067
|
...params
|
|
1951
2068
|
}),
|
|
1952
|
-
getSnippet: (organizationId, snippetId,
|
|
2069
|
+
getSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
1953
2070
|
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
1954
2071
|
method: "GET",
|
|
1955
|
-
query,
|
|
1956
2072
|
secure: true,
|
|
1957
2073
|
format: "json",
|
|
1958
2074
|
...params
|
|
@@ -2168,6 +2284,7 @@ var GitBookAPI = class extends Api {
|
|
|
2168
2284
|
ContentType,
|
|
2169
2285
|
ContentVisibility,
|
|
2170
2286
|
CustomFieldType,
|
|
2287
|
+
CustomizationBackground,
|
|
2171
2288
|
CustomizationCorners,
|
|
2172
2289
|
CustomizationFont,
|
|
2173
2290
|
CustomizationHeaderPreset,
|
|
@@ -2195,6 +2312,7 @@ var GitBookAPI = class extends Api {
|
|
|
2195
2312
|
RevisionPageLayoutPreset,
|
|
2196
2313
|
RevisionPageType,
|
|
2197
2314
|
RevisionSemanticChangeType,
|
|
2315
|
+
SpaceBlockReason,
|
|
2198
2316
|
SpaceEditMode,
|
|
2199
2317
|
TeamMemberRole
|
|
2200
2318
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var name = "@gitbook/api";
|
|
3
|
-
var version = "0.
|
|
3
|
+
var version = "0.29.0";
|
|
4
4
|
|
|
5
5
|
// src/client.ts
|
|
6
6
|
var ContentVisibility = /* @__PURE__ */ ((ContentVisibility2) => {
|
|
@@ -234,6 +234,14 @@ var PurgeCDNCacheContextType = /* @__PURE__ */ ((PurgeCDNCacheContextType2) => {
|
|
|
234
234
|
PurgeCDNCacheContextType2["Hosts"] = "hosts";
|
|
235
235
|
return PurgeCDNCacheContextType2;
|
|
236
236
|
})(PurgeCDNCacheContextType || {});
|
|
237
|
+
var SpaceBlockReason = /* @__PURE__ */ ((SpaceBlockReason2) => {
|
|
238
|
+
SpaceBlockReason2["DMCA"] = "DMCA";
|
|
239
|
+
SpaceBlockReason2["THREAT_TYPE_UNSPECIFIED"] = "THREAT_TYPE_UNSPECIFIED";
|
|
240
|
+
SpaceBlockReason2["MALWARE"] = "MALWARE";
|
|
241
|
+
SpaceBlockReason2["SOCIAL_ENGINEERING"] = "SOCIAL_ENGINEERING";
|
|
242
|
+
SpaceBlockReason2["UNWANTED_SOFTWARE"] = "UNWANTED_SOFTWARE";
|
|
243
|
+
return SpaceBlockReason2;
|
|
244
|
+
})(SpaceBlockReason || {});
|
|
237
245
|
var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
238
246
|
ContentKitIcon2["Close"] = "close";
|
|
239
247
|
ContentKitIcon2["Edit"] = "edit";
|
|
@@ -305,6 +313,11 @@ var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
|
|
|
305
313
|
CustomizationCorners2["Rounded"] = "rounded";
|
|
306
314
|
return CustomizationCorners2;
|
|
307
315
|
})(CustomizationCorners || {});
|
|
316
|
+
var CustomizationBackground = /* @__PURE__ */ ((CustomizationBackground2) => {
|
|
317
|
+
CustomizationBackground2["Plain"] = "plain";
|
|
318
|
+
CustomizationBackground2["Match"] = "match";
|
|
319
|
+
return CustomizationBackground2;
|
|
320
|
+
})(CustomizationBackground || {});
|
|
308
321
|
var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
|
|
309
322
|
PageFeedbackRating2["Bad"] = "bad";
|
|
310
323
|
PageFeedbackRating2["Ok"] = "ok";
|
|
@@ -560,6 +573,24 @@ var Api = class extends HttpClient {
|
|
|
560
573
|
format: "json",
|
|
561
574
|
...params
|
|
562
575
|
}),
|
|
576
|
+
moveSpace: (spaceId, data, params = {}) => this.request({
|
|
577
|
+
path: `/spaces/${spaceId}/move`,
|
|
578
|
+
method: "POST",
|
|
579
|
+
body: data,
|
|
580
|
+
secure: true,
|
|
581
|
+
type: "application/json" /* Json */,
|
|
582
|
+
format: "json",
|
|
583
|
+
...params
|
|
584
|
+
}),
|
|
585
|
+
transferSpace: (spaceId, data, params = {}) => this.request({
|
|
586
|
+
path: `/spaces/${spaceId}/transfer`,
|
|
587
|
+
method: "POST",
|
|
588
|
+
body: data,
|
|
589
|
+
secure: true,
|
|
590
|
+
type: "application/json" /* Json */,
|
|
591
|
+
format: "json",
|
|
592
|
+
...params
|
|
593
|
+
}),
|
|
563
594
|
searchSpaceContent: (spaceId, query, params = {}) => this.request({
|
|
564
595
|
path: `/spaces/${spaceId}/search`,
|
|
565
596
|
method: "GET",
|
|
@@ -741,6 +772,15 @@ var Api = class extends HttpClient {
|
|
|
741
772
|
format: "json",
|
|
742
773
|
...params
|
|
743
774
|
}),
|
|
775
|
+
updateChangeRequestById: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
776
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}`,
|
|
777
|
+
method: "PATCH",
|
|
778
|
+
body: data,
|
|
779
|
+
secure: true,
|
|
780
|
+
type: "application/json" /* Json */,
|
|
781
|
+
format: "json",
|
|
782
|
+
...params
|
|
783
|
+
}),
|
|
744
784
|
mergeChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
|
|
745
785
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/merge`,
|
|
746
786
|
method: "POST",
|
|
@@ -1165,6 +1205,30 @@ var Api = class extends HttpClient {
|
|
|
1165
1205
|
secure: true,
|
|
1166
1206
|
format: "json",
|
|
1167
1207
|
...params
|
|
1208
|
+
}),
|
|
1209
|
+
createSpaceShareLink: (spaceId, data, params = {}) => this.request({
|
|
1210
|
+
path: `/spaces/${spaceId}/share-links`,
|
|
1211
|
+
method: "POST",
|
|
1212
|
+
body: data,
|
|
1213
|
+
secure: true,
|
|
1214
|
+
type: "application/json" /* Json */,
|
|
1215
|
+
format: "json",
|
|
1216
|
+
...params
|
|
1217
|
+
}),
|
|
1218
|
+
updateSpaceShareLinkById: (spaceId, shareLinkId, data, params = {}) => this.request({
|
|
1219
|
+
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1220
|
+
method: "PATCH",
|
|
1221
|
+
body: data,
|
|
1222
|
+
secure: true,
|
|
1223
|
+
type: "application/json" /* Json */,
|
|
1224
|
+
format: "json",
|
|
1225
|
+
...params
|
|
1226
|
+
}),
|
|
1227
|
+
deleteSpaceShareLinkById: (spaceId, shareLinkId, params = {}) => this.request({
|
|
1228
|
+
path: `/spaces/${spaceId}/share-links/${shareLinkId}`,
|
|
1229
|
+
method: "DELETE",
|
|
1230
|
+
secure: true,
|
|
1231
|
+
...params
|
|
1168
1232
|
})
|
|
1169
1233
|
};
|
|
1170
1234
|
this.collections = {
|
|
@@ -1198,6 +1262,24 @@ var Api = class extends HttpClient {
|
|
|
1198
1262
|
format: "json",
|
|
1199
1263
|
...params
|
|
1200
1264
|
}),
|
|
1265
|
+
moveCollection: (collectionId, data, params = {}) => this.request({
|
|
1266
|
+
path: `/collections/${collectionId}/move`,
|
|
1267
|
+
method: "POST",
|
|
1268
|
+
body: data,
|
|
1269
|
+
secure: true,
|
|
1270
|
+
type: "application/json" /* Json */,
|
|
1271
|
+
format: "json",
|
|
1272
|
+
...params
|
|
1273
|
+
}),
|
|
1274
|
+
transferCollection: (collectionId, data, params = {}) => this.request({
|
|
1275
|
+
path: `/collections/${collectionId}/transfer`,
|
|
1276
|
+
method: "POST",
|
|
1277
|
+
body: data,
|
|
1278
|
+
secure: true,
|
|
1279
|
+
type: "application/json" /* Json */,
|
|
1280
|
+
format: "json",
|
|
1281
|
+
...params
|
|
1282
|
+
}),
|
|
1201
1283
|
listPermissionsAggregateInCollection: (collectionId, query, params = {}) => this.request({
|
|
1202
1284
|
path: `/collections/${collectionId}/permissions/aggregate`,
|
|
1203
1285
|
method: "GET",
|
|
@@ -1237,6 +1319,30 @@ var Api = class extends HttpClient {
|
|
|
1237
1319
|
type: "application/json" /* Json */,
|
|
1238
1320
|
format: "json",
|
|
1239
1321
|
...params
|
|
1322
|
+
}),
|
|
1323
|
+
createCollectionShareLink: (collectionId, data, params = {}) => this.request({
|
|
1324
|
+
path: `/collections/${collectionId}/share-links`,
|
|
1325
|
+
method: "POST",
|
|
1326
|
+
body: data,
|
|
1327
|
+
secure: true,
|
|
1328
|
+
type: "application/json" /* Json */,
|
|
1329
|
+
format: "json",
|
|
1330
|
+
...params
|
|
1331
|
+
}),
|
|
1332
|
+
updateCollectionShareLinkById: (collectionId, shareLinkId, data, params = {}) => this.request({
|
|
1333
|
+
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1334
|
+
method: "PATCH",
|
|
1335
|
+
body: data,
|
|
1336
|
+
secure: true,
|
|
1337
|
+
type: "application/json" /* Json */,
|
|
1338
|
+
format: "json",
|
|
1339
|
+
...params
|
|
1340
|
+
}),
|
|
1341
|
+
deleteCollectionShareLinkById: (collectionId, shareLinkId, params = {}) => this.request({
|
|
1342
|
+
path: `/collections/${collectionId}/share-links/${shareLinkId}`,
|
|
1343
|
+
method: "DELETE",
|
|
1344
|
+
secure: true,
|
|
1345
|
+
...params
|
|
1240
1346
|
})
|
|
1241
1347
|
};
|
|
1242
1348
|
this.integrations = {
|
|
@@ -1449,6 +1555,15 @@ var Api = class extends HttpClient {
|
|
|
1449
1555
|
secure: true,
|
|
1450
1556
|
...params
|
|
1451
1557
|
}),
|
|
1558
|
+
updateOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
1559
|
+
path: `/orgs/${organizationId}`,
|
|
1560
|
+
method: "PATCH",
|
|
1561
|
+
body: data,
|
|
1562
|
+
secure: true,
|
|
1563
|
+
type: "application/json" /* Json */,
|
|
1564
|
+
format: "json",
|
|
1565
|
+
...params
|
|
1566
|
+
}),
|
|
1452
1567
|
listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
1453
1568
|
path: `/orgs/${organizationId}/members`,
|
|
1454
1569
|
method: "GET",
|
|
@@ -1593,6 +1708,21 @@ var Api = class extends HttpClient {
|
|
|
1593
1708
|
format: "json",
|
|
1594
1709
|
...params
|
|
1595
1710
|
}),
|
|
1711
|
+
updateOrganizationInviteById: (organizationId, inviteId, data, params = {}) => this.request({
|
|
1712
|
+
path: `/orgs/${organizationId}/invites/${inviteId}`,
|
|
1713
|
+
method: "PATCH",
|
|
1714
|
+
body: data,
|
|
1715
|
+
secure: true,
|
|
1716
|
+
type: "application/json" /* Json */,
|
|
1717
|
+
format: "json",
|
|
1718
|
+
...params
|
|
1719
|
+
}),
|
|
1720
|
+
deleteOrganizationInviteById: (organizationId, inviteId, params = {}) => this.request({
|
|
1721
|
+
path: `/orgs/${organizationId}/invites/${inviteId}`,
|
|
1722
|
+
method: "DELETE",
|
|
1723
|
+
secure: true,
|
|
1724
|
+
...params
|
|
1725
|
+
}),
|
|
1596
1726
|
upgradeOrganizationPlan: (organizationId, data, params = {}) => this.request({
|
|
1597
1727
|
path: `/orgs/${organizationId}/billing`,
|
|
1598
1728
|
method: "POST",
|
|
@@ -1829,21 +1959,6 @@ var Api = class extends HttpClient {
|
|
|
1829
1959
|
format: "json",
|
|
1830
1960
|
...params
|
|
1831
1961
|
}),
|
|
1832
|
-
deleteCapture: (organizationId, captureId, params = {}) => this.request({
|
|
1833
|
-
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1834
|
-
method: "DELETE",
|
|
1835
|
-
secure: true,
|
|
1836
|
-
...params
|
|
1837
|
-
}),
|
|
1838
|
-
updateCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1839
|
-
path: `/orgs/${organizationId}/captures/${captureId}`,
|
|
1840
|
-
method: "PUT",
|
|
1841
|
-
body: data,
|
|
1842
|
-
secure: true,
|
|
1843
|
-
type: "application/json" /* Json */,
|
|
1844
|
-
format: "json",
|
|
1845
|
-
...params
|
|
1846
|
-
}),
|
|
1847
1962
|
addEventsToCapture: (organizationId, captureId, data, params = {}) => this.request({
|
|
1848
1963
|
path: `/orgs/${organizationId}/captures/${captureId}/events`,
|
|
1849
1964
|
method: "POST",
|
|
@@ -1879,10 +1994,9 @@ var Api = class extends HttpClient {
|
|
|
1879
1994
|
format: "json",
|
|
1880
1995
|
...params
|
|
1881
1996
|
}),
|
|
1882
|
-
getSnippet: (organizationId, snippetId,
|
|
1997
|
+
getSnippet: (organizationId, snippetId, params = {}) => this.request({
|
|
1883
1998
|
path: `/orgs/${organizationId}/snippets/${snippetId}`,
|
|
1884
1999
|
method: "GET",
|
|
1885
|
-
query,
|
|
1886
2000
|
secure: true,
|
|
1887
2001
|
format: "json",
|
|
1888
2002
|
...params
|
|
@@ -2097,6 +2211,7 @@ export {
|
|
|
2097
2211
|
ContentType,
|
|
2098
2212
|
ContentVisibility,
|
|
2099
2213
|
CustomFieldType,
|
|
2214
|
+
CustomizationBackground,
|
|
2100
2215
|
CustomizationCorners,
|
|
2101
2216
|
CustomizationFont,
|
|
2102
2217
|
CustomizationHeaderPreset,
|
|
@@ -2124,6 +2239,7 @@ export {
|
|
|
2124
2239
|
RevisionPageLayoutPreset,
|
|
2125
2240
|
RevisionPageType,
|
|
2126
2241
|
RevisionSemanticChangeType,
|
|
2242
|
+
SpaceBlockReason,
|
|
2127
2243
|
SpaceEditMode,
|
|
2128
2244
|
TeamMemberRole
|
|
2129
2245
|
};
|