@oqtopus-team/qdash-client 0.1.1

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,2269 @@
1
+ // src/errors.ts
2
+ var QDashApiError = class extends Error {
3
+ statusCode;
4
+ payload;
5
+ constructor(message, options = {}) {
6
+ super(message, { cause: options.cause });
7
+ this.name = new.target.name;
8
+ this.statusCode = options.statusCode;
9
+ this.payload = options.payload;
10
+ }
11
+ };
12
+ var QDashConfigError = class extends Error {
13
+ constructor(message, options = {}) {
14
+ super(message, options);
15
+ this.name = "QDashConfigError";
16
+ }
17
+ };
18
+ var QDashAuthError = class extends QDashApiError {
19
+ };
20
+ var QDashNotFoundError = class extends QDashApiError {
21
+ };
22
+ var QDashValidationError = class extends QDashApiError {
23
+ };
24
+ var QDashTransportError = class extends QDashApiError {
25
+ };
26
+ var QDashClientError = QDashApiError;
27
+
28
+ // src/orval-request.ts
29
+ async function qdashRequest(config, options = {}) {
30
+ const { qdashTransport, ...overrides } = options;
31
+ if (!qdashTransport) {
32
+ throw new QDashConfigError("Generated API calls require a QDashClient transport");
33
+ }
34
+ return qdashTransport.request({ ...config, ...overrides });
35
+ }
36
+
37
+ // src/generated/api.ts
38
+ var getQDashAPI = () => {
39
+ const login = (bodyLogin, options) => {
40
+ const formUrlEncoded = new URLSearchParams();
41
+ formUrlEncoded.append(`username`, bodyLogin.username);
42
+ formUrlEncoded.append(`password`, bodyLogin.password);
43
+ return qdashRequest(
44
+ {
45
+ url: `/auth/login`,
46
+ method: "POST",
47
+ headers: { "Content-Type": "application/x-www-form-urlencoded" },
48
+ data: formUrlEncoded
49
+ },
50
+ options
51
+ );
52
+ };
53
+ const registerUser = (userCreate, options) => {
54
+ return qdashRequest(
55
+ {
56
+ url: `/auth/register`,
57
+ method: "POST",
58
+ headers: { "Content-Type": "application/json" },
59
+ data: userCreate
60
+ },
61
+ options
62
+ );
63
+ };
64
+ const getCurrentUser = (options) => {
65
+ return qdashRequest(
66
+ {
67
+ url: `/auth/me`,
68
+ method: "GET"
69
+ },
70
+ options
71
+ );
72
+ };
73
+ const updateCurrentUserProfile = (userProfileUpdate, options) => {
74
+ return qdashRequest(
75
+ {
76
+ url: `/auth/me`,
77
+ method: "PATCH",
78
+ headers: { "Content-Type": "application/json" },
79
+ data: userProfileUpdate
80
+ },
81
+ options
82
+ );
83
+ };
84
+ const logout = (options) => {
85
+ return qdashRequest(
86
+ {
87
+ url: `/auth/logout`,
88
+ method: "POST"
89
+ },
90
+ options
91
+ );
92
+ };
93
+ const changePassword = (passwordChange, options) => {
94
+ return qdashRequest(
95
+ {
96
+ url: `/auth/change-password`,
97
+ method: "POST",
98
+ headers: { "Content-Type": "application/json" },
99
+ data: passwordChange
100
+ },
101
+ options
102
+ );
103
+ };
104
+ const resetPassword = (passwordReset, options) => {
105
+ return qdashRequest(
106
+ {
107
+ url: `/auth/reset-password`,
108
+ method: "POST",
109
+ headers: { "Content-Type": "application/json" },
110
+ data: passwordReset
111
+ },
112
+ options
113
+ );
114
+ };
115
+ const reloadConfigCaches = (options) => {
116
+ return qdashRequest(
117
+ {
118
+ url: `/admin/config/reload`,
119
+ method: "POST"
120
+ },
121
+ options
122
+ );
123
+ };
124
+ const listAllUsers = (params, options) => {
125
+ return qdashRequest(
126
+ {
127
+ url: `/admin/users`,
128
+ method: "GET",
129
+ params
130
+ },
131
+ options
132
+ );
133
+ };
134
+ const getUserDetails = (username, options) => {
135
+ return qdashRequest(
136
+ {
137
+ url: `/admin/users/${username}`,
138
+ method: "GET"
139
+ },
140
+ options
141
+ );
142
+ };
143
+ const updateUserSettings = (username, updateUserRequest, options) => {
144
+ return qdashRequest(
145
+ {
146
+ url: `/admin/users/${username}`,
147
+ method: "PUT",
148
+ headers: { "Content-Type": "application/json" },
149
+ data: updateUserRequest
150
+ },
151
+ options
152
+ );
153
+ };
154
+ const deleteUser = (username, options) => {
155
+ return qdashRequest(
156
+ {
157
+ url: `/admin/users/${username}`,
158
+ method: "DELETE"
159
+ },
160
+ options
161
+ );
162
+ };
163
+ const bulkImportUsers = (bodyBulkImportUsers, options) => {
164
+ const formData = new FormData();
165
+ formData.append(`file`, bodyBulkImportUsers.file);
166
+ return qdashRequest(
167
+ {
168
+ url: `/admin/users/bulk-import`,
169
+ method: "POST",
170
+ headers: { "Content-Type": "multipart/form-data" },
171
+ data: formData
172
+ },
173
+ options
174
+ );
175
+ };
176
+ const listAllProjects = (params, options) => {
177
+ return qdashRequest(
178
+ {
179
+ url: `/admin/projects`,
180
+ method: "GET",
181
+ params
182
+ },
183
+ options
184
+ );
185
+ };
186
+ const adminDeleteProject = (projectId, options) => {
187
+ return qdashRequest(
188
+ {
189
+ url: `/admin/projects/${projectId}`,
190
+ method: "DELETE"
191
+ },
192
+ options
193
+ );
194
+ };
195
+ const listProjectMembersAdmin = (projectId, options) => {
196
+ return qdashRequest(
197
+ {
198
+ url: `/admin/projects/${projectId}/members`,
199
+ method: "GET"
200
+ },
201
+ options
202
+ );
203
+ };
204
+ const addProjectMemberAdmin = (projectId, addMemberRequest, options) => {
205
+ return qdashRequest(
206
+ {
207
+ url: `/admin/projects/${projectId}/members`,
208
+ method: "POST",
209
+ headers: { "Content-Type": "application/json" },
210
+ data: addMemberRequest
211
+ },
212
+ options
213
+ );
214
+ };
215
+ const removeProjectMemberAdmin = (projectId, username, options) => {
216
+ return qdashRequest(
217
+ {
218
+ url: `/admin/projects/${projectId}/members/${username}`,
219
+ method: "DELETE"
220
+ },
221
+ options
222
+ );
223
+ };
224
+ const createProjectForUser = (username, options) => {
225
+ return qdashRequest(
226
+ {
227
+ url: `/admin/users/${username}/project`,
228
+ method: "POST"
229
+ },
230
+ options
231
+ );
232
+ };
233
+ const listProjects = (options) => {
234
+ return qdashRequest(
235
+ {
236
+ url: `/projects`,
237
+ method: "GET"
238
+ },
239
+ options
240
+ );
241
+ };
242
+ const createProject = (projectCreate, options) => {
243
+ return qdashRequest(
244
+ {
245
+ url: `/projects`,
246
+ method: "POST",
247
+ headers: { "Content-Type": "application/json" },
248
+ data: projectCreate
249
+ },
250
+ options
251
+ );
252
+ };
253
+ const getProject = (projectId, options) => {
254
+ return qdashRequest(
255
+ {
256
+ url: `/projects/${projectId}`,
257
+ method: "GET"
258
+ },
259
+ options
260
+ );
261
+ };
262
+ const updateProject = (projectId, projectUpdate, options) => {
263
+ return qdashRequest(
264
+ {
265
+ url: `/projects/${projectId}`,
266
+ method: "PATCH",
267
+ headers: { "Content-Type": "application/json" },
268
+ data: projectUpdate
269
+ },
270
+ options
271
+ );
272
+ };
273
+ const deleteProject = (projectId, options) => {
274
+ return qdashRequest(
275
+ {
276
+ url: `/projects/${projectId}`,
277
+ method: "DELETE"
278
+ },
279
+ options
280
+ );
281
+ };
282
+ const listProjectMembers = (projectId, options) => {
283
+ return qdashRequest(
284
+ {
285
+ url: `/projects/${projectId}/members`,
286
+ method: "GET"
287
+ },
288
+ options
289
+ );
290
+ };
291
+ const inviteProjectMember = (projectId, memberInvite, options) => {
292
+ return qdashRequest(
293
+ {
294
+ url: `/projects/${projectId}/members`,
295
+ method: "POST",
296
+ headers: { "Content-Type": "application/json" },
297
+ data: memberInvite
298
+ },
299
+ options
300
+ );
301
+ };
302
+ const updateProjectMember = (projectId, username, memberUpdate, options) => {
303
+ return qdashRequest(
304
+ {
305
+ url: `/projects/${projectId}/members/${username}`,
306
+ method: "PATCH",
307
+ headers: { "Content-Type": "application/json" },
308
+ data: memberUpdate
309
+ },
310
+ options
311
+ );
312
+ };
313
+ const removeProjectMember = (projectId, username, options) => {
314
+ return qdashRequest(
315
+ {
316
+ url: `/projects/${projectId}/members/${username}`,
317
+ method: "DELETE"
318
+ },
319
+ options
320
+ );
321
+ };
322
+ const transferProjectOwnership = (projectId, memberInvite, options) => {
323
+ return qdashRequest(
324
+ {
325
+ url: `/projects/${projectId}/transfer`,
326
+ method: "POST",
327
+ headers: { "Content-Type": "application/json" },
328
+ data: memberInvite
329
+ },
330
+ options
331
+ );
332
+ };
333
+ const getFigureByPath = (params, options) => {
334
+ return qdashRequest(
335
+ {
336
+ url: `/executions/figure`,
337
+ method: "GET",
338
+ params
339
+ },
340
+ options
341
+ );
342
+ };
343
+ const getExecutionLockStatus = (options) => {
344
+ return qdashRequest(
345
+ {
346
+ url: `/executions/lock-status`,
347
+ method: "GET"
348
+ },
349
+ options
350
+ );
351
+ };
352
+ const listExecutions = (params, options) => {
353
+ return qdashRequest(
354
+ {
355
+ url: `/executions`,
356
+ method: "GET",
357
+ params
358
+ },
359
+ options
360
+ );
361
+ };
362
+ const getExecution = (executionId, options) => {
363
+ return qdashRequest(
364
+ {
365
+ url: `/executions/${executionId}`,
366
+ method: "GET"
367
+ },
368
+ options
369
+ );
370
+ };
371
+ const cancelExecution = (flowRunId, options) => {
372
+ return qdashRequest(
373
+ {
374
+ url: `/executions/${flowRunId}/cancel`,
375
+ method: "POST"
376
+ },
377
+ options
378
+ );
379
+ };
380
+ const reExecuteFromSnapshot = (executionId, reExecuteRequest, options) => {
381
+ return qdashRequest(
382
+ {
383
+ url: `/executions/${executionId}/re-execute`,
384
+ method: "POST",
385
+ headers: { "Content-Type": "application/json" },
386
+ data: reExecuteRequest
387
+ },
388
+ options
389
+ );
390
+ };
391
+ const downloadFile = (params, options) => {
392
+ return qdashRequest(
393
+ {
394
+ url: `/files/raw-data`,
395
+ method: "GET",
396
+ params
397
+ },
398
+ options
399
+ );
400
+ };
401
+ const downloadZipFile = (params, options) => {
402
+ return qdashRequest(
403
+ {
404
+ url: `/files/zip`,
405
+ method: "GET",
406
+ params
407
+ },
408
+ options
409
+ );
410
+ };
411
+ const getFileTree = (options) => {
412
+ return qdashRequest(
413
+ {
414
+ url: `/files/tree`,
415
+ method: "GET"
416
+ },
417
+ options
418
+ );
419
+ };
420
+ const getFileContent = (params, options) => {
421
+ return qdashRequest(
422
+ {
423
+ url: `/files/content`,
424
+ method: "GET",
425
+ params
426
+ },
427
+ options
428
+ );
429
+ };
430
+ const saveFileContent = (saveFileRequest, options) => {
431
+ return qdashRequest(
432
+ {
433
+ url: `/files/content`,
434
+ method: "PUT",
435
+ headers: { "Content-Type": "application/json" },
436
+ data: saveFileRequest
437
+ },
438
+ options
439
+ );
440
+ };
441
+ const validateFileContent = (validateFileRequest, options) => {
442
+ return qdashRequest(
443
+ {
444
+ url: `/files/validate`,
445
+ method: "POST",
446
+ headers: { "Content-Type": "application/json" },
447
+ data: validateFileRequest
448
+ },
449
+ options
450
+ );
451
+ };
452
+ const getGitStatus = (options) => {
453
+ return qdashRequest(
454
+ {
455
+ url: `/files/git/status`,
456
+ method: "GET"
457
+ },
458
+ options
459
+ );
460
+ };
461
+ const gitPullConfig = (options) => {
462
+ return qdashRequest(
463
+ {
464
+ url: `/files/git/pull`,
465
+ method: "POST"
466
+ },
467
+ options
468
+ );
469
+ };
470
+ const gitPushConfig = (gitPushRequest, options) => {
471
+ return qdashRequest(
472
+ {
473
+ url: `/files/git/push`,
474
+ method: "POST",
475
+ headers: { "Content-Type": "application/json" },
476
+ data: gitPushRequest
477
+ },
478
+ options
479
+ );
480
+ };
481
+ const createAgentSession = (createAgentSessionRequest, options) => {
482
+ return qdashRequest(
483
+ {
484
+ url: `/agent-sessions`,
485
+ method: "POST",
486
+ headers: { "Content-Type": "application/json" },
487
+ data: createAgentSessionRequest
488
+ },
489
+ options
490
+ );
491
+ };
492
+ const getAgentSession = (sessionId, options) => {
493
+ return qdashRequest(
494
+ {
495
+ url: `/agent-sessions/${sessionId}`,
496
+ method: "GET"
497
+ },
498
+ options
499
+ );
500
+ };
501
+ const evaluateAgentCandidateGate = (sessionId, evaluateCandidateGateRequest, options) => {
502
+ return qdashRequest(
503
+ {
504
+ url: `/agent-sessions/${sessionId}/candidate-gate`,
505
+ method: "POST",
506
+ headers: { "Content-Type": "application/json" },
507
+ data: evaluateCandidateGateRequest
508
+ },
509
+ options
510
+ );
511
+ };
512
+ const submitAgentAction = (sessionId, submitAgentActionRequest, options) => {
513
+ return qdashRequest(
514
+ {
515
+ url: `/agent-sessions/${sessionId}/actions`,
516
+ method: "POST",
517
+ headers: { "Content-Type": "application/json" },
518
+ data: submitAgentActionRequest
519
+ },
520
+ options
521
+ );
522
+ };
523
+ const listAgentActions = (sessionId, options) => {
524
+ return qdashRequest(
525
+ {
526
+ url: `/agent-sessions/${sessionId}/actions`,
527
+ method: "GET"
528
+ },
529
+ options
530
+ );
531
+ };
532
+ const listAgentActionCandidates = (sessionId, actionId, options) => {
533
+ return qdashRequest(
534
+ {
535
+ url: `/agent-sessions/${sessionId}/actions/${actionId}/candidates`,
536
+ method: "GET"
537
+ },
538
+ options
539
+ );
540
+ };
541
+ const commitAgentActionCandidate = (sessionId, actionId, parameterName, commitAgentCandidateRequest, options) => {
542
+ return qdashRequest(
543
+ {
544
+ url: `/agent-sessions/${sessionId}/actions/${actionId}/candidates/${parameterName}/commit`,
545
+ method: "POST",
546
+ headers: { "Content-Type": "application/json" },
547
+ data: commitAgentCandidateRequest
548
+ },
549
+ options
550
+ );
551
+ };
552
+ const commitAgentCampaignCandidates = (sessionId, commitAgentCampaignRequest, options) => {
553
+ return qdashRequest(
554
+ {
555
+ url: `/agent-sessions/${sessionId}/campaign-commits`,
556
+ method: "POST",
557
+ headers: { "Content-Type": "application/json" },
558
+ data: commitAgentCampaignRequest
559
+ },
560
+ options
561
+ );
562
+ };
563
+ const getAgentCampaignCommit = (sessionId, commitId, options) => {
564
+ return qdashRequest(
565
+ {
566
+ url: `/agent-sessions/${sessionId}/campaign-commits/${commitId}`,
567
+ method: "GET"
568
+ },
569
+ options
570
+ );
571
+ };
572
+ const getAgentCandidateCommit = (sessionId, commitId, options) => {
573
+ return qdashRequest(
574
+ {
575
+ url: `/agent-sessions/${sessionId}/commits/${commitId}`,
576
+ method: "GET"
577
+ },
578
+ options
579
+ );
580
+ };
581
+ const applyAgentCandidateCommit = (sessionId, commitId, applyAgentCandidateRequest, options) => {
582
+ return qdashRequest(
583
+ {
584
+ url: `/agent-sessions/${sessionId}/commits/${commitId}/apply`,
585
+ method: "POST",
586
+ headers: { "Content-Type": "application/json" },
587
+ data: applyAgentCandidateRequest
588
+ },
589
+ options
590
+ );
591
+ };
592
+ const getAgentAction = (sessionId, actionId, options) => {
593
+ return qdashRequest(
594
+ {
595
+ url: `/agent-sessions/${sessionId}/actions/${actionId}`,
596
+ method: "GET"
597
+ },
598
+ options
599
+ );
600
+ };
601
+ const executeAgentAction = (sessionId, actionId, executeAgentActionRequest, options) => {
602
+ return qdashRequest(
603
+ {
604
+ url: `/agent-sessions/${sessionId}/actions/${actionId}/execute`,
605
+ method: "POST",
606
+ headers: { "Content-Type": "application/json" },
607
+ data: executeAgentActionRequest
608
+ },
609
+ options
610
+ );
611
+ };
612
+ const getCalibrationNote = (options) => {
613
+ return qdashRequest(
614
+ {
615
+ url: `/calibrations/note`,
616
+ method: "GET"
617
+ },
618
+ options
619
+ );
620
+ };
621
+ const importSeedParameters = (seedImportRequest, options) => {
622
+ return qdashRequest(
623
+ {
624
+ url: `/calibrations/seed-import`,
625
+ method: "POST",
626
+ headers: { "Content-Type": "application/json" },
627
+ data: seedImportRequest
628
+ },
629
+ options
630
+ );
631
+ };
632
+ const getAvailableSeedParameters = (chipId, options) => {
633
+ return qdashRequest(
634
+ {
635
+ url: `/calibrations/seed-parameters/${chipId}`,
636
+ method: "GET"
637
+ },
638
+ options
639
+ );
640
+ };
641
+ const compareSeedValues = (chipId, params, options) => {
642
+ return qdashRequest(
643
+ {
644
+ url: `/calibrations/seed-compare/${chipId}`,
645
+ method: "GET",
646
+ params
647
+ },
648
+ options
649
+ );
650
+ };
651
+ const updateCalibrationParameters = (manualParameterUpdateRequest, options) => {
652
+ return qdashRequest(
653
+ {
654
+ url: `/calibrations/parameters`,
655
+ method: "PATCH",
656
+ headers: { "Content-Type": "application/json" },
657
+ data: manualParameterUpdateRequest
658
+ },
659
+ options
660
+ );
661
+ };
662
+ const getManualEdits = (qid, options) => {
663
+ return qdashRequest(
664
+ {
665
+ url: `/calibrations/manual-edits/${qid}`,
666
+ method: "GET"
667
+ },
668
+ options
669
+ );
670
+ };
671
+ const getCopilotConfig = (options) => {
672
+ return qdashRequest(
673
+ {
674
+ url: `/copilot/config`,
675
+ method: "GET"
676
+ },
677
+ options
678
+ );
679
+ };
680
+ const analyzeCopilot = (analyzeRequest, options) => {
681
+ return qdashRequest(
682
+ {
683
+ url: `/copilot/analyze`,
684
+ method: "POST",
685
+ headers: { "Content-Type": "application/json" },
686
+ data: analyzeRequest
687
+ },
688
+ options
689
+ );
690
+ };
691
+ const listCopilotChatSessions = (options) => {
692
+ return qdashRequest(
693
+ {
694
+ url: `/copilot/chat/sessions`,
695
+ method: "GET"
696
+ },
697
+ options
698
+ );
699
+ };
700
+ const createCopilotChatSession = (createCopilotChatSessionRequest, options) => {
701
+ return qdashRequest(
702
+ {
703
+ url: `/copilot/chat/sessions`,
704
+ method: "POST",
705
+ headers: { "Content-Type": "application/json" },
706
+ data: createCopilotChatSessionRequest
707
+ },
708
+ options
709
+ );
710
+ };
711
+ const getCopilotChatSession = (sessionId, options) => {
712
+ return qdashRequest(
713
+ {
714
+ url: `/copilot/chat/sessions/${sessionId}`,
715
+ method: "GET"
716
+ },
717
+ options
718
+ );
719
+ };
720
+ const updateCopilotChatSession = (sessionId, updateCopilotChatSessionRequest, options) => {
721
+ return qdashRequest(
722
+ {
723
+ url: `/copilot/chat/sessions/${sessionId}`,
724
+ method: "PATCH",
725
+ headers: { "Content-Type": "application/json" },
726
+ data: updateCopilotChatSessionRequest
727
+ },
728
+ options
729
+ );
730
+ };
731
+ const deleteCopilotChatSession = (sessionId, options) => {
732
+ return qdashRequest(
733
+ {
734
+ url: `/copilot/chat/sessions/${sessionId}`,
735
+ method: "DELETE"
736
+ },
737
+ options
738
+ );
739
+ };
740
+ const getSettings = (options) => {
741
+ return qdashRequest(
742
+ {
743
+ url: `/settings`,
744
+ method: "GET"
745
+ },
746
+ options
747
+ );
748
+ };
749
+ const listChips = (options) => {
750
+ return qdashRequest(
751
+ {
752
+ url: `/chips`,
753
+ method: "GET"
754
+ },
755
+ options
756
+ );
757
+ };
758
+ const createChip = (createChipRequest, options) => {
759
+ return qdashRequest(
760
+ {
761
+ url: `/chips`,
762
+ method: "POST",
763
+ headers: { "Content-Type": "application/json" },
764
+ data: createChipRequest
765
+ },
766
+ options
767
+ );
768
+ };
769
+ const updateChip = (chipId, updateChipRequest, options) => {
770
+ return qdashRequest(
771
+ {
772
+ url: `/chips/${chipId}`,
773
+ method: "PATCH",
774
+ headers: { "Content-Type": "application/json" },
775
+ data: updateChipRequest
776
+ },
777
+ options
778
+ );
779
+ };
780
+ const deleteChip = (chipId, params, options) => {
781
+ return qdashRequest(
782
+ {
783
+ url: `/chips/${chipId}`,
784
+ method: "DELETE",
785
+ params
786
+ },
787
+ options
788
+ );
789
+ };
790
+ const getChip = (chipId, options) => {
791
+ return qdashRequest(
792
+ {
793
+ url: `/chips/${chipId}`,
794
+ method: "GET"
795
+ },
796
+ options
797
+ );
798
+ };
799
+ const getChipDeletionImpact = (chipId, options) => {
800
+ return qdashRequest(
801
+ {
802
+ url: `/chips/${chipId}/deletion-impact`,
803
+ method: "GET"
804
+ },
805
+ options
806
+ );
807
+ };
808
+ const getChipDates = (chipId, options) => {
809
+ return qdashRequest(
810
+ {
811
+ url: `/chips/${chipId}/dates`,
812
+ method: "GET"
813
+ },
814
+ options
815
+ );
816
+ };
817
+ const getChipMux = (chipId, muxId, options) => {
818
+ return qdashRequest(
819
+ {
820
+ url: `/chips/${chipId}/muxes/${muxId}`,
821
+ method: "GET"
822
+ },
823
+ options
824
+ );
825
+ };
826
+ const listChipMuxes = (chipId, options) => {
827
+ return qdashRequest(
828
+ {
829
+ url: `/chips/${chipId}/muxes`,
830
+ method: "GET"
831
+ },
832
+ options
833
+ );
834
+ };
835
+ const getChipNote = (chipId, params, options) => {
836
+ return qdashRequest(
837
+ {
838
+ url: `/chips/${chipId}/note`,
839
+ method: "GET",
840
+ params
841
+ },
842
+ options
843
+ );
844
+ };
845
+ const upsertChipNote = (chipId, noteUpsertRequest, params, options) => {
846
+ return qdashRequest(
847
+ {
848
+ url: `/chips/${chipId}/note`,
849
+ method: "PUT",
850
+ headers: { "Content-Type": "application/json" },
851
+ data: noteUpsertRequest,
852
+ params
853
+ },
854
+ options
855
+ );
856
+ };
857
+ const deleteChipNote = (chipId, params, options) => {
858
+ return qdashRequest(
859
+ {
860
+ url: `/chips/${chipId}/note`,
861
+ method: "DELETE",
862
+ params
863
+ },
864
+ options
865
+ );
866
+ };
867
+ const listChipQubits = (chipId, params, options) => {
868
+ return qdashRequest(
869
+ {
870
+ url: `/chips/${chipId}/qubits`,
871
+ method: "GET",
872
+ params
873
+ },
874
+ options
875
+ );
876
+ };
877
+ const getChipQubit = (chipId, qid, options) => {
878
+ return qdashRequest(
879
+ {
880
+ url: `/chips/${chipId}/qubits/${qid}`,
881
+ method: "GET"
882
+ },
883
+ options
884
+ );
885
+ };
886
+ const reanalyzeResonatorSpectroscopy = (chipId, qid, reanalyzeResonatorSpectroscopyRequest, options) => {
887
+ return qdashRequest(
888
+ {
889
+ url: `/chips/${chipId}/qubits/${qid}/reanalyze/resonator-spectroscopy`,
890
+ method: "POST",
891
+ headers: { "Content-Type": "application/json" },
892
+ data: reanalyzeResonatorSpectroscopyRequest
893
+ },
894
+ options
895
+ );
896
+ };
897
+ const reanalyzeQubitSpectroscopy = (chipId, qid, reanalyzeQubitSpectroscopyRequest, options) => {
898
+ return qdashRequest(
899
+ {
900
+ url: `/chips/${chipId}/qubits/${qid}/reanalyze/qubit-spectroscopy`,
901
+ method: "POST",
902
+ headers: { "Content-Type": "application/json" },
903
+ data: reanalyzeQubitSpectroscopyRequest
904
+ },
905
+ options
906
+ );
907
+ };
908
+ const listChipCouplings = (chipId, params, options) => {
909
+ return qdashRequest(
910
+ {
911
+ url: `/chips/${chipId}/couplings`,
912
+ method: "GET",
913
+ params
914
+ },
915
+ options
916
+ );
917
+ };
918
+ const getChipCoupling = (chipId, couplingId, options) => {
919
+ return qdashRequest(
920
+ {
921
+ url: `/chips/${chipId}/couplings/${couplingId}`,
922
+ method: "GET"
923
+ },
924
+ options
925
+ );
926
+ };
927
+ const getChipMetricsSummary = (chipId, options) => {
928
+ return qdashRequest(
929
+ {
930
+ url: `/chips/${chipId}/metrics/summary`,
931
+ method: "GET"
932
+ },
933
+ options
934
+ );
935
+ };
936
+ const getChipMetricHeatmap = (chipId, metric, options) => {
937
+ return qdashRequest(
938
+ {
939
+ url: `/chips/${chipId}/metrics/heatmap/${metric}`,
940
+ method: "GET"
941
+ },
942
+ options
943
+ );
944
+ };
945
+ const listTasks = (params, options) => {
946
+ return qdashRequest(
947
+ {
948
+ url: `/tasks`,
949
+ method: "GET",
950
+ params
951
+ },
952
+ options
953
+ );
954
+ };
955
+ const getTaskResult = (taskId, options) => {
956
+ return qdashRequest(
957
+ {
958
+ url: `/tasks/${taskId}/result`,
959
+ method: "GET"
960
+ },
961
+ options
962
+ );
963
+ };
964
+ const listTaskKnowledge = (options) => {
965
+ return qdashRequest(
966
+ {
967
+ url: `/task-knowledge`,
968
+ method: "GET"
969
+ },
970
+ options
971
+ );
972
+ };
973
+ const getTaskKnowledgeMarkdown = (taskName, options) => {
974
+ return qdashRequest(
975
+ {
976
+ url: `/tasks/${taskName}/knowledge/markdown`,
977
+ method: "GET"
978
+ },
979
+ options
980
+ );
981
+ };
982
+ const getTaskKnowledge = (taskName, params, options) => {
983
+ return qdashRequest(
984
+ {
985
+ url: `/tasks/${taskName}/knowledge`,
986
+ method: "GET",
987
+ params
988
+ },
989
+ options
990
+ );
991
+ };
992
+ const getTaskFileSettings = (options) => {
993
+ return qdashRequest(
994
+ {
995
+ url: `/task-files/settings`,
996
+ method: "GET"
997
+ },
998
+ options
999
+ );
1000
+ };
1001
+ const listTaskFileBackends = (options) => {
1002
+ return qdashRequest(
1003
+ {
1004
+ url: `/task-files/backends`,
1005
+ method: "GET"
1006
+ },
1007
+ options
1008
+ );
1009
+ };
1010
+ const getTaskFileTree = (params, options) => {
1011
+ return qdashRequest(
1012
+ {
1013
+ url: `/task-files/tree`,
1014
+ method: "GET",
1015
+ params
1016
+ },
1017
+ options
1018
+ );
1019
+ };
1020
+ const getTaskFileContent = (params, options) => {
1021
+ return qdashRequest(
1022
+ {
1023
+ url: `/task-files/content`,
1024
+ method: "GET",
1025
+ params
1026
+ },
1027
+ options
1028
+ );
1029
+ };
1030
+ const saveTaskFileContent = (saveTaskFileRequest, options) => {
1031
+ return qdashRequest(
1032
+ {
1033
+ url: `/task-files/content`,
1034
+ method: "PUT",
1035
+ headers: { "Content-Type": "application/json" },
1036
+ data: saveTaskFileRequest
1037
+ },
1038
+ options
1039
+ );
1040
+ };
1041
+ const getBackendConfig = (options) => {
1042
+ return qdashRequest(
1043
+ {
1044
+ url: `/task-files/backend-config`,
1045
+ method: "GET"
1046
+ },
1047
+ options
1048
+ );
1049
+ };
1050
+ const listTaskInfo = (params, options) => {
1051
+ return qdashRequest(
1052
+ {
1053
+ url: `/task-files/tasks`,
1054
+ method: "GET",
1055
+ params
1056
+ },
1057
+ options
1058
+ );
1059
+ };
1060
+ const listTaskResults = (params, options) => {
1061
+ return qdashRequest(
1062
+ {
1063
+ url: `/task-results`,
1064
+ method: "GET",
1065
+ params
1066
+ },
1067
+ options
1068
+ );
1069
+ };
1070
+ const getLatestQubitTaskResults = (params, options) => {
1071
+ return qdashRequest(
1072
+ {
1073
+ url: `/task-results/qubits/latest`,
1074
+ method: "GET",
1075
+ params
1076
+ },
1077
+ options
1078
+ );
1079
+ };
1080
+ const getHistoricalQubitTaskResults = (params, options) => {
1081
+ return qdashRequest(
1082
+ {
1083
+ url: `/task-results/qubits/history`,
1084
+ method: "GET",
1085
+ params
1086
+ },
1087
+ options
1088
+ );
1089
+ };
1090
+ const getQubitTaskHistory = (qid, params, options) => {
1091
+ return qdashRequest(
1092
+ {
1093
+ url: `/task-results/qubits/${qid}/history`,
1094
+ method: "GET",
1095
+ params
1096
+ },
1097
+ options
1098
+ );
1099
+ };
1100
+ const getLatestCouplingTaskResults = (params, options) => {
1101
+ return qdashRequest(
1102
+ {
1103
+ url: `/task-results/couplings/latest`,
1104
+ method: "GET",
1105
+ params
1106
+ },
1107
+ options
1108
+ );
1109
+ };
1110
+ const getHistoricalCouplingTaskResults = (params, options) => {
1111
+ return qdashRequest(
1112
+ {
1113
+ url: `/task-results/couplings/history`,
1114
+ method: "GET",
1115
+ params
1116
+ },
1117
+ options
1118
+ );
1119
+ };
1120
+ const getCouplingTaskHistory = (couplingId, params, options) => {
1121
+ return qdashRequest(
1122
+ {
1123
+ url: `/task-results/couplings/${couplingId}/history`,
1124
+ method: "GET",
1125
+ params
1126
+ },
1127
+ options
1128
+ );
1129
+ };
1130
+ const getTimeseriesTaskResults = (params, options) => {
1131
+ return qdashRequest(
1132
+ {
1133
+ url: `/task-results/timeseries`,
1134
+ method: "GET",
1135
+ params
1136
+ },
1137
+ options
1138
+ );
1139
+ };
1140
+ const listTaskResultAiReviewRuns = (params, options) => {
1141
+ return qdashRequest(
1142
+ {
1143
+ url: `/task-results/ai-review/runs`,
1144
+ method: "GET",
1145
+ params
1146
+ },
1147
+ options
1148
+ );
1149
+ };
1150
+ const getTaskResultAiReviewRun = (reviewRunId, options) => {
1151
+ return qdashRequest(
1152
+ {
1153
+ url: `/task-results/ai-review/runs/${reviewRunId}`,
1154
+ method: "GET"
1155
+ },
1156
+ options
1157
+ );
1158
+ };
1159
+ const listTaskResultAiReviews = (params, options) => {
1160
+ return qdashRequest(
1161
+ {
1162
+ url: `/task-results/ai-review`,
1163
+ method: "GET",
1164
+ params
1165
+ },
1166
+ options
1167
+ );
1168
+ };
1169
+ const requestBulkAiReview = (bulkAiReviewRequest, options) => {
1170
+ return qdashRequest(
1171
+ {
1172
+ url: `/task-results/ai-review/bulk`,
1173
+ method: "POST",
1174
+ headers: { "Content-Type": "application/json" },
1175
+ data: bulkAiReviewRequest
1176
+ },
1177
+ options
1178
+ );
1179
+ };
1180
+ const reExecuteTaskResult = (taskId, bodyReExecuteTaskResult, options) => {
1181
+ return qdashRequest(
1182
+ {
1183
+ url: `/task-results/${taskId}/re-execute`,
1184
+ method: "POST",
1185
+ headers: { "Content-Type": "application/json" },
1186
+ data: bodyReExecuteTaskResult
1187
+ },
1188
+ options
1189
+ );
1190
+ };
1191
+ const setTaskResultExcluded = (taskId, taskResultExcludeRequest, options) => {
1192
+ return qdashRequest(
1193
+ {
1194
+ url: `/task-results/${taskId}/exclude`,
1195
+ method: "POST",
1196
+ headers: { "Content-Type": "application/json" },
1197
+ data: taskResultExcludeRequest
1198
+ },
1199
+ options
1200
+ );
1201
+ };
1202
+ const downloadFiguresAsZip = (downloadFiguresAsZipRequest, options) => {
1203
+ return qdashRequest(
1204
+ {
1205
+ url: `/task-results/figures/download`,
1206
+ method: "POST",
1207
+ headers: { "Content-Type": "application/json" },
1208
+ data: downloadFiguresAsZipRequest
1209
+ },
1210
+ options
1211
+ );
1212
+ };
1213
+ const listForumCategories = (params, options) => {
1214
+ return qdashRequest(
1215
+ {
1216
+ url: `/forum/categories`,
1217
+ method: "GET",
1218
+ params
1219
+ },
1220
+ options
1221
+ );
1222
+ };
1223
+ const createForumCategory = (forumCategoryCreate, options) => {
1224
+ return qdashRequest(
1225
+ {
1226
+ url: `/forum/categories`,
1227
+ method: "POST",
1228
+ headers: { "Content-Type": "application/json" },
1229
+ data: forumCategoryCreate
1230
+ },
1231
+ options
1232
+ );
1233
+ };
1234
+ const updateForumCategory = (categoryKey, forumCategoryUpdate, options) => {
1235
+ return qdashRequest(
1236
+ {
1237
+ url: `/forum/categories/${categoryKey}`,
1238
+ method: "PATCH",
1239
+ headers: { "Content-Type": "application/json" },
1240
+ data: forumCategoryUpdate
1241
+ },
1242
+ options
1243
+ );
1244
+ };
1245
+ const deleteForumCategory = (categoryKey, options) => {
1246
+ return qdashRequest(
1247
+ {
1248
+ url: `/forum/categories/${categoryKey}`,
1249
+ method: "DELETE"
1250
+ },
1251
+ options
1252
+ );
1253
+ };
1254
+ const listForumPosts = (params, options) => {
1255
+ return qdashRequest(
1256
+ {
1257
+ url: `/forum/posts`,
1258
+ method: "GET",
1259
+ params
1260
+ },
1261
+ options
1262
+ );
1263
+ };
1264
+ const createForumPost = (forumPostCreate, options) => {
1265
+ return qdashRequest(
1266
+ {
1267
+ url: `/forum/posts`,
1268
+ method: "POST",
1269
+ headers: { "Content-Type": "application/json" },
1270
+ data: forumPostCreate
1271
+ },
1272
+ options
1273
+ );
1274
+ };
1275
+ const getForumPost = (postId, options) => {
1276
+ return qdashRequest(
1277
+ {
1278
+ url: `/forum/posts/${postId}`,
1279
+ method: "GET"
1280
+ },
1281
+ options
1282
+ );
1283
+ };
1284
+ const updateForumPost = (postId, forumPostUpdate, options) => {
1285
+ return qdashRequest(
1286
+ {
1287
+ url: `/forum/posts/${postId}`,
1288
+ method: "PATCH",
1289
+ headers: { "Content-Type": "application/json" },
1290
+ data: forumPostUpdate
1291
+ },
1292
+ options
1293
+ );
1294
+ };
1295
+ const deleteForumPost = (postId, options) => {
1296
+ return qdashRequest(
1297
+ {
1298
+ url: `/forum/posts/${postId}`,
1299
+ method: "DELETE"
1300
+ },
1301
+ options
1302
+ );
1303
+ };
1304
+ const getForumPostReplies = (postId, params, options) => {
1305
+ return qdashRequest(
1306
+ {
1307
+ url: `/forum/posts/${postId}/replies`,
1308
+ method: "GET",
1309
+ params
1310
+ },
1311
+ options
1312
+ );
1313
+ };
1314
+ const closeForumPost = (postId, options) => {
1315
+ return qdashRequest(
1316
+ {
1317
+ url: `/forum/posts/${postId}/close`,
1318
+ method: "PATCH"
1319
+ },
1320
+ options
1321
+ );
1322
+ };
1323
+ const reopenForumPost = (postId, options) => {
1324
+ return qdashRequest(
1325
+ {
1326
+ url: `/forum/posts/${postId}/reopen`,
1327
+ method: "PATCH"
1328
+ },
1329
+ options
1330
+ );
1331
+ };
1332
+ const listIssues = (params, options) => {
1333
+ return qdashRequest(
1334
+ {
1335
+ url: `/issues`,
1336
+ method: "GET",
1337
+ params
1338
+ },
1339
+ options
1340
+ );
1341
+ };
1342
+ const getIssue = (issueId, options) => {
1343
+ return qdashRequest(
1344
+ {
1345
+ url: `/issues/${issueId}`,
1346
+ method: "GET"
1347
+ },
1348
+ options
1349
+ );
1350
+ };
1351
+ const deleteIssue = (issueId, options) => {
1352
+ return qdashRequest(
1353
+ {
1354
+ url: `/issues/${issueId}`,
1355
+ method: "DELETE"
1356
+ },
1357
+ options
1358
+ );
1359
+ };
1360
+ const updateIssue = (issueId, issueUpdate, options) => {
1361
+ return qdashRequest(
1362
+ {
1363
+ url: `/issues/${issueId}`,
1364
+ method: "PATCH",
1365
+ headers: { "Content-Type": "application/json" },
1366
+ data: issueUpdate
1367
+ },
1368
+ options
1369
+ );
1370
+ };
1371
+ const getIssueReplies = (issueId, options) => {
1372
+ return qdashRequest(
1373
+ {
1374
+ url: `/issues/${issueId}/replies`,
1375
+ method: "GET"
1376
+ },
1377
+ options
1378
+ );
1379
+ };
1380
+ const closeIssue = (issueId, options) => {
1381
+ return qdashRequest(
1382
+ {
1383
+ url: `/issues/${issueId}/close`,
1384
+ method: "PATCH"
1385
+ },
1386
+ options
1387
+ );
1388
+ };
1389
+ const reopenIssue = (issueId, options) => {
1390
+ return qdashRequest(
1391
+ {
1392
+ url: `/issues/${issueId}/reopen`,
1393
+ method: "PATCH"
1394
+ },
1395
+ options
1396
+ );
1397
+ };
1398
+ const getTaskResultIssues = (taskId, options) => {
1399
+ return qdashRequest(
1400
+ {
1401
+ url: `/task-results/${taskId}/issues`,
1402
+ method: "GET"
1403
+ },
1404
+ options
1405
+ );
1406
+ };
1407
+ const createIssue = (taskId, issueCreate, options) => {
1408
+ return qdashRequest(
1409
+ {
1410
+ url: `/task-results/${taskId}/issues`,
1411
+ method: "POST",
1412
+ headers: { "Content-Type": "application/json" },
1413
+ data: issueCreate
1414
+ },
1415
+ options
1416
+ );
1417
+ };
1418
+ const listIssueKnowledge = (params, options) => {
1419
+ return qdashRequest(
1420
+ {
1421
+ url: `/issue-knowledge`,
1422
+ method: "GET",
1423
+ params
1424
+ },
1425
+ options
1426
+ );
1427
+ };
1428
+ const getIssueKnowledge = (knowledgeId, options) => {
1429
+ return qdashRequest(
1430
+ {
1431
+ url: `/issue-knowledge/${knowledgeId}`,
1432
+ method: "GET"
1433
+ },
1434
+ options
1435
+ );
1436
+ };
1437
+ const updateIssueKnowledge = (knowledgeId, issueKnowledgeUpdate, options) => {
1438
+ return qdashRequest(
1439
+ {
1440
+ url: `/issue-knowledge/${knowledgeId}`,
1441
+ method: "PATCH",
1442
+ headers: { "Content-Type": "application/json" },
1443
+ data: issueKnowledgeUpdate
1444
+ },
1445
+ options
1446
+ );
1447
+ };
1448
+ const deleteIssueKnowledge = (knowledgeId, options) => {
1449
+ return qdashRequest(
1450
+ {
1451
+ url: `/issue-knowledge/${knowledgeId}`,
1452
+ method: "DELETE"
1453
+ },
1454
+ options
1455
+ );
1456
+ };
1457
+ const extractIssueKnowledge = (issueId, options) => {
1458
+ return qdashRequest(
1459
+ {
1460
+ url: `/issues/${issueId}/extract-knowledge`,
1461
+ method: "POST"
1462
+ },
1463
+ options
1464
+ );
1465
+ };
1466
+ const approveIssueKnowledge = (knowledgeId, options) => {
1467
+ return qdashRequest(
1468
+ {
1469
+ url: `/issue-knowledge/${knowledgeId}/approve`,
1470
+ method: "PATCH"
1471
+ },
1472
+ options
1473
+ );
1474
+ };
1475
+ const rejectIssueKnowledge = (knowledgeId, options) => {
1476
+ return qdashRequest(
1477
+ {
1478
+ url: `/issue-knowledge/${knowledgeId}/reject`,
1479
+ method: "PATCH"
1480
+ },
1481
+ options
1482
+ );
1483
+ };
1484
+ const listTags = (options) => {
1485
+ return qdashRequest(
1486
+ {
1487
+ url: `/tags`,
1488
+ method: "GET"
1489
+ },
1490
+ options
1491
+ );
1492
+ };
1493
+ const getDeviceTopology = (deviceTopologyRequest, options) => {
1494
+ return qdashRequest(
1495
+ {
1496
+ url: `/device-topology`,
1497
+ method: "POST",
1498
+ headers: { "Content-Type": "application/json" },
1499
+ data: deviceTopologyRequest
1500
+ },
1501
+ options
1502
+ );
1503
+ };
1504
+ const getDeviceTopologyPlot = (device, options) => {
1505
+ return qdashRequest(
1506
+ {
1507
+ url: `/device-topology/plot`,
1508
+ method: "POST",
1509
+ headers: { "Content-Type": "application/json" },
1510
+ data: device
1511
+ },
1512
+ options
1513
+ );
1514
+ };
1515
+ const listBackends = (options) => {
1516
+ return qdashRequest(
1517
+ {
1518
+ url: `/backends`,
1519
+ method: "GET"
1520
+ },
1521
+ options
1522
+ );
1523
+ };
1524
+ const saveFlow = (saveFlowRequest, options) => {
1525
+ return qdashRequest(
1526
+ {
1527
+ url: `/flows`,
1528
+ method: "POST",
1529
+ headers: { "Content-Type": "application/json" },
1530
+ data: saveFlowRequest
1531
+ },
1532
+ options
1533
+ );
1534
+ };
1535
+ const listFlows = (options) => {
1536
+ return qdashRequest(
1537
+ {
1538
+ url: `/flows`,
1539
+ method: "GET"
1540
+ },
1541
+ options
1542
+ );
1543
+ };
1544
+ const listFlowTemplates = (options) => {
1545
+ return qdashRequest(
1546
+ {
1547
+ url: `/flows/templates`,
1548
+ method: "GET"
1549
+ },
1550
+ options
1551
+ );
1552
+ };
1553
+ const getFlowTemplate = (templateId, options) => {
1554
+ return qdashRequest(
1555
+ {
1556
+ url: `/flows/templates/${templateId}`,
1557
+ method: "GET"
1558
+ },
1559
+ options
1560
+ );
1561
+ };
1562
+ const listFlowHelperFiles = (options) => {
1563
+ return qdashRequest(
1564
+ {
1565
+ url: `/flows/helpers`,
1566
+ method: "GET"
1567
+ },
1568
+ options
1569
+ );
1570
+ };
1571
+ const getFlowHelperFile = (filename, options) => {
1572
+ return qdashRequest(
1573
+ {
1574
+ url: `/flows/helpers/${filename}`,
1575
+ method: "GET"
1576
+ },
1577
+ options
1578
+ );
1579
+ };
1580
+ const listAllFlowSchedules = (params, options) => {
1581
+ return qdashRequest(
1582
+ {
1583
+ url: `/flows/schedules`,
1584
+ method: "GET",
1585
+ params
1586
+ },
1587
+ options
1588
+ );
1589
+ };
1590
+ const deleteFlowSchedule = (scheduleId, options) => {
1591
+ return qdashRequest(
1592
+ {
1593
+ url: `/flows/schedules/${scheduleId}`,
1594
+ method: "DELETE"
1595
+ },
1596
+ options
1597
+ );
1598
+ };
1599
+ const updateFlowSchedule = (scheduleId, updateScheduleRequest, options) => {
1600
+ return qdashRequest(
1601
+ {
1602
+ url: `/flows/schedules/${scheduleId}`,
1603
+ method: "PATCH",
1604
+ headers: { "Content-Type": "application/json" },
1605
+ data: updateScheduleRequest
1606
+ },
1607
+ options
1608
+ );
1609
+ };
1610
+ const getFlow = (name, options) => {
1611
+ return qdashRequest(
1612
+ {
1613
+ url: `/flows/${name}`,
1614
+ method: "GET"
1615
+ },
1616
+ options
1617
+ );
1618
+ };
1619
+ const deleteFlow = (name, options) => {
1620
+ return qdashRequest(
1621
+ {
1622
+ url: `/flows/${name}`,
1623
+ method: "DELETE"
1624
+ },
1625
+ options
1626
+ );
1627
+ };
1628
+ const executeFlow = (name, executeFlowRequest, options) => {
1629
+ return qdashRequest(
1630
+ {
1631
+ url: `/flows/${name}/execute`,
1632
+ method: "POST",
1633
+ headers: { "Content-Type": "application/json" },
1634
+ data: executeFlowRequest
1635
+ },
1636
+ options
1637
+ );
1638
+ };
1639
+ const runCodexFlowAgent = (name, runCodexAgentRequest, options) => {
1640
+ return qdashRequest(
1641
+ {
1642
+ url: `/flows/${name}/agent/codex`,
1643
+ method: "POST",
1644
+ headers: { "Content-Type": "application/json" },
1645
+ data: runCodexAgentRequest
1646
+ },
1647
+ options
1648
+ );
1649
+ };
1650
+ const scheduleFlow = (name, scheduleFlowRequest, options) => {
1651
+ return qdashRequest(
1652
+ {
1653
+ url: `/flows/${name}/schedule`,
1654
+ method: "POST",
1655
+ headers: { "Content-Type": "application/json" },
1656
+ data: scheduleFlowRequest
1657
+ },
1658
+ options
1659
+ );
1660
+ };
1661
+ const listFlowSchedules = (name, params, options) => {
1662
+ return qdashRequest(
1663
+ {
1664
+ url: `/flows/${name}/schedules`,
1665
+ method: "GET",
1666
+ params
1667
+ },
1668
+ options
1669
+ );
1670
+ };
1671
+ const getMetricsConfig = (options) => {
1672
+ return qdashRequest(
1673
+ {
1674
+ url: `/metrics/config`,
1675
+ method: "GET"
1676
+ },
1677
+ options
1678
+ );
1679
+ };
1680
+ const getChipMetrics = (chipId, params, options) => {
1681
+ return qdashRequest(
1682
+ {
1683
+ url: `/metrics/chips/${chipId}/metrics`,
1684
+ method: "GET",
1685
+ params
1686
+ },
1687
+ options
1688
+ );
1689
+ };
1690
+ const getQubitMetricHistory = (chipId, qid, params, options) => {
1691
+ return qdashRequest(
1692
+ {
1693
+ url: `/metrics/chips/${chipId}/qubits/${qid}/history`,
1694
+ method: "GET",
1695
+ params
1696
+ },
1697
+ options
1698
+ );
1699
+ };
1700
+ const getCouplingMetricHistory = (chipId, couplingId, params, options) => {
1701
+ return qdashRequest(
1702
+ {
1703
+ url: `/metrics/chips/${chipId}/couplings/${couplingId}/history`,
1704
+ method: "GET",
1705
+ params
1706
+ },
1707
+ options
1708
+ );
1709
+ };
1710
+ const downloadMetricsPdf = (chipId, params, options) => {
1711
+ return qdashRequest(
1712
+ {
1713
+ url: `/metrics/chips/${chipId}/metrics/pdf`,
1714
+ method: "POST",
1715
+ params
1716
+ },
1717
+ options
1718
+ );
1719
+ };
1720
+ const upsertQubitNote = (chipId, qid, noteUpsertRequest, params, options) => {
1721
+ return qdashRequest(
1722
+ {
1723
+ url: `/chips/${chipId}/qubits/${qid}/note`,
1724
+ method: "PUT",
1725
+ headers: { "Content-Type": "application/json" },
1726
+ data: noteUpsertRequest,
1727
+ params
1728
+ },
1729
+ options
1730
+ );
1731
+ };
1732
+ const deleteQubitNote = (chipId, qid, params, options) => {
1733
+ return qdashRequest(
1734
+ {
1735
+ url: `/chips/${chipId}/qubits/${qid}/note`,
1736
+ method: "DELETE",
1737
+ params
1738
+ },
1739
+ options
1740
+ );
1741
+ };
1742
+ const createQubitNoteComment = (chipId, qid, noteCommentRequest, params, options) => {
1743
+ return qdashRequest(
1744
+ {
1745
+ url: `/chips/${chipId}/qubits/${qid}/note/comments`,
1746
+ method: "POST",
1747
+ headers: { "Content-Type": "application/json" },
1748
+ data: noteCommentRequest,
1749
+ params
1750
+ },
1751
+ options
1752
+ );
1753
+ };
1754
+ const updateQubitNoteComment = (chipId, qid, commentId, noteCommentRequest, params, options) => {
1755
+ return qdashRequest(
1756
+ {
1757
+ url: `/chips/${chipId}/qubits/${qid}/note/comments/${commentId}`,
1758
+ method: "PUT",
1759
+ headers: { "Content-Type": "application/json" },
1760
+ data: noteCommentRequest,
1761
+ params
1762
+ },
1763
+ options
1764
+ );
1765
+ };
1766
+ const deleteQubitNoteComment = (chipId, qid, commentId, params, options) => {
1767
+ return qdashRequest(
1768
+ {
1769
+ url: `/chips/${chipId}/qubits/${qid}/note/comments/${commentId}`,
1770
+ method: "DELETE",
1771
+ params
1772
+ },
1773
+ options
1774
+ );
1775
+ };
1776
+ const upsertQubitMetricNote = (chipId, qid, metricKey, noteUpsertRequest, params, options) => {
1777
+ return qdashRequest(
1778
+ {
1779
+ url: `/chips/${chipId}/qubits/${qid}/metric-notes/${metricKey}`,
1780
+ method: "PUT",
1781
+ headers: { "Content-Type": "application/json" },
1782
+ data: noteUpsertRequest,
1783
+ params
1784
+ },
1785
+ options
1786
+ );
1787
+ };
1788
+ const deleteQubitMetricNote = (chipId, qid, metricKey, params, options) => {
1789
+ return qdashRequest(
1790
+ {
1791
+ url: `/chips/${chipId}/qubits/${qid}/metric-notes/${metricKey}`,
1792
+ method: "DELETE",
1793
+ params
1794
+ },
1795
+ options
1796
+ );
1797
+ };
1798
+ const upsertCouplingNote = (chipId, couplingId, noteUpsertRequest, params, options) => {
1799
+ return qdashRequest(
1800
+ {
1801
+ url: `/chips/${chipId}/couplings/${couplingId}/note`,
1802
+ method: "PUT",
1803
+ headers: { "Content-Type": "application/json" },
1804
+ data: noteUpsertRequest,
1805
+ params
1806
+ },
1807
+ options
1808
+ );
1809
+ };
1810
+ const deleteCouplingNote = (chipId, couplingId, params, options) => {
1811
+ return qdashRequest(
1812
+ {
1813
+ url: `/chips/${chipId}/couplings/${couplingId}/note`,
1814
+ method: "DELETE",
1815
+ params
1816
+ },
1817
+ options
1818
+ );
1819
+ };
1820
+ const createCouplingNoteComment = (chipId, couplingId, noteCommentRequest, params, options) => {
1821
+ return qdashRequest(
1822
+ {
1823
+ url: `/chips/${chipId}/couplings/${couplingId}/note/comments`,
1824
+ method: "POST",
1825
+ headers: { "Content-Type": "application/json" },
1826
+ data: noteCommentRequest,
1827
+ params
1828
+ },
1829
+ options
1830
+ );
1831
+ };
1832
+ const updateCouplingNoteComment = (chipId, couplingId, commentId, noteCommentRequest, params, options) => {
1833
+ return qdashRequest(
1834
+ {
1835
+ url: `/chips/${chipId}/couplings/${couplingId}/note/comments/${commentId}`,
1836
+ method: "PUT",
1837
+ headers: { "Content-Type": "application/json" },
1838
+ data: noteCommentRequest,
1839
+ params
1840
+ },
1841
+ options
1842
+ );
1843
+ };
1844
+ const deleteCouplingNoteComment = (chipId, couplingId, commentId, params, options) => {
1845
+ return qdashRequest(
1846
+ {
1847
+ url: `/chips/${chipId}/couplings/${couplingId}/note/comments/${commentId}`,
1848
+ method: "DELETE",
1849
+ params
1850
+ },
1851
+ options
1852
+ );
1853
+ };
1854
+ const upsertCouplingMetricNote = (chipId, couplingId, metricKey, noteUpsertRequest, params, options) => {
1855
+ return qdashRequest(
1856
+ {
1857
+ url: `/chips/${chipId}/couplings/${couplingId}/metric-notes/${metricKey}`,
1858
+ method: "PUT",
1859
+ headers: { "Content-Type": "application/json" },
1860
+ data: noteUpsertRequest,
1861
+ params
1862
+ },
1863
+ options
1864
+ );
1865
+ };
1866
+ const deleteCouplingMetricNote = (chipId, couplingId, metricKey, params, options) => {
1867
+ return qdashRequest(
1868
+ {
1869
+ url: `/chips/${chipId}/couplings/${couplingId}/metric-notes/${metricKey}`,
1870
+ method: "DELETE",
1871
+ params
1872
+ },
1873
+ options
1874
+ );
1875
+ };
1876
+ const getTaskNote = (taskId, options) => {
1877
+ return qdashRequest(
1878
+ {
1879
+ url: `/task-results/${taskId}/note`,
1880
+ method: "GET"
1881
+ },
1882
+ options
1883
+ );
1884
+ };
1885
+ const upsertTaskNote = (taskId, noteUpsertRequest, options) => {
1886
+ return qdashRequest(
1887
+ {
1888
+ url: `/task-results/${taskId}/note`,
1889
+ method: "PUT",
1890
+ headers: { "Content-Type": "application/json" },
1891
+ data: noteUpsertRequest
1892
+ },
1893
+ options
1894
+ );
1895
+ };
1896
+ const deleteTaskNote = (taskId, options) => {
1897
+ return qdashRequest(
1898
+ {
1899
+ url: `/task-results/${taskId}/note`,
1900
+ method: "DELETE"
1901
+ },
1902
+ options
1903
+ );
1904
+ };
1905
+ const getChipNotesSummary = (chipId, params, options) => {
1906
+ return qdashRequest(
1907
+ {
1908
+ url: `/chips/${chipId}/notes-summary`,
1909
+ method: "GET",
1910
+ params
1911
+ },
1912
+ options
1913
+ );
1914
+ };
1915
+ const listChipNoteEvents = (chipId, params, options) => {
1916
+ return qdashRequest(
1917
+ {
1918
+ url: `/chips/${chipId}/note-events`,
1919
+ method: "GET",
1920
+ params
1921
+ },
1922
+ options
1923
+ );
1924
+ };
1925
+ const listTargetNoteEvents = (params, options) => {
1926
+ return qdashRequest(
1927
+ {
1928
+ url: `/note-events/by-target`,
1929
+ method: "GET",
1930
+ params
1931
+ },
1932
+ options
1933
+ );
1934
+ };
1935
+ const searchNoteEvents = (params, options) => {
1936
+ return qdashRequest(
1937
+ {
1938
+ url: `/note-events/search`,
1939
+ method: "GET",
1940
+ params
1941
+ },
1942
+ options
1943
+ );
1944
+ };
1945
+ const listNotifications = (params, options) => {
1946
+ return qdashRequest(
1947
+ {
1948
+ url: `/notifications`,
1949
+ method: "GET",
1950
+ params
1951
+ },
1952
+ options
1953
+ );
1954
+ };
1955
+ const getUnreadNotificationCount = (options) => {
1956
+ return qdashRequest(
1957
+ {
1958
+ url: `/notifications/unread-count`,
1959
+ method: "GET"
1960
+ },
1961
+ options
1962
+ );
1963
+ };
1964
+ const markNotificationRead = (notificationId, options) => {
1965
+ return qdashRequest(
1966
+ {
1967
+ url: `/notifications/${notificationId}/read`,
1968
+ method: "PATCH"
1969
+ },
1970
+ options
1971
+ );
1972
+ };
1973
+ const markAllNotificationsRead = (options) => {
1974
+ return qdashRequest(
1975
+ {
1976
+ url: `/notifications/read-all`,
1977
+ method: "PATCH"
1978
+ },
1979
+ options
1980
+ );
1981
+ };
1982
+ const listCryostats = (options) => {
1983
+ return qdashRequest(
1984
+ {
1985
+ url: `/cryostats`,
1986
+ method: "GET"
1987
+ },
1988
+ options
1989
+ );
1990
+ };
1991
+ const createCryostat = (cryostatCreateRequest, options) => {
1992
+ return qdashRequest(
1993
+ {
1994
+ url: `/cryostats`,
1995
+ method: "POST",
1996
+ headers: { "Content-Type": "application/json" },
1997
+ data: cryostatCreateRequest
1998
+ },
1999
+ options
2000
+ );
2001
+ };
2002
+ const getCryostat = (cryoId, options) => {
2003
+ return qdashRequest(
2004
+ {
2005
+ url: `/cryostats/${cryoId}`,
2006
+ method: "GET"
2007
+ },
2008
+ options
2009
+ );
2010
+ };
2011
+ const updateCryostat = (cryoId, cryostatUpdateRequest, options) => {
2012
+ return qdashRequest(
2013
+ {
2014
+ url: `/cryostats/${cryoId}`,
2015
+ method: "PATCH",
2016
+ headers: { "Content-Type": "application/json" },
2017
+ data: cryostatUpdateRequest
2018
+ },
2019
+ options
2020
+ );
2021
+ };
2022
+ const deleteCryostat = (cryoId, options) => {
2023
+ return qdashRequest(
2024
+ {
2025
+ url: `/cryostats/${cryoId}`,
2026
+ method: "DELETE"
2027
+ },
2028
+ options
2029
+ );
2030
+ };
2031
+ const listCooldowns = (params, options) => {
2032
+ return qdashRequest(
2033
+ {
2034
+ url: `/cooldowns`,
2035
+ method: "GET",
2036
+ params
2037
+ },
2038
+ options
2039
+ );
2040
+ };
2041
+ const createCooldown = (cooldownCreateRequest, options) => {
2042
+ return qdashRequest(
2043
+ {
2044
+ url: `/cooldowns`,
2045
+ method: "POST",
2046
+ headers: { "Content-Type": "application/json" },
2047
+ data: cooldownCreateRequest
2048
+ },
2049
+ options
2050
+ );
2051
+ };
2052
+ const getCooldown = (cooldownId, options) => {
2053
+ return qdashRequest(
2054
+ {
2055
+ url: `/cooldowns/${cooldownId}`,
2056
+ method: "GET"
2057
+ },
2058
+ options
2059
+ );
2060
+ };
2061
+ const updateCooldown = (cooldownId, cooldownUpdateRequest, options) => {
2062
+ return qdashRequest(
2063
+ {
2064
+ url: `/cooldowns/${cooldownId}`,
2065
+ method: "PATCH",
2066
+ headers: { "Content-Type": "application/json" },
2067
+ data: cooldownUpdateRequest
2068
+ },
2069
+ options
2070
+ );
2071
+ };
2072
+ const deleteCooldown = (cooldownId, options) => {
2073
+ return qdashRequest(
2074
+ {
2075
+ url: `/cooldowns/${cooldownId}`,
2076
+ method: "DELETE"
2077
+ },
2078
+ options
2079
+ );
2080
+ };
2081
+ const assignChipToCooldown = (cooldownId, chipId, options) => {
2082
+ return qdashRequest(
2083
+ {
2084
+ url: `/cooldowns/${cooldownId}/chips/${chipId}`,
2085
+ method: "POST"
2086
+ },
2087
+ options
2088
+ );
2089
+ };
2090
+ const unassignChipFromCooldown = (cooldownId, chipId, options) => {
2091
+ return qdashRequest(
2092
+ {
2093
+ url: `/cooldowns/${cooldownId}/chips/${chipId}`,
2094
+ method: "DELETE"
2095
+ },
2096
+ options
2097
+ );
2098
+ };
2099
+ const createCooldownWiringCheckpoint = (cooldownId, cooldownWiringCheckpointRequest, options) => {
2100
+ return qdashRequest(
2101
+ {
2102
+ url: `/cooldowns/${cooldownId}/wiring-checkpoint`,
2103
+ method: "POST",
2104
+ headers: { "Content-Type": "application/json" },
2105
+ data: cooldownWiringCheckpointRequest
2106
+ },
2107
+ options
2108
+ );
2109
+ };
2110
+ const listCooldownWiringEvents = (cooldownId, params, options) => {
2111
+ return qdashRequest(
2112
+ {
2113
+ url: `/cooldowns/${cooldownId}/wiring-events`,
2114
+ method: "GET",
2115
+ params
2116
+ },
2117
+ options
2118
+ );
2119
+ };
2120
+ const listTopologies = (params, options) => {
2121
+ return qdashRequest(
2122
+ {
2123
+ url: `/topology/list`,
2124
+ method: "GET",
2125
+ params
2126
+ },
2127
+ options
2128
+ );
2129
+ };
2130
+ const getTopologyById = (topologyId, options) => {
2131
+ return qdashRequest(
2132
+ {
2133
+ url: `/topology/${topologyId}`,
2134
+ method: "GET"
2135
+ },
2136
+ options
2137
+ );
2138
+ };
2139
+ const getConfigAll = (options) => {
2140
+ return qdashRequest(
2141
+ {
2142
+ url: `/config/all`,
2143
+ method: "GET"
2144
+ },
2145
+ options
2146
+ );
2147
+ };
2148
+ const getDashboardAiInsights = (chipId, params, options) => {
2149
+ return qdashRequest(
2150
+ {
2151
+ url: `/dashboard/chips/${chipId}/ai-insights`,
2152
+ method: "GET",
2153
+ params
2154
+ },
2155
+ options
2156
+ );
2157
+ };
2158
+ const getProvenanceEntity = (entityId, options) => {
2159
+ return qdashRequest(
2160
+ {
2161
+ url: `/provenance/entities/${entityId}`,
2162
+ method: "GET"
2163
+ },
2164
+ options
2165
+ );
2166
+ };
2167
+ const getProvenanceLineage = (entityId, params, options) => {
2168
+ return qdashRequest(
2169
+ {
2170
+ url: `/provenance/lineage/${entityId}`,
2171
+ method: "GET",
2172
+ params
2173
+ },
2174
+ options
2175
+ );
2176
+ };
2177
+ const getProvenanceImpact = (entityId, params, options) => {
2178
+ return qdashRequest(
2179
+ {
2180
+ url: `/provenance/impact/${entityId}`,
2181
+ method: "GET",
2182
+ params
2183
+ },
2184
+ options
2185
+ );
2186
+ };
2187
+ const compareExecutions = (params, options) => {
2188
+ return qdashRequest(
2189
+ {
2190
+ url: `/provenance/compare`,
2191
+ method: "GET",
2192
+ params
2193
+ },
2194
+ options
2195
+ );
2196
+ };
2197
+ const getParameterHistory = (params, options) => {
2198
+ return qdashRequest(
2199
+ {
2200
+ url: `/provenance/history`,
2201
+ method: "GET",
2202
+ params
2203
+ },
2204
+ options
2205
+ );
2206
+ };
2207
+ const getProvenanceStats = (options) => {
2208
+ return qdashRequest(
2209
+ {
2210
+ url: `/provenance/stats`,
2211
+ method: "GET"
2212
+ },
2213
+ options
2214
+ );
2215
+ };
2216
+ const getRecentExecutions = (params, options) => {
2217
+ return qdashRequest(
2218
+ {
2219
+ url: `/provenance/executions`,
2220
+ method: "GET",
2221
+ params
2222
+ },
2223
+ options
2224
+ );
2225
+ };
2226
+ const getRecentChanges = (params, options) => {
2227
+ return qdashRequest(
2228
+ {
2229
+ url: `/provenance/changes`,
2230
+ method: "GET",
2231
+ params
2232
+ },
2233
+ options
2234
+ );
2235
+ };
2236
+ const getDegradationTrends = (params, options) => {
2237
+ return qdashRequest(
2238
+ {
2239
+ url: `/provenance/degradation-trends`,
2240
+ method: "GET",
2241
+ params
2242
+ },
2243
+ options
2244
+ );
2245
+ };
2246
+ const getRecalibrationRecommendations = (entityId, params, options) => {
2247
+ return qdashRequest(
2248
+ {
2249
+ url: `/provenance/recommendations/${entityId}`,
2250
+ method: "GET",
2251
+ params
2252
+ },
2253
+ options
2254
+ );
2255
+ };
2256
+ return { login, registerUser, getCurrentUser, updateCurrentUserProfile, logout, changePassword, resetPassword, reloadConfigCaches, listAllUsers, getUserDetails, updateUserSettings, deleteUser, bulkImportUsers, listAllProjects, adminDeleteProject, listProjectMembersAdmin, addProjectMemberAdmin, removeProjectMemberAdmin, createProjectForUser, listProjects, createProject, getProject, updateProject, deleteProject, listProjectMembers, inviteProjectMember, updateProjectMember, removeProjectMember, transferProjectOwnership, getFigureByPath, getExecutionLockStatus, listExecutions, getExecution, cancelExecution, reExecuteFromSnapshot, downloadFile, downloadZipFile, getFileTree, getFileContent, saveFileContent, validateFileContent, getGitStatus, gitPullConfig, gitPushConfig, createAgentSession, getAgentSession, evaluateAgentCandidateGate, submitAgentAction, listAgentActions, listAgentActionCandidates, commitAgentActionCandidate, commitAgentCampaignCandidates, getAgentCampaignCommit, getAgentCandidateCommit, applyAgentCandidateCommit, getAgentAction, executeAgentAction, getCalibrationNote, importSeedParameters, getAvailableSeedParameters, compareSeedValues, updateCalibrationParameters, getManualEdits, getCopilotConfig, analyzeCopilot, listCopilotChatSessions, createCopilotChatSession, getCopilotChatSession, updateCopilotChatSession, deleteCopilotChatSession, getSettings, listChips, createChip, updateChip, deleteChip, getChip, getChipDeletionImpact, getChipDates, getChipMux, listChipMuxes, getChipNote, upsertChipNote, deleteChipNote, listChipQubits, getChipQubit, reanalyzeResonatorSpectroscopy, reanalyzeQubitSpectroscopy, listChipCouplings, getChipCoupling, getChipMetricsSummary, getChipMetricHeatmap, listTasks, getTaskResult, listTaskKnowledge, getTaskKnowledgeMarkdown, getTaskKnowledge, getTaskFileSettings, listTaskFileBackends, getTaskFileTree, getTaskFileContent, saveTaskFileContent, getBackendConfig, listTaskInfo, listTaskResults, getLatestQubitTaskResults, getHistoricalQubitTaskResults, getQubitTaskHistory, getLatestCouplingTaskResults, getHistoricalCouplingTaskResults, getCouplingTaskHistory, getTimeseriesTaskResults, listTaskResultAiReviewRuns, getTaskResultAiReviewRun, listTaskResultAiReviews, requestBulkAiReview, reExecuteTaskResult, setTaskResultExcluded, downloadFiguresAsZip, listForumCategories, createForumCategory, updateForumCategory, deleteForumCategory, listForumPosts, createForumPost, getForumPost, updateForumPost, deleteForumPost, getForumPostReplies, closeForumPost, reopenForumPost, listIssues, getIssue, deleteIssue, updateIssue, getIssueReplies, closeIssue, reopenIssue, getTaskResultIssues, createIssue, listIssueKnowledge, getIssueKnowledge, updateIssueKnowledge, deleteIssueKnowledge, extractIssueKnowledge, approveIssueKnowledge, rejectIssueKnowledge, listTags, getDeviceTopology, getDeviceTopologyPlot, listBackends, saveFlow, listFlows, listFlowTemplates, getFlowTemplate, listFlowHelperFiles, getFlowHelperFile, listAllFlowSchedules, deleteFlowSchedule, updateFlowSchedule, getFlow, deleteFlow, executeFlow, runCodexFlowAgent, scheduleFlow, listFlowSchedules, getMetricsConfig, getChipMetrics, getQubitMetricHistory, getCouplingMetricHistory, downloadMetricsPdf, upsertQubitNote, deleteQubitNote, createQubitNoteComment, updateQubitNoteComment, deleteQubitNoteComment, upsertQubitMetricNote, deleteQubitMetricNote, upsertCouplingNote, deleteCouplingNote, createCouplingNoteComment, updateCouplingNoteComment, deleteCouplingNoteComment, upsertCouplingMetricNote, deleteCouplingMetricNote, getTaskNote, upsertTaskNote, deleteTaskNote, getChipNotesSummary, listChipNoteEvents, listTargetNoteEvents, searchNoteEvents, listNotifications, getUnreadNotificationCount, markNotificationRead, markAllNotificationsRead, listCryostats, createCryostat, getCryostat, updateCryostat, deleteCryostat, listCooldowns, createCooldown, getCooldown, updateCooldown, deleteCooldown, assignChipToCooldown, unassignChipFromCooldown, createCooldownWiringCheckpoint, listCooldownWiringEvents, listTopologies, getTopologyById, getConfigAll, getDashboardAiInsights, getProvenanceEntity, getProvenanceLineage, getProvenanceImpact, compareExecutions, getParameterHistory, getProvenanceStats, getRecentExecutions, getRecentChanges, getDegradationTrends, getRecalibrationRecommendations };
2257
+ };
2258
+
2259
+ export {
2260
+ QDashApiError,
2261
+ QDashConfigError,
2262
+ QDashAuthError,
2263
+ QDashNotFoundError,
2264
+ QDashValidationError,
2265
+ QDashTransportError,
2266
+ QDashClientError,
2267
+ getQDashAPI
2268
+ };
2269
+ //# sourceMappingURL=chunk-F75WR2JX.js.map