@stack-spot/portal-network 0.97.2 → 0.99.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 +19 -0
- package/dist/api/ai.d.ts +132 -216
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +150 -211
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +8 -17
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/ai.d.ts +25 -3
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +28 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +1 -1
- package/dist/client/code-shift.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +319 -475
- package/src/api/codeShift.ts +8 -18
- package/src/client/ai.ts +15 -0
package/dist/api/ai.js
CHANGED
|
@@ -20,48 +20,6 @@ export function metricsMetricsGet(opts) {
|
|
|
20
20
|
...opts
|
|
21
21
|
}));
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Workspace Fork
|
|
25
|
-
*/
|
|
26
|
-
export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, aiStackWorkspaceForkRequest }, opts) {
|
|
27
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
28
|
-
...opts,
|
|
29
|
-
method: "POST",
|
|
30
|
-
body: aiStackWorkspaceForkRequest,
|
|
31
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
32
|
-
authorization,
|
|
33
|
-
"x-account-id": xAccountId
|
|
34
|
-
})
|
|
35
|
-
})));
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Workspace Delete Fork
|
|
39
|
-
*/
|
|
40
|
-
export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, aiStackWorkspaceDeleteRequest }, opts) {
|
|
41
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
|
|
42
|
-
...opts,
|
|
43
|
-
method: "DELETE",
|
|
44
|
-
body: aiStackWorkspaceDeleteRequest,
|
|
45
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
46
|
-
authorization,
|
|
47
|
-
"x-account-id": xAccountId
|
|
48
|
-
})
|
|
49
|
-
})));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Workspace List
|
|
53
|
-
*/
|
|
54
|
-
export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, aiStackWorkspaceListRequest }, opts) {
|
|
55
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/list", oazapfts.json({
|
|
56
|
-
...opts,
|
|
57
|
-
method: "POST",
|
|
58
|
-
body: aiStackWorkspaceListRequest,
|
|
59
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
60
|
-
authorization,
|
|
61
|
-
"x-account-id": xAccountId
|
|
62
|
-
})
|
|
63
|
-
})));
|
|
64
|
-
}
|
|
65
23
|
/**
|
|
66
24
|
* List Ai Stacks
|
|
67
25
|
*/
|
|
@@ -264,59 +222,16 @@ export function reportHealthHealthzGet(opts) {
|
|
|
264
222
|
...opts
|
|
265
223
|
}));
|
|
266
224
|
}
|
|
267
|
-
/**
|
|
268
|
-
* Workspace Fork
|
|
269
|
-
*/
|
|
270
|
-
export function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ authorization, xAccountId, knowledgeSourcesWorkspaceForkRequest }, opts) {
|
|
271
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
272
|
-
...opts,
|
|
273
|
-
method: "POST",
|
|
274
|
-
body: knowledgeSourcesWorkspaceForkRequest,
|
|
275
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
276
|
-
authorization,
|
|
277
|
-
"x-account-id": xAccountId
|
|
278
|
-
})
|
|
279
|
-
})));
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Workspace Delete Fork
|
|
283
|
-
*/
|
|
284
|
-
export function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ authorization, xAccountId, knowledgeSourcesWorkspaceDeleteRequest }, opts) {
|
|
285
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/workspace/fork", oazapfts.json({
|
|
286
|
-
...opts,
|
|
287
|
-
method: "DELETE",
|
|
288
|
-
body: knowledgeSourcesWorkspaceDeleteRequest,
|
|
289
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
290
|
-
authorization,
|
|
291
|
-
"x-account-id": xAccountId
|
|
292
|
-
})
|
|
293
|
-
})));
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Workspace List
|
|
297
|
-
*/
|
|
298
|
-
export function workspaceListV1KnowledgeSourcesWorkspaceListPost({ authorization, xAccountId, knowledgeSourcesWorkspaceListRequest }, opts) {
|
|
299
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/workspace/list", oazapfts.json({
|
|
300
|
-
...opts,
|
|
301
|
-
method: "POST",
|
|
302
|
-
body: knowledgeSourcesWorkspaceListRequest,
|
|
303
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
304
|
-
authorization,
|
|
305
|
-
"x-account-id": xAccountId
|
|
306
|
-
})
|
|
307
|
-
})));
|
|
308
|
-
}
|
|
309
225
|
/**
|
|
310
226
|
* Create Knowledge Source
|
|
311
227
|
*/
|
|
312
|
-
export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization,
|
|
228
|
+
export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }, opts) {
|
|
313
229
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources", oazapfts.json({
|
|
314
230
|
...opts,
|
|
315
231
|
method: "POST",
|
|
316
232
|
body: newKnowledgeSourceRequest,
|
|
317
233
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
318
|
-
authorization
|
|
319
|
-
"x-account-id": xAccountId
|
|
234
|
+
authorization
|
|
320
235
|
})
|
|
321
236
|
})));
|
|
322
237
|
}
|
|
@@ -340,26 +255,24 @@ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $
|
|
|
340
255
|
/**
|
|
341
256
|
* Find Knowledge Source
|
|
342
257
|
*/
|
|
343
|
-
export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization
|
|
258
|
+
export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization }, opts) {
|
|
344
259
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
345
260
|
...opts,
|
|
346
261
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
347
|
-
authorization
|
|
348
|
-
"x-account-id": xAccountId
|
|
262
|
+
authorization
|
|
349
263
|
})
|
|
350
264
|
}));
|
|
351
265
|
}
|
|
352
266
|
/**
|
|
353
267
|
* Update Knowledge Source
|
|
354
268
|
*/
|
|
355
|
-
export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization,
|
|
269
|
+
export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, knowledgeSourcePatchesRequest }, opts) {
|
|
356
270
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, oazapfts.json({
|
|
357
271
|
...opts,
|
|
358
272
|
method: "PATCH",
|
|
359
273
|
body: knowledgeSourcePatchesRequest,
|
|
360
274
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
361
|
-
authorization
|
|
362
|
-
"x-account-id": xAccountId
|
|
275
|
+
authorization
|
|
363
276
|
})
|
|
364
277
|
})));
|
|
365
278
|
}
|
|
@@ -379,24 +292,11 @@ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, author
|
|
|
379
292
|
/**
|
|
380
293
|
* Find Knowledge Source
|
|
381
294
|
*/
|
|
382
|
-
export function findKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, authorization
|
|
295
|
+
export function findKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, authorization }, opts) {
|
|
383
296
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/exists`, {
|
|
384
297
|
...opts,
|
|
385
298
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
386
|
-
authorization
|
|
387
|
-
"x-account-id": xAccountId
|
|
388
|
-
})
|
|
389
|
-
}));
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* Find Knowledge Source Dependencies
|
|
393
|
-
*/
|
|
394
|
-
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }, opts) {
|
|
395
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
|
|
396
|
-
...opts,
|
|
397
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
398
|
-
authorization,
|
|
399
|
-
"x-account-id": xAccountId
|
|
299
|
+
authorization
|
|
400
300
|
})
|
|
401
301
|
}));
|
|
402
302
|
}
|
|
@@ -418,109 +318,112 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
|
|
|
418
318
|
/**
|
|
419
319
|
* Share Knowledge Source
|
|
420
320
|
*/
|
|
421
|
-
export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization
|
|
321
|
+
export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization }, opts) {
|
|
422
322
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/share`, {
|
|
423
323
|
...opts,
|
|
424
324
|
method: "POST",
|
|
425
325
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
426
|
-
authorization
|
|
427
|
-
"x-account-id": xAccountId
|
|
326
|
+
authorization
|
|
428
327
|
})
|
|
429
328
|
}));
|
|
430
329
|
}
|
|
431
330
|
/**
|
|
432
331
|
* Publish Knowledge Source
|
|
433
332
|
*/
|
|
434
|
-
export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization,
|
|
333
|
+
export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization, knowledgeSourcesPublishRequest }, opts) {
|
|
435
334
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish`, oazapfts.json({
|
|
436
335
|
...opts,
|
|
437
336
|
method: "POST",
|
|
438
337
|
body: knowledgeSourcesPublishRequest,
|
|
439
338
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
440
|
-
authorization
|
|
441
|
-
"x-account-id": xAccountId
|
|
339
|
+
authorization
|
|
442
340
|
})
|
|
443
341
|
})));
|
|
444
342
|
}
|
|
445
343
|
/**
|
|
446
344
|
* Publish Knowledge Source In Batch
|
|
447
345
|
*/
|
|
448
|
-
export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization,
|
|
346
|
+
export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization, knowSourcePublishBatchRequest }, opts) {
|
|
449
347
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/publish/batch", oazapfts.json({
|
|
450
348
|
...opts,
|
|
451
349
|
method: "POST",
|
|
452
350
|
body: knowSourcePublishBatchRequest,
|
|
453
351
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
454
|
-
authorization
|
|
455
|
-
"x-account-id": xAccountId
|
|
352
|
+
authorization
|
|
456
353
|
})
|
|
457
354
|
})));
|
|
458
355
|
}
|
|
459
356
|
/**
|
|
460
357
|
* Fork Knowledge Source
|
|
461
358
|
*/
|
|
462
|
-
export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization,
|
|
359
|
+
export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization, forkKnowledgeSourceRequest }, opts) {
|
|
463
360
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/fork`, oazapfts.json({
|
|
464
361
|
...opts,
|
|
465
362
|
method: "POST",
|
|
466
363
|
body: forkKnowledgeSourceRequest,
|
|
467
364
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
468
|
-
authorization
|
|
469
|
-
"x-account-id": xAccountId
|
|
365
|
+
authorization
|
|
470
366
|
})
|
|
471
367
|
})));
|
|
472
368
|
}
|
|
473
369
|
/**
|
|
474
370
|
* List Knowledge Objects
|
|
475
371
|
*/
|
|
476
|
-
export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization
|
|
372
|
+
export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization }, opts) {
|
|
477
373
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
|
|
478
374
|
standalone
|
|
479
375
|
}))}`, {
|
|
480
376
|
...opts,
|
|
481
377
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
482
|
-
authorization
|
|
483
|
-
"x-account-id": xAccountId
|
|
378
|
+
authorization
|
|
484
379
|
})
|
|
485
380
|
}));
|
|
486
381
|
}
|
|
487
382
|
/**
|
|
488
383
|
* Reset Knowledge Objects
|
|
489
384
|
*/
|
|
490
|
-
export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization
|
|
385
|
+
export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization }, opts) {
|
|
491
386
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
|
|
492
387
|
standalone
|
|
493
388
|
}))}`, {
|
|
494
389
|
...opts,
|
|
495
390
|
method: "DELETE",
|
|
496
391
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
497
|
-
authorization
|
|
498
|
-
"x-account-id": xAccountId
|
|
392
|
+
authorization
|
|
499
393
|
})
|
|
500
394
|
}));
|
|
501
395
|
}
|
|
502
396
|
/**
|
|
503
397
|
* Find Knowledge Object By Custom Id
|
|
504
398
|
*/
|
|
505
|
-
export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet({ slug, customId, authorization
|
|
399
|
+
export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet({ slug, customId, authorization }, opts) {
|
|
506
400
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
|
|
507
401
|
...opts,
|
|
508
402
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
509
|
-
authorization
|
|
510
|
-
"x-account-id": xAccountId
|
|
403
|
+
authorization
|
|
511
404
|
})
|
|
512
405
|
}));
|
|
513
406
|
}
|
|
514
407
|
/**
|
|
515
408
|
* Delete Knowledge Object By Custom Id
|
|
516
409
|
*/
|
|
517
|
-
export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete({ customId, slug, authorization
|
|
410
|
+
export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete({ customId, slug, authorization }, opts) {
|
|
518
411
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
|
|
519
412
|
...opts,
|
|
520
413
|
method: "DELETE",
|
|
521
414
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
522
|
-
authorization
|
|
523
|
-
|
|
415
|
+
authorization
|
|
416
|
+
})
|
|
417
|
+
}));
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Find Snippet Doc By Custom Id
|
|
421
|
+
*/
|
|
422
|
+
export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ slug, id, authorization }, opts) {
|
|
423
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets/${encodeURIComponent(id)}`, {
|
|
424
|
+
...opts,
|
|
425
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
426
|
+
authorization
|
|
524
427
|
})
|
|
525
428
|
}));
|
|
526
429
|
}
|
|
@@ -538,6 +441,53 @@ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPos
|
|
|
538
441
|
})
|
|
539
442
|
})));
|
|
540
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* Find Api Doc By Custom Id
|
|
446
|
+
*/
|
|
447
|
+
export function findApiDocByCustomIdV1KnowledgeSourcesSlugApisIdGet({ slug, id, authorization }, opts) {
|
|
448
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/apis/${encodeURIComponent(id)}`, {
|
|
449
|
+
...opts,
|
|
450
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
451
|
+
authorization
|
|
452
|
+
})
|
|
453
|
+
}));
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Find Event Doc By Custom Id
|
|
457
|
+
*/
|
|
458
|
+
export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug, id, authorization }, opts) {
|
|
459
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events/${encodeURIComponent(id)}`, {
|
|
460
|
+
...opts,
|
|
461
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
462
|
+
authorization
|
|
463
|
+
})
|
|
464
|
+
}));
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Vectorize Event Knowledge Source
|
|
468
|
+
*/
|
|
469
|
+
export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, body }, opts) {
|
|
470
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events`, oazapfts.json({
|
|
471
|
+
...opts,
|
|
472
|
+
method: "POST",
|
|
473
|
+
body,
|
|
474
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
475
|
+
authorization,
|
|
476
|
+
"x-account-id": xAccountId
|
|
477
|
+
})
|
|
478
|
+
})));
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Find Custom Doc By Custom Id
|
|
482
|
+
*/
|
|
483
|
+
export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug, id, authorization }, opts) {
|
|
484
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom/${encodeURIComponent(id)}`, {
|
|
485
|
+
...opts,
|
|
486
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
487
|
+
authorization
|
|
488
|
+
})
|
|
489
|
+
}));
|
|
490
|
+
}
|
|
541
491
|
/**
|
|
542
492
|
* Vectorize Custom Knowledge Source
|
|
543
493
|
*/
|
|
@@ -564,14 +514,13 @@ export function syncEmbeddingModelV1KnowledgeSourcesSyncPost(opts) {
|
|
|
564
514
|
/**
|
|
565
515
|
* Search Knowledge Sources
|
|
566
516
|
*/
|
|
567
|
-
export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorization,
|
|
517
|
+
export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorization, searchKnowledgeSourcesRequest }, opts) {
|
|
568
518
|
return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/search", oazapfts.json({
|
|
569
519
|
...opts,
|
|
570
520
|
method: "POST",
|
|
571
521
|
body: searchKnowledgeSourcesRequest,
|
|
572
522
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
573
|
-
authorization
|
|
574
|
-
"x-account-id": xAccountId
|
|
523
|
+
authorization
|
|
575
524
|
})
|
|
576
525
|
})));
|
|
577
526
|
}
|
|
@@ -731,62 +680,6 @@ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeS
|
|
|
731
680
|
})
|
|
732
681
|
}));
|
|
733
682
|
}
|
|
734
|
-
/**
|
|
735
|
-
* Workspace Fork
|
|
736
|
-
*/
|
|
737
|
-
export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, quickCommandWorkspaceForkRequest }, opts) {
|
|
738
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
739
|
-
...opts,
|
|
740
|
-
method: "POST",
|
|
741
|
-
body: quickCommandWorkspaceForkRequest,
|
|
742
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
743
|
-
authorization,
|
|
744
|
-
"x-account-id": xAccountId
|
|
745
|
-
})
|
|
746
|
-
})));
|
|
747
|
-
}
|
|
748
|
-
/**
|
|
749
|
-
* Workspace Delete Fork
|
|
750
|
-
*/
|
|
751
|
-
export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, quickCommandWorkspaceDeleteRequest }, opts) {
|
|
752
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
|
|
753
|
-
...opts,
|
|
754
|
-
method: "DELETE",
|
|
755
|
-
body: quickCommandWorkspaceDeleteRequest,
|
|
756
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
757
|
-
authorization,
|
|
758
|
-
"x-account-id": xAccountId
|
|
759
|
-
})
|
|
760
|
-
})));
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* Qc Dependencies
|
|
764
|
-
*/
|
|
765
|
-
export function qcDependenciesV1QuickCommandsDependenciesPost({ authorization, xAccountId, quickCommandDependenciesRequest }, opts) {
|
|
766
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/dependencies", oazapfts.json({
|
|
767
|
-
...opts,
|
|
768
|
-
method: "POST",
|
|
769
|
-
body: quickCommandDependenciesRequest,
|
|
770
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
771
|
-
authorization,
|
|
772
|
-
"x-account-id": xAccountId
|
|
773
|
-
})
|
|
774
|
-
})));
|
|
775
|
-
}
|
|
776
|
-
/**
|
|
777
|
-
* Workspace List
|
|
778
|
-
*/
|
|
779
|
-
export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, quickCommandWorkspaceListRequest }, opts) {
|
|
780
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/list", oazapfts.json({
|
|
781
|
-
...opts,
|
|
782
|
-
method: "POST",
|
|
783
|
-
body: quickCommandWorkspaceListRequest,
|
|
784
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
785
|
-
authorization,
|
|
786
|
-
"x-account-id": xAccountId
|
|
787
|
-
})
|
|
788
|
-
})));
|
|
789
|
-
}
|
|
790
683
|
/**
|
|
791
684
|
* Create Quick Command
|
|
792
685
|
*/
|
|
@@ -951,11 +844,12 @@ export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agent
|
|
|
951
844
|
}));
|
|
952
845
|
}
|
|
953
846
|
/**
|
|
954
|
-
*
|
|
847
|
+
* Disassociate Agent
|
|
955
848
|
*/
|
|
956
|
-
export function
|
|
957
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/
|
|
849
|
+
export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId }, opts) {
|
|
850
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
|
|
958
851
|
...opts,
|
|
852
|
+
method: "DELETE",
|
|
959
853
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
960
854
|
authorization,
|
|
961
855
|
"x-account-id": xAccountId
|
|
@@ -963,10 +857,10 @@ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ works
|
|
|
963
857
|
}));
|
|
964
858
|
}
|
|
965
859
|
/**
|
|
966
|
-
*
|
|
860
|
+
* List By Workspace Id
|
|
967
861
|
*/
|
|
968
|
-
export function
|
|
969
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(
|
|
862
|
+
export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
|
|
863
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
970
864
|
...opts,
|
|
971
865
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
972
866
|
authorization,
|
|
@@ -1166,10 +1060,13 @@ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorizati
|
|
|
1166
1060
|
/**
|
|
1167
1061
|
* Delete Knowledge Source
|
|
1168
1062
|
*/
|
|
1169
|
-
export function deleteKnowledgeSourceV1DefaultKnowledgeSourcesSlugDelete({ slug }, opts) {
|
|
1063
|
+
export function deleteKnowledgeSourceV1DefaultKnowledgeSourcesSlugDelete({ slug, authorization }, opts) {
|
|
1170
1064
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/default-knowledge-sources/${encodeURIComponent(slug)}`, {
|
|
1171
1065
|
...opts,
|
|
1172
|
-
method: "DELETE"
|
|
1066
|
+
method: "DELETE",
|
|
1067
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1068
|
+
authorization
|
|
1069
|
+
})
|
|
1173
1070
|
}));
|
|
1174
1071
|
}
|
|
1175
1072
|
/**
|
|
@@ -1184,6 +1081,18 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
|
|
|
1184
1081
|
body: bodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost
|
|
1185
1082
|
})));
|
|
1186
1083
|
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Find Knowledge Source Dependencies
|
|
1086
|
+
*/
|
|
1087
|
+
export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }, opts) {
|
|
1088
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
|
|
1089
|
+
...opts,
|
|
1090
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1091
|
+
authorization,
|
|
1092
|
+
"x-account-id": xAccountId
|
|
1093
|
+
})
|
|
1094
|
+
}));
|
|
1095
|
+
}
|
|
1187
1096
|
/**
|
|
1188
1097
|
* Get Flags
|
|
1189
1098
|
*/
|
|
@@ -1192,6 +1101,48 @@ export function getFlagsV1FlagsGet(opts) {
|
|
|
1192
1101
|
...opts
|
|
1193
1102
|
}));
|
|
1194
1103
|
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Get Favorites By Type
|
|
1106
|
+
*/
|
|
1107
|
+
export function getFavoritesByTypeV1FavoritesGet({ $type, authorization, xAccountId }, opts) {
|
|
1108
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/favorites${QS.query(QS.explode({
|
|
1109
|
+
"type": $type
|
|
1110
|
+
}))}`, {
|
|
1111
|
+
...opts,
|
|
1112
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1113
|
+
authorization,
|
|
1114
|
+
"x-account-id": xAccountId
|
|
1115
|
+
})
|
|
1116
|
+
}));
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Add Favorite
|
|
1120
|
+
*/
|
|
1121
|
+
export function addFavoriteV1FavoritesPost({ authorization, xAccountId, favoriteRequest }, opts) {
|
|
1122
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/favorites", oazapfts.json({
|
|
1123
|
+
...opts,
|
|
1124
|
+
method: "POST",
|
|
1125
|
+
body: favoriteRequest,
|
|
1126
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1127
|
+
authorization,
|
|
1128
|
+
"x-account-id": xAccountId
|
|
1129
|
+
})
|
|
1130
|
+
})));
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Delete Favorite
|
|
1134
|
+
*/
|
|
1135
|
+
export function deleteFavoriteV1FavoritesDelete({ authorization, xAccountId, favoriteRequest }, opts) {
|
|
1136
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/favorites", oazapfts.json({
|
|
1137
|
+
...opts,
|
|
1138
|
+
method: "DELETE",
|
|
1139
|
+
body: favoriteRequest,
|
|
1140
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1141
|
+
authorization,
|
|
1142
|
+
"x-account-id": xAccountId
|
|
1143
|
+
})
|
|
1144
|
+
})));
|
|
1145
|
+
}
|
|
1195
1146
|
/**
|
|
1196
1147
|
* Get Content Dependencies
|
|
1197
1148
|
*/
|
|
@@ -1231,18 +1182,6 @@ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug
|
|
|
1231
1182
|
})
|
|
1232
1183
|
})));
|
|
1233
1184
|
}
|
|
1234
|
-
/**
|
|
1235
|
-
* Get Dependencies
|
|
1236
|
-
*/
|
|
1237
|
-
export function getDependenciesV2QuickCommandsSlugDependenciesGet({ slug, authorization, xAccountId }, opts) {
|
|
1238
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/${encodeURIComponent(slug)}/dependencies`, {
|
|
1239
|
-
...opts,
|
|
1240
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1241
|
-
authorization,
|
|
1242
|
-
"x-account-id": xAccountId
|
|
1243
|
-
})
|
|
1244
|
-
}));
|
|
1245
|
-
}
|
|
1246
1185
|
/**
|
|
1247
1186
|
* Dev Assistant V3
|
|
1248
1187
|
*/
|