@stack-spot/portal-network 0.39.2 → 0.40.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/ai.d.ts +445 -542
  3. package/dist/api/ai.d.ts.map +1 -1
  4. package/dist/api/ai.js +181 -318
  5. package/dist/api/ai.js.map +1 -1
  6. package/dist/client/ai.d.ts +89 -0
  7. package/dist/client/ai.d.ts.map +1 -0
  8. package/dist/client/ai.js +108 -0
  9. package/dist/client/ai.js.map +1 -0
  10. package/dist/client/cloud-account.d.ts +5 -5
  11. package/dist/client/cloud-platform.d.ts +13 -13
  12. package/dist/client/content.d.ts +5 -5
  13. package/dist/client/notification.d.ts +1 -1
  14. package/dist/client/types.d.ts +17 -0
  15. package/dist/client/types.d.ts.map +1 -1
  16. package/dist/client/workflow.d.ts +8 -8
  17. package/dist/error/StackspotAPIError.d.ts +1 -1
  18. package/dist/error/StackspotAPIError.d.ts.map +1 -1
  19. package/dist/error/StreamCanceledError.d.ts +5 -0
  20. package/dist/error/StreamCanceledError.d.ts.map +1 -0
  21. package/dist/error/StreamCanceledError.js +9 -0
  22. package/dist/error/StreamCanceledError.js.map +1 -0
  23. package/dist/error/StreamError.d.ts +5 -0
  24. package/dist/error/StreamError.d.ts.map +1 -0
  25. package/dist/error/StreamError.js +7 -0
  26. package/dist/error/StreamError.js.map +1 -0
  27. package/dist/error/StreamJsonError.d.ts +5 -0
  28. package/dist/error/StreamJsonError.d.ts.map +1 -0
  29. package/dist/error/StreamJsonError.js +9 -0
  30. package/dist/error/StreamJsonError.js.map +1 -0
  31. package/dist/index.d.ts +6 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +6 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/network/NetworkClient.d.ts +17 -1
  36. package/dist/network/NetworkClient.d.ts.map +1 -1
  37. package/dist/network/NetworkClient.js +29 -0
  38. package/dist/network/NetworkClient.js.map +1 -1
  39. package/dist/network/types.d.ts +5 -3
  40. package/dist/network/types.d.ts.map +1 -1
  41. package/dist/utils/StreamedJson.d.ts +48 -0
  42. package/dist/utils/StreamedJson.d.ts.map +1 -0
  43. package/dist/utils/StreamedJson.js +162 -0
  44. package/dist/utils/StreamedJson.js.map +1 -0
  45. package/package.json +2 -1
  46. package/src/api/ai.ts +652 -935
  47. package/src/client/ai.ts +69 -0
  48. package/src/client/types.ts +18 -1
  49. package/src/error/StackspotAPIError.ts +1 -1
  50. package/src/error/StreamCanceledError.ts +10 -0
  51. package/src/error/StreamError.ts +7 -0
  52. package/src/error/StreamJsonError.ts +10 -0
  53. package/src/index.ts +7 -1
  54. package/src/network/NetworkClient.ts +30 -1
  55. package/src/network/types.ts +6 -3
  56. package/src/utils/StreamedJson.tsx +135 -0
package/dist/api/ai.js CHANGED
@@ -21,35 +21,13 @@ export function metricsMetricsGet(opts) {
21
21
  }));
22
22
  }
23
23
  /**
24
- * Request Access
25
- */
26
- export function requestAccessV1AllowedAccessRequestAccessPost({ authorization, xAccountId }, opts) {
27
- return oazapfts.ok(oazapfts.fetchJson("/v1/allowed-access/request-access", {
28
- ...opts,
29
- method: "POST",
30
- headers: oazapfts.mergeHeaders(opts?.headers, {
31
- authorization,
32
- "x-account-id": xAccountId
33
- })
34
- }));
35
- }
36
- /**
37
- * Get By Username
38
- */
39
- export function getByUsernameV1AllowedAccessGet({ authorization, xAccountId }, opts) {
40
- return oazapfts.ok(oazapfts.fetchJson("/v1/allowed-access/", {
41
- ...opts,
42
- headers: oazapfts.mergeHeaders(opts?.headers, {
43
- authorization,
44
- "x-account-id": xAccountId
45
- })
46
- }));
47
- }
48
- /**
49
- * List Ai Stacks By Studio
24
+ * List Ai Stacks
50
25
  */
