@gitbook/api 0.124.0 → 0.126.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 +184 -118
- package/dist/index.cjs +61 -18
- package/dist/index.js +60 -18
- package/package.json +1 -1
- package/spec/openapi.json +687 -216
- package/spec/openapi.yaml +438 -158
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.126.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -346,6 +346,11 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
|
|
|
346
346
|
TranslationLanguage2["Sl"] = "sl";
|
|
347
347
|
return TranslationLanguage2;
|
|
348
348
|
})(TranslationLanguage || {});
|
|
349
|
+
var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
|
|
350
|
+
RevisionPageLayoutOptionsWidth2["Default"] = "default";
|
|
351
|
+
RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
|
|
352
|
+
return RevisionPageLayoutOptionsWidth2;
|
|
353
|
+
})(RevisionPageLayoutOptionsWidth || {});
|
|
349
354
|
var RevisionPageLayoutOptionsCoverSize = /* @__PURE__ */ ((RevisionPageLayoutOptionsCoverSize2) => {
|
|
350
355
|
RevisionPageLayoutOptionsCoverSize2["Hero"] = "hero";
|
|
351
356
|
RevisionPageLayoutOptionsCoverSize2["Full"] = "full";
|
|
@@ -366,9 +371,7 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
366
371
|
ImportContentSource2["Zip"] = "zip";
|
|
367
372
|
ImportContentSource2["Confluence"] = "confluence";
|
|
368
373
|
ImportContentSource2["GithubWiki"] = "github-wiki";
|
|
369
|
-
ImportContentSource2["DropboxPaper"] = "dropbox-paper";
|
|
370
374
|
ImportContentSource2["Notion"] = "notion";
|
|
371
|
-
ImportContentSource2["Quip"] = "quip";
|
|
372
375
|
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
373
376
|
return ImportContentSource2;
|
|
374
377
|
})(ImportContentSource || {});
|
|
@@ -404,15 +407,6 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
404
407
|
BillingProduct2["Free"] = "free";
|
|
405
408
|
BillingProduct2["Plus"] = "plus";
|
|
406
409
|
BillingProduct2["Pro"] = "pro";
|
|
407
|
-
BillingProduct2["Team"] = "team";
|
|
408
|
-
BillingProduct2["Business"] = "business";
|
|
409
|
-
BillingProduct2["Legacy"] = "legacy";
|
|
410
|
-
BillingProduct2["Startup"] = "startup";
|
|
411
|
-
BillingProduct2["Enterprise"] = "enterprise";
|
|
412
|
-
BillingProduct2["Community"] = "community";
|
|
413
|
-
BillingProduct2["TeamOct2019Free"] = "team_oct_2019_free";
|
|
414
|
-
BillingProduct2["TeamDec2021"] = "team_dec_2021";
|
|
415
|
-
BillingProduct2["BusinessDec2021"] = "business_dec_2021";
|
|
416
410
|
return BillingProduct2;
|
|
417
411
|
})(BillingProduct || {});
|
|
418
412
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
@@ -752,12 +746,6 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
|
752
746
|
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
753
747
|
return SiteExternalLinksTarget2;
|
|
754
748
|
})(SiteExternalLinksTarget || {});
|
|
755
|
-
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
756
|
-
AIMessageRole2["User"] = "user";
|
|
757
|
-
AIMessageRole2["Assistant"] = "assistant";
|
|
758
|
-
AIMessageRole2["Developer"] = "developer";
|
|
759
|
-
return AIMessageRole2;
|
|
760
|
-
})(AIMessageRole || {});
|
|
761
749
|
var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
762
750
|
AIModel2["Fast"] = "fast";
|
|
763
751
|
AIModel2["ReasoningLow"] = "reasoning-low";
|
|
@@ -954,6 +942,12 @@ var SiteAdsStatus = /* @__PURE__ */ ((SiteAdsStatus2) => {
|
|
|
954
942
|
SiteAdsStatus2["Disabled"] = "disabled";
|
|
955
943
|
return SiteAdsStatus2;
|
|
956
944
|
})(SiteAdsStatus || {});
|
|
945
|
+
var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
|
|
946
|
+
AIMessageRole2["User"] = "user";
|
|
947
|
+
AIMessageRole2["Assistant"] = "assistant";
|
|
948
|
+
AIMessageRole2["Developer"] = "developer";
|
|
949
|
+
return AIMessageRole2;
|
|
950
|
+
})(AIMessageRole || {});
|
|
957
951
|
var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
|
|
958
952
|
AgentStatus2["Idle"] = "idle";
|
|
959
953
|
AgentStatus2["Processing"] = "processing";
|
|
@@ -1760,6 +1754,14 @@ var Api = class extends HttpClient {
|
|
|
1760
1754
|
format: "json",
|
|
1761
1755
|
...params
|
|
1762
1756
|
}),
|
|
1757
|
+
getChangeRequestChanges: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1758
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/changes`,
|
|
1759
|
+
method: "GET",
|
|
1760
|
+
query,
|
|
1761
|
+
secure: true,
|
|
1762
|
+
format: "json",
|
|
1763
|
+
...params
|
|
1764
|
+
}),
|
|
1763
1765
|
getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1764
1766
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
|
|
1765
1767
|
method: "GET",
|
|
@@ -3411,6 +3413,45 @@ var Api = class extends HttpClient {
|
|
|
3411
3413
|
secure: true,
|
|
3412
3414
|
format: "json",
|
|
3413
3415
|
...params
|
|
3416
|
+
}),
|
|
3417
|
+
listSiteMcpServers: (organizationId, siteId, query, params = {}) => this.request({
|
|
3418
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers`,
|
|
3419
|
+
method: "GET",
|
|
3420
|
+
query,
|
|
3421
|
+
secure: true,
|
|
3422
|
+
format: "json",
|
|
3423
|
+
...params
|
|
3424
|
+
}),
|
|
3425
|
+
createSiteMcpServer: (organizationId, siteId, data, params = {}) => this.request({
|
|
3426
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers`,
|
|
3427
|
+
method: "POST",
|
|
3428
|
+
body: data,
|
|
3429
|
+
secure: true,
|
|
3430
|
+
type: "application/json" /* Json */,
|
|
3431
|
+
format: "json",
|
|
3432
|
+
...params
|
|
3433
|
+
}),
|
|
3434
|
+
getSiteMcpServerById: (organizationId, siteId, siteMcpServerId, params = {}) => this.request({
|
|
3435
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3436
|
+
method: "GET",
|
|
3437
|
+
secure: true,
|
|
3438
|
+
format: "json",
|
|
3439
|
+
...params
|
|
3440
|
+
}),
|
|
3441
|
+
updateSiteMcpServerById: (organizationId, siteId, siteMcpServerId, data, params = {}) => this.request({
|
|
3442
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3443
|
+
method: "PATCH",
|
|
3444
|
+
body: data,
|
|
3445
|
+
secure: true,
|
|
3446
|
+
type: "application/json" /* Json */,
|
|
3447
|
+
format: "json",
|
|
3448
|
+
...params
|
|
3449
|
+
}),
|
|
3450
|
+
deleteSiteMcpServerById: (organizationId, siteId, siteMcpServerId, params = {}) => this.request({
|
|
3451
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3452
|
+
method: "DELETE",
|
|
3453
|
+
secure: true,
|
|
3454
|
+
...params
|
|
3414
3455
|
})
|
|
3415
3456
|
};
|
|
3416
3457
|
subdomains = {
|
|
@@ -3652,6 +3693,7 @@ export {
|
|
|
3652
3693
|
OrganizationUseCase,
|
|
3653
3694
|
PageFeedbackRating,
|
|
3654
3695
|
RevisionPageLayoutOptionsCoverSize,
|
|
3696
|
+
RevisionPageLayoutOptionsWidth,
|
|
3655
3697
|
RevisionPageLayoutPreset,
|
|
3656
3698
|
RevisionPageType,
|
|
3657
3699
|
RevisionSemanticChangeType,
|