@gitbook/api 0.124.0 → 0.125.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 +148 -15
- package/dist/index.cjs +48 -12
- package/dist/index.js +48 -12
- package/package.json +1 -1
- package/spec/openapi.json +469 -28
- package/spec/openapi.yaml +290 -27
package/dist/client.d.ts
CHANGED
|
@@ -1602,9 +1602,7 @@ export declare enum ImportContentSource {
|
|
|
1602
1602
|
Zip = "zip",
|
|
1603
1603
|
Confluence = "confluence",
|
|
1604
1604
|
GithubWiki = "github-wiki",
|
|
1605
|
-
DropboxPaper = "dropbox-paper",
|
|
1606
1605
|
Notion = "notion",
|
|
1607
|
-
Quip = "quip",
|
|
1608
1606
|
GoogleDocs = "google-docs"
|
|
1609
1607
|
}
|
|
1610
1608
|
export interface ImportContent {
|
|
@@ -1672,16 +1670,7 @@ export declare enum BillingProduct {
|
|
|
1672
1670
|
Community2024 = "community_2024",
|
|
1673
1671
|
Free = "free",
|
|
1674
1672
|
Plus = "plus",
|
|
1675
|
-
Pro = "pro"
|
|
1676
|
-
Team = "team",
|
|
1677
|
-
Business = "business",
|
|
1678
|
-
Legacy = "legacy",
|
|
1679
|
-
Startup = "startup",
|
|
1680
|
-
Enterprise = "enterprise",
|
|
1681
|
-
Community = "community",
|
|
1682
|
-
TeamOct2019Free = "team_oct_2019_free",
|
|
1683
|
-
TeamDec2021 = "team_dec_2021",
|
|
1684
|
-
BusinessDec2021 = "business_dec_2021"
|
|
1673
|
+
Pro = "pro"
|
|
1685
1674
|
}
|
|
1686
1675
|
/** Interval for a billing subscription */
|
|
1687
1676
|
export declare enum BillingInterval {
|
|
@@ -5325,7 +5314,17 @@ export interface AIToolCallCreateAgentTask {
|
|
|
5325
5314
|
title: string;
|
|
5326
5315
|
};
|
|
5327
5316
|
}
|
|
5328
|
-
|
|
5317
|
+
/** Tool called from an MCP server */
|
|
5318
|
+
export interface AIToolCallMCP {
|
|
5319
|
+
tool: 'mcp';
|
|
5320
|
+
/** The ID of the MCP server that has been called. */
|
|
5321
|
+
mcpServerId: string;
|
|
5322
|
+
/** The name of the tool that has been called. */
|
|
5323
|
+
mcpToolName: string;
|
|
5324
|
+
/** The title of the tool that has been called. */
|
|
5325
|
+
mcpToolTitle?: string;
|
|
5326
|
+
}
|
|
5327
|
+
export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateAgentTask | AIToolCallMCP;
|
|
5329
5328
|
/** Message emitted by the server to indicate that the AI has called a tool. */
|
|
5330
5329
|
export interface AIStreamResponseToolCall {
|
|
5331
5330
|
type: 'response_tool_call';
|
|
@@ -5669,7 +5668,7 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
5669
5668
|
values: SiteInsightsVisitorOS[];
|
|
5670
5669
|
} | {
|
|
5671
5670
|
column: 'visitorBot';
|
|
5672
|
-
values: SiteInsightsVisitorBot[];
|
|
5671
|
+
values: (SiteInsightsVisitorBot | '')[];
|
|
5673
5672
|
} | {
|
|
5674
5673
|
column: 'eventLinkTargetValue';
|
|
5675
5674
|
values: ContentRef[];
|
|
@@ -5849,6 +5848,32 @@ export interface SiteRedirect {
|
|
|
5849
5848
|
source: SiteRedirectSourcePath;
|
|
5850
5849
|
destination: SiteRedirectDestination;
|
|
5851
5850
|
}
|
|
5851
|
+
/**
|
|
5852
|
+
* Name of the MCP server
|
|
5853
|
+
* @minLength 1
|
|
5854
|
+
* @maxLength 100
|
|
5855
|
+
*/
|
|
5856
|
+
export type SiteMcpServerName = string;
|
|
5857
|
+
/** HTTP headers sent with requests to this server */
|
|
5858
|
+
export type SiteMcpServerHeaders = Record<string, string>;
|
|
5859
|
+
export interface SiteMcpServer {
|
|
5860
|
+
object: 'site-mcp-server';
|
|
5861
|
+
/** Unique identifier for the MCP server */
|
|
5862
|
+
id: string;
|
|
5863
|
+
/** Name of the MCP server */
|
|
5864
|
+
name: SiteMcpServerName;
|
|
5865
|
+
url: URL;
|
|
5866
|
+
/** HTTP headers sent with requests to this server */
|
|
5867
|
+
headers: SiteMcpServerHeaders;
|
|
5868
|
+
/** URLs associated with the object */
|
|
5869
|
+
urls: {
|
|
5870
|
+
/**
|
|
5871
|
+
* URL of the MCP server in the API
|
|
5872
|
+
* @format uri
|
|
5873
|
+
*/
|
|
5874
|
+
location: string;
|
|
5875
|
+
};
|
|
5876
|
+
}
|
|
5852
5877
|
export interface Subdomain {
|
|
5853
5878
|
object: 'subdomain';
|
|
5854
5879
|
/**
|
|
@@ -6662,6 +6687,15 @@ export interface SiteShareLinkChannel {
|
|
|
6662
6687
|
site: string;
|
|
6663
6688
|
siteShareLink: string;
|
|
6664
6689
|
}
|
|
6690
|
+
export interface SiteMcpServersChannel {
|
|
6691
|
+
channel: 'site-mcp-servers';
|
|
6692
|
+
site: string;
|
|
6693
|
+
}
|
|
6694
|
+
export interface SiteMcpServerChannel {
|
|
6695
|
+
channel: 'site-mcp-server';
|
|
6696
|
+
site: string;
|
|
6697
|
+
siteMcpServer: string;
|
|
6698
|
+
}
|
|
6665
6699
|
export interface SiteSectionChannel {
|
|
6666
6700
|
channel: 'site-section';
|
|
6667
6701
|
site: string;
|
|
@@ -6707,7 +6741,7 @@ export interface AgentTasksChannel {
|
|
|
6707
6741
|
organization: string;
|
|
6708
6742
|
}
|
|
6709
6743
|
/** Channel to subscribe to for realtime updates. */
|
|
6710
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationSettingsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationSettingsChannel | AgentTaskChannel | AgentTasksChannel;
|
|
6744
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationSettingsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationSettingsChannel | AgentTaskChannel | AgentTasksChannel;
|
|
6711
6745
|
export interface GitSyncOperationChannelData {
|
|
6712
6746
|
channel: 'space-gitsync-operation';
|
|
6713
6747
|
data: GitSyncOperation;
|
|
@@ -8317,6 +8351,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8317
8351
|
*/
|
|
8318
8352
|
computed?: boolean;
|
|
8319
8353
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionReusableContent, any>>;
|
|
8354
|
+
/**
|
|
8355
|
+
* @description Return the semantic changes between a change request and its base revision.
|
|
8356
|
+
*
|
|
8357
|
+
* @tags change-request-content
|
|
8358
|
+
* @name GetChangeRequestChanges
|
|
8359
|
+
* @summary Get change request semantic changes
|
|
8360
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/changes
|
|
8361
|
+
* @secure
|
|
8362
|
+
*/
|
|
8363
|
+
getChangeRequestChanges: (spaceId: string, changeRequestId: string, query?: {
|
|
8364
|
+
/**
|
|
8365
|
+
* Limit the number of changes returned
|
|
8366
|
+
* @default 10
|
|
8367
|
+
*/
|
|
8368
|
+
limit?: number;
|
|
8369
|
+
}, params?: RequestParams) => Promise<HttpResponse<RevisionSemanticChanges, {
|
|
8370
|
+
error: {
|
|
8371
|
+
/** @format int32 */
|
|
8372
|
+
code: 404;
|
|
8373
|
+
message: string;
|
|
8374
|
+
};
|
|
8375
|
+
}>>;
|
|
8320
8376
|
/**
|
|
8321
8377
|
* No description
|
|
8322
8378
|
*
|
|
@@ -12329,6 +12385,83 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12329
12385
|
message: string;
|
|
12330
12386
|
};
|
|
12331
12387
|
}>>;
|
|
12388
|
+
/**
|
|
12389
|
+
* No description
|
|
12390
|
+
*
|
|
12391
|
+
* @tags site-mcp-servers
|
|
12392
|
+
* @name ListSiteMcpServers
|
|
12393
|
+
* @summary List all MCP servers for a site
|
|
12394
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/mcp-servers
|
|
12395
|
+
* @secure
|
|
12396
|
+
*/
|
|
12397
|
+
listSiteMcpServers: (organizationId: string, siteId: string, query?: {
|
|
12398
|
+
/** Identifier of the page results to fetch. */
|
|
12399
|
+
page?: string;
|
|
12400
|
+
/**
|
|
12401
|
+
* The number of results per page
|
|
12402
|
+
* @min 0
|
|
12403
|
+
* @max 1000
|
|
12404
|
+
*/
|
|
12405
|
+
limit?: number;
|
|
12406
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12407
|
+
items: SiteMcpServer[];
|
|
12408
|
+
}, any>>;
|
|
12409
|
+
/**
|
|
12410
|
+
* No description
|
|
12411
|
+
*
|
|
12412
|
+
* @tags site-mcp-servers
|
|
12413
|
+
* @name CreateSiteMcpServer
|
|
12414
|
+
* @summary Create a new MCP server
|
|
12415
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/mcp-servers
|
|
12416
|
+
* @secure
|
|
12417
|
+
*/
|
|
12418
|
+
createSiteMcpServer: (organizationId: string, siteId: string, data: {
|
|
12419
|
+
/** Name of the MCP server */
|
|
12420
|
+
name: SiteMcpServerName;
|
|
12421
|
+
url: URL;
|
|
12422
|
+
/** HTTP headers sent with requests to this server */
|
|
12423
|
+
headers: SiteMcpServerHeaders;
|
|
12424
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
12425
|
+
/**
|
|
12426
|
+
* No description
|
|
12427
|
+
*
|
|
12428
|
+
* @tags site-mcp-servers
|
|
12429
|
+
* @name GetSiteMcpServerById
|
|
12430
|
+
* @summary Get a site MCP server
|
|
12431
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
|
|
12432
|
+
* @secure
|
|
12433
|
+
*/
|
|
12434
|
+
getSiteMcpServerById: (organizationId: string, siteId: string, siteMcpServerId: string, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
12435
|
+
/**
|
|
12436
|
+
* No description
|
|
12437
|
+
*
|
|
12438
|
+
* @tags site-mcp-servers
|
|
12439
|
+
* @name UpdateSiteMcpServerById
|
|
12440
|
+
* @summary Update a site MCP server
|
|
12441
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
|
|
12442
|
+
* @secure
|
|
12443
|
+
*/
|
|
12444
|
+
updateSiteMcpServerById: (organizationId: string, siteId: string, siteMcpServerId: string, data: {
|
|
12445
|
+
/** Name of the MCP server */
|
|
12446
|
+
name?: SiteMcpServerName;
|
|
12447
|
+
/**
|
|
12448
|
+
* @format uri
|
|
12449
|
+
* @maxLength 2048
|
|
12450
|
+
*/
|
|
12451
|
+
url?: string;
|
|
12452
|
+
/** HTTP headers sent with requests to this server */
|
|
12453
|
+
headers?: SiteMcpServerHeaders;
|
|
12454
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteMcpServer, any>>;
|
|
12455
|
+
/**
|
|
12456
|
+
* No description
|
|
12457
|
+
*
|
|
12458
|
+
* @tags site-mcp-servers
|
|
12459
|
+
* @name DeleteSiteMcpServerById
|
|
12460
|
+
* @summary Delete a site MCP server
|
|
12461
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
|
|
12462
|
+
* @secure
|
|
12463
|
+
*/
|
|
12464
|
+
deleteSiteMcpServerById: (organizationId: string, siteId: string, siteMcpServerId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
12332
12465
|
};
|
|
12333
12466
|
subdomains: {
|
|
12334
12467
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -273,7 +273,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
273
273
|
|
|
274
274
|
// package.json
|
|
275
275
|
var name = "@gitbook/api";
|
|
276
|
-
var version = "0.
|
|
276
|
+
var version = "0.125.0";
|
|
277
277
|
|
|
278
278
|
// src/client.ts
|
|
279
279
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -467,9 +467,7 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
467
467
|
ImportContentSource2["Zip"] = "zip";
|
|
468
468
|
ImportContentSource2["Confluence"] = "confluence";
|
|
469
469
|
ImportContentSource2["GithubWiki"] = "github-wiki";
|
|
470
|
-
ImportContentSource2["DropboxPaper"] = "dropbox-paper";
|
|
471
470
|
ImportContentSource2["Notion"] = "notion";
|
|
472
|
-
ImportContentSource2["Quip"] = "quip";
|
|
473
471
|
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
474
472
|
return ImportContentSource2;
|
|
475
473
|
})(ImportContentSource || {});
|
|
@@ -505,15 +503,6 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
505
503
|
BillingProduct2["Free"] = "free";
|
|
506
504
|
BillingProduct2["Plus"] = "plus";
|
|
507
505
|
BillingProduct2["Pro"] = "pro";
|
|
508
|
-
BillingProduct2["Team"] = "team";
|
|
509
|
-
BillingProduct2["Business"] = "business";
|
|
510
|
-
BillingProduct2["Legacy"] = "legacy";
|
|
511
|
-
BillingProduct2["Startup"] = "startup";
|
|
512
|
-
BillingProduct2["Enterprise"] = "enterprise";
|
|
513
|
-
BillingProduct2["Community"] = "community";
|
|
514
|
-
BillingProduct2["TeamOct2019Free"] = "team_oct_2019_free";
|
|
515
|
-
BillingProduct2["TeamDec2021"] = "team_dec_2021";
|
|
516
|
-
BillingProduct2["BusinessDec2021"] = "business_dec_2021";
|
|
517
506
|
return BillingProduct2;
|
|
518
507
|
})(BillingProduct || {});
|
|
519
508
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
@@ -1861,6 +1850,14 @@ var Api = class extends HttpClient {
|
|
|
1861
1850
|
format: "json",
|
|
1862
1851
|
...params
|
|
1863
1852
|
}),
|
|
1853
|
+
getChangeRequestChanges: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1854
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/changes`,
|
|
1855
|
+
method: "GET",
|
|
1856
|
+
query,
|
|
1857
|
+
secure: true,
|
|
1858
|
+
format: "json",
|
|
1859
|
+
...params
|
|
1860
|
+
}),
|
|
1864
1861
|
getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1865
1862
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
|
|
1866
1863
|
method: "GET",
|
|
@@ -3512,6 +3509,45 @@ var Api = class extends HttpClient {
|
|
|
3512
3509
|
secure: true,
|
|
3513
3510
|
format: "json",
|
|
3514
3511
|
...params
|
|
3512
|
+
}),
|
|
3513
|
+
listSiteMcpServers: (organizationId, siteId, query, params = {}) => this.request({
|
|
3514
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers`,
|
|
3515
|
+
method: "GET",
|
|
3516
|
+
query,
|
|
3517
|
+
secure: true,
|
|
3518
|
+
format: "json",
|
|
3519
|
+
...params
|
|
3520
|
+
}),
|
|
3521
|
+
createSiteMcpServer: (organizationId, siteId, data, params = {}) => this.request({
|
|
3522
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers`,
|
|
3523
|
+
method: "POST",
|
|
3524
|
+
body: data,
|
|
3525
|
+
secure: true,
|
|
3526
|
+
type: "application/json" /* Json */,
|
|
3527
|
+
format: "json",
|
|
3528
|
+
...params
|
|
3529
|
+
}),
|
|
3530
|
+
getSiteMcpServerById: (organizationId, siteId, siteMcpServerId, params = {}) => this.request({
|
|
3531
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3532
|
+
method: "GET",
|
|
3533
|
+
secure: true,
|
|
3534
|
+
format: "json",
|
|
3535
|
+
...params
|
|
3536
|
+
}),
|
|
3537
|
+
updateSiteMcpServerById: (organizationId, siteId, siteMcpServerId, data, params = {}) => this.request({
|
|
3538
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3539
|
+
method: "PATCH",
|
|
3540
|
+
body: data,
|
|
3541
|
+
secure: true,
|
|
3542
|
+
type: "application/json" /* Json */,
|
|
3543
|
+
format: "json",
|
|
3544
|
+
...params
|
|
3545
|
+
}),
|
|
3546
|
+
deleteSiteMcpServerById: (organizationId, siteId, siteMcpServerId, params = {}) => this.request({
|
|
3547
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3548
|
+
method: "DELETE",
|
|
3549
|
+
secure: true,
|
|
3550
|
+
...params
|
|
3515
3551
|
})
|
|
3516
3552
|
};
|
|
3517
3553
|
subdomains = {
|
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.125.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -366,9 +366,7 @@ var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
|
366
366
|
ImportContentSource2["Zip"] = "zip";
|
|
367
367
|
ImportContentSource2["Confluence"] = "confluence";
|
|
368
368
|
ImportContentSource2["GithubWiki"] = "github-wiki";
|
|
369
|
-
ImportContentSource2["DropboxPaper"] = "dropbox-paper";
|
|
370
369
|
ImportContentSource2["Notion"] = "notion";
|
|
371
|
-
ImportContentSource2["Quip"] = "quip";
|
|
372
370
|
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
373
371
|
return ImportContentSource2;
|
|
374
372
|
})(ImportContentSource || {});
|
|
@@ -404,15 +402,6 @@ var BillingProduct = /* @__PURE__ */ ((BillingProduct2) => {
|
|
|
404
402
|
BillingProduct2["Free"] = "free";
|
|
405
403
|
BillingProduct2["Plus"] = "plus";
|
|
406
404
|
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
405
|
return BillingProduct2;
|
|
417
406
|
})(BillingProduct || {});
|
|
418
407
|
var BillingInterval = /* @__PURE__ */ ((BillingInterval2) => {
|
|
@@ -1760,6 +1749,14 @@ var Api = class extends HttpClient {
|
|
|
1760
1749
|
format: "json",
|
|
1761
1750
|
...params
|
|
1762
1751
|
}),
|
|
1752
|
+
getChangeRequestChanges: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1753
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/changes`,
|
|
1754
|
+
method: "GET",
|
|
1755
|
+
query,
|
|
1756
|
+
secure: true,
|
|
1757
|
+
format: "json",
|
|
1758
|
+
...params
|
|
1759
|
+
}),
|
|
1763
1760
|
getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1764
1761
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
|
|
1765
1762
|
method: "GET",
|
|
@@ -3411,6 +3408,45 @@ var Api = class extends HttpClient {
|
|
|
3411
3408
|
secure: true,
|
|
3412
3409
|
format: "json",
|
|
3413
3410
|
...params
|
|
3411
|
+
}),
|
|
3412
|
+
listSiteMcpServers: (organizationId, siteId, query, params = {}) => this.request({
|
|
3413
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers`,
|
|
3414
|
+
method: "GET",
|
|
3415
|
+
query,
|
|
3416
|
+
secure: true,
|
|
3417
|
+
format: "json",
|
|
3418
|
+
...params
|
|
3419
|
+
}),
|
|
3420
|
+
createSiteMcpServer: (organizationId, siteId, data, params = {}) => this.request({
|
|
3421
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers`,
|
|
3422
|
+
method: "POST",
|
|
3423
|
+
body: data,
|
|
3424
|
+
secure: true,
|
|
3425
|
+
type: "application/json" /* Json */,
|
|
3426
|
+
format: "json",
|
|
3427
|
+
...params
|
|
3428
|
+
}),
|
|
3429
|
+
getSiteMcpServerById: (organizationId, siteId, siteMcpServerId, params = {}) => this.request({
|
|
3430
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3431
|
+
method: "GET",
|
|
3432
|
+
secure: true,
|
|
3433
|
+
format: "json",
|
|
3434
|
+
...params
|
|
3435
|
+
}),
|
|
3436
|
+
updateSiteMcpServerById: (organizationId, siteId, siteMcpServerId, data, params = {}) => this.request({
|
|
3437
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3438
|
+
method: "PATCH",
|
|
3439
|
+
body: data,
|
|
3440
|
+
secure: true,
|
|
3441
|
+
type: "application/json" /* Json */,
|
|
3442
|
+
format: "json",
|
|
3443
|
+
...params
|
|
3444
|
+
}),
|
|
3445
|
+
deleteSiteMcpServerById: (organizationId, siteId, siteMcpServerId, params = {}) => this.request({
|
|
3446
|
+
path: `/orgs/${organizationId}/sites/${siteId}/mcp-servers/${siteMcpServerId}`,
|
|
3447
|
+
method: "DELETE",
|
|
3448
|
+
secure: true,
|
|
3449
|
+
...params
|
|
3414
3450
|
})
|
|
3415
3451
|
};
|
|
3416
3452
|
subdomains = {
|