51
- export function listAiStacksByStudioV1StudiosStudioIdAiStacksGet({ studioId, authorization, xAccountId }, opts) {
52
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks`, {
26
+ export function listAiStacksV1AiStacksGet({ visibility, order, authorization, xAccountId }, opts) {
27
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks${QS.query(QS.explode({
28
+ visibility,
29
+ order
30
+ }))}`, {
53
31
  ...opts,
54
32
  headers: oazapfts.mergeHeaders(opts?.headers, {
55
33
  authorization,
@@ -60,8 +38,8 @@ export function listAiStacksByStudioV1StudiosStudioIdAiStacksGet({ studioId, aut
60
38
  /**
61
39
  * Create Ai Stack
62
40
  */
63
- export function createAiStackV1StudiosStudioIdAiStacksPost({ studioId, authorization, xAccountId, newAiStackRequest }, opts) {
64
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks`, oazapfts.json({
41
+ export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiStackRequest }, opts) {
42
+ return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks", oazapfts.json({
65
43
  ...opts,
66
44
  method: "POST",
67
45
  body: newAiStackRequest,
@@ -71,36 +49,11 @@ export function createAiStackV1StudiosStudioIdAiStacksPost({ studioId, authoriza
71
49
  })
72
50
  })));
73
51
  }
74
- /**
75
- * Get Ai Stack
76
- */
77
- export function getAiStackV1StudiosStudioIdAiStacksStackIdGet({ studioId, stackId, authorization, xAccountId }, opts) {
78
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
79
- ...opts,
80
- headers: oazapfts.mergeHeaders(opts?.headers, {
81
- authorization,
82
- "x-account-id": xAccountId
83
- })
84
- }));
85
- }
86
- /**
87
- * Remove Ai Stack
88
- */
89
- export function removeAiStackV1StudiosStudioIdAiStacksStackIdDelete({ studioId, stackId, authorization, xAccountId }, opts) {
90
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
91
- ...opts,
92
- method: "DELETE",
93
- headers: oazapfts.mergeHeaders(opts?.headers, {
94
- authorization,
95
- "x-account-id": xAccountId
96
- })
97
- }));
98
- }
99
52
  /**
100
53
  * Update Ai Stack
101
54
  */
102
- export function updateAiStackV1StudiosStudioIdAiStacksStackIdPatch({ studioId, stackId, authorization, xAccountId, updateAiStackRequest }, opts) {
103
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
55
+ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }, opts) {
56
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
104
57
  ...opts,
105
58
  method: "PATCH",
106
59
  body: updateAiStackRequest,
@@ -110,98 +63,6 @@ export function updateAiStackV1StudiosStudioIdAiStacksStackIdPatch({ studioId, s
110
63
  })
111
64
  })));
112
65
  }
113
- /**
114
- * Find Knowledge Source Dependencies
115
- */
116
- export function findKnowledgeSourceDependenciesV1StudiosStudioIdAiStacksStackIdDependenciesGet({ studioId, stackId, authorization, xAccountId }, opts) {
117
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}/dependencies`, {
118
- ...opts,
119
- headers: oazapfts.mergeHeaders(opts?.headers, {
120
- authorization,
121
- "x-account-id": xAccountId
122
- })
123
- }));
124
- }
125
- /**
126
- * Add Ai Stack To Workspace
127
- */
128
- export function addAiStackToWorkspaceV1WorkspacesWorkspaceIdAddAiStackPost({ workspaceId, authorization, xAccountId, addAiStackToWorkspaceRequest }, opts) {
129
- return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/add-ai-stack`, oazapfts.json({
130
- ...opts,
131
- method: "POST",
132
- body: addAiStackToWorkspaceRequest,
133
- headers: oazapfts.mergeHeaders(opts?.headers, {
134
- authorization,
135
- "x-account-id": xAccountId
136
- })
137
- })));
138
- }
139
- /**
140
- * List Ai Stacks From Workspace
141
- */
142
- export function listAiStacksFromWorkspaceV1WorkspacesWorkspaceIdAiStacksGet({ workspaceId, authorization, xAccountId }, opts) {
143
- return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks`, {
144
- ...opts,
145
- headers: oazapfts.mergeHeaders(opts?.headers, {
146
- authorization,
147
- "x-account-id": xAccountId
148
- })
149
- }));
150
- }
151
- /**
152
- * Find Ai Stack In Workspace
153
- */
154
- export function findAiStackInWorkspaceV1WorkspacesWorkspaceIdAiStacksStackIdGet({ workspaceId, stackId, authorization, xAccountId }, opts) {
155
- return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
156
- ...opts,
157
- headers: oazapfts.mergeHeaders(opts?.headers, {
158
- authorization,
159
- "x-account-id": xAccountId
160
- })
161
- }));
162
- }
163
- /**
164
- * Remove Ai Stack From Workspace
165
- */
166
- export function removeAiStackFromWorkspaceV1WorkspacesWorkspaceIdAiStacksStackIdDelete({ workspaceId, stackId, authorization, xAccountId }, opts) {
167
- return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
168
- ...opts,
169
- method: "DELETE",
170
- headers: oazapfts.mergeHeaders(opts?.headers, {
171
- authorization,
172
- "x-account-id": xAccountId
173
- })
174
- }));
175
- }
176
- /**
177
- * List Ai Stacks
178
- */
179
- export function listAiStacksV1AiStacksGet({ visibility, order, authorization, xAccountId }, opts) {
180
- return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks${QS.query(QS.explode({
181
- visibility,
182
- order
183
- }))}`, {
184
- ...opts,
185
- headers: oazapfts.mergeHeaders(opts?.headers, {
186
- authorization,
187
- "x-account-id": xAccountId
188
- })
189
- }));
190
- }
191
- /**
192
- * Create Ai Stack
193
- */
194
- export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiStackRequest }, opts) {
195
- return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks", oazapfts.json({
196
- ...opts,
197
- method: "POST",
198
- body: newAiStackRequest,
199
- headers: oazapfts.mergeHeaders(opts?.headers, {
200
- authorization,
201
- "x-account-id": xAccountId
202
- })
203
- })));
204
- }
205
66
  /**
206
67
  * Get Ai Stack
207
68
  */
@@ -227,20 +88,6 @@ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, x
227
88
  })
228
89
  }));
229
90
  }
230
- /**
231
- * Update Ai Stack
232
- */
233
- export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }, opts) {
234
- return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
235
- ...opts,
236
- method: "PATCH",
237
- body: updateAiStackRequest,
238
- headers: oazapfts.mergeHeaders(opts?.headers, {
239
- authorization,
240
- "x-account-id": xAccountId
241
- })
242
- })));
243
- }
244
91
  /**
245
92
  * Fork
246
93
  */
@@ -258,53 +105,37 @@ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccount
258
105
  /**
259
106
  * Share
260
107
  */
261
- export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, shareContentRequest }, opts) {
262
- return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, oazapfts.json({
108
+ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId }, opts) {
109
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, {
263
110
  ...opts,
264
111
  method: "POST",
265
- body: shareContentRequest,
266
112
  headers: oazapfts.mergeHeaders(opts?.headers, {
267
113
  authorization,
268
114
  "x-account-id": xAccountId
269
115
  })
270
- })));
271
- }
272
- /**
273
- * Project Files
274
- */
275
- export function projectFilesV1ProjectFilesPost({ authorization, xAccountId, newProjectFilesRequest }, opts) {
276
- return oazapfts.ok(oazapfts.fetchJson("/v1/project-files", oazapfts.json({
277
- ...opts,
278
- method: "POST",
279
- body: newProjectFilesRequest,
280
- headers: oazapfts.mergeHeaders(opts?.headers, {
281
- authorization,
282
- "x-account-id": xAccountId
283
- })
284
- })));
116
+ }));
285
117
  }
286
118
  /**
287
- * Code Understanding Assistant
119
+ * Publish
288
120
  */
289
- export function codeUnderstandingAssistantV1CodeUnderstandingAssistantPost({ authorization, xAccountId, codeUnderstandingRequest }, opts) {
290
- return oazapfts.ok(oazapfts.fetchJson("/v1/code-understanding-assistant", oazapfts.json({
121
+ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId }, opts) {
122
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, {
291
123
  ...opts,
292
124
  method: "POST",
293
- body: codeUnderstandingRequest,
294
125
  headers: oazapfts.mergeHeaders(opts?.headers, {
295
126
  authorization,
296
127
  "x-account-id": xAccountId
297
128
  })
298
- })));
129
+ }));
299
130
  }
300
131
  /**
301
- * Code Scan
132
+ * Project Files
302
133
  */
303
- export function codeScanV1CodeScanPost({ authorization, xAccountId, codeScanRequest }, opts) {
304
- return oazapfts.ok(oazapfts.fetchJson("/v1/code-scan", oazapfts.json({
134
+ export function projectFilesV1ProjectFilesPost({ authorization, xAccountId, newProjectFilesRequest }, opts) {
135
+ return oazapfts.ok(oazapfts.fetchJson("/v1/project-files", oazapfts.json({
305
136
  ...opts,
306
137
  method: "POST",
307
- body: codeScanRequest,
138
+ body: newProjectFilesRequest,
308
139
  headers: oazapfts.mergeHeaders(opts?.headers, {
309
140
  authorization,
310
141
  "x-account-id": xAccountId
@@ -339,20 +170,6 @@ export function devAssistantV1ChatPost({ authorization, xAccountId, codeBuddyApi
339
170
  })
340
171
  })));
341
172
  }
342
- /**
343
- * Autocomplete Code Generator
344
- */
345
- export function autocompleteCodeGeneratorV1AutocompletePost({ authorization, xAccountId, autocompleteCodeGeneratorRequest }, opts) {
346
- return oazapfts.ok(oazapfts.fetchJson("/v1/autocomplete", oazapfts.json({
347
- ...opts,
348
- method: "POST",
349
- body: autocompleteCodeGeneratorRequest,
350
- headers: oazapfts.mergeHeaders(opts?.headers, {
351
- authorization,
352
- "x-account-id": xAccountId
353
- })
354
- })));
355
- }
356
173
  /**
357
174
  * Post Event
358
175
  */
@@ -415,23 +232,6 @@ export function reportHealthHealthzGet(opts) {
415
232
  ...opts
416
233
  }));
417
234
  }
418
- /**
419
- * List Knowledge Sources
420
- */
421
- export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }, opts) {
422
- return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
423
- visibility,
424
- order,
425
- "default": $default,
426
- types
427
- }))}`, {
428
- ...opts,
429
- headers: oazapfts.mergeHeaders(opts?.headers, {
430
- authorization,
431
- "x-account-id": xAccountId
432
- })
433
- }));
434
- }
435
235
  /**
436
236
  * Create Knowledge Source
437
237
  */
