@gitbook/api 0.143.1 → 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/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.143.1";
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";
@@ -696,6 +715,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
696
715
  SiteFeatureKey2["SitesAds"] = "sites-ads";
697
716
  SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
698
717
  SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
718
+ SiteFeatureKey2["SitesEmbed"] = "sites-embed";
699
719
  SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
700
720
  SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
701
721
  SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
@@ -1530,15 +1550,6 @@ var Api = class extends HttpClient {
1530
1550
  format: "json",
1531
1551
  ...params
1532
1552
  }),
1533
- importContent: (spaceId, data, params = {}) => this.request({
1534
- path: `/spaces/${spaceId}/content/import`,
1535
- method: "POST",
1536
- body: data,
1537
- secure: true,
1538
- type: "application/json" /* Json */,
1539
- format: "json",
1540
- ...params
1541
- }),
1542
1553
  applyTemplateToSpace: (spaceId, data, params = {}) => this.request({
1543
1554
  path: `/spaces/${spaceId}/content/template`,
1544
1555
  method: "POST",
@@ -1603,15 +1614,6 @@ var Api = class extends HttpClient {
1603
1614
  format: "json",
1604
1615
  ...params
1605
1616
  }),
1606
- importContentInPageById: (spaceId, pageId, data, params = {}) => this.request({
1607
- path: `/spaces/${spaceId}/content/page/${pageId}/import`,
1608
- method: "POST",
1609
- body: data,
1610
- secure: true,
1611
- type: "application/json" /* Json */,
1612
- format: "json",
1613
- ...params
1614
- }),
1615
1617
  getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
1616
1618
  path: `/spaces/${spaceId}/content/path/${pagePath}`,
1617
1619
  method: "GET",
@@ -1719,6 +1721,14 @@ var Api = class extends HttpClient {
1719
1721
  format: "json",
1720
1722
  ...params
1721
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
+ }),
1722
1732
  getRequestedReviewersByChangeRequestId: (spaceId, changeRequestId, query, params = {}) => this.request({
1723
1733
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers`,
1724
1734
  method: "GET",
@@ -1846,15 +1856,6 @@ var Api = class extends HttpClient {
1846
1856
  format: "json",
1847
1857
  ...params
1848
1858
  }),
1849
- importContentInChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
1850
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/import`,
1851
- method: "POST",
1852
- body: data,
1853
- secure: true,
1854
- type: "application/json" /* Json */,
1855
- format: "json",
1856
- ...params
1857
- }),
1858
1859
  listPagesInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
1859
1860
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
1860
1861
  method: "GET",
@@ -1911,23 +1912,6 @@ var Api = class extends HttpClient {
1911
1912
  format: "json",
1912
1913
  ...params
1913
1914
  }),
