@gitbook/api 0.116.0 → 0.117.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 +380 -47
- package/dist/index.cjs +71 -9
- package/dist/index.js +71 -9
- package/package.json +1 -1
- package/spec/openapi.json +1147 -191
- package/spec/openapi.yaml +736 -110
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.117.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -499,6 +499,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
499
499
|
IntegrationScope2["SiteAdaptiveWrite"] = "site:adaptive:write";
|
|
500
500
|
IntegrationScope2["OpenapiRead"] = "openapi:read";
|
|
501
501
|
IntegrationScope2["OpenapiWrite"] = "openapi:write";
|
|
502
|
+
IntegrationScope2["ConversationsIngest"] = "conversations:ingest";
|
|
502
503
|
return IntegrationScope2;
|
|
503
504
|
})(IntegrationScope || {});
|
|
504
505
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
@@ -607,6 +608,13 @@ var SAMLProviderStatus = /* @__PURE__ */ ((SAMLProviderStatus2) => {
|
|
|
607
608
|
SAMLProviderStatus2["Pending"] = "pending";
|
|
608
609
|
return SAMLProviderStatus2;
|
|
609
610
|
})(SAMLProviderStatus || {});
|
|
611
|
+
var AgentTaskStatus = /* @__PURE__ */ ((AgentTaskStatus2) => {
|
|
612
|
+
AgentTaskStatus2["Backlog"] = "backlog";
|
|
613
|
+
AgentTaskStatus2["Started"] = "started";
|
|
614
|
+
AgentTaskStatus2["Completed"] = "completed";
|
|
615
|
+
AgentTaskStatus2["Canceled"] = "canceled";
|
|
616
|
+
return AgentTaskStatus2;
|
|
617
|
+
})(AgentTaskStatus || {});
|
|
610
618
|
var StorageUploadKind = /* @__PURE__ */ ((StorageUploadKind2) => {
|
|
611
619
|
StorageUploadKind2["CustomizationFont"] = "customization_font";
|
|
612
620
|
return StorageUploadKind2;
|
|
@@ -904,14 +912,6 @@ var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
|
|
|
904
912
|
AgentStatus2["Errored"] = "errored";
|
|
905
913
|
return AgentStatus2;
|
|
906
914
|
})(AgentStatus || {});
|
|
907
|
-
var AgentTaskStatus = /* @__PURE__ */ ((AgentTaskStatus2) => {
|
|
908
|
-
AgentTaskStatus2["Backlog"] = "backlog";
|
|
909
|
-
AgentTaskStatus2["InProgress"] = "in-progress";
|
|
910
|
-
AgentTaskStatus2["InReview"] = "in-review";
|
|
911
|
-
AgentTaskStatus2["Done"] = "done";
|
|
912
|
-
AgentTaskStatus2["Rejected"] = "rejected";
|
|
913
|
-
return AgentTaskStatus2;
|
|
914
|
-
})(AgentTaskStatus || {});
|
|
915
915
|
var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
916
916
|
ContentType2["Json"] = "application/json";
|
|
917
917
|
ContentType2["FormData"] = "multipart/form-data";
|
|
@@ -2750,6 +2750,68 @@ var Api = class extends HttpClient {
|
|
|
2750
2750
|
format: "json",
|
|
2751
2751
|
...params
|
|
2752
2752
|
}),
|
|
2753
|
+
listConversationsIssuesClusters: (organizationId, query, params = {}) => this.request({
|
|
2754
|
+
path: `/orgs/${organizationId}/conversations-clusters`,
|
|
2755
|
+
method: "GET",
|
|
2756
|
+
query,
|
|
2757
|
+
secure: true,
|
|
2758
|
+
format: "json",
|
|
2759
|
+
...params
|
|
2760
|
+
}),
|
|
2761
|
+
getConversationsIssuesCluster: (organizationId, clusterId, params = {}) => this.request({
|
|
2762
|
+
path: `/orgs/${organizationId}/conversations-clusters/${clusterId}`,
|
|
2763
|
+
method: "GET",
|
|
2764
|
+
secure: true,
|
|
2765
|
+
format: "json",
|
|
2766
|
+
...params
|
|
2767
|
+
}),
|
|
2768
|
+
listConversationsIssuesInCluster: (organizationId, clusterId, query, params = {}) => this.request({
|
|
2769
|
+
path: `/orgs/${organizationId}/conversations-clusters/${clusterId}/issues`,
|
|
2770
|
+
method: "GET",
|
|
2771
|
+
query,
|
|
2772
|
+
secure: true,
|
|
2773
|
+
format: "json",
|
|
2774
|
+
...params
|
|
2775
|
+
}),
|
|
2776
|
+
ingestConversation: (organizationId, data, params = {}) => this.request({
|
|
2777
|
+
path: `/orgs/${organizationId}/conversations`,
|
|
2778
|
+
method: "POST",
|
|
2779
|
+
body: data,
|
|
2780
|
+
secure: true,
|
|
2781
|
+
type: "application/json" /* Json */,
|
|
2782
|
+
...params
|
|
2783
|
+
}),
|
|
2784
|
+
getAgentSetupState: (organizationId, params = {}) => this.request({
|
|
2785
|
+
path: `/orgs/${organizationId}/agents-setup`,
|
|
2786
|
+
method: "GET",
|
|
2787
|
+
secure: true,
|
|
2788
|
+
format: "json",
|
|
2789
|
+
...params
|
|
2790
|
+
}),
|
|
2791
|
+
listAgentTasks: (organizationId, query, params = {}) => this.request({
|
|
2792
|
+
path: `/orgs/${organizationId}/agent-tasks`,
|
|
2793
|
+
method: "GET",
|
|
2794
|
+
query,
|
|
2795
|
+
secure: true,
|
|
2796
|
+
format: "json",
|
|
2797
|
+
...params
|
|
2798
|
+
}),
|
|
2799
|
+
getAgentTask: (organizationId, agentTaskId, params = {}) => this.request({
|
|
2800
|
+
path: `/orgs/${organizationId}/agent-tasks/${agentTaskId}`,
|
|
2801
|
+
method: "GET",
|
|
2802
|
+
secure: true,
|
|
2803
|
+
format: "json",
|
|
2804
|
+
...params
|
|
2805
|
+
}),
|
|
2806
|
+
updateAgentTask: (organizationId, agentTaskId, data, params = {}) => this.request({
|
|
2807
|
+
path: `/orgs/${organizationId}/agent-tasks/${agentTaskId}`,
|
|
2808
|
+
method: "PATCH",
|
|
2809
|
+
body: data,
|
|
2810
|
+
secure: true,
|
|
2811
|
+
type: "application/json" /* Json */,
|
|
2812
|
+
format: "json",
|
|
2813
|
+
...params
|
|
2814
|
+
}),
|
|
2753
2815
|
listTranslationSettings: (organizationId, query, params = {}) => this.request({
|
|
2754
2816
|
path: `/orgs/${organizationId}/translations`,
|
|
2755
2817
|
method: "GET",
|