@eigenpal/sdk 0.5.11 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,21 +4,6 @@ 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
-
22
7
  export type PatchAgentBody = {
23
8
  name?: string;
24
9
  description?: string;
@@ -34,9 +19,22 @@ export type RunAgentBody = {
34
19
  _metadata?: {
35
20
  [key: string]: unknown;
36
21
  };
22
+ /**
23
+ * Git source ref to resolve for this run. Defaults to latest. Supports latest, main, exact versions/tags such as 1.2.3, semver ranges such as 1.2.x or 1.x, and exact commit SHAs.
24
+ */
25
+ sourceRef?: string;
37
26
  [key: string]: unknown;
38
27
  };
39
28
 
29
+ export type CreateAgentBody = {
30
+ name: string;
31
+ slug: string;
32
+ description?: string;
33
+ config?: {
34
+ [key: string]: unknown;
35
+ };
36
+ };
37
+
40
38
  export type RenameExpectedFileBody = {
41
39
  name: string;
42
40
  };
@@ -56,13 +54,42 @@ export type UpdateAgentExecutionFeedbackBody = {
56
54
  expected?: unknown | null;
57
55
  };
58
56
 
59
- export type CreateAgentBody = {
60
- name: string;
61
- slug: string;
62
- description?: string;
63
- config?: {
64
- [key: string]: unknown;
57
+ export type SourceSecretsDecryptBody = {
58
+ organizationId?: string;
59
+ executionId?: string;
60
+ sourcePath?: string;
61
+ sourceCommit?: string;
62
+ secretName?: string;
63
+ encrypted?: {
64
+ algorithm: 'aes-256-gcm';
65
+ keyId: string;
66
+ nonce: string;
67
+ ciphertext: string;
68
+ tag: string;
65
69
  };
70
+ secrets?: Array<{
71
+ sourcePath: string;
72
+ secretName: string;
73
+ encrypted: {
74
+ algorithm: 'aes-256-gcm';
75
+ keyId: string;
76
+ nonce: string;
77
+ ciphertext: string;
78
+ tag: string;
79
+ };
80
+ }>;
81
+ };
82
+
83
+ export type SourceSecretsEncryptBody = {
84
+ organizationId?: string;
85
+ sourcePath?: string;
86
+ secretName?: string;
87
+ plaintext?: string;
88
+ secrets?: Array<{
89
+ sourcePath: string;
90
+ secretName: string;
91
+ plaintext: string;
92
+ }>;
66
93
  };
67
94
 
68
95
  export type RunWorkflowBody = {
@@ -88,59 +115,6 @@ export type RunWorkflowBody = {
88
115
  trigger?: 'api' | 'cli';
89
116
  };
90
117
 
91
- export type ListAgentExecutionsResponse = {
92
- executions: Array<AgentExecutionSummary>;
93
- total: number;
94
- limit: number;
95
- offset: number;
96
- scanLimited?: boolean;
97
- noResolvedAnchor?: boolean;
98
- };
99
-
100
- export type AgentExecutionSummary = {
101
- id: string;
102
- status: ExecutionStatus;
103
- model?: string | null;
104
- output?: unknown | null;
105
- schemaValid?: boolean | null;
106
- error?: string | null;
107
- exampleId?: string | null;
108
- batchId?: string | null;
109
- createdAt: string;
110
- startedAt?: string | null;
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
- }>;
130
- [key: string]: unknown;
131
- };
132
-
133
- export type ExecutionStatus =
134
- | 'created'
135
- | 'pending'
136
- | 'running'
137
- | 'waiting'
138
- | 'finalizing'
139
- | 'completed'
140
- | 'failed'
141
- | 'cancelled'
142
- | 'rejected';
143
-
144
118
  export type ApiErrorEnvelope = {
145
119
  issues: Array<ApiErrorIssue>;
146
120
  /**
@@ -209,7 +183,7 @@ export type PatchAgentResponse = {
209
183
  };
210
184
 
211
185
  export type RunAgentResponse = {
212
- executionId: string;
186
+ runId: string;
213
187
  status?: ExecutionStatus | 'timeout';
214
188
  output?: unknown;
215
189
  schemaValid?: boolean | null;
@@ -219,8 +193,78 @@ export type RunAgentResponse = {
219
193
  };
220
194
  };
221
195
 
196
+ export type ExecutionStatus =
197
+ | 'created'
198
+ | 'pending'
199
+ | 'running'
200
+ | 'waiting'
201
+ | 'finalizing'
202
+ | 'completed'
203
+ | 'failed'
204
+ | 'cancelled'
205
+ | 'rejected';
206
+
207
+ export type ListAgentRunsResponse = {
208
+ runs: Array<AgentExecutionSummary>;
209
+ total: number;
210
+ limit: number;
211
+ offset: number;
212
+ scanLimited?: boolean;
213
+ noResolvedAnchor?: boolean;
214
+ };
215
+
216
+ export type AgentExecutionSummary = {
217
+ id: string;
218
+ status: ExecutionStatus;
219
+ model?: string | null;
220
+ output?: unknown | null;
221
+ schemaValid?: boolean | null;
222
+ error?: string | null;
223
+ requestedSourceRef?: string | null;
224
+ resolvedGitRef?: string | null;
225
+ resolvedGitTag?: string | null;
226
+ resolvedCommitSha?: string | null;
227
+ exampleId?: string | null;
228
+ batchId?: string | null;
229
+ createdAt: string;
230
+ startedAt?: string | null;
231
+ completedAt?: string | null;
232
+ feedback?: {
233
+ rating?: 'pass' | 'fail' | 'partial' | null;
234
+ status?: 'open' | 'resolved' | 'ignored' | null;
235
+ createdAt?: string | null;
236
+ createdBy?: string | null;
237
+ createdByEmail?: string | null;
238
+ updatedAt?: string | null;
239
+ resolvedAt?: string | null;
240
+ resolvedBy?: string | null;
241
+ resolvedByEmail?: string | null;
242
+ resolvedBySessionId?: string | null;
243
+ promotedExampleName?: string | null;
244
+ body: string;
245
+ } | null;
246
+ expected?: unknown | null;
247
+ expectedFiles?: Array<{
248
+ name: string;
249
+ }>;
250
+ [key: string]: unknown;
251
+ };
252
+
253
+ export type ListAgentsResponse = {
254
+ data: Array<AgentSummary>;
255
+ total: number;
256
+ limit: number;
257
+ offset: number;
258
+ };
259
+
260
+ export type CreateAgentResponse = {
261
+ agent: AgentSummary;
262
+ sourceRecovered?: boolean;
263
+ recoveryKind?: 'existing' | 'legacy_hydrate' | 'minimal_scaffold';
264
+ };
265
+
222
266
  export type CancelAgentExecutionResponse = {
223
- execution: AgentExecutionSummary;
267
+ run: AgentExecutionSummary;
224
268
  };
225
269
 
226
270
  export type RenameExpectedFileResponse = {
@@ -257,25 +301,84 @@ export type AgentExecutionFeedback = {
257
301
  body: string;
258
302
  };
259
303
 
260
- export type RerunAgentExecutionResponse = {
261
- executionId: string;
262
- sourceExecutionId: string;
304
+ export type RerunAgentRunResponse = {
305
+ runId: string;
306
+ sourceRunId: string;
263
307
  status: ExecutionStatus;
264
308
  };
265
309
 
266
- export type AgentExecutionResponse = {
267
- execution: AgentExecutionSummary;
310
+ export type AgentRunResponse = {
311
+ run: AgentExecutionSummary;
268
312
  };
269
313
 
270
- export type ListAgentsResponse = {
271
- data: Array<AgentSummary>;
272
- total: number;
273
- limit: number;
274
- offset: number;
314
+ export type AutomationSyncResponse = {
315
+ automation: {
316
+ id: string;
317
+ type: 'agent' | 'workflow';
318
+ slug: string;
319
+ status: 'active' | 'archived';
320
+ updatedAt: string;
321
+ };
322
+ release: {
323
+ version: string;
324
+ tag: string;
325
+ commit: string;
326
+ };
327
+ warnings: Array<string>;
275
328
  };
276
329
 
277
- export type CreateAgentResponse = {
278
- agent: AgentSummary;
330
+ export type SourceLockfileResponse = {
331
+ lockfileVersion: 1;
332
+ eigenpalVersion: string;
333
+ inputHash: string;
334
+ root: Schema0;
335
+ };
336
+
337
+ export type RawSourceResponse = {
338
+ ref: string;
339
+ path: string;
340
+ contentType: string;
341
+ content: string;
342
+ };
343
+
344
+ export type SourceReleasesResponse = {
345
+ packagePath: string;
346
+ releases: Array<{
347
+ version: string;
348
+ tag: string;
349
+ commit: string;
350
+ }>;
351
+ };
352
+
353
+ export type SourceRepositoryResponse = {
354
+ gitRepositoryPath: string;
355
+ remoteUrl: string;
356
+ };
357
+
358
+ export type SourceSecretsDecryptResponse = {
359
+ plaintext?: string;
360
+ secrets?: {
361
+ [key: string]: string;
362
+ };
363
+ };
364
+
365
+ export type SourceSecretsEncryptResponse = {
366
+ encrypted?: {
367
+ algorithm: 'aes-256-gcm';
368
+ keyId: string;
369
+ nonce: string;
370
+ ciphertext: string;
371
+ tag: string;
372
+ };
373
+ secrets?: {
374
+ [key: string]: {
375
+ algorithm: 'aes-256-gcm';
376
+ keyId: string;
377
+ nonce: string;
378
+ ciphertext: string;
379
+ tag: string;
380
+ };
381
+ };
279
382
  };
280
383
 
281
384
  export type ListWorkflowExecutionsResponse = {
@@ -308,6 +411,10 @@ export type ExecutionSummary = {
308
411
  createdAt: string;
309
412
  startedAt?: string | null;
310
413
  completedAt?: string | null;
414
+ /**
415
+ * Total wall-clock duration in milliseconds. Only set after the execution reaches a terminal status.
416
+ */
417
+ durationMs?: number | null;
311
418
  /**
312
419
  * Owning workflow (null when the workflow has been deleted)
313
420
  */
@@ -317,7 +424,7 @@ export type ExecutionSummary = {
317
424
  } | null;
318
425
  };
319
426
 
320
- export type WorkflowSummary = {
427
+ export type WorkflowDetail = {
321
428
  /**
322
429
  * Workflow id (e.g. wf_abc123).
323
430
  */
@@ -332,6 +439,10 @@ export type WorkflowSummary = {
332
439
  version?: string | null;
333
440
  createdAt: string;
334
441
  updatedAt?: string;
442
+ /**
443
+ * YAML for the current version. Null until a version is published. Heavy; only returned on single-workflow GET, not on list.
444
+ */
445
+ yamlContent?: string | null;
335
446
  };
336
447
 
337
448
  export type RunWorkflowResponse = {
@@ -421,7 +532,33 @@ export type ListWorkflowsResponse = {
421
532
  offset: number;
422
533
  };
423
534
 
424
- export type AgentsExecutionsListData = {
535
+ export type WorkflowSummary = {
536
+ /**
537
+ * Workflow id (e.g. wf_abc123).
538
+ */
539
+ id: string;
540
+ /**
541
+ * Human-readable workflow name from the YAML (e.g. "extract-invoice"). Null when no version is published yet.
542
+ */
543
+ name?: string | null;
544
+ /**
545
+ * Current release tag (e.g. "1.2.4"). Null until a version is published.
546
+ */
547
+ version?: string | null;
548
+ createdAt: string;
549
+ updatedAt?: string;
550
+ };
551
+
552
+ export type Schema0 = {
553
+ packagePath: string;
554
+ requestedRef: string;
555
+ resolvedRef: string;
556
+ resolvedTag?: string;
557
+ commit: string;
558
+ dependencies: Array<Schema0>;
559
+ };
560
+
561
+ export type AgentsFilesListOrGetData = {
425
562
  body?: never;
426
563
  path: {
427
564
  /**
@@ -430,38 +567,372 @@ export type AgentsExecutionsListData = {
430
567
  agentId: string;
431
568
  };
432
569
  query?: {
570
+ path?: string;
571
+ prefix?: string;
433
572
  /**
434
- * Execution status filter
435
- */
436
- status?: string;
437
- /**
438
- * Experiment batch id filter
439
- */
440
- batchId?: string;
441
- /**
442
- * Exact dataset example name filter
443
- */
444
- exampleName?: string;
445
- /**
446
- * Substring match on example name
447
- */
448
- exampleNameContains?: string;
449
- /**
450
- * Only executions created at/after this ISO timestamp
451
- */
452
- createdAfter?: string;
453
- /**
454
- * Only executions created at/before this ISO timestamp
573
+ * Git ref (default main)
455
574
  */
456
- createdBefore?: string;
575
+ ref?: string;
576
+ };
577
+ url: '/api/v1/agents/{agentId}/files';
578
+ };
579
+
580
+ export type AgentsFilesListOrGetErrors = {
581
+ /**
582
+ * Validation error. Request shape did not match the spec.
583
+ */
584
+ 400: ApiErrorEnvelope;
585
+ /**
586
+ * Missing or invalid API key
587
+ */
588
+ 401: ApiErrorEnvelope;
589
+ /**
590
+ * API key lacks required scope
591
+ */
592
+ 403: ApiErrorEnvelope;
593
+ /**
594
+ * Resource not found
595
+ */
596
+ 404: ApiErrorEnvelope;
597
+ /**
598
+ * Rate limit exceeded
599
+ */
600
+ 429: ApiErrorEnvelope;
601
+ /**
602
+ * Internal server error
603
+ */
604
+ 500: ApiErrorEnvelope;
605
+ };
606
+
607
+ export type AgentsFilesListOrGetError =
608
+ AgentsFilesListOrGetErrors[keyof AgentsFilesListOrGetErrors];
609
+
610
+ export type AgentsFilesListOrGetResponses = {
611
+ /**
612
+ * Agent source files or one file payload
613
+ */
614
+ 200: unknown;
615
+ };
616
+
617
+ export type AgentsFilesUploadBatchData = {
618
+ body: {
619
+ [key: string]: unknown;
620
+ };
621
+ path: {
457
622
  /**
458
- * Only executions completed at/after this ISO timestamp
623
+ * Agent id or slug
624
+ */
625
+ agentId: string;
626
+ };
627
+ query?: never;
628
+ url: '/api/v1/agents/{agentId}/files';
629
+ };
630
+
631
+ export type AgentsFilesUploadBatchErrors = {
632
+ /**
633
+ * Validation error. Request shape did not match the spec.
634
+ */
635
+ 400: ApiErrorEnvelope;
636
+ /**
637
+ * Missing or invalid API key
638
+ */
639
+ 401: ApiErrorEnvelope;
640
+ /**
641
+ * API key lacks required scope
642
+ */
643
+ 403: ApiErrorEnvelope;
644
+ /**
645
+ * Resource not found
646
+ */
647
+ 404: ApiErrorEnvelope;
648
+ /**
649
+ * Git-backed source — S3 writes disabled
650
+ */
651
+ 409: {
652
+ error: string;
653
+ };
654
+ /**
655
+ * Rate limit exceeded
656
+ */
657
+ 429: ApiErrorEnvelope;
658
+ /**
659
+ * Internal server error
660
+ */
661
+ 500: ApiErrorEnvelope;
662
+ };
663
+
664
+ export type AgentsFilesUploadBatchError =
665
+ AgentsFilesUploadBatchErrors[keyof AgentsFilesUploadBatchErrors];
666
+
667
+ export type AgentsFilesPutData = {
668
+ body: {
669
+ [key: string]: unknown;
670
+ };
671
+ path: {
672
+ /**
673
+ * Agent id or slug
674
+ */
675
+ agentId: string;
676
+ };
677
+ query?: {
678
+ path?: string;
679
+ prefix?: string;
680
+ /**
681
+ * Git ref (default main)
682
+ */
683
+ ref?: string;
684
+ };
685
+ url: '/api/v1/agents/{agentId}/files';
686
+ };
687
+
688
+ export type AgentsFilesPutErrors = {
689
+ /**
690
+ * Validation error. Request shape did not match the spec.
691
+ */
692
+ 400: ApiErrorEnvelope;
693
+ /**
694
+ * Missing or invalid API key
695
+ */
696
+ 401: ApiErrorEnvelope;
697
+ /**
698
+ * API key lacks required scope
699
+ */
700
+ 403: ApiErrorEnvelope;
701
+ /**
702
+ * Resource not found
703
+ */
704
+ 404: ApiErrorEnvelope;
705
+ /**
706
+ * Git-backed source — S3 writes disabled
707
+ */
708
+ 409: {
709
+ error: string;
710
+ };
711
+ /**
712
+ * Rate limit exceeded
713
+ */
714
+ 429: ApiErrorEnvelope;
715
+ /**
716
+ * Internal server error
717
+ */
718
+ 500: ApiErrorEnvelope;
719
+ };
720
+
721
+ export type AgentsFilesPutError = AgentsFilesPutErrors[keyof AgentsFilesPutErrors];
722
+
723
+ export type AgentsGetData = {
724
+ body?: never;
725
+ path: {
726
+ /**
727
+ * Agent id or slug
728
+ */
729
+ agentId: string;
730
+ };
731
+ query?: {
732
+ /**
733
+ * Comma-separated optional sections, e.g. files,dataset
734
+ */
735
+ include?: string;
736
+ };
737
+ url: '/api/v1/agents/{agentId}';
738
+ };
739
+
740
+ export type AgentsGetErrors = {
741
+ /**
742
+ * Validation error. Request shape did not match the spec.
743
+ */
744
+ 400: ApiErrorEnvelope;
745
+ /**
746
+ * Missing or invalid API key
747
+ */
748
+ 401: ApiErrorEnvelope;
749
+ /**
750
+ * API key lacks required scope
751
+ */
752
+ 403: ApiErrorEnvelope;
753
+ /**
754
+ * Resource not found
755
+ */
756
+ 404: ApiErrorEnvelope;
757
+ /**
758
+ * Rate limit exceeded
759
+ */
760
+ 429: ApiErrorEnvelope;
761
+ /**
762
+ * Internal server error
763
+ */
764
+ 500: ApiErrorEnvelope;
765
+ };
766
+
767
+ export type AgentsGetError = AgentsGetErrors[keyof AgentsGetErrors];
768
+
769
+ export type AgentsGetResponses = {
770
+ /**
771
+ * Agent
772
+ */
773
+ 200: GetAgentResponse;
774
+ };
775
+
776
+ export type AgentsGetResponse = AgentsGetResponses[keyof AgentsGetResponses];
777
+
778
+ export type AgentsUpdateData = {
779
+ body: PatchAgentBody;
780
+ path: {
781
+ /**
782
+ * Agent id or slug
783
+ */
784
+ agentId: string;
785
+ };
786
+ query?: never;
787
+ url: '/api/v1/agents/{agentId}';
788
+ };
789
+
790
+ export type AgentsUpdateErrors = {
791
+ /**
792
+ * Validation error. Request shape did not match the spec.
793
+ */
794
+ 400: ApiErrorEnvelope;
795
+ /**
796
+ * Missing or invalid API key
797
+ */
798
+ 401: ApiErrorEnvelope;
799
+ /**
800
+ * API key lacks required scope
801
+ */
802
+ 403: ApiErrorEnvelope;
803
+ /**
804
+ * Resource not found
805
+ */
806
+ 404: ApiErrorEnvelope;
807
+ /**
808
+ * Rate limit exceeded
809
+ */
810
+ 429: ApiErrorEnvelope;
811
+ /**
812
+ * Internal server error
813
+ */
814
+ 500: ApiErrorEnvelope;
815
+ };
816
+
817
+ export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
818
+
819
+ export type AgentsUpdateResponses = {
820
+ /**
821
+ * Updated agent
822
+ */
823
+ 200: PatchAgentResponse;
824
+ };
825
+
826
+ export type AgentsUpdateResponse = AgentsUpdateResponses[keyof AgentsUpdateResponses];
827
+
828
+ export type AgentsRunData = {
829
+ body: RunAgentBody;
830
+ path: {
831
+ /**
832
+ * Agent id or slug
833
+ */
834
+ agentId: string;
835
+ };
836
+ query?: {
837
+ /**
838
+ * Seconds to hold the connection waiting for completion (max 600). Omit for async.
839
+ */
840
+ wait_for_completion?: number;
841
+ /**
842
+ * Git source ref to resolve for this run. Defaults to latest. Supports latest, main, exact versions/tags such as 1.2.3, semver ranges such as 1.2.x or 1.x, and exact commit SHAs.
843
+ */
844
+ sourceRef?: string;
845
+ };
846
+ url: '/api/v1/agents/{agentId}/run';
847
+ };
848
+
849
+ export type AgentsRunErrors = {
850
+ /**
851
+ * Validation error. Request shape did not match the spec.
852
+ */
853
+ 400: ApiErrorEnvelope;
854
+ /**
855
+ * Missing or invalid API key
856
+ */
857
+ 401: ApiErrorEnvelope;
858
+ /**
859
+ * API key lacks required scope
860
+ */
861
+ 403: ApiErrorEnvelope;
862
+ /**
863
+ * Resource not found
864
+ */
865
+ 404: ApiErrorEnvelope;
866
+ /**
867
+ * Rate limit exceeded
868
+ */
869
+ 429: ApiErrorEnvelope;
870
+ /**
871
+ * Internal server error
872
+ */
873
+ 500: ApiErrorEnvelope;
874
+ };
875
+
876
+ export type AgentsRunError = AgentsRunErrors[keyof AgentsRunErrors];
877
+
878
+ export type AgentsRunResponses = {
879
+ /**
880
+ * Execution completed while waiting
881
+ */
882
+ 200: RunAgentResponse;
883
+ /**
884
+ * Execution accepted
885
+ */
886
+ 202: RunAgentResponse;
887
+ };
888
+
889
+ export type AgentsRunResponse = AgentsRunResponses[keyof AgentsRunResponses];
890
+
891
+ export type AgentsRunsListData = {
892
+ body?: never;
893
+ path: {
894
+ /**
895
+ * Agent id or slug
896
+ */
897
+ agentId: string;
898
+ };
899
+ query?: {
900
+ /**
901
+ * Run status filter
902
+ */
903
+ status?: string;
904
+ /**
905
+ * Experiment batch id filter
906
+ */
907
+ batchId?: string;
908
+ /**
909
+ * Exact dataset example id (folder name) filter
910
+ */
911
+ exampleId?: string;
912
+ /**
913
+ * Substring match on dataset example id
914
+ */
915
+ exampleIdContains?: string;
916
+ /**
917
+ * Only runs created at/after this ISO timestamp
918
+ */
919
+ createdAfter?: string;
920
+ /**
921
+ * Only runs created at/before this ISO timestamp
922
+ */
923
+ createdBefore?: string;
924
+ /**
925
+ * Only runs completed at/after this ISO timestamp
459
926
  */
460
927
  completedAfter?: string;
461
928
  /**
462
- * Only executions completed at/before this ISO timestamp
929
+ * Only runs completed at/before this ISO timestamp
463
930
  */
464
931
  completedBefore?: string;
932
+ /**
933
+ * Filter by the source ref requested when the run was created
934
+ */
935
+ sourceRef?: string;
465
936
  feedbackStatus?: 'open' | 'resolved' | 'ignored';
466
937
  feedbackRating?: 'pass' | 'fail' | 'partial' | 'none';
467
938
  hasFeedback?: boolean;
@@ -483,16 +954,73 @@ export type AgentsExecutionsListData = {
483
954
  * Comma-separated extra parts: feedback, expected, files
484
955
  */
485
956
  include?: string;
486
- sort?: 'createdAt' | 'completedAt' | 'status' | 'exampleName';
957
+ sort?: 'createdAt' | 'completedAt' | 'status' | 'exampleId';
487
958
  order?: 'asc' | 'desc';
488
959
  scanLimit?: number;
489
960
  limit?: number;
490
961
  offset?: number;
491
962
  };
492
- url: '/api/v1/agents/{agentId}/executions';
963
+ url: '/api/v1/agents/{agentId}/runs';
964
+ };
965
+
966
+ export type AgentsRunsListErrors = {
967
+ /**
968
+ * Validation error. Request shape did not match the spec.
969
+ */
970
+ 400: ApiErrorEnvelope;
971
+ /**
972
+ * Missing or invalid API key
973
+ */
974
+ 401: ApiErrorEnvelope;
975
+ /**
976
+ * API key lacks required scope
977
+ */
978
+ 403: ApiErrorEnvelope;
979
+ /**
980
+ * Resource not found
981
+ */
982
+ 404: ApiErrorEnvelope;
983
+ /**
984
+ * Rate limit exceeded
985
+ */
986
+ 429: ApiErrorEnvelope;
987
+ /**
988
+ * Internal server error
989
+ */
990
+ 500: ApiErrorEnvelope;
991
+ };
992
+
993
+ export type AgentsRunsListError = AgentsRunsListErrors[keyof AgentsRunsListErrors];
994
+
995
+ export type AgentsRunsListResponses = {
996
+ /**
997
+ * List of agent runs
998
+ */
999
+ 200: ListAgentRunsResponse;
1000
+ };
1001
+
1002
+ export type AgentsRunsListResponse = AgentsRunsListResponses[keyof AgentsRunsListResponses];
1003
+
1004
+ export type AgentsListData = {
1005
+ body?: never;
1006
+ path?: never;
1007
+ query?: {
1008
+ /**
1009
+ * Substring match against agent fields
1010
+ */
1011
+ search?: string;
1012
+ /**
1013
+ * Return a single agent by slug
1014
+ */
1015
+ slug?: string;
1016
+ limit?: number;
1017
+ offset?: number;
1018
+ includeArchived?: boolean;
1019
+ };
1020
+ url: '/api/v1/agents';
493
1021
  };
494
1022
 
495
- export type AgentsExecutionsListErrors = {
1023
+ export type AgentsListErrors = {
496
1024
  /**
497
1025
  * Validation error. Request shape did not match the spec.
498
1026
  */
@@ -519,35 +1047,25 @@ export type AgentsExecutionsListErrors = {
519
1047
  500: ApiErrorEnvelope;
520
1048
  };
521
1049
 
522
- export type AgentsExecutionsListError =
523
- AgentsExecutionsListErrors[keyof AgentsExecutionsListErrors];
1050
+ export type AgentsListError = AgentsListErrors[keyof AgentsListErrors];
524
1051
 
525
- export type AgentsExecutionsListResponses = {
1052
+ export type AgentsListResponses = {
526
1053
  /**
527
- * List of agent executions
1054
+ * Paginated list of agents
528
1055
  */
529
- 200: ListAgentExecutionsResponse;
1056
+ 200: ListAgentsResponse;
530
1057
  };
531
1058
 
532
- export type AgentsExecutionsListResponse =
533
- AgentsExecutionsListResponses[keyof AgentsExecutionsListResponses];
1059
+ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
534
1060
 
535
- export type AgentsFilesListOrGetData = {
536
- body?: never;
537
- path: {
538
- /**
539
- * Agent id or slug
540
- */
541
- agentId: string;
542
- };
543
- query?: {
544
- path?: string;
545
- prefix?: string;
546
- };
547
- url: '/api/v1/agents/{agentId}/files';
1061
+ export type AgentsCreateData = {
1062
+ body: CreateAgentBody;
1063
+ path?: never;
1064
+ query?: never;
1065
+ url: '/api/v1/agents';
548
1066
  };
549
1067
 
550
- export type AgentsFilesListOrGetErrors = {
1068
+ export type AgentsCreateErrors = {
551
1069
  /**
552
1070
  * Validation error. Request shape did not match the spec.
553
1071
  */
@@ -574,29 +1092,30 @@ export type AgentsFilesListOrGetErrors = {
574
1092
  500: ApiErrorEnvelope;
575
1093
  };
576
1094
 
577
- export type AgentsFilesListOrGetError =
578
- AgentsFilesListOrGetErrors[keyof AgentsFilesListOrGetErrors];
1095
+ export type AgentsCreateError = AgentsCreateErrors[keyof AgentsCreateErrors];
579
1096
 
580
- export type AgentsFilesListOrGetResponses = {
1097
+ export type AgentsCreateResponses = {
581
1098
  /**
582
- * Agent files or one file payload
1099
+ * Created agent
583
1100
  */
584
- 200: unknown;
1101
+ 201: CreateAgentResponse;
585
1102
  };
586
1103
 
587
- export type AgentsFilesUploadBatchData = {
588
- body: AgentFilesBody;
1104
+ export type AgentsCreateResponse = AgentsCreateResponses[keyof AgentsCreateResponses];
1105
+
1106
+ export type AgentsRunsCancelData = {
1107
+ body?: never;
589
1108
  path: {
590
1109
  /**
591
- * Agent id or slug
1110
+ * Run id
592
1111
  */
593
- agentId: string;
1112
+ runId: string;
594
1113
  };
595
1114
  query?: never;
596
- url: '/api/v1/agents/{agentId}/files';
1115
+ url: '/api/v1/agents/runs/{runId}/cancel';
597
1116
  };
598
1117
 
599
- export type AgentsFilesUploadBatchErrors = {
1118
+ export type AgentsRunsCancelErrors = {
600
1119
  /**
601
1120
  * Validation error. Request shape did not match the spec.
602
1121
  */
@@ -623,38 +1142,34 @@ export type AgentsFilesUploadBatchErrors = {
623
1142
  500: ApiErrorEnvelope;
624
1143
  };
625
1144
 
626
- export type AgentsFilesUploadBatchError =
627
- AgentsFilesUploadBatchErrors[keyof AgentsFilesUploadBatchErrors];
1145
+ export type AgentsRunsCancelError = AgentsRunsCancelErrors[keyof AgentsRunsCancelErrors];
628
1146
 
629
- export type AgentsFilesUploadBatchResponses = {
1147
+ export type AgentsRunsCancelResponses = {
630
1148
  /**
631
- * Uploaded files
1149
+ * Cancelled agent run
632
1150
  */
633
- 200: {
634
- ok: boolean;
635
- files: Array<string>;
636
- };
1151
+ 200: CancelAgentExecutionResponse;
637
1152
  };
638
1153
 
639
- export type AgentsFilesUploadBatchResponse =
640
- AgentsFilesUploadBatchResponses[keyof AgentsFilesUploadBatchResponses];
1154
+ export type AgentsRunsCancelResponse = AgentsRunsCancelResponses[keyof AgentsRunsCancelResponses];
641
1155
 
642
- export type AgentsFilesPutData = {
643
- body: AgentFileBody;
1156
+ export type AgentsRunsExpectedDeleteData = {
1157
+ body?: never;
644
1158
  path: {
645
1159
  /**
646
- * Agent id or slug
1160
+ * Run id
647
1161
  */
648
- agentId: string;
649
- };
650
- query?: {
651
- path?: string;
652
- prefix?: string;
1162
+ runId: string;
1163
+ /**
1164
+ * Expected artifact path
1165
+ */
1166
+ filename: string;
653
1167
  };
654
- url: '/api/v1/agents/{agentId}/files';
1168
+ query?: never;
1169
+ url: '/api/v1/agents/runs/{runId}/expected/{filename}';
655
1170
  };
656
1171
 
657
- export type AgentsFilesPutErrors = {
1172
+ export type AgentsRunsExpectedDeleteErrors = {
658
1173
  /**
659
1174
  * Validation error. Request shape did not match the spec.
660
1175
  */
@@ -681,38 +1196,36 @@ export type AgentsFilesPutErrors = {
681
1196
  500: ApiErrorEnvelope;
682
1197
  };
683
1198
 
684
- export type AgentsFilesPutError = AgentsFilesPutErrors[keyof AgentsFilesPutErrors];
1199
+ export type AgentsRunsExpectedDeleteError =
1200
+ AgentsRunsExpectedDeleteErrors[keyof AgentsRunsExpectedDeleteErrors];
685
1201
 
686
- export type AgentsFilesPutResponses = {
1202
+ export type AgentsRunsExpectedDeleteResponses = {
687
1203
  /**
688
- * Uploaded file
1204
+ * Expected file deleted
689
1205
  */
690
- 200: {
691
- ok: boolean;
692
- path: string;
693
- };
1206
+ 204: void;
694
1207
  };
695
1208
 
696
- export type AgentsFilesPutResponse = AgentsFilesPutResponses[keyof AgentsFilesPutResponses];
1209
+ export type AgentsRunsExpectedDeleteResponse =
1210
+ AgentsRunsExpectedDeleteResponses[keyof AgentsRunsExpectedDeleteResponses];
697
1211
 
698
- export type AgentsGetData = {
1212
+ export type AgentsRunsExpectedDownloadData = {
699
1213
  body?: never;
700
1214
  path: {
701
1215
  /**
702
- * Agent id or slug
1216
+ * Run id
703
1217
  */
704
- agentId: string;
705
- };
706
- query?: {
1218
+ runId: string;
707
1219
  /**
708
- * Comma-separated optional sections, e.g. files,dataset
1220
+ * Expected artifact path
709
1221
  */
710
- include?: string;
1222
+ filename: string;
711
1223
  };
712
- url: '/api/v1/agents/{agentId}';
1224
+ query?: never;
1225
+ url: '/api/v1/agents/runs/{runId}/expected/{filename}';
713
1226
  };
714
1227
 
715
- export type AgentsGetErrors = {
1228
+ export type AgentsRunsExpectedDownloadErrors = {
716
1229
  /**
717
1230
  * Validation error. Request shape did not match the spec.
718
1231
  */
@@ -739,30 +1252,33 @@ export type AgentsGetErrors = {
739
1252
  500: ApiErrorEnvelope;
740
1253
  };
741
1254
 
742
- export type AgentsGetError = AgentsGetErrors[keyof AgentsGetErrors];
1255
+ export type AgentsRunsExpectedDownloadError =
1256
+ AgentsRunsExpectedDownloadErrors[keyof AgentsRunsExpectedDownloadErrors];
743
1257
 
744
- export type AgentsGetResponses = {
1258
+ export type AgentsRunsExpectedDownloadResponses = {
745
1259
  /**
746
- * Agent
1260
+ * Expected file bytes
747
1261
  */
748
- 200: GetAgentResponse;
1262
+ 200: unknown;
749
1263
  };
750
1264
 
751
- export type AgentsGetResponse = AgentsGetResponses[keyof AgentsGetResponses];
752
-
753
- export type AgentsUpdateData = {
754
- body: PatchAgentBody;
1265
+ export type AgentsRunsExpectedRenameData = {
1266
+ body: RenameExpectedFileBody;
755
1267
  path: {
756
1268
  /**
757
- * Agent id or slug
1269
+ * Run id
758
1270
  */
759
- agentId: string;
1271
+ runId: string;
1272
+ /**
1273
+ * Expected artifact path
1274
+ */
1275
+ filename: string;
760
1276
  };
761
1277
  query?: never;
762
- url: '/api/v1/agents/{agentId}';
1278
+ url: '/api/v1/agents/runs/{runId}/expected/{filename}';
763
1279
  };
764
1280
 
765
- export type AgentsUpdateErrors = {
1281
+ export type AgentsRunsExpectedRenameErrors = {
766
1282
  /**
767
1283
  * Validation error. Request shape did not match the spec.
768
1284
  */
@@ -789,35 +1305,32 @@ export type AgentsUpdateErrors = {
789
1305
  500: ApiErrorEnvelope;
790
1306
  };
791
1307
 
792
- export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
1308
+ export type AgentsRunsExpectedRenameError =
1309
+ AgentsRunsExpectedRenameErrors[keyof AgentsRunsExpectedRenameErrors];
793
1310
 
794
- export type AgentsUpdateResponses = {
1311
+ export type AgentsRunsExpectedRenameResponses = {
795
1312
  /**
796
- * Updated agent
1313
+ * Renamed expected file
797
1314
  */
798
- 200: PatchAgentResponse;
1315
+ 200: RenameExpectedFileResponse;
799
1316
  };
800
1317
 
801
- export type AgentsUpdateResponse = AgentsUpdateResponses[keyof AgentsUpdateResponses];
1318
+ export type AgentsRunsExpectedRenameResponse =
1319
+ AgentsRunsExpectedRenameResponses[keyof AgentsRunsExpectedRenameResponses];
802
1320
 
803
- export type AgentsRunData = {
804
- body: RunAgentBody;
1321
+ export type AgentsRunsExpectedListData = {
1322
+ body?: never;
805
1323
  path: {
806
1324
  /**
807
- * Agent id or slug
808
- */
809
- agentId: string;
810
- };
811
- query?: {
812
- /**
813
- * Seconds to hold the connection waiting for completion (max 600). Omit for async.
1325
+ * Run id
814
1326
  */
815
- wait_for_completion?: number;
1327
+ runId: string;
816
1328
  };
817
- url: '/api/v1/agents/{agentId}/run';
1329
+ query?: never;
1330
+ url: '/api/v1/agents/runs/{runId}/expected';
818
1331
  };
819
1332
 
820
- export type AgentsRunErrors = {
1333
+ export type AgentsRunsExpectedListErrors = {
821
1334
  /**
822
1335
  * Validation error. Request shape did not match the spec.
823
1336
  */
@@ -844,30 +1357,32 @@ export type AgentsRunErrors = {
844
1357
  500: ApiErrorEnvelope;
845
1358
  };
846
1359
 
847
- export type AgentsRunError = AgentsRunErrors[keyof AgentsRunErrors];
1360
+ export type AgentsRunsExpectedListError =
1361
+ AgentsRunsExpectedListErrors[keyof AgentsRunsExpectedListErrors];
848
1362
 
849
- export type AgentsRunResponses = {
1363
+ export type AgentsRunsExpectedListResponses = {
850
1364
  /**
851
- * Execution accepted
1365
+ * Expected artifacts
852
1366
  */
853
- 202: RunAgentResponse;
1367
+ 200: AgentExecutionExpectedArtifacts;
854
1368
  };
855
1369
 
856
- export type AgentsRunResponse = AgentsRunResponses[keyof AgentsRunResponses];
1370
+ export type AgentsRunsExpectedListResponse =
1371
+ AgentsRunsExpectedListResponses[keyof AgentsRunsExpectedListResponses];
857
1372
 
858
- export type AgentsExecutionsCancelData = {
859
- body?: never;
1373
+ export type AgentsRunsExpectedCreateData = {
1374
+ body: CopyAgentExecutionOutputToExpectedBody;
860
1375
  path: {
861
1376
  /**
862
- * Execution id
1377
+ * Run id
863
1378
  */
864
- executionId: string;
1379
+ runId: string;
865
1380
  };
866
1381
  query?: never;
867
- url: '/api/v1/agents/executions/{executionId}/cancel';
1382
+ url: '/api/v1/agents/runs/{runId}/expected';
868
1383
  };
869
1384
 
870
- export type AgentsExecutionsCancelErrors = {
1385
+ export type AgentsRunsExpectedCreateErrors = {
871
1386
  /**
872
1387
  * Validation error. Request shape did not match the spec.
873
1388
  */
@@ -894,36 +1409,34 @@ export type AgentsExecutionsCancelErrors = {
894
1409
  500: ApiErrorEnvelope;
895
1410
  };
896
1411
 
897
- export type AgentsExecutionsCancelError =
898
- AgentsExecutionsCancelErrors[keyof AgentsExecutionsCancelErrors];
1412
+ export type AgentsRunsExpectedCreateError =
1413
+ AgentsRunsExpectedCreateErrors[keyof AgentsRunsExpectedCreateErrors];
899
1414
 
900
- export type AgentsExecutionsCancelResponses = {
1415
+ export type AgentsRunsExpectedCreateResponses = {
901
1416
  /**
902
- * Cancelled agent execution
1417
+ * Expected file created
903
1418
  */
904
- 200: CancelAgentExecutionResponse;
1419
+ 201: {
1420
+ name: string;
1421
+ };
905
1422
  };
906
1423
 
907
- export type AgentsExecutionsCancelResponse =
908
- AgentsExecutionsCancelResponses[keyof AgentsExecutionsCancelResponses];
1424
+ export type AgentsRunsExpectedCreateResponse =
1425
+ AgentsRunsExpectedCreateResponses[keyof AgentsRunsExpectedCreateResponses];
909
1426
 
910
- export type AgentsExecutionsExpectedDeleteData = {
1427
+ export type AgentsRunsFeedbackDeleteData = {
911
1428
  body?: never;
912
1429
  path: {
913
1430
  /**
914
- * Execution id
915
- */
916
- executionId: string;
917
- /**
918
- * Expected artifact path
1431
+ * Run id
919
1432
  */
920
- filename: string;
1433
+ runId: string;
921
1434
  };
922
1435
  query?: never;
923
- url: '/api/v1/agents/executions/{executionId}/expected/{filename}';
1436
+ url: '/api/v1/agents/runs/{runId}/feedback';
924
1437
  };
925
1438
 
926
- export type AgentsExecutionsExpectedDeleteErrors = {
1439
+ export type AgentsRunsFeedbackDeleteErrors = {
927
1440
  /**
928
1441
  * Validation error. Request shape did not match the spec.
929
1442
  */
@@ -950,36 +1463,32 @@ export type AgentsExecutionsExpectedDeleteErrors = {
950
1463
  500: ApiErrorEnvelope;
951
1464
  };
952
1465
 
953
- export type AgentsExecutionsExpectedDeleteError =
954
- AgentsExecutionsExpectedDeleteErrors[keyof AgentsExecutionsExpectedDeleteErrors];
1466
+ export type AgentsRunsFeedbackDeleteError =
1467
+ AgentsRunsFeedbackDeleteErrors[keyof AgentsRunsFeedbackDeleteErrors];
955
1468
 
956
- export type AgentsExecutionsExpectedDeleteResponses = {
1469
+ export type AgentsRunsFeedbackDeleteResponses = {
957
1470
  /**
958
- * Expected file deleted
1471
+ * Cleared run feedback
959
1472
  */
960
- 204: void;
1473
+ 200: AgentExecutionFeedbackDetail;
961
1474
  };
962
1475
 
963
- export type AgentsExecutionsExpectedDeleteResponse =
964
- AgentsExecutionsExpectedDeleteResponses[keyof AgentsExecutionsExpectedDeleteResponses];
1476
+ export type AgentsRunsFeedbackDeleteResponse =
1477
+ AgentsRunsFeedbackDeleteResponses[keyof AgentsRunsFeedbackDeleteResponses];
965
1478
 
966
- export type AgentsExecutionsExpectedDownloadData = {
1479
+ export type AgentsRunsFeedbackGetData = {
967
1480
  body?: never;
968
1481
  path: {
969
1482
  /**
970
- * Execution id
971
- */
972
- executionId: string;
973
- /**
974
- * Expected artifact path
1483
+ * Run id
975
1484
  */
976
- filename: string;
1485
+ runId: string;
977
1486
  };
978
1487
  query?: never;
979
- url: '/api/v1/agents/executions/{executionId}/expected/{filename}';
1488
+ url: '/api/v1/agents/runs/{runId}/feedback';
980
1489
  };
981
1490
 
982
- export type AgentsExecutionsExpectedDownloadErrors = {
1491
+ export type AgentsRunsFeedbackGetErrors = {
983
1492
  /**
984
1493
  * Validation error. Request shape did not match the spec.
985
1494
  */
@@ -1006,33 +1515,32 @@ export type AgentsExecutionsExpectedDownloadErrors = {
1006
1515
  500: ApiErrorEnvelope;
1007
1516
  };
1008
1517
 
1009
- export type AgentsExecutionsExpectedDownloadError =
1010
- AgentsExecutionsExpectedDownloadErrors[keyof AgentsExecutionsExpectedDownloadErrors];
1518
+ export type AgentsRunsFeedbackGetError =
1519
+ AgentsRunsFeedbackGetErrors[keyof AgentsRunsFeedbackGetErrors];
1011
1520
 
1012
- export type AgentsExecutionsExpectedDownloadResponses = {
1521
+ export type AgentsRunsFeedbackGetResponses = {
1013
1522
  /**
1014
- * Expected file bytes
1523
+ * Run feedback
1015
1524
  */
1016
- 200: unknown;
1525
+ 200: AgentExecutionFeedbackDetail;
1017
1526
  };
1018
1527
 
1019
- export type AgentsExecutionsExpectedRenameData = {
1020
- body: RenameExpectedFileBody;
1528
+ export type AgentsRunsFeedbackGetResponse =
1529
+ AgentsRunsFeedbackGetResponses[keyof AgentsRunsFeedbackGetResponses];
1530
+
1531
+ export type AgentsRunsFeedbackUpdateData = {
1532
+ body: UpdateAgentExecutionFeedbackBody;
1021
1533
  path: {
1022
1534
  /**
1023
- * Execution id
1024
- */
1025
- executionId: string;
1026
- /**
1027
- * Expected artifact path
1535
+ * Run id
1028
1536
  */
1029
- filename: string;
1537
+ runId: string;
1030
1538
  };
1031
1539
  query?: never;
1032
- url: '/api/v1/agents/executions/{executionId}/expected/{filename}';
1540
+ url: '/api/v1/agents/runs/{runId}/feedback';
1033
1541
  };
1034
1542
 
1035
- export type AgentsExecutionsExpectedRenameErrors = {
1543
+ export type AgentsRunsFeedbackUpdateErrors = {
1036
1544
  /**
1037
1545
  * Validation error. Request shape did not match the spec.
1038
1546
  */
@@ -1059,32 +1567,31 @@ export type AgentsExecutionsExpectedRenameErrors = {
1059
1567
  500: ApiErrorEnvelope;
1060
1568
  };
1061
1569
 
1062
- export type AgentsExecutionsExpectedRenameError =
1063
- AgentsExecutionsExpectedRenameErrors[keyof AgentsExecutionsExpectedRenameErrors];
1570
+ export type AgentsRunsFeedbackUpdateError =
1571
+ AgentsRunsFeedbackUpdateErrors[keyof AgentsRunsFeedbackUpdateErrors];
1064
1572
 
1065
- export type AgentsExecutionsExpectedRenameResponses = {
1573
+ export type AgentsRunsFeedbackUpdateResponses = {
1066
1574
  /**
1067
- * Renamed expected file
1575
+ * Updated run feedback
1068
1576
  */
1069
- 200: RenameExpectedFileResponse;
1577
+ 200: AgentExecutionFeedbackDetail;
1070
1578
  };
1071
1579
 
1072
- export type AgentsExecutionsExpectedRenameResponse =
1073
- AgentsExecutionsExpectedRenameResponses[keyof AgentsExecutionsExpectedRenameResponses];
1580
+ export type AgentsRunsFeedbackUpdateResponse =
1581
+ AgentsRunsFeedbackUpdateResponses[keyof AgentsRunsFeedbackUpdateResponses];
1074
1582
 
1075
- export type AgentsExecutionsExpectedListData = {
1583
+ export type AgentsRunsFilesDownloadData = {
1076
1584
  body?: never;
1077
1585
  path: {
1078
- /**
1079
- * Execution id
1080
- */
1081
- executionId: string;
1586
+ runId: string;
1587
+ kind: 'input' | 'output' | 'issues' | 'trace' | 'lockfile';
1588
+ filename: string;
1082
1589
  };
1083
1590
  query?: never;
1084
- url: '/api/v1/agents/executions/{executionId}/expected';
1591
+ url: '/api/v1/agents/runs/{runId}/files/{kind}/{filename}';
1085
1592
  };
1086
1593
 
1087
- export type AgentsExecutionsExpectedListErrors = {
1594
+ export type AgentsRunsFilesDownloadErrors = {
1088
1595
  /**
1089
1596
  * Validation error. Request shape did not match the spec.
1090
1597
  */
@@ -1111,32 +1618,29 @@ export type AgentsExecutionsExpectedListErrors = {
1111
1618
  500: ApiErrorEnvelope;
1112
1619
  };
1113
1620
 
1114
- export type AgentsExecutionsExpectedListError =
1115
- AgentsExecutionsExpectedListErrors[keyof AgentsExecutionsExpectedListErrors];
1621
+ export type AgentsRunsFilesDownloadError =
1622
+ AgentsRunsFilesDownloadErrors[keyof AgentsRunsFilesDownloadErrors];
1116
1623
 
1117
- export type AgentsExecutionsExpectedListResponses = {
1624
+ export type AgentsRunsFilesDownloadResponses = {
1118
1625
  /**
1119
- * Expected artifacts
1626
+ * Run file bytes
1120
1627
  */
1121
- 200: AgentExecutionExpectedArtifacts;
1628
+ 200: unknown;
1122
1629
  };
1123
1630
 
1124
- export type AgentsExecutionsExpectedListResponse =
1125
- AgentsExecutionsExpectedListResponses[keyof AgentsExecutionsExpectedListResponses];
1126
-
1127
- export type AgentsExecutionsExpectedCreateData = {
1128
- body: CopyAgentExecutionOutputToExpectedBody;
1631
+ export type AgentsRunsRerunData = {
1632
+ body?: never;
1129
1633
  path: {
1130
1634
  /**
1131
- * Execution id
1635
+ * Source run id
1132
1636
  */
1133
- executionId: string;
1637
+ runId: string;
1134
1638
  };
1135
1639
  query?: never;
1136
- url: '/api/v1/agents/executions/{executionId}/expected';
1640
+ url: '/api/v1/agents/runs/{runId}/rerun';
1137
1641
  };
1138
1642
 
1139
- export type AgentsExecutionsExpectedCreateErrors = {
1643
+ export type AgentsRunsRerunErrors = {
1140
1644
  /**
1141
1645
  * Validation error. Request shape did not match the spec.
1142
1646
  */
@@ -1163,34 +1667,35 @@ export type AgentsExecutionsExpectedCreateErrors = {
1163
1667
  500: ApiErrorEnvelope;
1164
1668
  };
1165
1669
 
1166
- export type AgentsExecutionsExpectedCreateError =
1167
- AgentsExecutionsExpectedCreateErrors[keyof AgentsExecutionsExpectedCreateErrors];
1670
+ export type AgentsRunsRerunError = AgentsRunsRerunErrors[keyof AgentsRunsRerunErrors];
1168
1671
 
1169
- export type AgentsExecutionsExpectedCreateResponses = {
1672
+ export type AgentsRunsRerunResponses = {
1170
1673
  /**
1171
- * Expected file created
1674
+ * Rerun accepted
1172
1675
  */
1173
- 201: {
1174
- name: string;
1175
- };
1676
+ 202: RerunAgentRunResponse;
1176
1677
  };
1177
1678
 
1178
- export type AgentsExecutionsExpectedCreateResponse =
1179
- AgentsExecutionsExpectedCreateResponses[keyof AgentsExecutionsExpectedCreateResponses];
1679
+ export type AgentsRunsRerunResponse = AgentsRunsRerunResponses[keyof AgentsRunsRerunResponses];
1180
1680
 
1181
- export type AgentsExecutionsFeedbackDeleteData = {
1681
+ export type AgentsRunsGetData = {
1182
1682
  body?: never;
1183
1683
  path: {
1184
1684
  /**
1185
- * Execution id
1685
+ * Run id
1186
1686
  */
1187
- executionId: string;
1687
+ runId: string;
1188
1688
  };
1189
- query?: never;
1190
- url: '/api/v1/agents/executions/{executionId}/feedback';
1689
+ query?: {
1690
+ /**
1691
+ * Comma-separated optional sections, e.g. feedback,expected,files
1692
+ */
1693
+ include?: string;
1694
+ };
1695
+ url: '/api/v1/agents/runs/{runId}';
1191
1696
  };
1192
1697
 
1193
- export type AgentsExecutionsFeedbackDeleteErrors = {
1698
+ export type AgentsRunsGetErrors = {
1194
1699
  /**
1195
1700
  * Validation error. Request shape did not match the spec.
1196
1701
  */
@@ -1217,32 +1722,27 @@ export type AgentsExecutionsFeedbackDeleteErrors = {
1217
1722
  500: ApiErrorEnvelope;
1218
1723
  };
1219
1724
 
1220
- export type AgentsExecutionsFeedbackDeleteError =
1221
- AgentsExecutionsFeedbackDeleteErrors[keyof AgentsExecutionsFeedbackDeleteErrors];
1725
+ export type AgentsRunsGetError = AgentsRunsGetErrors[keyof AgentsRunsGetErrors];
1222
1726
 
1223
- export type AgentsExecutionsFeedbackDeleteResponses = {
1727
+ export type AgentsRunsGetResponses = {
1224
1728
  /**
1225
- * Cleared execution feedback
1729
+ * Agent run
1226
1730
  */
1227
- 200: AgentExecutionFeedbackDetail;
1731
+ 200: AgentRunResponse;
1228
1732
  };
1229
1733
 
1230
- export type AgentsExecutionsFeedbackDeleteResponse =
1231
- AgentsExecutionsFeedbackDeleteResponses[keyof AgentsExecutionsFeedbackDeleteResponses];
1734
+ export type AgentsRunsGetResponse = AgentsRunsGetResponses[keyof AgentsRunsGetResponses];
1232
1735
 
1233
- export type AgentsExecutionsFeedbackGetData = {
1736
+ export type AutomationsSyncData = {
1234
1737
  body?: never;
1235
1738
  path: {
1236
- /**
1237
- * Execution id
1238
- */
1239
- executionId: string;
1739
+ automation: string;
1240
1740
  };
1241
1741
  query?: never;
1242
- url: '/api/v1/agents/executions/{executionId}/feedback';
1742
+ url: '/api/v1/automations/{automation}/sync';
1243
1743
  };
1244
1744
 
1245
- export type AgentsExecutionsFeedbackGetErrors = {
1745
+ export type AutomationsSyncErrors = {
1246
1746
  /**
1247
1747
  * Validation error. Request shape did not match the spec.
1248
1748
  */
@@ -1269,32 +1769,27 @@ export type AgentsExecutionsFeedbackGetErrors = {
1269
1769
  500: ApiErrorEnvelope;
1270
1770
  };
1271
1771
 
1272
- export type AgentsExecutionsFeedbackGetError =
1273
- AgentsExecutionsFeedbackGetErrors[keyof AgentsExecutionsFeedbackGetErrors];
1772
+ export type AutomationsSyncError = AutomationsSyncErrors[keyof AutomationsSyncErrors];
1274
1773
 
1275
- export type AgentsExecutionsFeedbackGetResponses = {
1774
+ export type AutomationsSyncResponses = {
1276
1775
  /**
1277
- * Execution feedback
1776
+ * Automation synced
1278
1777
  */
1279
- 200: AgentExecutionFeedbackDetail;
1778
+ 200: AutomationSyncResponse;
1280
1779
  };
1281
1780
 
1282
- export type AgentsExecutionsFeedbackGetResponse =
1283
- AgentsExecutionsFeedbackGetResponses[keyof AgentsExecutionsFeedbackGetResponses];
1781
+ export type AutomationsSyncResponse = AutomationsSyncResponses[keyof AutomationsSyncResponses];
1284
1782
 
1285
- export type AgentsExecutionsFeedbackUpdateData = {
1286
- body: UpdateAgentExecutionFeedbackBody;
1287
- path: {
1288
- /**
1289
- * Execution id
1290
- */
1291
- executionId: string;
1783
+ export type SourceLockfilePreviewData = {
1784
+ body?: never;
1785
+ path?: never;
1786
+ query: {
1787
+ packageRef: string;
1292
1788
  };
1293
- query?: never;
1294
- url: '/api/v1/agents/executions/{executionId}/feedback';
1789
+ url: '/api/v1/source/lockfile';
1295
1790
  };
1296
1791
 
1297
- export type AgentsExecutionsFeedbackUpdateErrors = {
1792
+ export type SourceLockfilePreviewErrors = {
1298
1793
  /**
1299
1794
  * Validation error. Request shape did not match the spec.
1300
1795
  */
@@ -1321,31 +1816,30 @@ export type AgentsExecutionsFeedbackUpdateErrors = {
1321
1816
  500: ApiErrorEnvelope;
1322
1817
  };
1323
1818
 
1324
- export type AgentsExecutionsFeedbackUpdateError =
1325
- AgentsExecutionsFeedbackUpdateErrors[keyof AgentsExecutionsFeedbackUpdateErrors];
1819
+ export type SourceLockfilePreviewError =
1820
+ SourceLockfilePreviewErrors[keyof SourceLockfilePreviewErrors];
1326
1821
 
1327
- export type AgentsExecutionsFeedbackUpdateResponses = {
1822
+ export type SourceLockfilePreviewResponses = {
1328
1823
  /**
1329
- * Updated execution feedback
1824
+ * Resolved lockfile preview
1330
1825
  */
1331
- 200: AgentExecutionFeedbackDetail;
1826
+ 200: SourceLockfileResponse;
1332
1827
  };
1333
1828
 
1334
- export type AgentsExecutionsFeedbackUpdateResponse =
1335
- AgentsExecutionsFeedbackUpdateResponses[keyof AgentsExecutionsFeedbackUpdateResponses];
1829
+ export type SourceLockfilePreviewResponse =
1830
+ SourceLockfilePreviewResponses[keyof SourceLockfilePreviewResponses];
1336
1831
 
1337
- export type AgentsExecutionsFilesDownloadData = {
1832
+ export type SourceRawData = {
1338
1833
  body?: never;
1339
- path: {
1340
- executionId: string;
1341
- kind: 'input' | 'output' | 'issues' | 'trace';
1342
- filename: string;
1834
+ path?: never;
1835
+ query: {
1836
+ ref?: string;
1837
+ path: string;
1343
1838
  };
1344
- query?: never;
1345
- url: '/api/v1/agents/executions/{executionId}/files/{kind}/{filename}';
1839
+ url: '/api/v1/source/raw';
1346
1840
  };
1347
1841
 
1348
- export type AgentsExecutionsFilesDownloadErrors = {
1842
+ export type SourceRawErrors = {
1349
1843
  /**
1350
1844
  * Validation error. Request shape did not match the spec.
1351
1845
  */
@@ -1372,29 +1866,28 @@ export type AgentsExecutionsFilesDownloadErrors = {
1372
1866
  500: ApiErrorEnvelope;
1373
1867
  };
1374
1868
 
1375
- export type AgentsExecutionsFilesDownloadError =
1376
- AgentsExecutionsFilesDownloadErrors[keyof AgentsExecutionsFilesDownloadErrors];
1869
+ export type SourceRawError = SourceRawErrors[keyof SourceRawErrors];
1377
1870
 
1378
- export type AgentsExecutionsFilesDownloadResponses = {
1871
+ export type SourceRawResponses = {
1379
1872
  /**
1380
- * Execution file bytes
1873
+ * Raw source file preview
1381
1874
  */
1382
- 200: unknown;
1875
+ 200: RawSourceResponse;
1383
1876
  };
1384
1877
 
1385
- export type AgentsExecutionsRerunData = {
1878
+ export type SourceRawResponse = SourceRawResponses[keyof SourceRawResponses];
1879
+
1880
+ export type SourceReleasesData = {
1386
1881
  body?: never;
1387
- path: {
1388
- /**
1389
- * Source execution id
1390
- */
1391
- executionId: string;
1882
+ path?: never;
1883
+ query: {
1884
+ packagePath: string;
1885
+ version?: string;
1392
1886
  };
1393
- query?: never;
1394
- url: '/api/v1/agents/executions/{executionId}/rerun';
1887
+ url: '/api/v1/source/releases';
1395
1888
  };
1396
1889
 
1397
- export type AgentsExecutionsRerunErrors = {
1890
+ export type SourceReleasesErrors = {
1398
1891
  /**
1399
1892
  * Validation error. Request shape did not match the spec.
1400
1893
  */
@@ -1421,37 +1914,25 @@ export type AgentsExecutionsRerunErrors = {
1421
1914
  500: ApiErrorEnvelope;
1422
1915
  };
1423
1916
 
1424
- export type AgentsExecutionsRerunError =
1425
- AgentsExecutionsRerunErrors[keyof AgentsExecutionsRerunErrors];
1917
+ export type SourceReleasesError = SourceReleasesErrors[keyof SourceReleasesErrors];
1426
1918
 
1427
- export type AgentsExecutionsRerunResponses = {
1919
+ export type SourceReleasesResponses = {
1428
1920
  /**
1429
- * Rerun accepted
1921
+ * Source package releases
1430
1922
  */
1431
- 202: RerunAgentExecutionResponse;
1923
+ 200: SourceReleasesResponse;
1432
1924
  };
1433
1925
 
1434
- export type AgentsExecutionsRerunResponse =
1435
- AgentsExecutionsRerunResponses[keyof AgentsExecutionsRerunResponses];
1926
+ export type SourceReleasesResponse2 = SourceReleasesResponses[keyof SourceReleasesResponses];
1436
1927
 
1437
- export type AgentsExecutionsGetData = {
1928
+ export type SourceRepositoryData = {
1438
1929
  body?: never;
1439
- path: {
1440
- /**
1441
- * Execution id
1442
- */
1443
- executionId: string;
1444
- };
1445
- query?: {
1446
- /**
1447
- * Comma-separated optional sections, e.g. feedback,expected,files
1448
- */
1449
- include?: string;
1450
- };
1451
- url: '/api/v1/agents/executions/{executionId}';
1930
+ path?: never;
1931
+ query?: never;
1932
+ url: '/api/v1/source/repository';
1452
1933
  };
1453
1934
 
1454
- export type AgentsExecutionsGetErrors = {
1935
+ export type SourceRepositoryErrors = {
1455
1936
  /**
1456
1937
  * Validation error. Request shape did not match the spec.
1457
1938
  */
@@ -1478,34 +1959,25 @@ export type AgentsExecutionsGetErrors = {
1478
1959
  500: ApiErrorEnvelope;
1479
1960
  };
1480
1961
 
1481
- export type AgentsExecutionsGetError = AgentsExecutionsGetErrors[keyof AgentsExecutionsGetErrors];
1962
+ export type SourceRepositoryError = SourceRepositoryErrors[keyof SourceRepositoryErrors];
1482
1963
 
1483
- export type AgentsExecutionsGetResponses = {
1964
+ export type SourceRepositoryResponses = {
1484
1965
  /**
1485
- * Agent execution
1966
+ * Organization Git repository
1486
1967
  */
1487
- 200: AgentExecutionResponse;
1968
+ 200: SourceRepositoryResponse;
1488
1969
  };
1489
1970
 
1490
- export type AgentsExecutionsGetResponse =
1491
- AgentsExecutionsGetResponses[keyof AgentsExecutionsGetResponses];
1971
+ export type SourceRepositoryResponse2 = SourceRepositoryResponses[keyof SourceRepositoryResponses];
1492
1972
 
1493
- export type AgentsListData = {
1494
- body?: never;
1973
+ export type SourceSecretsDecryptData = {
1974
+ body: SourceSecretsDecryptBody;
1495
1975
  path?: never;
1496
- query?: {
1497
- /**
1498
- * Substring match against agent fields
1499
- */
1500
- search?: string;
1501
- limit?: number;
1502
- offset?: number;
1503
- includeArchived?: boolean;
1504
- };
1505
- url: '/api/v1/agents';
1976
+ query?: never;
1977
+ url: '/api/v1/source/secrets/decrypt';
1506
1978
  };
1507
1979
 
1508
- export type AgentsListErrors = {
1980
+ export type SourceSecretsDecryptErrors = {
1509
1981
  /**
1510
1982
  * Validation error. Request shape did not match the spec.
1511
1983
  */
@@ -1532,25 +2004,27 @@ export type AgentsListErrors = {
1532
2004
  500: ApiErrorEnvelope;
1533
2005
  };
1534
2006
 
1535
- export type AgentsListError = AgentsListErrors[keyof AgentsListErrors];
2007
+ export type SourceSecretsDecryptError =
2008
+ SourceSecretsDecryptErrors[keyof SourceSecretsDecryptErrors];
1536
2009
 
1537
- export type AgentsListResponses = {
2010
+ export type SourceSecretsDecryptResponses = {
1538
2011
  /**
1539
- * Paginated list of agents
2012
+ * Decrypted secret value
1540
2013
  */
1541
- 200: ListAgentsResponse;
2014
+ 200: SourceSecretsDecryptResponse;
1542
2015
  };
1543
2016
 
1544
- export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
2017
+ export type SourceSecretsDecryptResponse2 =
2018
+ SourceSecretsDecryptResponses[keyof SourceSecretsDecryptResponses];
1545
2019
 
1546
- export type AgentsCreateData = {
1547
- body: CreateAgentBody;
2020
+ export type SourceSecretsEncryptData = {
2021
+ body: SourceSecretsEncryptBody;
1548
2022
  path?: never;
1549
2023
  query?: never;
1550
- url: '/api/v1/agents';
2024
+ url: '/api/v1/source/secrets/encrypt';
1551
2025
  };
1552
2026
 
1553
- export type AgentsCreateErrors = {
2027
+ export type SourceSecretsEncryptErrors = {
1554
2028
  /**
1555
2029
  * Validation error. Request shape did not match the spec.
1556
2030
  */
@@ -1577,16 +2051,18 @@ export type AgentsCreateErrors = {
1577
2051
  500: ApiErrorEnvelope;
1578
2052
  };
1579
2053
 
1580
- export type AgentsCreateError = AgentsCreateErrors[keyof AgentsCreateErrors];
2054
+ export type SourceSecretsEncryptError =
2055
+ SourceSecretsEncryptErrors[keyof SourceSecretsEncryptErrors];
1581
2056
 
1582
- export type AgentsCreateResponses = {
2057
+ export type SourceSecretsEncryptResponses = {
1583
2058
  /**
1584
- * Created agent
2059
+ * Encrypted secret value(s)
1585
2060
  */
1586
- 201: CreateAgentResponse;
2061
+ 200: SourceSecretsEncryptResponse;
1587
2062
  };
1588
2063
 
1589
- export type AgentsCreateResponse = AgentsCreateResponses[keyof AgentsCreateResponses];
2064
+ export type SourceSecretsEncryptResponse2 =
2065
+ SourceSecretsEncryptResponses[keyof SourceSecretsEncryptResponses];
1590
2066
 
1591
2067
  export type WorkflowsExecutionsListData = {
1592
2068
  body?: never;
@@ -1702,9 +2178,9 @@ export type WorkflowsGetError = WorkflowsGetErrors[keyof WorkflowsGetErrors];
1702
2178
 
1703
2179
  export type WorkflowsGetResponses = {
1704
2180
  /**
1705
- * Workflow with current version
2181
+ * Workflow summary with current YAML content
1706
2182
  */
1707
- 200: WorkflowSummary;
2183
+ 200: WorkflowDetail;
1708
2184
  };
1709
2185
 
1710
2186
  export type WorkflowsGetResponse = WorkflowsGetResponses[keyof WorkflowsGetResponses];