1914
- importContentInChangeRequestPageById: (spaceId, changeRequestId, pageId, data, params = {}) => this.request({
1915
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/import`,
1916
- method: "POST",
1917
- body: data,
1918
- secure: true,
1919
- type: "application/json" /* Json */,
1920
- format: "json",
1921
- ...params
1922
- }),
1923
- getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
1924
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
1925
- method: "GET",
1926
- query,
1927
- secure: true,
1928
- format: "json",
1929
- ...params
1930
- }),
1931
1915
  getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
1932
1916
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
1933
1917
  method: "GET",
@@ -2016,6 +2000,14 @@ var Api = class extends HttpClient {
2016
2000
  format: "json",
2017
2001
  ...params
2018
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
+ }),
2019
2011
  getReusableContentInRevisionById: (spaceId, revisionId, reusableContentId, query, params = {}) => this.request({
2020
2012
  path: `/spaces/${spaceId}/revisions/${revisionId}/reusable-contents/${reusableContentId}`,
2021
2013
  method: "GET",
@@ -2981,8 +2973,8 @@ var Api = class extends HttpClient {
2981
2973
  format: "json",
2982
2974
  ...params
2983
2975
  }),
2984
- listConversationsIssuesInCluster: (organizationId, clusterId, query, params = {}) => this.request({
2985
- path: `/orgs/${organizationId}/conversations-clusters/${clusterId}/issues`,
2976
+ listConversations: (organizationId, query, params = {}) => this.request({
2977
+ path: `/orgs/${organizationId}/conversations`,
2986
2978
  method: "GET",
2987
2979
  query,
2988
2980
  secure: true,
@@ -2997,6 +2989,28 @@ var Api = class extends HttpClient {
2997
2989
  type: "application/json" /* Json */,
2998
2990
  ...params
2999
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
+ }),
3000
3014
  getAgentSetupState: (organizationId, params = {}) => this.request({
3001
3015
  path: `/orgs/${organizationId}/agents-setup`,
3002
3016
  method: "GET",
@@ -3004,6 +3018,22 @@ var Api = class extends HttpClient {
3004
3018
  format: "json",
3005
3019
  ...params
3006
3020
  }),
3021
+ getOrganizationAgentInstructions: (organizationId, params = {}) => this.request({
3022
+ path: `/orgs/${organizationId}/agent-instructions`,
3023
+ method: "GET",
3024
+ secure: true,
3025
+ format: "json",
3026
+ ...params
3027
+ }),
3028
+ updateOrganizationAgentInstructions: (organizationId, data, params = {}) => this.request({
3029
+ path: `/orgs/${organizationId}/agent-instructions`,
3030
+ method: "PUT",
3031
+ body: data,
3032
+ secure: true,
3033
+ type: "application/json" /* Json */,
3034
+ format: "json",
3035
+ ...params
3036
+ }),
3007
3037
  listAgentTasks: (organizationId, query, params = {}) => this.request({
3008
3038
  path: `/orgs/${organizationId}/agent-tasks`,
3009
3039
  method: "GET",
@@ -3669,6 +3699,13 @@ var Api = class extends HttpClient {
3669
3699
  type: "application/json" /* Json */,
3670
3700
  format: "json",
3671
3701
  ...params
3702
+ }),
3703
+ cancelImportRun: (organizationId, importRunId, params = {}) => this.request({
3704
+ path: `/org/${organizationId}/imports/${importRunId}/cancel`,
3705
+ method: "POST",
3706
+ secure: true,
3707
+ format: "json",
3708
+ ...params
3672
3709
  })
3673
3710
  };
3674
3711
  subdomains = {
@@ -3890,6 +3927,8 @@ var GitBookAPI = class extends Api {
3890
3927
  CustomizationSidebarListStyle,
3891
3928
  CustomizationTheme,
3892
3929
  CustomizationThemeMode,
3930
+ DocumentTextBackgroundColor,
3931
+ DocumentTextColor,
3893
3932
  GITBOOK_DEFAULT_ENDPOINT,
3894
3933
  GitBookAPI,
3895
3934
  GitBookAPIError,
@@ -3899,7 +3938,6 @@ var GitBookAPI = class extends Api {
3899
3938
  GitSyncOperationState,
3900
3939
  GitSyncProvider,
3901
3940
  HttpClient,
3902
- ImportContentSource,
3903
3941
  IntegrationCategory,
3904
3942
  IntegrationInstallationSiteSelection,
3905
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.143.1";
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";
@@ -586,6 +604,7 @@ var SiteFeatureKey = /* @__PURE__ */ ((SiteFeatureKey2) => {
586
604
  SiteFeatureKey2["SitesAds"] = "sites-ads";
587
605
  SiteFeatureKey2["SitesAiSearch"] = "sites-ai-search";
588
606
  SiteFeatureKey2["SitesAiAssistant"] = "sites-ai-assistant";
607
+ SiteFeatureKey2["SitesEmbed"] = "sites-embed";
589
608
  SiteFeatureKey2["SitesApiPlayground"] = "sites-api-playground";
590
609
  SiteFeatureKey2["SitesBasicCustomization"] = "sites-basic-customization";
591
610
  SiteFeatureKey2["SitesCustomDomain"] = "sites-custom-domain";
@@ -1420,15 +1439,6 @@ var Api = class extends HttpClient {
1420
1439
  format: "json",
1421
1440
  ...params
1422
1441
  }),
1423
- importContent: (spaceId, data, params = {}) => this.request({
1424
- path: `/spaces/${spaceId}/content/import`,
1425
- method: "POST",
1426
- body: data,
1427
- secure: true,
1428
- type: "application/json" /* Json */,
1429
- format: "json",
1430
- ...params
1431
- }),
1432
1442
  applyTemplateToSpace: (spaceId, data, params = {}) => this.request({
1433
1443
  path: `/spaces/${spaceId}/content/template`,
1434
1444
  method: "POST",
@@ -1493,15 +1503,6 @@ var Api = class extends HttpClient {
1493
1503
  format: "json",
1494
1504
  ...params
1495
1505
  }),
1496
- importContentInPageById: (spaceId, pageId, data, params = {}) => this.request({
1497
- path: `/spaces/${spaceId}/content/page/${pageId}/import`,
1498
- method: "POST",
1499
- body: data,
1500
- secure: true,
1501
- type: "application/json" /* Json */,
1502
- format: "json",
1503
- ...params
1504
- }),
1505
1506
  getPageByPath: (spaceId, pagePath, query, params = {}) => this.request({
1506
1507
  path: `/spaces/${spaceId}/content/path/${pagePath}`,
1507
1508
  method: "GET",
@@ -1609,6 +1610,14 @@ var Api = class extends HttpClient {
1609
1610
  format: "json",
1610
1611
  ...params
1611
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
+ }),
1612
1621
  getRequestedReviewersByChangeRequestId: (spaceId, changeRequestId, query, params = {}) => this.request({
1613
1622
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/requested-reviewers`,
1614
1623
  method: "GET",
@@ -1736,15 +1745,6 @@ var Api = class extends HttpClient {
1736
1745
  format: "json",
1737
1746
  ...params
1738
1747
  }),
1739
- importContentInChangeRequest: (spaceId, changeRequestId, data, params = {}) => this.request({
1740
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/import`,
1741
- method: "POST",
1742
- body: data,
1743
- secure: true,
1744
- type: "application/json" /* Json */,
1745
- format: "json",
1746
- ...params
1747
- }),
1748
1748
  listPagesInChangeRequest: (spaceId, changeRequestId, query, params = {}) => this.request({
1749
1749
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
1750
1750
  method: "GET",
@@ -1801,23 +1801,6 @@ var Api = class extends HttpClient {
1801
1801
  format: "json",
1802
1802
  ...params
1803
1803
  }),
1804
- importContentInChangeRequestPageById: (spaceId, changeRequestId, pageId, data, params = {}) => this.request({
1805
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/page/${pageId}/import`,
1806
- method: "POST",
1807
- body: data,
1808
- secure: true,
1809
- type: "application/json" /* Json */,
1810
- format: "json",
1811
- ...params
1812
- }),
1813
- getPageInChangeRequestByPath: (spaceId, changeRequestId, pagePath, query, params = {}) => this.request({
1814
- path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/path/${pagePath}`,
1815
- method: "GET",
1816
- query,
1817
- secure: true,
1818
- format: "json",
1819
- ...params
1820
- }),
1821
1804
  getReusableContentInChangeRequestById: (spaceId, changeRequestId, reusableContentId, query, params = {}) => this.request({
1822
1805
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/reusable-contents/${reusableContentId}`,
1823
1806
  method: "GET",
@@ -1906,6 +1889,14 @@ var Api = class extends HttpClient {
1906
1889
  format: "json",
1907
1890
  ...params
1908
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
+ }),
1909
1900
  getReusableContentInRevisionById: (spaceId, revisionId, reusableContentId, query, params = {}) => this.request({
1910
1901
  path: `/spaces/${spaceId}/revisions/${revisionId}/reusable-contents/${reusableContentId}`,
1911
1902
  method: "GET",
@@ -2871,8 +2862,8 @@ var Api = class extends HttpClient {
2871
2862
  format: "json",
2872
2863
  ...params
2873
2864
  }),
2874
- listConversationsIssuesInCluster: (organizationId, clusterId, query, params = {}) => this.request({
2875
- path: `/orgs/${organizationId}/conversations-clusters/${clusterId}/issues`,
2865
+ listConversations: (organizationId, query, params = {}) => this.request({
2866
+ path: `/orgs/${organizationId}/conversations`,
2876
2867
  method: "GET",
2877
2868
  query,
2878
2869
  secure: true,
@@ -2887,6 +2878,28 @@ var Api = class extends HttpClient {
2887
2878
  type: "application/json" /* Json */,
2888
2879
  ...params
2889
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
+ }),
2890
2903
  getAgentSetupState: (organizationId, params = {}) => this.request({
2891
2904
  path: `/orgs/${organizationId}/agents-setup`,
2892
2905
  method: "GET",
@@ -2894,6 +2907,22 @@ var Api = class extends HttpClient {
2894
2907
  format: "json",
2895
2908
  ...params
2896
2909
  }),
2910
+ getOrganizationAgentInstructions: (organizationId, params = {}) => this.request({
2911
+ path: `/orgs/${organizationId}/agent-instructions`,
2912
+ method: "GET",
2913
+ secure: true,
2914
+ format: "json",
2915
+ ...params
2916
+ }),
2917
+ updateOrganizationAgentInstructions: (organizationId, data, params = {}) => this.request({
2918
+ path: `/orgs/${organizationId}/agent-instructions`,
2919
+ method: "PUT",
2920
+ body: data,
2921
+ secure: true,
2922
+ type: "application/json" /* Json */,
2923
+ format: "json",
2924
+ ...params
2925
+ }),
2897
2926
  listAgentTasks: (organizationId, query, params = {}) => this.request({
2898
2927
  path: `/orgs/${organizationId}/agent-tasks`,
2899
2928
  method: "GET",
@@ -3559,6 +3588,13 @@ var Api = class extends HttpClient {
3559
3588
  type: "application/json" /* Json */,
3560
3589
  format: "json",
3561
3590
  ...params
3591
+ }),
3592
+ cancelImportRun: (organizationId, importRunId, params = {}) => this.request({
3593
+ path: `/org/${organizationId}/imports/${importRunId}/cancel`,
3594
+ method: "POST",
3595
+ secure: true,
3596
+ format: "json",
3597
+ ...params
3562
3598
  })
3563
3599
  };
3564
3600
  subdomains = {
@@ -3779,6 +3815,8 @@ export {
3779
3815
  CustomizationSidebarListStyle,
3780
3816
  CustomizationTheme,
3781
3817
  CustomizationThemeMode,
3818
+ DocumentTextBackgroundColor,
3819
+ DocumentTextColor,
3782
3820
  GITBOOK_DEFAULT_ENDPOINT,
3783
3821
  GitBookAPI,
3784
3822
  GitBookAPIError,
@@ -3788,7 +3826,6 @@ export {
3788
3826
  GitSyncOperationState,
3789
3827
  GitSyncProvider,
3790
3828
  HttpClient,
3791
- ImportContentSource,
3792
3829
  IntegrationCategory,
3793
3830
  IntegrationInstallationSiteSelection,
3794
3831
  IntegrationInstallationSpaceSelection,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.143.1",
7
+ "version": "0.144.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",