@@ -447,10 +247,15 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAc
447
247
  })));
448
248
  }
449
249
  /**
450
- * Find Knowledge Source
250
+ * List Knowledge Sources
451
251
  */
452
- export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization, xAccountId }, opts) {
453
- return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
252
+ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }, opts) {
253
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
254
+ visibility,
255
+ order,
256
+ "default": $default,
257
+ types
258
+ }))}`, {
454
259
  ...opts,
455
260
  headers: oazapfts.mergeHeaders(opts?.headers, {
456
261
  authorization,
@@ -459,12 +264,11 @@ export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorizati
459
264
  }));
460
265
  }
461
266
  /**
462
- * Delete Knowledge Source
267
+ * Find Knowledge Source
463
268
  */
464
- export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }, opts) {
269
+ export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization, xAccountId }, opts) {
465
270
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
466
271
  ...opts,
467
- method: "DELETE",
468
272
  headers: oazapfts.mergeHeaders(opts?.headers, {
469
273
  authorization,
470
274
  "x-account-id": xAccountId
@@ -485,6 +289,19 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
485
289
  })
486
290
  })));
487
291
  }
292
+ /**
293
+ * Delete Knowledge Source
294
+ */
295
+ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }, opts) {
296
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
297
+ ...opts,
298
+ method: "DELETE",
299
+ headers: oazapfts.mergeHeaders(opts?.headers, {
300
+ authorization,
301
+ "x-account-id": xAccountId
302
+ })
303
+ }));
304
+ }
488
305
  /**
489
306
  * Find Knowledge Source Dependencies
490
307
  */
@@ -525,6 +342,33 @@ export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, auth
525
342
  })
526
343
  }));
527
344
  }
345
+ /**
346
+ * Publish Knowledge Source
347
+ */
348
+ export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization, xAccountId }, opts) {
349
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish`, {
350
+ ...opts,
351
+ method: "POST",
352
+ headers: oazapfts.mergeHeaders(opts?.headers, {
353
+ authorization,
354
+ "x-account-id": xAccountId
355
+ })
356
+ }));
357
+ }
358
+ /**
359
+ * Publish Knowledge Source In Batch
360
+ */
361
+ export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization, xAccountId, knowSourcePublishBatchRequest }, opts) {
362
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/publish/batch", oazapfts.json({
363
+ ...opts,
364
+ method: "POST",
365
+ body: knowSourcePublishBatchRequest,
366
+ headers: oazapfts.mergeHeaders(opts?.headers, {
367
+ authorization,
368
+ "x-account-id": xAccountId
369
+ })
370
+ })));
371
+ }
528
372
  /**
529
373
  * Configure Knowledge Source Default Flag
530
374
  */
