@eigenpal/sdk 0.4.17 → 0.5.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.
- package/CHANGELOG.md +2 -1
- package/package.json +1 -1
- package/src/generated/index.ts +85 -0
- package/src/generated/sdk.gen.ts +289 -0
- package/src/generated/types.gen.ts +833 -1
- package/src/index.ts +3 -0
- package/src/resources/agents.ts +269 -0
- package/src/telemetry.ts +1 -1
|
@@ -4,6 +4,21 @@ export type ClientOptions = {
|
|
|
4
4
|
baseUrl: 'https://app.eigenpal.com' | (string & {});
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
+
export type AgentFileBody = {
|
|
8
|
+
content?: string;
|
|
9
|
+
contentBase64?: string;
|
|
10
|
+
contentType?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type AgentFilesBody = {
|
|
14
|
+
files: Array<{
|
|
15
|
+
path: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
contentBase64?: string;
|
|
18
|
+
contentType?: string;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
|
|
7
22
|
export type PatchAgentBody = {
|
|
8
23
|
name?: string;
|
|
9
24
|
description?: string;
|
|
@@ -22,6 +37,25 @@ export type RunAgentBody = {
|
|
|
22
37
|
[key: string]: unknown;
|
|
23
38
|
};
|
|
24
39
|
|
|
40
|
+
export type RenameExpectedFileBody = {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type CopyAgentExecutionOutputToExpectedBody = {
|
|
45
|
+
outputFileName: string;
|
|
46
|
+
expectedName?: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type UpdateAgentExecutionFeedbackBody = {
|
|
50
|
+
body?: string | null;
|
|
51
|
+
feedback?: string | null;
|
|
52
|
+
rating?: 'pass' | 'fail' | 'partial' | null;
|
|
53
|
+
feedbackRating?: 'pass' | 'fail' | 'partial' | null;
|
|
54
|
+
status?: 'open' | 'resolved' | 'ignored' | null;
|
|
55
|
+
feedbackStatus?: 'open' | 'resolved' | 'ignored' | null;
|
|
56
|
+
expected?: unknown | null;
|
|
57
|
+
};
|
|
58
|
+
|
|
25
59
|
export type CreateAgentBody = {
|
|
26
60
|
name: string;
|
|
27
61
|
slug: string;
|
|
@@ -59,6 +93,8 @@ export type ListAgentExecutionsResponse = {
|
|
|
59
93
|
total: number;
|
|
60
94
|
limit: number;
|
|
61
95
|
offset: number;
|
|
96
|
+
scanLimited?: boolean;
|
|
97
|
+
noResolvedAnchor?: boolean;
|
|
62
98
|
};
|
|
63
99
|
|
|
64
100
|
export type AgentExecutionSummary = {
|
|
@@ -73,6 +109,24 @@ export type AgentExecutionSummary = {
|
|
|
73
109
|
createdAt: string;
|
|
74
110
|
startedAt?: string | null;
|
|
75
111
|
completedAt?: string | null;
|
|
112
|
+
feedback?: {
|
|
113
|
+
rating?: 'pass' | 'fail' | 'partial' | null;
|
|
114
|
+
status?: 'open' | 'resolved' | 'ignored' | null;
|
|
115
|
+
createdAt?: string | null;
|
|
116
|
+
createdBy?: string | null;
|
|
117
|
+
createdByEmail?: string | null;
|
|
118
|
+
updatedAt?: string | null;
|
|
119
|
+
resolvedAt?: string | null;
|
|
120
|
+
resolvedBy?: string | null;
|
|
121
|
+
resolvedByEmail?: string | null;
|
|
122
|
+
resolvedBySessionId?: string | null;
|
|
123
|
+
promotedExampleName?: string | null;
|
|
124
|
+
body: string;
|
|
125
|
+
} | null;
|
|
126
|
+
expected?: unknown | null;
|
|
127
|
+
expectedFiles?: Array<{
|
|
128
|
+
name: string;
|
|
129
|
+
}>;
|
|
76
130
|
[key: string]: unknown;
|
|
77
131
|
};
|
|
78
132
|
|
|
@@ -166,6 +220,46 @@ export type CancelAgentExecutionResponse = {
|
|
|
166
220
|
execution: AgentExecutionSummary;
|
|
167
221
|
};
|
|
168
222
|
|
|
223
|
+
export type RenameExpectedFileResponse = {
|
|
224
|
+
name: string;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export type AgentExecutionExpectedArtifacts = {
|
|
228
|
+
expected: unknown | null;
|
|
229
|
+
files: Array<{
|
|
230
|
+
name: string;
|
|
231
|
+
}>;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export type AgentExecutionFeedbackDetail = {
|
|
235
|
+
feedback: AgentExecutionFeedback | null;
|
|
236
|
+
expected: unknown | null;
|
|
237
|
+
expectedFiles: Array<{
|
|
238
|
+
name: string;
|
|
239
|
+
}>;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export type AgentExecutionFeedback = {
|
|
243
|
+
rating: 'pass' | 'fail' | 'partial' | null;
|
|
244
|
+
status: 'open' | 'resolved' | 'ignored' | null;
|
|
245
|
+
createdAt: string | null;
|
|
246
|
+
createdBy: string | null;
|
|
247
|
+
createdByEmail: string | null;
|
|
248
|
+
updatedAt: string | null;
|
|
249
|
+
resolvedAt: string | null;
|
|
250
|
+
resolvedBy: string | null;
|
|
251
|
+
resolvedByEmail: string | null;
|
|
252
|
+
resolvedBySessionId: string | null;
|
|
253
|
+
promotedExampleName: string | null;
|
|
254
|
+
body: string;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export type RerunAgentExecutionResponse = {
|
|
258
|
+
executionId: string;
|
|
259
|
+
sourceExecutionId: string;
|
|
260
|
+
status: ExecutionStatus;
|
|
261
|
+
};
|
|
262
|
+
|
|
169
263
|
export type AgentExecutionResponse = {
|
|
170
264
|
execution: AgentExecutionSummary;
|
|
171
265
|
};
|
|
@@ -341,6 +435,54 @@ export type AgentsExecutionsListData = {
|
|
|
341
435
|
* Experiment batch id filter
|
|
342
436
|
*/
|
|
343
437
|
batchId?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Exact dataset example name filter
|
|
440
|
+
*/
|
|
441
|
+
exampleName?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Substring match on example name
|
|
444
|
+
*/
|
|
445
|
+
exampleNameContains?: string;
|
|
446
|
+
/**
|
|
447
|
+
* Only executions created at/after this ISO timestamp
|
|
448
|
+
*/
|
|
449
|
+
createdAfter?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Only executions created at/before this ISO timestamp
|
|
452
|
+
*/
|
|
453
|
+
createdBefore?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Only executions completed at/after this ISO timestamp
|
|
456
|
+
*/
|
|
457
|
+
completedAfter?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Only executions completed at/before this ISO timestamp
|
|
460
|
+
*/
|
|
461
|
+
completedBefore?: string;
|
|
462
|
+
feedbackStatus?: 'open' | 'resolved' | 'ignored';
|
|
463
|
+
feedbackRating?: 'pass' | 'fail' | 'partial' | 'none';
|
|
464
|
+
hasFeedback?: boolean;
|
|
465
|
+
noFeedback?: boolean;
|
|
466
|
+
hasExpected?: boolean;
|
|
467
|
+
hasExpectedJson?: boolean;
|
|
468
|
+
hasExpectedFiles?: boolean;
|
|
469
|
+
feedbackBodyContains?: string;
|
|
470
|
+
feedbackCreatedAfter?: string;
|
|
471
|
+
feedbackCreatedBefore?: string;
|
|
472
|
+
feedbackUpdatedAfter?: string;
|
|
473
|
+
feedbackUpdatedBefore?: string;
|
|
474
|
+
feedbackResolvedAfter?: string;
|
|
475
|
+
feedbackResolvedBefore?: string;
|
|
476
|
+
promotedToExample?: boolean;
|
|
477
|
+
promotedExampleName?: string;
|
|
478
|
+
sinceLastResolved?: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* Comma-separated extra parts: feedback, expected, files
|
|
481
|
+
*/
|
|
482
|
+
include?: string;
|
|
483
|
+
sort?: 'createdAt' | 'completedAt' | 'status' | 'exampleName';
|
|
484
|
+
order?: 'asc' | 'desc';
|
|
485
|
+
scanLimit?: number;
|
|
344
486
|
limit?: number;
|
|
345
487
|
offset?: number;
|
|
346
488
|
};
|
|
@@ -387,6 +529,169 @@ export type AgentsExecutionsListResponses = {
|
|
|
387
529
|
export type AgentsExecutionsListResponse =
|
|
388
530
|
AgentsExecutionsListResponses[keyof AgentsExecutionsListResponses];
|
|
389
531
|
|
|
532
|
+
export type AgentsFilesListOrGetData = {
|
|
533
|
+
body?: never;
|
|
534
|
+
path: {
|
|
535
|
+
/**
|
|
536
|
+
* Agent id or slug
|
|
537
|
+
*/
|
|
538
|
+
agentId: string;
|
|
539
|
+
};
|
|
540
|
+
query?: {
|
|
541
|
+
path?: string;
|
|
542
|
+
prefix?: string;
|
|
543
|
+
};
|
|
544
|
+
url: '/api/v1/agents/{agentId}/files';
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
export type AgentsFilesListOrGetErrors = {
|
|
548
|
+
/**
|
|
549
|
+
* Validation error. Request shape did not match the spec.
|
|
550
|
+
*/
|
|
551
|
+
400: ApiErrorEnvelope;
|
|
552
|
+
/**
|
|
553
|
+
* Missing or invalid API key
|
|
554
|
+
*/
|
|
555
|
+
401: ApiErrorEnvelope;
|
|
556
|
+
/**
|
|
557
|
+
* API key lacks required scope
|
|
558
|
+
*/
|
|
559
|
+
403: ApiErrorEnvelope;
|
|
560
|
+
/**
|
|
561
|
+
* Resource not found
|
|
562
|
+
*/
|
|
563
|
+
404: ApiErrorEnvelope;
|
|
564
|
+
/**
|
|
565
|
+
* Rate limit exceeded
|
|
566
|
+
*/
|
|
567
|
+
429: ApiErrorEnvelope;
|
|
568
|
+
/**
|
|
569
|
+
* Internal server error
|
|
570
|
+
*/
|
|
571
|
+
500: ApiErrorEnvelope;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
export type AgentsFilesListOrGetError =
|
|
575
|
+
AgentsFilesListOrGetErrors[keyof AgentsFilesListOrGetErrors];
|
|
576
|
+
|
|
577
|
+
export type AgentsFilesListOrGetResponses = {
|
|
578
|
+
/**
|
|
579
|
+
* Agent files or one file payload
|
|
580
|
+
*/
|
|
581
|
+
200: unknown;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
export type AgentsFilesUploadBatchData = {
|
|
585
|
+
body: AgentFilesBody;
|
|
586
|
+
path: {
|
|
587
|
+
/**
|
|
588
|
+
* Agent id or slug
|
|
589
|
+
*/
|
|
590
|
+
agentId: string;
|
|
591
|
+
};
|
|
592
|
+
query?: never;
|
|
593
|
+
url: '/api/v1/agents/{agentId}/files';
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
export type AgentsFilesUploadBatchErrors = {
|
|
597
|
+
/**
|
|
598
|
+
* Validation error. Request shape did not match the spec.
|
|
599
|
+
*/
|
|
600
|
+
400: ApiErrorEnvelope;
|
|
601
|
+
/**
|
|
602
|
+
* Missing or invalid API key
|
|
603
|
+
*/
|
|
604
|
+
401: ApiErrorEnvelope;
|
|
605
|
+
/**
|
|
606
|
+
* API key lacks required scope
|
|
607
|
+
*/
|
|
608
|
+
403: ApiErrorEnvelope;
|
|
609
|
+
/**
|
|
610
|
+
* Resource not found
|
|
611
|
+
*/
|
|
612
|
+
404: ApiErrorEnvelope;
|
|
613
|
+
/**
|
|
614
|
+
* Rate limit exceeded
|
|
615
|
+
*/
|
|
616
|
+
429: ApiErrorEnvelope;
|
|
617
|
+
/**
|
|
618
|
+
* Internal server error
|
|
619
|
+
*/
|
|
620
|
+
500: ApiErrorEnvelope;
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
export type AgentsFilesUploadBatchError =
|
|
624
|
+
AgentsFilesUploadBatchErrors[keyof AgentsFilesUploadBatchErrors];
|
|
625
|
+
|
|
626
|
+
export type AgentsFilesUploadBatchResponses = {
|
|
627
|
+
/**
|
|
628
|
+
* Uploaded files
|
|
629
|
+
*/
|
|
630
|
+
200: {
|
|
631
|
+
ok: boolean;
|
|
632
|
+
files: Array<string>;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
export type AgentsFilesUploadBatchResponse =
|
|
637
|
+
AgentsFilesUploadBatchResponses[keyof AgentsFilesUploadBatchResponses];
|
|
638
|
+
|
|
639
|
+
export type AgentsFilesPutData = {
|
|
640
|
+
body: AgentFileBody;
|
|
641
|
+
path: {
|
|
642
|
+
/**
|
|
643
|
+
* Agent id or slug
|
|
644
|
+
*/
|
|
645
|
+
agentId: string;
|
|
646
|
+
};
|
|
647
|
+
query?: {
|
|
648
|
+
path?: string;
|
|
649
|
+
prefix?: string;
|
|
650
|
+
};
|
|
651
|
+
url: '/api/v1/agents/{agentId}/files';
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
export type AgentsFilesPutErrors = {
|
|
655
|
+
/**
|
|
656
|
+
* Validation error. Request shape did not match the spec.
|
|
657
|
+
*/
|
|
658
|
+
400: ApiErrorEnvelope;
|
|
659
|
+
/**
|
|
660
|
+
* Missing or invalid API key
|
|
661
|
+
*/
|
|
662
|
+
401: ApiErrorEnvelope;
|
|
663
|
+
/**
|
|
664
|
+
* API key lacks required scope
|
|
665
|
+
*/
|
|
666
|
+
403: ApiErrorEnvelope;
|
|
667
|
+
/**
|
|
668
|
+
* Resource not found
|
|
669
|
+
*/
|
|
670
|
+
404: ApiErrorEnvelope;
|
|
671
|
+
/**
|
|
672
|
+
* Rate limit exceeded
|
|
673
|
+
*/
|
|
674
|
+
429: ApiErrorEnvelope;
|
|
675
|
+
/**
|
|
676
|
+
* Internal server error
|
|
677
|
+
*/
|
|
678
|
+
500: ApiErrorEnvelope;
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
export type AgentsFilesPutError = AgentsFilesPutErrors[keyof AgentsFilesPutErrors];
|
|
682
|
+
|
|
683
|
+
export type AgentsFilesPutResponses = {
|
|
684
|
+
/**
|
|
685
|
+
* Uploaded file
|
|
686
|
+
*/
|
|
687
|
+
200: {
|
|
688
|
+
ok: boolean;
|
|
689
|
+
path: string;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
export type AgentsFilesPutResponse = AgentsFilesPutResponses[keyof AgentsFilesPutResponses];
|
|
694
|
+
|
|
390
695
|
export type AgentsGetData = {
|
|
391
696
|
body?: never;
|
|
392
697
|
path: {
|
|
@@ -599,6 +904,533 @@ export type AgentsExecutionsCancelResponses = {
|
|
|
599
904
|
export type AgentsExecutionsCancelResponse =
|
|
600
905
|
AgentsExecutionsCancelResponses[keyof AgentsExecutionsCancelResponses];
|
|
601
906
|
|
|
907
|
+
export type AgentsExecutionsExpectedDeleteData = {
|
|
908
|
+
body?: never;
|
|
909
|
+
path: {
|
|
910
|
+
/**
|
|
911
|
+
* Execution id
|
|
912
|
+
*/
|
|
913
|
+
executionId: string;
|
|
914
|
+
/**
|
|
915
|
+
* Expected artifact path
|
|
916
|
+
*/
|
|
917
|
+
filename: string;
|
|
918
|
+
};
|
|
919
|
+
query?: never;
|
|
920
|
+
url: '/api/v1/agents/executions/{executionId}/expected/{filename}';
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
export type AgentsExecutionsExpectedDeleteErrors = {
|
|
924
|
+
/**
|
|
925
|
+
* Validation error. Request shape did not match the spec.
|
|
926
|
+
*/
|
|
927
|
+
400: ApiErrorEnvelope;
|
|
928
|
+
/**
|
|
929
|
+
* Missing or invalid API key
|
|
930
|
+
*/
|
|
931
|
+
401: ApiErrorEnvelope;
|
|
932
|
+
/**
|
|
933
|
+
* API key lacks required scope
|
|
934
|
+
*/
|
|
935
|
+
403: ApiErrorEnvelope;
|
|
936
|
+
/**
|
|
937
|
+
* Resource not found
|
|
938
|
+
*/
|
|
939
|
+
404: ApiErrorEnvelope;
|
|
940
|
+
/**
|
|
941
|
+
* Rate limit exceeded
|
|
942
|
+
*/
|
|
943
|
+
429: ApiErrorEnvelope;
|
|
944
|
+
/**
|
|
945
|
+
* Internal server error
|
|
946
|
+
*/
|
|
947
|
+
500: ApiErrorEnvelope;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
export type AgentsExecutionsExpectedDeleteError =
|
|
951
|
+
AgentsExecutionsExpectedDeleteErrors[keyof AgentsExecutionsExpectedDeleteErrors];
|
|
952
|
+
|
|
953
|
+
export type AgentsExecutionsExpectedDeleteResponses = {
|
|
954
|
+
/**
|
|
955
|
+
* Expected file deleted
|
|
956
|
+
*/
|
|
957
|
+
204: void;
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
export type AgentsExecutionsExpectedDeleteResponse =
|
|
961
|
+
AgentsExecutionsExpectedDeleteResponses[keyof AgentsExecutionsExpectedDeleteResponses];
|
|
962
|
+
|
|
963
|
+
export type AgentsExecutionsExpectedDownloadData = {
|
|
964
|
+
body?: never;
|
|
965
|
+
path: {
|
|
966
|
+
/**
|
|
967
|
+
* Execution id
|
|
968
|
+
*/
|
|
969
|
+
executionId: string;
|
|
970
|
+
/**
|
|
971
|
+
* Expected artifact path
|
|
972
|
+
*/
|
|
973
|
+
filename: string;
|
|
974
|
+
};
|
|
975
|
+
query?: never;
|
|
976
|
+
url: '/api/v1/agents/executions/{executionId}/expected/{filename}';
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
export type AgentsExecutionsExpectedDownloadErrors = {
|
|
980
|
+
/**
|
|
981
|
+
* Validation error. Request shape did not match the spec.
|
|
982
|
+
*/
|
|
983
|
+
400: ApiErrorEnvelope;
|
|
984
|
+
/**
|
|
985
|
+
* Missing or invalid API key
|
|
986
|
+
*/
|
|
987
|
+
401: ApiErrorEnvelope;
|
|
988
|
+
/**
|
|
989
|
+
* API key lacks required scope
|
|
990
|
+
*/
|
|
991
|
+
403: ApiErrorEnvelope;
|
|
992
|
+
/**
|
|
993
|
+
* Resource not found
|
|
994
|
+
*/
|
|
995
|
+
404: ApiErrorEnvelope;
|
|
996
|
+
/**
|
|
997
|
+
* Rate limit exceeded
|
|
998
|
+
*/
|
|
999
|
+
429: ApiErrorEnvelope;
|
|
1000
|
+
/**
|
|
1001
|
+
* Internal server error
|
|
1002
|
+
*/
|
|
1003
|
+
500: ApiErrorEnvelope;
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
export type AgentsExecutionsExpectedDownloadError =
|
|
1007
|
+
AgentsExecutionsExpectedDownloadErrors[keyof AgentsExecutionsExpectedDownloadErrors];
|
|
1008
|
+
|
|
1009
|
+
export type AgentsExecutionsExpectedDownloadResponses = {
|
|
1010
|
+
/**
|
|
1011
|
+
* Expected file bytes
|
|
1012
|
+
*/
|
|
1013
|
+
200: unknown;
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
export type AgentsExecutionsExpectedRenameData = {
|
|
1017
|
+
body: RenameExpectedFileBody;
|
|
1018
|
+
path: {
|
|
1019
|
+
/**
|
|
1020
|
+
* Execution id
|
|
1021
|
+
*/
|
|
1022
|
+
executionId: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Expected artifact path
|
|
1025
|
+
*/
|
|
1026
|
+
filename: string;
|
|
1027
|
+
};
|
|
1028
|
+
query?: never;
|
|
1029
|
+
url: '/api/v1/agents/executions/{executionId}/expected/{filename}';
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
export type AgentsExecutionsExpectedRenameErrors = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Validation error. Request shape did not match the spec.
|
|
1035
|
+
*/
|
|
1036
|
+
400: ApiErrorEnvelope;
|
|
1037
|
+
/**
|
|
1038
|
+
* Missing or invalid API key
|
|
1039
|
+
*/
|
|
1040
|
+
401: ApiErrorEnvelope;
|
|
1041
|
+
/**
|
|
1042
|
+
* API key lacks required scope
|
|
1043
|
+
*/
|
|
1044
|
+
403: ApiErrorEnvelope;
|
|
1045
|
+
/**
|
|
1046
|
+
* Resource not found
|
|
1047
|
+
*/
|
|
1048
|
+
404: ApiErrorEnvelope;
|
|
1049
|
+
/**
|
|
1050
|
+
* Rate limit exceeded
|
|
1051
|
+
*/
|
|
1052
|
+
429: ApiErrorEnvelope;
|
|
1053
|
+
/**
|
|
1054
|
+
* Internal server error
|
|
1055
|
+
*/
|
|
1056
|
+
500: ApiErrorEnvelope;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
export type AgentsExecutionsExpectedRenameError =
|
|
1060
|
+
AgentsExecutionsExpectedRenameErrors[keyof AgentsExecutionsExpectedRenameErrors];
|
|
1061
|
+
|
|
1062
|
+
export type AgentsExecutionsExpectedRenameResponses = {
|
|
1063
|
+
/**
|
|
1064
|
+
* Renamed expected file
|
|
1065
|
+
*/
|
|
1066
|
+
200: RenameExpectedFileResponse;
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
export type AgentsExecutionsExpectedRenameResponse =
|
|
1070
|
+
AgentsExecutionsExpectedRenameResponses[keyof AgentsExecutionsExpectedRenameResponses];
|
|
1071
|
+
|
|
1072
|
+
export type AgentsExecutionsExpectedListData = {
|
|
1073
|
+
body?: never;
|
|
1074
|
+
path: {
|
|
1075
|
+
/**
|
|
1076
|
+
* Execution id
|
|
1077
|
+
*/
|
|
1078
|
+
executionId: string;
|
|
1079
|
+
};
|
|
1080
|
+
query?: never;
|
|
1081
|
+
url: '/api/v1/agents/executions/{executionId}/expected';
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
export type AgentsExecutionsExpectedListErrors = {
|
|
1085
|
+
/**
|
|
1086
|
+
* Validation error. Request shape did not match the spec.
|
|
1087
|
+
*/
|
|
1088
|
+
400: ApiErrorEnvelope;
|
|
1089
|
+
/**
|
|
1090
|
+
* Missing or invalid API key
|
|
1091
|
+
*/
|
|
1092
|
+
401: ApiErrorEnvelope;
|
|
1093
|
+
/**
|
|
1094
|
+
* API key lacks required scope
|
|
1095
|
+
*/
|
|
1096
|
+
403: ApiErrorEnvelope;
|
|
1097
|
+
/**
|
|
1098
|
+
* Resource not found
|
|
1099
|
+
*/
|
|
1100
|
+
404: ApiErrorEnvelope;
|
|
1101
|
+
/**
|
|
1102
|
+
* Rate limit exceeded
|
|
1103
|
+
*/
|
|
1104
|
+
429: ApiErrorEnvelope;
|
|
1105
|
+
/**
|
|
1106
|
+
* Internal server error
|
|
1107
|
+
*/
|
|
1108
|
+
500: ApiErrorEnvelope;
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
export type AgentsExecutionsExpectedListError =
|
|
1112
|
+
AgentsExecutionsExpectedListErrors[keyof AgentsExecutionsExpectedListErrors];
|
|
1113
|
+
|
|
1114
|
+
export type AgentsExecutionsExpectedListResponses = {
|
|
1115
|
+
/**
|
|
1116
|
+
* Expected artifacts
|
|
1117
|
+
*/
|
|
1118
|
+
200: AgentExecutionExpectedArtifacts;
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
export type AgentsExecutionsExpectedListResponse =
|
|
1122
|
+
AgentsExecutionsExpectedListResponses[keyof AgentsExecutionsExpectedListResponses];
|
|
1123
|
+
|
|
1124
|
+
export type AgentsExecutionsExpectedCreateData = {
|
|
1125
|
+
body: CopyAgentExecutionOutputToExpectedBody;
|
|
1126
|
+
path: {
|
|
1127
|
+
/**
|
|
1128
|
+
* Execution id
|
|
1129
|
+
*/
|
|
1130
|
+
executionId: string;
|
|
1131
|
+
};
|
|
1132
|
+
query?: never;
|
|
1133
|
+
url: '/api/v1/agents/executions/{executionId}/expected';
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
export type AgentsExecutionsExpectedCreateErrors = {
|
|
1137
|
+
/**
|
|
1138
|
+
* Validation error. Request shape did not match the spec.
|
|
1139
|
+
*/
|
|
1140
|
+
400: ApiErrorEnvelope;
|
|
1141
|
+
/**
|
|
1142
|
+
* Missing or invalid API key
|
|
1143
|
+
*/
|
|
1144
|
+
401: ApiErrorEnvelope;
|
|
1145
|
+
/**
|
|
1146
|
+
* API key lacks required scope
|
|
1147
|
+
*/
|
|
1148
|
+
403: ApiErrorEnvelope;
|
|
1149
|
+
/**
|
|
1150
|
+
* Resource not found
|
|
1151
|
+
*/
|
|
1152
|
+
404: ApiErrorEnvelope;
|
|
1153
|
+
/**
|
|
1154
|
+
* Rate limit exceeded
|
|
1155
|
+
*/
|
|
1156
|
+
429: ApiErrorEnvelope;
|
|
1157
|
+
/**
|
|
1158
|
+
* Internal server error
|
|
1159
|
+
*/
|
|
1160
|
+
500: ApiErrorEnvelope;
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
export type AgentsExecutionsExpectedCreateError =
|
|
1164
|
+
AgentsExecutionsExpectedCreateErrors[keyof AgentsExecutionsExpectedCreateErrors];
|
|
1165
|
+
|
|
1166
|
+
export type AgentsExecutionsExpectedCreateResponses = {
|
|
1167
|
+
/**
|
|
1168
|
+
* Expected file created
|
|
1169
|
+
*/
|
|
1170
|
+
201: {
|
|
1171
|
+
name: string;
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
export type AgentsExecutionsExpectedCreateResponse =
|
|
1176
|
+
AgentsExecutionsExpectedCreateResponses[keyof AgentsExecutionsExpectedCreateResponses];
|
|
1177
|
+
|
|
1178
|
+
export type AgentsExecutionsFeedbackDeleteData = {
|
|
1179
|
+
body?: never;
|
|
1180
|
+
path: {
|
|
1181
|
+
/**
|
|
1182
|
+
* Execution id
|
|
1183
|
+
*/
|
|
1184
|
+
executionId: string;
|
|
1185
|
+
};
|
|
1186
|
+
query?: never;
|
|
1187
|
+
url: '/api/v1/agents/executions/{executionId}/feedback';
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
export type AgentsExecutionsFeedbackDeleteErrors = {
|
|
1191
|
+
/**
|
|
1192
|
+
* Validation error. Request shape did not match the spec.
|
|
1193
|
+
*/
|
|
1194
|
+
400: ApiErrorEnvelope;
|
|
1195
|
+
/**
|
|
1196
|
+
* Missing or invalid API key
|
|
1197
|
+
*/
|
|
1198
|
+
401: ApiErrorEnvelope;
|
|
1199
|
+
/**
|
|
1200
|
+
* API key lacks required scope
|
|
1201
|
+
*/
|
|
1202
|
+
403: ApiErrorEnvelope;
|
|
1203
|
+
/**
|
|
1204
|
+
* Resource not found
|
|
1205
|
+
*/
|
|
1206
|
+
404: ApiErrorEnvelope;
|
|
1207
|
+
/**
|
|
1208
|
+
* Rate limit exceeded
|
|
1209
|
+
*/
|
|
1210
|
+
429: ApiErrorEnvelope;
|
|
1211
|
+
/**
|
|
1212
|
+
* Internal server error
|
|
1213
|
+
*/
|
|
1214
|
+
500: ApiErrorEnvelope;
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
export type AgentsExecutionsFeedbackDeleteError =
|
|
1218
|
+
AgentsExecutionsFeedbackDeleteErrors[keyof AgentsExecutionsFeedbackDeleteErrors];
|
|
1219
|
+
|
|
1220
|
+
export type AgentsExecutionsFeedbackDeleteResponses = {
|
|
1221
|
+
/**
|
|
1222
|
+
* Cleared execution feedback
|
|
1223
|
+
*/
|
|
1224
|
+
200: AgentExecutionFeedbackDetail;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
export type AgentsExecutionsFeedbackDeleteResponse =
|
|
1228
|
+
AgentsExecutionsFeedbackDeleteResponses[keyof AgentsExecutionsFeedbackDeleteResponses];
|
|
1229
|
+
|
|
1230
|
+
export type AgentsExecutionsFeedbackGetData = {
|
|
1231
|
+
body?: never;
|
|
1232
|
+
path: {
|
|
1233
|
+
/**
|
|
1234
|
+
* Execution id
|
|
1235
|
+
*/
|
|
1236
|
+
executionId: string;
|
|
1237
|
+
};
|
|
1238
|
+
query?: never;
|
|
1239
|
+
url: '/api/v1/agents/executions/{executionId}/feedback';
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
export type AgentsExecutionsFeedbackGetErrors = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Validation error. Request shape did not match the spec.
|
|
1245
|
+
*/
|
|
1246
|
+
400: ApiErrorEnvelope;
|
|
1247
|
+
/**
|
|
1248
|
+
* Missing or invalid API key
|
|
1249
|
+
*/
|
|
1250
|
+
401: ApiErrorEnvelope;
|
|
1251
|
+
/**
|
|
1252
|
+
* API key lacks required scope
|
|
1253
|
+
*/
|
|
1254
|
+
403: ApiErrorEnvelope;
|
|
1255
|
+
/**
|
|
1256
|
+
* Resource not found
|
|
1257
|
+
*/
|
|
1258
|
+
404: ApiErrorEnvelope;
|
|
1259
|
+
/**
|
|
1260
|
+
* Rate limit exceeded
|
|
1261
|
+
*/
|
|
1262
|
+
429: ApiErrorEnvelope;
|
|
1263
|
+
/**
|
|
1264
|
+
* Internal server error
|
|
1265
|
+
*/
|
|
1266
|
+
500: ApiErrorEnvelope;
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
export type AgentsExecutionsFeedbackGetError =
|
|
1270
|
+
AgentsExecutionsFeedbackGetErrors[keyof AgentsExecutionsFeedbackGetErrors];
|
|
1271
|
+
|
|
1272
|
+
export type AgentsExecutionsFeedbackGetResponses = {
|
|
1273
|
+
/**
|
|
1274
|
+
* Execution feedback
|
|
1275
|
+
*/
|
|
1276
|
+
200: AgentExecutionFeedbackDetail;
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
export type AgentsExecutionsFeedbackGetResponse =
|
|
1280
|
+
AgentsExecutionsFeedbackGetResponses[keyof AgentsExecutionsFeedbackGetResponses];
|
|
1281
|
+
|
|
1282
|
+
export type AgentsExecutionsFeedbackUpdateData = {
|
|
1283
|
+
body: UpdateAgentExecutionFeedbackBody;
|
|
1284
|
+
path: {
|
|
1285
|
+
/**
|
|
1286
|
+
* Execution id
|
|
1287
|
+
*/
|
|
1288
|
+
executionId: string;
|
|
1289
|
+
};
|
|
1290
|
+
query?: never;
|
|
1291
|
+
url: '/api/v1/agents/executions/{executionId}/feedback';
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
export type AgentsExecutionsFeedbackUpdateErrors = {
|
|
1295
|
+
/**
|
|
1296
|
+
* Validation error. Request shape did not match the spec.
|
|
1297
|
+
*/
|
|
1298
|
+
400: ApiErrorEnvelope;
|
|
1299
|
+
/**
|
|
1300
|
+
* Missing or invalid API key
|
|
1301
|
+
*/
|
|
1302
|
+
401: ApiErrorEnvelope;
|
|
1303
|
+
/**
|
|
1304
|
+
* API key lacks required scope
|
|
1305
|
+
*/
|
|
1306
|
+
403: ApiErrorEnvelope;
|
|
1307
|
+
/**
|
|
1308
|
+
* Resource not found
|
|
1309
|
+
*/
|
|
1310
|
+
404: ApiErrorEnvelope;
|
|
1311
|
+
/**
|
|
1312
|
+
* Rate limit exceeded
|
|
1313
|
+
*/
|
|
1314
|
+
429: ApiErrorEnvelope;
|
|
1315
|
+
/**
|
|
1316
|
+
* Internal server error
|
|
1317
|
+
*/
|
|
1318
|
+
500: ApiErrorEnvelope;
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
export type AgentsExecutionsFeedbackUpdateError =
|
|
1322
|
+
AgentsExecutionsFeedbackUpdateErrors[keyof AgentsExecutionsFeedbackUpdateErrors];
|
|
1323
|
+
|
|
1324
|
+
export type AgentsExecutionsFeedbackUpdateResponses = {
|
|
1325
|
+
/**
|
|
1326
|
+
* Updated execution feedback
|
|
1327
|
+
*/
|
|
1328
|
+
200: AgentExecutionFeedbackDetail;
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
export type AgentsExecutionsFeedbackUpdateResponse =
|
|
1332
|
+
AgentsExecutionsFeedbackUpdateResponses[keyof AgentsExecutionsFeedbackUpdateResponses];
|
|
1333
|
+
|
|
1334
|
+
export type AgentsExecutionsFilesDownloadData = {
|
|
1335
|
+
body?: never;
|
|
1336
|
+
path: {
|
|
1337
|
+
executionId: string;
|
|
1338
|
+
kind: 'input' | 'output' | 'issues' | 'trace';
|
|
1339
|
+
filename: string;
|
|
1340
|
+
};
|
|
1341
|
+
query?: never;
|
|
1342
|
+
url: '/api/v1/agents/executions/{executionId}/files/{kind}/{filename}';
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
export type AgentsExecutionsFilesDownloadErrors = {
|
|
1346
|
+
/**
|
|
1347
|
+
* Validation error. Request shape did not match the spec.
|
|
1348
|
+
*/
|
|
1349
|
+
400: ApiErrorEnvelope;
|
|
1350
|
+
/**
|
|
1351
|
+
* Missing or invalid API key
|
|
1352
|
+
*/
|
|
1353
|
+
401: ApiErrorEnvelope;
|
|
1354
|
+
/**
|
|
1355
|
+
* API key lacks required scope
|
|
1356
|
+
*/
|
|
1357
|
+
403: ApiErrorEnvelope;
|
|
1358
|
+
/**
|
|
1359
|
+
* Resource not found
|
|
1360
|
+
*/
|
|
1361
|
+
404: ApiErrorEnvelope;
|
|
1362
|
+
/**
|
|
1363
|
+
* Rate limit exceeded
|
|
1364
|
+
*/
|
|
1365
|
+
429: ApiErrorEnvelope;
|
|
1366
|
+
/**
|
|
1367
|
+
* Internal server error
|
|
1368
|
+
*/
|
|
1369
|
+
500: ApiErrorEnvelope;
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
export type AgentsExecutionsFilesDownloadError =
|
|
1373
|
+
AgentsExecutionsFilesDownloadErrors[keyof AgentsExecutionsFilesDownloadErrors];
|
|
1374
|
+
|
|
1375
|
+
export type AgentsExecutionsFilesDownloadResponses = {
|
|
1376
|
+
/**
|
|
1377
|
+
* Execution file bytes
|
|
1378
|
+
*/
|
|
1379
|
+
200: unknown;
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
export type AgentsExecutionsRerunData = {
|
|
1383
|
+
body?: never;
|
|
1384
|
+
path: {
|
|
1385
|
+
/**
|
|
1386
|
+
* Source execution id
|
|
1387
|
+
*/
|
|
1388
|
+
executionId: string;
|
|
1389
|
+
};
|
|
1390
|
+
query?: never;
|
|
1391
|
+
url: '/api/v1/agents/executions/{executionId}/rerun';
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
export type AgentsExecutionsRerunErrors = {
|
|
1395
|
+
/**
|
|
1396
|
+
* Validation error. Request shape did not match the spec.
|
|
1397
|
+
*/
|
|
1398
|
+
400: ApiErrorEnvelope;
|
|
1399
|
+
/**
|
|
1400
|
+
* Missing or invalid API key
|
|
1401
|
+
*/
|
|
1402
|
+
401: ApiErrorEnvelope;
|
|
1403
|
+
/**
|
|
1404
|
+
* API key lacks required scope
|
|
1405
|
+
*/
|
|
1406
|
+
403: ApiErrorEnvelope;
|
|
1407
|
+
/**
|
|
1408
|
+
* Resource not found
|
|
1409
|
+
*/
|
|
1410
|
+
404: ApiErrorEnvelope;
|
|
1411
|
+
/**
|
|
1412
|
+
* Rate limit exceeded
|
|
1413
|
+
*/
|
|
1414
|
+
429: ApiErrorEnvelope;
|
|
1415
|
+
/**
|
|
1416
|
+
* Internal server error
|
|
1417
|
+
*/
|
|
1418
|
+
500: ApiErrorEnvelope;
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
export type AgentsExecutionsRerunError =
|
|
1422
|
+
AgentsExecutionsRerunErrors[keyof AgentsExecutionsRerunErrors];
|
|
1423
|
+
|
|
1424
|
+
export type AgentsExecutionsRerunResponses = {
|
|
1425
|
+
/**
|
|
1426
|
+
* Rerun accepted
|
|
1427
|
+
*/
|
|
1428
|
+
202: RerunAgentExecutionResponse;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
export type AgentsExecutionsRerunResponse =
|
|
1432
|
+
AgentsExecutionsRerunResponses[keyof AgentsExecutionsRerunResponses];
|
|
1433
|
+
|
|
602
1434
|
export type AgentsExecutionsGetData = {
|
|
603
1435
|
body?: never;
|
|
604
1436
|
path: {
|
|
@@ -609,7 +1441,7 @@ export type AgentsExecutionsGetData = {
|
|
|
609
1441
|
};
|
|
610
1442
|
query?: {
|
|
611
1443
|
/**
|
|
612
|
-
* Comma-separated optional sections, e.g. files
|
|
1444
|
+
* Comma-separated optional sections, e.g. feedback,expected,files
|
|
613
1445
|
*/
|
|
614
1446
|
include?: string;
|
|
615
1447
|
};
|