@gitbook/api 0.143.2 → 0.144.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 +252 -201
- package/dist/index.cjs +75 -61
- package/dist/index.js +73 -60
- package/package.json +1 -1
- package/spec/openapi.json +694 -657
- package/spec/openapi.yaml +447 -432
package/dist/index.cjs
CHANGED
|
@@ -220,6 +220,8 @@ __export(src_exports, {
|
|
|
220
220
|
CustomizationSidebarListStyle: () => CustomizationSidebarListStyle,
|
|
221
221
|
CustomizationTheme: () => CustomizationTheme,
|
|
222
222
|
CustomizationThemeMode: () => CustomizationThemeMode,
|
|
223
|
+
DocumentTextBackgroundColor: () => DocumentTextBackgroundColor,
|
|
224
|
+
DocumentTextColor: () => DocumentTextColor,
|
|
223
225
|
GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
|
|
224
226
|
GitBookAPI: () => GitBookAPI,
|
|
225
227
|
GitBookAPIError: () => GitBookAPIError,
|
|
@@ -229,7 +231,6 @@ __export(src_exports, {
|
|
|
229
231
|
GitSyncOperationState: () => GitSyncOperationState,
|
|
230
232
|
GitSyncProvider: () => GitSyncProvider,
|
|
231
233
|
HttpClient: () => HttpClient,
|
|
232
|
-
ImportContentSource: () => ImportContentSource,
|
|
233
234
|
IntegrationCategory: () => IntegrationCategory,
|
|
234
235
|
IntegrationInstallationSiteSelection: () => IntegrationInstallationSiteSelection,
|
|
235
236
|
IntegrationInstallationSpaceSelection: () => IntegrationInstallationSpaceSelection,
|
|
@@ -282,7 +283,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
282
283
|
|
|
283
284
|
// package.json
|
|
284
285
|
var name = "@gitbook/api";
|
|
285
|
-
var version = "0.
|
|
286
|
+
var version = "0.144.0";
|
|
286
287
|
|
|
287
288
|
// src/client.ts
|
|
288
289
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -452,6 +453,36 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
452
453
|
MemberRole2["Read"] = "read";
|
|
453
454
|
return MemberRole2;
|
|
454
455
|
})(MemberRole || {});
|
|
456
|
+
var DocumentTextColor = /* @__PURE__ */ ((DocumentTextColor2) => {
|
|
457
|
+
DocumentTextColor2["Default"] = "default";
|
|
458
|
+
DocumentTextColor2["Green"] = "green";
|
|
459
|
+
DocumentTextColor2["Blue"] = "blue";
|
|
460
|
+
DocumentTextColor2["Red"] = "red";
|
|
461
|
+
DocumentTextColor2["Orange"] = "orange";
|
|
462
|
+
DocumentTextColor2["Yellow"] = "yellow";
|
|
463
|
+
DocumentTextColor2["Purple"] = "purple";
|
|
464
|
+
DocumentTextColor2["Primary"] = "$primary";
|
|
465
|
+
DocumentTextColor2["Info"] = "$info";
|
|
466
|
+
DocumentTextColor2["Success"] = "$success";
|
|
467
|
+
DocumentTextColor2["Warning"] = "$warning";
|
|
468
|
+
DocumentTextColor2["Danger"] = "$danger";
|
|
469
|
+
return DocumentTextColor2;
|
|
470
|
+
})(DocumentTextColor || {});
|
|
471
|
+
var DocumentTextBackgroundColor = /* @__PURE__ */ ((DocumentTextBackgroundColor2) => {
|
|
472
|
+
DocumentTextBackgroundColor2["Default"] = "default";
|
|
473
|
+
DocumentTextBackgroundColor2["Green"] = "green";
|
|
474
|
+
DocumentTextBackgroundColor2["Blue"] = "blue";
|
|
475
|
+
DocumentTextBackgroundColor2["Red"] = "red";
|
|
476
|
+
DocumentTextBackgroundColor2["Orange"] = "orange";
|
|
477
|
+
DocumentTextBackgroundColor2["Yellow"] = "yellow";
|
|
478
|
+
DocumentTextBackgroundColor2["Purple"] = "purple";
|
|
479
|
+
DocumentTextBackgroundColor2["Primary"] = "$primary";
|
|
480
|
+
DocumentTextBackgroundColor2["Info"] = "$info";
|
|
481
|
+
DocumentTextBackgroundColor2["Success"] = "$success";
|
|
482
|
+
DocumentTextBackgroundColor2["Warning"] = "$warning";
|
|
483
|
+
DocumentTextBackgroundColor2["Danger"] = "$danger";
|
|
484
|
+
return DocumentTextBackgroundColor2;
|
|
485
|
+
})(DocumentTextBackgroundColor || {});
|
|
455
486
|
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
456
487
|
TextAlignment2["Start"] = "start";
|
|
457
488
|
TextAlignment2["Center"] = "center";
|
|
@@ -487,18 +518,6 @@ var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
|
487
518
|
ChangeRequestStatus2["Merged"] = "merged";
|
|
488
519
|
return ChangeRequestStatus2;
|
|
489
520
|
})(ChangeRequestStatus || {});
|
|
490
|
-
var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
491
|
-
ImportContentSource2["Website"] = "website";
|
|
492
|
-
ImportContentSource2["Docx"] = "docx";
|
|
493
|
-
ImportContentSource2["Markdown"] = "markdown";
|
|
494
|
-
ImportContentSource2["Html"] = "html";
|
|
495
|
-
ImportContentSource2["Zip"] = "zip";
|
|
496
|
-
ImportContentSource2["Confluence"] = "confluence";
|
|
497
|
-
ImportContentSource2["GithubWiki"] = "github-wiki";
|
|
498
|
-
ImportContentSource2["Notion"] = "notion";
|
|
499
|
-
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
500
|
-
return ImportContentSource2;
|
|
501
|
-
})(ImportContentSource || {});
|
|
502
521
|
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
503
522
|
OrganizationType2["Business"] = "business";
|
|
504
523
|
OrganizationType2["Community"] = "community";
|
|
@@ -1531,15 +1550,6 @@ var Api = class extends HttpClient {
|
|
|
1531
1550
|
format: "json",
|
|
1532
1551
|
...params
|
|
1533
1552
|
}),
|
|
1534
|
-
importContent: (spaceId, data, params = {}) => this.request({
|
|
1535
|
-
path: `/spaces/${spaceId}/content/import`,
|
|
1536
|
-
method: "POST",
|
|
1537
|
-
body: data,
|
|
1538
|
-
secure: true,
|
|
1539
|
-
type: "application/json" /* Json */,
|
|
1540
|
-
format: "json",
|
|
1541
|
-
...params
|
|
1542
|
-
}),
|
|
1543
1553
|
applyTemplateToSpace: (spaceId, data, params = {}) => this.request({
|
|
1544
1554
|
path: `/spaces/${spaceId}/content/template`,
|
|
1545
1555
|
method: "POST",
|
|
@@ -1604,15 +1614,6 @@ var Api = class extends HttpClient {
|
|
|
1604
1614
|
format: "json",
|
|
1605
1615
|
...params
|
|
1606
1616
|
}),
|
|
1607
|
-
importContentInPageById: (spaceId, pageId, data, params = {}) => this.request({
|
|
1608
|
-
path: `/spaces/${spaceId}/content/page/${pageId}/import`,
|
|
1609
|
-
method: "POST",
|
|
1610
|
-
body: data,
|
|
1611
|
-
secure: true,
|
|
1612
|
-
type: "application/json" /* Json */,
|
|
1613
|
-
format: "json",
|
|
1614
|
-
...params
|
|
1615
|
-
}),
|
|
1616
1617
|
getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
|
|
1617
1618
|
path: `/spaces/${spaceId}/content/path/${pagePath}`,
|
|
1618
1619
|
method: "GET",
|
|
@@ -1720,6 +1721,14 @@ var Api = class extends HttpClient {
|
|
|
1720
1721
|
format: "json",
|
|
1721
1722
|
...params
|
|
1722
1723
|
}),
|
|
1724
|
+
getChangeRequestReviewById: (spaceId, changeRequestId, reviewId, query, params = {}) => this.request({
|
|
1725
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/reviews/${reviewId}`,
|
|
1726
|
+
method: "GET",
|
|
1727
|
+
query,
|
|
1728
|
+
secure: true,
|
|
1729
|
+
format: "json",
|
|
1730
|
+
...params
|
|
1731
|
+
}),
|
|
1723
1732
|
getRequestedReviewersByChangeRequestId: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1724
1733
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers`,
|
|
1725
1734
|
method: "GET",
|
|
@@ -1847,15 +1856,6 @@ var Api = class extends HttpClient {
|
|
|
1847
1856
|
format: "json",
|
|
1848
1857
|
...params
|
|
1849
1858
|
}),
|
|
1850
|
-
importContentInChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
1851
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/import`,
|
|
1852
|
-
method: "POST",
|
|
1853
|
-
body: data,
|
|
1854
|
-
secure: true,
|
|
1855
|
-
type: "application/json" /* Json */,
|
|
1856
|
-
format: "json",
|
|
1857
|
-
...params
|
|
1858
|
-
}),
|
|
1859
1859
|
listPagesInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1860
1860
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
|
|
1861
1861
|
method: "GET",
|
|
@@ -1912,23 +1912,6 @@ var Api = class extends HttpClient {
|
|
|
1912
1912
|
format: "json",
|
|
1913
1913
|
...params
|
|
1914
1914
|
}),
|
|
1915
|
-
importContentInChangeRequestPageById: (spaceId, changeRequestId, pageId, data, params = {}) => this.request({
|
|
1916
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/import`,
|
|
1917
|
-
method: "POST",
|
|
1918
|
-
body: data,
|
|
1919
|
-
secure: true,
|
|
1920
|
-
type: "application/json" /* Json */,
|
|
1921
|
-
format: "json",
|
|
1922
|
-
...params
|
|
1923
|
-
}),
|
|
1924
|
-
getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
|
|
1925
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
|
|
1926
|
-
method: "GET",
|
|
1927
|
-
query,
|
|
1928
|
-
secure: true,
|
|
1929
|
-
format: "json",
|
|
1930
|
-
...params
|
|
1931
|
-
}),
|
|
1932
1915
|
getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
|
|
1933
1916
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
|
|
1934
1917
|
method: "GET",
|
|
@@ -2017,6 +2000,14 @@ var Api = class extends HttpClient {
|
|
|
2017
2000
|
format: "json",
|
|
2018
2001
|
...params
|
|
2019
2002
|
}),
|
|
2003
|
+
getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
|
|
2004
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
|
|
2005
|
+
method: "GET",
|
|
2006
|
+
query,
|
|
2007
|
+
secure: true,
|
|
2008
|
+
format: "json",
|
|
2009
|
+
...params
|
|
2010
|
+
}),
|
|
2020
2011
|
getReusableContentInRevisionById: (spaceId, revisionId, reusableContentId, query, params = {}) => this.request({
|
|
2021
2012
|
path: `/spaces/${spaceId}/revisions/${revisionId}/reusable-contents/${reusableContentId}`,
|
|
2022
2013
|
method: "GET",
|
|
@@ -2982,8 +2973,8 @@ var Api = class extends HttpClient {
|
|
|
2982
2973
|
format: "json",
|
|
2983
2974
|
...params
|
|
2984
2975
|
}),
|
|
2985
|
-
|
|
2986
|
-
path: `/orgs/${organizationId}/conversations
|
|
2976
|
+
listConversations: (organizationId, query, params = {}) => this.request({
|
|
2977
|
+
path: `/orgs/${organizationId}/conversations`,
|
|
2987
2978
|
method: "GET",
|
|
2988
2979
|
query,
|
|
2989
2980
|
secure: true,
|
|
@@ -2998,6 +2989,28 @@ var Api = class extends HttpClient {
|
|
|
2998
2989
|
type: "application/json" /* Json */,
|
|
2999
2990
|
...params
|
|
3000
2991
|
}),
|
|
2992
|
+
listConversationsIssues: (organizationId, query, params = {}) => this.request({
|
|
2993
|
+
path: `/orgs/${organizationId}/conversations-issues`,
|
|
2994
|
+
method: "GET",
|
|
2995
|
+
query,
|
|
2996
|
+
secure: true,
|
|
2997
|
+
format: "json",
|
|
2998
|
+
...params
|
|
2999
|
+
}),
|
|
3000
|
+
getConversationIssueById: (organizationId, issueId, params = {}) => this.request({
|
|
3001
|
+
path: `/orgs/${organizationId}/conversations-issues/${issueId}`,
|
|
3002
|
+
method: "GET",
|
|
3003
|
+
secure: true,
|
|
3004
|
+
format: "json",
|
|
3005
|
+
...params
|
|
3006
|
+
}),
|
|
3007
|
+
getConversationById: (organizationId, conversationId, params = {}) => this.request({
|
|
3008
|
+
path: `/orgs/${organizationId}/conversations/${conversationId}`,
|
|
3009
|
+
method: "GET",
|
|
3010
|
+
secure: true,
|
|
3011
|
+
format: "json",
|
|
3012
|
+
...params
|
|
3013
|
+
}),
|
|
3001
3014
|
getAgentSetupState: (organizationId, params = {}) => this.request({
|
|
3002
3015
|
path: `/orgs/${organizationId}/agents-setup`,
|
|
3003
3016
|
method: "GET",
|
|
@@ -3914,6 +3927,8 @@ var GitBookAPI = class extends Api {
|
|
|
3914
3927
|
CustomizationSidebarListStyle,
|
|
3915
3928
|
CustomizationTheme,
|
|
3916
3929
|
CustomizationThemeMode,
|
|
3930
|
+
DocumentTextBackgroundColor,
|
|
3931
|
+
DocumentTextColor,
|
|
3917
3932
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
3918
3933
|
GitBookAPI,
|
|
3919
3934
|
GitBookAPIError,
|
|
@@ -3923,7 +3938,6 @@ var GitBookAPI = class extends Api {
|
|
|
3923
3938
|
GitSyncOperationState,
|
|
3924
3939
|
GitSyncProvider,
|
|
3925
3940
|
HttpClient,
|
|
3926
|
-
ImportContentSource,
|
|
3927
3941
|
IntegrationCategory,
|
|
3928
3942
|
IntegrationInstallationSiteSelection,
|
|
3929
3943
|
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.144.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -342,6 +342,36 @@ var MemberRole = /* @__PURE__ */ ((MemberRole2) => {
|
|
|
342
342
|
MemberRole2["Read"] = "read";
|
|
343
343
|
return MemberRole2;
|
|
344
344
|
})(MemberRole || {});
|
|
345
|
+
var DocumentTextColor = /* @__PURE__ */ ((DocumentTextColor2) => {
|
|
346
|
+
DocumentTextColor2["Default"] = "default";
|
|
347
|
+
DocumentTextColor2["Green"] = "green";
|
|
348
|
+
DocumentTextColor2["Blue"] = "blue";
|
|
349
|
+
DocumentTextColor2["Red"] = "red";
|
|
350
|
+
DocumentTextColor2["Orange"] = "orange";
|
|
351
|
+
DocumentTextColor2["Yellow"] = "yellow";
|
|
352
|
+
DocumentTextColor2["Purple"] = "purple";
|
|
353
|
+
DocumentTextColor2["Primary"] = "$primary";
|
|
354
|
+
DocumentTextColor2["Info"] = "$info";
|
|
355
|
+
DocumentTextColor2["Success"] = "$success";
|
|
356
|
+
DocumentTextColor2["Warning"] = "$warning";
|
|
357
|
+
DocumentTextColor2["Danger"] = "$danger";
|
|
358
|
+
return DocumentTextColor2;
|
|
359
|
+
})(DocumentTextColor || {});
|
|
360
|
+
var DocumentTextBackgroundColor = /* @__PURE__ */ ((DocumentTextBackgroundColor2) => {
|
|
361
|
+
DocumentTextBackgroundColor2["Default"] = "default";
|
|
362
|
+
DocumentTextBackgroundColor2["Green"] = "green";
|
|
363
|
+
DocumentTextBackgroundColor2["Blue"] = "blue";
|
|
364
|
+
DocumentTextBackgroundColor2["Red"] = "red";
|
|
365
|
+
DocumentTextBackgroundColor2["Orange"] = "orange";
|
|
366
|
+
DocumentTextBackgroundColor2["Yellow"] = "yellow";
|
|
367
|
+
DocumentTextBackgroundColor2["Purple"] = "purple";
|
|
368
|
+
DocumentTextBackgroundColor2["Primary"] = "$primary";
|
|
369
|
+
DocumentTextBackgroundColor2["Info"] = "$info";
|
|
370
|
+
DocumentTextBackgroundColor2["Success"] = "$success";
|
|
371
|
+
DocumentTextBackgroundColor2["Warning"] = "$warning";
|
|
372
|
+
DocumentTextBackgroundColor2["Danger"] = "$danger";
|
|
373
|
+
return DocumentTextBackgroundColor2;
|
|
374
|
+
})(DocumentTextBackgroundColor || {});
|
|
345
375
|
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
346
376
|
TextAlignment2["Start"] = "start";
|
|
347
377
|
TextAlignment2["Center"] = "center";
|
|
@@ -377,18 +407,6 @@ var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
|
|
|
377
407
|
ChangeRequestStatus2["Merged"] = "merged";
|
|
378
408
|
return ChangeRequestStatus2;
|
|
379
409
|
})(ChangeRequestStatus || {});
|
|
380
|
-
var ImportContentSource = /* @__PURE__ */ ((ImportContentSource2) => {
|
|
381
|
-
ImportContentSource2["Website"] = "website";
|
|
382
|
-
ImportContentSource2["Docx"] = "docx";
|
|
383
|
-
ImportContentSource2["Markdown"] = "markdown";
|
|
384
|
-
ImportContentSource2["Html"] = "html";
|
|
385
|
-
ImportContentSource2["Zip"] = "zip";
|
|
386
|
-
ImportContentSource2["Confluence"] = "confluence";
|
|
387
|
-
ImportContentSource2["GithubWiki"] = "github-wiki";
|
|
388
|
-
ImportContentSource2["Notion"] = "notion";
|
|
389
|
-
ImportContentSource2["GoogleDocs"] = "google-docs";
|
|
390
|
-
return ImportContentSource2;
|
|
391
|
-
})(ImportContentSource || {});
|
|
392
410
|
var OrganizationType = /* @__PURE__ */ ((OrganizationType2) => {
|
|
393
411
|
OrganizationType2["Business"] = "business";
|
|
394
412
|
OrganizationType2["Community"] = "community";
|
|
@@ -1421,15 +1439,6 @@ var Api = class extends HttpClient {
|
|
|
1421
1439
|
format: "json",
|
|
1422
1440
|
...params
|
|
1423
1441
|
}),
|
|
1424
|
-
importContent: (spaceId, data, params = {}) => this.request({
|
|
1425
|
-
path: `/spaces/${spaceId}/content/import`,
|
|
1426
|
-
method: "POST",
|
|
1427
|
-
body: data,
|
|
1428
|
-
secure: true,
|
|
1429
|
-
type: "application/json" /* Json */,
|
|
1430
|
-
format: "json",
|
|
1431
|
-
...params
|
|
1432
|
-
}),
|
|
1433
1442
|
applyTemplateToSpace: (spaceId, data, params = {}) => this.request({
|
|
1434
1443
|
path: `/spaces/${spaceId}/content/template`,
|
|
1435
1444
|
method: "POST",
|
|
@@ -1494,15 +1503,6 @@ var Api = class extends HttpClient {
|
|
|
1494
1503
|
format: "json",
|
|
1495
1504
|
...params
|
|
1496
1505
|
}),
|
|
1497
|
-
importContentInPageById: (spaceId, pageId, data, params = {}) => this.request({
|
|
1498
|
-
path: `/spaces/${spaceId}/content/page/${pageId}/import`,
|
|
1499
|
-
method: "POST",
|
|
1500
|
-
body: data,
|
|
1501
|
-
secure: true,
|
|
1502
|
-
type: "application/json" /* Json */,
|
|
1503
|
-
format: "json",
|
|
1504
|
-
...params
|
|
1505
|
-
}),
|
|
1506
1506
|
getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
|
|
1507
1507
|
path: `/spaces/${spaceId}/content/path/${pagePath}`,
|
|
1508
1508
|
method: "GET",
|
|
@@ -1610,6 +1610,14 @@ var Api = class extends HttpClient {
|
|
|
1610
1610
|
format: "json",
|
|
1611
1611
|
...params
|
|
1612
1612
|
}),
|
|
1613
|
+
getChangeRequestReviewById: (spaceId, changeRequestId, reviewId, query, params = {}) => this.request({
|
|
1614
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/reviews/${reviewId}`,
|
|
1615
|
+
method: "GET",
|
|
1616
|
+
query,
|
|
1617
|
+
secure: true,
|
|
1618
|
+
format: "json",
|
|
1619
|
+
...params
|
|
1620
|
+
}),
|
|
1613
1621
|
getRequestedReviewersByChangeRequestId: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1614
1622
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers`,
|
|
1615
1623
|
method: "GET",
|
|
@@ -1737,15 +1745,6 @@ var Api = class extends HttpClient {
|
|
|
1737
1745
|
format: "json",
|
|
1738
1746
|
...params
|
|
1739
1747
|
}),
|
|
1740
|
-
importContentInChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
|
|
1741
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/import`,
|
|
1742
|
-
method: "POST",
|
|
1743
|
-
body: data,
|
|
1744
|
-
secure: true,
|
|
1745
|
-
type: "application/json" /* Json */,
|
|
1746
|
-
format: "json",
|
|
1747
|
-
...params
|
|
1748
|
-
}),
|
|
1749
1748
|
listPagesInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
|
|
1750
1749
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
|
|
1751
1750
|
method: "GET",
|
|
@@ -1802,23 +1801,6 @@ var Api = class extends HttpClient {
|
|
|
1802
1801
|
format: "json",
|
|
1803
1802
|
...params
|
|
1804
1803
|
}),
|
|
1805
|
-
importContentInChangeRequestPageById: (spaceId, changeRequestId, pageId, data, params = {}) => this.request({
|
|
1806
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/import`,
|
|
1807
|
-
method: "POST",
|
|
1808
|
-
body: data,
|
|
1809
|
-
secure: true,
|
|
1810
|
-
type: "application/json" /* Json */,
|
|
1811
|
-
format: "json",
|
|
1812
|
-
...params
|
|
1813
|
-
}),
|
|
1814
|
-
getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
|
|
1815
|
-
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
|
|
1816
|
-
method: "GET",
|
|
1817
|
-
query,
|
|
1818
|
-
secure: true,
|
|
1819
|
-
format: "json",
|
|
1820
|
-
...params
|
|
1821
|
-
}),
|
|
1822
1804
|
getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
|
|
1823
1805
|
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
|
|
1824
1806
|
method: "GET",
|
|
@@ -1907,6 +1889,14 @@ var Api = class extends HttpClient {
|
|
|
1907
1889
|
format: "json",
|
|
1908
1890
|
...params
|
|
1909
1891
|
}),
|
|
1892
|
+
getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
|
|
1893
|
+
path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
|
|
1894
|
+
method: "GET",
|
|
1895
|
+
query,
|
|
1896
|
+
secure: true,
|
|
1897
|
+
format: "json",
|
|
1898
|
+
...params
|
|
1899
|
+
}),
|
|
1910
1900
|
getReusableContentInRevisionById: (spaceId, revisionId, reusableContentId, query, params = {}) => this.request({
|
|
1911
1901
|
path: `/spaces/${spaceId}/revisions/${revisionId}/reusable-contents/${reusableContentId}`,
|
|
1912
1902
|
method: "GET",
|
|
@@ -2872,8 +2862,8 @@ var Api = class extends HttpClient {
|
|
|
2872
2862
|
format: "json",
|
|
2873
2863
|
...params
|
|
2874
2864
|
}),
|
|
2875
|
-
|
|
2876
|
-
path: `/orgs/${organizationId}/conversations
|
|
2865
|
+
listConversations: (organizationId, query, params = {}) => this.request({
|
|
2866
|
+
path: `/orgs/${organizationId}/conversations`,
|
|
2877
2867
|
method: "GET",
|
|
2878
2868
|
query,
|
|
2879
2869
|
secure: true,
|
|
@@ -2888,6 +2878,28 @@ var Api = class extends HttpClient {
|
|
|
2888
2878
|
type: "application/json" /* Json */,
|
|
2889
2879
|
...params
|
|
2890
2880
|
}),
|
|
2881
|
+
listConversationsIssues: (organizationId, query, params = {}) => this.request({
|
|
2882
|
+
path: `/orgs/${organizationId}/conversations-issues`,
|
|
2883
|
+
method: "GET",
|
|
2884
|
+
query,
|
|
2885
|
+
secure: true,
|
|
2886
|
+
format: "json",
|
|
2887
|
+
...params
|
|
2888
|
+
}),
|
|
2889
|
+
getConversationIssueById: (organizationId, issueId, params = {}) => this.request({
|
|
2890
|
+
path: `/orgs/${organizationId}/conversations-issues/${issueId}`,
|
|
2891
|
+
method: "GET",
|
|
2892
|
+
secure: true,
|
|
2893
|
+
format: "json",
|
|
2894
|
+
...params
|
|
2895
|
+
}),
|
|
2896
|
+
getConversationById: (organizationId, conversationId, params = {}) => this.request({
|
|
2897
|
+
path: `/orgs/${organizationId}/conversations/${conversationId}`,
|
|
2898
|
+
method: "GET",
|
|
2899
|
+
secure: true,
|
|
2900
|
+
format: "json",
|
|
2901
|
+
...params
|
|
2902
|
+
}),
|
|
2891
2903
|
getAgentSetupState: (organizationId, params = {}) => this.request({
|
|
2892
2904
|
path: `/orgs/${organizationId}/agents-setup`,
|
|
2893
2905
|
method: "GET",
|
|
@@ -3803,6 +3815,8 @@ export {
|
|
|
3803
3815
|
CustomizationSidebarListStyle,
|
|
3804
3816
|
CustomizationTheme,
|
|
3805
3817
|
CustomizationThemeMode,
|
|
3818
|
+
DocumentTextBackgroundColor,
|
|
3819
|
+
DocumentTextColor,
|
|
3806
3820
|
GITBOOK_DEFAULT_ENDPOINT,
|
|
3807
3821
|
GitBookAPI,
|
|
3808
3822
|
GitBookAPIError,
|
|
@@ -3812,7 +3826,6 @@ export {
|
|
|
3812
3826
|
GitSyncOperationState,
|
|
3813
3827
|
GitSyncProvider,
|
|
3814
3828
|
HttpClient,
|
|
3815
|
-
ImportContentSource,
|
|
3816
3829
|
IntegrationCategory,
|
|
3817
3830
|
IntegrationInstallationSiteSelection,
|
|
3818
3831
|
IntegrationInstallationSpaceSelection,
|