@stack-spot/portal-network 0.97.2 → 0.98.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.
@@ -0,0 +1,1199 @@
1
+ /**
2
+ * FastAPI
3
+ * 0.1.0
4
+ * DO NOT MODIFY - This file has been generated using oazapfts.
5
+ * See https://www.npmjs.com/package/oazapfts
6
+ */
7
+ import * as Oazapfts from "@oazapfts/runtime";
8
+ import * as QS from "@oazapfts/runtime/query";
9
+ export const defaults = {
10
+ headers: {},
11
+ baseUrl: "/",
12
+ };
13
+ const oazapfts = Oazapfts.runtime(defaults);
14
+ export const servers = {};
15
+ /**
16
+ * Metrics
17
+ */
18
+ export function metricsMetricsGet(opts) {
19
+ return oazapfts.ok(oazapfts.fetchJson("/metrics", {
20
+ ...opts
21
+ }));
22
+ }
23
+ /**
24
+ * List Ai Stacks
25
+ */
26
+ export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId }, opts) {
27
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks${QS.query(QS.explode({
28
+ visibility
29
+ }))}`, {
30
+ ...opts,
31
+ headers: oazapfts.mergeHeaders(opts?.headers, {
32
+ authorization,
33
+ "x-account-id": xAccountId
34
+ })
35
+ }));
36
+ }
37
+ /**
38
+ * Create Ai Stack
39
+ */
40
+ export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiStackRequest }, opts) {
41
+ return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks", oazapfts.json({
42
+ ...opts,
43
+ method: "POST",
44
+ body: newAiStackRequest,
45
+ headers: oazapfts.mergeHeaders(opts?.headers, {
46
+ authorization,
47
+ "x-account-id": xAccountId
48
+ })
49
+ })));
50
+ }
51
+ /**
52
+ * Update Ai Stack
53
+ */
54
+ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }, opts) {
55
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
56
+ ...opts,
57
+ method: "PATCH",
58
+ body: updateAiStackRequest,
59
+ headers: oazapfts.mergeHeaders(opts?.headers, {
60
+ authorization,
61
+ "x-account-id": xAccountId
62
+ })
63
+ })));
64
+ }
65
+ /**
66
+ * Get Ai Stack
67
+ */
68
+ export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId }, opts) {
69
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
70
+ ...opts,
71
+ headers: oazapfts.mergeHeaders(opts?.headers, {
72
+ authorization,
73
+ "x-account-id": xAccountId
74
+ })
75
+ }));
76
+ }
77
+ /**
78
+ * Remove Ai Stack
79
+ */
80
+ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId }, opts) {
81
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
82
+ ...opts,
83
+ method: "DELETE",
84
+ headers: oazapfts.mergeHeaders(opts?.headers, {
85
+ authorization,
86
+ "x-account-id": xAccountId
87
+ })
88
+ }));
89
+ }
90
+ /**
91
+ * Get Ai Stack
92
+ */
93
+ export function getAiStackV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId }, opts) {
94
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackName)}/exists`, {
95
+ ...opts,
96
+ headers: oazapfts.mergeHeaders(opts?.headers, {
97
+ authorization,
98
+ "x-account-id": xAccountId
99
+ })
100
+ }));
101
+ }
102
+ /**
103
+ * Fork
104
+ */
105
+ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, aiStackForkRequest }, opts) {
106
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/fork`, oazapfts.json({
107
+ ...opts,
108
+ method: "POST",
109
+ body: aiStackForkRequest,
110
+ headers: oazapfts.mergeHeaders(opts?.headers, {
111
+ authorization,
112
+ "x-account-id": xAccountId
113
+ })
114
+ })));
115
+ }
116
+ /**
117
+ * Share
118
+ */
119
+ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId }, opts) {
120
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, {
121
+ ...opts,
122
+ method: "POST",
123
+ headers: oazapfts.mergeHeaders(opts?.headers, {
124
+ authorization,
125
+ "x-account-id": xAccountId
126
+ })
127
+ }));
128
+ }
129
+ /**
130
+ * Publish
131
+ */
132
+ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, aiStackPublishRequest }, opts) {
133
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, oazapfts.json({
134
+ ...opts,
135
+ method: "POST",
136
+ body: aiStackPublishRequest,
137
+ headers: oazapfts.mergeHeaders(opts?.headers, {
138
+ authorization,
139
+ "x-account-id": xAccountId
140
+ })
141
+ })));
142
+ }
143
+ /**
144
+ * Project Files
145
+ */
146
+ export function projectFilesV1ProjectFilesPost({ authorization, newProjectFilesRequest }, opts) {
147
+ return oazapfts.ok(oazapfts.fetchJson("/v1/project-files", oazapfts.json({
148
+ ...opts,
149
+ method: "POST",
150
+ body: newProjectFilesRequest,
151
+ headers: oazapfts.mergeHeaders(opts?.headers, {
152
+ authorization
153
+ })
154
+ })));
155
+ }
156
+ /**
157
+ * Quick Actions
158
+ */
159
+ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quickActionsRequest }, opts) {
160
+ return oazapfts.ok(oazapfts.fetchJson("/v1/quick-actions", oazapfts.json({
161
+ ...opts,
162
+ method: "POST",
163
+ body: quickActionsRequest,
164
+ headers: oazapfts.mergeHeaders(opts?.headers, {
165
+ authorization,
166
+ "x-account-id": xAccountId
167
+ })
168
+ })));
169
+ }
170
+ /**
171
+ * Dev Assistant
172
+ */
173
+ export function devAssistantV1ChatPost(opts) {
174
+ return oazapfts.ok(oazapfts.fetchJson("/v1/chat", {
175
+ ...opts,
176
+ method: "POST"
177
+ }));
178
+ }
179
+ /**
180
+ * Post Event
181
+ */
182
+ export function postEventV1EventsPost({ authorization, xAccountId, body }, opts) {
183
+ return oazapfts.ok(oazapfts.fetchJson("/v1/events", oazapfts.json({
184
+ ...opts,
185
+ method: "POST",
186
+ body,
187
+ headers: oazapfts.mergeHeaders(opts?.headers, {
188
+ authorization,
189
+ "x-account-id": xAccountId
190
+ })
191
+ })));
192
+ }
193
+ /**
194
+ * Get Upload Form
195
+ */
196
+ export function getUploadFormV1FileUploadFormPost({ authorization, newFileUploadUrlRequest }, opts) {
197
+ return oazapfts.ok(oazapfts.fetchJson("/v1/file-upload/form", oazapfts.json({
198
+ ...opts,
199
+ method: "POST",
200
+ body: newFileUploadUrlRequest,
201
+ headers: oazapfts.mergeHeaders(opts?.headers, {
202
+ authorization
203
+ })
204
+ })));
205
+ }
206
+ /**
207
+ * Get File Upload Status
208
+ */
209
+ export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, authorization }, opts) {
210
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, {
211
+ ...opts,
212
+ headers: oazapfts.mergeHeaders(opts?.headers, {
213
+ authorization
214
+ })
215
+ }));
216
+ }
217
+ /**
218
+ * Report Health
219
+ */
220
+ export function reportHealthHealthzGet(opts) {
221
+ return oazapfts.ok(oazapfts.fetchJson("/healthz", {
222
+ ...opts
223
+ }));
224
+ }
225
+ /**
226
+ * Create Knowledge Source
227
+ */
228
+ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }, opts) {
229
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources", oazapfts.json({
230
+ ...opts,
231
+ method: "POST",
232
+ body: newKnowledgeSourceRequest,
233
+ headers: oazapfts.mergeHeaders(opts?.headers, {
234
+ authorization
235
+ })
236
+ })));
237
+ }
238
+ /**
239
+ * List Knowledge Sources
240
+ */
241
+ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }, opts) {
242
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
243
+ visibility,
244
+ order,
245
+ "default": $default,
246
+ types
247
+ }))}`, {
248
+ ...opts,
249
+ headers: oazapfts.mergeHeaders(opts?.headers, {
250
+ authorization,
251
+ "x-account-id": xAccountId
252
+ })
253
+ }));
254
+ }
255
+ /**
256
+ * Find Knowledge Source
257
+ */
258
+ export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization }, opts) {
259
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
260
+ ...opts,
261
+ headers: oazapfts.mergeHeaders(opts?.headers, {
262
+ authorization
263
+ })
264
+ }));
265
+ }
266
+ /**
267
+ * Update Knowledge Source
268
+ */
269
+ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, knowledgeSourcePatchesRequest }, opts) {
270
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, oazapfts.json({
271
+ ...opts,
272
+ method: "PATCH",
273
+ body: knowledgeSourcePatchesRequest,
274
+ headers: oazapfts.mergeHeaders(opts?.headers, {
275
+ authorization
276
+ })
277
+ })));
278
+ }
279
+ /**
280
+ * Delete Knowledge Source
281
+ */
282
+ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }, opts) {
283
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
284
+ ...opts,
285
+ method: "DELETE",
286
+ headers: oazapfts.mergeHeaders(opts?.headers, {
287
+ authorization,
288
+ "x-account-id": xAccountId
289
+ })
290
+ }));
291
+ }
292
+ /**
293
+ * Find Knowledge Source
294
+ */
295
+ export function findKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, authorization }, opts) {
296
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/exists`, {
297
+ ...opts,
298
+ headers: oazapfts.mergeHeaders(opts?.headers, {
299
+ authorization
300
+ })
301
+ }));
302
+ }
303
+ /**
304
+ * Search
305
+ */
306
+ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId }, opts) {
307
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/similarity-search${QS.query(QS.explode({
308
+ q,
309
+ size
310
+ }))}`, {
311
+ ...opts,
312
+ headers: oazapfts.mergeHeaders(opts?.headers, {
313
+ authorization,
314
+ "x-account-id": xAccountId
315
+ })
316
+ }));
317
+ }
318
+ /**
319
+ * Share Knowledge Source
320
+ */
321
+ export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization }, opts) {
322
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/share`, {
323
+ ...opts,
324
+ method: "POST",
325
+ headers: oazapfts.mergeHeaders(opts?.headers, {
326
+ authorization
327
+ })
328
+ }));
329
+ }
330
+ /**
331
+ * Publish Knowledge Source
332
+ */
333
+ export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization, knowledgeSourcesPublishRequest }, opts) {
334
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish`, oazapfts.json({
335
+ ...opts,
336
+ method: "POST",
337
+ body: knowledgeSourcesPublishRequest,
338
+ headers: oazapfts.mergeHeaders(opts?.headers, {
339
+ authorization
340
+ })
341
+ })));
342
+ }
343
+ /**
344
+ * Publish Knowledge Source In Batch
345
+ */
346
+ export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization, knowSourcePublishBatchRequest }, opts) {
347
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/publish/batch", oazapfts.json({
348
+ ...opts,
349
+ method: "POST",
350
+ body: knowSourcePublishBatchRequest,
351
+ headers: oazapfts.mergeHeaders(opts?.headers, {
352
+ authorization
353
+ })
354
+ })));
355
+ }
356
+ /**
357
+ * Fork Knowledge Source
358
+ */
359
+ export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization, forkKnowledgeSourceRequest }, opts) {
360
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/fork`, oazapfts.json({
361
+ ...opts,
362
+ method: "POST",
363
+ body: forkKnowledgeSourceRequest,
364
+ headers: oazapfts.mergeHeaders(opts?.headers, {
365
+ authorization
366
+ })
367
+ })));
368
+ }
369
+ /**
370
+ * List Knowledge Objects
371
+ */
372
+ export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization }, opts) {
373
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
374
+ standalone
375
+ }))}`, {
376
+ ...opts,
377
+ headers: oazapfts.mergeHeaders(opts?.headers, {
378
+ authorization
379
+ })
380
+ }));
381
+ }
382
+ /**
383
+ * Reset Knowledge Objects
384
+ */
385
+ export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization }, opts) {
386
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
387
+ standalone
388
+ }))}`, {
389
+ ...opts,
390
+ method: "DELETE",
391
+ headers: oazapfts.mergeHeaders(opts?.headers, {
392
+ authorization
393
+ })
394
+ }));
395
+ }
396
+ /**
397
+ * Find Knowledge Object By Custom Id
398
+ */
399
+ export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet({ slug, customId, authorization }, opts) {
400
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
401
+ ...opts,
402
+ headers: oazapfts.mergeHeaders(opts?.headers, {
403
+ authorization
404
+ })
405
+ }));
406
+ }
407
+ /**
408
+ * Delete Knowledge Object By Custom Id
409
+ */
410
+ export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete({ customId, slug, authorization }, opts) {
411
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
412
+ ...opts,
413
+ method: "DELETE",
414
+ headers: oazapfts.mergeHeaders(opts?.headers, {
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
427
+ })
428
+ }));
429
+ }
430
+ /**
431
+ * Vectorize Snippet Knowledge Source
432
+ */
433
+ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, snippetKnowledgeSourceRequest }, opts) {
434
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, oazapfts.json({
435
+ ...opts,
436
+ method: "POST",
437
+ body: snippetKnowledgeSourceRequest,
438
+ headers: oazapfts.mergeHeaders(opts?.headers, {
439
+ authorization,
440
+ "x-account-id": xAccountId
441
+ })
442
+ })));
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
+ }
491
+ /**
492
+ * Vectorize Custom Knowledge Source
493
+ */
494
+ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, customKnowledgeSourceRequest }, opts) {
495
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom`, oazapfts.json({
496
+ ...opts,
497
+ method: "POST",
498
+ body: customKnowledgeSourceRequest,
499
+ headers: oazapfts.mergeHeaders(opts?.headers, {
500
+ authorization,
501
+ "x-account-id": xAccountId
502
+ })
503
+ })));
504
+ }
505
+ /**
506
+ * Sync Embedding Model
507
+ */
508
+ export function syncEmbeddingModelV1KnowledgeSourcesSyncPost(opts) {
509
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/sync", {
510
+ ...opts,
511
+ method: "POST"
512
+ }));
513
+ }
514
+ /**
515
+ * Search Knowledge Sources
516
+ */
517
+ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorization, searchKnowledgeSourcesRequest }, opts) {
518
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/search", oazapfts.json({
519
+ ...opts,
520
+ method: "POST",
521
+ body: searchKnowledgeSourcesRequest,
522
+ headers: oazapfts.mergeHeaders(opts?.headers, {
523
+ authorization
524
+ })
525
+ })));
526
+ }
527
+ /**
528
+ * Change Llm
529
+ */
530
+ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, accountSettingsChangeLlmRequest }, opts) {
531
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/llm", oazapfts.json({
532
+ ...opts,
533
+ method: "PATCH",
534
+ body: accountSettingsChangeLlmRequest,
535
+ headers: oazapfts.mergeHeaders(opts?.headers, {
536
+ authorization,
537
+ "x-account-id": xAccountId
538
+ })
539
+ })));
540
+ }
541
+ /**
542
+ * Change Limit
543
+ */
544
+ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, accountSettingsChangeLimitRequest }, opts) {
545
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", oazapfts.json({
546
+ ...opts,
547
+ method: "PUT",
548
+ body: accountSettingsChangeLimitRequest,
549
+ headers: oazapfts.mergeHeaders(opts?.headers, {
550
+ authorization,
551
+ "x-account-id": xAccountId
552
+ })
553
+ })));
554
+ }
555
+ /**
556
+ * Reset Limit
557
+ */
558
+ export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId }, opts) {
559
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", {
560
+ ...opts,
561
+ method: "DELETE",
562
+ headers: oazapfts.mergeHeaders(opts?.headers, {
563
+ authorization,
564
+ "x-account-id": xAccountId
565
+ })
566
+ }));
567
+ }
568
+ /**
569
+ * Change External Rqc
570
+ */
571
+ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, accountSettingsChangeErqcRequest }, opts) {
572
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/external-rqc", oazapfts.json({
573
+ ...opts,
574
+ method: "PATCH",
575
+ body: accountSettingsChangeErqcRequest,
576
+ headers: oazapfts.mergeHeaders(opts?.headers, {
577
+ authorization,
578
+ "x-account-id": xAccountId
579
+ })
580
+ })));
581
+ }
582
+ /**
583
+ * Get External Configs
584
+ */
585
+ export function getExternalConfigsV1AccountsExternalConfigGet(opts) {
586
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/external-config", {
587
+ ...opts
588
+ }));
589
+ }
590
+ /**
591
+ * Change External Configs
592
+ */
593
+ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }, opts) {
594
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/external-config", oazapfts.json({
595
+ ...opts,
596
+ method: "PATCH",
597
+ body
598
+ })));
599
+ }
600
+ /**
601
+ * Current
602
+ */
603
+ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId }, opts) {
604
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/current${QS.query(QS.explode({
605
+ year,
606
+ month
607
+ }))}`, {
608
+ ...opts,
609
+ headers: oazapfts.mergeHeaders(opts?.headers, {
610
+ authorization,
611
+ "x-account-id": xAccountId
612
+ })
613
+ }));
614
+ }
615
+ /**
616
+ * Monthly
617
+ */
618
+ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId }, opts) {
619
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/monthly${QS.query(QS.explode({
620
+ year
621
+ }))}`, {
622
+ ...opts,
623
+ headers: oazapfts.mergeHeaders(opts?.headers, {
624
+ authorization,
625
+ "x-account-id": xAccountId
626
+ })
627
+ }));
628
+ }
629
+ /**
630
+ * Top Users
631
+ */
632
+ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId }, opts) {
633
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/top-users${QS.query(QS.explode({
634
+ year,
635
+ month
636
+ }))}`, {
637
+ ...opts,
638
+ headers: oazapfts.mergeHeaders(opts?.headers, {
639
+ authorization,
640
+ "x-account-id": xAccountId
641
+ })
642
+ }));
643
+ }
644
+ /**
645
+ * Add Association
646
+ */
647
+ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }, opts) {
648
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
649
+ ...opts,
650
+ method: "POST",
651
+ body: addWorkspaceKnowledgeSourceRequest,
652
+ headers: oazapfts.mergeHeaders(opts?.headers, {
653
+ authorization,
654
+ "x-account-id": xAccountId
655
+ })
656
+ })));
657
+ }
658
+ /**
659
+ * List Association
660
+ */
661
+ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
662
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
663
+ ...opts,
664
+ headers: oazapfts.mergeHeaders(opts?.headers, {
665
+ authorization,
666
+ "x-account-id": xAccountId
667
+ })
668
+ }));
669
+ }
670
+ /**
671
+ * Delete Association
672
+ */
673
+ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId }, opts) {
674
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}/knowledge_source/${encodeURIComponent(knowledgeSourceSlug)}`, {
675
+ ...opts,
676
+ method: "DELETE",
677
+ headers: oazapfts.mergeHeaders(opts?.headers, {
678
+ authorization,
679
+ "x-account-id": xAccountId
680
+ })
681
+ }));
682
+ }
683
+ /**
684
+ * Create Quick Command
685
+ */
686
+ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, quickCommandsCreateRequest }, opts) {
687
+ return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands", oazapfts.json({
688
+ ...opts,
689
+ method: "POST",
690
+ body: quickCommandsCreateRequest,
691
+ headers: oazapfts.mergeHeaders(opts?.headers, {
692
+ authorization,
693
+ "x-account-id": xAccountId
694
+ })
695
+ })));
696
+ }
697
+ /**
698
+ * List All Deprecated
699
+ */
700
+ export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization, xAccountId, baseContextualRequest }, opts) {
701
+ return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/all", oazapfts.json({
702
+ ...opts,
703
+ method: "POST",
704
+ body: baseContextualRequest,
705
+ headers: oazapfts.mergeHeaders(opts?.headers, {
706
+ origin,
707
+ authorization,
708
+ "x-account-id": xAccountId
709
+ })
710
+ })));
711
+ }
712
+ /**
713
+ * List All
714
+ */
715
+ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId }, opts) {
716
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/all${QS.query(QS.explode({
717
+ visibility,
718
+ order,
719
+ types
720
+ }))}`, {
721
+ ...opts,
722
+ headers: oazapfts.mergeHeaders(opts?.headers, {
723
+ authorization,
724
+ "x-account-id": xAccountId
725
+ })
726
+ }));
727
+ }
728
+ /**
729
+ * Update Quick Command
730
+ */
731
+ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }, opts) {
732
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
733
+ ...opts,
734
+ method: "PATCH",
735
+ body: quickCommandsUpdateRequest,
736
+ headers: oazapfts.mergeHeaders(opts?.headers, {
737
+ authorization,
738
+ "x-account-id": xAccountId
739
+ })
740
+ })));
741
+ }
742
+ /**
743
+ * Get Quick Command
744
+ */
745
+ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId }, opts) {
746
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}${QS.query(QS.explode({
747
+ find_agents: findAgents
748
+ }))}`, {
749
+ ...opts,
750
+ headers: oazapfts.mergeHeaders(opts?.headers, {
751
+ authorization,
752
+ "x-account-id": xAccountId
753
+ })
754
+ }));
755
+ }
756
+ /**
757
+ * Delete Quick Command
758
+ */
759
+ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId }, opts) {
760
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
761
+ ...opts,
762
+ method: "DELETE",
763
+ headers: oazapfts.mergeHeaders(opts?.headers, {
764
+ authorization,
765
+ "x-account-id": xAccountId
766
+ })
767
+ }));
768
+ }
769
+ /**
770
+ * Share
771
+ */
772
+ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId }, opts) {
773
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, {
774
+ ...opts,
775
+ method: "POST",
776
+ headers: oazapfts.mergeHeaders(opts?.headers, {
777
+ authorization,
778
+ "x-account-id": xAccountId
779
+ })
780
+ }));
781
+ }
782
+ /**
783
+ * Publish
784
+ */
785
+ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, quickCommandPublishRequest }, opts) {
786
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, oazapfts.json({
787
+ ...opts,
788
+ method: "POST",
789
+ body: quickCommandPublishRequest,
790
+ headers: oazapfts.mergeHeaders(opts?.headers, {
791
+ authorization,
792
+ "x-account-id": xAccountId
793
+ })
794
+ })));
795
+ }
796
+ /**
797
+ * Fork
798
+ */
799
+ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, quickCommandsMakeACopyRequest }, opts) {
800
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/fork`, oazapfts.json({
801
+ ...opts,
802
+ method: "POST",
803
+ body: quickCommandsMakeACopyRequest,
804
+ headers: oazapfts.mergeHeaders(opts?.headers, {
805
+ authorization,
806
+ "x-account-id": xAccountId
807
+ })
808
+ })));
809
+ }
810
+ /**
811
+ * Get Quick Command
812
+ */
813
+ export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId }, opts) {
814
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/exists`, {
815
+ ...opts,
816
+ headers: oazapfts.mergeHeaders(opts?.headers, {
817
+ authorization,
818
+ "x-account-id": xAccountId
819
+ })
820
+ }));
821
+ }
822
+ /**
823
+ * Get Quick Command By Ks Slug
824
+ */
825
+ export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId }, opts) {
826
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/knowledge-sources/${encodeURIComponent(slug)}`, {
827
+ ...opts,
828
+ headers: oazapfts.mergeHeaders(opts?.headers, {
829
+ authorization,
830
+ "x-account-id": xAccountId
831
+ })
832
+ }));
833
+ }
834
+ /**
835
+ * Get Quick Commands By Agent Id
836
+ */
837
+ export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId }, opts) {
838
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
839
+ ...opts,
840
+ headers: oazapfts.mergeHeaders(opts?.headers, {
841
+ authorization,
842
+ "x-account-id": xAccountId
843
+ })
844
+ }));
845
+ }
846
+ /**
847
+ * Disassociate Agent
848
+ */
849
+ export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId }, opts) {
850
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
851
+ ...opts,
852
+ method: "DELETE",
853
+ headers: oazapfts.mergeHeaders(opts?.headers, {
854
+ authorization,
855
+ "x-account-id": xAccountId
856
+ })
857
+ }));
858
+ }
859
+ /**
860
+ * List By Workspace Id
861
+ */
862
+ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
863
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/workspaces/${encodeURIComponent(workspaceId)}`, {
864
+ ...opts,
865
+ headers: oazapfts.mergeHeaders(opts?.headers, {
866
+ authorization,
867
+ "x-account-id": xAccountId
868
+ })
869
+ }));
870
+ }
871
+ /**
872
+ * Quick Commands Run
873
+ */
874
+ export function quickCommandsRunV1QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
875
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
876
+ ...opts,
877
+ method: "POST",
878
+ body: quickCommandsExecutionRequest,
879
+ headers: oazapfts.mergeHeaders(opts?.headers, {
880
+ authorization,
881
+ "x-account-id": xAccountId
882
+ })
883
+ })));
884
+ }
885
+ /**
886
+ * Format Fetch Step
887
+ */
888
+ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
889
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_format`, oazapfts.json({
890
+ ...opts,
891
+ method: "POST",
892
+ body: quickCommandsExecutionRequest,
893
+ headers: oazapfts.mergeHeaders(opts?.headers, {
894
+ authorization,
895
+ "x-account-id": xAccountId
896
+ })
897
+ })));
898
+ }
899
+ /**
900
+ * Format Result
901
+ */
902
+ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
903
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/result_format`, oazapfts.json({
904
+ ...opts,
905
+ method: "POST",
906
+ body: quickCommandsExecutionRequest,
907
+ headers: oazapfts.mergeHeaders(opts?.headers, {
908
+ authorization,
909
+ "x-account-id": xAccountId
910
+ })
911
+ })));
912
+ }
913
+ /**
914
+ * Add Workspace
915
+ */
916
+ export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId }, opts) {
917
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/add`, {
918
+ ...opts,
919
+ method: "POST",
920
+ headers: oazapfts.mergeHeaders(opts?.headers, {
921
+ authorization,
922
+ "x-account-id": xAccountId
923
+ })
924
+ }));
925
+ }
926
+ /**
927
+ * Remove Workspace
928
+ */
929
+ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId }, opts) {
930
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/remove`, {
931
+ ...opts,
932
+ method: "DELETE",
933
+ headers: oazapfts.mergeHeaders(opts?.headers, {
934
+ authorization,
935
+ "x-account-id": xAccountId
936
+ })
937
+ }));
938
+ }
939
+ /**
940
+ * Create Execution
941
+ */
942
+ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, quickCommandCreateRequest }, opts) {
943
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/create-execution/${encodeURIComponent(slug)}${QS.query(QS.explode({
944
+ conversation_id: conversationId
945
+ }))}`, oazapfts.json({
946
+ ...opts,
947
+ method: "POST",
948
+ body: quickCommandCreateRequest,
949
+ headers: oazapfts.mergeHeaders(opts?.headers, {
950
+ authorization,
951
+ "x-account-id": xAccountId
952
+ })
953
+ })));
954
+ }
955
+ /**
956
+ * Callback
957
+ */
958
+ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId }, opts) {
959
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/callback/${encodeURIComponent(executionId)}`, {
960
+ ...opts,
961
+ headers: oazapfts.mergeHeaders(opts?.headers, {
962
+ authorization,
963
+ "x-account-id": xAccountId
964
+ })
965
+ }));
966
+ }
967
+ /**
968
+ * Import Content
969
+ */
970
+ export function importContentV1ImportPost({ authorization, xAccountId, importPublicContent }, opts) {
971
+ return oazapfts.ok(oazapfts.fetchJson("/v1/import", oazapfts.json({
972
+ ...opts,
973
+ method: "POST",
974
+ body: importPublicContent,
975
+ headers: oazapfts.mergeHeaders(opts?.headers, {
976
+ authorization,
977
+ "x-account-id": xAccountId
978
+ })
979
+ })));
980
+ }
981
+ /**
982
+ * List Conversations
983
+ */
984
+ export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId }, opts) {
985
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations${QS.query(QS.explode({
986
+ size,
987
+ page
988
+ }))}`, {
989
+ ...opts,
990
+ headers: oazapfts.mergeHeaders(opts?.headers, {
991
+ authorization,
992
+ "x-account-id": xAccountId
993
+ })
994
+ }));
995
+ }
996
+ /**
997
+ * Conversation History
998
+ */
999
+ export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId }, opts) {
1000
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1001
+ ...opts,
1002
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1003
+ authorization,
1004
+ "x-account-id": xAccountId
1005
+ })
1006
+ }));
1007
+ }
1008
+ /**
1009
+ * Update Title
1010
+ */
1011
+ export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }, opts) {
1012
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
1013
+ ...opts,
1014
+ method: "PATCH",
1015
+ body: conversationUpdateTitleRequest,
1016
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1017
+ authorization,
1018
+ "x-account-id": xAccountId
1019
+ })
1020
+ })));
1021
+ }
1022
+ /**
1023
+ * Delete Conversation
1024
+ */
1025
+ export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }, opts) {
1026
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1027
+ ...opts,
1028
+ method: "DELETE",
1029
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1030
+ authorization,
1031
+ "x-account-id": xAccountId
1032
+ })
1033
+ }));
1034
+ }
1035
+ /**
1036
+ * Download Conversation
1037
+ */
1038
+ export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId }, opts) {
1039
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}/download`, {
1040
+ ...opts,
1041
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1042
+ authorization,
1043
+ "x-account-id": xAccountId
1044
+ })
1045
+ }));
1046
+ }
1047
+ /**
1048
+ * Create Knowledge Source
1049
+ */
1050
+ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }, opts) {
1051
+ return oazapfts.ok(oazapfts.fetchJson("/v1/default-knowledge-sources", oazapfts.json({
1052
+ ...opts,
1053
+ method: "POST",
1054
+ body: newKnowledgeSourceRequest,
1055
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1056
+ authorization
1057
+ })
1058
+ })));
1059
+ }
1060
+ /**
1061
+ * Delete Knowledge Source
1062
+ */
1063
+ export function deleteKnowledgeSourceV1DefaultKnowledgeSourcesSlugDelete({ slug, authorization }, opts) {
1064
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/default-knowledge-sources/${encodeURIComponent(slug)}`, {
1065
+ ...opts,
1066
+ method: "DELETE",
1067
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1068
+ authorization
1069
+ })
1070
+ }));
1071
+ }
1072
+ /**
1073
+ * Upload Knowledge Objects Zip
1074
+ */
1075
+ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost({ slug, autoDelete, bodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost }, opts) {
1076
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/default-knowledge-sources/${encodeURIComponent(slug)}/objects/batch${QS.query(QS.explode({
1077
+ "auto-delete": autoDelete
1078
+ }))}`, oazapfts.multipart({
1079
+ ...opts,
1080
+ method: "POST",
1081
+ body: bodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost
1082
+ })));
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
+ }
1096
+ /**
1097
+ * Get Flags
1098
+ */
1099
+ export function getFlagsV1FlagsGet(opts) {
1100
+ return oazapfts.ok(oazapfts.fetchJson("/v1/flags", {
1101
+ ...opts
1102
+ }));
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
+ }
1146
+ /**
1147
+ * Get Content Dependencies
1148
+ */
1149
+ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId }, opts) {
1150
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/content/${encodeURIComponent(contentType)}/${encodeURIComponent(contentId)}/dependencies`, {
1151
+ ...opts,
1152
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1153
+ authorization,
1154
+ "x-account-id": xAccountId
1155
+ })
1156
+ }));
1157
+ }
1158
+ /**
1159
+ * Dev Assistant V2
1160
+ */
1161
+ export function devAssistantV2V2ChatPost({ accept }, opts) {
1162
+ return oazapfts.ok(oazapfts.fetchJson("/v2/chat", {
1163
+ ...opts,
1164
+ method: "POST",
1165
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1166
+ accept
1167
+ })
1168
+ }));
1169
+ }
1170
+ /**
1171
+ * Quick Commands Run V2
1172
+ */
1173
+ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, accept, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1174
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
1175
+ ...opts,
1176
+ method: "POST",
1177
+ body: quickCommandsExecutionRequest,
1178
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1179
+ accept,
1180
+ authorization,
1181
+ "x-account-id": xAccountId
1182
+ })
1183
+ })));
1184
+ }
1185
+ /**
1186
+ * Dev Assistant V3
1187
+ */
1188
+ export function devAssistantV3V3ChatPost({ authorization, xAccountId, chatRequest }, opts) {
1189
+ return oazapfts.ok(oazapfts.fetchJson("/v3/chat", oazapfts.json({
1190
+ ...opts,
1191
+ method: "POST",
1192
+ body: chatRequest,
1193
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1194
+ authorization,
1195
+ "x-account-id": xAccountId
1196
+ })
1197
+ })));
1198
+ }
1199
+ //# sourceMappingURL=codeBuddy.js.map