@gitbook/api 0.36.0 → 0.38.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 +1078 -130
- package/dist/index.cjs +255 -1
- package/dist/index.js +255 -1
- package/package.json +1 -1
- package/spec/openapi.json +7749 -5181
- package/spec/openapi.yaml +1852 -334
package/dist/index.cjs
CHANGED
|
@@ -238,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
238
238
|
|
|
239
239
|
// package.json
|
|
240
240
|
var name = "@gitbook/api";
|
|
241
|
-
var version = "0.
|
|
241
|
+
var version = "0.38.0";
|
|
242
242
|
|
|
243
243
|
// src/client.ts
|
|
244
244
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -555,6 +555,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
|
555
555
|
return BillingInterval2;
|
|
556
556
|
})(BillingInterval || {});
|
|
557
557
|
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
558
|
+
BillingProduct2["Free2024"] = "free_2024";
|
|
559
|
+
BillingProduct2["Plus2024"] = "plus_2024";
|
|
560
|
+
BillingProduct2["Pro2024"] = "pro_2024";
|
|
561
|
+
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
558
562
|
BillingProduct2["Free"] = "free";
|
|
559
563
|
BillingProduct2["Plus"] = "plus";
|
|
560
564
|
BillingProduct2["Pro"] = "pro";
|
|
@@ -1489,6 +1493,14 @@ var Api = class extends HttpClient {
|
|
|
1489
1493
|
format: "json",
|
|
1490
1494
|
...params
|
|
1491
1495
|
}),
|
|
1496
|
+
getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1497
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
|
|
1498
|
+
method: "GET",
|
|
1499
|
+
query,
|
|
1500
|
+
secure: true,
|
|
1501
|
+
format: "json",
|
|
1502
|
+
...params
|
|
1503
|
+
}),
|
|
1492
1504
|
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1493
1505
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1494
1506
|
method: "GET",
|
|
@@ -1756,6 +1768,14 @@ var Api = class extends HttpClient {
|
|
|
1756
1768
|
method: "DELETE",
|
|
1757
1769
|
secure: true,
|
|
1758
1770
|
...params
|
|
1771
|
+
}),
|
|
1772
|
+
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
1773
|
+
path: `/spaces/${spaceId}/links`,
|
|
1774
|
+
method: "GET",
|
|
1775
|
+
query,
|
|
1776
|
+
secure: true,
|
|
1777
|
+
format: "json",
|
|
1778
|
+
...params
|
|
1759
1779
|
})
|
|
1760
1780
|
};
|
|
1761
1781
|
this.collections = {
|
|
@@ -2049,6 +2069,45 @@ var Api = class extends HttpClient {
|
|
|
2049
2069
|
method: "DELETE",
|
|
2050
2070
|
secure: true,
|
|
2051
2071
|
...params
|
|
2072
|
+
}),
|
|
2073
|
+
listIntegrationInstallationSites: (integrationName, installationId, query, params = {}) => this.request({
|
|
2074
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2075
|
+
method: "GET",
|
|
2076
|
+
query,
|
|
2077
|
+
secure: true,
|
|
2078
|
+
format: "json",
|
|
2079
|
+
...params
|
|
2080
|
+
}),
|
|
2081
|
+
installIntegrationOnSite: (integrationName, installationId, data, params = {}) => this.request({
|
|
2082
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2083
|
+
method: "POST",
|
|
2084
|
+
body: data,
|
|
2085
|
+
secure: true,
|
|
2086
|
+
type: "application/json" /* Json */,
|
|
2087
|
+
format: "json",
|
|
2088
|
+
...params
|
|
2089
|
+
}),
|
|
2090
|
+
getIntegrationSiteInstallation: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2091
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2092
|
+
method: "GET",
|
|
2093
|
+
secure: true,
|
|
2094
|
+
format: "json",
|
|
2095
|
+
...params
|
|
2096
|
+
}),
|
|
2097
|
+
updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, params = {}) => this.request({
|
|
2098
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2099
|
+
method: "PATCH",
|
|
2100
|
+
body: data,
|
|
2101
|
+
secure: true,
|
|
2102
|
+
type: "application/json" /* Json */,
|
|
2103
|
+
format: "json",
|
|
2104
|
+
...params
|
|
2105
|
+
}),
|
|
2106
|
+
uninstallIntegrationFromSite: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2107
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2108
|
+
method: "DELETE",
|
|
2109
|
+
secure: true,
|
|
2110
|
+
...params
|
|
2052
2111
|
})
|
|
2053
2112
|
};
|
|
2054
2113
|
this.orgs = {
|
|
@@ -2418,6 +2477,62 @@ var Api = class extends HttpClient {
|
|
|
2418
2477
|
type: "application/json" /* Json */,
|
|
2419
2478
|
...params
|
|
2420
2479
|
}),
|
|
2480
|
+
getUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2481
|
+
path: `/orgs/${organizationId}/usage`,
|
|
2482
|
+
method: "GET",
|
|
2483
|
+
secure: true,
|
|
2484
|
+
format: "json",
|
|
2485
|
+
...params
|
|
2486
|
+
}),
|
|
2487
|
+
getCollectionsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2488
|
+
path: `/orgs/${organizationId}/usage/collections`,
|
|
2489
|
+
method: "GET",
|
|
2490
|
+
secure: true,
|
|
2491
|
+
format: "json",
|
|
2492
|
+
...params
|
|
2493
|
+
}),
|
|
2494
|
+
getSpacesUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2495
|
+
path: `/orgs/${organizationId}/usage/spaces`,
|
|
2496
|
+
method: "GET",
|
|
2497
|
+
secure: true,
|
|
2498
|
+
format: "json",
|
|
2499
|
+
...params
|
|
2500
|
+
}),
|
|
2501
|
+
getSitesUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2502
|
+
path: `/orgs/${organizationId}/usage/sites`,
|
|
2503
|
+
method: "GET",
|
|
2504
|
+
secure: true,
|
|
2505
|
+
format: "json",
|
|
2506
|
+
...params
|
|
2507
|
+
}),
|
|
2508
|
+
getTeamsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2509
|
+
path: `/orgs/${organizationId}/usage/teams`,
|
|
2510
|
+
method: "GET",
|
|
2511
|
+
secure: true,
|
|
2512
|
+
format: "json",
|
|
2513
|
+
...params
|
|
2514
|
+
}),
|
|
2515
|
+
getMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2516
|
+
path: `/orgs/${organizationId}/usage/members`,
|
|
2517
|
+
method: "GET",
|
|
2518
|
+
secure: true,
|
|
2519
|
+
format: "json",
|
|
2520
|
+
...params
|
|
2521
|
+
}),
|
|
2522
|
+
getTeamMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2523
|
+
path: `/orgs/${organizationId}/usage/team-members`,
|
|
2524
|
+
method: "GET",
|
|
2525
|
+
secure: true,
|
|
2526
|
+
format: "json",
|
|
2527
|
+
...params
|
|
2528
|
+
}),
|
|
2529
|
+
getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2530
|
+
path: `/orgs/${organizationId}/usage/seats`,
|
|
2531
|
+
method: "GET",
|
|
2532
|
+
secure: true,
|
|
2533
|
+
format: "json",
|
|
2534
|
+
...params
|
|
2535
|
+
}),
|
|
2421
2536
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
2422
2537
|
path: `/orgs/${organizationId}/schemas`,
|
|
2423
2538
|
method: "GET",
|
|
@@ -2593,6 +2708,14 @@ var Api = class extends HttpClient {
|
|
|
2593
2708
|
type: "application/json" /* Json */,
|
|
2594
2709
|
...params
|
|
2595
2710
|
}),
|
|
2711
|
+
getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2712
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
|
|
2713
|
+
method: "GET",
|
|
2714
|
+
query,
|
|
2715
|
+
secure: true,
|
|
2716
|
+
format: "json",
|
|
2717
|
+
...params
|
|
2718
|
+
}),
|
|
2596
2719
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2597
2720
|
path: `/orgs/${organizationId}/ask`,
|
|
2598
2721
|
method: "POST",
|
|
@@ -2694,6 +2817,38 @@ var Api = class extends HttpClient {
|
|
|
2694
2817
|
secure: true,
|
|
2695
2818
|
...params
|
|
2696
2819
|
}),
|
|
2820
|
+
listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
|
|
2821
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2822
|
+
method: "GET",
|
|
2823
|
+
query,
|
|
2824
|
+
secure: true,
|
|
2825
|
+
format: "json",
|
|
2826
|
+
...params
|
|
2827
|
+
}),
|
|
2828
|
+
createSiteShareLink: (organizationId, siteId, data, params = {}) => this.request({
|
|
2829
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2830
|
+
method: "POST",
|
|
2831
|
+
body: data,
|
|
2832
|
+
secure: true,
|
|
2833
|
+
type: "application/json" /* Json */,
|
|
2834
|
+
format: "json",
|
|
2835
|
+
...params
|
|
2836
|
+
}),
|
|
2837
|
+
updateSiteShareLinkById: (organizationId, siteId, shareLinkId, data, params = {}) => this.request({
|
|
2838
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
|
|
2839
|
+
method: "PATCH",
|
|
2840
|
+
body: data,
|
|
2841
|
+
secure: true,
|
|
2842
|
+
type: "application/json" /* Json */,
|
|
2843
|
+
format: "json",
|
|
2844
|
+
...params
|
|
2845
|
+
}),
|
|
2846
|
+
deleteSiteShareLinkById: (organizationId, siteId, shareLinkId, params = {}) => this.request({
|
|
2847
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
|
|
2848
|
+
method: "DELETE",
|
|
2849
|
+
secure: true,
|
|
2850
|
+
...params
|
|
2851
|
+
}),
|
|
2697
2852
|
getSitePublishingAuthSettings: (organizationId, siteId, params = {}) => this.request({
|
|
2698
2853
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2699
2854
|
method: "GET",
|
|
@@ -2701,6 +2856,31 @@ var Api = class extends HttpClient {
|
|
|
2701
2856
|
format: "json",
|
|
2702
2857
|
...params
|
|
2703
2858
|
}),
|
|
2859
|
+
updateSitePublishingAuthSettings: (organizationId, siteId, data, params = {}) => this.request({
|
|
2860
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2861
|
+
method: "PATCH",
|
|
2862
|
+
body: data,
|
|
2863
|
+
secure: true,
|
|
2864
|
+
type: "application/json" /* Json */,
|
|
2865
|
+
format: "json",
|
|
2866
|
+
...params
|
|
2867
|
+
}),
|
|
2868
|
+
getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
|
|
2869
|
+
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2870
|
+
method: "GET",
|
|
2871
|
+
secure: true,
|
|
2872
|
+
format: "json",
|
|
2873
|
+
...params
|
|
2874
|
+
}),
|
|
2875
|
+
updateSiteCustomizationById: (organizationId, siteId, data, params = {}) => this.request({
|
|
2876
|
+
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2877
|
+
method: "PUT",
|
|
2878
|
+
body: data,
|
|
2879
|
+
secure: true,
|
|
2880
|
+
type: "application/json" /* Json */,
|
|
2881
|
+
format: "json",
|
|
2882
|
+
...params
|
|
2883
|
+
}),
|
|
2704
2884
|
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2705
2885
|
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2706
2886
|
method: "POST",
|
|
@@ -2732,6 +2912,80 @@ var Api = class extends HttpClient {
|
|
|
2732
2912
|
method: "DELETE",
|
|
2733
2913
|
secure: true,
|
|
2734
2914
|
...params
|
|
2915
|
+
}),
|
|
2916
|
+
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2917
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2918
|
+
method: "GET",
|
|
2919
|
+
secure: true,
|
|
2920
|
+
format: "json",
|
|
2921
|
+
...params
|
|
2922
|
+
}),
|
|
2923
|
+
overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2924
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2925
|
+
method: "PATCH",
|
|
2926
|
+
body: data,
|
|
2927
|
+
secure: true,
|
|
2928
|
+
type: "application/json" /* Json */,
|
|
2929
|
+
format: "json",
|
|
2930
|
+
...params
|
|
2931
|
+
}),
|
|
2932
|
+
listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
|
|
2933
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2934
|
+
method: "GET",
|
|
2935
|
+
secure: true,
|
|
2936
|
+
format: "json",
|
|
2937
|
+
...params
|
|
2938
|
+
}),
|
|
2939
|
+
addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2940
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2941
|
+
method: "POST",
|
|
2942
|
+
body: data,
|
|
2943
|
+
secure: true,
|
|
2944
|
+
type: "application/json" /* Json */,
|
|
2945
|
+
...params
|
|
2946
|
+
}),
|
|
2947
|
+
removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2948
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2949
|
+
method: "DELETE",
|
|
2950
|
+
body: data,
|
|
2951
|
+
secure: true,
|
|
2952
|
+
type: "application/json" /* Json */,
|
|
2953
|
+
...params
|
|
2954
|
+
}),
|
|
2955
|
+
assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2956
|
+
path: `/orgs/${organizationId}/seats/members`,
|
|
2957
|
+
method: "PUT",
|
|
2958
|
+
body: data,
|
|
2959
|
+
secure: true,
|
|
2960
|
+
type: "application/json" /* Json */,
|
|
2961
|
+
...params
|
|
2962
|
+
}),
|
|
2963
|
+
revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2964
|
+
path: `/orgs/${organizationId}/seats/members`,
|
|
2965
|
+
method: "DELETE",
|
|
2966
|
+
body: data,
|
|
2967
|
+
secure: true,
|
|
2968
|
+
type: "application/json" /* Json */,
|
|
2969
|
+
...params
|
|
2970
|
+
}),
|
|
2971
|
+
getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2972
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2973
|
+
method: "GET",
|
|
2974
|
+
secure: true,
|
|
2975
|
+
format: "json",
|
|
2976
|
+
...params
|
|
2977
|
+
}),
|
|
2978
|
+
assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2979
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2980
|
+
method: "PUT",
|
|
2981
|
+
secure: true,
|
|
2982
|
+
...params
|
|
2983
|
+
}),
|
|
2984
|
+
revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2985
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2986
|
+
method: "DELETE",
|
|
2987
|
+
secure: true,
|
|
2988
|
+
...params
|
|
2735
2989
|
})
|
|
2736
2990
|
};
|
|
2737
2991
|
this.customHostnames = {
|
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.38.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -489,6 +489,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
|
489
489
|
return BillingInterval2;
|
|
490
490
|
})(BillingInterval || {});
|
|
491
491
|
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
492
|
+
BillingProduct2["Free2024"] = "free_2024";
|
|
493
|
+
BillingProduct2["Plus2024"] = "plus_2024";
|
|
494
|
+
BillingProduct2["Pro2024"] = "pro_2024";
|
|
495
|
+
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
492
496
|
BillingProduct2["Free"] = "free";
|
|
493
497
|
BillingProduct2["Plus"] = "plus";
|
|
494
498
|
BillingProduct2["Pro"] = "pro";
|
|
@@ -1423,6 +1427,14 @@ var Api = class extends HttpClient {
|
|
|
1423
1427
|
format: "json",
|
|
1424
1428
|
...params
|
|
1425
1429
|
}),
|
|
1430
|
+
getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1431
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
|
|
1432
|
+
method: "GET",
|
|
1433
|
+
query,
|
|
1434
|
+
secure: true,
|
|
1435
|
+
format: "json",
|
|
1436
|
+
...params
|
|
1437
|
+
}),
|
|
1426
1438
|
getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
|
|
1427
1439
|
path: `/spaces/${spaceId}/revisions/${revisionId}`,
|
|
1428
1440
|
method: "GET",
|
|
@@ -1690,6 +1702,14 @@ var Api = class extends HttpClient {
|
|
|
1690
1702
|
method: "DELETE",
|
|
1691
1703
|
secure: true,
|
|
1692
1704
|
...params
|
|
1705
|
+
}),
|
|
1706
|
+
listSpaceLinks: (spaceId, query, params = {}) => this.request({
|
|
1707
|
+
path: `/spaces/${spaceId}/links`,
|
|
1708
|
+
method: "GET",
|
|
1709
|
+
query,
|
|
1710
|
+
secure: true,
|
|
1711
|
+
format: "json",
|
|
1712
|
+
...params
|
|
1693
1713
|
})
|
|
1694
1714
|
};
|
|
1695
1715
|
this.collections = {
|
|
@@ -1983,6 +2003,45 @@ var Api = class extends HttpClient {
|
|
|
1983
2003
|
method: "DELETE",
|
|
1984
2004
|
secure: true,
|
|
1985
2005
|
...params
|
|
2006
|
+
}),
|
|
2007
|
+
listIntegrationInstallationSites: (integrationName, installationId, query, params = {}) => this.request({
|
|
2008
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2009
|
+
method: "GET",
|
|
2010
|
+
query,
|
|
2011
|
+
secure: true,
|
|
2012
|
+
format: "json",
|
|
2013
|
+
...params
|
|
2014
|
+
}),
|
|
2015
|
+
installIntegrationOnSite: (integrationName, installationId, data, params = {}) => this.request({
|
|
2016
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2017
|
+
method: "POST",
|
|
2018
|
+
body: data,
|
|
2019
|
+
secure: true,
|
|
2020
|
+
type: "application/json" /* Json */,
|
|
2021
|
+
format: "json",
|
|
2022
|
+
...params
|
|
2023
|
+
}),
|
|
2024
|
+
getIntegrationSiteInstallation: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2025
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2026
|
+
method: "GET",
|
|
2027
|
+
secure: true,
|
|
2028
|
+
format: "json",
|
|
2029
|
+
...params
|
|
2030
|
+
}),
|
|
2031
|
+
updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, params = {}) => this.request({
|
|
2032
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2033
|
+
method: "PATCH",
|
|
2034
|
+
body: data,
|
|
2035
|
+
secure: true,
|
|
2036
|
+
type: "application/json" /* Json */,
|
|
2037
|
+
format: "json",
|
|
2038
|
+
...params
|
|
2039
|
+
}),
|
|
2040
|
+
uninstallIntegrationFromSite: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2041
|
+
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2042
|
+
method: "DELETE",
|
|
2043
|
+
secure: true,
|
|
2044
|
+
...params
|
|
1986
2045
|
})
|
|
1987
2046
|
};
|
|
1988
2047
|
this.orgs = {
|
|
@@ -2352,6 +2411,62 @@ var Api = class extends HttpClient {
|
|
|
2352
2411
|
type: "application/json" /* Json */,
|
|
2353
2412
|
...params
|
|
2354
2413
|
}),
|
|
2414
|
+
getUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2415
|
+
path: `/orgs/${organizationId}/usage`,
|
|
2416
|
+
method: "GET",
|
|
2417
|
+
secure: true,
|
|
2418
|
+
format: "json",
|
|
2419
|
+
...params
|
|
2420
|
+
}),
|
|
2421
|
+
getCollectionsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2422
|
+
path: `/orgs/${organizationId}/usage/collections`,
|
|
2423
|
+
method: "GET",
|
|
2424
|
+
secure: true,
|
|
2425
|
+
format: "json",
|
|
2426
|
+
...params
|
|
2427
|
+
}),
|
|
2428
|
+
getSpacesUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2429
|
+
path: `/orgs/${organizationId}/usage/spaces`,
|
|
2430
|
+
method: "GET",
|
|
2431
|
+
secure: true,
|
|
2432
|
+
format: "json",
|
|
2433
|
+
...params
|
|
2434
|
+
}),
|
|
2435
|
+
getSitesUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2436
|
+
path: `/orgs/${organizationId}/usage/sites`,
|
|
2437
|
+
method: "GET",
|
|
2438
|
+
secure: true,
|
|
2439
|
+
format: "json",
|
|
2440
|
+
...params
|
|
2441
|
+
}),
|
|
2442
|
+
getTeamsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2443
|
+
path: `/orgs/${organizationId}/usage/teams`,
|
|
2444
|
+
method: "GET",
|
|
2445
|
+
secure: true,
|
|
2446
|
+
format: "json",
|
|
2447
|
+
...params
|
|
2448
|
+
}),
|
|
2449
|
+
getMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2450
|
+
path: `/orgs/${organizationId}/usage/members`,
|
|
2451
|
+
method: "GET",
|
|
2452
|
+
secure: true,
|
|
2453
|
+
format: "json",
|
|
2454
|
+
...params
|
|
2455
|
+
}),
|
|
2456
|
+
getTeamMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2457
|
+
path: `/orgs/${organizationId}/usage/team-members`,
|
|
2458
|
+
method: "GET",
|
|
2459
|
+
secure: true,
|
|
2460
|
+
format: "json",
|
|
2461
|
+
...params
|
|
2462
|
+
}),
|
|
2463
|
+
getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2464
|
+
path: `/orgs/${organizationId}/usage/seats`,
|
|
2465
|
+
method: "GET",
|
|
2466
|
+
secure: true,
|
|
2467
|
+
format: "json",
|
|
2468
|
+
...params
|
|
2469
|
+
}),
|
|
2355
2470
|
listEntitySchemas: (organizationId, query, params = {}) => this.request({
|
|
2356
2471
|
path: `/orgs/${organizationId}/schemas`,
|
|
2357
2472
|
method: "GET",
|
|
@@ -2527,6 +2642,14 @@ var Api = class extends HttpClient {
|
|
|
2527
2642
|
type: "application/json" /* Json */,
|
|
2528
2643
|
...params
|
|
2529
2644
|
}),
|
|
2645
|
+
getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2646
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
|
|
2647
|
+
method: "GET",
|
|
2648
|
+
query,
|
|
2649
|
+
secure: true,
|
|
2650
|
+
format: "json",
|
|
2651
|
+
...params
|
|
2652
|
+
}),
|
|
2530
2653
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2531
2654
|
path: `/orgs/${organizationId}/ask`,
|
|
2532
2655
|
method: "POST",
|
|
@@ -2628,6 +2751,38 @@ var Api = class extends HttpClient {
|
|
|
2628
2751
|
secure: true,
|
|
2629
2752
|
...params
|
|
2630
2753
|
}),
|
|
2754
|
+
listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
|
|
2755
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2756
|
+
method: "GET",
|
|
2757
|
+
query,
|
|
2758
|
+
secure: true,
|
|
2759
|
+
format: "json",
|
|
2760
|
+
...params
|
|
2761
|
+
}),
|
|
2762
|
+
createSiteShareLink: (organizationId, siteId, data, params = {}) => this.request({
|
|
2763
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
|
|
2764
|
+
method: "POST",
|
|
2765
|
+
body: data,
|
|
2766
|
+
secure: true,
|
|
2767
|
+
type: "application/json" /* Json */,
|
|
2768
|
+
format: "json",
|
|
2769
|
+
...params
|
|
2770
|
+
}),
|
|
2771
|
+
updateSiteShareLinkById: (organizationId, siteId, shareLinkId, data, params = {}) => this.request({
|
|
2772
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
|
|
2773
|
+
method: "PATCH",
|
|
2774
|
+
body: data,
|
|
2775
|
+
secure: true,
|
|
2776
|
+
type: "application/json" /* Json */,
|
|
2777
|
+
format: "json",
|
|
2778
|
+
...params
|
|
2779
|
+
}),
|
|
2780
|
+
deleteSiteShareLinkById: (organizationId, siteId, shareLinkId, params = {}) => this.request({
|
|
2781
|
+
path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
|
|
2782
|
+
method: "DELETE",
|
|
2783
|
+
secure: true,
|
|
2784
|
+
...params
|
|
2785
|
+
}),
|
|
2631
2786
|
getSitePublishingAuthSettings: (organizationId, siteId, params = {}) => this.request({
|
|
2632
2787
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2633
2788
|
method: "GET",
|
|
@@ -2635,6 +2790,31 @@ var Api = class extends HttpClient {
|
|
|
2635
2790
|
format: "json",
|
|
2636
2791
|
...params
|
|
2637
2792
|
}),
|
|
2793
|
+
updateSitePublishingAuthSettings: (organizationId, siteId, data, params = {}) => this.request({
|
|
2794
|
+
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2795
|
+
method: "PATCH",
|
|
2796
|
+
body: data,
|
|
2797
|
+
secure: true,
|
|
2798
|
+
type: "application/json" /* Json */,
|
|
2799
|
+
format: "json",
|
|
2800
|
+
...params
|
|
2801
|
+
}),
|
|
2802
|
+
getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
|
|
2803
|
+
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2804
|
+
method: "GET",
|
|
2805
|
+
secure: true,
|
|
2806
|
+
format: "json",
|
|
2807
|
+
...params
|
|
2808
|
+
}),
|
|
2809
|
+
updateSiteCustomizationById: (organizationId, siteId, data, params = {}) => this.request({
|
|
2810
|
+
path: `/orgs/${organizationId}/sites/${siteId}/customization`,
|
|
2811
|
+
method: "PUT",
|
|
2812
|
+
body: data,
|
|
2813
|
+
secure: true,
|
|
2814
|
+
type: "application/json" /* Json */,
|
|
2815
|
+
format: "json",
|
|
2816
|
+
...params
|
|
2817
|
+
}),
|
|
2638
2818
|
addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
|
|
2639
2819
|
path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
|
|
2640
2820
|
method: "POST",
|
|
@@ -2666,6 +2846,80 @@ var Api = class extends HttpClient {
|
|
|
2666
2846
|
method: "DELETE",
|
|
2667
2847
|
secure: true,
|
|
2668
2848
|
...params
|
|
2849
|
+
}),
|
|
2850
|
+
getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
|
|
2851
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2852
|
+
method: "GET",
|
|
2853
|
+
secure: true,
|
|
2854
|
+
format: "json",
|
|
2855
|
+
...params
|
|
2856
|
+
}),
|
|
2857
|
+
overrideSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2858
|
+
path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
|
|
2859
|
+
method: "PATCH",
|
|
2860
|
+
body: data,
|
|
2861
|
+
secure: true,
|
|
2862
|
+
type: "application/json" /* Json */,
|
|
2863
|
+
format: "json",
|
|
2864
|
+
...params
|
|
2865
|
+
}),
|
|
2866
|
+
listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
|
|
2867
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2868
|
+
method: "GET",
|
|
2869
|
+
secure: true,
|
|
2870
|
+
format: "json",
|
|
2871
|
+
...params
|
|
2872
|
+
}),
|
|
2873
|
+
addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2874
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2875
|
+
method: "POST",
|
|
2876
|
+
body: data,
|
|
2877
|
+
secure: true,
|
|
2878
|
+
type: "application/json" /* Json */,
|
|
2879
|
+
...params
|
|
2880
|
+
}),
|
|
2881
|
+
removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2882
|
+
path: `/orgs/${organizationId}/seats`,
|
|
2883
|
+
method: "DELETE",
|
|
2884
|
+
body: data,
|
|
2885
|
+
secure: true,
|
|
2886
|
+
type: "application/json" /* Json */,
|
|
2887
|
+
...params
|
|
2888
|
+
}),
|
|
2889
|
+
assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2890
|
+
path: `/orgs/${organizationId}/seats/members`,
|
|
2891
|
+
method: "PUT",
|
|
2892
|
+
body: data,
|
|
2893
|
+
secure: true,
|
|
2894
|
+
type: "application/json" /* Json */,
|
|
2895
|
+
...params
|
|
2896
|
+
}),
|
|
2897
|
+
revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
|
|
2898
|
+
path: `/orgs/${organizationId}/seats/members`,
|
|
2899
|
+
method: "DELETE",
|
|
2900
|
+
body: data,
|
|
2901
|
+
secure: true,
|
|
2902
|
+
type: "application/json" /* Json */,
|
|
2903
|
+
...params
|
|
2904
|
+
}),
|
|
2905
|
+
getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2906
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2907
|
+
method: "GET",
|
|
2908
|
+
secure: true,
|
|
2909
|
+
format: "json",
|
|
2910
|
+
...params
|
|
2911
|
+
}),
|
|
2912
|
+
assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2913
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2914
|
+
method: "PUT",
|
|
2915
|
+
secure: true,
|
|
2916
|
+
...params
|
|
2917
|
+
}),
|
|
2918
|
+
revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
|
|
2919
|
+
path: `/orgs/${organizationId}/seats/members/${userId}`,
|
|
2920
|
+
method: "DELETE",
|
|
2921
|
+
secure: true,
|
|
2922
|
+
...params
|
|
2669
2923
|
})
|
|
2670
2924
|
};
|
|
2671
2925
|
this.customHostnames = {
|