@gitbook/api 0.74.0 → 0.76.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 +607 -375
- package/dist/index.cjs +84 -40
- package/dist/index.js +82 -40
- package/package.json +1 -1
- package/spec/openapi.json +1741 -1018
- package/spec/openapi.yaml +984 -524
package/dist/index.cjs
CHANGED
|
@@ -210,9 +210,11 @@ __export(src_exports, {
|
|
|
210
210
|
GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
|
|
211
211
|
GitBookAPI: () => GitBookAPI,
|
|
212
212
|
GitBookAPIError: () => GitBookAPIError,
|
|
213
|
+
GitSyncOperationStage: () => GitSyncOperationStage,
|
|
213
214
|
GitSyncOperationState: () => GitSyncOperationState,
|
|
214
215
|
HttpClient: () => HttpClient,
|
|
215
216
|
ImportContentSource: () => ImportContentSource,
|
|
217
|
+
InsightsInterval: () => InsightsInterval,
|
|
216
218
|
IntegrationCategory: () => IntegrationCategory,
|
|
217
219
|
IntegrationInstallationSiteSelection: () => IntegrationInstallationSiteSelection,
|
|
218
220
|
IntegrationInstallationSpaceSelection: () => IntegrationInstallationSpaceSelection,
|
|
@@ -242,7 +244,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
242
244
|
|
|
243
245
|
// package.json
|
|
244
246
|
var name = "@gitbook/api";
|
|
245
|
-
var version = "0.
|
|
247
|
+
var version = "0.76.0";
|
|
246
248
|
|
|
247
249
|
// src/client.ts
|
|
248
250
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -459,6 +461,25 @@ var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) =>
|
|
|
459
461
|
OrganizationCommunityType2["Education"] = "education";
|
|
460
462
|
return OrganizationCommunityType2;
|
|
461
463
|
})(OrganizationCommunityType || {});
|
|
464
|
+
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
465
|
+
BillingProduct2["Free2024"] = "free_2024";
|
|
466
|
+
BillingProduct2["Plus2024"] = "plus_2024";
|
|
467
|
+
BillingProduct2["Pro2024"] = "pro_2024";
|
|
468
|
+
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
469
|
+
BillingProduct2["Free"] = "free";
|
|
470
|
+
BillingProduct2["Plus"] = "plus";
|
|
471
|
+
BillingProduct2["Pro"] = "pro";
|
|
472
|
+
BillingProduct2["Team"] = "team";
|
|
473
|
+
BillingProduct2["Business"] = "business";
|
|
474
|
+
BillingProduct2["Legacy"] = "legacy";
|
|
475
|
+
BillingProduct2["Startup"] = "startup";
|
|
476
|
+
BillingProduct2["Enterprise"] = "enterprise";
|
|
477
|
+
BillingProduct2["Community"] = "community";
|
|
478
|
+
BillingProduct2["TeamOct2019Free"] = "team_oct_2019_free";
|
|
479
|
+
BillingProduct2["TeamDec2021"] = "team_dec_2021";
|
|
480
|
+
BillingProduct2["BusinessDec2021"] = "business_dec_2021";
|
|
481
|
+
return BillingProduct2;
|
|
482
|
+
})(BillingProduct || {});
|
|
462
483
|
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
463
484
|
IntegrationTarget2["All"] = "all";
|
|
464
485
|
IntegrationTarget2["Site"] = "site";
|
|
@@ -633,31 +654,6 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
|
633
654
|
ContentKitIcon2["Lock"] = "lock";
|
|
634
655
|
return ContentKitIcon2;
|
|
635
656
|
})(ContentKitIcon || {});
|
|
636
|
-
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
637
|
-
TeamMemberRole2["Owner"] = "owner";
|
|
638
|
-
TeamMemberRole2["Member"] = "member";
|
|
639
|
-
return TeamMemberRole2;
|
|
640
|
-
})(TeamMemberRole || {});
|
|
641
|
-
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
642
|
-
BillingProduct2["Free2024"] = "free_2024";
|
|
643
|
-
BillingProduct2["Plus2024"] = "plus_2024";
|
|
644
|
-
BillingProduct2["Pro2024"] = "pro_2024";
|
|
645
|
-
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
646
|
-
BillingProduct2["Free"] = "free";
|
|
647
|
-
BillingProduct2["Plus"] = "plus";
|
|
648
|
-
BillingProduct2["Pro"] = "pro";
|
|
649
|
-
BillingProduct2["Team"] = "team";
|
|
650
|
-
BillingProduct2["Business"] = "business";
|
|
651
|
-
BillingProduct2["Legacy"] = "legacy";
|
|
652
|
-
BillingProduct2["Startup"] = "startup";
|
|
653
|
-
BillingProduct2["Enterprise"] = "enterprise";
|
|
654
|
-
return BillingProduct2;
|
|
655
|
-
})(BillingProduct || {});
|
|
656
|
-
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
657
|
-
BillingInterval2["Monthly"] = "monthly";
|
|
658
|
-
BillingInterval2["Yearly"] = "yearly";
|
|
659
|
-
return BillingInterval2;
|
|
660
|
-
})(BillingInterval || {});
|
|
661
657
|
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
662
658
|
SiteType2["Basic"] = "basic";
|
|
663
659
|
SiteType2["Premium"] = "premium";
|
|
@@ -679,6 +675,16 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
|
|
|
679
675
|
SiteAdsTopic2["Crypto"] = "crypto";
|
|
680
676
|
return SiteAdsTopic2;
|
|
681
677
|
})(SiteAdsTopic || {});
|
|
678
|
+
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
679
|
+
TeamMemberRole2["Owner"] = "owner";
|
|
680
|
+
TeamMemberRole2["Member"] = "member";
|
|
681
|
+
return TeamMemberRole2;
|
|
682
|
+
})(TeamMemberRole || {});
|
|
683
|
+
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
684
|
+
BillingInterval2["Monthly"] = "monthly";
|
|
685
|
+
BillingInterval2["Yearly"] = "yearly";
|
|
686
|
+
return BillingInterval2;
|
|
687
|
+
})(BillingInterval || {});
|
|
682
688
|
var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
683
689
|
CustomizationIconsStyle2["Regular"] = "regular";
|
|
684
690
|
CustomizationIconsStyle2["Solid"] = "solid";
|
|
@@ -687,6 +693,13 @@ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
|
687
693
|
CustomizationIconsStyle2["Thin"] = "thin";
|
|
688
694
|
return CustomizationIconsStyle2;
|
|
689
695
|
})(CustomizationIconsStyle || {});
|
|
696
|
+
var InsightsInterval = /* @__PURE__ */ ((InsightsInterval2) => {
|
|
697
|
+
InsightsInterval2["Day"] = "day";
|
|
698
|
+
InsightsInterval2["Week"] = "week";
|
|
699
|
+
InsightsInterval2["Month"] = "month";
|
|
700
|
+
InsightsInterval2["Year"] = "year";
|
|
701
|
+
return InsightsInterval2;
|
|
702
|
+
})(InsightsInterval || {});
|
|
690
703
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
691
704
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
692
705
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -757,6 +770,13 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
757
770
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
758
771
|
return RevisionSemanticChangeType2;
|
|
759
772
|
})(RevisionSemanticChangeType || {});
|
|
773
|
+
var GitSyncOperationStage = /* @__PURE__ */ ((GitSyncOperationStage2) => {
|
|
774
|
+
GitSyncOperationStage2["RepoFetch"] = "repo_fetch";
|
|
775
|
+
GitSyncOperationStage2["ConfigCheck"] = "config_check";
|
|
776
|
+
GitSyncOperationStage2["ContentProcess"] = "content_process";
|
|
777
|
+
GitSyncOperationStage2["Finalize"] = "finalize";
|
|
778
|
+
return GitSyncOperationStage2;
|
|
779
|
+
})(GitSyncOperationStage || {});
|
|
760
780
|
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
761
781
|
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
762
782
|
BillingTrialStatus2["None"] = "none";
|
|
@@ -2129,25 +2149,28 @@ var Api = class extends HttpClient {
|
|
|
2129
2149
|
format: "json",
|
|
2130
2150
|
...params
|
|
2131
2151
|
}),
|
|
2132
|
-
installIntegrationOnSpace: (integrationName, installationId, data, params = {}) => this.request({
|
|
2152
|
+
installIntegrationOnSpace: (integrationName, installationId, data, query, params = {}) => this.request({
|
|
2133
2153
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
2134
2154
|
method: "POST",
|
|
2155
|
+
query,
|
|
2135
2156
|
body: data,
|
|
2136
2157
|
secure: true,
|
|
2137
2158
|
type: "application/json" /* Json */,
|
|
2138
2159
|
format: "json",
|
|
2139
2160
|
...params
|
|
2140
2161
|
}),
|
|
2141
|
-
getIntegrationSpaceInstallation: (integrationName, installationId, spaceId, params = {}) => this.request({
|
|
2162
|
+
getIntegrationSpaceInstallation: (integrationName, installationId, spaceId, query, params = {}) => this.request({
|
|
2142
2163
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
|
|
2143
2164
|
method: "GET",
|
|
2165
|
+
query,
|
|
2144
2166
|
secure: true,
|
|
2145
2167
|
format: "json",
|
|
2146
2168
|
...params
|
|
2147
2169
|
}),
|
|
2148
|
-
updateIntegrationSpaceInstallation: (integrationName, installationId, spaceId, data, params = {}) => this.request({
|
|
2170
|
+
updateIntegrationSpaceInstallation: (integrationName, installationId, spaceId, data, query, params = {}) => this.request({
|
|
2149
2171
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
|
|
2150
2172
|
method: "PATCH",
|
|
2173
|
+
query,
|
|
2151
2174
|
body: data,
|
|
2152
2175
|
secure: true,
|
|
2153
2176
|
type: "application/json" /* Json */,
|
|
@@ -2168,25 +2191,28 @@ var Api = class extends HttpClient {
|
|
|
2168
2191
|
format: "json",
|
|
2169
2192
|
...params
|
|
2170
2193
|
}),
|
|
2171
|
-
installIntegrationOnSite: (integrationName, installationId, data, params = {}) => this.request({
|
|
2194
|
+
installIntegrationOnSite: (integrationName, installationId, data, query, params = {}) => this.request({
|
|
2172
2195
|
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2173
2196
|
method: "POST",
|
|
2197
|
+
query,
|
|
2174
2198
|
body: data,
|
|
2175
2199
|
secure: true,
|
|
2176
2200
|
type: "application/json" /* Json */,
|
|
2177
2201
|
format: "json",
|
|
2178
2202
|
...params
|
|
2179
2203
|
}),
|
|
2180
|
-
getIntegrationSiteInstallation: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2204
|
+
getIntegrationSiteInstallation: (integrationName, installationId, siteId, query, params = {}) => this.request({
|
|
2181
2205
|
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2182
2206
|
method: "GET",
|
|
2207
|
+
query,
|
|
2183
2208
|
secure: true,
|
|
2184
2209
|
format: "json",
|
|
2185
2210
|
...params
|
|
2186
2211
|
}),
|
|
2187
|
-
updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, params = {}) => this.request({
|
|
2212
|
+
updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, query, params = {}) => this.request({
|
|
2188
2213
|
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2189
2214
|
method: "PATCH",
|
|
2215
|
+
query,
|
|
2190
2216
|
body: data,
|
|
2191
2217
|
secure: true,
|
|
2192
2218
|
type: "application/json" /* Json */,
|
|
@@ -2240,6 +2266,13 @@ var Api = class extends HttpClient {
|
|
|
2240
2266
|
format: "json",
|
|
2241
2267
|
...params
|
|
2242
2268
|
}),
|
|
2269
|
+
getOrganizationAllContent: (organizationId, params = {}) => this.request({
|
|
2270
|
+
path: `/orgs/${organizationId}/content`,
|
|
2271
|
+
method: "GET",
|
|
2272
|
+
secure: true,
|
|
2273
|
+
format: "json",
|
|
2274
|
+
...params
|
|
2275
|
+
}),
|
|
2243
2276
|
listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
2244
2277
|
path: `/orgs/${organizationId}/members`,
|
|
2245
2278
|
method: "GET",
|
|
@@ -2435,7 +2468,7 @@ var Api = class extends HttpClient {
|
|
|
2435
2468
|
...params
|
|
2436
2469
|
}),
|
|
2437
2470
|
getOrganizationBillingPortal: (organizationId, params = {}) => this.request({
|
|
2438
|
-
path: `/orgs/${organizationId}/billing`,
|
|
2471
|
+
path: `/orgs/${organizationId}/billing/portal`,
|
|
2439
2472
|
method: "GET",
|
|
2440
2473
|
secure: true,
|
|
2441
2474
|
format: "json",
|
|
@@ -2855,6 +2888,14 @@ var Api = class extends HttpClient {
|
|
|
2855
2888
|
secure: true,
|
|
2856
2889
|
...params
|
|
2857
2890
|
}),
|
|
2891
|
+
getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2892
|
+
path: `/orgs/${organizationId}/sites/${siteId}/published`,
|
|
2893
|
+
method: "GET",
|
|
2894
|
+
query,
|
|
2895
|
+
secure: true,
|
|
2896
|
+
format: "json",
|
|
2897
|
+
...params
|
|
2898
|
+
}),
|
|
2858
2899
|
publishSite: (organizationId, siteId, params = {}) => this.request({
|
|
2859
2900
|
path: `/orgs/${organizationId}/sites/${siteId}/publish`,
|
|
2860
2901
|
method: "POST",
|
|
@@ -3146,6 +3187,14 @@ var Api = class extends HttpClient {
|
|
|
3146
3187
|
type: "application/json" /* Json */,
|
|
3147
3188
|
...params
|
|
3148
3189
|
}),
|
|
3190
|
+
getAdsInsightsForSiteById: (organizationId, siteId, query, params = {}) => this.request({
|
|
3191
|
+
path: `/orgs/${organizationId}/sites/${siteId}/insights/ads`,
|
|
3192
|
+
method: "GET",
|
|
3193
|
+
query,
|
|
3194
|
+
secure: true,
|
|
3195
|
+
format: "json",
|
|
3196
|
+
...params
|
|
3197
|
+
}),
|
|
3149
3198
|
getSearchAnalyticsForSiteById: (organizationId, siteId, query, params = {}) => this.request({
|
|
3150
3199
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/search`,
|
|
3151
3200
|
method: "GET",
|
|
@@ -3161,13 +3210,6 @@ var Api = class extends HttpClient {
|
|
|
3161
3210
|
secure: true,
|
|
3162
3211
|
type: "application/json" /* Json */,
|
|
3163
3212
|
...params
|
|
3164
|
-
}),
|
|
3165
|
-
getSiteAdsStatsById: (organizationId, siteId, params = {}) => this.request({
|
|
3166
|
-
path: `/orgs/${organizationId}/sites/${siteId}/ads/stats`,
|
|
3167
|
-
method: "POST",
|
|
3168
|
-
secure: true,
|
|
3169
|
-
format: "json",
|
|
3170
|
-
...params
|
|
3171
3213
|
})
|
|
3172
3214
|
};
|
|
3173
3215
|
customHostnames = {
|
|
@@ -3375,9 +3417,11 @@ var GitBookAPI = class extends Api {
|
|
|
3375
3417
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
3376
3418
|
GitBookAPI,
|
|
3377
3419
|
GitBookAPIError,
|
|
3420
|
+
GitSyncOperationStage,
|
|
3378
3421
|
GitSyncOperationState,
|
|
3379
3422
|
HttpClient,
|
|
3380
3423
|
ImportContentSource,
|
|
3424
|
+
InsightsInterval,
|
|
3381
3425
|
IntegrationCategory,
|
|
3382
3426
|
IntegrationInstallationSiteSelection,
|
|
3383
3427
|
IntegrationInstallationSpaceSelection,
|
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.76.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -389,6 +389,25 @@ var OrganizationCommunityType = /* @__PURE__ */ ((OrganizationCommunityType2) =>
|
|
|
389
389
|
OrganizationCommunityType2["Education"] = "education";
|
|
390
390
|
return OrganizationCommunityType2;
|
|
391
391
|
})(OrganizationCommunityType || {});
|
|
392
|
+
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
393
|
+
BillingProduct2["Free2024"] = "free_2024";
|
|
394
|
+
BillingProduct2["Plus2024"] = "plus_2024";
|
|
395
|
+
BillingProduct2["Pro2024"] = "pro_2024";
|
|
396
|
+
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
397
|
+
BillingProduct2["Free"] = "free";
|
|
398
|
+
BillingProduct2["Plus"] = "plus";
|
|
399
|
+
BillingProduct2["Pro"] = "pro";
|
|
400
|
+
BillingProduct2["Team"] = "team";
|
|
401
|
+
BillingProduct2["Business"] = "business";
|
|
402
|
+
BillingProduct2["Legacy"] = "legacy";
|
|
403
|
+
BillingProduct2["Startup"] = "startup";
|
|
404
|
+
BillingProduct2["Enterprise"] = "enterprise";
|
|
405
|
+
BillingProduct2["Community"] = "community";
|
|
406
|
+
BillingProduct2["TeamOct2019Free"] = "team_oct_2019_free";
|
|
407
|
+
BillingProduct2["TeamDec2021"] = "team_dec_2021";
|
|
408
|
+
BillingProduct2["BusinessDec2021"] = "business_dec_2021";
|
|
409
|
+
return BillingProduct2;
|
|
410
|
+
})(BillingProduct || {});
|
|
392
411
|
var IntegrationTarget = /* @__PURE__ */ ((IntegrationTarget2) => {
|
|
393
412
|
IntegrationTarget2["All"] = "all";
|
|
394
413
|
IntegrationTarget2["Site"] = "site";
|
|
@@ -563,31 +582,6 @@ var ContentKitIcon = /* @__PURE__ */ ((ContentKitIcon2) => {
|
|
|
563
582
|
ContentKitIcon2["Lock"] = "lock";
|
|
564
583
|
return ContentKitIcon2;
|
|
565
584
|
})(ContentKitIcon || {});
|
|
566
|
-
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
567
|
-
TeamMemberRole2["Owner"] = "owner";
|
|
568
|
-
TeamMemberRole2["Member"] = "member";
|
|
569
|
-
return TeamMemberRole2;
|
|
570
|
-
})(TeamMemberRole || {});
|
|
571
|
-
var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
572
|
-
BillingProduct2["Free2024"] = "free_2024";
|
|
573
|
-
BillingProduct2["Plus2024"] = "plus_2024";
|
|
574
|
-
BillingProduct2["Pro2024"] = "pro_2024";
|
|
575
|
-
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
576
|
-
BillingProduct2["Free"] = "free";
|
|
577
|
-
BillingProduct2["Plus"] = "plus";
|
|
578
|
-
BillingProduct2["Pro"] = "pro";
|
|
579
|
-
BillingProduct2["Team"] = "team";
|
|
580
|
-
BillingProduct2["Business"] = "business";
|
|
581
|
-
BillingProduct2["Legacy"] = "legacy";
|
|
582
|
-
BillingProduct2["Startup"] = "startup";
|
|
583
|
-
BillingProduct2["Enterprise"] = "enterprise";
|
|
584
|
-
return BillingProduct2;
|
|
585
|
-
})(BillingProduct || {});
|
|
586
|
-
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
587
|
-
BillingInterval2["Monthly"] = "monthly";
|
|
588
|
-
BillingInterval2["Yearly"] = "yearly";
|
|
589
|
-
return BillingInterval2;
|
|
590
|
-
})(BillingInterval || {});
|
|
591
585
|
var SiteType = /* @__PURE__ */ ((SiteType2) => {
|
|
592
586
|
SiteType2["Basic"] = "basic";
|
|
593
587
|
SiteType2["Premium"] = "premium";
|
|
@@ -609,6 +603,16 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
|
|
|
609
603
|
SiteAdsTopic2["Crypto"] = "crypto";
|
|
610
604
|
return SiteAdsTopic2;
|
|
611
605
|
})(SiteAdsTopic || {});
|
|
606
|
+
var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
|
|
607
|
+
TeamMemberRole2["Owner"] = "owner";
|
|
608
|
+
TeamMemberRole2["Member"] = "member";
|
|
609
|
+
return TeamMemberRole2;
|
|
610
|
+
})(TeamMemberRole || {});
|
|
611
|
+
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
612
|
+
BillingInterval2["Monthly"] = "monthly";
|
|
613
|
+
BillingInterval2["Yearly"] = "yearly";
|
|
614
|
+
return BillingInterval2;
|
|
615
|
+
})(BillingInterval || {});
|
|
612
616
|
var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
613
617
|
CustomizationIconsStyle2["Regular"] = "regular";
|
|
614
618
|
CustomizationIconsStyle2["Solid"] = "solid";
|
|
@@ -617,6 +621,13 @@ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
|
617
621
|
CustomizationIconsStyle2["Thin"] = "thin";
|
|
618
622
|
return CustomizationIconsStyle2;
|
|
619
623
|
})(CustomizationIconsStyle || {});
|
|
624
|
+
var InsightsInterval = /* @__PURE__ */ ((InsightsInterval2) => {
|
|
625
|
+
InsightsInterval2["Day"] = "day";
|
|
626
|
+
InsightsInterval2["Week"] = "week";
|
|
627
|
+
InsightsInterval2["Month"] = "month";
|
|
628
|
+
InsightsInterval2["Year"] = "year";
|
|
629
|
+
return InsightsInterval2;
|
|
630
|
+
})(InsightsInterval || {});
|
|
620
631
|
var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
|
|
621
632
|
CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
|
|
622
633
|
CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
|
|
@@ -687,6 +698,13 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
687
698
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
688
699
|
return RevisionSemanticChangeType2;
|
|
689
700
|
})(RevisionSemanticChangeType || {});
|
|
701
|
+
var GitSyncOperationStage = /* @__PURE__ */ ((GitSyncOperationStage2) => {
|
|
702
|
+
GitSyncOperationStage2["RepoFetch"] = "repo_fetch";
|
|
703
|
+
GitSyncOperationStage2["ConfigCheck"] = "config_check";
|
|
704
|
+
GitSyncOperationStage2["ContentProcess"] = "content_process";
|
|
705
|
+
GitSyncOperationStage2["Finalize"] = "finalize";
|
|
706
|
+
return GitSyncOperationStage2;
|
|
707
|
+
})(GitSyncOperationStage || {});
|
|
690
708
|
var BillingTrialStatus = /* @__PURE__ */ ((BillingTrialStatus2) => {
|
|
691
709
|
BillingTrialStatus2["Notapplicable"] = "notapplicable";
|
|
692
710
|
BillingTrialStatus2["None"] = "none";
|
|
@@ -2059,25 +2077,28 @@ var Api = class extends HttpClient {
|
|
|
2059
2077
|
format: "json",
|
|
2060
2078
|
...params
|
|
2061
2079
|
}),
|
|
2062
|
-
installIntegrationOnSpace: (integrationName, installationId, data, params = {}) => this.request({
|
|
2080
|
+
installIntegrationOnSpace: (integrationName, installationId, data, query, params = {}) => this.request({
|
|
2063
2081
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces`,
|
|
2064
2082
|
method: "POST",
|
|
2083
|
+
query,
|
|
2065
2084
|
body: data,
|
|
2066
2085
|
secure: true,
|
|
2067
2086
|
type: "application/json" /* Json */,
|
|
2068
2087
|
format: "json",
|
|
2069
2088
|
...params
|
|
2070
2089
|
}),
|
|
2071
|
-
getIntegrationSpaceInstallation: (integrationName, installationId, spaceId, params = {}) => this.request({
|
|
2090
|
+
getIntegrationSpaceInstallation: (integrationName, installationId, spaceId, query, params = {}) => this.request({
|
|
2072
2091
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
|
|
2073
2092
|
method: "GET",
|
|
2093
|
+
query,
|
|
2074
2094
|
secure: true,
|
|
2075
2095
|
format: "json",
|
|
2076
2096
|
...params
|
|
2077
2097
|
}),
|
|
2078
|
-
updateIntegrationSpaceInstallation: (integrationName, installationId, spaceId, data, params = {}) => this.request({
|
|
2098
|
+
updateIntegrationSpaceInstallation: (integrationName, installationId, spaceId, data, query, params = {}) => this.request({
|
|
2079
2099
|
path: `/integrations/${integrationName}/installations/${installationId}/spaces/${spaceId}`,
|
|
2080
2100
|
method: "PATCH",
|
|
2101
|
+
query,
|
|
2081
2102
|
body: data,
|
|
2082
2103
|
secure: true,
|
|
2083
2104
|
type: "application/json" /* Json */,
|
|
@@ -2098,25 +2119,28 @@ var Api = class extends HttpClient {
|
|
|
2098
2119
|
format: "json",
|
|
2099
2120
|
...params
|
|
2100
2121
|
}),
|
|
2101
|
-
installIntegrationOnSite: (integrationName, installationId, data, params = {}) => this.request({
|
|
2122
|
+
installIntegrationOnSite: (integrationName, installationId, data, query, params = {}) => this.request({
|
|
2102
2123
|
path: `/integrations/${integrationName}/installations/${installationId}/sites`,
|
|
2103
2124
|
method: "POST",
|
|
2125
|
+
query,
|
|
2104
2126
|
body: data,
|
|
2105
2127
|
secure: true,
|
|
2106
2128
|
type: "application/json" /* Json */,
|
|
2107
2129
|
format: "json",
|
|
2108
2130
|
...params
|
|
2109
2131
|
}),
|
|
2110
|
-
getIntegrationSiteInstallation: (integrationName, installationId, siteId, params = {}) => this.request({
|
|
2132
|
+
getIntegrationSiteInstallation: (integrationName, installationId, siteId, query, params = {}) => this.request({
|
|
2111
2133
|
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2112
2134
|
method: "GET",
|
|
2135
|
+
query,
|
|
2113
2136
|
secure: true,
|
|
2114
2137
|
format: "json",
|
|
2115
2138
|
...params
|
|
2116
2139
|
}),
|
|
2117
|
-
updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, params = {}) => this.request({
|
|
2140
|
+
updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, query, params = {}) => this.request({
|
|
2118
2141
|
path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
|
|
2119
2142
|
method: "PATCH",
|
|
2143
|
+
query,
|
|
2120
2144
|
body: data,
|
|
2121
2145
|
secure: true,
|
|
2122
2146
|
type: "application/json" /* Json */,
|
|
@@ -2170,6 +2194,13 @@ var Api = class extends HttpClient {
|
|
|
2170
2194
|
format: "json",
|
|
2171
2195
|
...params
|
|
2172
2196
|
}),
|
|
2197
|
+
getOrganizationAllContent: (organizationId, params = {}) => this.request({
|
|
2198
|
+
path: `/orgs/${organizationId}/content`,
|
|
2199
|
+
method: "GET",
|
|
2200
|
+
secure: true,
|
|
2201
|
+
format: "json",
|
|
2202
|
+
...params
|
|
2203
|
+
}),
|
|
2173
2204
|
listMembersInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
2174
2205
|
path: `/orgs/${organizationId}/members`,
|
|
2175
2206
|
method: "GET",
|
|
@@ -2365,7 +2396,7 @@ var Api = class extends HttpClient {
|
|
|
2365
2396
|
...params
|
|
2366
2397
|
}),
|
|
2367
2398
|
getOrganizationBillingPortal: (organizationId, params = {}) => this.request({
|
|
2368
|
-
path: `/orgs/${organizationId}/billing`,
|
|
2399
|
+
path: `/orgs/${organizationId}/billing/portal`,
|
|
2369
2400
|
method: "GET",
|
|
2370
2401
|
secure: true,
|
|
2371
2402
|
format: "json",
|
|
@@ -2785,6 +2816,14 @@ var Api = class extends HttpClient {
|
|
|
2785
2816
|
secure: true,
|
|
2786
2817
|
...params
|
|
2787
2818
|
}),
|
|
2819
|
+
getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2820
|
+
path: `/orgs/${organizationId}/sites/${siteId}/published`,
|
|
2821
|
+
method: "GET",
|
|
2822
|
+
query,
|
|
2823
|
+
secure: true,
|
|
2824
|
+
format: "json",
|
|
2825
|
+
...params
|
|
2826
|
+
}),
|
|
2788
2827
|
publishSite: (organizationId, siteId, params = {}) => this.request({
|
|
2789
2828
|
path: `/orgs/${organizationId}/sites/${siteId}/publish`,
|
|
2790
2829
|
method: "POST",
|
|
@@ -3076,6 +3115,14 @@ var Api = class extends HttpClient {
|
|
|
3076
3115
|
type: "application/json" /* Json */,
|
|
3077
3116
|
...params
|
|
3078
3117
|
}),
|
|
3118
|
+
getAdsInsightsForSiteById: (organizationId, siteId, query, params = {}) => this.request({
|
|
3119
|
+
path: `/orgs/${organizationId}/sites/${siteId}/insights/ads`,
|
|
3120
|
+
method: "GET",
|
|
3121
|
+
query,
|
|
3122
|
+
secure: true,
|
|
3123
|
+
format: "json",
|
|
3124
|
+
...params
|
|
3125
|
+
}),
|
|
3079
3126
|
getSearchAnalyticsForSiteById: (organizationId, siteId, query, params = {}) => this.request({
|
|
3080
3127
|
path: `/orgs/${organizationId}/sites/${siteId}/insights/search`,
|
|
3081
3128
|
method: "GET",
|
|
@@ -3091,13 +3138,6 @@ var Api = class extends HttpClient {
|
|
|
3091
3138
|
secure: true,
|
|
3092
3139
|
type: "application/json" /* Json */,
|
|
3093
3140
|
...params
|
|
3094
|
-
}),
|
|
3095
|
-
getSiteAdsStatsById: (organizationId, siteId, params = {}) => this.request({
|
|
3096
|
-
path: `/orgs/${organizationId}/sites/${siteId}/ads/stats`,
|
|
3097
|
-
method: "POST",
|
|
3098
|
-
secure: true,
|
|
3099
|
-
format: "json",
|
|
3100
|
-
...params
|
|
3101
3141
|
})
|
|
3102
3142
|
};
|
|
3103
3143
|
customHostnames = {
|
|
@@ -3304,9 +3344,11 @@ export {
|
|
|
3304
3344
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
3305
3345
|
GitBookAPI,
|
|
3306
3346
|
GitBookAPIError,
|
|
3347
|
+
GitSyncOperationStage,
|
|
3307
3348
|
GitSyncOperationState,
|
|
3308
3349
|
HttpClient,
|
|
3309
3350
|
ImportContentSource,
|
|
3351
|
+
InsightsInterval,
|
|
3310
3352
|
IntegrationCategory,
|
|
3311
3353
|
IntegrationInstallationSiteSelection,
|
|
3312
3354
|
IntegrationInstallationSpaceSelection,
|