@gitbook/api 0.60.0 → 0.62.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 +389 -334
- package/dist/index.cjs +104 -93
- package/dist/index.js +103 -91
- package/package.json +1 -1
- package/spec/openapi.json +1275 -1135
- package/spec/openapi.yaml +735 -643
package/dist/index.cjs
CHANGED
|
@@ -184,13 +184,12 @@ __export(src_exports, {
|
|
|
184
184
|
Api: () => Api,
|
|
185
185
|
BillingInterval: () => BillingInterval,
|
|
186
186
|
BillingProduct: () => BillingProduct,
|
|
187
|
+
BillingTrialStatus: () => BillingTrialStatus,
|
|
187
188
|
ChangeRequestReviewStatus: () => ChangeRequestReviewStatus,
|
|
188
189
|
ChangeRequestStatus: () => ChangeRequestStatus,
|
|
189
190
|
CloudflareHostnameStatus: () => CloudflareHostnameStatus,
|
|
190
191
|
CloudflareHostnameTLSStatus: () => CloudflareHostnameTLSStatus,
|
|
191
192
|
CloudflareHostnameTLSValidationMethod: () => CloudflareHostnameTLSValidationMethod,
|
|
192
|
-
ContentAuditRelationStatus: () => ContentAuditRelationStatus,
|
|
193
|
-
ContentAuditRelationType: () => ContentAuditRelationType,
|
|
194
193
|
ContentKitIcon: () => ContentKitIcon,
|
|
195
194
|
ContentReferenceStatus: () => ContentReferenceStatus,
|
|
196
195
|
ContentType: () => ContentType,
|
|
@@ -241,7 +240,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
241
240
|
|
|
242
241
|
// package.json
|
|
243
242
|
var name = "@gitbook/api";
|
|
244
|
-
var version = "0.
|
|
243
|
+
var version = "0.62.0";
|
|
245
244
|
|
|
246
245
|
// src/client.ts
|
|
247
246
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -557,6 +556,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
557
556
|
CustomizationLocale2["Zh"] = "zh";
|
|
558
557
|
CustomizationLocale2["Ja"] = "ja";
|
|
559
558
|
CustomizationLocale2["De"] = "de";
|
|
559
|
+
CustomizationLocale2["Nl"] = "nl";
|
|
560
560
|
CustomizationLocale2["PtBr"] = "pt-br";
|
|
561
561
|
return CustomizationLocale2;
|
|
562
562
|
})(CustomizationLocale || {});
|
|
@@ -647,20 +647,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
|
647
647
|
BillingInterval2["Yearly"] = "yearly";
|
|
648
648
|
return BillingInterval2;
|
|
649
649
|
})(BillingInterval || {});
|
|
650
|
-
var ContentAuditRelationStatus = /* @__PURE__ */ ((ContentAuditRelationStatus2) => {
|
|
651
|
-
ContentAuditRelationStatus2["Pending"] = "pending";
|
|
652
|
-
ContentAuditRelationStatus2["Rejected"] = "rejected";
|
|
653
|
-
return ContentAuditRelationStatus2;
|
|
654
|
-
})(ContentAuditRelationStatus || {});
|
|
655
|
-
var ContentAuditRelationType = /* @__PURE__ */ ((ContentAuditRelationType2) => {
|
|
656
|
-
ContentAuditRelationType2["Contradiction"] = "contradiction";
|
|
657
|
-
ContentAuditRelationType2["Duplicate"] = "duplicate";
|
|
658
|
-
return ContentAuditRelationType2;
|
|
659
|
-
})(ContentAuditRelationType || {});
|
|
660
650
|
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
661
651
|
SiteType2["Basic"] = "basic";
|
|
662
|
-
SiteType2["Standard"] = "standard";
|
|
663
652
|
SiteType2["Premium"] = "premium";
|
|
653
|
+
SiteType2["Audience"] = "audience";
|
|
664
654
|
SiteType2["LegacyBasic"] = "legacy-basic";
|
|
665
655
|
SiteType2["LegacyPremium"] = "legacy-premium";
|
|
666
656
|
return SiteType2;
|
|
@@ -755,6 +745,14 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
755
745
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
756
746
|
return RevisionSemanticChangeType2;
|
|
757
747
|
})(RevisionSemanticChangeType || {});
|
|
748
|
+
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
749
|
+
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
750
|
+
BillingTrialStatus2["None"] = "none";
|
|
751
|
+
BillingTrialStatus2["Active"] = "active";
|
|
752
|
+
BillingTrialStatus2["Ended"] = "ended";
|
|
753
|
+
BillingTrialStatus2["Expired"] = "expired";
|
|
754
|
+
return BillingTrialStatus2;
|
|
755
|
+
})(BillingTrialStatus || {});
|
|
758
756
|
var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
|
|
759
757
|
APIIntegrationScope2["IntegrationRead"] = "integration:read";
|
|
760
758
|
APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
|
|
@@ -1204,6 +1202,20 @@ var Api = class extends HttpClient {
|
|
|
1204
1202
|
type: "application/json" /* Json */,
|
|
1205
1203
|
...params
|
|
1206
1204
|
}),
|
|
1205
|
+
inviteToSpace: (spaceId, data, params = {}) => this.request({
|
|
1206
|
+
path: `/spaces/${spaceId}/permissions`,
|
|
1207
|
+
method: "POST",
|
|
1208
|
+
body: data,
|
|
1209
|
+
secure: true,
|
|
1210
|
+
type: "application/json" /* Json */,
|
|
1211
|
+
...params
|
|
1212
|
+
}),
|
|
1213
|
+
removeTeamFromSpace: (spaceId, teamId, params = {}) => this.request({
|
|
1214
|
+
path: `/spaces/${spaceId}/permissions/teams/${teamId}`,
|
|
1215
|
+
method: "DELETE",
|
|
1216
|
+
secure: true,
|
|
1217
|
+
...params
|
|
1218
|
+
}),
|
|
1207
1219
|
getCurrentRevision: (spaceId, query, params = {}) => this.request({
|
|
1208
1220
|
path: `/spaces/${spaceId}/content`,
|
|
1209
1221
|
method: "GET",
|
|
@@ -1730,29 +1742,6 @@ var Api = class extends HttpClient {
|
|
|
1730
1742
|
format: "json",
|
|
1731
1743
|
...params
|
|
1732
1744
|
}),
|
|
1733
|
-
getSpacePublishingAuthById: (spaceId, params = {}) => this.request({
|
|
1734
|
-
path: `/spaces/${spaceId}/publishing/auth`,
|
|
1735
|
-
method: "GET",
|
|
1736
|
-
secure: true,
|
|
1737
|
-
format: "json",
|
|
1738
|
-
...params
|
|
1739
|
-
}),
|
|
1740
|
-
updateSpacePublishingAuthById: (spaceId, data, params = {}) => this.request({
|
|
1741
|
-
path: `/spaces/${spaceId}/publishing/auth`,
|
|
1742
|
-
method: "POST",
|
|
1743
|
-
body: data,
|
|
1744
|
-
secure: true,
|
|
1745
|
-
type: "application/json" /* Json */,
|
|
1746
|
-
format: "json",
|
|
1747
|
-
...params
|
|
1748
|
-
}),
|
|
1749
|
-
getSpacePublishingPreviewById: (spaceId, params = {}) => this.request({
|
|
1750
|
-
path: `/spaces/${spaceId}/publishing/preview`,
|
|
1751
|
-
method: "GET",
|
|
1752
|
-
secure: true,
|
|
1753
|
-
format: "json",
|
|
1754
|
-
...params
|
|
1755
|
-
}),
|
|
1756
1745
|
listSpaceIntegrations: (spaceId, query, params = {}) => this.request({
|
|
1757
1746
|
path: `/spaces/${spaceId}/integrations`,
|
|
1758
1747
|
method: "GET",
|
|
@@ -1904,22 +1893,6 @@ var Api = class extends HttpClient {
|
|
|
1904
1893
|
format: "json",
|
|
1905
1894
|
...params
|
|
1906
1895
|
}),
|
|
1907
|
-
getCollectionPublishingAuthById: (collectionId, params = {}) => this.request({
|
|
1908
|
-
path: `/collections/${collectionId}/publishing/auth`,
|
|
1909
|
-
method: "GET",
|
|
1910
|
-
secure: true,
|
|
1911
|
-
format: "json",
|
|
1912
|
-
...params
|
|
1913
|
-
}),
|
|
1914
|
-
updateCollectionPublishingAuthById: (collectionId, data, params = {}) => this.request({
|
|
1915
|
-
path: `/collections/${collectionId}/publishing/auth`,
|
|
1916
|
-
method: "POST",
|
|
1917
|
-
body: data,
|
|
1918
|
-
secure: true,
|
|
1919
|
-
type: "application/json" /* Json */,
|
|
1920
|
-
format: "json",
|
|
1921
|
-
...params
|
|
1922
|
-
}),
|
|
1923
1896
|
getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
|
|
1924
1897
|
path: `/collections/${collectionId}/publishing/customization`,
|
|
1925
1898
|
method: "GET",
|
|
@@ -2403,6 +2376,14 @@ var Api = class extends HttpClient {
|
|
|
2403
2376
|
format: "json",
|
|
2404
2377
|
...params
|
|
2405
2378
|
}),
|
|
2379
|
+
previewBillingInvoice: (organizationId, query, params = {}) => this.request({
|
|
2380
|
+
path: `/orgs/${organizationId}/billing/preview`,
|
|
2381
|
+
method: "GET",
|
|
2382
|
+
query,
|
|
2383
|
+
secure: true,
|
|
2384
|
+
format: "json",
|
|
2385
|
+
...params
|
|
2386
|
+
}),
|
|
2406
2387
|
requestOrganizationUpgrade: (organizationId, params = {}) => this.request({
|
|
2407
2388
|
path: `/orgs/${organizationId}/request_upgrade`,
|
|
2408
2389
|
method: "POST",
|
|
@@ -2545,6 +2526,45 @@ var Api = class extends HttpClient {
|
|
|
2545
2526
|
type: "application/json" /* Json */,
|
|
2546
2527
|
...params
|
|
2547
2528
|
}),
|
|
2529
|
+
listSamlProvidersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
2530
|
+
path: `/orgs/${organizationId}/saml`,
|
|
2531
|
+
method: "GET",
|
|
2532
|
+
query,
|
|
2533
|
+
secure: true,
|
|
2534
|
+
format: "json",
|
|
2535
|
+
...params
|
|
2536
|
+
}),
|
|
2537
|
+
createOrganizationSamlProvider: (organizationId, data, params = {}) => this.request({
|
|
2538
|
+
path: `/orgs/${organizationId}/saml`,
|
|
2539
|
+
method: "POST",
|
|
2540
|
+
body: data,
|
|
2541
|
+
secure: true,
|
|
2542
|
+
type: "application/json" /* Json */,
|
|
2543
|
+
format: "json",
|
|
2544
|
+
...params
|
|
2545
|
+
}),
|
|
2546
|
+
getOrganizationSamlProviderById: (organizationId, samlProviderId, params = {}) => this.request({
|
|
2547
|
+
path: `/orgs/${organizationId}/saml/${samlProviderId}`,
|
|
2548
|
+
method: "GET",
|
|
2549
|
+
secure: true,
|
|
2550
|
+
format: "json",
|
|
2551
|
+
...params
|
|
2552
|
+
}),
|
|
2553
|
+
updateOrganizationSamlProvider: (organizationId, samlProviderId, data, params = {}) => this.request({
|
|
2554
|
+
path: `/orgs/${organizationId}/saml/${samlProviderId}`,
|
|
2555
|
+
method: "PATCH",
|
|
2556
|
+
body: data,
|
|
2557
|
+
secure: true,
|
|
2558
|
+
type: "application/json" /* Json */,
|
|
2559
|
+
format: "json",
|
|
2560
|
+
...params
|
|
2561
|
+
}),
|
|
2562
|
+
deleteOrganizationSamlProvider: (organizationId, samlProviderId, params = {}) => this.request({
|
|
2563
|
+
path: `/orgs/${organizationId}/saml/${samlProviderId}`,
|
|
2564
|
+
method: "DELETE",
|
|
2565
|
+
secure: true,
|
|
2566
|
+
...params
|
|
2567
|
+
}),
|
|
2548
2568
|
getUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2549
2569
|
path: `/orgs/${organizationId}/usage`,
|
|
2550
2570
|
method: "GET",
|
|
@@ -2693,6 +2713,14 @@ var Api = class extends HttpClient {
|
|
|
2693
2713
|
format: "json",
|
|
2694
2714
|
...params
|
|
2695
2715
|
}),
|
|
2716
|
+
listSyncedBlocks: (organizationId, query, params = {}) => this.request({
|
|
2717
|
+
path: `/orgs/${organizationId}/synced-blocks`,
|
|
2718
|
+
method: "GET",
|
|
2719
|
+
query,
|
|
2720
|
+
secure: true,
|
|
2721
|
+
format: "json",
|
|
2722
|
+
...params
|
|
2723
|
+
}),
|
|
2696
2724
|
createSyncedBlock: (organizationId, data, params = {}) => this.request({
|
|
2697
2725
|
path: `/orgs/${organizationId}/synced-blocks`,
|
|
2698
2726
|
method: "POST",
|
|
@@ -2732,6 +2760,14 @@ var Api = class extends HttpClient {
|
|
|
2732
2760
|
format: "json",
|
|
2733
2761
|
...params
|
|
2734
2762
|
}),
|
|
2763
|
+
listSyncedBlockSpaces: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2764
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/usage/spaces`,
|
|
2765
|
+
method: "GET",
|
|
2766
|
+
query,
|
|
2767
|
+
secure: true,
|
|
2768
|
+
format: "json",
|
|
2769
|
+
...params
|
|
2770
|
+
}),
|
|
2735
2771
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2736
2772
|
path: `/orgs/${organizationId}/ask`,
|
|
2737
2773
|
method: "POST",
|
|
@@ -2762,55 +2798,31 @@ var Api = class extends HttpClient {
|
|
|
2762
2798
|
secure: true,
|
|
2763
2799
|
...params
|
|
2764
2800
|
}),
|
|
2765
|
-
|
|
2766
|
-
path: `/orgs/${organizationId}/
|
|
2801
|
+
listSites: (organizationId, query, params = {}) => this.request({
|
|
2802
|
+
path: `/orgs/${organizationId}/sites`,
|
|
2767
2803
|
method: "GET",
|
|
2768
2804
|
query,
|
|
2769
2805
|
secure: true,
|
|
2770
2806
|
format: "json",
|
|
2771
2807
|
...params
|
|
2772
2808
|
}),
|
|
2773
|
-
|
|
2774
|
-
path: `/orgs/${organizationId}/
|
|
2775
|
-
method: "
|
|
2776
|
-
secure: true,
|
|
2777
|
-
format: "json",
|
|
2778
|
-
...params
|
|
2779
|
-
}),
|
|
2780
|
-
updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
|
|
2781
|
-
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
2782
|
-
method: "PATCH",
|
|
2809
|
+
createSite: (organizationId, data, params = {}) => this.request({
|
|
2810
|
+
path: `/orgs/${organizationId}/sites`,
|
|
2811
|
+
method: "POST",
|
|
2783
2812
|
body: data,
|
|
2784
2813
|
secure: true,
|
|
2785
2814
|
type: "application/json" /* Json */,
|
|
2786
2815
|
format: "json",
|
|
2787
2816
|
...params
|
|
2788
2817
|
}),
|
|
2789
|
-
|
|
2790
|
-
path: `/orgs/${organizationId}/
|
|
2791
|
-
method: "GET",
|
|
2792
|
-
query,
|
|
2793
|
-
secure: true,
|
|
2794
|
-
format: "json",
|
|
2795
|
-
...params
|
|
2796
|
-
}),
|
|
2797
|
-
listSites: (organizationId, query, params = {}) => this.request({
|
|
2798
|
-
path: `/orgs/${organizationId}/sites`,
|
|
2818
|
+
previewSitePublishCheckout: (organizationId, query, params = {}) => this.request({
|
|
2819
|
+
path: `/orgs/${organizationId}/sites/publishing/checkout`,
|
|
2799
2820
|
method: "GET",
|
|
2800
2821
|
query,
|
|
2801
2822
|
secure: true,
|
|
2802
2823
|
format: "json",
|
|
2803
2824
|
...params
|
|
2804
2825
|
}),
|
|
2805
|
-
createSite: (organizationId, data, params = {}) => this.request({
|
|
2806
|
-
path: `/orgs/${organizationId}/sites`,
|
|
2807
|
-
method: "POST",
|
|
2808
|
-
body: data,
|
|
2809
|
-
secure: true,
|
|
2810
|
-
type: "application/json" /* Json */,
|
|
2811
|
-
format: "json",
|
|
2812
|
-
...params
|
|
2813
|
-
}),
|
|
2814
2826
|
getSiteById: (organizationId, siteId, params = {}) => this.request({
|
|
2815
2827
|
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2816
2828
|
method: "GET",
|
|
@@ -2897,13 +2909,6 @@ var Api = class extends HttpClient {
|
|
|
2897
2909
|
format: "json",
|
|
2898
2910
|
...params
|
|
2899
2911
|
}),
|
|
2900
|
-
previewSitePublish: (organizationId, siteId, params = {}) => this.request({
|
|
2901
|
-
path: `/orgs/${organizationId}/sites/${siteId}/publishing/checkout`,
|
|
2902
|
-
method: "GET",
|
|
2903
|
-
secure: true,
|
|
2904
|
-
format: "json",
|
|
2905
|
-
...params
|
|
2906
|
-
}),
|
|
2907
2912
|
getSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
|
|
2908
2913
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2909
2914
|
method: "GET",
|
|
@@ -3088,6 +3093,13 @@ var Api = class extends HttpClient {
|
|
|
3088
3093
|
secure: true,
|
|
3089
3094
|
type: "application/json" /* Json */,
|
|
3090
3095
|
...params
|
|
3096
|
+
}),
|
|
3097
|
+
getSiteAdsStatsById: (organizationId, siteId, params = {}) => this.request({
|
|
3098
|
+
path: `/orgs/${organizationId}/sites/${siteId}/ads/stats`,
|
|
3099
|
+
method: "POST",
|
|
3100
|
+
secure: true,
|
|
3101
|
+
format: "json",
|
|
3102
|
+
...params
|
|
3091
3103
|
})
|
|
3092
3104
|
};
|
|
3093
3105
|
this.customHostnames = {
|
|
@@ -3265,13 +3277,12 @@ var GitBookAPI = class extends Api {
|
|
|
3265
3277
|
Api,
|
|
3266
3278
|
BillingInterval,
|
|
3267
3279
|
BillingProduct,
|
|
3280
|
+
BillingTrialStatus,
|
|
3268
3281
|
ChangeRequestReviewStatus,
|
|
3269
3282
|
ChangeRequestStatus,
|
|
3270
3283
|
CloudflareHostnameStatus,
|
|
3271
3284
|
CloudflareHostnameTLSStatus,
|
|
3272
3285
|
CloudflareHostnameTLSValidationMethod,
|
|
3273
|
-
ContentAuditRelationStatus,
|
|
3274
|
-
ContentAuditRelationType,
|
|
3275
3286
|
ContentKitIcon,
|
|
3276
3287
|
ContentReferenceStatus,
|
|
3277
3288
|
ContentType,
|
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.62.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -488,6 +488,7 @@ var CustomizationLocale = /* @__PURE__ */ ((CustomizationLocale2) => {
|
|
|
488
488
|
CustomizationLocale2["Zh"] = "zh";
|
|
489
489
|
CustomizationLocale2["Ja"] = "ja";
|
|
490
490
|
CustomizationLocale2["De"] = "de";
|
|
491
|
+
CustomizationLocale2["Nl"] = "nl";
|
|
491
492
|
CustomizationLocale2["PtBr"] = "pt-br";
|
|
492
493
|
return CustomizationLocale2;
|
|
493
494
|
})(CustomizationLocale || {});
|
|
@@ -578,20 +579,10 @@ var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
|
578
579
|
BillingInterval2["Yearly"] = "yearly";
|
|
579
580
|
return BillingInterval2;
|
|
580
581
|
})(BillingInterval || {});
|
|
581
|
-
var ContentAuditRelationStatus = /* @__PURE__ */ ((ContentAuditRelationStatus2) => {
|
|
582
|
-
ContentAuditRelationStatus2["Pending"] = "pending";
|
|
583
|
-
ContentAuditRelationStatus2["Rejected"] = "rejected";
|
|
584
|
-
return ContentAuditRelationStatus2;
|
|
585
|
-
})(ContentAuditRelationStatus || {});
|
|
586
|
-
var ContentAuditRelationType = /* @__PURE__ */ ((ContentAuditRelationType2) => {
|
|
587
|
-
ContentAuditRelationType2["Contradiction"] = "contradiction";
|
|
588
|
-
ContentAuditRelationType2["Duplicate"] = "duplicate";
|
|
589
|
-
return ContentAuditRelationType2;
|
|
590
|
-
})(ContentAuditRelationType || {});
|
|
591
582
|
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
592
583
|
SiteType2["Basic"] = "basic";
|
|
593
|
-
SiteType2["Standard"] = "standard";
|
|
594
584
|
SiteType2["Premium"] = "premium";
|
|
585
|
+
SiteType2["Audience"] = "audience";
|
|
595
586
|
SiteType2["LegacyBasic"] = "legacy-basic";
|
|
596
587
|
SiteType2["LegacyPremium"] = "legacy-premium";
|
|
597
588
|
return SiteType2;
|
|
@@ -686,6 +677,14 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
686
677
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
687
678
|
return RevisionSemanticChangeType2;
|
|
688
679
|
})(RevisionSemanticChangeType || {});
|
|
680
|
+
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
681
|
+
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
682
|
+
BillingTrialStatus2["None"] = "none";
|
|
683
|
+
BillingTrialStatus2["Active"] = "active";
|
|
684
|
+
BillingTrialStatus2["Ended"] = "ended";
|
|
685
|
+
BillingTrialStatus2["Expired"] = "expired";
|
|
686
|
+
return BillingTrialStatus2;
|
|
687
|
+
})(BillingTrialStatus || {});
|
|
689
688
|
var APIIntegrationScope = /* @__PURE__ */ ((APIIntegrationScope2) => {
|
|
690
689
|
APIIntegrationScope2["IntegrationRead"] = "integration:read";
|
|
691
690
|
APIIntegrationScope2["IntegrationUpdate"] = "integration:update";
|
|
@@ -1135,6 +1134,20 @@ var Api = class extends HttpClient {
|
|
|
1135
1134
|
type: "application/json" /* Json */,
|
|
1136
1135
|
...params
|
|
1137
1136
|
}),
|
|
1137
|
+
inviteToSpace: (spaceId, data, params = {}) => this.request({
|
|
1138
|
+
path: `/spaces/${spaceId}/permissions`,
|
|
1139
|
+
method: "POST",
|
|
1140
|
+
body: data,
|
|
1141
|
+
secure: true,
|
|
1142
|
+
type: "application/json" /* Json */,
|
|
1143
|
+
...params
|
|
1144
|
+
}),
|
|
1145
|
+
removeTeamFromSpace: (spaceId, teamId, params = {}) => this.request({
|
|
1146
|
+
path: `/spaces/${spaceId}/permissions/teams/${teamId}`,
|
|
1147
|
+
method: "DELETE",
|
|
1148
|
+
secure: true,
|
|
1149
|
+
...params
|
|
1150
|
+
}),
|
|
1138
1151
|
getCurrentRevision: (spaceId, query, params = {}) => this.request({
|
|
1139
1152
|
path: `/spaces/${spaceId}/content`,
|
|
1140
1153
|
method: "GET",
|
|
@@ -1661,29 +1674,6 @@ var Api = class extends HttpClient {
|
|
|
1661
1674
|
format: "json",
|
|
1662
1675
|
...params
|
|
1663
1676
|
}),
|
|
1664
|
-
getSpacePublishingAuthById: (spaceId, params = {}) => this.request({
|
|
1665
|
-
path: `/spaces/${spaceId}/publishing/auth`,
|
|
1666
|
-
method: "GET",
|
|
1667
|
-
secure: true,
|
|
1668
|
-
format: "json",
|
|
1669
|
-
...params
|
|
1670
|
-
}),
|
|
1671
|
-
updateSpacePublishingAuthById: (spaceId, data, params = {}) => this.request({
|
|
1672
|
-
path: `/spaces/${spaceId}/publishing/auth`,
|
|
1673
|
-
method: "POST",
|
|
1674
|
-
body: data,
|
|
1675
|
-
secure: true,
|
|
1676
|
-
type: "application/json" /* Json */,
|
|
1677
|
-
format: "json",
|
|
1678
|
-
...params
|
|
1679
|
-
}),
|
|
1680
|
-
getSpacePublishingPreviewById: (spaceId, params = {}) => this.request({
|
|
1681
|
-
path: `/spaces/${spaceId}/publishing/preview`,
|
|
1682
|
-
method: "GET",
|
|
1683
|
-
secure: true,
|
|
1684
|
-
format: "json",
|
|
1685
|
-
...params
|
|
1686
|
-
}),
|
|
1687
1677
|
listSpaceIntegrations: (spaceId, query, params = {}) => this.request({
|
|
1688
1678
|
path: `/spaces/${spaceId}/integrations`,
|
|
1689
1679
|
method: "GET",
|
|
@@ -1835,22 +1825,6 @@ var Api = class extends HttpClient {
|
|
|
1835
1825
|
format: "json",
|
|
1836
1826
|
...params
|
|
1837
1827
|
}),
|
|
1838
|
-
getCollectionPublishingAuthById: (collectionId, params = {}) => this.request({
|
|
1839
|
-
path: `/collections/${collectionId}/publishing/auth`,
|
|
1840
|
-
method: "GET",
|
|
1841
|
-
secure: true,
|
|
1842
|
-
format: "json",
|
|
1843
|
-
...params
|
|
1844
|
-
}),
|
|
1845
|
-
updateCollectionPublishingAuthById: (collectionId, data, params = {}) => this.request({
|
|
1846
|
-
path: `/collections/${collectionId}/publishing/auth`,
|
|
1847
|
-
method: "POST",
|
|
1848
|
-
body: data,
|
|
1849
|
-
secure: true,
|
|
1850
|
-
type: "application/json" /* Json */,
|
|
1851
|
-
format: "json",
|
|
1852
|
-
...params
|
|
1853
|
-
}),
|
|
1854
1828
|
getCollectionPublishingCustomizationById: (collectionId, params = {}) => this.request({
|
|
1855
1829
|
path: `/collections/${collectionId}/publishing/customization`,
|
|
1856
1830
|
method: "GET",
|
|
@@ -2334,6 +2308,14 @@ var Api = class extends HttpClient {
|
|
|
2334
2308
|
format: "json",
|
|
2335
2309
|
...params
|
|
2336
2310
|
}),
|
|
2311
|
+
previewBillingInvoice: (organizationId, query, params = {}) => this.request({
|
|
2312
|
+
path: `/orgs/${organizationId}/billing/preview`,
|
|
2313
|
+
method: "GET",
|
|
2314
|
+
query,
|
|
2315
|
+
secure: true,
|
|
2316
|
+
format: "json",
|
|
2317
|
+
...params
|
|
2318
|
+
}),
|
|
2337
2319
|
requestOrganizationUpgrade: (organizationId, params = {}) => this.request({
|
|
2338
2320
|
path: `/orgs/${organizationId}/request_upgrade`,
|
|
2339
2321
|
method: "POST",
|
|
@@ -2476,6 +2458,45 @@ var Api = class extends HttpClient {
|
|
|
2476
2458
|
type: "application/json" /* Json */,
|
|
2477
2459
|
...params
|
|
2478
2460
|
}),
|
|
2461
|
+
listSamlProvidersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
2462
|
+
path: `/orgs/${organizationId}/saml`,
|
|
2463
|
+
method: "GET",
|
|
2464
|
+
query,
|
|
2465
|
+
secure: true,
|
|
2466
|
+
format: "json",
|
|
2467
|
+
...params
|
|
2468
|
+
}),
|
|
2469
|
+
createOrganizationSamlProvider: (organizationId, data, params = {}) => this.request({
|
|
2470
|
+
path: `/orgs/${organizationId}/saml`,
|
|
2471
|
+
method: "POST",
|
|
2472
|
+
body: data,
|
|
2473
|
+
secure: true,
|
|
2474
|
+
type: "application/json" /* Json */,
|
|
2475
|
+
format: "json",
|
|
2476
|
+
...params
|
|
2477
|
+
}),
|
|
2478
|
+
getOrganizationSamlProviderById: (organizationId, samlProviderId, params = {}) => this.request({
|
|
2479
|
+
path: `/orgs/${organizationId}/saml/${samlProviderId}`,
|
|
2480
|
+
method: "GET",
|
|
2481
|
+
secure: true,
|
|
2482
|
+
format: "json",
|
|
2483
|
+
...params
|
|
2484
|
+
}),
|
|
2485
|
+
updateOrganizationSamlProvider: (organizationId, samlProviderId, data, params = {}) => this.request({
|
|
2486
|
+
path: `/orgs/${organizationId}/saml/${samlProviderId}`,
|
|
2487
|
+
method: "PATCH",
|
|
2488
|
+
body: data,
|
|
2489
|
+
secure: true,
|
|
2490
|
+
type: "application/json" /* Json */,
|
|
2491
|
+
format: "json",
|
|
2492
|
+
...params
|
|
2493
|
+
}),
|
|
2494
|
+
deleteOrganizationSamlProvider: (organizationId, samlProviderId, params = {}) => this.request({
|
|
2495
|
+
path: `/orgs/${organizationId}/saml/${samlProviderId}`,
|
|
2496
|
+
method: "DELETE",
|
|
2497
|
+
secure: true,
|
|
2498
|
+
...params
|
|
2499
|
+
}),
|
|
2479
2500
|
getUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2480
2501
|
path: `/orgs/${organizationId}/usage`,
|
|
2481
2502
|
method: "GET",
|
|
@@ -2624,6 +2645,14 @@ var Api = class extends HttpClient {
|
|
|
2624
2645
|
format: "json",
|
|
2625
2646
|
...params
|
|
2626
2647
|
}),
|
|
2648
|
+
listSyncedBlocks: (organizationId, query, params = {}) => this.request({
|
|
2649
|
+
path: `/orgs/${organizationId}/synced-blocks`,
|
|
2650
|
+
method: "GET",
|
|
2651
|
+
query,
|
|
2652
|
+
secure: true,
|
|
2653
|
+
format: "json",
|
|
2654
|
+
...params
|
|
2655
|
+
}),
|
|
2627
2656
|
createSyncedBlock: (organizationId, data, params = {}) => this.request({
|
|
2628
2657
|
path: `/orgs/${organizationId}/synced-blocks`,
|
|
2629
2658
|
method: "POST",
|
|
@@ -2663,6 +2692,14 @@ var Api = class extends HttpClient {
|
|
|
2663
2692
|
format: "json",
|
|
2664
2693
|
...params
|
|
2665
2694
|
}),
|
|
2695
|
+
listSyncedBlockSpaces: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2696
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/usage/spaces`,
|
|
2697
|
+
method: "GET",
|
|
2698
|
+
query,
|
|
2699
|
+
secure: true,
|
|
2700
|
+
format: "json",
|
|
2701
|
+
...params
|
|
2702
|
+
}),
|
|
2666
2703
|
askInOrganization: (organizationId, data, query, params = {}) => this.request({
|
|
2667
2704
|
path: `/orgs/${organizationId}/ask`,
|
|
2668
2705
|
method: "POST",
|
|
@@ -2693,55 +2730,31 @@ var Api = class extends HttpClient {
|
|
|
2693
2730
|
secure: true,
|
|
2694
2731
|
...params
|
|
2695
2732
|
}),
|
|
2696
|
-
|
|
2697
|
-
path: `/orgs/${organizationId}/
|
|
2733
|
+
listSites: (organizationId, query, params = {}) => this.request({
|
|
2734
|
+
path: `/orgs/${organizationId}/sites`,
|
|
2698
2735
|
method: "GET",
|
|
2699
2736
|
query,
|
|
2700
2737
|
secure: true,
|
|
2701
2738
|
format: "json",
|
|
2702
2739
|
...params
|
|
2703
2740
|
}),
|
|
2704
|
-
|
|
2705
|
-
path: `/orgs/${organizationId}/
|
|
2706
|
-
method: "
|
|
2707
|
-
secure: true,
|
|
2708
|
-
format: "json",
|
|
2709
|
-
...params
|
|
2710
|
-
}),
|
|
2711
|
-
updateContentAuditRelationStatusById: (organizationId, relationId, data, params = {}) => this.request({
|
|
2712
|
-
path: `/orgs/${organizationId}/insights/audit-relations/${relationId}`,
|
|
2713
|
-
method: "PATCH",
|
|
2741
|
+
createSite: (organizationId, data, params = {}) => this.request({
|
|
2742
|
+
path: `/orgs/${organizationId}/sites`,
|
|
2743
|
+
method: "POST",
|
|
2714
2744
|
body: data,
|
|
2715
2745
|
secure: true,
|
|
2716
2746
|
type: "application/json" /* Json */,
|
|
2717
2747
|
format: "json",
|
|
2718
2748
|
...params
|
|
2719
2749
|
}),
|
|
2720
|
-
|
|
2721
|
-
path: `/orgs/${organizationId}/
|
|
2722
|
-
method: "GET",
|
|
2723
|
-
query,
|
|
2724
|
-
secure: true,
|
|
2725
|
-
format: "json",
|
|
2726
|
-
...params
|
|
2727
|
-
}),
|
|
2728
|
-
listSites: (organizationId, query, params = {}) => this.request({
|
|
2729
|
-
path: `/orgs/${organizationId}/sites`,
|
|
2750
|
+
previewSitePublishCheckout: (organizationId, query, params = {}) => this.request({
|
|
2751
|
+
path: `/orgs/${organizationId}/sites/publishing/checkout`,
|
|
2730
2752
|
method: "GET",
|
|
2731
2753
|
query,
|
|
2732
2754
|
secure: true,
|
|
2733
2755
|
format: "json",
|
|
2734
2756
|
...params
|
|
2735
2757
|
}),
|
|
2736
|
-
createSite: (organizationId, data, params = {}) => this.request({
|
|
2737
|
-
path: `/orgs/${organizationId}/sites`,
|
|
2738
|
-
method: "POST",
|
|
2739
|
-
body: data,
|
|
2740
|
-
secure: true,
|
|
2741
|
-
type: "application/json" /* Json */,
|
|
2742
|
-
format: "json",
|
|
2743
|
-
...params
|
|
2744
|
-
}),
|
|
2745
2758
|
getSiteById: (organizationId, siteId, params = {}) => this.request({
|
|
2746
2759
|
path: `/orgs/${organizationId}/sites/${siteId}`,
|
|
2747
2760
|
method: "GET",
|
|
@@ -2828,13 +2841,6 @@ var Api = class extends HttpClient {
|
|
|
2828
2841
|
format: "json",
|
|
2829
2842
|
...params
|
|
2830
2843
|
}),
|
|
2831
|
-
previewSitePublish: (organizationId, siteId, params = {}) => this.request({
|
|
2832
|
-
path: `/orgs/${organizationId}/sites/${siteId}/publishing/checkout`,
|
|
2833
|
-
method: "GET",
|
|
2834
|
-
secure: true,
|
|
2835
|
-
format: "json",
|
|
2836
|
-
...params
|
|
2837
|
-
}),
|
|
2838
2844
|
getSitePublishingAuthById: (organizationId, siteId, params = {}) => this.request({
|
|
2839
2845
|
path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
|
|
2840
2846
|
method: "GET",
|
|
@@ -3019,6 +3025,13 @@ var Api = class extends HttpClient {
|
|
|
3019
3025
|
secure: true,
|
|
3020
3026
|
type: "application/json" /* Json */,
|
|
3021
3027
|
...params
|
|
3028
|
+
}),
|
|
3029
|
+
getSiteAdsStatsById: (organizationId, siteId, params = {}) => this.request({
|
|
3030
|
+
path: `/orgs/${organizationId}/sites/${siteId}/ads/stats`,
|
|
3031
|
+
method: "POST",
|
|
3032
|
+
secure: true,
|
|
3033
|
+
format: "json",
|
|
3034
|
+
...params
|
|
3022
3035
|
})
|
|
3023
3036
|
};
|
|
3024
3037
|
this.customHostnames = {
|
|
@@ -3195,13 +3208,12 @@ export {
|
|
|
3195
3208
|
Api,
|
|
3196
3209
|
BillingInterval,
|
|
3197
3210
|
BillingProduct,
|
|
3211
|
+
BillingTrialStatus,
|
|
3198
3212
|
ChangeRequestReviewStatus,
|
|
3199
3213
|
ChangeRequestStatus,
|
|
3200
3214
|
CloudflareHostnameStatus,
|
|
3201
3215
|
CloudflareHostnameTLSStatus,
|
|
3202
3216
|
CloudflareHostnameTLSValidationMethod,
|
|
3203
|
-
ContentAuditRelationStatus,
|
|
3204
|
-
ContentAuditRelationType,
|
|
3205
3217
|
ContentKitIcon,
|
|
3206
3218
|
ContentReferenceStatus,
|
|
3207
3219
|
ContentType,
|