@stack-spot/portal-network 0.146.2 → 0.147.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/CHANGELOG.md +7 -0
- package/dist/api/agent-tools.d.ts +684 -15
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +370 -9
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/client/agent-tools.d.ts +119 -1
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +107 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts +30 -30
- package/dist/client/cloud-account.d.ts +5 -5
- package/dist/client/cloud-platform-horizon.d.ts +20 -20
- package/dist/client/cloud-platform.d.ts +28 -28
- package/dist/client/cloud-runtimes.d.ts +21 -21
- package/dist/client/code-shift.d.ts +37 -37
- package/dist/client/content.d.ts +6 -6
- package/dist/client/data-integration.d.ts +19 -8
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +13 -4
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discovery.d.ts +6 -6
- package/dist/client/gen-ai-inference.d.ts +9 -9
- package/dist/client/types.d.ts +9 -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 +15 -15
- package/dist/utils/StreamedJson.js +2 -2
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +1 -1
- package/src/api/agent-tools.ts +1169 -54
- package/src/client/agent-tools.ts +59 -2
- package/src/client/data-integration.ts +27 -19
- package/src/client/types.ts +10 -0
- package/src/utils/StreamedJson.tsx +2 -2
|
@@ -11,7 +11,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
11
11
|
createApplication: import("../network/types.js").MutationObject<Omit<{
|
|
12
12
|
authorization: string;
|
|
13
13
|
createApplicationRequest: import("../api/codeShift.js").CreateApplicationRequest;
|
|
14
|
-
}, "authorization" | "
|
|
14
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
15
15
|
/**
|
|
16
16
|
* @deprecated use createRepositoriesBatch instead
|
|
17
17
|
* Creates a code shift application in batch.
|
|
@@ -19,7 +19,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
19
19
|
createApplicationBatch: import("../network/types.js").MutationObject<Omit<{
|
|
20
20
|
authorization: string;
|
|
21
21
|
bodyCreateApplicationsBatchServiceV1ApplicationsBatchPost: import("../api/codeShift.js").BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost;
|
|
22
|
-
}, "authorization" | "
|
|
22
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
23
23
|
/**
|
|
24
24
|
* @deprecated use repositories instead
|
|
25
25
|
* Gets code shift applications.
|
|
@@ -31,7 +31,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
31
31
|
filter?: string | undefined;
|
|
32
32
|
moduleId?: string | undefined;
|
|
33
33
|
authorization: string;
|
|
34
|
-
}, "authorization" | "
|
|
34
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListApplicationResponse>;
|
|
35
35
|
/**
|
|
36
36
|
* @deprecated use repository instead
|
|
37
37
|
* Gets code shift application
|
|
@@ -39,7 +39,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
39
39
|
application: import("../network/types.js").QueryObject<Omit<{
|
|
40
40
|
applicationId: string;
|
|
41
41
|
authorization: string;
|
|
42
|
-
}, "authorization" | "
|
|
42
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ApplicationResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* @deprecated use updateRepository instead
|
|
45
45
|
* Updates a code shift application
|
|
@@ -48,7 +48,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
48
48
|
applicationId: string;
|
|
49
49
|
authorization: string;
|
|
50
50
|
putApplicationRequest: import("../api/codeShift.js").PutApplicationRequest;
|
|
51
|
-
}, "authorization" | "
|
|
51
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
52
52
|
/**
|
|
53
53
|
* @deprecated use deleteRepository instead
|
|
54
54
|
* Deletes a code shift application.
|
|
@@ -56,14 +56,14 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
56
56
|
deleteImportedApp: import("../network/types.js").MutationObject<Omit<{
|
|
57
57
|
applicationId: string;
|
|
58
58
|
authorization: string;
|
|
59
|
-
}, "authorization" | "
|
|
59
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
60
60
|
/**
|
|
61
61
|
* Creates a repository.
|
|
62
62
|
*/
|
|
63
63
|
createRepository: import("../network/types.js").MutationObject<Omit<{
|
|
64
64
|
authorization: string;
|
|
65
65
|
createRepositoryRequest: import("../api/codeShift.js").CreateRepositoryRequest;
|
|
66
|
-
}, "authorization" | "
|
|
66
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
67
67
|
/**
|
|
68
68
|
* Creates repositories in batch.
|
|
69
69
|
*/
|
|
@@ -71,7 +71,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
71
71
|
tags?: string[] | null | undefined;
|
|
72
72
|
authorization: string;
|
|
73
73
|
bodyCreateReposBatchServiceV1ReposBatchPost: import("../api/codeShift.js").BodyCreateReposBatchServiceV1ReposBatchPost;
|
|
74
|
-
}, "authorization" | "
|
|
74
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
75
75
|
/**
|
|
76
76
|
* Gets list of repositories.
|
|
77
77
|
*/
|
|
@@ -87,21 +87,21 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
87
87
|
orderDirection?: string | undefined;
|
|
88
88
|
tags?: string[] | null | undefined;
|
|
89
89
|
authorization: string;
|
|
90
|
-
}, "authorization" | "
|
|
90
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListRepositoryResponse>;
|
|
91
91
|
/**
|
|
92
92
|
* Gets a repository
|
|
93
93
|
*/
|
|
94
94
|
repository: import("../network/types.js").QueryObject<Omit<{
|
|
95
95
|
repositoryId: string;
|
|
96
96
|
authorization: string;
|
|
97
|
-
}, "authorization" | "
|
|
97
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").RepositoryResponse2>;
|
|
98
98
|
/**
|
|
99
99
|
* Deletes a repository
|
|
100
100
|
*/
|
|
101
101
|
deleteRepository: import("../network/types.js").MutationObject<Omit<{
|
|
102
102
|
repositoryId: string;
|
|
103
103
|
authorization: string;
|
|
104
|
-
}, "authorization" | "
|
|
104
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
105
105
|
/**
|
|
106
106
|
* Updates a repository
|
|
107
107
|
*/
|
|
@@ -109,7 +109,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
109
109
|
repositoryId: string;
|
|
110
110
|
authorization: string;
|
|
111
111
|
putRepositoryRequest: import("../api/codeShift.js").PutRepositoryRequest;
|
|
112
|
-
}, "authorization" | "
|
|
112
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
113
113
|
/**
|
|
114
114
|
* Gets modules.
|
|
115
115
|
*/
|
|
@@ -119,7 +119,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
119
119
|
page?: number | undefined;
|
|
120
120
|
lastEvaluatedKey?: string | undefined;
|
|
121
121
|
authorization: string;
|
|
122
|
-
}, "authorization" | "
|
|
122
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListModuleResponse>;
|
|
123
123
|
/**
|
|
124
124
|
* Creates a module.
|
|
125
125
|
*/
|
|
@@ -128,14 +128,14 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
128
128
|
xAccountSlug?: any;
|
|
129
129
|
xAccountId?: any;
|
|
130
130
|
createModuleRequest: import("../api/codeShift.js").CreateModuleRequest;
|
|
131
|
-
}, "authorization" | "
|
|
131
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
132
132
|
/**
|
|
133
133
|
* Generates a report.
|
|
134
134
|
*/
|
|
135
135
|
generateReport: import("../network/types.js").MutationObject<Omit<{
|
|
136
136
|
authorization: string;
|
|
137
137
|
body: import("../api/codeShift.js").ModuleDispatchRequest[];
|
|
138
|
-
}, "authorization" | "
|
|
138
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
139
139
|
/**
|
|
140
140
|
* @deprecated use repositoryReports instead
|
|
141
141
|
* Gets reports.
|
|
@@ -146,7 +146,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
146
146
|
page?: number | undefined;
|
|
147
147
|
lastEvaluatedKey?: string | undefined;
|
|
148
148
|
authorization: string;
|
|
149
|
-
}, "authorization" | "
|
|
149
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListApplicationReportResponse>;
|
|
150
150
|
/**
|
|
151
151
|
* Gets repository reports.
|
|
152
152
|
*/
|
|
@@ -156,14 +156,14 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
156
156
|
page?: number | undefined;
|
|
157
157
|
lastEvaluatedKey?: string | undefined;
|
|
158
158
|
authorization: string;
|
|
159
|
-
}, "authorization" | "
|
|
159
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListRepositoryReportResponse>;
|
|
160
160
|
/**
|
|
161
161
|
* Gets report.
|
|
162
162
|
*/
|
|
163
163
|
report: import("../network/types.js").QueryObject<Omit<{
|
|
164
164
|
reportId: string;
|
|
165
165
|
authorization: string;
|
|
166
|
-
}, "authorization" | "
|
|
166
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").GetReportResponse>;
|
|
167
167
|
/**
|
|
168
168
|
* Downloads a report as a csv file.
|
|
169
169
|
*/
|
|
@@ -171,34 +171,34 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
171
171
|
reportId: string;
|
|
172
172
|
extension?: "csv" | "xlsx" | undefined;
|
|
173
173
|
authorization: string;
|
|
174
|
-
}, "authorization" | "
|
|
174
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
175
175
|
/**
|
|
176
176
|
* Gets code shift settings
|
|
177
177
|
*/
|
|
178
178
|
settings: import("../network/types.js").QueryObject<Omit<{
|
|
179
179
|
authorization: string;
|
|
180
|
-
}, "authorization" | "
|
|
180
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").GetAccountSettingsRequest>;
|
|
181
181
|
/**
|
|
182
182
|
* Updates code shift settings
|
|
183
183
|
*/
|
|
184
184
|
updateSettings: import("../network/types.js").MutationObject<Omit<{
|
|
185
185
|
authorization: string;
|
|
186
186
|
createAccountSettingsRequest: import("../api/codeShift.js").CreateAccountSettingsRequest;
|
|
187
|
-
}, "authorization" | "
|
|
187
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
188
188
|
/**
|
|
189
189
|
* Starts a search repository
|
|
190
190
|
*/
|
|
191
191
|
searchRepository: import("../network/types.js").QueryObject<Omit<{
|
|
192
192
|
repoName: string;
|
|
193
193
|
authorization: string;
|
|
194
|
-
}, "authorization" | "
|
|
194
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").SearchRepoScmResponse>;
|
|
195
195
|
/**
|
|
196
196
|
* Gets the status for a search repository
|
|
197
197
|
*/
|
|
198
198
|
searchRepositoryStatus: import("../network/types.js").QueryObject<Omit<{
|
|
199
199
|
searchRepoId: string;
|
|
200
200
|
authorization: string;
|
|
201
|
-
}, "authorization" | "
|
|
201
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").GetStatusSearchRepoScmResponse>;
|
|
202
202
|
/**
|
|
203
203
|
* Downloads file with found repositories
|
|
204
204
|
*/
|
|
@@ -206,7 +206,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
206
206
|
searchRepoId: string;
|
|
207
207
|
extension?: "csv" | "xlsx" | undefined;
|
|
208
208
|
authorization: string;
|
|
209
|
-
}, "authorization" | "
|
|
209
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
210
210
|
/**
|
|
211
211
|
* Validate if the user has permission.
|
|
212
212
|
* We do not use opa in this api, so this is the fn needed to check permissions.
|
|
@@ -214,14 +214,14 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
214
214
|
validateRolePermissions: import("../network/types.js").QueryObject<Omit<{
|
|
215
215
|
role: import("../api/codeShift.js").CodeShiftRole;
|
|
216
216
|
authorization: string;
|
|
217
|
-
}, "authorization" | "
|
|
217
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").RolesResponse>;
|
|
218
218
|
/**
|
|
219
219
|
* Creates an integration
|
|
220
220
|
*/
|
|
221
221
|
createIntegration: import("../network/types.js").MutationObject<Omit<{
|
|
222
222
|
authorization: string;
|
|
223
223
|
createIntegrationRequest: import("../api/codeShift.js").CreateIntegrationRequest;
|
|
224
|
-
}, "authorization" | "
|
|
224
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").CreateIntegrationResponse>;
|
|
225
225
|
/**
|
|
226
226
|
* Lists integrations
|
|
227
227
|
*/
|
|
@@ -230,14 +230,14 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
230
230
|
page?: number | undefined;
|
|
231
231
|
name?: string | null | undefined;
|
|
232
232
|
authorization: string;
|
|
233
|
-
}, "authorization" | "
|
|
233
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListIntegrationResponse>;
|
|
234
234
|
/**
|
|
235
235
|
* Gets an integration by id
|
|
236
236
|
*/
|
|
237
237
|
getIntegrationById: import("../network/types.js").QueryObject<Omit<{
|
|
238
238
|
integrationId: string;
|
|
239
239
|
authorization: string;
|
|
240
|
-
}, "authorization" | "
|
|
240
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").IntegrationResponse>;
|
|
241
241
|
/**
|
|
242
242
|
* Updates an integration
|
|
243
243
|
*/
|
|
@@ -245,14 +245,14 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
245
245
|
integrationId: string;
|
|
246
246
|
authorization: string;
|
|
247
247
|
putIntegrationRequest: import("../api/codeShift.js").PutIntegrationRequest;
|
|
248
|
-
}, "authorization" | "
|
|
248
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
249
249
|
/**
|
|
250
250
|
* Deletes an integration
|
|
251
251
|
*/
|
|
252
252
|
deleteIntegration: import("../network/types.js").MutationObject<Omit<{
|
|
253
253
|
integrationId: string;
|
|
254
254
|
authorization: string;
|
|
255
|
-
}, "authorization" | "
|
|
255
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
256
256
|
/**
|
|
257
257
|
* Creates a program group.
|
|
258
258
|
*/
|
|
@@ -262,7 +262,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
262
262
|
integrationId?: string | undefined;
|
|
263
263
|
authorization: string;
|
|
264
264
|
bodyCreateProgramGroupServiceV1ProgramGroupsPost?: import("../api/codeShift.js").BodyCreateProgramGroupServiceV1ProgramGroupsPost | undefined;
|
|
265
|
-
}, "authorization" | "
|
|
265
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").CreateProgramGroupResponse>;
|
|
266
266
|
/**
|
|
267
267
|
* Gets list of program groups.
|
|
268
268
|
*/
|
|
@@ -278,14 +278,14 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
278
278
|
orderDirection?: string | undefined;
|
|
279
279
|
integrationId?: string | undefined;
|
|
280
280
|
authorization: string;
|
|
281
|
-
}, "authorization" | "
|
|
281
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListProgramGroupResponse>;
|
|
282
282
|
/**
|
|
283
283
|
* Gets a program group by id.
|
|
284
284
|
*/
|
|
285
285
|
getProgramGroupById: import("../network/types.js").QueryObject<Omit<{
|
|
286
286
|
programGroupId: string;
|
|
287
287
|
authorization: string;
|
|
288
|
-
}, "authorization" | "
|
|
288
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ProgramGroupResponse3>;
|
|
289
289
|
/**
|
|
290
290
|
* List Program Group Report Service
|
|
291
291
|
*/
|
|
@@ -295,7 +295,7 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
295
295
|
page?: number | undefined;
|
|
296
296
|
lastEvaluatedKey?: string | undefined;
|
|
297
297
|
authorization: string;
|
|
298
|
-
}, "authorization" | "
|
|
298
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListProgramGroupReportResponse>;
|
|
299
299
|
/**
|
|
300
300
|
* Updates a program group.
|
|
301
301
|
*/
|
|
@@ -306,21 +306,21 @@ declare class CodeShift extends ReactQueryNetworkClient {
|
|
|
306
306
|
integrationId?: string | null | undefined;
|
|
307
307
|
authorization: string;
|
|
308
308
|
bodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut?: import("../api/codeShift.js").BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut | undefined;
|
|
309
|
-
}, "authorization" | "
|
|
309
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
310
310
|
/**
|
|
311
311
|
* Deletes a program group.
|
|
312
312
|
*/
|
|
313
313
|
deleteProgramGroup: import("../network/types.js").MutationObject<Omit<{
|
|
314
314
|
programGroupId: string;
|
|
315
315
|
authorization: string;
|
|
316
|
-
}, "authorization" | "
|
|
316
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
317
317
|
/**
|
|
318
318
|
* Gets list of tags.
|
|
319
319
|
*/
|
|
320
320
|
tags: import("../network/types.js").QueryObject<Omit<{
|
|
321
321
|
name?: string | null | undefined;
|
|
322
322
|
authorization: string;
|
|
323
|
-
}, "authorization" | "
|
|
323
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/codeShift.js").ListTagResponse>;
|
|
324
324
|
}
|
|
325
325
|
export declare const codeShiftClient: CodeShift;
|
|
326
326
|
export {};
|
package/dist/client/content.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
39
39
|
studios: import("../network/types.js").QueryObject<Omit<{
|
|
40
40
|
xWorkspaceId?: string | undefined;
|
|
41
41
|
filter?: string | undefined;
|
|
42
|
-
}, "authorization" | "
|
|
42
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/content.js").StudioResponse[]>;
|
|
43
43
|
/**
|
|
44
44
|
* Gets all studios
|
|
45
45
|
*/
|
|
@@ -53,11 +53,11 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
53
53
|
workspaceId?: string | undefined;
|
|
54
54
|
hasBaseWorkflows?: boolean | undefined;
|
|
55
55
|
pageable: Pageable;
|
|
56
|
-
}, "authorization" | "
|
|
56
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/content.js").PageStudioResponse, "content">;
|
|
57
57
|
/**
|
|
58
58
|
* Gets all studios
|
|
59
59
|
*/
|
|
60
|
-
studiosUserHasCreatePermission: import("../network/types.js").QueryObject<Omit<import("@oazapfts/runtime").RequestOpts | undefined, "authorization" | "
|
|
60
|
+
studiosUserHasCreatePermission: import("../network/types.js").QueryObject<Omit<import("@oazapfts/runtime").RequestOpts | undefined, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/content.js").StudioSummaryResponse[]>;
|
|
61
61
|
/**
|
|
62
62
|
* Gets a studio
|
|
63
63
|
*/
|
|
@@ -70,7 +70,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
70
70
|
*/
|
|
71
71
|
createStudio: import("../network/types.js").MutationObject<Omit<{
|
|
72
72
|
createStudioRequest: import("../api/content.js").CreateStudioRequest;
|
|
73
|
-
}, "authorization" | "
|
|
73
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/content.js").CreateStudioResponse>;
|
|
74
74
|
/**
|
|
75
75
|
* Updates a studio
|
|
76
76
|
*/
|
|
@@ -483,7 +483,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
483
483
|
deprecateStackVersion: import("../network/types.js").MutationObject<Omit<{
|
|
484
484
|
stackVersionId: string;
|
|
485
485
|
deprecateContentRequest: import("../api/content.js").DeprecateContentRequest;
|
|
486
|
-
}, "authorization" | "
|
|
486
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
487
487
|
/**
|
|
488
488
|
* Archive a stack version
|
|
489
489
|
*/
|
|
@@ -503,7 +503,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
503
503
|
deprecatePluginVersion: import("../network/types.js").MutationObject<Omit<{
|
|
504
504
|
pluginVersionId: string;
|
|
505
505
|
deprecateContentRequest: import("../api/content.js").DeprecateContentRequest;
|
|
506
|
-
}, "authorization" | "
|
|
506
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
507
507
|
/**
|
|
508
508
|
* Delete a Plugin version of type draft or unpublish
|
|
509
509
|
*/
|
|
@@ -13,7 +13,7 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
13
13
|
xUsername?: string | null | undefined;
|
|
14
14
|
authorization: string;
|
|
15
15
|
newFileUploadRequest: import("../api/dataIntegration.js").NewFileUploadRequest;
|
|
16
|
-
}, "authorization" | "
|
|
16
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").NewFileUploadFormResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Get file processing status by id
|
|
19
19
|
*/
|
|
@@ -22,7 +22,7 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
22
22
|
xAccountId?: string | null | undefined;
|
|
23
23
|
xUsername?: string | null | undefined;
|
|
24
24
|
authorization: string;
|
|
25
|
-
}, "authorization" | "
|
|
25
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").FileUploadStatusResponse>;
|
|
26
26
|
/**
|
|
27
27
|
* @deprecated Use saveChunkedKnowledgeObjects instead.
|
|
28
28
|
* Save the splitted knowledge objects
|
|
@@ -33,7 +33,7 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
33
33
|
xUsername?: string | null | undefined;
|
|
34
34
|
authorization: string;
|
|
35
35
|
fileUploadSaveChunksRequest: import("../api/dataIntegration.js").FileUploadSaveChunksRequest;
|
|
36
|
-
}, "authorization" | "
|
|
36
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
37
37
|
/**
|
|
38
38
|
* Save the splitted knowledge objects
|
|
39
39
|
*/
|
|
@@ -43,7 +43,7 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
43
43
|
xUsername?: string | null | undefined;
|
|
44
44
|
authorization: string;
|
|
45
45
|
fileUploadSaveChunksRequest: import("../api/dataIntegration.js").FileUploadSaveChunksRequest;
|
|
46
|
-
}, "authorization" | "
|
|
46
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
47
47
|
/**
|
|
48
48
|
* Splits the file with the passed settings
|
|
49
49
|
*/
|
|
@@ -53,13 +53,23 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
53
53
|
xUsername?: string | null | undefined;
|
|
54
54
|
authorization: string;
|
|
55
55
|
fileSplitRequest: import("../api/dataIntegration.js").FileSplitRequest;
|
|
56
|
-
}, "authorization" | "
|
|
56
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
57
57
|
/**
|
|
58
58
|
* Generate a preview with splitted objects
|
|
59
59
|
*/
|
|
60
60
|
streamPreviewFromSplit(fileUploadId: string, splitStrategy: string, options?: {
|
|
61
61
|
signal?: AbortSignal;
|
|
62
62
|
}): Promise<import("../network/types.js").FetchEventStream>;
|
|
63
|
+
/**
|
|
64
|
+
* Generate a preview with splitted objects
|
|
65
|
+
*/
|
|
66
|
+
previewFromSplit: import("../network/types.js").QueryObject<Omit<{
|
|
67
|
+
fileUploadId: string;
|
|
68
|
+
splitStrategy: import("../api/dataIntegration.js").FileSplitStrategy;
|
|
69
|
+
xAccountId?: string | null | undefined;
|
|
70
|
+
xUsername?: string | null | undefined;
|
|
71
|
+
authorization: string;
|
|
72
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
|
|
63
73
|
/**
|
|
64
74
|
* List of knowledge sources
|
|
65
75
|
*/
|
|
@@ -70,7 +80,7 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
70
80
|
xAccountId?: string | null | undefined;
|
|
71
81
|
xUsername?: string | null | undefined;
|
|
72
82
|
authorization: string;
|
|
73
|
-
}, "authorization" | "
|
|
83
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceItemResponse[]>;
|
|
74
84
|
/**
|
|
75
85
|
* Adds the resource of type Knowledge Source to the list of favorites.
|
|
76
86
|
*/
|
|
@@ -79,7 +89,7 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
79
89
|
xAccountId?: string | null | undefined;
|
|
80
90
|
xUsername?: string | null | undefined;
|
|
81
91
|
authorization: string;
|
|
82
|
-
}, "authorization" | "
|
|
92
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
83
93
|
/**
|
|
84
94
|
* Removes the resource of type Knowledge Source from the list of favorites.
|
|
85
95
|
*/
|
|
@@ -88,10 +98,11 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
88
98
|
xAccountId?: string | null | undefined;
|
|
89
99
|
xUsername?: string | null | undefined;
|
|
90
100
|
authorization: string;
|
|
91
|
-
}, "authorization" | "
|
|
101
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
|
|
92
102
|
uploadFiles: Omit<import("../network/types.js").MutationObject<{
|
|
93
103
|
files: File[];
|
|
94
104
|
type: FileUploadType;
|
|
105
|
+
targetId?: string | undefined;
|
|
95
106
|
}, string[]>, keyof import("../network/types.js").OperationObject<any>>;
|
|
96
107
|
}
|
|
97
108
|
export declare const dataIntegrationClient: DataIntegrationClient;
|
|
@@ -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;AAC7C,OAAO,EAIL,cAAc,
|
|
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;AAC7C,OAAO,EAIL,cAAc,EAQf,MAAM,wBAAwB,CAAA;AAK/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,qBAAsB,SAAQ,uBAAuB;;IAKzD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,uBAAuB;;;;;+HAA+E;IACtG;;OAEG;IACH,2BAA2B;;;;;8HAAuF;IAClH;;;OAGG;IACH,oBAAoB;;;;;;wEAAkG;IACtH;;OAEG;IACH,2BAA2B;;;;;;wEAAuG;IAClI;;OAEG;IACH,SAAS;;;;;;wEAA8F;IACvG;;OAEG;IACH,sBAAsB,CACpB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE;IAapC;;OAEG;IACH,gBAAgB;;;;;;wEAAqH;IACrI;;OAEG;IACH,gBAAgB;;;;;;;mIAAoE;IACpF;;OAEG;IACH,0BAA0B;;;;;4EAAyF;IACnH;;OAEG;IACH,6BAA6B;;;;;4EAA8F;IAE3H,WAAW;eAE+B,IAAI,EAAE;cAAQ,cAAc;;yEAoBpE;CACH;AAED,eAAO,MAAM,qBAAqB,uBAA8B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addFavoriteV1KnowledgeSourcesSlugFavoritePost, defaults, deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete, getFileUploadStatusV1FileUploadFileUploadIdGet, getUploadFormV2V2FileUploadFormPost, listKsV1KnowledgeSourcesGet, saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost, saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost, splitUploadedFileV1FileUploadFileUploadIdSplitPost, } from '../api/dataIntegration.js';
|
|
1
|
+
import { addFavoriteV1KnowledgeSourcesSlugFavoritePost, defaults, deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete, getFileUploadStatusV1FileUploadFileUploadIdGet, getUploadFormV2V2FileUploadFormPost, listKsV1KnowledgeSourcesGet, saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost, saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost, splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet, splitUploadedFileV1FileUploadFileUploadIdSplitPost, } from '../api/dataIntegration.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
4
|
import { baseDictionary } from '../error/dictionary/base.js';
|
|
@@ -55,6 +55,15 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
55
55
|
writable: true,
|
|
56
56
|
value: this.mutation(removeAuthorizationParam(splitUploadedFileV1FileUploadFileUploadIdSplitPost))
|
|
57
57
|
});
|
|
58
|
+
/**
|
|
59
|
+
* Generate a preview with splitted objects
|
|
60
|
+
*/
|
|
61
|
+
Object.defineProperty(this, "previewFromSplit", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
configurable: true,
|
|
64
|
+
writable: true,
|
|
65
|
+
value: this.query(removeAuthorizationParam(splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet))
|
|
66
|
+
});
|
|
58
67
|
/**
|
|
59
68
|
* List of knowledge sources
|
|
60
69
|
*/
|
|
@@ -88,11 +97,11 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
88
97
|
writable: true,
|
|
89
98
|
value: this.mutation({
|
|
90
99
|
name: 'uploadFiles',
|
|
91
|
-
request: (abortSignal, params) => Promise.all(params.files.map(async (f) => {
|
|
100
|
+
request: (abortSignal, params) => (Promise.all(params.files.map(async (f) => {
|
|
92
101
|
try {
|
|
93
102
|
const { id, url, form } = await getUploadFormV2V2FileUploadFormPost({
|
|
94
103
|
authorization: '',
|
|
95
|
-
newFileUploadRequest: { file_name: f.name, target_type: params.type, target_id: '' },
|
|
104
|
+
newFileUploadRequest: { file_name: f.name, target_type: params.type, target_id: params.targetId ?? '' },
|
|
96
105
|
}, { signal: abortSignal });
|
|
97
106
|
const formData = new FormData();
|
|
98
107
|
Object.entries(form).forEach(([key, value]) => {
|
|
@@ -107,7 +116,7 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
107
116
|
catch (e) {
|
|
108
117
|
throw new FileUploadError(f.name, e);
|
|
109
118
|
}
|
|
110
|
-
})),
|
|
119
|
+
}))),
|
|
111
120
|
})
|
|
112
121
|
});
|
|
113
122
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-integration.js","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6CAA6C,EAC7C,Q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E,CAAC,CAAA;wBAC1F,IAAI,CAAC,QAAQ,CAAC,EAAE;4BAAE,MAAM,IAAI,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,CAAA;wBAClI,OAAO,EAAE,CAAA;oBACX,CAAC;oBAAC,OAAO,CAAM,EAAE,CAAC;wBAChB,MAAM,IAAI,eAAe,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;oBACtC,CAAC;gBACH,CAAC,CAAC,CAAC,CACJ;aACF,CAAC;WAAA;IApFF,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACrF,CAAC;IAsBD;;OAEG;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;CAyCF;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAA"}
|
|
@@ -67,40 +67,40 @@ declare class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
67
67
|
*/
|
|
68
68
|
createHypothesis: import("../network/types.js").MutationObject<Omit<{
|
|
69
69
|
hypothesisCreateRequest: import("../api/discovery.js").HypothesisCreateRequest;
|
|
70
|
-
}, "authorization" | "
|
|
70
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/discovery.js").HypothesisResponse>;
|
|
71
71
|
/**
|
|
72
72
|
* Create an document
|
|
73
73
|
*/
|
|
74
74
|
createDocument: import("../network/types.js").MutationObject<Omit<{
|
|
75
75
|
hypothesisId: string;
|
|
76
76
|
documentUploadRequest?: import("../api/discovery.js").DocumentUploadRequest | undefined;
|
|
77
|
-
}, "authorization" | "
|
|
77
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
78
78
|
/**
|
|
79
79
|
* Attach a existing document in an hypothesis
|
|
80
80
|
*/
|
|
81
81
|
attachExistingDocument: import("../network/types.js").MutationObject<Omit<{
|
|
82
82
|
hypothesisId: string;
|
|
83
83
|
documentAttachRequest: import("../api/discovery.js").DocumentAttachRequest;
|
|
84
|
-
}, "authorization" | "
|
|
84
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
85
85
|
/**
|
|
86
86
|
* Delete an hypothesis
|
|
87
87
|
*/
|
|
88
88
|
deleteHypothesis: import("../network/types.js").MutationObject<Omit<{
|
|
89
89
|
hypothesisId: string;
|
|
90
|
-
}, "authorization" | "
|
|
90
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
91
91
|
/**
|
|
92
92
|
* Delete an document
|
|
93
93
|
*/
|
|
94
94
|
deleteDocument: import("../network/types.js").MutationObject<Omit<{
|
|
95
95
|
hypothesisId: string;
|
|
96
96
|
documentId: string;
|
|
97
|
-
}, "authorization" | "
|
|
97
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, never>;
|
|
98
98
|
/**
|
|
99
99
|
* Download an document
|
|
100
100
|
*/
|
|
101
101
|
downloadDocument: import("../network/types.js").QueryObject<Omit<{
|
|
102
102
|
documentId: string;
|
|
103
|
-
}, "authorization" | "
|
|
103
|
+
}, "authorization" | "authorizationHeader" | "jwtToken"> & {}, Blob>;
|
|
104
104
|
}
|
|
105
105
|
export declare const discoveryClient: DiscoveryClient;
|
|
106
106
|
export {};
|