@eigenpal/sdk 0.6.9 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +23 -6
- package/package.json +3 -2
- package/src/client.ts +4 -0
- package/src/generated/index.ts +132 -112
- package/src/generated/sdk.gen.ts +272 -227
- package/src/generated/types.gen.ts +711 -737
- package/src/index.ts +15 -18
- package/src/resources/agents.ts +0 -298
- package/src/resources/executions.ts +19 -78
- package/src/resources/runs.ts +556 -0
- package/src/resources/workflows.ts +3 -4
- package/src/telemetry.ts +1 -1
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import {
|
|
4
|
+
type Client,
|
|
5
|
+
formDataBodySerializer,
|
|
6
|
+
type Options as Options2,
|
|
7
|
+
type TDataShape,
|
|
8
|
+
} from './client';
|
|
4
9
|
import { client } from './client.gen';
|
|
5
10
|
import type {
|
|
6
11
|
AgentsCreateData,
|
|
@@ -22,45 +27,6 @@ import type {
|
|
|
22
27
|
AgentsRunData,
|
|
23
28
|
AgentsRunErrors,
|
|
24
29
|
AgentsRunResponses,
|
|
25
|
-
AgentsRunsCancelData,
|
|
26
|
-
AgentsRunsCancelErrors,
|
|
27
|
-
AgentsRunsCancelResponses,
|
|
28
|
-
AgentsRunsExpectedCreateData,
|
|
29
|
-
AgentsRunsExpectedCreateErrors,
|
|
30
|
-
AgentsRunsExpectedCreateResponses,
|
|
31
|
-
AgentsRunsExpectedDeleteData,
|
|
32
|
-
AgentsRunsExpectedDeleteErrors,
|
|
33
|
-
AgentsRunsExpectedDeleteResponses,
|
|
34
|
-
AgentsRunsExpectedDownloadData,
|
|
35
|
-
AgentsRunsExpectedDownloadErrors,
|
|
36
|
-
AgentsRunsExpectedDownloadResponses,
|
|
37
|
-
AgentsRunsExpectedListData,
|
|
38
|
-
AgentsRunsExpectedListErrors,
|
|
39
|
-
AgentsRunsExpectedListResponses,
|
|
40
|
-
AgentsRunsExpectedRenameData,
|
|
41
|
-
AgentsRunsExpectedRenameErrors,
|
|
42
|
-
AgentsRunsExpectedRenameResponses,
|
|
43
|
-
AgentsRunsFeedbackDeleteData,
|
|
44
|
-
AgentsRunsFeedbackDeleteErrors,
|
|
45
|
-
AgentsRunsFeedbackDeleteResponses,
|
|
46
|
-
AgentsRunsFeedbackGetData,
|
|
47
|
-
AgentsRunsFeedbackGetErrors,
|
|
48
|
-
AgentsRunsFeedbackGetResponses,
|
|
49
|
-
AgentsRunsFeedbackUpdateData,
|
|
50
|
-
AgentsRunsFeedbackUpdateErrors,
|
|
51
|
-
AgentsRunsFeedbackUpdateResponses,
|
|
52
|
-
AgentsRunsFilesDownloadData,
|
|
53
|
-
AgentsRunsFilesDownloadErrors,
|
|
54
|
-
AgentsRunsFilesDownloadResponses,
|
|
55
|
-
AgentsRunsGetData,
|
|
56
|
-
AgentsRunsGetErrors,
|
|
57
|
-
AgentsRunsGetResponses,
|
|
58
|
-
AgentsRunsListData,
|
|
59
|
-
AgentsRunsListErrors,
|
|
60
|
-
AgentsRunsListResponses,
|
|
61
|
-
AgentsRunsRerunData,
|
|
62
|
-
AgentsRunsRerunErrors,
|
|
63
|
-
AgentsRunsRerunResponses,
|
|
64
30
|
AgentsTriggersEmailCreateAliasData,
|
|
65
31
|
AgentsTriggersEmailCreateAliasErrors,
|
|
66
32
|
AgentsTriggersEmailCreateAliasResponses,
|
|
@@ -88,6 +54,69 @@ import type {
|
|
|
88
54
|
AutomationsSyncData,
|
|
89
55
|
AutomationsSyncErrors,
|
|
90
56
|
AutomationsSyncResponses,
|
|
57
|
+
RunsArtifactGetData,
|
|
58
|
+
RunsArtifactGetErrors,
|
|
59
|
+
RunsArtifactGetResponses,
|
|
60
|
+
RunsCancelData,
|
|
61
|
+
RunsCancelErrors,
|
|
62
|
+
RunsCancelResponses,
|
|
63
|
+
RunsComparisonGetData,
|
|
64
|
+
RunsComparisonGetErrors,
|
|
65
|
+
RunsComparisonGetResponses,
|
|
66
|
+
RunsConnectData,
|
|
67
|
+
RunsConnectErrors,
|
|
68
|
+
RunsConnectResponses,
|
|
69
|
+
RunsExpectedCreateData,
|
|
70
|
+
RunsExpectedCreateErrors,
|
|
71
|
+
RunsExpectedCreateResponses,
|
|
72
|
+
RunsExpectedFileDeleteData,
|
|
73
|
+
RunsExpectedFileDeleteErrors,
|
|
74
|
+
RunsExpectedFileDeleteResponses,
|
|
75
|
+
RunsExpectedFileGetData,
|
|
76
|
+
RunsExpectedFileGetErrors,
|
|
77
|
+
RunsExpectedFileGetResponses,
|
|
78
|
+
RunsExpectedFileUpdateData,
|
|
79
|
+
RunsExpectedFileUpdateErrors,
|
|
80
|
+
RunsExpectedFileUpdateResponses,
|
|
81
|
+
RunsExpectedGetData,
|
|
82
|
+
RunsExpectedGetErrors,
|
|
83
|
+
RunsExpectedGetResponses,
|
|
84
|
+
RunsFeedbackClearData,
|
|
85
|
+
RunsFeedbackClearErrors,
|
|
86
|
+
RunsFeedbackClearResponses,
|
|
87
|
+
RunsFeedbackGetData,
|
|
88
|
+
RunsFeedbackGetErrors,
|
|
89
|
+
RunsFeedbackGetResponses,
|
|
90
|
+
RunsFeedbackUpdateData,
|
|
91
|
+
RunsFeedbackUpdateErrors,
|
|
92
|
+
RunsFeedbackUpdateResponses,
|
|
93
|
+
RunsFilesDeleteData,
|
|
94
|
+
RunsFilesDeleteErrors,
|
|
95
|
+
RunsFilesDeleteResponses,
|
|
96
|
+
RunsFilesListData,
|
|
97
|
+
RunsFilesListErrors,
|
|
98
|
+
RunsFilesListResponses,
|
|
99
|
+
RunsFilesUploadData,
|
|
100
|
+
RunsFilesUploadErrors,
|
|
101
|
+
RunsFilesUploadResponses,
|
|
102
|
+
RunsFilesZipGetData,
|
|
103
|
+
RunsFilesZipGetErrors,
|
|
104
|
+
RunsFilesZipGetResponses,
|
|
105
|
+
RunsGetData,
|
|
106
|
+
RunsGetErrors,
|
|
107
|
+
RunsGetResponses,
|
|
108
|
+
RunsListData,
|
|
109
|
+
RunsListErrors,
|
|
110
|
+
RunsListResponses,
|
|
111
|
+
RunsRerunData,
|
|
112
|
+
RunsRerunErrors,
|
|
113
|
+
RunsRerunResponses,
|
|
114
|
+
RunsResumeData,
|
|
115
|
+
RunsResumeErrors,
|
|
116
|
+
RunsResumeResponses,
|
|
117
|
+
RunsTraceGetData,
|
|
118
|
+
RunsTraceGetErrors,
|
|
119
|
+
RunsTraceGetResponses,
|
|
91
120
|
SourceLockfilePreviewData,
|
|
92
121
|
SourceLockfilePreviewErrors,
|
|
93
122
|
SourceLockfilePreviewResponses,
|
|
@@ -106,15 +135,6 @@ import type {
|
|
|
106
135
|
SourceSecretsEncryptData,
|
|
107
136
|
SourceSecretsEncryptErrors,
|
|
108
137
|
SourceSecretsEncryptResponses,
|
|
109
|
-
WorkflowsExecutionsCancelData,
|
|
110
|
-
WorkflowsExecutionsCancelErrors,
|
|
111
|
-
WorkflowsExecutionsCancelResponses,
|
|
112
|
-
WorkflowsExecutionsGetData,
|
|
113
|
-
WorkflowsExecutionsGetErrors,
|
|
114
|
-
WorkflowsExecutionsGetResponses,
|
|
115
|
-
WorkflowsExecutionsListData,
|
|
116
|
-
WorkflowsExecutionsListErrors,
|
|
117
|
-
WorkflowsExecutionsListResponses,
|
|
118
138
|
WorkflowsGetData,
|
|
119
139
|
WorkflowsGetErrors,
|
|
120
140
|
WorkflowsGetResponses,
|
|
@@ -251,20 +271,6 @@ export const agentsRun = <ThrowOnError extends boolean = false>(
|
|
|
251
271
|
},
|
|
252
272
|
});
|
|
253
273
|
|
|
254
|
-
/**
|
|
255
|
-
* List agent runs
|
|
256
|
-
*
|
|
257
|
-
* Returns runs for an agent, optionally filtered by status or experiment batch.
|
|
258
|
-
*/
|
|
259
|
-
export const agentsRunsList = <ThrowOnError extends boolean = false>(
|
|
260
|
-
options: Options<AgentsRunsListData, ThrowOnError>
|
|
261
|
-
) =>
|
|
262
|
-
(options.client ?? client).get<AgentsRunsListResponses, AgentsRunsListErrors, ThrowOnError>({
|
|
263
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
264
|
-
url: '/api/v1/agents/{agentId}/runs',
|
|
265
|
-
...options,
|
|
266
|
-
});
|
|
267
|
-
|
|
268
274
|
/**
|
|
269
275
|
* Delete an agent email alias
|
|
270
276
|
*
|
|
@@ -418,70 +424,134 @@ export const agentsCreate = <ThrowOnError extends boolean = false>(
|
|
|
418
424
|
});
|
|
419
425
|
|
|
420
426
|
/**
|
|
421
|
-
*
|
|
427
|
+
* List agent email triggers
|
|
422
428
|
*
|
|
423
|
-
*
|
|
429
|
+
* Lists email trigger aliases for the authenticated organization.
|
|
424
430
|
*/
|
|
425
|
-
export const
|
|
426
|
-
options
|
|
431
|
+
export const agentsTriggersEmailList = <ThrowOnError extends boolean = false>(
|
|
432
|
+
options?: Options<AgentsTriggersEmailListData, ThrowOnError>
|
|
427
433
|
) =>
|
|
428
|
-
(options
|
|
434
|
+
(options?.client ?? client).get<
|
|
435
|
+
AgentsTriggersEmailListResponses,
|
|
436
|
+
AgentsTriggersEmailListErrors,
|
|
437
|
+
ThrowOnError
|
|
438
|
+
>({
|
|
429
439
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
430
|
-
url: '/api/v1/agents/
|
|
440
|
+
url: '/api/v1/agents/triggers/email',
|
|
431
441
|
...options,
|
|
432
442
|
});
|
|
433
443
|
|
|
434
444
|
/**
|
|
435
|
-
*
|
|
445
|
+
* Sync an automation from latest source
|
|
436
446
|
*
|
|
437
|
-
*
|
|
447
|
+
* Reconciles lightweight automation metadata from the latest released Git source package. This does not enqueue executions.
|
|
448
|
+
*/
|
|
449
|
+
export const automationsSync = <ThrowOnError extends boolean = false>(
|
|
450
|
+
options: Options<AutomationsSyncData, ThrowOnError>
|
|
451
|
+
) =>
|
|
452
|
+
(options.client ?? client).post<AutomationsSyncResponses, AutomationsSyncErrors, ThrowOnError>({
|
|
453
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
454
|
+
url: '/api/v1/automations/{automation}/sync',
|
|
455
|
+
...options,
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Download run artifact
|
|
460
|
+
*
|
|
461
|
+
* Download an agent run artifact such as input/output JSON, trace.jsonl, issues.md, metadata, or files under input/ and output/. Workflow run file rows are exposed through /files.
|
|
462
|
+
*/
|
|
463
|
+
export const runsArtifactGet = <ThrowOnError extends boolean = false>(
|
|
464
|
+
options: Options<RunsArtifactGetData, ThrowOnError>
|
|
465
|
+
) =>
|
|
466
|
+
(options.client ?? client).get<RunsArtifactGetResponses, RunsArtifactGetErrors, ThrowOnError>({
|
|
467
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
468
|
+
url: '/api/v1/runs/{id}/artifact/{path}',
|
|
469
|
+
...options,
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Cancel run
|
|
438
474
|
*/
|
|
439
|
-
export const
|
|
440
|
-
options: Options<
|
|
475
|
+
export const runsCancel = <ThrowOnError extends boolean = false>(
|
|
476
|
+
options: Options<RunsCancelData, ThrowOnError>
|
|
477
|
+
) =>
|
|
478
|
+
(options.client ?? client).post<RunsCancelResponses, RunsCancelErrors, ThrowOnError>({
|
|
479
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
480
|
+
url: '/api/v1/runs/{id}/cancel',
|
|
481
|
+
...options,
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Get run comparison
|
|
486
|
+
*/
|
|
487
|
+
export const runsComparisonGet = <ThrowOnError extends boolean = false>(
|
|
488
|
+
options: Options<RunsComparisonGetData, ThrowOnError>
|
|
489
|
+
) =>
|
|
490
|
+
(options.client ?? client).get<RunsComparisonGetResponses, RunsComparisonGetErrors, ThrowOnError>(
|
|
491
|
+
{
|
|
492
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
493
|
+
url: '/api/v1/runs/{id}/comparison',
|
|
494
|
+
...options,
|
|
495
|
+
}
|
|
496
|
+
);
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Connect to live run
|
|
500
|
+
*/
|
|
501
|
+
export const runsConnect = <ThrowOnError extends boolean = false>(
|
|
502
|
+
options: Options<RunsConnectData, ThrowOnError>
|
|
503
|
+
) =>
|
|
504
|
+
(options.client ?? client).post<RunsConnectResponses, RunsConnectErrors, ThrowOnError>({
|
|
505
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
506
|
+
url: '/api/v1/runs/{id}/connect',
|
|
507
|
+
...options,
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Delete expected artifact file
|
|
512
|
+
*/
|
|
513
|
+
export const runsExpectedFileDelete = <ThrowOnError extends boolean = false>(
|
|
514
|
+
options: Options<RunsExpectedFileDeleteData, ThrowOnError>
|
|
441
515
|
) =>
|
|
442
516
|
(options.client ?? client).delete<
|
|
443
|
-
|
|
444
|
-
|
|
517
|
+
RunsExpectedFileDeleteResponses,
|
|
518
|
+
RunsExpectedFileDeleteErrors,
|
|
445
519
|
ThrowOnError
|
|
446
520
|
>({
|
|
447
521
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
448
|
-
url: '/api/v1/
|
|
522
|
+
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
449
523
|
...options,
|
|
450
524
|
});
|
|
451
525
|
|
|
452
526
|
/**
|
|
453
|
-
* Download
|
|
454
|
-
*
|
|
455
|
-
* Downloads one expected file attached to an agent run.
|
|
527
|
+
* Download expected artifact file
|
|
456
528
|
*/
|
|
457
|
-
export const
|
|
458
|
-
options: Options<
|
|
529
|
+
export const runsExpectedFileGet = <ThrowOnError extends boolean = false>(
|
|
530
|
+
options: Options<RunsExpectedFileGetData, ThrowOnError>
|
|
459
531
|
) =>
|
|
460
532
|
(options.client ?? client).get<
|
|
461
|
-
|
|
462
|
-
|
|
533
|
+
RunsExpectedFileGetResponses,
|
|
534
|
+
RunsExpectedFileGetErrors,
|
|
463
535
|
ThrowOnError
|
|
464
536
|
>({
|
|
465
537
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
466
|
-
url: '/api/v1/
|
|
538
|
+
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
467
539
|
...options,
|
|
468
540
|
});
|
|
469
541
|
|
|
470
542
|
/**
|
|
471
|
-
* Rename
|
|
472
|
-
*
|
|
473
|
-
* Renames one expected file attached to an agent run.
|
|
543
|
+
* Rename expected artifact file
|
|
474
544
|
*/
|
|
475
|
-
export const
|
|
476
|
-
options: Options<
|
|
545
|
+
export const runsExpectedFileUpdate = <ThrowOnError extends boolean = false>(
|
|
546
|
+
options: Options<RunsExpectedFileUpdateData, ThrowOnError>
|
|
477
547
|
) =>
|
|
478
548
|
(options.client ?? client).patch<
|
|
479
|
-
|
|
480
|
-
|
|
549
|
+
RunsExpectedFileUpdateResponses,
|
|
550
|
+
RunsExpectedFileUpdateErrors,
|
|
481
551
|
ThrowOnError
|
|
482
552
|
>({
|
|
483
553
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
484
|
-
url: '/api/v1/
|
|
554
|
+
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
485
555
|
...options,
|
|
486
556
|
headers: {
|
|
487
557
|
'Content-Type': 'application/json',
|
|
@@ -490,38 +560,30 @@ export const agentsRunsExpectedRename = <ThrowOnError extends boolean = false>(
|
|
|
490
560
|
});
|
|
491
561
|
|
|
492
562
|
/**
|
|
493
|
-
*
|
|
494
|
-
*
|
|
495
|
-
* Returns structured expected JSON and expected file names for one run.
|
|
563
|
+
* Get run expected artifacts
|
|
496
564
|
*/
|
|
497
|
-
export const
|
|
498
|
-
options: Options<
|
|
565
|
+
export const runsExpectedGet = <ThrowOnError extends boolean = false>(
|
|
566
|
+
options: Options<RunsExpectedGetData, ThrowOnError>
|
|
499
567
|
) =>
|
|
500
|
-
(options.client ?? client).get<
|
|
501
|
-
AgentsRunsExpectedListResponses,
|
|
502
|
-
AgentsRunsExpectedListErrors,
|
|
503
|
-
ThrowOnError
|
|
504
|
-
>({
|
|
568
|
+
(options.client ?? client).get<RunsExpectedGetResponses, RunsExpectedGetErrors, ThrowOnError>({
|
|
505
569
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
506
|
-
url: '/api/v1/
|
|
570
|
+
url: '/api/v1/runs/{id}/expected',
|
|
507
571
|
...options,
|
|
508
572
|
});
|
|
509
573
|
|
|
510
574
|
/**
|
|
511
|
-
* Create
|
|
512
|
-
*
|
|
513
|
-
* Uploads an expected file with multipart/form-data, or copies a generated output file into expected artifacts with JSON.
|
|
575
|
+
* Create or update expected artifacts
|
|
514
576
|
*/
|
|
515
|
-
export const
|
|
516
|
-
options: Options<
|
|
577
|
+
export const runsExpectedCreate = <ThrowOnError extends boolean = false>(
|
|
578
|
+
options: Options<RunsExpectedCreateData, ThrowOnError>
|
|
517
579
|
) =>
|
|
518
580
|
(options.client ?? client).post<
|
|
519
|
-
|
|
520
|
-
|
|
581
|
+
RunsExpectedCreateResponses,
|
|
582
|
+
RunsExpectedCreateErrors,
|
|
521
583
|
ThrowOnError
|
|
522
584
|
>({
|
|
523
585
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
524
|
-
url: '/api/v1/
|
|
586
|
+
url: '/api/v1/runs/{id}/expected',
|
|
525
587
|
...options,
|
|
526
588
|
headers: {
|
|
527
589
|
'Content-Type': 'application/json',
|
|
@@ -531,55 +593,45 @@ export const agentsRunsExpectedCreate = <ThrowOnError extends boolean = false>(
|
|
|
531
593
|
|
|
532
594
|
/**
|
|
533
595
|
* Clear run feedback
|
|
534
|
-
*
|
|
535
|
-
* Deletes feedback, structured expected JSON, and expected files from one run.
|
|
536
596
|
*/
|
|
537
|
-
export const
|
|
538
|
-
options: Options<
|
|
597
|
+
export const runsFeedbackClear = <ThrowOnError extends boolean = false>(
|
|
598
|
+
options: Options<RunsFeedbackClearData, ThrowOnError>
|
|
539
599
|
) =>
|
|
540
600
|
(options.client ?? client).delete<
|
|
541
|
-
|
|
542
|
-
|
|
601
|
+
RunsFeedbackClearResponses,
|
|
602
|
+
RunsFeedbackClearErrors,
|
|
543
603
|
ThrowOnError
|
|
544
604
|
>({
|
|
545
605
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
546
|
-
url: '/api/v1/
|
|
606
|
+
url: '/api/v1/runs/{id}/feedback',
|
|
547
607
|
...options,
|
|
548
608
|
});
|
|
549
609
|
|
|
550
610
|
/**
|
|
551
611
|
* Get run feedback
|
|
552
|
-
*
|
|
553
|
-
* Returns feedback and expected artifacts attached to one agent run.
|
|
554
612
|
*/
|
|
555
|
-
export const
|
|
556
|
-
options: Options<
|
|
613
|
+
export const runsFeedbackGet = <ThrowOnError extends boolean = false>(
|
|
614
|
+
options: Options<RunsFeedbackGetData, ThrowOnError>
|
|
557
615
|
) =>
|
|
558
|
-
(options.client ?? client).get<
|
|
559
|
-
AgentsRunsFeedbackGetResponses,
|
|
560
|
-
AgentsRunsFeedbackGetErrors,
|
|
561
|
-
ThrowOnError
|
|
562
|
-
>({
|
|
616
|
+
(options.client ?? client).get<RunsFeedbackGetResponses, RunsFeedbackGetErrors, ThrowOnError>({
|
|
563
617
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
564
|
-
url: '/api/v1/
|
|
618
|
+
url: '/api/v1/runs/{id}/feedback',
|
|
565
619
|
...options,
|
|
566
620
|
});
|
|
567
621
|
|
|
568
622
|
/**
|
|
569
623
|
* Update run feedback
|
|
570
|
-
*
|
|
571
|
-
* Updates the feedback body, rating, status, or structured expected JSON attached to one run.
|
|
572
624
|
*/
|
|
573
|
-
export const
|
|
574
|
-
options: Options<
|
|
625
|
+
export const runsFeedbackUpdate = <ThrowOnError extends boolean = false>(
|
|
626
|
+
options: Options<RunsFeedbackUpdateData, ThrowOnError>
|
|
575
627
|
) =>
|
|
576
628
|
(options.client ?? client).patch<
|
|
577
|
-
|
|
578
|
-
|
|
629
|
+
RunsFeedbackUpdateResponses,
|
|
630
|
+
RunsFeedbackUpdateErrors,
|
|
579
631
|
ThrowOnError
|
|
580
632
|
>({
|
|
581
633
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
582
|
-
url: '/api/v1/
|
|
634
|
+
url: '/api/v1/runs/{id}/feedback',
|
|
583
635
|
...options,
|
|
584
636
|
headers: {
|
|
585
637
|
'Content-Type': 'application/json',
|
|
@@ -588,34 +640,73 @@ export const agentsRunsFeedbackUpdate = <ThrowOnError extends boolean = false>(
|
|
|
588
640
|
});
|
|
589
641
|
|
|
590
642
|
/**
|
|
591
|
-
* Download
|
|
643
|
+
* Download run output files zip
|
|
592
644
|
*
|
|
593
|
-
*
|
|
645
|
+
* Download agent run output artifacts as a zip. Workflow run files use /files and will be folded into artifacts in a future refactor.
|
|
594
646
|
*/
|
|
595
|
-
export const
|
|
596
|
-
options: Options<
|
|
647
|
+
export const runsFilesZipGet = <ThrowOnError extends boolean = false>(
|
|
648
|
+
options: Options<RunsFilesZipGetData, ThrowOnError>
|
|
597
649
|
) =>
|
|
598
|
-
(options.client ?? client).get<
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
650
|
+
(options.client ?? client).get<RunsFilesZipGetResponses, RunsFilesZipGetErrors, ThrowOnError>({
|
|
651
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
652
|
+
url: '/api/v1/runs/{id}/files-zip',
|
|
653
|
+
...options,
|
|
654
|
+
});
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Delete run input file
|
|
658
|
+
*/
|
|
659
|
+
export const runsFilesDelete = <ThrowOnError extends boolean = false>(
|
|
660
|
+
options: Options<RunsFilesDeleteData, ThrowOnError>
|
|
661
|
+
) =>
|
|
662
|
+
(options.client ?? client).delete<RunsFilesDeleteResponses, RunsFilesDeleteErrors, ThrowOnError>({
|
|
663
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
664
|
+
url: '/api/v1/runs/{id}/files/{fileId}',
|
|
665
|
+
...options,
|
|
666
|
+
});
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* List run files
|
|
670
|
+
*
|
|
671
|
+
* List DB-backed workflow run files: mutable workflow inputs before execution starts, plus workflow/eval input and output file rows. Agent debug outputs are exposed as run artifacts instead.
|
|
672
|
+
*/
|
|
673
|
+
export const runsFilesList = <ThrowOnError extends boolean = false>(
|
|
674
|
+
options: Options<RunsFilesListData, ThrowOnError>
|
|
675
|
+
) =>
|
|
676
|
+
(options.client ?? client).get<RunsFilesListResponses, RunsFilesListErrors, ThrowOnError>({
|
|
603
677
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
604
|
-
url: '/api/v1/
|
|
678
|
+
url: '/api/v1/runs/{id}/files',
|
|
605
679
|
...options,
|
|
606
680
|
});
|
|
607
681
|
|
|
608
682
|
/**
|
|
609
|
-
*
|
|
683
|
+
* Upload run input file
|
|
610
684
|
*
|
|
611
|
-
*
|
|
685
|
+
* Upload a DB-backed workflow run input file. This endpoint is for workflow runs before execution starts; agent run downloads use artifacts.
|
|
612
686
|
*/
|
|
613
|
-
export const
|
|
614
|
-
options: Options<
|
|
687
|
+
export const runsFilesUpload = <ThrowOnError extends boolean = false>(
|
|
688
|
+
options: Options<RunsFilesUploadData, ThrowOnError>
|
|
615
689
|
) =>
|
|
616
|
-
(options.client ?? client).post<
|
|
690
|
+
(options.client ?? client).post<RunsFilesUploadResponses, RunsFilesUploadErrors, ThrowOnError>({
|
|
691
|
+
...formDataBodySerializer,
|
|
617
692
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
618
|
-
url: '/api/v1/
|
|
693
|
+
url: '/api/v1/runs/{id}/files',
|
|
694
|
+
...options,
|
|
695
|
+
headers: {
|
|
696
|
+
'Content-Type': null,
|
|
697
|
+
...options.headers,
|
|
698
|
+
},
|
|
699
|
+
});
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Rerun run
|
|
703
|
+
*/
|
|
704
|
+
export const runsRerun = <ThrowOnError extends boolean = false>(
|
|
705
|
+
options: Options<RunsRerunData, ThrowOnError>
|
|
706
|
+
) =>
|
|
707
|
+
(options.client ?? client).post<RunsRerunResponses, RunsRerunErrors, ThrowOnError>({
|
|
708
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
709
|
+
url: '/api/v1/runs/{id}/rerun',
|
|
619
710
|
...options,
|
|
620
711
|
headers: {
|
|
621
712
|
'Content-Type': 'application/json',
|
|
@@ -624,48 +715,56 @@ export const agentsRunsRerun = <ThrowOnError extends boolean = false>(
|
|
|
624
715
|
});
|
|
625
716
|
|
|
626
717
|
/**
|
|
627
|
-
*
|
|
718
|
+
* Resume workflow run
|
|
628
719
|
*
|
|
629
|
-
*
|
|
720
|
+
* Resume a workflow run that is waiting for approval.
|
|
630
721
|
*/
|
|
631
|
-
export const
|
|
632
|
-
options: Options<
|
|
722
|
+
export const runsResume = <ThrowOnError extends boolean = false>(
|
|
723
|
+
options: Options<RunsResumeData, ThrowOnError>
|
|
633
724
|
) =>
|
|
634
|
-
(options.client ?? client).
|
|
725
|
+
(options.client ?? client).post<RunsResumeResponses, RunsResumeErrors, ThrowOnError>({
|
|
635
726
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
636
|
-
url: '/api/v1/
|
|
727
|
+
url: '/api/v1/runs/{id}/resume',
|
|
637
728
|
...options,
|
|
638
729
|
});
|
|
639
730
|
|
|
640
731
|
/**
|
|
641
|
-
*
|
|
732
|
+
* Get run
|
|
642
733
|
*
|
|
643
|
-
*
|
|
734
|
+
* Returns a run summary by default. Pass include=detail for the rich type-specific workflow or agent run payload.
|
|
644
735
|
*/
|
|
645
|
-
export const
|
|
646
|
-
options
|
|
736
|
+
export const runsGet = <ThrowOnError extends boolean = false>(
|
|
737
|
+
options: Options<RunsGetData, ThrowOnError>
|
|
647
738
|
) =>
|
|
648
|
-
(options
|
|
649
|
-
AgentsTriggersEmailListResponses,
|
|
650
|
-
AgentsTriggersEmailListErrors,
|
|
651
|
-
ThrowOnError
|
|
652
|
-
>({
|
|
739
|
+
(options.client ?? client).get<RunsGetResponses, RunsGetErrors, ThrowOnError>({
|
|
653
740
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
654
|
-
url: '/api/v1/
|
|
741
|
+
url: '/api/v1/runs/{id}',
|
|
655
742
|
...options,
|
|
656
743
|
});
|
|
657
744
|
|
|
658
745
|
/**
|
|
659
|
-
*
|
|
746
|
+
* Get run trace
|
|
747
|
+
*/
|
|
748
|
+
export const runsTraceGet = <ThrowOnError extends boolean = false>(
|
|
749
|
+
options: Options<RunsTraceGetData, ThrowOnError>
|
|
750
|
+
) =>
|
|
751
|
+
(options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
|
|
752
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
753
|
+
url: '/api/v1/runs/{id}/trace',
|
|
754
|
+
...options,
|
|
755
|
+
});
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* List runs
|
|
660
759
|
*
|
|
661
|
-
*
|
|
760
|
+
* Tenant-scoped, cursor-paginated feed of workflow and agent runs. Use type and source filters to scope to one runtime or resource.
|
|
662
761
|
*/
|
|
663
|
-
export const
|
|
664
|
-
options
|
|
762
|
+
export const runsList = <ThrowOnError extends boolean = false>(
|
|
763
|
+
options?: Options<RunsListData, ThrowOnError>
|
|
665
764
|
) =>
|
|
666
|
-
(options
|
|
765
|
+
(options?.client ?? client).get<RunsListResponses, RunsListErrors, ThrowOnError>({
|
|
667
766
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
668
|
-
url: '/api/v1/
|
|
767
|
+
url: '/api/v1/runs',
|
|
669
768
|
...options,
|
|
670
769
|
});
|
|
671
770
|
|
|
@@ -773,24 +872,6 @@ export const sourceSecretsEncrypt = <ThrowOnError extends boolean = false>(
|
|
|
773
872
|
},
|
|
774
873
|
});
|
|
775
874
|
|
|
776
|
-
/**
|
|
777
|
-
* List workflow executions
|
|
778
|
-
*
|
|
779
|
-
* Returns executions for a workflow, optionally filtered by status, date range, or eval example. Paginated.
|
|
780
|
-
*/
|
|
781
|
-
export const workflowsExecutionsList = <ThrowOnError extends boolean = false>(
|
|
782
|
-
options: Options<WorkflowsExecutionsListData, ThrowOnError>
|
|
783
|
-
) =>
|
|
784
|
-
(options.client ?? client).get<
|
|
785
|
-
WorkflowsExecutionsListResponses,
|
|
786
|
-
WorkflowsExecutionsListErrors,
|
|
787
|
-
ThrowOnError
|
|
788
|
-
>({
|
|
789
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
790
|
-
url: '/api/v1/workflows/{id}/executions',
|
|
791
|
-
...options,
|
|
792
|
-
});
|
|
793
|
-
|
|
794
875
|
/**
|
|
795
876
|
* Get a workflow by id
|
|
796
877
|
*
|
|
@@ -841,42 +922,6 @@ export const workflowsVersionsList = <ThrowOnError extends boolean = false>(
|
|
|
841
922
|
...options,
|
|
842
923
|
});
|
|
843
924
|
|
|
844
|
-
/**
|
|
845
|
-
* Cancel a workflow execution
|
|
846
|
-
*
|
|
847
|
-
* Idempotent. Created/pending executions transition immediately to `cancelled`; running/waiting executions receive a cancellation request for the worker to observe.
|
|
848
|
-
*/
|
|
849
|
-
export const workflowsExecutionsCancel = <ThrowOnError extends boolean = false>(
|
|
850
|
-
options: Options<WorkflowsExecutionsCancelData, ThrowOnError>
|
|
851
|
-
) =>
|
|
852
|
-
(options.client ?? client).post<
|
|
853
|
-
WorkflowsExecutionsCancelResponses,
|
|
854
|
-
WorkflowsExecutionsCancelErrors,
|
|
855
|
-
ThrowOnError
|
|
856
|
-
>({
|
|
857
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
858
|
-
url: '/api/v1/workflows/executions/{executionId}/cancel',
|
|
859
|
-
...options,
|
|
860
|
-
});
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* Get workflow execution status
|
|
864
|
-
*
|
|
865
|
-
* Returns the current status, completion timestamps, and result or error for a workflow execution. Pass `includeSteps=true` for the per-step artifact payload.
|
|
866
|
-
*/
|
|
867
|
-
export const workflowsExecutionsGet = <ThrowOnError extends boolean = false>(
|
|
868
|
-
options: Options<WorkflowsExecutionsGetData, ThrowOnError>
|
|
869
|
-
) =>
|
|
870
|
-
(options.client ?? client).get<
|
|
871
|
-
WorkflowsExecutionsGetResponses,
|
|
872
|
-
WorkflowsExecutionsGetErrors,
|
|
873
|
-
ThrowOnError
|
|
874
|
-
>({
|
|
875
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
876
|
-
url: '/api/v1/workflows/executions/{executionId}',
|
|
877
|
-
...options,
|
|
878
|
-
});
|
|
879
|
-
|
|
880
925
|
/**
|
|
881
926
|
* List workflows
|
|
882
927
|
*
|