@stack-spot/portal-network 0.138.1 → 0.139.1-beta.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 +178 -4
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +98 -2
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +183 -179
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +166 -161
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/client/agent-tools.d.ts +77 -0
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +134 -1
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +2 -49
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +0 -63
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts +7 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +10 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/data-integration.d.ts +12 -14
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +33 -3
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/types.d.ts +6 -3
- package/dist/client/types.d.ts.map +1 -1
- package/dist/error/FileUploadError.d.ts +6 -0
- package/dist/error/FileUploadError.d.ts.map +1 -0
- package/dist/error/FileUploadError.js +21 -0
- package/dist/error/FileUploadError.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/api/agent-tools.ts +306 -4
- package/src/api/dataIntegration.ts +327 -307
- package/src/client/agent-tools.ts +103 -1
- package/src/client/agent.ts +1 -67
- package/src/client/ai.ts +5 -0
- package/src/client/data-integration.ts +29 -6
- package/src/client/types.ts +8 -4
- package/src/error/FileUploadError.ts +18 -0
- package/src/index.ts +2 -1
|
@@ -31,7 +31,7 @@ export function readinessCheckReadyzGet(opts) {
|
|
|
31
31
|
/**
|
|
32
32
|
* Search Objects
|
|
33
33
|
*/
|
|
34
|
-
export function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization,
|
|
34
|
+
export function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization, searchKnowledgeObjectRequest }, opts) {
|
|
35
35
|
return oazapfts.ok(oazapfts.fetchJson("/v1/search", oazapfts.json({
|
|
36
36
|
...opts,
|
|
37
37
|
method: "POST",
|
|
@@ -39,15 +39,14 @@ export function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization
|
|
|
39
39
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
40
40
|
"x-account-id": xAccountId,
|
|
41
41
|
"x-username": xUsername,
|
|
42
|
-
|
|
43
|
-
authorization: authorizationHeader
|
|
42
|
+
authorization
|
|
44
43
|
})
|
|
45
44
|
})));
|
|
46
45
|
}
|
|
47
46
|
/**
|
|
48
47
|
* Search Cross Account Objects
|
|
49
48
|
*/
|
|
50
|
-
export function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId, xUsername, authorization,
|
|
49
|
+
export function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId, xUsername, authorization, searchCrossAccountKnowledgeObjectRequest }, opts) {
|
|
51
50
|
return oazapfts.ok(oazapfts.fetchJson("/v1/search/cross-account", oazapfts.json({
|
|
52
51
|
...opts,
|
|
53
52
|
method: "POST",
|
|
@@ -55,8 +54,7 @@ export function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId,
|
|
|
55
54
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
56
55
|
"x-account-id": xAccountId,
|
|
57
56
|
"x-username": xUsername,
|
|
58
|
-
|
|
59
|
-
authorization: authorizationHeader
|
|
57
|
+
authorization
|
|
60
58
|
})
|
|
61
59
|
})));
|
|
62
60
|
}
|
|
@@ -79,10 +77,55 @@ export function deleteFtKnowledgeSourceV1FtKnowledgeSourcesSlugDelete({ slug },
|
|
|
79
77
|
method: "DELETE"
|
|
80
78
|
}));
|
|
81
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Workspace Fork
|
|
82
|
+
*/
|
|
83
|
+
export function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceForkRequest }, opts) {
|
|
84
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
85
|
+
...opts,
|
|
86
|
+
method: "POST",
|
|
87
|
+
body: knowledgeSourcesWorkspaceForkRequest,
|
|
88
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
89
|
+
"x-account-id": xAccountId,
|
|
90
|
+
"x-username": xUsername,
|
|
91
|
+
authorization
|
|
92
|
+
})
|
|
93
|
+
})));
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Workspace Delete Fork
|
|
97
|
+
*/
|
|
98
|
+
export function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceDeleteRequest }, opts) {
|
|
99
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
100
|
+
...opts,
|
|
101
|
+
method: "DELETE",
|
|
102
|
+
body: knowledgeSourcesWorkspaceDeleteRequest,
|
|
103
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
104
|
+
"x-account-id": xAccountId,
|
|
105
|
+
"x-username": xUsername,
|
|
106
|
+
authorization
|
|
107
|
+
})
|
|
108
|
+
})));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Workspace List
|
|
112
|
+
*/
|
|
113
|
+
export function workspaceListV1KnowledgeSourcesWorkspaceListPost({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceListRequest }, opts) {
|
|
114
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/workspace/list", oazapfts.json({
|
|
115
|
+
...opts,
|
|
116
|
+
method: "POST",
|
|
117
|
+
body: knowledgeSourcesWorkspaceListRequest,
|
|
118
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
119
|
+
"x-account-id": xAccountId,
|
|
120
|
+
"x-username": xUsername,
|
|
121
|
+
authorization
|
|
122
|
+
})
|
|
123
|
+
})));
|
|
124
|
+
}
|
|
82
125
|
/**
|
|
83
126
|
* Create Ks
|
|
84
127
|
*/
|
|
85
|
-
export function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authorization,
|
|
128
|
+
export function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authorization, newKnowledgeSourceRequest }, opts) {
|
|
86
129
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources", oazapfts.json({
|
|
87
130
|
...opts,
|
|
88
131
|
method: "POST",
|
|
@@ -90,15 +133,14 @@ export function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authoriz
|
|
|
90
133
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
91
134
|
"x-account-id": xAccountId,
|
|
92
135
|
"x-username": xUsername,
|
|
93
|
-
|
|
94
|
-
authorization: authorizationHeader
|
|
136
|
+
authorization
|
|
95
137
|
})
|
|
96
138
|
})));
|
|
97
139
|
}
|
|
98
140
|
/**
|
|
99
141
|
* List Ks
|
|
100
142
|
*/
|
|
101
|
-
export function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccountId, xUsername, authorization
|
|
143
|
+
export function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccountId, xUsername, authorization }, opts) {
|
|
102
144
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
|
|
103
145
|
visibility,
|
|
104
146
|
order,
|
|
@@ -108,15 +150,14 @@ export function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccount
|
|
|
108
150
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
109
151
|
"x-account-id": xAccountId,
|
|
110
152
|
"x-username": xUsername,
|
|
111
|
-
|
|
112
|
-
authorization: authorizationHeader
|
|
153
|
+
authorization
|
|
113
154
|
})
|
|
114
155
|
}));
|
|
115
156
|
}
|
|
116
157
|
/**
|
|
117
158
|
* Search Ks
|
|
118
159
|
*/
|
|
119
|
-
export function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, authorization,
|
|
160
|
+
export function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, authorization, knowledgeSourceSearchRequest }, opts) {
|
|
120
161
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/search", oazapfts.json({
|
|
121
162
|
...opts,
|
|
122
163
|
method: "POST",
|
|
@@ -124,29 +165,27 @@ export function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, au
|
|
|
124
165
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
125
166
|
"x-account-id": xAccountId,
|
|
126
167
|
"x-username": xUsername,
|
|
127
|
-
|
|
128
|
-
authorization: authorizationHeader
|
|
168
|
+
authorization
|
|
129
169
|
})
|
|
130
170
|
})));
|
|
131
171
|
}
|
|
132
172
|
/**
|
|
133
173
|
* Find Ks
|
|
134
174
|
*/
|
|
135
|
-
export function findKsV1KnowledgeSourcesSlugGet({ slug, xAccountId, xUsername, authorization
|
|
175
|
+
export function findKsV1KnowledgeSourcesSlugGet({ slug, xAccountId, xUsername, authorization }, opts) {
|
|
136
176
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
137
177
|
...opts,
|
|
138
178
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
139
179
|
"x-account-id": xAccountId,
|
|
140
180
|
"x-username": xUsername,
|
|
141
|
-
|
|
142
|
-
authorization: authorizationHeader
|
|
181
|
+
authorization
|
|
143
182
|
})
|
|
144
183
|
}));
|
|
145
184
|
}
|
|
146
185
|
/**
|
|
147
186
|
* Update Ks
|
|
148
187
|
*/
|
|
149
|
-
export function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsername, authorization,
|
|
188
|
+
export function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsername, authorization, knowledgeSourcePatchesRequest }, opts) {
|
|
150
189
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, oazapfts.json({
|
|
151
190
|
...opts,
|
|
152
191
|
method: "PATCH",
|
|
@@ -154,89 +193,83 @@ export function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsernam
|
|
|
154
193
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
155
194
|
"x-account-id": xAccountId,
|
|
156
195
|
"x-username": xUsername,
|
|
157
|
-
|
|
158
|
-
authorization: authorizationHeader
|
|
196
|
+
authorization
|
|
159
197
|
})
|
|
160
198
|
})));
|
|
161
199
|
}
|
|
162
200
|
/**
|
|
163
201
|
* Delete Ks
|
|
164
202
|
*/
|
|
165
|
-
export function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUsername, authorization
|
|
203
|
+
export function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUsername, authorization }, opts) {
|
|
166
204
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
167
205
|
...opts,
|
|
168
206
|
method: "DELETE",
|
|
169
207
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
170
208
|
"x-account-id": xAccountId,
|
|
171
209
|
"x-username": xUsername,
|
|
172
|
-
|
|
173
|
-
authorization: authorizationHeader
|
|
210
|
+
authorization
|
|
174
211
|
})
|
|
175
212
|
}));
|
|
176
213
|
}
|
|
177
214
|
/**
|
|
178
215
|
* Exists Ks
|
|
179
216
|
*/
|
|
180
|
-
export function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUsername, authorization
|
|
217
|
+
export function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUsername, authorization }, opts) {
|
|
181
218
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/exists`, {
|
|
182
219
|
...opts,
|
|
183
220
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
184
221
|
"x-account-id": xAccountId,
|
|
185
222
|
"x-username": xUsername,
|
|
186
|
-
|
|
187
|
-
authorization: authorizationHeader
|
|
223
|
+
authorization
|
|
188
224
|
})
|
|
189
225
|
}));
|
|
190
226
|
}
|
|
191
227
|
/**
|
|
192
228
|
* Share Ks
|
|
193
229
|
*/
|
|
194
|
-
export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUsername, authorization
|
|
230
|
+
export function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUsername, authorization }, opts) {
|
|
195
231
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/share`, {
|
|
196
232
|
...opts,
|
|
197
233
|
method: "POST",
|
|
198
234
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
199
235
|
"x-account-id": xAccountId,
|
|
200
236
|
"x-username": xUsername,
|
|
201
|
-
|
|
202
|
-
authorization: authorizationHeader
|
|
237
|
+
authorization
|
|
203
238
|
})
|
|
204
239
|
}));
|
|
205
240
|
}
|
|
206
241
|
/**
|
|
207
242
|
* Add Favorite
|
|
208
243
|
*/
|
|
209
|
-
export function addFavoriteV1KnowledgeSourcesSlugFavoritePost({ slug, xAccountId, xUsername, authorization
|
|
244
|
+
export function addFavoriteV1KnowledgeSourcesSlugFavoritePost({ slug, xAccountId, xUsername, authorization }, opts) {
|
|
210
245
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/favorite`, {
|
|
211
246
|
...opts,
|
|
212
247
|
method: "POST",
|
|
213
248
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
214
249
|
"x-account-id": xAccountId,
|
|
215
250
|
"x-username": xUsername,
|
|
216
|
-
|
|
217
|
-
authorization: authorizationHeader
|
|
251
|
+
authorization
|
|
218
252
|
})
|
|
219
253
|
}));
|
|
220
254
|
}
|
|
221
255
|
/**
|
|
222
256
|
* Delete Favorite
|
|
223
257
|
*/
|
|
224
|
-
export function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAccountId, xUsername, authorization
|
|
258
|
+
export function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAccountId, xUsername, authorization }, opts) {
|
|
225
259
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/favorite`, {
|
|
226
260
|
...opts,
|
|
227
261
|
method: "DELETE",
|
|
228
262
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
229
263
|
"x-account-id": xAccountId,
|
|
230
264
|
"x-username": xUsername,
|
|
231
|
-
|
|
232
|
-
authorization: authorizationHeader
|
|
265
|
+
authorization
|
|
233
266
|
})
|
|
234
267
|
}));
|
|
235
268
|
}
|
|
236
269
|
/**
|
|
237
270
|
* Publish Ks
|
|
238
271
|
*/
|
|
239
|
-
export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, xUsername, authorization,
|
|
272
|
+
export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, xUsername, authorization, body }, opts) {
|
|
240
273
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish`, oazapfts.json({
|
|
241
274
|
...opts,
|
|
242
275
|
method: "POST",
|
|
@@ -244,15 +277,14 @@ export function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, x
|
|
|
244
277
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
245
278
|
"x-account-id": xAccountId,
|
|
246
279
|
"x-username": xUsername,
|
|
247
|
-
|
|
248
|
-
authorization: authorizationHeader
|
|
280
|
+
authorization
|
|
249
281
|
})
|
|
250
282
|
})));
|
|
251
283
|
}
|
|
252
284
|
/**
|
|
253
285
|
* Publish Ks Batch
|
|
254
286
|
*/
|
|
255
|
-
export function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, xUsername, authorization,
|
|
287
|
+
export function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, xUsername, authorization, knowledgeSourcePublishBatchRequest }, opts) {
|
|
256
288
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/publish/batch", oazapfts.json({
|
|
257
289
|
...opts,
|
|
258
290
|
method: "POST",
|
|
@@ -260,15 +292,14 @@ export function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, x
|
|
|
260
292
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
261
293
|
"x-account-id": xAccountId,
|
|
262
294
|
"x-username": xUsername,
|
|
263
|
-
|
|
264
|
-
authorization: authorizationHeader
|
|
295
|
+
authorization
|
|
265
296
|
})
|
|
266
297
|
})));
|
|
267
298
|
}
|
|
268
299
|
/**
|
|
269
300
|
* Fork Ks
|
|
270
301
|
*/
|
|
271
|
-
export function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUsername, authorization,
|
|
302
|
+
export function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUsername, authorization, forkKnowledgeSourceRequest }, opts) {
|
|
272
303
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/fork`, oazapfts.json({
|
|
273
304
|
...opts,
|
|
274
305
|
method: "POST",
|
|
@@ -276,32 +307,30 @@ export function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUserna
|
|
|
276
307
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
277
308
|
"x-account-id": xAccountId,
|
|
278
309
|
"x-username": xUsername,
|
|
279
|
-
|
|
280
|
-
authorization: authorizationHeader
|
|
310
|
+
authorization
|
|
281
311
|
})
|
|
282
312
|
})));
|
|
283
313
|
}
|
|
284
314
|
/**
|
|
285
315
|
* List Kos
|
|
286
316
|
*/
|
|
287
|
-
export function listKosV1KnowledgeSourcesKsSlugObjectsGet({ ksSlug, standalone, xAccountId, xUsername, authorization
|
|
317
|
+
export function listKosV1KnowledgeSourcesKsSlugObjectsGet({ ksSlug, standalone, filePath, xAccountId, xUsername, authorization }, opts) {
|
|
288
318
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/objects${QS.query(QS.explode({
|
|
289
|
-
standalone
|
|
290
|
-
|
|
319
|
+
standalone,
|
|
320
|
+
file_path: filePath
|
|
321
|
+
}))}`, {
|
|
291
322
|
...opts,
|
|
292
|
-
body,
|
|
293
323
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
294
324
|
"x-account-id": xAccountId,
|
|
295
325
|
"x-username": xUsername,
|
|
296
|
-
|
|
297
|
-
authorization: authorizationHeader
|
|
326
|
+
authorization
|
|
298
327
|
})
|
|
299
|
-
}))
|
|
328
|
+
}));
|
|
300
329
|
}
|
|
301
330
|
/**
|
|
302
331
|
* Reset Kos
|
|
303
332
|
*/
|
|
304
|
-
export function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalone, xAccountId, xUsername, authorization
|
|
333
|
+
export function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalone, xAccountId, xUsername, authorization }, opts) {
|
|
305
334
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/objects${QS.query(QS.explode({
|
|
306
335
|
standalone
|
|
307
336
|
}))}`, {
|
|
@@ -310,8 +339,7 @@ export function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalo
|
|
|
310
339
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
311
340
|
"x-account-id": xAccountId,
|
|
312
341
|
"x-username": xUsername,
|
|
313
|
-
|
|
314
|
-
authorization: authorizationHeader
|
|
342
|
+
authorization
|
|
315
343
|
})
|
|
316
344
|
}));
|
|
317
345
|
}
|
|
@@ -336,64 +364,60 @@ export function vectorizeCustomKsV1KnowledgeSourcesSlugCustomPost(opts) {
|
|
|
336
364
|
/**
|
|
337
365
|
* Find Ko By Id
|
|
338
366
|
*/
|
|
339
|
-
export function findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet({ ksSlug, koId, xAccountId, xUsername, authorization
|
|
367
|
+
export function findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet({ ksSlug, koId, xAccountId, xUsername, authorization }, opts) {
|
|
340
368
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/objects/${encodeURIComponent(koId)}`, {
|
|
341
369
|
...opts,
|
|
342
370
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
343
371
|
"x-account-id": xAccountId,
|
|
344
372
|
"x-username": xUsername,
|
|
345
|
-
|
|
346
|
-
authorization: authorizationHeader
|
|
373
|
+
authorization
|
|
347
374
|
})
|
|
348
375
|
}));
|
|
349
376
|
}
|
|
350
377
|
/**
|
|
351
378
|
* Delete Ko By Id
|
|
352
379
|
*/
|
|
353
|
-
export function deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete({ ksSlug, koId, xAccountId, xUsername, authorization
|
|
380
|
+
export function deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete({ ksSlug, koId, xAccountId, xUsername, authorization }, opts) {
|
|
354
381
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/objects/${encodeURIComponent(koId)}`, {
|
|
355
382
|
...opts,
|
|
356
383
|
method: "DELETE",
|
|
357
384
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
358
385
|
"x-account-id": xAccountId,
|
|
359
386
|
"x-username": xUsername,
|
|
360
|
-
|
|
361
|
-
authorization: authorizationHeader
|
|
387
|
+
authorization
|
|
362
388
|
})
|
|
363
389
|
}));
|
|
364
390
|
}
|
|
365
391
|
/**
|
|
366
392
|
* Get Last Message
|
|
367
393
|
*/
|
|
368
|
-
export function getLastMessageV1KnowledgeSourcesKsSlugLastMessageGet({ ksSlug, xAccountId, xUsername, authorization
|
|
394
|
+
export function getLastMessageV1KnowledgeSourcesKsSlugLastMessageGet({ ksSlug, xAccountId, xUsername, authorization }, opts) {
|
|
369
395
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/last-message`, {
|
|
370
396
|
...opts,
|
|
371
397
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
372
398
|
"x-account-id": xAccountId,
|
|
373
399
|
"x-username": xUsername,
|
|
374
|
-
|
|
375
|
-
authorization: authorizationHeader
|
|
400
|
+
authorization
|
|
376
401
|
})
|
|
377
402
|
}));
|
|
378
403
|
}
|
|
379
404
|
/**
|
|
380
405
|
* Get Indexed Files
|
|
381
406
|
*/
|
|
382
|
-
export function getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet({ ksSlug, xAccountId, xUsername, authorization
|
|
407
|
+
export function getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet({ ksSlug, xAccountId, xUsername, authorization }, opts) {
|
|
383
408
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/files`, {
|
|
384
409
|
...opts,
|
|
385
410
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
386
411
|
"x-account-id": xAccountId,
|
|
387
412
|
"x-username": xUsername,
|
|
388
|
-
|
|
389
|
-
authorization: authorizationHeader
|
|
413
|
+
authorization
|
|
390
414
|
})
|
|
391
415
|
}));
|
|
392
416
|
}
|
|
393
417
|
/**
|
|
394
418
|
* Delete Indexed Files
|
|
395
419
|
*/
|
|
396
|
-
export function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug, xAccountId, xUsername, authorization,
|
|
420
|
+
export function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug, xAccountId, xUsername, authorization, deleteIndexedFilesRequest }, opts) {
|
|
397
421
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(ksSlug)}/files`, oazapfts.json({
|
|
398
422
|
...opts,
|
|
399
423
|
method: "DELETE",
|
|
@@ -401,183 +425,171 @@ export function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug,
|
|
|
401
425
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
402
426
|
"x-account-id": xAccountId,
|
|
403
427
|
"x-username": xUsername,
|
|
404
|
-
|
|
405
|
-
authorization: authorizationHeader
|
|
428
|
+
authorization
|
|
406
429
|
})
|
|
407
430
|
})));
|
|
408
431
|
}
|
|
409
432
|
/**
|
|
410
|
-
*
|
|
433
|
+
* Get Upload Form
|
|
411
434
|
*/
|
|
412
|
-
export function
|
|
413
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/
|
|
435
|
+
export function getUploadFormV1FileUploadFormPost({ xAccountId, xUsername, authorization, newFileUploadRequest }, opts) {
|
|
436
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/file-upload/form", oazapfts.json({
|
|
414
437
|
...opts,
|
|
415
438
|
method: "POST",
|
|
416
|
-
body:
|
|
439
|
+
body: newFileUploadRequest,
|
|
417
440
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
418
441
|
"x-account-id": xAccountId,
|
|
419
442
|
"x-username": xUsername,
|
|
420
|
-
|
|
421
|
-
authorization: authorizationHeader
|
|
443
|
+
authorization
|
|
422
444
|
})
|
|
423
445
|
})));
|
|
424
446
|
}
|
|
425
447
|
/**
|
|
426
|
-
*
|
|
448
|
+
* Get File Upload Status
|
|
427
449
|
*/
|
|
428
|
-
export function
|
|
429
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
450
|
+
export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, xAccountId, xUsername, authorization }, opts) {
|
|
451
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, {
|
|
430
452
|
...opts,
|
|
431
|
-
method: "DELETE",
|
|
432
|
-
body: knowledgeSourcesWorkspaceDeleteRequest,
|
|
433
453
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
434
454
|
"x-account-id": xAccountId,
|
|
435
455
|
"x-username": xUsername,
|
|
436
|
-
|
|
437
|
-
authorization: authorizationHeader
|
|
456
|
+
authorization
|
|
438
457
|
})
|
|
439
|
-
}))
|
|
458
|
+
}));
|
|
440
459
|
}
|
|
441
460
|
/**
|
|
442
|
-
*
|
|
461
|
+
* Save Chunked Files Deprecated
|
|
443
462
|
*/
|
|
444
|
-
export function
|
|
445
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
463
|
+
export function saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost({ fileUploadId, xAccountId, xUsername, authorization, fileUploadSaveChunksRequest }, opts) {
|
|
464
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, oazapfts.json({
|
|
446
465
|
...opts,
|
|
447
466
|
method: "POST",
|
|
448
|
-
body:
|
|
467
|
+
body: fileUploadSaveChunksRequest,
|
|
449
468
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
450
469
|
"x-account-id": xAccountId,
|
|
451
470
|
"x-username": xUsername,
|
|
452
|
-
|
|
453
|
-
authorization: authorizationHeader
|
|
471
|
+
authorization
|
|
454
472
|
})
|
|
455
473
|
})));
|
|
456
474
|
}
|
|
457
475
|
/**
|
|
458
|
-
*
|
|
476
|
+
* Internal Patch File Upload Status
|
|
459
477
|
*/
|
|
460
|
-
export function
|
|
461
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
478
|
+
export function internalPatchFileUploadStatusV1FileUploadFileUploadIdPatch({ fileUploadId, xAccountId, xUsername, authorization, fileUploadUpdateRequest }, opts) {
|
|
479
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, oazapfts.json({
|
|
462
480
|
...opts,
|
|
463
|
-
method: "
|
|
464
|
-
body:
|
|
481
|
+
method: "PATCH",
|
|
482
|
+
body: fileUploadUpdateRequest,
|
|
465
483
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
466
484
|
"x-account-id": xAccountId,
|
|
467
485
|
"x-username": xUsername,
|
|
468
|
-
|
|
469
|
-
authorization: authorizationHeader
|
|
486
|
+
authorization
|
|
470
487
|
})
|
|
471
488
|
})));
|
|
472
489
|
}
|
|
473
490
|
/**
|
|
474
|
-
*
|
|
491
|
+
* Save Chunked Files
|
|
475
492
|
*/
|
|
476
|
-
export function
|
|
477
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, {
|
|
493
|
+
export function saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost({ fileUploadId, xAccountId, xUsername, authorization, fileUploadSaveChunksRequest }, opts) {
|
|
494
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/knowledge-objects`, oazapfts.json({
|
|
478
495
|
...opts,
|
|
496
|
+
method: "POST",
|
|
497
|
+
body: fileUploadSaveChunksRequest,
|
|
479
498
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
480
499
|
"x-account-id": xAccountId,
|
|
481
500
|
"x-username": xUsername,
|
|
482
|
-
|
|
483
|
-
authorization: authorizationHeader
|
|
501
|
+
authorization
|
|
484
502
|
})
|
|
485
|
-
}));
|
|
503
|
+
})));
|
|
486
504
|
}
|
|
487
505
|
/**
|
|
488
|
-
*
|
|
506
|
+
* Split Uploaded File
|
|
489
507
|
*/
|
|
490
|
-
export function
|
|
491
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, oazapfts.json({
|
|
508
|
+
export function splitUploadedFileV1FileUploadFileUploadIdSplitPost({ fileUploadId, xAccountId, xUsername, authorization, fileSplitRequest }, opts) {
|
|
509
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/split`, oazapfts.json({
|
|
492
510
|
...opts,
|
|
493
511
|
method: "POST",
|
|
494
|
-
body:
|
|
512
|
+
body: fileSplitRequest,
|
|
495
513
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
496
514
|
"x-account-id": xAccountId,
|
|
497
515
|
"x-username": xUsername,
|
|
498
|
-
|
|
499
|
-
authorization: authorizationHeader
|
|
516
|
+
authorization
|
|
500
517
|
})
|
|
501
518
|
})));
|
|
502
519
|
}
|
|
503
520
|
/**
|
|
504
|
-
*
|
|
521
|
+
* Split Uploaded File Preview
|
|
505
522
|
*/
|
|
506
|
-
export function
|
|
507
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`,
|
|
523
|
+
export function splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet({ fileUploadId, splitStrategy, xAccountId, xUsername, authorization }, opts) {
|
|
524
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/split/preview/${encodeURIComponent(splitStrategy)}`, {
|
|
508
525
|
...opts,
|
|
509
|
-
method: "PATCH",
|
|
510
|
-
body: fileUploadUpdateRequest,
|
|
511
526
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
512
527
|
"x-account-id": xAccountId,
|
|
513
528
|
"x-username": xUsername,
|
|
514
|
-
|
|
515
|
-
authorization: authorizationHeader
|
|
529
|
+
authorization
|
|
516
530
|
})
|
|
517
|
-
}))
|
|
531
|
+
}));
|
|
518
532
|
}
|
|
519
533
|
/**
|
|
520
|
-
*
|
|
534
|
+
* Internal Get File Upload Metadata
|
|
521
535
|
*/
|
|
522
|
-
export function
|
|
523
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/
|
|
536
|
+
export function internalGetFileUploadMetadataV1FileUploadFileUploadIdMetadataGet({ fileUploadId, xAccountId, xUsername, authorization }, opts) {
|
|
537
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}/metadata`, {
|
|
524
538
|
...opts,
|
|
525
|
-
method: "POST",
|
|
526
|
-
body: fileSplitRequest,
|
|
527
539
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
528
540
|
"x-account-id": xAccountId,
|
|
529
541
|
"x-username": xUsername,
|
|
530
|
-
|
|
531
|
-
authorization: authorizationHeader
|
|
542
|
+
authorization
|
|
532
543
|
})
|
|
533
|
-
}))
|
|
544
|
+
}));
|
|
534
545
|
}
|
|
535
546
|
/**
|
|
536
|
-
*
|
|
547
|
+
* Get Presigned Download Url
|
|
537
548
|
*/
|
|
538
|
-
export function
|
|
539
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload
|
|
549
|
+
export function getPresignedDownloadUrlV1FileUploadPresignedUrlGet({ id, expiration, xAccountId, xUsername, authorization }, opts) {
|
|
550
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/presigned/url${QS.query(QS.explode({
|
|
551
|
+
id,
|
|
552
|
+
expiration
|
|
553
|
+
}))}`, {
|
|
540
554
|
...opts,
|
|
541
555
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
542
556
|
"x-account-id": xAccountId,
|
|
543
557
|
"x-username": xUsername,
|
|
544
|
-
|
|
545
|
-
authorization: authorizationHeader
|
|
558
|
+
authorization
|
|
546
559
|
})
|
|
547
560
|
}));
|
|
548
561
|
}
|
|
549
562
|
/**
|
|
550
|
-
*
|
|
563
|
+
* Delete Bucket Object
|
|
551
564
|
*/
|
|
552
|
-
export function
|
|
553
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(
|
|
565
|
+
export function deleteBucketObjectV1FileUploadUploadIdDelete({ uploadId, xAccountId, xUsername, authorization }, opts) {
|
|
566
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(uploadId)}`, {
|
|
554
567
|
...opts,
|
|
568
|
+
method: "DELETE",
|
|
555
569
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
556
570
|
"x-account-id": xAccountId,
|
|
557
571
|
"x-username": xUsername,
|
|
558
|
-
|
|
559
|
-
authorization: authorizationHeader
|
|
572
|
+
authorization
|
|
560
573
|
})
|
|
561
574
|
}));
|
|
562
575
|
}
|
|
563
576
|
/**
|
|
564
|
-
*
|
|
577
|
+
* Internal Get Current Embedding Usage
|
|
565
578
|
*/
|
|
566
|
-
export function
|
|
567
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/token-usage/
|
|
579
|
+
export function internalGetCurrentEmbeddingUsageV1TokenUsageEmbeddingGet({ xAccountId, xUsername, authorization }, opts) {
|
|
580
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/token-usage/embedding", {
|
|
568
581
|
...opts,
|
|
569
582
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
570
583
|
"x-account-id": xAccountId,
|
|
571
584
|
"x-username": xUsername,
|
|
572
|
-
|
|
573
|
-
authorization: authorizationHeader
|
|
585
|
+
authorization
|
|
574
586
|
})
|
|
575
587
|
}));
|
|
576
588
|
}
|
|
577
589
|
/**
|
|
578
590
|
* Internal Consume Token Usage
|
|
579
591
|
*/
|
|
580
|
-
export function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, xUsername, authorization,
|
|
592
|
+
export function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, xUsername, authorization, consumeTokenRequest }, opts) {
|
|
581
593
|
return oazapfts.ok(oazapfts.fetchJson("/v1/token-usage/consume", oazapfts.json({
|
|
582
594
|
...opts,
|
|
583
595
|
method: "POST",
|
|
@@ -585,15 +597,14 @@ export function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, x
|
|
|
585
597
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
586
598
|
"x-account-id": xAccountId,
|
|
587
599
|
"x-username": xUsername,
|
|
588
|
-
|
|
589
|
-
authorization: authorizationHeader
|
|
600
|
+
authorization
|
|
590
601
|
})
|
|
591
602
|
})));
|
|
592
603
|
}
|
|
593
604
|
/**
|
|
594
605
|
* Get Upload Form V2
|
|
595
606
|
*/
|
|
596
|
-
export function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, authorization,
|
|
607
|
+
export function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, authorization, newFileUploadRequest }, opts) {
|
|
597
608
|
return oazapfts.ok(oazapfts.fetchJson("/v2/file-upload/form", oazapfts.json({
|
|
598
609
|
...opts,
|
|
599
610
|
method: "POST",
|
|
@@ -601,29 +612,27 @@ export function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, aut
|
|
|
601
612
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
602
613
|
"x-account-id": xAccountId,
|
|
603
614
|
"x-username": xUsername,
|
|
604
|
-
|
|
605
|
-
authorization: authorizationHeader
|
|
615
|
+
authorization
|
|
606
616
|
})
|
|
607
617
|
})));
|
|
608
618
|
}
|
|
609
619
|
/**
|
|
610
620
|
* Internal Get Llm Config
|
|
611
621
|
*/
|
|
612
|
-
export function internalGetLlmConfigV1AccountsLlmConfigGet({ xAccountId, xUsername, authorization
|
|
622
|
+
export function internalGetLlmConfigV1AccountsLlmConfigGet({ xAccountId, xUsername, authorization }, opts) {
|
|
613
623
|
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/llm-config", {
|
|
614
624
|
...opts,
|
|
615
625
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
616
626
|
"x-account-id": xAccountId,
|
|
617
627
|
"x-username": xUsername,
|
|
618
|
-
|
|
619
|
-
authorization: authorizationHeader
|
|
628
|
+
authorization
|
|
620
629
|
})
|
|
621
630
|
}));
|
|
622
631
|
}
|
|
623
632
|
/**
|
|
624
633
|
* Internal Get Or Create Knowledge Group
|
|
625
634
|
*/
|
|
626
|
-
export function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut({ xAccountId, xUsername, authorization,
|
|
635
|
+
export function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut({ xAccountId, xUsername, authorization, getOrCreateKnowledgeGroupRequest }, opts) {
|
|
627
636
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-groups/get-or-create", oazapfts.json({
|
|
628
637
|
...opts,
|
|
629
638
|
method: "PUT",
|
|
@@ -631,15 +640,14 @@ export function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut
|
|
|
631
640
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
632
641
|
"x-account-id": xAccountId,
|
|
633
642
|
"x-username": xUsername,
|
|
634
|
-
|
|
635
|
-
authorization: authorizationHeader
|
|
643
|
+
authorization
|
|
636
644
|
})
|
|
637
645
|
})));
|
|
638
646
|
}
|
|
639
647
|
/**
|
|
640
648
|
* Internal Delete By Not Checksums
|
|
641
649
|
*/
|
|
642
|
-
export function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelete({ groupId, xAccountId, xUsername, authorization,
|
|
650
|
+
export function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelete({ groupId, xAccountId, xUsername, authorization, deleteGroupObjectsRequests }, opts) {
|
|
643
651
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-groups/${encodeURIComponent(groupId)}/objects`, oazapfts.json({
|
|
644
652
|
...opts,
|
|
645
653
|
method: "DELETE",
|
|
@@ -647,15 +655,14 @@ export function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelet
|
|
|
647
655
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
648
656
|
"x-account-id": xAccountId,
|
|
649
657
|
"x-username": xUsername,
|
|
650
|
-
|
|
651
|
-
authorization: authorizationHeader
|
|
658
|
+
authorization
|
|
652
659
|
})
|
|
653
660
|
})));
|
|
654
661
|
}
|
|
655
662
|
/**
|
|
656
663
|
* Internal Update Knowledge Group
|
|
657
664
|
*/
|
|
658
|
-
export function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ groupId, xAccountId, xUsername, authorization,
|
|
665
|
+
export function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ groupId, xAccountId, xUsername, authorization, updateKnowledgeGroupRequest }, opts) {
|
|
659
666
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-groups/${encodeURIComponent(groupId)}`, oazapfts.json({
|
|
660
667
|
...opts,
|
|
661
668
|
method: "PATCH",
|
|
@@ -663,15 +670,14 @@ export function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ grou
|
|
|
663
670
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
664
671
|
"x-account-id": xAccountId,
|
|
665
672
|
"x-username": xUsername,
|
|
666
|
-
|
|
667
|
-
authorization: authorizationHeader
|
|
673
|
+
authorization
|
|
668
674
|
})
|
|
669
675
|
})));
|
|
670
676
|
}
|
|
671
677
|
/**
|
|
672
678
|
* Internal Create Knowledge Objects Batch
|
|
673
679
|
*/
|
|
674
|
-
export function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({ xAccountId, xUsername, authorization,
|
|
680
|
+
export function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({ xAccountId, xUsername, authorization, body }, opts) {
|
|
675
681
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-objects/batch", oazapfts.json({
|
|
676
682
|
...opts,
|
|
677
683
|
method: "POST",
|
|
@@ -679,8 +685,7 @@ export function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({
|
|
|
679
685
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
680
686
|
"x-account-id": xAccountId,
|
|
681
687
|
"x-username": xUsername,
|
|
682
|
-
|
|
683
|
-
authorization: authorizationHeader
|
|
688
|
+
authorization
|
|
684
689
|
})
|
|
685
690
|
})));
|
|
686
691
|
}
|