@@ -555,32 +399,32 @@ export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, author
555
399
  })));
556
400
  }
557
401
  /**
558
- * List Knowledge Objects
402
+ * Vectorize Objects From File
559
403
  */
560
- export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization, xAccountId }, opts) {
561
- return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
562
- standalone
563
- }))}`, {
404
+ export function vectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost }, opts) {
405
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects`, oazapfts.multipart({
564
406
  ...opts,
407
+ method: "POST",
408
+ body: bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost,
565
409
  headers: oazapfts.mergeHeaders(opts?.headers, {
566
410
  authorization,
567
411
  "x-account-id": xAccountId
568
412
  })
569
- }));
413
+ })));
570
414
  }
571
415
  /**
572
- * Vectorize Objects From File
416
+ * List Knowledge Objects
573
417
  */
574
- export function vectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost }, opts) {
575
- return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects`, oazapfts.multipart({
418
+ export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization, xAccountId }, opts) {
419
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
420
+ standalone
421
+ }))}`, {
576
422
  ...opts,
577
- method: "POST",
578
- body: bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost,
579
423
  headers: oazapfts.mergeHeaders(opts?.headers, {
580
424
  authorization,
581
425
  "x-account-id": xAccountId
582
426
  })
583
- })));
427
+ }));
584
428
  }
