@stack-spot/portal-network 0.197.0 → 0.198.0-beta.1
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/CHANGELOG.md +152 -0
- package/dist/api/agent-tools.d.ts +139 -148
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +41 -4
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +288 -19
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +196 -11
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +316 -32
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +172 -8
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +95 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +78 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/client/account.d.ts +233 -233
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +159 -126
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +35 -4
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +243 -108
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +102 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +2 -2
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +50 -50
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +379 -265
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +100 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +85 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +22 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +29 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +236 -1
- package/dist/client/discover.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +10 -10
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +53 -53
- package/dist/client/workspace-manager.d.ts +77 -77
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/src/api/agent-tools.ts +186 -150
- package/src/api/ai.ts +521 -24
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +631 -37
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +180 -14
- package/src/client/agent-tools.ts +26 -4
- package/src/client/ai.ts +81 -10
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/code-shift.ts +64 -1
- package/src/client/data-integration.ts +15 -1
- package/src/client/discover.ts +233 -3
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
|
@@ -9,8 +9,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
9
9
|
* Generates a url to upload the file
|
|
10
10
|
*/
|
|
11
11
|
generateUrlToFileUpload: import("../network/types.js").MutationObject<Omit<{
|
|
12
|
-
xAccountId?: string | null
|
|
13
|
-
xUsername?: string | null
|
|
12
|
+
xAccountId?: string | null;
|
|
13
|
+
xUsername?: string | null;
|
|
14
14
|
authorization: string;
|
|
15
15
|
newFileUploadRequest: import("../api/dataIntegration.js").NewFileUploadRequest;
|
|
16
16
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").NewFileUploadFormResponse>;
|
|
@@ -19,8 +19,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
19
19
|
*/
|
|
20
20
|
getFileProcessingStatusById: import("../network/types.js").QueryObject<Omit<{
|
|
21
21
|
fileUploadId: string;
|
|
22
|
-
xAccountId?: string | null
|
|
23
|
-
xUsername?: string | null
|
|
22
|
+
xAccountId?: string | null;
|
|
23
|
+
xUsername?: string | null;
|
|
24
24
|
authorization: string;
|
|
25
25
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").FileUploadStatusResponse>;
|
|
26
26
|
/**
|
|
@@ -29,8 +29,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
29
29
|
*/
|
|
30
30
|
saveKnowledgeObjects: import("../network/types.js").MutationObject<Omit<{
|
|
31
31
|
fileUploadId: string;
|
|
32
|
-
xAccountId?: string | null
|
|
33
|
-
xUsername?: string | null
|
|
32
|
+
xAccountId?: string | null;
|
|
33
|
+
xUsername?: string | null;
|
|
34
34
|
authorization: string;
|
|
35
35
|
fileUploadSaveChunksRequest: import("../api/dataIntegration.js").FileUploadSaveChunksRequest;
|
|
36
36
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
@@ -39,8 +39,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
39
39
|
*/
|
|
40
40
|
saveChunkedKnowledgeObjects: import("../network/types.js").MutationObject<Omit<{
|
|
41
41
|
fileUploadId: string;
|
|
42
|
-
xAccountId?: string | null
|
|
43
|
-
xUsername?: string | null
|
|
42
|
+
xAccountId?: string | null;
|
|
43
|
+
xUsername?: string | null;
|
|
44
44
|
authorization: string;
|
|
45
45
|
fileUploadSaveChunksRequest: import("../api/dataIntegration.js").FileUploadSaveChunksRequest;
|
|
46
46
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
@@ -49,8 +49,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
49
49
|
*/
|
|
50
50
|
splitFile: import("../network/types.js").MutationObject<Omit<{
|
|
51
51
|
fileUploadId: string;
|
|
52
|
-
xAccountId?: string | null
|
|
53
|
-
xUsername?: string | null
|
|
52
|
+
xAccountId?: string | null;
|
|
53
|
+
xUsername?: string | null;
|
|
54
54
|
authorization: string;
|
|
55
55
|
fileSplitRequest: import("../api/dataIntegration.js").FileSplitRequest;
|
|
56
56
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
@@ -66,28 +66,43 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
66
66
|
previewFromSplit: import("../network/types.js").QueryObject<Omit<{
|
|
67
67
|
fileUploadId: string;
|
|
68
68
|
splitStrategy: import("../api/dataIntegration.js").FileSplitStrategy;
|
|
69
|
-
xAccountId?: string | null
|
|
70
|
-
xUsername?: string | null
|
|
69
|
+
xAccountId?: string | null;
|
|
70
|
+
xUsername?: string | null;
|
|
71
71
|
authorization: string;
|
|
72
72
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
73
73
|
/**
|
|
74
74
|
* List of knowledge sources
|
|
75
75
|
*/
|
|
76
76
|
knowledgeSources: import("../network/types.js").QueryObject<Omit<{
|
|
77
|
-
visibility?: import("../api/dataIntegration.js").VisibilityLevelEnum
|
|
78
|
-
order?: import("../api/dataIntegration.js").OrderEnum
|
|
79
|
-
types?: import("../api/dataIntegration.js").KnowledgeSourceTypeEnum[]
|
|
80
|
-
xAccountId?: string | null
|
|
81
|
-
xUsername?: string | null
|
|
77
|
+
visibility?: import("../api/dataIntegration.js").VisibilityLevelEnum;
|
|
78
|
+
order?: import("../api/dataIntegration.js").OrderEnum;
|
|
79
|
+
types?: import("../api/dataIntegration.js").KnowledgeSourceTypeEnum[];
|
|
80
|
+
xAccountId?: string | null;
|
|
81
|
+
xUsername?: string | null;
|
|
82
82
|
authorization: string;
|
|
83
83
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceItemResponse[]>;
|
|
84
|
+
/**
|
|
85
|
+
* List of knowledge sources with pagination
|
|
86
|
+
*/
|
|
87
|
+
knowledgeSourcesV2: import("../network/types.js").InfiniteQueryObject<Omit<{
|
|
88
|
+
name?: string | null;
|
|
89
|
+
slug?: string | null;
|
|
90
|
+
size?: number;
|
|
91
|
+
page?: number;
|
|
92
|
+
visibilityList?: import("../api/dataIntegration.js").VisibilityLevelEnum[] | null;
|
|
93
|
+
order?: import("../api/dataIntegration.js").OrderEnum | null;
|
|
94
|
+
types?: import("../api/dataIntegration.js").KnowledgeSourceTypeEnum[];
|
|
95
|
+
xAccountId?: string | null;
|
|
96
|
+
xUsername?: string | null;
|
|
97
|
+
authorization: string;
|
|
98
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").PaginatedResponseKnowledgeSourceItemResponse, "items">;
|
|
84
99
|
/**
|
|
85
100
|
* Adds the resource of type Knowledge Source to the list of favorites.
|
|
86
101
|
*/
|
|
87
102
|
addFavoriteKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
88
103
|
slug: string;
|
|
89
|
-
xAccountId?: string | null
|
|
90
|
-
xUsername?: string | null
|
|
104
|
+
xAccountId?: string | null;
|
|
105
|
+
xUsername?: string | null;
|
|
91
106
|
authorization: string;
|
|
92
107
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
93
108
|
/**
|
|
@@ -95,8 +110,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
95
110
|
*/
|
|
96
111
|
removeFavoriteKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
97
112
|
slug: string;
|
|
98
|
-
xAccountId?: string | null
|
|
99
|
-
xUsername?: string | null
|
|
113
|
+
xAccountId?: string | null;
|
|
114
|
+
xUsername?: string | null;
|
|
100
115
|
authorization: string;
|
|
101
116
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
102
117
|
/**
|
|
@@ -104,34 +119,49 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
104
119
|
*/
|
|
105
120
|
listKnowledgeObjects: import("../network/types.js").QueryObject<Omit<{
|
|
106
121
|
ksSlug: string;
|
|
107
|
-
standalone?: boolean | null
|
|
108
|
-
filePath?: string[]
|
|
109
|
-
contentLimit?: number | null
|
|
110
|
-
xAccountId?: string | null
|
|
111
|
-
xUsername?: string | null
|
|
122
|
+
standalone?: boolean | null;
|
|
123
|
+
filePath?: string[];
|
|
124
|
+
contentLimit?: number | null;
|
|
125
|
+
xAccountId?: string | null;
|
|
126
|
+
xUsername?: string | null;
|
|
112
127
|
authorization: string;
|
|
113
128
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeObjectResponse[]>;
|
|
129
|
+
/**
|
|
130
|
+
* List knowledge objects from a knowledge source with pagination
|
|
131
|
+
*/
|
|
132
|
+
listKnowledgeObjectsV2: import("../network/types.js").InfiniteQueryObject<Omit<{
|
|
133
|
+
ksSlug: string;
|
|
134
|
+
size?: number;
|
|
135
|
+
page?: number;
|
|
136
|
+
order?: import("../api/dataIntegration.js").OrderEnum | null;
|
|
137
|
+
standalone?: boolean | null;
|
|
138
|
+
filePath?: string[];
|
|
139
|
+
contentLimit?: number | null;
|
|
140
|
+
xAccountId?: string | null;
|
|
141
|
+
xUsername?: string | null;
|
|
142
|
+
authorization: string;
|
|
143
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").PaginatedResponseKnowledgeObjectResponse, "items">;
|
|
114
144
|
/**
|
|
115
145
|
* Get a knowledge object by id
|
|
116
146
|
*/
|
|
117
147
|
getKnowledgeObjectById: import("../network/types.js").QueryObject<Omit<{
|
|
118
148
|
ksSlug: string;
|
|
119
149
|
koId: string;
|
|
120
|
-
xAccountId?: string | null
|
|
121
|
-
xUsername?: string | null
|
|
150
|
+
xAccountId?: string | null;
|
|
151
|
+
xUsername?: string | null;
|
|
122
152
|
authorization: string;
|
|
123
153
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeObjectResponse>;
|
|
124
154
|
uploadFiles: Omit<import("../network/types.js").MutationObject<{
|
|
125
155
|
files: File[];
|
|
126
156
|
type: FileUploadType;
|
|
127
|
-
targetId?: string
|
|
157
|
+
targetId?: string;
|
|
128
158
|
}, string[]>, keyof import("../network/types.js").OperationObject<any>>;
|
|
129
159
|
/**
|
|
130
160
|
* Uploads a KO file
|
|
131
161
|
*/
|
|
132
162
|
fileUploadFormKnowledgeObject: import("../network/types.js").MutationObject<Omit<{
|
|
133
|
-
xAccountId?: string | null
|
|
134
|
-
xUsername?: string | null
|
|
163
|
+
xAccountId?: string | null;
|
|
164
|
+
xUsername?: string | null;
|
|
135
165
|
authorization: string;
|
|
136
166
|
newFileUploadRequest: import("../api/dataIntegration.js").NewFileUploadRequest;
|
|
137
167
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").NewFileUploadFormResponse>;
|
|
@@ -139,8 +169,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
139
169
|
* Create Ks
|
|
140
170
|
*/
|
|
141
171
|
createKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
142
|
-
xAccountId?: string | null
|
|
143
|
-
xUsername?: string | null
|
|
172
|
+
xAccountId?: string | null;
|
|
173
|
+
xUsername?: string | null;
|
|
144
174
|
authorization: string;
|
|
145
175
|
newKnowledgeSourceRequest: import("../api/dataIntegration.js").NewKnowledgeSourceRequest;
|
|
146
176
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
@@ -148,8 +178,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
148
178
|
* Search Ks
|
|
149
179
|
*/
|
|
150
180
|
listKnowledgeSourcesDataByIds: import("../network/types.js").QueryObject<Omit<{
|
|
151
|
-
xAccountId?: string | null
|
|
152
|
-
xUsername?: string | null
|
|
181
|
+
xAccountId?: string | null;
|
|
182
|
+
xUsername?: string | null;
|
|
153
183
|
authorization: string;
|
|
154
184
|
knowledgeSourceSearchRequest: import("../api/dataIntegration.js").KnowledgeSourceSearchRequest;
|
|
155
185
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceResponse[]>;
|
|
@@ -158,16 +188,16 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
158
188
|
*/
|
|
159
189
|
findKnowledgeSourceBySlug: import("../network/types.js").QueryObject<Omit<{
|
|
160
190
|
slug: string;
|
|
161
|
-
xAccountId?: string | null
|
|
162
|
-
xUsername?: string | null
|
|
191
|
+
xAccountId?: string | null;
|
|
192
|
+
xUsername?: string | null;
|
|
163
193
|
authorization: string;
|
|
164
194
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceResponse>;
|
|
165
195
|
/**
|
|
166
196
|
* Search Objects
|
|
167
197
|
*/
|
|
168
198
|
searchObjects: import("../network/types.js").MutationObject<Omit<{
|
|
169
|
-
xAccountId?: string | null
|
|
170
|
-
xUsername?: string | null
|
|
199
|
+
xAccountId?: string | null;
|
|
200
|
+
xUsername?: string | null;
|
|
171
201
|
authorization: string;
|
|
172
202
|
searchKnowledgeObjectRequest: import("../api/dataIntegration.js").SearchKnowledgeObjectRequest;
|
|
173
203
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").SearchKnowledgeObjectResponse[]>;
|
|
@@ -176,8 +206,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
176
206
|
*/
|
|
177
207
|
updateKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
178
208
|
slug: string;
|
|
179
|
-
xAccountId?: string | null
|
|
180
|
-
xUsername?: string | null
|
|
209
|
+
xAccountId?: string | null;
|
|
210
|
+
xUsername?: string | null;
|
|
181
211
|
authorization: string;
|
|
182
212
|
knowledgeSourcePatchesRequest: import("../api/dataIntegration.js").KnowledgeSourcePatchesRequest;
|
|
183
213
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
@@ -186,8 +216,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
186
216
|
*/
|
|
187
217
|
shareKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
188
218
|
slug: string;
|
|
189
|
-
xAccountId?: string | null
|
|
190
|
-
xUsername?: string | null
|
|
219
|
+
xAccountId?: string | null;
|
|
220
|
+
xUsername?: string | null;
|
|
191
221
|
authorization: string;
|
|
192
222
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
193
223
|
/**
|
|
@@ -195,18 +225,18 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
195
225
|
*/
|
|
196
226
|
publishKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
197
227
|
slug: string;
|
|
198
|
-
xAccountId?: string | null
|
|
199
|
-
xUsername?: string | null
|
|
228
|
+
xAccountId?: string | null;
|
|
229
|
+
xUsername?: string | null;
|
|
200
230
|
authorization: string;
|
|
201
|
-
body?: import("../api/dataIntegration.js").KnowledgeSourcesPublishRequest | null
|
|
231
|
+
body?: import("../api/dataIntegration.js").KnowledgeSourcesPublishRequest | null;
|
|
202
232
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
203
233
|
/**
|
|
204
234
|
* Fork Knowledge Source
|
|
205
235
|
*/
|
|
206
236
|
forkKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
207
237
|
slug: string;
|
|
208
|
-
xAccountId?: string | null
|
|
209
|
-
xUsername?: string | null
|
|
238
|
+
xAccountId?: string | null;
|
|
239
|
+
xUsername?: string | null;
|
|
210
240
|
authorization: string;
|
|
211
241
|
forkKnowledgeSourceRequest: import("../api/dataIntegration.js").ForkKnowledgeSourceRequest;
|
|
212
242
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
@@ -215,9 +245,9 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
215
245
|
*/
|
|
216
246
|
deleteKnowledgeObjectsByStandalone: import("../network/types.js").MutationObject<Omit<{
|
|
217
247
|
ksSlug: string;
|
|
218
|
-
standalone?: boolean | null
|
|
219
|
-
xAccountId?: string | null
|
|
220
|
-
xUsername?: string | null
|
|
248
|
+
standalone?: boolean | null;
|
|
249
|
+
xAccountId?: string | null;
|
|
250
|
+
xUsername?: string | null;
|
|
221
251
|
authorization: string;
|
|
222
252
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
223
253
|
/**
|
|
@@ -226,8 +256,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
226
256
|
deleteKnowledgeObjectFromKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
|
|
227
257
|
ksSlug: string;
|
|
228
258
|
koId: string;
|
|
229
|
-
xAccountId?: string | null
|
|
230
|
-
xUsername?: string | null
|
|
259
|
+
xAccountId?: string | null;
|
|
260
|
+
xUsername?: string | null;
|
|
231
261
|
authorization: string;
|
|
232
262
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
233
263
|
/**
|
|
@@ -235,8 +265,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
235
265
|
*/
|
|
236
266
|
listIndexedProjectFiles: import("../network/types.js").QueryObject<Omit<{
|
|
237
267
|
ksSlug: string;
|
|
238
|
-
xAccountId?: string | null
|
|
239
|
-
xUsername?: string | null
|
|
268
|
+
xAccountId?: string | null;
|
|
269
|
+
xUsername?: string | null;
|
|
240
270
|
authorization: string;
|
|
241
271
|
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceFilesIngestedResponse[]>;
|
|
242
272
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-integration.d.ts","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"data-integration.d.ts","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE7C,OAAO,EAML,cAAc,EAsBf,MAAM,wBAAwB,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ACH,oBAAoB;;;;;4EAAkF;IACtG;;OAEG;IACH,sBAAsB;;;;;;4EAAsF;IAC5G;;OAEG;IACH,mBAAmB;;;;;;4EAAgF;IACnG;;OAEG;IACH,kCAAkC;;;;;;4EAAyF;IAC3H;;OAEG;IACH,wCAAwC;;;;;;4EAAiG;IACzI;;OAEG;IACH,uBAAuB;;;;;4IAAwF;CAEhH;AAED,eAAO,MAAM,qBAAqB,uBAA8B,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getApiAddresses } from '../api-addresses.js';
|
|
2
|
+
import { addFavoriteV1KnowledgeSourcesSlugFavoritePost, createKsV1KnowledgeSourcesPost, defaults, deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete, deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete, findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet, findKsV1KnowledgeSourcesSlugGet, forkKsV1KnowledgeSourcesSlugForkPost, getFileUploadStatusV1FileUploadFileUploadIdGet, getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet, getUploadFormV1FileUploadFormPost, getUploadFormV2V2FileUploadFormPost, listKosV1KnowledgeSourcesKsSlugObjectsGet, listKosV2KnowledgeSourcesKsSlugObjectsGet, listKsV1KnowledgeSourcesGet, listKsV2KnowledgeSourcesGet, publishKsV1KnowledgeSourcesSlugPublishPost, resetKosV1KnowledgeSourcesKsSlugObjectsDelete, saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost, saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost, searchKsV1KnowledgeSourcesSearchPost, searchObjectsV1SearchPost, shareKsV1KnowledgeSourcesSlugSharePost, splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet, splitUploadedFileV1FileUploadFileUploadIdSplitPost, updateKsV1KnowledgeSourcesSlugPatch, } from '../api/dataIntegration.js';
|
|
2
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
3
4
|
import { baseDictionary } from '../error/dictionary/base.js';
|
|
4
5
|
import { FileUploadError } from '../error/FileUploadError.js';
|
|
5
6
|
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
6
7
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
7
8
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
|
|
8
|
-
|
|
9
|
+
const listKSV2WithoutAuthorization = removeAuthorizationParam(listKsV2KnowledgeSourcesGet);
|
|
10
|
+
const listKOV2WithoutAuthorization = removeAuthorizationParam(listKosV2KnowledgeSourcesKsSlugObjectsGet);
|
|
9
11
|
class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(getApiAddresses().dataIntegration.url, defaults);
|
|
@@ -73,6 +75,15 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
73
75
|
writable: true,
|
|
74
76
|
value: this.query(removeAuthorizationParam(listKsV1KnowledgeSourcesGet))
|
|
75
77
|
});
|
|
78
|
+
/**
|
|
79
|
+
* List of knowledge sources with pagination
|
|
80
|
+
*/
|
|
81
|
+
Object.defineProperty(this, "knowledgeSourcesV2", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
configurable: true,
|
|
84
|
+
writable: true,
|
|
85
|
+
value: this.infiniteQuery(listKSV2WithoutAuthorization, { accumulator: 'items' })
|
|
86
|
+
});
|
|
76
87
|
/**
|
|
77
88
|
* Adds the resource of type Knowledge Source to the list of favorites.
|
|
78
89
|
*/
|
|
@@ -100,6 +111,15 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
100
111
|
writable: true,
|
|
101
112
|
value: this.query(removeAuthorizationParam(listKosV1KnowledgeSourcesKsSlugObjectsGet))
|
|
102
113
|
});
|
|
114
|
+
/**
|
|
115
|
+
* List knowledge objects from a knowledge source with pagination
|
|
116
|
+
*/
|
|
117
|
+
Object.defineProperty(this, "listKnowledgeObjectsV2", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
configurable: true,
|
|
120
|
+
writable: true,
|
|
121
|
+
value: this.infiniteQuery(listKOV2WithoutAuthorization, { accumulator: 'items' })
|
|
122
|
+
});
|
|
103
123
|
/**
|
|
104
124
|
* Get a knowledge object by id
|
|
105
125
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-integration.js","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6CAA6C,EAC7C,8BAA8B,EAC9B,QAAQ,EACR,kDAAkD,EAClD,qDAAqD,EAErD,gDAAgD,EAChD,+BAA+B,EAC/B,oCAAoC,EACpC,8CAA8C,EAC9C,+CAA+C,EAC/C,iCAAiC,EACjC,mCAAmC,EACnC,yCAAyC,EACzC,2BAA2B,EAC3B,0CAA0C,EAC1C,6CAA6C,EAC7C,sDAAsD,EACtD,4DAA4D,EAC5D,oCAAoC,EACpC,yBAAyB,EACzB,sCAAsC,EACtC,4EAA4E,EAC5E,kDAAkD,EAClD,mCAAmC,GACpC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"data-integration.js","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,6CAA6C,EAC7C,8BAA8B,EAC9B,QAAQ,EACR,kDAAkD,EAClD,qDAAqD,EAErD,gDAAgD,EAChD,+BAA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;IACH,sBAAsB,CACpB,YAAoB,EACpB,aAAqB,EACrB,OAAkC;QAElC,MAAM,GAAG,GAAG,mBAAmB,YAAY,kBAAkB,aAAa,EAAE,CAAA;QAE5E,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YACvC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,QAAQ,EAAE,mBAAmB;aAC9B;YACD,MAAM,EAAE,OAAO,EAAE,MAAM;SACxB,CAAC,CAAA;IACJ,CAAC;CAiHF;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAA"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime';
|
|
2
2
|
import { ConversationResponse } from '../api/ai.js';
|
|
3
|
-
import { GetOpportunityResponse } from '../api/discover.js';
|
|
3
|
+
import { GetOpportunityResponse, MessageRequest } from '../api/discover.js';
|
|
4
4
|
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
5
|
+
import { StreamedJson } from '../utils/StreamedJson.js';
|
|
5
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
7
|
+
import { ChatResponseWithSteps } from './types.js';
|
|
6
8
|
export interface ChatConversionDetails extends ConversationResponse {
|
|
7
9
|
opportunityName?: string;
|
|
8
10
|
hypothesisCount?: number;
|
|
@@ -11,11 +13,11 @@ declare class DiscoverClient extends ReactQueryNetworkClient {
|
|
|
11
13
|
constructor();
|
|
12
14
|
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
13
15
|
opportunities: import("../network/types.js").QueryObject<{
|
|
14
|
-
filter?: string
|
|
15
|
-
page?: number
|
|
16
|
-
size?: number
|
|
17
|
-
sort?: string
|
|
18
|
-
direction?: string
|
|
16
|
+
filter?: string;
|
|
17
|
+
page?: number;
|
|
18
|
+
size?: number;
|
|
19
|
+
sort?: string;
|
|
20
|
+
direction?: string;
|
|
19
21
|
}, import("../api/discover.js").PageResponseGetOpportunityResponse>;
|
|
20
22
|
opportunity: import("../network/types.js").QueryObject<{
|
|
21
23
|
opportunityId: string;
|
|
@@ -53,11 +55,29 @@ declare class DiscoverClient extends ReactQueryNetworkClient {
|
|
|
53
55
|
deleteDocument: import("../network/types.js").MutationObject<{
|
|
54
56
|
documentId: string;
|
|
55
57
|
}, never>;
|
|
58
|
+
/**
|
|
59
|
+
* Fetch insights
|
|
60
|
+
*/
|
|
61
|
+
insights: import("../network/types.js").QueryObject<void, import("../api/discover.js").InsightResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Refresh insights
|
|
64
|
+
*/
|
|
65
|
+
refreshInsights: import("../network/types.js").MutationObject<void, import("../api/discover.js").InsightResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Get Insight by Id
|
|
68
|
+
*/
|
|
69
|
+
insightById: import("../network/types.js").QueryObject<{
|
|
70
|
+
insightId: string;
|
|
71
|
+
}, import("../api/discover.js").GetInsightResponse>;
|
|
56
72
|
chats: Omit<import("../network/types.js").QueryObject<{
|
|
57
|
-
filter?: string
|
|
58
|
-
page?: number
|
|
59
|
-
size?: number
|
|
73
|
+
filter?: string;
|
|
74
|
+
page?: number;
|
|
75
|
+
size?: number;
|
|
60
76
|
}, ChatConversionDetails[]>, "isAllowed" | "useAllowed" | "getPermissionKey">;
|
|
77
|
+
private static toolsOfAgent;
|
|
78
|
+
sendChatMessage(request: MessageRequest & {
|
|
79
|
+
agentId: string;
|
|
80
|
+
}, minChangeIntervalMS?: number): StreamedJson<ChatResponseWithSteps>;
|
|
61
81
|
}
|
|
62
82
|
export declare const discoverClient: DiscoverClient;
|
|
63
83
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/client/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
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