@gitbook/api 0.78.0 → 0.80.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 +191 -90
- package/dist/index.cjs +39 -15
- package/dist/index.js +37 -15
- package/package.json +1 -1
- package/spec/openapi.json +553 -231
- package/spec/openapi.yaml +375 -159
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.80.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -312,12 +312,12 @@ var SpaceEditMode = /* @__PURE__ */ ((SpaceEditMode2) => {
|
|
|
312
312
|
SpaceEditMode2["Locked"] = "locked";
|
|
313
313
|
return SpaceEditMode2;
|
|
314
314
|
})(SpaceEditMode || {});
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return
|
|
320
|
-
})(
|
|
315
|
+
var GitSyncProvider = /* @__PURE__ */ ((GitSyncProvider2) => {
|
|
316
|
+
GitSyncProvider2["Github"] = "github";
|
|
317
|
+
GitSyncProvider2["Gitlab"] = "gitlab";
|
|
318
|
+
GitSyncProvider2["GithubLegacy"] = "github-legacy";
|
|
319
|
+
return GitSyncProvider2;
|
|
320
|
+
})(GitSyncProvider || {});
|
|
321
321
|
var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
322
322
|
MemberRole2["Admin"] = "admin";
|
|
323
323
|
MemberRole2["Create"] = "create";
|
|
@@ -394,6 +394,7 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
394
394
|
BillingProduct2["Plus2024"] = "plus_2024";
|
|
395
395
|
BillingProduct2["Pro2024"] = "pro_2024";
|
|
396
396
|
BillingProduct2["Enterprise2024"] = "enterprise_2024";
|
|
397
|
+
BillingProduct2["Community2024"] = "community_2024";
|
|
397
398
|
BillingProduct2["Free"] = "free";
|
|
398
399
|
BillingProduct2["Plus"] = "plus";
|
|
399
400
|
BillingProduct2["Pro"] = "pro";
|
|
@@ -698,6 +699,17 @@ var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2)
|
|
|
698
699
|
RevisionSemanticChangeType2["CustomFieldsEdited"] = "custom_fields_edited";
|
|
699
700
|
return RevisionSemanticChangeType2;
|
|
700
701
|
})(RevisionSemanticChangeType || {});
|
|
702
|
+
var GitSyncOperationState = /* @__PURE__ */ ((GitSyncOperationState2) => {
|
|
703
|
+
GitSyncOperationState2["Running"] = "running";
|
|
704
|
+
GitSyncOperationState2["Failure"] = "failure";
|
|
705
|
+
GitSyncOperationState2["Success"] = "success";
|
|
706
|
+
return GitSyncOperationState2;
|
|
707
|
+
})(GitSyncOperationState || {});
|
|
708
|
+
var GitSyncOperationDirection = /* @__PURE__ */ ((GitSyncOperationDirection2) => {
|
|
709
|
+
GitSyncOperationDirection2["Export"] = "export";
|
|
710
|
+
GitSyncOperationDirection2["Import"] = "import";
|
|
711
|
+
return GitSyncOperationDirection2;
|
|
712
|
+
})(GitSyncOperationDirection || {});
|
|
701
713
|
var GitSyncOperationStage = /* @__PURE__ */ ((GitSyncOperationStage2) => {
|
|
702
714
|
GitSyncOperationStage2["RepoFetch"] = "repo_fetch";
|
|
703
715
|
GitSyncOperationStage2["ConfigCheck"] = "config_check";
|
|
@@ -2378,14 +2390,6 @@ var Api = class extends HttpClient {
|
|
|
2378
2390
|
format: "json",
|
|
2379
2391
|
...params
|
|
2380
2392
|
}),
|
|
2381
|
-
listSpacesWithGitSyncInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
2382
|
-
path: `/orgs/${organizationId}/spaces/gitsync`,
|
|
2383
|
-
method: "GET",
|
|
2384
|
-
query,
|
|
2385
|
-
secure: true,
|
|
2386
|
-
format: "json",
|
|
2387
|
-
...params
|
|
2388
|
-
}),
|
|
2389
2393
|
listCollectionsInOrganizationById: (organizationId, query, params = {}) => this.request({
|
|
2390
2394
|
path: `/orgs/${organizationId}/collections`,
|
|
2391
2395
|
method: "GET",
|
|
@@ -2527,6 +2531,13 @@ var Api = class extends HttpClient {
|
|
|
2527
2531
|
secure: true,
|
|
2528
2532
|
...params
|
|
2529
2533
|
}),
|
|
2534
|
+
listSsoProviderLoginsInOrganization: (organizationId, params = {}) => this.request({
|
|
2535
|
+
path: `/orgs/${organizationId}/sso`,
|
|
2536
|
+
method: "GET",
|
|
2537
|
+
secure: true,
|
|
2538
|
+
format: "json",
|
|
2539
|
+
...params
|
|
2540
|
+
}),
|
|
2530
2541
|
getUsageForOrganizationById: (organizationId, params = {}) => this.request({
|
|
2531
2542
|
path: `/orgs/${organizationId}/usage`,
|
|
2532
2543
|
method: "GET",
|
|
@@ -2961,6 +2972,15 @@ var Api = class extends HttpClient {
|
|
|
2961
2972
|
format: "json",
|
|
2962
2973
|
...params
|
|
2963
2974
|
}),
|
|
2975
|
+
streamAskInSite: (organizationId, siteId, data, query, params = {}) => this.streamRequest({
|
|
2976
|
+
path: `/orgs/${organizationId}/sites/${siteId}/ask`,
|
|
2977
|
+
method: "POST",
|
|
2978
|
+
query,
|
|
2979
|
+
body: data,
|
|
2980
|
+
secure: true,
|
|
2981
|
+
type: "application/json" /* Json */,
|
|
2982
|
+
...params
|
|
2983
|
+
}),
|
|
2964
2984
|
updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2965
2985
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
|
|
2966
2986
|
method: "PATCH",
|
|
@@ -3320,8 +3340,10 @@ export {
|
|
|
3320
3340
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
3321
3341
|
GitBookAPI,
|
|
3322
3342
|
GitBookAPIError,
|
|
3343
|
+
GitSyncOperationDirection,
|
|
3323
3344
|
GitSyncOperationStage,
|
|
3324
3345
|
GitSyncOperationState,
|
|
3346
|
+
GitSyncProvider,
|
|
3325
3347
|
HttpClient,
|
|
3326
3348
|
ImportContentSource,
|
|
3327
3349
|
InsightsInterval,
|