585
429
  /**
586
430
  * Reset Knowledge Objects
@@ -751,6 +595,34 @@ export function syncEmbeddingModelV1KnowledgeSourcesSyncPost(opts) {
751
595
  method: "POST"
752
596
  }));
753
597
  }
598
+ /**
599
+ * Search Knowledge Sources
600
+ */
601
+ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorization, xAccountId, searchKnowledgeSourcesRequest }, opts) {
602
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/search", oazapfts.json({
603
+ ...opts,
604
+ method: "POST",
605
+ body: searchKnowledgeSourcesRequest,
606
+ headers: oazapfts.mergeHeaders(opts?.headers, {
607
+ authorization,
608
+ "x-account-id": xAccountId
609
+ })
610
+ })));
611
+ }
612
+ /**
613
+ * Ks Dependencies
614
+ */
615
+ export function ksDependenciesV1KnowledgeSourcesDependenciesPost({ authorization, xAccountId, knowledgeSourcesDependenciesRequest }, opts) {
616
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/dependencies", oazapfts.json({
617
+ ...opts,
618
+ method: "POST",
619
+ body: knowledgeSourcesDependenciesRequest,
620
+ headers: oazapfts.mergeHeaders(opts?.headers, {
621
+ authorization,
622
+ "x-account-id": xAccountId
623
+ })
624
+ })));
625
+ }
754
626
  /**
755
627
  * Change Llm
756
628
  */
@@ -837,30 +709,30 @@ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, x
837
709
  }));
838
710
  }
839
711
  /**
840
- * List Association
712
+ * Add Association
841
713
  */
842
- export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
843
- return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
714
+ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }, opts) {
715
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
844
716
  ...opts,
717
+ method: "POST",
718
+ body: addWorkspaceKnowledgeSourceRequest,
845
719
  headers: oazapfts.mergeHeaders(opts?.headers, {
846
720
  authorization,
847
721
  "x-account-id": xAccountId
848
722
  })
849
- }));
723
+ })));
850
724
  }
851
725
  /**
852
- * Add Association
726
+ * List Association
853
727
  */
854
- export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }, opts) {
855
- return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
728
+ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
729
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
856
730
  ...opts,
857
- method: "POST",
858
- body: addWorkspaceKnowledgeSourceRequest,
859
731
  headers: oazapfts.mergeHeaders(opts?.headers, {
860
732
  authorization,
861
733
  "x-account-id": xAccountId
862
734
  })
863
- })));
735
+ }));
864
736
  }
865
737
  /**
866
738
  * Delete Association
@@ -889,14 +761,28 @@ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountI
889
761
  })
890
762
  })));
891
763
  }
764
+ /**
765
+ * List All Deprecated
766
+ */
767
+ export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization, xAccountId, baseContextualRequest }, opts) {
768
+ return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/all", oazapfts.json({
769
+ ...opts,
770
+ method: "POST",
771
+ body: baseContextualRequest,
772
+ headers: oazapfts.mergeHeaders(opts?.headers, {
773
+ origin,
774
+ authorization,
775
+ "x-account-id": xAccountId
776
+ })
777
+ })));
778
+ }
892
779
  /**
893
780
  * List All
894
781
  */
895
- export function listAllV1QuickCommandsAllGet({ visibility, order, workspaceId, types, authorization, xAccountId }, opts) {
782
+ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId }, opts) {
896
783
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/all${QS.query(QS.explode({
897
784
  visibility,
898
785
  order,
899
- workspace_id: workspaceId,
900
786
  types
901
787
  }))}`, {
902
788
  ...opts,
@@ -907,15 +793,14 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, workspaceId, t
907
793
  }));
908
794
  }
909
795
  /**
910
- * List All Deprecated
796
+ * Update Quick Command
911
797
  */
912
- export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization, xAccountId, baseContextualRequest }, opts) {
913
- return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/all", oazapfts.json({
798
+ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }, opts) {
799
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
914
800
  ...opts,
915
- method: "POST",
916
- body: baseContextualRequest,
801
+ method: "PATCH",
802
+ body: quickCommandsUpdateRequest,
917
803
  headers: oazapfts.mergeHeaders(opts?.headers, {
918
- origin,
919
804
  authorization,
920
805
  "x-account-id": xAccountId
921
806
  })
@@ -924,8 +809,10 @@ export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization,
924
809
  /**
925
810
  * Get Quick Command
926
811
  */
927
- export function getQuickCommandV1QuickCommandsSlugGet({ slug, authorization, xAccountId }, opts) {
928
- return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
812
+ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId }, opts) {
813
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}${QS.query(QS.explode({
814
+ find_agents: findAgents
815
+ }))}`, {
929
816
  ...opts,
930
817
  headers: oazapfts.mergeHeaders(opts?.headers, {
931
818
  authorization,
@@ -947,32 +834,30 @@ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorizatio
947
834
  }));
948
835
  }
949
836
  /**
950
- * Update Quick Command
837
+ * Share
951
838
  */
952
- export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }, opts) {
953
- return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
839
+ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId }, opts) {
840
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, {
954
841
  ...opts,
955
- method: "PATCH",
956
- body: quickCommandsUpdateRequest,
842
+ method: "POST",
957
843
  headers: oazapfts.mergeHeaders(opts?.headers, {
958
844
  authorization,
959
845
  "x-account-id": xAccountId
960
846
  })
961
- })));
847
+ }));
962
848
  }
963
849
  /**
964
- * Share
850
+ * Publish
965
851
  */
966
- export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, shareContentRequest }, opts) {
967
- return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, oazapfts.json({
852
+ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId }, opts) {
853
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, {
968
854
  ...opts,
969
855
  method: "POST",
970
- body: shareContentRequest,
971
856
  headers: oazapfts.mergeHeaders(opts?.headers, {
972
857
  authorization,
973
858
  "x-account-id": xAccountId
974
859
  })
975
- })));
860
+ }));
976
861
  }
977
862
  /**
978
863
  * Fork
@@ -1134,36 +1019,6 @@ export function importContentV1ImportPost({ authorization, xAccountId, importPub
1134
1019
  })
1135
1020
  })));
1136
1021
  }
1137
- /**
1138
- * Change Ai Stack Visibility
1139
- */
1140
- export function changeAiStackVisibilityV1StudiosStudioIdAiStacksStackIdVisibilityPut({ studioId, stackId, changeContentVisibility }, opts) {
1141
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}/visibility`, oazapfts.json({
1142
- ...opts,
1143
- method: "PUT",
1144
- body: changeContentVisibility
1145
- })));
1146
- }
1147
- /**
1148
- * Change Knowledge Source Visibility
1149
- */
1150
- export function changeKnowledgeSourceVisibilityV1KnowledgeSourcesSlugVisibilityPut({ slug, changeContentVisibility }, opts) {
1151
- return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/visibility`, oazapfts.json({
1152
- ...opts,
1153
- method: "PUT",
1154
- body: changeContentVisibility
1155
- })));
1156
- }
1157
- /**
1158
- * Change Quick Command Visibility
1159
- */
1160
- export function changeQuickCommandVisibilityV1QuickCommandsSlugVisibilityPut({ slug, changeContentVisibility }, opts) {
1161
- return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/visibility`, oazapfts.json({
1162
- ...opts,
1163
- method: "PUT",
1164
- body: changeContentVisibility
1165
- })));
1166
- }
1167
1022
  /**
1168
1023
  * List Conversations
1169
1024
  */
@@ -1192,31 +1047,31 @@ export function conversationHistoryV1ConversationsConversationIdGet({ conversati
1192
1047
  }));
1193
1048
  }
1194
1049
  /**
1195
- * Delete Conversation
1050
+ * Update Title
1196
1051
  */
1197
- export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }, opts) {
1198
- return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1052
+ export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }, opts) {
1053
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
1199
1054
  ...opts,
1200
- method: "DELETE",
1055
+ method: "PATCH",
1056
+ body: conversationUpdateTitleRequest,
1201
1057
  headers: oazapfts.mergeHeaders(opts?.headers, {
1202
1058
  authorization,
1203
1059
  "x-account-id": xAccountId
1204
1060
  })
1205
- }));
1061
+ })));
1206
1062
  }
1207
1063
  /**
1208
- * Update Title
1064
+ * Delete Conversation
1209
1065
  */
1210
- export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }, opts) {
1211
- return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
1066
+ export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }, opts) {
1067
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1212
1068
  ...opts,
1213
- method: "PATCH",
1214
- body: conversationUpdateTitleRequest,
1069
+ method: "DELETE",
1215
1070
  headers: oazapfts.mergeHeaders(opts?.headers, {
1216
1071
  authorization,
1217
1072
  "x-account-id": xAccountId
1218
1073
  })
1219
- })));
1074
+ }));
1220
1075
  }
1221
1076
  /**
1222
1077
  * Download Conversation
@@ -1233,14 +1088,11 @@ export function downloadConversationV1ConversationsConversationIdDownloadGet({ c
1233
1088
  /**
1234
1089
  * Create Knowledge Source
1235
1090
  */
1236
- export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }, opts) {
1091
+ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ newKnowledgeSourceRequest }, opts) {
1237
1092
  return oazapfts.ok(oazapfts.fetchJson("/v1/default-knowledge-sources", oazapfts.json({
1238
1093
  ...opts,
1239
1094
  method: "POST",
1240
- body: newKnowledgeSourceRequest,
1241
- headers: oazapfts.mergeHeaders(opts?.headers, {
1242
- authorization
1243
- })
1095
+ body: newKnowledgeSourceRequest
1244
1096
  })));
1245
1097
  }
1246
1098
  /**
@@ -1294,6 +1146,18 @@ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug
1294
1146
  })
1295
1147
  })));
1296
1148
  }
1149
+ /**
1150
+ * Get Dependencies
1151
+ */
1152
+ export function getDependenciesV2QuickCommandsSlugDependenciesGet({ slug, authorization, xAccountId }, opts) {
1153
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/${encodeURIComponent(slug)}/dependencies`, {
1154
+ ...opts,
1155
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1156
+ authorization,
1157
+ "x-account-id": xAccountId
1158
+ })
1159
+ }));
1160
+ }
1297
1161
  /**
1298
1162
  * Vectorize Objects From File
1299
1163
  */
@@ -1327,13 +1191,12 @@ export function uploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost(
1327
1191
  /**
1328
1192
  * Dev Assistant V3
1329
1193
  */
1330
- export function devAssistantV3V3ChatPost({ accept, authorization, xAccountId, codeBuddyApiV2SchemasChatRequest }, opts) {
1194
+ export function devAssistantV3V3ChatPost({ authorization, xAccountId, codeBuddyApiV2SchemasChatRequest }, opts) {
1331
1195
  return oazapfts.ok(oazapfts.fetchJson("/v3/chat", oazapfts.json({
1332
1196
  ...opts,
1333
1197
  method: "POST",
1334
1198
  body: codeBuddyApiV2SchemasChatRequest,
1335
1199
  headers: oazapfts.mergeHeaders(opts?.headers, {
1336
- accept,
1337
1200
  authorization,
1338
1201
  "x-account-id": xAccountId
1339
1202
  })