@eigenpal/sdk 0.7.2 → 0.8.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,60 @@ export type ClientOptions = {
4
4
  baseUrl: 'https://studio.eigenpal.com' | (string & {});
5
5
  };
6
6
 
7
- export type PatchAgentBody = {
8
- name?: string;
9
- description?: string;
10
- config?: {
7
+ export type AutomationDatasetImportMultipartRequest = {
8
+ /**
9
+ * Dataset ZIP file
10
+ */
11
+ file: Blob | File;
12
+ mode?: 'append' | 'replace';
13
+ };
14
+
15
+ export type EvaluatorConfigUpdate = {
16
+ yaml: string;
17
+ };
18
+
19
+ export type DatasetExampleUpdate = {
20
+ input?: {
11
21
  [key: string]: unknown;
12
- };
22
+ } | null;
23
+ expected?: unknown | null;
24
+ metadata?: {
25
+ [key: string]: unknown;
26
+ } | null;
27
+ annotation?: string | null;
28
+ rowOrder?: number | null;
29
+ overrides?: {
30
+ [key: string]: unknown;
31
+ } | null;
13
32
  };
14
33
 
15
- export type CreateAgentBody = {
16
- name: string;
17
- slug: string;
18
- description?: string;
19
- config?: {
34
+ export type DatasetExampleMutation = {
35
+ name?: string | null;
36
+ input?: {
20
37
  [key: string]: unknown;
21
- };
38
+ } | null;
39
+ expected?: unknown | null;
40
+ metadata?: {
41
+ [key: string]: unknown;
42
+ } | null;
43
+ annotation?: string | null;
44
+ rowOrder?: number | null;
45
+ overrides?: {
46
+ [key: string]: unknown;
47
+ } | null;
48
+ };
49
+
50
+ export type ExperimentCreate = {
51
+ examples?: Array<string>;
52
+ batchConcurrency?: number | null;
53
+ sourceRef?: string;
54
+ };
55
+
56
+ export type CreateFileMultipartRequest = {
57
+ /**
58
+ * Binary file field
59
+ */
60
+ file: Blob | File;
22
61
  };
23
62
 
24
63
  /**
@@ -69,6 +108,26 @@ export type RunStartBody = {
69
108
  };
70
109
  };
71
110
 
111
+ export type RunStartMultipartRequest = {
112
+ /**
113
+ * Automation target, e.g. `workflows.invoice`.
114
+ */
115
+ target: string;
116
+ /**
117
+ * JSON-encoded scalar input object.
118
+ */
119
+ input?: string;
120
+ /**
121
+ * JSON-encoded step overrides.
122
+ */
123
+ overrides?: string;
124
+ /**
125
+ * JSON-encoded run metadata.
126
+ */
127
+ metadata?: string;
128
+ [key: string]: unknown;
129
+ };
130
+
72
131
  export type RunFeedbackRequest = {
73
132
  body?: string | null;
74
133
  feedback?: string | null;
@@ -79,49 +138,21 @@ export type RunFeedbackRequest = {
79
138
  expected?: unknown | null;
80
139
  };
81
140
 
82
- export type RunsFilesUploadBody = {
83
- /**
84
- * File contents
85
- */
86
- file: Blob | File;
87
- };
88
-
89
- export type SourceSecretsDecryptBody = {
90
- organizationId?: string;
91
- executionId?: string;
92
- sourcePath?: string;
93
- sourceCommit?: string;
94
- secretName?: string;
95
- encrypted?: {
96
- algorithm: 'aes-256-gcm';
97
- keyId: string;
98
- nonce: string;
99
- ciphertext: string;
100
- tag: string;
101
- };
102
- secrets?: Array<{
103
- sourcePath: string;
104
- secretName: string;
105
- encrypted: {
106
- algorithm: 'aes-256-gcm';
107
- keyId: string;
108
- nonce: string;
109
- ciphertext: string;
110
- tag: string;
111
- };
112
- }>;
141
+ export type PromoteRunRequest = {
142
+ name?: string;
113
143
  };
114
144
 
115
- export type SourceSecretsEncryptBody = {
116
- organizationId?: string;
117
- sourcePath?: string;
118
- secretName?: string;
119
- plaintext?: string;
120
- secrets?: Array<{
121
- sourcePath: string;
122
- secretName: string;
123
- plaintext: string;
124
- }>;
145
+ export type AuthCheckResponse = {
146
+ ok: true;
147
+ tenantId: string;
148
+ tenantSlug: string;
149
+ tenantName: string | null;
150
+ userId: string | null;
151
+ keyId: string;
152
+ email: string | null;
153
+ name: string | null;
154
+ scope: Array<string>;
155
+ wildcardGranted: boolean;
125
156
  };
126
157
 
127
158
  export type ApiErrorEnvelope = {
@@ -159,99 +190,217 @@ export type ApiErrorIssue = {
159
190
  severity: 'error' | 'warning';
160
191
  };
161
192
 
162
- export type GetAgentResponse = {
163
- agent: AgentSummary;
193
+ export type DatasetImportResponse = {
194
+ mode: 'append';
195
+ created: number;
196
+ expectedSet: number;
197
+ skipped: number;
198
+ issues: Array<unknown>;
199
+ } | {
200
+ mode: 'replace';
201
+ created: number;
202
+ expectedSet: number;
203
+ deleted: number;
204
+ filesDeleted: number;
205
+ };
206
+
207
+ export type EvaluatorConfigResponse = {
208
+ automationId: string;
209
+ automationType: AutomationType;
210
+ yaml: string;
211
+ config: {
212
+ evaluators: Array<unknown>;
213
+ passThreshold: number;
214
+ };
164
215
  };
165
216
 
166
- export type AgentSummary = {
217
+ export type AutomationType = 'workflow' | 'agent';
218
+
219
+ export type DatasetExample = {
220
+ /**
221
+ * Stable public example id. Workflow examples use DB ids; agent examples use deterministic name-derived ids.
222
+ */
167
223
  id: string;
168
- slug: string;
169
224
  name: string;
170
- description?: string | null;
225
+ automationId: string;
226
+ automationType: AutomationType;
227
+ input: {
228
+ [key: string]: unknown;
229
+ } | null;
230
+ expected: unknown | null;
231
+ expectedFiles: Array<{
232
+ name: string;
233
+ }>;
234
+ metadata: {
235
+ [key: string]: unknown;
236
+ } | null;
237
+ annotation: string | null;
238
+ rowOrder: number | null;
239
+ overrides: {
240
+ [key: string]: unknown;
241
+ } | null;
242
+ latestRunId: string | null;
243
+ createdAt?: string;
244
+ updatedAt?: string | null;
245
+ };
246
+
247
+ export type ExampleRunResponse = {
248
+ id: string;
249
+ type: 'workflow' | 'agent';
250
+ batchId: string | null;
251
+ finished: false;
252
+ };
253
+
254
+ export type DatasetExampleList = {
255
+ data: Array<DatasetExample>;
256
+ total: number;
257
+ limit: number;
258
+ offset: number;
259
+ };
260
+
261
+ export type Experiment = {
262
+ id: string;
263
+ automationId: string;
264
+ automationType: AutomationType;
265
+ status: 'queued' | 'running' | 'completed';
266
+ runCount: number;
267
+ completedCount: number;
268
+ passedCount: number;
269
+ failedCount: number;
270
+ avgScore: number | null;
271
+ createdAt: string;
272
+ completedAt: string | null;
273
+ version: string | null;
274
+ };
275
+
276
+ export type ExperimentCreateResponse = {
277
+ id: string;
278
+ runs: Array<{
279
+ id: string;
280
+ exampleId: string | null;
281
+ }>;
282
+ total: number;
283
+ };
284
+
285
+ export type ExperimentDetail = {
286
+ id: string;
287
+ automationId: string;
288
+ automationType: AutomationType;
289
+ status: 'queued' | 'running' | 'completed';
290
+ runCount: number;
291
+ completedCount: number;
292
+ passedCount: number;
293
+ failedCount: number;
294
+ avgScore: number | null;
295
+ createdAt: string;
296
+ completedAt: string | null;
297
+ version: string | null;
298
+ runs: Array<{
299
+ id: string;
300
+ status: string;
301
+ exampleId: string | null;
302
+ exampleName: string | null;
303
+ createdAt: string;
304
+ completedAt: string | null;
305
+ }>;
306
+ resultsByRun: {
307
+ [key: string]: Array<unknown>;
308
+ };
309
+ };
310
+
311
+ export type AutomationDetail = {
171
312
  /**
172
- * Whether API trigger is enabled (runtime projection)
313
+ * Implementation id for the automation. Workflow automations use workflow ids; agent automations use agent workflow ids.
173
314
  */
174
- apiEnabled?: boolean;
315
+ id: string;
316
+ type: AutomationType;
317
+ slug: string;
318
+ name: string | null;
319
+ description?: string | null;
320
+ status?: string;
321
+ version?: string | null;
322
+ triggers?: AutomationTriggerState;
175
323
  /**
176
- * Runtime trigger projection by type.
324
+ * False when the automations registry row exists but the workflow/agent implementation row is missing.
177
325
  */
178
- triggers?: {
179
- api: boolean;
180
- email: boolean;
181
- manual: boolean;
182
- cron: boolean;
183
- };
184
- sourceIntegrity?: 'healthy' | 'source_missing' | 'unregistered';
185
- latestVersion?: string | null;
186
- latestCommit?: string | null;
187
- config?: {
188
- [key: string]: unknown;
189
- };
326
+ implementationAvailable?: boolean;
190
327
  createdAt: string;
191
328
  updatedAt?: string;
192
- stats?: {
193
- exampleCount?: number;
194
- totalExecutions?: number;
195
- lastExecutionAt?: string | null;
196
- avgDurationMs?: number | null;
197
- avgCredits?: number | null;
329
+ inputSchema?: {
198
330
  [key: string]: unknown;
199
- };
200
- [key: string]: unknown;
331
+ } | null;
332
+ outputSchema?: {
333
+ [key: string]: unknown;
334
+ } | null;
201
335
  };
202
336
 
203
- export type PatchAgentResponse = {
204
- agent: AgentSummary;
337
+ export type AutomationTriggerState = {
338
+ api: boolean;
339
+ email: boolean;
340
+ manual: boolean;
341
+ cron: boolean;
205
342
  };
206
343
 
207
- export type ListAgentVersionsResponse = {
208
- agentId: string;
209
- slug: string;
210
- packagePath: string;
211
- versions: Array<{
212
- version: string;
213
- sourceRef: string;
214
- tag: string;
215
- commit: string;
216
- notes: string | null;
217
- createdAt: string | null;
218
- createdByUser: {
219
- id: string;
220
- email: string;
221
- name: string | null;
222
- image: string | null;
223
- } | null;
224
- latest: boolean;
225
- }>;
344
+ export type AutomationTriggersResponse = {
345
+ automationId: string;
346
+ type: AutomationType;
347
+ triggers: AutomationTriggerState;
226
348
  };
227
349
 
228
- export type ListAgentsResponse = {
229
- data: Array<AgentSummary>;
350
+ export type ListAutomationVersionsResponse = {
351
+ data: Array<AutomationVersion>;
230
352
  total: number;
231
353
  limit: number;
232
354
  offset: number;
233
355
  };
234
356
 
235
- export type CreateAgentResponse = {
236
- agent: AgentSummary;
237
- sourceRecovered?: boolean;
238
- recoveryKind?: 'existing' | 'legacy_hydrate' | 'minimal_scaffold';
357
+ export type AutomationVersion = {
358
+ id: string;
359
+ automationId: string;
360
+ version: string | null;
361
+ sourceRef?: string | null;
362
+ isCurrent?: boolean;
363
+ createdAt?: string;
239
364
  };
240
365
 
241
- export type AutomationSyncResponse = {
242
- automation: {
243
- id: string;
244
- type: 'agent' | 'workflow';
245
- slug: string;
246
- status: 'active' | 'archived';
247
- updatedAt: string;
248
- };
249
- release: {
250
- version: string;
251
- tag: string;
252
- commit: string;
253
- };
254
- warnings: Array<string>;
366
+ export type ListAutomationsResponse = {
367
+ data: Array<AutomationSummary>;
368
+ total: number;
369
+ limit: number;
370
+ offset: number;
371
+ };
372
+
373
+ export type AutomationSummary = {
374
+ /**
375
+ * Implementation id for the automation. Workflow automations use workflow ids; agent automations use agent workflow ids.
376
+ */
377
+ id: string;
378
+ type: AutomationType;
379
+ slug: string;
380
+ name: string | null;
381
+ description?: string | null;
382
+ status?: string;
383
+ version?: string | null;
384
+ triggers?: AutomationTriggerState;
385
+ /**
386
+ * False when the automations registry row exists but the workflow/agent implementation row is missing.
387
+ */
388
+ implementationAvailable?: boolean;
389
+ createdAt: string;
390
+ updatedAt?: string;
391
+ };
392
+
393
+ export type File = {
394
+ id: string;
395
+ filename: string;
396
+ contentType: string | null;
397
+ size: number | null;
398
+ purpose?: string | null;
399
+ createdAt: string;
400
+ };
401
+
402
+ export type DeleteFileResponse = {
403
+ deleted: boolean;
255
404
  };
256
405
 
257
406
  export type RunStartResponse = RunAccepted | Run;
@@ -289,6 +438,18 @@ export type RunSource = {
289
438
  * Git provenance (agent runs only).
290
439
  */
291
440
  git?: RunSourceGit | null;
441
+ /**
442
+ * Whether the live workflow/agent implementation still exists (`GET /api/v1/runs/:id` detail only).
443
+ */
444
+ implementationAvailable?: boolean;
445
+ /**
446
+ * Whether the owning automation registry row still exists (`GET /api/v1/runs/:id` detail only).
447
+ */
448
+ automationFound?: boolean;
449
+ /**
450
+ * Current released workflow version label when the source is live (`GET /api/v1/runs/:id` detail only).
451
+ */
452
+ currentVersion?: string | null;
292
453
  };
293
454
 
294
455
  export type RunSourceGit = {
@@ -383,6 +544,10 @@ export type RunEval = {
383
544
 
384
545
  export type RunArtifact = {
385
546
  name: string;
547
+ /**
548
+ * `input`, `output`, `debug`, `report`, or another stable artifact role.
549
+ */
550
+ role: string;
386
551
  /**
387
552
  * Canonical artifact path for GET /api/v1/runs/:id/artifacts/:path.
388
553
  */
@@ -449,10 +614,6 @@ export type RunExecutionMeta = {
449
614
  * Experiment batch id when the run is part of a batch.
450
615
  */
451
616
  batchId: string | null;
452
- /**
453
- * Free-form note attached to the run (workflow runs).
454
- */
455
- annotation: string | null;
456
617
  retry: RunExecutionRetry;
457
618
  };
458
619
 
@@ -488,42 +649,11 @@ export type WorkflowRunExecution = {
488
649
  * Experiment batch id when the run is part of a batch.
489
650
  */
490
651
  batchId: string | null;
491
- /**
492
- * Free-form note attached to the run (workflow runs).
493
- */
494
- annotation: string | null;
495
652
  retry: RunExecutionRetry;
496
653
  /**
497
654
  * Per-step executions of the workflow run.
498
655
  */
499
656
  steps: Array<unknown>;
500
- /**
501
- * Ground-truth expected output (eval runs).
502
- */
503
- expected?: unknown;
504
- };
505
-
506
- export type AgentRunExecution = {
507
- status: ExecutionStatus;
508
- /**
509
- * Whether the completed output matched the workflow or agent output schema.
510
- */
511
- schemaValid: boolean | null;
512
- /**
513
- * Experiment batch id when the run is part of a batch.
514
- */
515
- batchId: string | null;
516
- /**
517
- * Free-form note attached to the run (workflow runs).
518
- */
519
- annotation: string | null;
520
- retry: RunExecutionRetry;
521
- files: {
522
- /**
523
- * Output artifacts the agent produced.
524
- */
525
- output: Array<RunFile>;
526
- };
527
657
  feedback?: RunFeedback | null;
528
658
  /**
529
659
  * Ground-truth expected output and files.
@@ -555,6 +685,33 @@ export type RunFeedback = {
555
685
  promotedExampleName: string | null;
556
686
  };
557
687
 
688
+ export type AgentRunExecution = {
689
+ status: ExecutionStatus;
690
+ /**
691
+ * Whether the completed output matched the workflow or agent output schema.
692
+ */
693
+ schemaValid: boolean | null;
694
+ /**
695
+ * Experiment batch id when the run is part of a batch.
696
+ */
697
+ batchId: string | null;
698
+ retry: RunExecutionRetry;
699
+ files: {
700
+ /**
701
+ * Output artifacts the agent produced.
702
+ */
703
+ output: Array<RunFile>;
704
+ };
705
+ feedback?: RunFeedback | null;
706
+ /**
707
+ * Ground-truth expected output and files.
708
+ */
709
+ expected?: {
710
+ output?: unknown;
711
+ files?: Array<RunFile>;
712
+ };
713
+ };
714
+
558
715
  export type RunDebug = {
559
716
  /**
560
717
  * Execution phase timeline and structured failure.
@@ -618,260 +775,76 @@ export type RunCancelResponse = {
618
775
  };
619
776
  };
620
777
 
621
- export type RunDefinitionResponse = {
622
- /**
623
- * The workflow definition snapshot captured when the run was created.
624
- */
625
- definition: unknown;
778
+ export type EvalResultsResponse = {
779
+ results: Array<EvalResult>;
626
780
  };
627
781
 
628
- export type RunFilesResponse = {
629
- inputs: Array<{
630
- [key: string]: unknown;
631
- }>;
632
- outputsByStep: {
633
- [key: string]: Array<{
634
- [key: string]: unknown;
635
- }>;
636
- };
782
+ export type EvalResult = {
783
+ id: string;
784
+ runId: string;
785
+ automationId: string | null;
786
+ evaluatorName: string;
787
+ evaluatorType: string;
788
+ score: number | null;
789
+ passed: boolean | null;
790
+ label: string | null;
791
+ weight: number | null;
792
+ passThreshold: number | null;
793
+ description: string | null;
794
+ details: unknown | null;
795
+ error: string | null;
796
+ createdAt: string;
637
797
  };
638
798
 
639
- export type RunRerunResponse = RunStartResponse;
640
-
641
- export type SourceLockfileResponse = {
642
- lockfileVersion: 1;
643
- eigenpalVersion: string;
644
- inputHash: string;
645
- root: Schema0;
799
+ export type RunEventsResponse = {
800
+ events: Array<RunEvent>;
646
801
  };
647
802
 
648
- export type RawSourceResponse = {
649
- ref: string;
650
- path: string;
651
- contentType: string;
652
- content: string;
803
+ export type RunEvent = {
804
+ type: string;
805
+ timestamp: string;
806
+ status?: string | null;
807
+ message?: string | null;
808
+ metadata?: {
809
+ [key: string]: unknown;
810
+ };
653
811
  };
654
812
 
655
- export type SourceReleasesResponse = {
656
- packagePath: string;
657
- releases: Array<{
658
- version: string;
659
- tag: string;
660
- commit: string;
813
+ export type RunFeedbackDetail = {
814
+ feedback: RunFeedback | null;
815
+ expected: unknown | null;
816
+ expectedFiles: Array<{
817
+ name: string;
661
818
  }>;
662
819
  };
663
820
 
664
- export type SourceRepositoryResponse = {
665
- gitRepositoryPath: string;
666
- remoteUrl: string;
821
+ export type PromoteRunResponse = {
822
+ automationId: string;
823
+ automationType: 'workflow' | 'agent';
824
+ exampleId: string;
825
+ name: string | null;
667
826
  };
668
827
 
669
- export type SourceSecretsDecryptResponse = {
670
- plaintext?: string;
671
- secrets?: {
672
- [key: string]: string;
673
- };
828
+ export type RunRerunResponse = RunStartResponse;
829
+
830
+ export type RunStepsResponse = {
831
+ steps: Array<unknown>;
674
832
  };
675
833
 
676
- export type SourceSecretsEncryptResponse = {
677
- encrypted?: {
678
- algorithm: 'aes-256-gcm';
679
- keyId: string;
680
- nonce: string;
681
- ciphertext: string;
682
- tag: string;
683
- };
684
- secrets?: {
685
- [key: string]: {
686
- algorithm: 'aes-256-gcm';
687
- keyId: string;
688
- nonce: string;
689
- ciphertext: string;
690
- tag: string;
691
- };
692
- };
834
+ export type RunUsageResponse = {
835
+ usage: RunUsage | null;
836
+ };
837
+
838
+ export type AuthCheckData = {
839
+ body?: never;
840
+ path?: never;
841
+ query?: never;
842
+ url: '/api/v1/auth/check';
693
843
  };
694
844
 
695
- export type WorkflowDetail = {
845
+ export type AuthCheckErrors = {
696
846
  /**
697
- * Workflow id (e.g. wf_abc123).
698
- */
699
- id: string;
700
- /**
701
- * Human-readable workflow name from the YAML (e.g. "extract-invoice"). Null when no version is published yet.
702
- */
703
- name?: string | null;
704
- /**
705
- * Current release tag (e.g. "1.2.4"). Null until a version is published.
706
- */
707
- version?: string | null;
708
- /**
709
- * Whether API trigger is enabled (runtime projection)
710
- */
711
- apiEnabled?: boolean;
712
- /**
713
- * Runtime trigger projection by type.
714
- */
715
- triggers?: {
716
- api: boolean;
717
- email: boolean;
718
- manual: boolean;
719
- cron: boolean;
720
- };
721
- createdAt: string;
722
- updatedAt?: string;
723
- /**
724
- * YAML for the current version. Null until a version is published. Heavy; only returned on single-workflow GET, not on list.
725
- */
726
- yamlContent?: string | null;
727
- };
728
-
729
- export type ListVersionsResponse = {
730
- data: Array<WorkflowVersion>;
731
- total: number;
732
- limit: number;
733
- offset: number;
734
- };
735
-
736
- export type WorkflowVersion = {
737
- /**
738
- * Version id (e.g. wfh_xyz). Stable for SDK pinning.
739
- */
740
- id: string;
741
- workflowId: string;
742
- /**
743
- * Release tag for this version.
744
- */
745
- version?: string | null;
746
- /**
747
- * Workflow YAML at this version.
748
- */
749
- yamlContent?: string;
750
- /**
751
- * True when this is the workflow’s currently published version.
752
- */
753
- isCurrent?: boolean;
754
- createdAt?: string;
755
- };
756
-
757
- export type ListWorkflowsResponse = {
758
- data: Array<WorkflowSummary>;
759
- total: number;
760
- limit: number;
761
- offset: number;
762
- };
763
-
764
- export type WorkflowSummary = {
765
- /**
766
- * Workflow id (e.g. wf_abc123).
767
- */
768
- id: string;
769
- /**
770
- * Human-readable workflow name from the YAML (e.g. "extract-invoice"). Null when no version is published yet.
771
- */
772
- name?: string | null;
773
- /**
774
- * Current release tag (e.g. "1.2.4"). Null until a version is published.
775
- */
776
- version?: string | null;
777
- /**
778
- * Whether API trigger is enabled (runtime projection)
779
- */
780
- apiEnabled?: boolean;
781
- /**
782
- * Runtime trigger projection by type.
783
- */
784
- triggers?: {
785
- api: boolean;
786
- email: boolean;
787
- manual: boolean;
788
- cron: boolean;
789
- };
790
- createdAt: string;
791
- updatedAt?: string;
792
- };
793
-
794
- export type Schema0 = {
795
- packagePath: string;
796
- requestedRef: string;
797
- resolvedRef: string;
798
- resolvedTag?: string;
799
- commit: string;
800
- dependencies: Array<Schema0>;
801
- };
802
-
803
- export type AgentsFilesListOrGetData = {
804
- body?: never;
805
- path: {
806
- /**
807
- * Agent id or slug
808
- */
809
- agentId: string;
810
- };
811
- query?: {
812
- path?: string;
813
- prefix?: string;
814
- /**
815
- * Git ref (default main)
816
- */
817
- ref?: string;
818
- };
819
- url: '/api/v1/agents/{agentId}/files';
820
- };
821
-
822
- export type AgentsFilesListOrGetErrors = {
823
- /**
824
- * Validation error. Request shape did not match the spec.
825
- */
826
- 400: ApiErrorEnvelope;
827
- /**
828
- * Missing or invalid API key
829
- */
830
- 401: ApiErrorEnvelope;
831
- /**
832
- * API key lacks required scope
833
- */
834
- 403: ApiErrorEnvelope;
835
- /**
836
- * Resource not found
837
- */
838
- 404: ApiErrorEnvelope;
839
- /**
840
- * Rate limit exceeded
841
- */
842
- 429: ApiErrorEnvelope;
843
- /**
844
- * Internal server error
845
- */
846
- 500: ApiErrorEnvelope;
847
- };
848
-
849
- export type AgentsFilesListOrGetError = AgentsFilesListOrGetErrors[keyof AgentsFilesListOrGetErrors];
850
-
851
- export type AgentsFilesListOrGetResponses = {
852
- /**
853
- * Agent source files or one file payload
854
- */
855
- 200: unknown;
856
- };
857
-
858
- export type AgentsFilesUploadBatchData = {
859
- body: {
860
- [key: string]: unknown;
861
- };
862
- path: {
863
- /**
864
- * Agent id or slug
865
- */
866
- agentId: string;
867
- };
868
- query?: never;
869
- url: '/api/v1/agents/{agentId}/files';
870
- };
871
-
872
- export type AgentsFilesUploadBatchErrors = {
873
- /**
874
- * Validation error. Request shape did not match the spec.
847
+ * Validation error. Request shape did not match the spec.
875
848
  */
876
849
  400: ApiErrorEnvelope;
877
850
  /**
@@ -887,11 +860,9 @@ export type AgentsFilesUploadBatchErrors = {
887
860
  */
888
861
  404: ApiErrorEnvelope;
889
862
  /**
890
- * Git-backed source S3 writes disabled
863
+ * Payload too large. Upload exceeded the per-request size cap.
891
864
  */
892
- 409: {
893
- error: string;
894
- };
865
+ 413: ApiErrorEnvelope;
895
866
  /**
896
867
  * Rate limit exceeded
897
868
  */
@@ -902,82 +873,29 @@ export type AgentsFilesUploadBatchErrors = {
902
873
  500: ApiErrorEnvelope;
903
874
  };
904
875
 
905
- export type AgentsFilesUploadBatchError = AgentsFilesUploadBatchErrors[keyof AgentsFilesUploadBatchErrors];
876
+ export type AuthCheckError = AuthCheckErrors[keyof AuthCheckErrors];
906
877
 
907
- export type AgentsFilesPutData = {
908
- body: {
909
- [key: string]: unknown;
910
- };
911
- path: {
912
- /**
913
- * Agent id or slug
914
- */
915
- agentId: string;
916
- };
917
- query?: {
918
- path?: string;
919
- prefix?: string;
920
- /**
921
- * Git ref (default main)
922
- */
923
- ref?: string;
924
- };
925
- url: '/api/v1/agents/{agentId}/files';
926
- };
927
-
928
- export type AgentsFilesPutErrors = {
929
- /**
930
- * Validation error. Request shape did not match the spec.
931
- */
932
- 400: ApiErrorEnvelope;
933
- /**
934
- * Missing or invalid API key
935
- */
936
- 401: ApiErrorEnvelope;
937
- /**
938
- * API key lacks required scope
939
- */
940
- 403: ApiErrorEnvelope;
941
- /**
942
- * Resource not found
943
- */
944
- 404: ApiErrorEnvelope;
945
- /**
946
- * Git-backed source — S3 writes disabled
947
- */
948
- 409: {
949
- error: string;
950
- };
951
- /**
952
- * Rate limit exceeded
953
- */
954
- 429: ApiErrorEnvelope;
878
+ export type AuthCheckResponses = {
955
879
  /**
956
- * Internal server error
880
+ * Authenticated identity
957
881
  */
958
- 500: ApiErrorEnvelope;
882
+ 200: AuthCheckResponse;
959
883
  };
960
884
 
961
- export type AgentsFilesPutError = AgentsFilesPutErrors[keyof AgentsFilesPutErrors];
885
+ export type AuthCheckResponse2 = AuthCheckResponses[keyof AuthCheckResponses];
962
886
 
963
- export type AgentsGetData = {
887
+ export type AutomationsDatasetExportData = {
964
888
  body?: never;
965
889
  path: {
966
- /**
967
- * Agent id or slug
968
- */
969
- agentId: string;
890
+ id: string;
970
891
  };
971
892
  query?: {
972
- /**
973
- * Comma-separated optional sections, e.g. files,dataset
974
- */
975
- include?: string;
893
+ exampleIds?: string;
976
894
  };
977
- url: '/api/v1/agents/{agentId}';
895
+ url: '/api/v1/automations/{id}/dataset/export';
978
896
  };
979
897
 
980
- export type AgentsGetErrors = {
898
+ export type AutomationsDatasetExportErrors = {
981
899
  /**
982
900
  * Validation error. Request shape did not match the spec.
983
901
  */
@@ -995,55 +913,9 @@ export type AgentsGetErrors = {
995
913
  */
996
914
  404: ApiErrorEnvelope;
997
915
  /**
998
- * Rate limit exceeded
999
- */
1000
- 429: ApiErrorEnvelope;
1001
- /**
1002
- * Internal server error
916
+ * Payload too large. Upload exceeded the per-request size cap.
1003
917
  */
1004
- 500: ApiErrorEnvelope;
1005
- };
1006
-
1007
- export type AgentsGetError = AgentsGetErrors[keyof AgentsGetErrors];
1008
-
1009
- export type AgentsGetResponses = {
1010
- /**
1011
- * Agent
1012
- */
1013
- 200: GetAgentResponse;
1014
- };
1015
-
1016
- export type AgentsGetResponse = AgentsGetResponses[keyof AgentsGetResponses];
1017
-
1018
- export type AgentsUpdateData = {
1019
- body: PatchAgentBody;
1020
- path: {
1021
- /**
1022
- * Agent id or slug
1023
- */
1024
- agentId: string;
1025
- };
1026
- query?: never;
1027
- url: '/api/v1/agents/{agentId}';
1028
- };
1029
-
1030
- export type AgentsUpdateErrors = {
1031
- /**
1032
- * Validation error. Request shape did not match the spec.
1033
- */
1034
- 400: ApiErrorEnvelope;
1035
- /**
1036
- * Missing or invalid API key
1037
- */
1038
- 401: ApiErrorEnvelope;
1039
- /**
1040
- * API key lacks required scope
1041
- */
1042
- 403: ApiErrorEnvelope;
1043
- /**
1044
- * Resource not found
1045
- */
1046
- 404: ApiErrorEnvelope;
918
+ 413: ApiErrorEnvelope;
1047
919
  /**
1048
920
  * Rate limit exceeded
1049
921
  */
@@ -1054,34 +926,27 @@ export type AgentsUpdateErrors = {
1054
926
  500: ApiErrorEnvelope;
1055
927
  };
1056
928
 
1057
- export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
929
+ export type AutomationsDatasetExportError = AutomationsDatasetExportErrors[keyof AutomationsDatasetExportErrors];
1058
930
 
1059
- export type AgentsUpdateResponses = {
931
+ export type AutomationsDatasetExportResponses = {
1060
932
  /**
1061
- * Updated agent
933
+ * ZIP archive
1062
934
  */
1063
- 200: PatchAgentResponse;
935
+ 200: string;
1064
936
  };
1065
937
 
1066
- export type AgentsUpdateResponse = AgentsUpdateResponses[keyof AgentsUpdateResponses];
938
+ export type AutomationsDatasetExportResponse = AutomationsDatasetExportResponses[keyof AutomationsDatasetExportResponses];
1067
939
 
1068
- export type AgentsTriggersEmailDeleteAliasData = {
1069
- body?: never;
940
+ export type AutomationsDatasetImportData = {
941
+ body: AutomationDatasetImportMultipartRequest;
1070
942
  path: {
1071
- /**
1072
- * Agent id or slug
1073
- */
1074
- agentId: string;
1075
- /**
1076
- * Email trigger alias id
1077
- */
1078
- emailId: string;
943
+ id: string;
1079
944
  };
1080
945
  query?: never;
1081
- url: '/api/v1/agents/{agentId}/triggers/email/{emailId}';
946
+ url: '/api/v1/automations/{id}/dataset/import';
1082
947
  };
1083
948
 
1084
- export type AgentsTriggersEmailDeleteAliasErrors = {
949
+ export type AutomationsDatasetImportErrors = {
1085
950
  /**
1086
951
  * Validation error. Request shape did not match the spec.
1087
952
  */
@@ -1099,71 +964,9 @@ export type AgentsTriggersEmailDeleteAliasErrors = {
1099
964
  */
1100
965
  404: ApiErrorEnvelope;
1101
966
  /**
1102
- * Rate limit exceeded
1103
- */
1104
- 429: ApiErrorEnvelope;
1105
- /**
1106
- * Internal server error
1107
- */
1108
- 500: ApiErrorEnvelope;
1109
- };
1110
-
1111
- export type AgentsTriggersEmailDeleteAliasError = AgentsTriggersEmailDeleteAliasErrors[keyof AgentsTriggersEmailDeleteAliasErrors];
1112
-
1113
- export type AgentsTriggersEmailDeleteAliasResponses = {
1114
- /**
1115
- * Removed email alias
1116
- */
1117
- 200: {
1118
- removed: true;
1119
- };
1120
- };
1121
-
1122
- export type AgentsTriggersEmailDeleteAliasResponse = AgentsTriggersEmailDeleteAliasResponses[keyof AgentsTriggersEmailDeleteAliasResponses];
1123
-
1124
- export type AgentsTriggersEmailUpdateAliasData = {
1125
- body: {
1126
- label?: string | null;
1127
- allowlist?: Array<string>;
1128
- allow?: Array<string>;
1129
- status?: 'active' | 'disabled';
1130
- replyConfig?: {
1131
- [key: string]: unknown;
1132
- };
1133
- requireSenderAuth?: boolean;
1134
- [key: string]: unknown;
1135
- };
1136
- path: {
1137
- /**
1138
- * Agent id or slug
1139
- */
1140
- agentId: string;
1141
- /**
1142
- * Email trigger alias id
1143
- */
1144
- emailId: string;
1145
- };
1146
- query?: never;
1147
- url: '/api/v1/agents/{agentId}/triggers/email/{emailId}';
1148
- };
1149
-
1150
- export type AgentsTriggersEmailUpdateAliasErrors = {
1151
- /**
1152
- * Validation error. Request shape did not match the spec.
1153
- */
1154
- 400: ApiErrorEnvelope;
1155
- /**
1156
- * Missing or invalid API key
1157
- */
1158
- 401: ApiErrorEnvelope;
1159
- /**
1160
- * API key lacks required scope
967
+ * Payload too large. Upload exceeded the per-request size cap.
1161
968
  */
1162
- 403: ApiErrorEnvelope;
1163
- /**
1164
- * Resource not found
1165
- */
1166
- 404: ApiErrorEnvelope;
969
+ 413: ApiErrorEnvelope;
1167
970
  /**
1168
971
  * Rate limit exceeded
1169
972
  */
@@ -1174,32 +977,27 @@ export type AgentsTriggersEmailUpdateAliasErrors = {
1174
977
  500: ApiErrorEnvelope;
1175
978
  };
1176
979
 
1177
- export type AgentsTriggersEmailUpdateAliasError = AgentsTriggersEmailUpdateAliasErrors[keyof AgentsTriggersEmailUpdateAliasErrors];
980
+ export type AutomationsDatasetImportError = AutomationsDatasetImportErrors[keyof AutomationsDatasetImportErrors];
1178
981
 
1179
- export type AgentsTriggersEmailUpdateAliasResponses = {
982
+ export type AutomationsDatasetImportResponses = {
1180
983
  /**
1181
- * Updated email alias
984
+ * Import result
1182
985
  */
1183
- 200: {
1184
- email: unknown;
1185
- };
986
+ 200: DatasetImportResponse;
1186
987
  };
1187
988
 
1188
- export type AgentsTriggersEmailUpdateAliasResponse = AgentsTriggersEmailUpdateAliasResponses[keyof AgentsTriggersEmailUpdateAliasResponses];
989
+ export type AutomationsDatasetImportResponse = AutomationsDatasetImportResponses[keyof AutomationsDatasetImportResponses];
1189
990
 
1190
- export type AgentsTriggersEmailGetData = {
991
+ export type AutomationsEvaluatorsGetData = {
1191
992
  body?: never;
1192
993
  path: {
1193
- /**
1194
- * Agent id or slug
1195
- */
1196
- agentId: string;
994
+ id: string;
1197
995
  };
1198
996
  query?: never;
1199
- url: '/api/v1/agents/{agentId}/triggers/email';
997
+ url: '/api/v1/automations/{id}/evaluators';
1200
998
  };
1201
999
 
1202
- export type AgentsTriggersEmailGetErrors = {
1000
+ export type AutomationsEvaluatorsGetErrors = {
1203
1001
  /**
1204
1002
  * Validation error. Request shape did not match the spec.
1205
1003
  */
@@ -1217,60 +1015,9 @@ export type AgentsTriggersEmailGetErrors = {
1217
1015
  */
1218
1016
  404: ApiErrorEnvelope;
1219
1017
  /**
1220
- * Rate limit exceeded
1221
- */
1222
- 429: ApiErrorEnvelope;
1223
- /**
1224
- * Internal server error
1225
- */
1226
- 500: ApiErrorEnvelope;
1227
- };
1228
-
1229
- export type AgentsTriggersEmailGetError = AgentsTriggersEmailGetErrors[keyof AgentsTriggersEmailGetErrors];
1230
-
1231
- export type AgentsTriggersEmailGetResponses = {
1232
- /**
1233
- * Email trigger state
1234
- */
1235
- 200: {
1236
- trigger: unknown;
1237
- emails: Array<unknown>;
1238
- };
1239
- };
1240
-
1241
- export type AgentsTriggersEmailGetResponse = AgentsTriggersEmailGetResponses[keyof AgentsTriggersEmailGetResponses];
1242
-
1243
- export type AgentsTriggersEmailUpdateData = {
1244
- body: {
1245
- enabled: boolean;
1246
- };
1247
- path: {
1248
- /**
1249
- * Agent id or slug
1250
- */
1251
- agentId: string;
1252
- };
1253
- query?: never;
1254
- url: '/api/v1/agents/{agentId}/triggers/email';
1255
- };
1256
-
1257
- export type AgentsTriggersEmailUpdateErrors = {
1258
- /**
1259
- * Validation error. Request shape did not match the spec.
1260
- */
1261
- 400: ApiErrorEnvelope;
1262
- /**
1263
- * Missing or invalid API key
1264
- */
1265
- 401: ApiErrorEnvelope;
1266
- /**
1267
- * API key lacks required scope
1018
+ * Payload too large. Upload exceeded the per-request size cap.
1268
1019
  */
1269
- 403: ApiErrorEnvelope;
1270
- /**
1271
- * Resource not found
1272
- */
1273
- 404: ApiErrorEnvelope;
1020
+ 413: ApiErrorEnvelope;
1274
1021
  /**
1275
1022
  * Rate limit exceeded
1276
1023
  */
@@ -1281,42 +1028,27 @@ export type AgentsTriggersEmailUpdateErrors = {
1281
1028
  500: ApiErrorEnvelope;
1282
1029
  };
1283
1030
 
1284
- export type AgentsTriggersEmailUpdateError = AgentsTriggersEmailUpdateErrors[keyof AgentsTriggersEmailUpdateErrors];
1031
+ export type AutomationsEvaluatorsGetError = AutomationsEvaluatorsGetErrors[keyof AutomationsEvaluatorsGetErrors];
1285
1032
 
1286
- export type AgentsTriggersEmailUpdateResponses = {
1033
+ export type AutomationsEvaluatorsGetResponses = {
1287
1034
  /**
1288
- * Updated email trigger state
1035
+ * Evaluator config
1289
1036
  */
1290
- 200: {
1291
- trigger: unknown;
1292
- };
1037
+ 200: EvaluatorConfigResponse;
1293
1038
  };
1294
1039
 
1295
- export type AgentsTriggersEmailUpdateResponse = AgentsTriggersEmailUpdateResponses[keyof AgentsTriggersEmailUpdateResponses];
1040
+ export type AutomationsEvaluatorsGetResponse = AutomationsEvaluatorsGetResponses[keyof AutomationsEvaluatorsGetResponses];
1296
1041
 
1297
- export type AgentsTriggersEmailCreateAliasData = {
1298
- body: {
1299
- email?: string;
1300
- alias?: string;
1301
- label?: string;
1302
- allowlist?: Array<string>;
1303
- allow?: Array<string>;
1304
- replyConfig?: {
1305
- [key: string]: unknown;
1306
- };
1307
- [key: string]: unknown;
1308
- };
1042
+ export type AutomationsEvaluatorsUpdateData = {
1043
+ body: EvaluatorConfigUpdate;
1309
1044
  path: {
1310
- /**
1311
- * Agent id or slug
1312
- */
1313
- agentId: string;
1045
+ id: string;
1314
1046
  };
1315
1047
  query?: never;
1316
- url: '/api/v1/agents/{agentId}/triggers/email';
1048
+ url: '/api/v1/automations/{id}/evaluators';
1317
1049
  };
1318
1050
 
1319
- export type AgentsTriggersEmailCreateAliasErrors = {
1051
+ export type AutomationsEvaluatorsUpdateErrors = {
1320
1052
  /**
1321
1053
  * Validation error. Request shape did not match the spec.
1322
1054
  */
@@ -1333,6 +1065,10 @@ export type AgentsTriggersEmailCreateAliasErrors = {
1333
1065
  * Resource not found
1334
1066
  */
1335
1067
  404: ApiErrorEnvelope;
1068
+ /**
1069
+ * Payload too large. Upload exceeded the per-request size cap.
1070
+ */
1071
+ 413: ApiErrorEnvelope;
1336
1072
  /**
1337
1073
  * Rate limit exceeded
1338
1074
  */
@@ -1343,32 +1079,28 @@ export type AgentsTriggersEmailCreateAliasErrors = {
1343
1079
  500: ApiErrorEnvelope;
1344
1080
  };
1345
1081
 
1346
- export type AgentsTriggersEmailCreateAliasError = AgentsTriggersEmailCreateAliasErrors[keyof AgentsTriggersEmailCreateAliasErrors];
1082
+ export type AutomationsEvaluatorsUpdateError = AutomationsEvaluatorsUpdateErrors[keyof AutomationsEvaluatorsUpdateErrors];
1347
1083
 
1348
- export type AgentsTriggersEmailCreateAliasResponses = {
1084
+ export type AutomationsEvaluatorsUpdateResponses = {
1349
1085
  /**
1350
- * Created email alias
1086
+ * Evaluator config
1351
1087
  */
1352
- 201: {
1353
- email: unknown;
1354
- };
1088
+ 200: EvaluatorConfigResponse;
1355
1089
  };
1356
1090
 
1357
- export type AgentsTriggersEmailCreateAliasResponse = AgentsTriggersEmailCreateAliasResponses[keyof AgentsTriggersEmailCreateAliasResponses];
1091
+ export type AutomationsEvaluatorsUpdateResponse = AutomationsEvaluatorsUpdateResponses[keyof AutomationsEvaluatorsUpdateResponses];
1358
1092
 
1359
- export type AgentsVersionsListData = {
1093
+ export type AutomationsExamplesDeleteData = {
1360
1094
  body?: never;
1361
1095
  path: {
1362
- /**
1363
- * Agent id or slug
1364
- */
1365
- agentId: string;
1096
+ id: string;
1097
+ exampleId: string;
1366
1098
  };
1367
1099
  query?: never;
1368
- url: '/api/v1/agents/{agentId}/versions';
1100
+ url: '/api/v1/automations/{id}/examples/{exampleId}';
1369
1101
  };
1370
1102
 
1371
- export type AgentsVersionsListErrors = {
1103
+ export type AutomationsExamplesDeleteErrors = {
1372
1104
  /**
1373
1105
  * Validation error. Request shape did not match the spec.
1374
1106
  */
@@ -1386,62 +1118,9 @@ export type AgentsVersionsListErrors = {
1386
1118
  */
1387
1119
  404: ApiErrorEnvelope;
1388
1120
  /**
1389
- * Rate limit exceeded
1390
- */
1391
- 429: ApiErrorEnvelope;
1392
- /**
1393
- * Internal server error
1394
- */
1395
- 500: ApiErrorEnvelope;
1396
- };
1397
-
1398
- export type AgentsVersionsListError = AgentsVersionsListErrors[keyof AgentsVersionsListErrors];
1399
-
1400
- export type AgentsVersionsListResponses = {
1401
- /**
1402
- * Agent versions
1403
- */
1404
- 200: ListAgentVersionsResponse;
1405
- };
1406
-
1407
- export type AgentsVersionsListResponse = AgentsVersionsListResponses[keyof AgentsVersionsListResponses];
1408
-
1409
- export type AgentsListData = {
1410
- body?: never;
1411
- path?: never;
1412
- query?: {
1413
- /**
1414
- * Substring match against agent fields
1415
- */
1416
- search?: string;
1417
- /**
1418
- * Return a single agent by slug
1419
- */
1420
- slug?: string;
1421
- limit?: number;
1422
- offset?: number;
1423
- includeArchived?: boolean;
1424
- };
1425
- url: '/api/v1/agents';
1426
- };
1427
-
1428
- export type AgentsListErrors = {
1429
- /**
1430
- * Validation error. Request shape did not match the spec.
1431
- */
1432
- 400: ApiErrorEnvelope;
1433
- /**
1434
- * Missing or invalid API key
1435
- */
1436
- 401: ApiErrorEnvelope;
1437
- /**
1438
- * API key lacks required scope
1439
- */
1440
- 403: ApiErrorEnvelope;
1441
- /**
1442
- * Resource not found
1121
+ * Payload too large. Upload exceeded the per-request size cap.
1443
1122
  */
1444
- 404: ApiErrorEnvelope;
1123
+ 413: ApiErrorEnvelope;
1445
1124
  /**
1446
1125
  * Rate limit exceeded
1447
1126
  */
@@ -1452,25 +1131,28 @@ export type AgentsListErrors = {
1452
1131
  500: ApiErrorEnvelope;
1453
1132
  };
1454
1133
 
1455
- export type AgentsListError = AgentsListErrors[keyof AgentsListErrors];
1134
+ export type AutomationsExamplesDeleteError = AutomationsExamplesDeleteErrors[keyof AutomationsExamplesDeleteErrors];
1456
1135
 
1457
- export type AgentsListResponses = {
1136
+ export type AutomationsExamplesDeleteResponses = {
1458
1137
  /**
1459
- * Paginated list of agents
1138
+ * Deleted example
1460
1139
  */
1461
- 200: ListAgentsResponse;
1140
+ 200: DatasetExample;
1462
1141
  };
1463
1142
 
1464
- export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
1143
+ export type AutomationsExamplesDeleteResponse = AutomationsExamplesDeleteResponses[keyof AutomationsExamplesDeleteResponses];
1465
1144
 
1466
- export type AgentsCreateData = {
1467
- body: CreateAgentBody;
1468
- path?: never;
1145
+ export type AutomationsExamplesGetData = {
1146
+ body?: never;
1147
+ path: {
1148
+ id: string;
1149
+ exampleId: string;
1150
+ };
1469
1151
  query?: never;
1470
- url: '/api/v1/agents';
1152
+ url: '/api/v1/automations/{id}/examples/{exampleId}';
1471
1153
  };
1472
1154
 
1473
- export type AgentsCreateErrors = {
1155
+ export type AutomationsExamplesGetErrors = {
1474
1156
  /**
1475
1157
  * Validation error. Request shape did not match the spec.
1476
1158
  */
@@ -1488,50 +1170,9 @@ export type AgentsCreateErrors = {
1488
1170
  */
1489
1171
  404: ApiErrorEnvelope;
1490
1172
  /**
1491
- * Rate limit exceeded
1173
+ * Payload too large. Upload exceeded the per-request size cap.
1492
1174
  */
1493
- 429: ApiErrorEnvelope;
1494
- /**
1495
- * Internal server error
1496
- */
1497
- 500: ApiErrorEnvelope;
1498
- };
1499
-
1500
- export type AgentsCreateError = AgentsCreateErrors[keyof AgentsCreateErrors];
1501
-
1502
- export type AgentsCreateResponses = {
1503
- /**
1504
- * Created agent
1505
- */
1506
- 201: CreateAgentResponse;
1507
- };
1508
-
1509
- export type AgentsCreateResponse = AgentsCreateResponses[keyof AgentsCreateResponses];
1510
-
1511
- export type AgentsTriggersEmailListData = {
1512
- body?: never;
1513
- path?: never;
1514
- query?: never;
1515
- url: '/api/v1/agents/triggers/email';
1516
- };
1517
-
1518
- export type AgentsTriggersEmailListErrors = {
1519
- /**
1520
- * Validation error. Request shape did not match the spec.
1521
- */
1522
- 400: ApiErrorEnvelope;
1523
- /**
1524
- * Missing or invalid API key
1525
- */
1526
- 401: ApiErrorEnvelope;
1527
- /**
1528
- * API key lacks required scope
1529
- */
1530
- 403: ApiErrorEnvelope;
1531
- /**
1532
- * Resource not found
1533
- */
1534
- 404: ApiErrorEnvelope;
1175
+ 413: ApiErrorEnvelope;
1535
1176
  /**
1536
1177
  * Rate limit exceeded
1537
1178
  */
@@ -1542,29 +1183,28 @@ export type AgentsTriggersEmailListErrors = {
1542
1183
  500: ApiErrorEnvelope;
1543
1184
  };
1544
1185
 
1545
- export type AgentsTriggersEmailListError = AgentsTriggersEmailListErrors[keyof AgentsTriggersEmailListErrors];
1186
+ export type AutomationsExamplesGetError = AutomationsExamplesGetErrors[keyof AutomationsExamplesGetErrors];
1546
1187
 
1547
- export type AgentsTriggersEmailListResponses = {
1188
+ export type AutomationsExamplesGetResponses = {
1548
1189
  /**
1549
- * Email trigger aliases
1190
+ * Example
1550
1191
  */
1551
- 200: {
1552
- emails: Array<unknown>;
1553
- };
1192
+ 200: DatasetExample;
1554
1193
  };
1555
1194
 
1556
- export type AgentsTriggersEmailListResponse = AgentsTriggersEmailListResponses[keyof AgentsTriggersEmailListResponses];
1195
+ export type AutomationsExamplesGetResponse = AutomationsExamplesGetResponses[keyof AutomationsExamplesGetResponses];
1557
1196
 
1558
- export type AutomationsSyncData = {
1559
- body?: never;
1197
+ export type AutomationsExamplesUpdateData = {
1198
+ body: DatasetExampleUpdate;
1560
1199
  path: {
1561
- automation: string;
1200
+ id: string;
1201
+ exampleId: string;
1562
1202
  };
1563
1203
  query?: never;
1564
- url: '/api/v1/automations/{automation}/sync';
1204
+ url: '/api/v1/automations/{id}/examples/{exampleId}';
1565
1205
  };
1566
1206
 
1567
- export type AutomationsSyncErrors = {
1207
+ export type AutomationsExamplesUpdateErrors = {
1568
1208
  /**
1569
1209
  * Validation error. Request shape did not match the spec.
1570
1210
  */
@@ -1582,70 +1222,9 @@ export type AutomationsSyncErrors = {
1582
1222
  */
1583
1223
  404: ApiErrorEnvelope;
1584
1224
  /**
1585
- * Rate limit exceeded
1225
+ * Payload too large. Upload exceeded the per-request size cap.
1586
1226
  */
1587
- 429: ApiErrorEnvelope;
1588
- /**
1589
- * Internal server error
1590
- */
1591
- 500: ApiErrorEnvelope;
1592
- };
1593
-
1594
- export type AutomationsSyncError = AutomationsSyncErrors[keyof AutomationsSyncErrors];
1595
-
1596
- export type AutomationsSyncResponses = {
1597
- /**
1598
- * Automation synced
1599
- */
1600
- 200: AutomationSyncResponse;
1601
- };
1602
-
1603
- export type AutomationsSyncResponse = AutomationsSyncResponses[keyof AutomationsSyncResponses];
1604
-
1605
- export type RunsListData = {
1606
- body?: never;
1607
- path?: never;
1608
- query?: {
1609
- type?: string;
1610
- source?: string;
1611
- status?: string;
1612
- trigger?: string;
1613
- triggeredBy?: string;
1614
- sourceRef?: string;
1615
- batchId?: string;
1616
- exampleId?: string;
1617
- exampleIdContains?: string;
1618
- from?: string;
1619
- to?: string;
1620
- createdAfter?: string;
1621
- createdBefore?: string;
1622
- completedAfter?: string;
1623
- completedBefore?: string;
1624
- cursor?: string;
1625
- offset?: number;
1626
- limit?: number;
1627
- ids?: string;
1628
- };
1629
- url: '/api/v1/runs';
1630
- };
1631
-
1632
- export type RunsListErrors = {
1633
- /**
1634
- * Validation error. Request shape did not match the spec.
1635
- */
1636
- 400: ApiErrorEnvelope;
1637
- /**
1638
- * Missing or invalid API key
1639
- */
1640
- 401: ApiErrorEnvelope;
1641
- /**
1642
- * API key lacks required scope
1643
- */
1644
- 403: ApiErrorEnvelope;
1645
- /**
1646
- * Resource not found
1647
- */
1648
- 404: ApiErrorEnvelope;
1227
+ 413: ApiErrorEnvelope;
1649
1228
  /**
1650
1229
  * Rate limit exceeded
1651
1230
  */
@@ -1654,36 +1233,30 @@ export type RunsListErrors = {
1654
1233
  * Internal server error
1655
1234
  */
1656
1235
  500: ApiErrorEnvelope;
1657
- };
1658
-
1659
- export type RunsListError = RunsListErrors[keyof RunsListErrors];
1660
-
1661
- export type RunsListResponses = {
1662
- /**
1663
- * Runs page
1664
- */
1665
- 200: RunsListResponse;
1666
- };
1667
-
1668
- export type RunsListResponse2 = RunsListResponses[keyof RunsListResponses];
1669
-
1670
- export type RunsStartData = {
1671
- body: RunStartBody;
1672
- path?: never;
1673
- query?: {
1674
- /**
1675
- * Release or git ref. Defaults to latest.
1676
- */
1677
- version?: string;
1678
- /**
1679
- * Seconds to wait before returning (max 600). Omit for async.
1680
- */
1681
- wait_for_completion?: number;
1236
+ };
1237
+
1238
+ export type AutomationsExamplesUpdateError = AutomationsExamplesUpdateErrors[keyof AutomationsExamplesUpdateErrors];
1239
+
1240
+ export type AutomationsExamplesUpdateResponses = {
1241
+ /**
1242
+ * Updated example
1243
+ */
1244
+ 200: DatasetExample;
1245
+ };
1246
+
1247
+ export type AutomationsExamplesUpdateResponse = AutomationsExamplesUpdateResponses[keyof AutomationsExamplesUpdateResponses];
1248
+
1249
+ export type AutomationsExamplesRunData = {
1250
+ body?: never;
1251
+ path: {
1252
+ id: string;
1253
+ exampleId: string;
1682
1254
  };
1683
- url: '/api/v1/runs';
1255
+ query?: never;
1256
+ url: '/api/v1/automations/{id}/examples/{exampleId}/run';
1684
1257
  };
1685
1258
 
1686
- export type RunsStartErrors = {
1259
+ export type AutomationsExamplesRunErrors = {
1687
1260
  /**
1688
1261
  * Validation error. Request shape did not match the spec.
1689
1262
  */
@@ -1693,13 +1266,17 @@ export type RunsStartErrors = {
1693
1266
  */
1694
1267
  401: ApiErrorEnvelope;
1695
1268
  /**
1696
- * Trigger disabled or insufficient scope. Run start may return api_trigger_disabled when the API trigger is off, or manual_trigger_disabled for dashboard runs on API-only workflows.
1269
+ * API key lacks required scope
1697
1270
  */
1698
1271
  403: ApiErrorEnvelope;
1699
1272
  /**
1700
1273
  * Resource not found
1701
1274
  */
1702
1275
  404: ApiErrorEnvelope;
1276
+ /**
1277
+ * Payload too large. Upload exceeded the per-request size cap.
1278
+ */
1279
+ 413: ApiErrorEnvelope;
1703
1280
  /**
1704
1281
  * Rate limit exceeded
1705
1282
  */
@@ -1710,36 +1287,30 @@ export type RunsStartErrors = {
1710
1287
  500: ApiErrorEnvelope;
1711
1288
  };
1712
1289
 
1713
- export type RunsStartError = RunsStartErrors[keyof RunsStartErrors];
1290
+ export type AutomationsExamplesRunError = AutomationsExamplesRunErrors[keyof AutomationsExamplesRunErrors];
1714
1291
 
1715
- export type RunsStartResponses = {
1716
- /**
1717
- * Run completed while waiting — same body as GET /api/v1/runs/:id
1718
- */
1719
- 200: RunStartResponse;
1292
+ export type AutomationsExamplesRunResponses = {
1720
1293
  /**
1721
- * Run accepted (async)
1722
- */
1723
- 201: RunStartResponse;
1724
- /**
1725
- * Wait expired with a non-terminal status — poll GET /api/v1/runs/:id
1294
+ * Example run accepted
1726
1295
  */
1727
- 202: RunStartResponse;
1296
+ 201: ExampleRunResponse;
1728
1297
  };
1729
1298
 
1730
- export type RunsStartResponse = RunsStartResponses[keyof RunsStartResponses];
1299
+ export type AutomationsExamplesRunResponse = AutomationsExamplesRunResponses[keyof AutomationsExamplesRunResponses];
1731
1300
 
1732
- export type RunsArtifactsGetData = {
1301
+ export type AutomationsExamplesListData = {
1733
1302
  body?: never;
1734
1303
  path: {
1735
1304
  id: string;
1736
- path: string;
1737
1305
  };
1738
- query?: never;
1739
- url: '/api/v1/runs/{id}/artifacts/{path}';
1306
+ query?: {
1307
+ limit?: number;
1308
+ offset?: number;
1309
+ };
1310
+ url: '/api/v1/automations/{id}/examples';
1740
1311
  };
1741
1312
 
1742
- export type RunsArtifactsGetErrors = {
1313
+ export type AutomationsExamplesListErrors = {
1743
1314
  /**
1744
1315
  * Validation error. Request shape did not match the spec.
1745
1316
  */
@@ -1756,6 +1327,10 @@ export type RunsArtifactsGetErrors = {
1756
1327
  * Resource not found
1757
1328
  */
1758
1329
  404: ApiErrorEnvelope;
1330
+ /**
1331
+ * Payload too large. Upload exceeded the per-request size cap.
1332
+ */
1333
+ 413: ApiErrorEnvelope;
1759
1334
  /**
1760
1335
  * Rate limit exceeded
1761
1336
  */
@@ -1766,28 +1341,27 @@ export type RunsArtifactsGetErrors = {
1766
1341
  500: ApiErrorEnvelope;
1767
1342
  };
1768
1343
 
1769
- export type RunsArtifactsGetError = RunsArtifactsGetErrors[keyof RunsArtifactsGetErrors];
1344
+ export type AutomationsExamplesListError = AutomationsExamplesListErrors[keyof AutomationsExamplesListErrors];
1770
1345
 
1771
- export type RunsArtifactsGetResponses = {
1346
+ export type AutomationsExamplesListResponses = {
1772
1347
  /**
1773
- * Run artifact
1348
+ * Examples
1774
1349
  */
1775
- 200: unknown;
1350
+ 200: DatasetExampleList;
1776
1351
  };
1777
1352
 
1778
- export type RunsArtifactsListData = {
1779
- body?: never;
1353
+ export type AutomationsExamplesListResponse = AutomationsExamplesListResponses[keyof AutomationsExamplesListResponses];
1354
+
1355
+ export type AutomationsExamplesCreateData = {
1356
+ body: DatasetExampleMutation;
1780
1357
  path: {
1781
- /**
1782
- * Run id
1783
- */
1784
1358
  id: string;
1785
1359
  };
1786
1360
  query?: never;
1787
- url: '/api/v1/runs/{id}/artifacts';
1361
+ url: '/api/v1/automations/{id}/examples';
1788
1362
  };
1789
1363
 
1790
- export type RunsArtifactsListErrors = {
1364
+ export type AutomationsExamplesCreateErrors = {
1791
1365
  /**
1792
1366
  * Validation error. Request shape did not match the spec.
1793
1367
  */
@@ -1804,6 +1378,10 @@ export type RunsArtifactsListErrors = {
1804
1378
  * Resource not found
1805
1379
  */
1806
1380
  404: ApiErrorEnvelope;
1381
+ /**
1382
+ * Payload too large. Upload exceeded the per-request size cap.
1383
+ */
1384
+ 413: ApiErrorEnvelope;
1807
1385
  /**
1808
1386
  * Rate limit exceeded
1809
1387
  */
@@ -1814,27 +1392,30 @@ export type RunsArtifactsListErrors = {
1814
1392
  500: ApiErrorEnvelope;
1815
1393
  };
1816
1394
 
1817
- export type RunsArtifactsListError = RunsArtifactsListErrors[keyof RunsArtifactsListErrors];
1395
+ export type AutomationsExamplesCreateError = AutomationsExamplesCreateErrors[keyof AutomationsExamplesCreateErrors];
1818
1396
 
1819
- export type RunsArtifactsListResponses = {
1397
+ export type AutomationsExamplesCreateResponses = {
1820
1398
  /**
1821
- * Run artifacts
1399
+ * Created example
1822
1400
  */
1823
- 200: RunArtifactsResponse;
1401
+ 201: DatasetExample;
1824
1402
  };
1825
1403
 
1826
- export type RunsArtifactsListResponse = RunsArtifactsListResponses[keyof RunsArtifactsListResponses];
1404
+ export type AutomationsExamplesCreateResponse = AutomationsExamplesCreateResponses[keyof AutomationsExamplesCreateResponses];
1827
1405
 
1828
- export type RunsCancelData = {
1406
+ export type AutomationsExperimentsListData = {
1829
1407
  body?: never;
1830
1408
  path: {
1831
1409
  id: string;
1832
1410
  };
1833
- query?: never;
1834
- url: '/api/v1/runs/{id}/cancel';
1411
+ query?: {
1412
+ limit?: number;
1413
+ offset?: number;
1414
+ };
1415
+ url: '/api/v1/automations/{id}/experiments';
1835
1416
  };
1836
1417
 
1837
- export type RunsCancelErrors = {
1418
+ export type AutomationsExperimentsListErrors = {
1838
1419
  /**
1839
1420
  * Validation error. Request shape did not match the spec.
1840
1421
  */
@@ -1851,6 +1432,10 @@ export type RunsCancelErrors = {
1851
1432
  * Resource not found
1852
1433
  */
1853
1434
  404: ApiErrorEnvelope;
1435
+ /**
1436
+ * Payload too large. Upload exceeded the per-request size cap.
1437
+ */
1438
+ 413: ApiErrorEnvelope;
1854
1439
  /**
1855
1440
  * Rate limit exceeded
1856
1441
  */
@@ -1861,27 +1446,32 @@ export type RunsCancelErrors = {
1861
1446
  500: ApiErrorEnvelope;
1862
1447
  };
1863
1448
 
1864
- export type RunsCancelError = RunsCancelErrors[keyof RunsCancelErrors];
1449
+ export type AutomationsExperimentsListError = AutomationsExperimentsListErrors[keyof AutomationsExperimentsListErrors];
1865
1450
 
1866
- export type RunsCancelResponses = {
1451
+ export type AutomationsExperimentsListResponses = {
1867
1452
  /**
1868
- * Cancellation result
1453
+ * Experiments
1869
1454
  */
1870
- 200: RunCancelResponse;
1455
+ 200: {
1456
+ data: Array<Experiment>;
1457
+ total: number;
1458
+ limit: number;
1459
+ offset: number;
1460
+ };
1871
1461
  };
1872
1462
 
1873
- export type RunsCancelResponse = RunsCancelResponses[keyof RunsCancelResponses];
1463
+ export type AutomationsExperimentsListResponse = AutomationsExperimentsListResponses[keyof AutomationsExperimentsListResponses];
1874
1464
 
1875
- export type RunsComparisonGetData = {
1876
- body?: never;
1465
+ export type AutomationsExperimentsCreateData = {
1466
+ body: ExperimentCreate;
1877
1467
  path: {
1878
1468
  id: string;
1879
1469
  };
1880
1470
  query?: never;
1881
- url: '/api/v1/runs/{id}/comparison';
1471
+ url: '/api/v1/automations/{id}/experiments';
1882
1472
  };
1883
1473
 
1884
- export type RunsComparisonGetErrors = {
1474
+ export type AutomationsExperimentsCreateErrors = {
1885
1475
  /**
1886
1476
  * Validation error. Request shape did not match the spec.
1887
1477
  */
@@ -1898,6 +1488,10 @@ export type RunsComparisonGetErrors = {
1898
1488
  * Resource not found
1899
1489
  */
1900
1490
  404: ApiErrorEnvelope;
1491
+ /**
1492
+ * Payload too large. Upload exceeded the per-request size cap.
1493
+ */
1494
+ 413: ApiErrorEnvelope;
1901
1495
  /**
1902
1496
  * Rate limit exceeded
1903
1497
  */
@@ -1908,29 +1502,28 @@ export type RunsComparisonGetErrors = {
1908
1502
  500: ApiErrorEnvelope;
1909
1503
  };
1910
1504
 
1911
- export type RunsComparisonGetError = RunsComparisonGetErrors[keyof RunsComparisonGetErrors];
1505
+ export type AutomationsExperimentsCreateError = AutomationsExperimentsCreateErrors[keyof AutomationsExperimentsCreateErrors];
1912
1506
 
1913
- export type RunsComparisonGetResponses = {
1507
+ export type AutomationsExperimentsCreateResponses = {
1914
1508
  /**
1915
- * Run comparison
1509
+ * Experiment accepted
1916
1510
  */
1917
- 200: {
1918
- [key: string]: unknown;
1919
- };
1511
+ 202: ExperimentCreateResponse;
1920
1512
  };
1921
1513
 
1922
- export type RunsComparisonGetResponse = RunsComparisonGetResponses[keyof RunsComparisonGetResponses];
1514
+ export type AutomationsExperimentsCreateResponse = AutomationsExperimentsCreateResponses[keyof AutomationsExperimentsCreateResponses];
1923
1515
 
1924
- export type RunsConnectData = {
1516
+ export type AutomationsExperimentsCancelData = {
1925
1517
  body?: never;
1926
1518
  path: {
1927
1519
  id: string;
1520
+ experimentId: string;
1928
1521
  };
1929
1522
  query?: never;
1930
- url: '/api/v1/runs/{id}/connect';
1523
+ url: '/api/v1/automations/{id}/experiments/{experimentId}/cancel';
1931
1524
  };
1932
1525
 
1933
- export type RunsConnectErrors = {
1526
+ export type AutomationsExperimentsCancelErrors = {
1934
1527
  /**
1935
1528
  * Validation error. Request shape did not match the spec.
1936
1529
  */
@@ -1947,6 +1540,10 @@ export type RunsConnectErrors = {
1947
1540
  * Resource not found
1948
1541
  */
1949
1542
  404: ApiErrorEnvelope;
1543
+ /**
1544
+ * Payload too large. Upload exceeded the per-request size cap.
1545
+ */
1546
+ 413: ApiErrorEnvelope;
1950
1547
  /**
1951
1548
  * Rate limit exceeded
1952
1549
  */
@@ -1957,32 +1554,28 @@ export type RunsConnectErrors = {
1957
1554
  500: ApiErrorEnvelope;
1958
1555
  };
1959
1556
 
1960
- export type RunsConnectError = RunsConnectErrors[keyof RunsConnectErrors];
1557
+ export type AutomationsExperimentsCancelError = AutomationsExperimentsCancelErrors[keyof AutomationsExperimentsCancelErrors];
1961
1558
 
1962
- export type RunsConnectResponses = {
1559
+ export type AutomationsExperimentsCancelResponses = {
1963
1560
  /**
1964
- * Run connection status
1561
+ * Experiment after cancellation request
1965
1562
  */
1966
- 200: {
1967
- [key: string]: unknown;
1968
- };
1563
+ 200: ExperimentDetail;
1969
1564
  };
1970
1565
 
1971
- export type RunsConnectResponse = RunsConnectResponses[keyof RunsConnectResponses];
1566
+ export type AutomationsExperimentsCancelResponse = AutomationsExperimentsCancelResponses[keyof AutomationsExperimentsCancelResponses];
1972
1567
 
1973
- export type RunsDefinitionGetData = {
1568
+ export type AutomationsExperimentsGetData = {
1974
1569
  body?: never;
1975
1570
  path: {
1976
- /**
1977
- * Run id
1978
- */
1979
1571
  id: string;
1572
+ experimentId: string;
1980
1573
  };
1981
1574
  query?: never;
1982
- url: '/api/v1/runs/{id}/definition';
1575
+ url: '/api/v1/automations/{id}/experiments/{experimentId}';
1983
1576
  };
1984
1577
 
1985
- export type RunsDefinitionGetErrors = {
1578
+ export type AutomationsExperimentsGetErrors = {
1986
1579
  /**
1987
1580
  * Validation error. Request shape did not match the spec.
1988
1581
  */
@@ -1999,6 +1592,10 @@ export type RunsDefinitionGetErrors = {
1999
1592
  * Resource not found
2000
1593
  */
2001
1594
  404: ApiErrorEnvelope;
1595
+ /**
1596
+ * Payload too large. Upload exceeded the per-request size cap.
1597
+ */
1598
+ 413: ApiErrorEnvelope;
2002
1599
  /**
2003
1600
  * Rate limit exceeded
2004
1601
  */
@@ -2009,28 +1606,30 @@ export type RunsDefinitionGetErrors = {
2009
1606
  500: ApiErrorEnvelope;
2010
1607
  };
2011
1608
 
2012
- export type RunsDefinitionGetError = RunsDefinitionGetErrors[keyof RunsDefinitionGetErrors];
1609
+ export type AutomationsExperimentsGetError = AutomationsExperimentsGetErrors[keyof AutomationsExperimentsGetErrors];
2013
1610
 
2014
- export type RunsDefinitionGetResponses = {
1611
+ export type AutomationsExperimentsGetResponses = {
2015
1612
  /**
2016
- * Definition snapshot
1613
+ * Experiment detail
2017
1614
  */
2018
- 200: RunDefinitionResponse;
1615
+ 200: ExperimentDetail;
2019
1616
  };
2020
1617
 
2021
- export type RunsDefinitionGetResponse = RunsDefinitionGetResponses[keyof RunsDefinitionGetResponses];
1618
+ export type AutomationsExperimentsGetResponse = AutomationsExperimentsGetResponses[keyof AutomationsExperimentsGetResponses];
2022
1619
 
2023
- export type RunsExpectedFileDeleteData = {
1620
+ export type AutomationsGetData = {
2024
1621
  body?: never;
2025
1622
  path: {
1623
+ /**
1624
+ * Workflow id, agent id, or typed alias like workflows.slug / agents.slug
1625
+ */
2026
1626
  id: string;
2027
- filename: string;
2028
1627
  };
2029
1628
  query?: never;
2030
- url: '/api/v1/runs/{id}/expected/{filename}';
1629
+ url: '/api/v1/automations/{id}';
2031
1630
  };
2032
1631
 
2033
- export type RunsExpectedFileDeleteErrors = {
1632
+ export type AutomationsGetErrors = {
2034
1633
  /**
2035
1634
  * Validation error. Request shape did not match the spec.
2036
1635
  */
@@ -2047,6 +1646,10 @@ export type RunsExpectedFileDeleteErrors = {
2047
1646
  * Resource not found
2048
1647
  */
2049
1648
  404: ApiErrorEnvelope;
1649
+ /**
1650
+ * Payload too large. Upload exceeded the per-request size cap.
1651
+ */
1652
+ 413: ApiErrorEnvelope;
2050
1653
  /**
2051
1654
  * Rate limit exceeded
2052
1655
  */
@@ -2057,28 +1660,30 @@ export type RunsExpectedFileDeleteErrors = {
2057
1660
  500: ApiErrorEnvelope;
2058
1661
  };
2059
1662
 
2060
- export type RunsExpectedFileDeleteError = RunsExpectedFileDeleteErrors[keyof RunsExpectedFileDeleteErrors];
1663
+ export type AutomationsGetError = AutomationsGetErrors[keyof AutomationsGetErrors];
2061
1664
 
2062
- export type RunsExpectedFileDeleteResponses = {
1665
+ export type AutomationsGetResponses = {
2063
1666
  /**
2064
- * Expected file deleted
1667
+ * Automation
2065
1668
  */
2066
- 204: void;
1669
+ 200: AutomationDetail;
2067
1670
  };
2068
1671
 
2069
- export type RunsExpectedFileDeleteResponse = RunsExpectedFileDeleteResponses[keyof RunsExpectedFileDeleteResponses];
1672
+ export type AutomationsGetResponse = AutomationsGetResponses[keyof AutomationsGetResponses];
2070
1673
 
2071
- export type RunsExpectedFileGetData = {
1674
+ export type AutomationsTriggersGetData = {
2072
1675
  body?: never;
2073
1676
  path: {
1677
+ /**
1678
+ * Workflow id, agent id, or typed alias like workflows.slug / agents.slug
1679
+ */
2074
1680
  id: string;
2075
- filename: string;
2076
1681
  };
2077
1682
  query?: never;
2078
- url: '/api/v1/runs/{id}/expected/{filename}';
1683
+ url: '/api/v1/automations/{id}/triggers';
2079
1684
  };
2080
1685
 
2081
- export type RunsExpectedFileGetErrors = {
1686
+ export type AutomationsTriggersGetErrors = {
2082
1687
  /**
2083
1688
  * Validation error. Request shape did not match the spec.
2084
1689
  */
@@ -2095,6 +1700,10 @@ export type RunsExpectedFileGetErrors = {
2095
1700
  * Resource not found
2096
1701
  */
2097
1702
  404: ApiErrorEnvelope;
1703
+ /**
1704
+ * Payload too large. Upload exceeded the per-request size cap.
1705
+ */
1706
+ 413: ApiErrorEnvelope;
2098
1707
  /**
2099
1708
  * Rate limit exceeded
2100
1709
  */
@@ -2105,28 +1714,30 @@ export type RunsExpectedFileGetErrors = {
2105
1714
  500: ApiErrorEnvelope;
2106
1715
  };
2107
1716
 
2108
- export type RunsExpectedFileGetError = RunsExpectedFileGetErrors[keyof RunsExpectedFileGetErrors];
1717
+ export type AutomationsTriggersGetError = AutomationsTriggersGetErrors[keyof AutomationsTriggersGetErrors];
2109
1718
 
2110
- export type RunsExpectedFileGetResponses = {
1719
+ export type AutomationsTriggersGetResponses = {
2111
1720
  /**
2112
- * Expected file
1721
+ * Automation trigger state
2113
1722
  */
2114
- 200: unknown;
1723
+ 200: AutomationTriggersResponse;
2115
1724
  };
2116
1725
 
2117
- export type RunsExpectedFileUpdateData = {
2118
- body: {
2119
- name: string;
2120
- };
1726
+ export type AutomationsTriggersGetResponse = AutomationsTriggersGetResponses[keyof AutomationsTriggersGetResponses];
1727
+
1728
+ export type AutomationsVersionsListData = {
1729
+ body?: never;
2121
1730
  path: {
1731
+ /**
1732
+ * Workflow id, agent id, or typed alias like workflows.slug / agents.slug
1733
+ */
2122
1734
  id: string;
2123
- filename: string;
2124
1735
  };
2125
1736
  query?: never;
2126
- url: '/api/v1/runs/{id}/expected/{filename}';
1737
+ url: '/api/v1/automations/{id}/versions';
2127
1738
  };
2128
1739
 
2129
- export type RunsExpectedFileUpdateErrors = {
1740
+ export type AutomationsVersionsListErrors = {
2130
1741
  /**
2131
1742
  * Validation error. Request shape did not match the spec.
2132
1743
  */
@@ -2143,6 +1754,10 @@ export type RunsExpectedFileUpdateErrors = {
2143
1754
  * Resource not found
2144
1755
  */
2145
1756
  404: ApiErrorEnvelope;
1757
+ /**
1758
+ * Payload too large. Upload exceeded the per-request size cap.
1759
+ */
1760
+ 413: ApiErrorEnvelope;
2146
1761
  /**
2147
1762
  * Rate limit exceeded
2148
1763
  */
@@ -2153,29 +1768,36 @@ export type RunsExpectedFileUpdateErrors = {
2153
1768
  500: ApiErrorEnvelope;
2154
1769
  };
2155
1770
 
2156
- export type RunsExpectedFileUpdateError = RunsExpectedFileUpdateErrors[keyof RunsExpectedFileUpdateErrors];
1771
+ export type AutomationsVersionsListError = AutomationsVersionsListErrors[keyof AutomationsVersionsListErrors];
2157
1772
 
2158
- export type RunsExpectedFileUpdateResponses = {
1773
+ export type AutomationsVersionsListResponses = {
2159
1774
  /**
2160
- * Expected file updated
1775
+ * Automation versions
2161
1776
  */
2162
- 200: {
2163
- [key: string]: unknown;
2164
- };
1777
+ 200: ListAutomationVersionsResponse;
2165
1778
  };
2166
1779
 
2167
- export type RunsExpectedFileUpdateResponse = RunsExpectedFileUpdateResponses[keyof RunsExpectedFileUpdateResponses];
1780
+ export type AutomationsVersionsListResponse = AutomationsVersionsListResponses[keyof AutomationsVersionsListResponses];
2168
1781
 
2169
- export type RunsExpectedGetData = {
1782
+ export type AutomationsListData = {
2170
1783
  body?: never;
2171
- path: {
2172
- id: string;
1784
+ path?: never;
1785
+ query?: {
1786
+ /**
1787
+ * Substring match against slug, name, or description
1788
+ */
1789
+ search?: string;
1790
+ /**
1791
+ * Filter by implementation type
1792
+ */
1793
+ type?: 'workflow' | 'agent';
1794
+ limit?: number;
1795
+ offset?: number;
2173
1796
  };
2174
- query?: never;
2175
- url: '/api/v1/runs/{id}/expected';
1797
+ url: '/api/v1/automations';
2176
1798
  };
2177
1799
 
2178
- export type RunsExpectedGetErrors = {
1800
+ export type AutomationsListErrors = {
2179
1801
  /**
2180
1802
  * Validation error. Request shape did not match the spec.
2181
1803
  */
@@ -2192,6 +1814,10 @@ export type RunsExpectedGetErrors = {
2192
1814
  * Resource not found
2193
1815
  */
2194
1816
  404: ApiErrorEnvelope;
1817
+ /**
1818
+ * Payload too large. Upload exceeded the per-request size cap.
1819
+ */
1820
+ 413: ApiErrorEnvelope;
2195
1821
  /**
2196
1822
  * Rate limit exceeded
2197
1823
  */
@@ -2202,31 +1828,30 @@ export type RunsExpectedGetErrors = {
2202
1828
  500: ApiErrorEnvelope;
2203
1829
  };
2204
1830
 
2205
- export type RunsExpectedGetError = RunsExpectedGetErrors[keyof RunsExpectedGetErrors];
1831
+ export type AutomationsListError = AutomationsListErrors[keyof AutomationsListErrors];
2206
1832
 
2207
- export type RunsExpectedGetResponses = {
1833
+ export type AutomationsListResponses = {
2208
1834
  /**
2209
- * Expected artifacts
1835
+ * Paginated list of automations
2210
1836
  */
2211
- 200: {
2212
- [key: string]: unknown;
2213
- };
1837
+ 200: ListAutomationsResponse;
2214
1838
  };
2215
1839
 
2216
- export type RunsExpectedGetResponse = RunsExpectedGetResponses[keyof RunsExpectedGetResponses];
1840
+ export type AutomationsListResponse = AutomationsListResponses[keyof AutomationsListResponses];
2217
1841
 
2218
- export type RunsExpectedCreateData = {
2219
- body: {
2220
- [key: string]: unknown;
2221
- };
1842
+ export type FilesContentGetData = {
1843
+ body?: never;
2222
1844
  path: {
1845
+ /**
1846
+ * File id
1847
+ */
2223
1848
  id: string;
2224
1849
  };
2225
1850
  query?: never;
2226
- url: '/api/v1/runs/{id}/expected';
1851
+ url: '/api/v1/files/{id}/content';
2227
1852
  };
2228
1853
 
2229
- export type RunsExpectedCreateErrors = {
1854
+ export type FilesContentGetErrors = {
2230
1855
  /**
2231
1856
  * Validation error. Request shape did not match the spec.
2232
1857
  */
@@ -2243,6 +1868,10 @@ export type RunsExpectedCreateErrors = {
2243
1868
  * Resource not found
2244
1869
  */
2245
1870
  404: ApiErrorEnvelope;
1871
+ /**
1872
+ * Payload too large. Upload exceeded the per-request size cap.
1873
+ */
1874
+ 413: ApiErrorEnvelope;
2246
1875
  /**
2247
1876
  * Rate limit exceeded
2248
1877
  */
@@ -2253,29 +1882,28 @@ export type RunsExpectedCreateErrors = {
2253
1882
  500: ApiErrorEnvelope;
2254
1883
  };
2255
1884
 
2256
- export type RunsExpectedCreateError = RunsExpectedCreateErrors[keyof RunsExpectedCreateErrors];
1885
+ export type FilesContentGetError = FilesContentGetErrors[keyof FilesContentGetErrors];
2257
1886
 
2258
- export type RunsExpectedCreateResponses = {
1887
+ export type FilesContentGetResponses = {
2259
1888
  /**
2260
- * Expected artifacts updated
1889
+ * File content
2261
1890
  */
2262
- 201: {
2263
- [key: string]: unknown;
2264
- };
1891
+ 200: unknown;
2265
1892
  };
2266
1893
 
2267
- export type RunsExpectedCreateResponse = RunsExpectedCreateResponses[keyof RunsExpectedCreateResponses];
2268
-
2269
- export type RunsFeedbackClearData = {
1894
+ export type FilesDeleteData = {
2270
1895
  body?: never;
2271
1896
  path: {
1897
+ /**
1898
+ * File id
1899
+ */
2272
1900
  id: string;
2273
1901
  };
2274
1902
  query?: never;
2275
- url: '/api/v1/runs/{id}/feedback';
1903
+ url: '/api/v1/files/{id}';
2276
1904
  };
2277
1905
 
2278
- export type RunsFeedbackClearErrors = {
1906
+ export type FilesDeleteErrors = {
2279
1907
  /**
2280
1908
  * Validation error. Request shape did not match the spec.
2281
1909
  */
@@ -2292,6 +1920,10 @@ export type RunsFeedbackClearErrors = {
2292
1920
  * Resource not found
2293
1921
  */
2294
1922
  404: ApiErrorEnvelope;
1923
+ /**
1924
+ * Payload too large. Upload exceeded the per-request size cap.
1925
+ */
1926
+ 413: ApiErrorEnvelope;
2295
1927
  /**
2296
1928
  * Rate limit exceeded
2297
1929
  */
@@ -2302,29 +1934,30 @@ export type RunsFeedbackClearErrors = {
2302
1934
  500: ApiErrorEnvelope;
2303
1935
  };
2304
1936
 
2305
- export type RunsFeedbackClearError = RunsFeedbackClearErrors[keyof RunsFeedbackClearErrors];
1937
+ export type FilesDeleteError = FilesDeleteErrors[keyof FilesDeleteErrors];
2306
1938
 
2307
- export type RunsFeedbackClearResponses = {
1939
+ export type FilesDeleteResponses = {
2308
1940
  /**
2309
- * Feedback cleared
1941
+ * File deleted
2310
1942
  */
2311
- 200: {
2312
- [key: string]: unknown;
2313
- };
1943
+ 200: DeleteFileResponse;
2314
1944
  };
2315
1945
 
2316
- export type RunsFeedbackClearResponse = RunsFeedbackClearResponses[keyof RunsFeedbackClearResponses];
1946
+ export type FilesDeleteResponse = FilesDeleteResponses[keyof FilesDeleteResponses];
2317
1947
 
2318
- export type RunsFeedbackGetData = {
1948
+ export type FilesGetData = {
2319
1949
  body?: never;
2320
1950
  path: {
1951
+ /**
1952
+ * File id
1953
+ */
2321
1954
  id: string;
2322
1955
  };
2323
1956
  query?: never;
2324
- url: '/api/v1/runs/{id}/feedback';
1957
+ url: '/api/v1/files/{id}';
2325
1958
  };
2326
1959
 
2327
- export type RunsFeedbackGetErrors = {
1960
+ export type FilesGetErrors = {
2328
1961
  /**
2329
1962
  * Validation error. Request shape did not match the spec.
2330
1963
  */
@@ -2341,6 +1974,10 @@ export type RunsFeedbackGetErrors = {
2341
1974
  * Resource not found
2342
1975
  */
2343
1976
  404: ApiErrorEnvelope;
1977
+ /**
1978
+ * Payload too large. Upload exceeded the per-request size cap.
1979
+ */
1980
+ 413: ApiErrorEnvelope;
2344
1981
  /**
2345
1982
  * Rate limit exceeded
2346
1983
  */
@@ -2351,29 +1988,25 @@ export type RunsFeedbackGetErrors = {
2351
1988
  500: ApiErrorEnvelope;
2352
1989
  };
2353
1990
 
2354
- export type RunsFeedbackGetError = RunsFeedbackGetErrors[keyof RunsFeedbackGetErrors];
1991
+ export type FilesGetError = FilesGetErrors[keyof FilesGetErrors];
2355
1992
 
2356
- export type RunsFeedbackGetResponses = {
1993
+ export type FilesGetResponses = {
2357
1994
  /**
2358
- * Feedback artifacts
1995
+ * File metadata
2359
1996
  */
2360
- 200: {
2361
- [key: string]: unknown;
2362
- };
1997
+ 200: File;
2363
1998
  };
2364
1999
 
2365
- export type RunsFeedbackGetResponse = RunsFeedbackGetResponses[keyof RunsFeedbackGetResponses];
2000
+ export type FilesGetResponse = FilesGetResponses[keyof FilesGetResponses];
2366
2001
 
2367
- export type RunsFeedbackUpdateData = {
2368
- body: RunFeedbackRequest;
2369
- path: {
2370
- id: string;
2371
- };
2002
+ export type FilesCreateData = {
2003
+ body: CreateFileMultipartRequest;
2004
+ path?: never;
2372
2005
  query?: never;
2373
- url: '/api/v1/runs/{id}/feedback';
2006
+ url: '/api/v1/files';
2374
2007
  };
2375
2008
 
2376
- export type RunsFeedbackUpdateErrors = {
2009
+ export type FilesCreateErrors = {
2377
2010
  /**
2378
2011
  * Validation error. Request shape did not match the spec.
2379
2012
  */
@@ -2390,6 +2023,10 @@ export type RunsFeedbackUpdateErrors = {
2390
2023
  * Resource not found
2391
2024
  */
2392
2025
  404: ApiErrorEnvelope;
2026
+ /**
2027
+ * Payload too large. Upload exceeded the per-request size cap.
2028
+ */
2029
+ 413: ApiErrorEnvelope;
2393
2030
  /**
2394
2031
  * Rate limit exceeded
2395
2032
  */
@@ -2400,32 +2037,45 @@ export type RunsFeedbackUpdateErrors = {
2400
2037
  500: ApiErrorEnvelope;
2401
2038
  };
2402
2039
 
2403
- export type RunsFeedbackUpdateError = RunsFeedbackUpdateErrors[keyof RunsFeedbackUpdateErrors];
2040
+ export type FilesCreateError = FilesCreateErrors[keyof FilesCreateErrors];
2404
2041
 
2405
- export type RunsFeedbackUpdateResponses = {
2042
+ export type FilesCreateResponses = {
2406
2043
  /**
2407
- * Feedback updated
2044
+ * Uploaded file
2408
2045
  */
2409
- 200: {
2410
- [key: string]: unknown;
2411
- };
2046
+ 200: File;
2412
2047
  };
2413
2048
 
2414
- export type RunsFeedbackUpdateResponse = RunsFeedbackUpdateResponses[keyof RunsFeedbackUpdateResponses];
2049
+ export type FilesCreateResponse = FilesCreateResponses[keyof FilesCreateResponses];
2415
2050
 
2416
- export type RunsFilesZipGetData = {
2051
+ export type RunsListData = {
2417
2052
  body?: never;
2418
- path: {
2419
- id: string;
2420
- };
2053
+ path?: never;
2421
2054
  query?: {
2422
- files?: string;
2423
- token?: string;
2055
+ type?: string;
2056
+ source?: string;
2057
+ status?: string;
2058
+ trigger?: string;
2059
+ triggeredBy?: string;
2060
+ sourceRef?: string;
2061
+ batchId?: string;
2062
+ exampleId?: string;
2063
+ exampleIdContains?: string;
2064
+ from?: string;
2065
+ to?: string;
2066
+ createdAfter?: string;
2067
+ createdBefore?: string;
2068
+ completedAfter?: string;
2069
+ completedBefore?: string;
2070
+ cursor?: string;
2071
+ offset?: number;
2072
+ limit?: number;
2073
+ ids?: string;
2424
2074
  };
2425
- url: '/api/v1/runs/{id}/files-zip';
2075
+ url: '/api/v1/runs';
2426
2076
  };
2427
2077
 
2428
- export type RunsFilesZipGetErrors = {
2078
+ export type RunsListErrors = {
2429
2079
  /**
2430
2080
  * Validation error. Request shape did not match the spec.
2431
2081
  */
@@ -2442,6 +2092,10 @@ export type RunsFilesZipGetErrors = {
2442
2092
  * Resource not found
2443
2093
  */
2444
2094
  404: ApiErrorEnvelope;
2095
+ /**
2096
+ * Payload too large. Upload exceeded the per-request size cap.
2097
+ */
2098
+ 413: ApiErrorEnvelope;
2445
2099
  /**
2446
2100
  * Rate limit exceeded
2447
2101
  */
@@ -2452,26 +2106,34 @@ export type RunsFilesZipGetErrors = {
2452
2106
  500: ApiErrorEnvelope;
2453
2107
  };
2454
2108
 
2455
- export type RunsFilesZipGetError = RunsFilesZipGetErrors[keyof RunsFilesZipGetErrors];
2109
+ export type RunsListError = RunsListErrors[keyof RunsListErrors];
2456
2110
 
2457
- export type RunsFilesZipGetResponses = {
2111
+ export type RunsListResponses = {
2458
2112
  /**
2459
- * Output files zip
2113
+ * Runs page
2460
2114
  */
2461
- 200: unknown;
2115
+ 200: RunsListResponse;
2462
2116
  };
2463
2117
 
2464
- export type RunsFilesDeleteData = {
2465
- body?: never;
2466
- path: {
2467
- id: string;
2468
- fileId: string;
2118
+ export type RunsListResponse2 = RunsListResponses[keyof RunsListResponses];
2119
+
2120
+ export type RunsStartData = {
2121
+ body: RunStartBody;
2122
+ path?: never;
2123
+ query?: {
2124
+ /**
2125
+ * Release or git ref. Defaults to latest.
2126
+ */
2127
+ version?: string;
2128
+ /**
2129
+ * Seconds to wait before returning (max 600). Omit for async.
2130
+ */
2131
+ wait_for_completion?: number;
2469
2132
  };
2470
- query?: never;
2471
- url: '/api/v1/runs/{id}/files/{fileId}';
2133
+ url: '/api/v1/runs';
2472
2134
  };
2473
2135
 
2474
- export type RunsFilesDeleteErrors = {
2136
+ export type RunsStartErrors = {
2475
2137
  /**
2476
2138
  * Validation error. Request shape did not match the spec.
2477
2139
  */
@@ -2481,13 +2143,17 @@ export type RunsFilesDeleteErrors = {
2481
2143
  */
2482
2144
  401: ApiErrorEnvelope;
2483
2145
  /**
2484
- * API key lacks required scope
2146
+ * Trigger disabled or insufficient scope. Run start may return api_trigger_disabled when the API trigger is off, or manual_trigger_disabled for dashboard runs on API-only workflows.
2485
2147
  */
2486
2148
  403: ApiErrorEnvelope;
2487
2149
  /**
2488
2150
  * Resource not found
2489
2151
  */
2490
2152
  404: ApiErrorEnvelope;
2153
+ /**
2154
+ * Payload too large. Upload exceeded the per-request size cap.
2155
+ */
2156
+ 413: ApiErrorEnvelope;
2491
2157
  /**
2492
2158
  * Rate limit exceeded
2493
2159
  */
@@ -2498,27 +2164,36 @@ export type RunsFilesDeleteErrors = {
2498
2164
  500: ApiErrorEnvelope;
2499
2165
  };
2500
2166
 
2501
- export type RunsFilesDeleteError = RunsFilesDeleteErrors[keyof RunsFilesDeleteErrors];
2167
+ export type RunsStartError = RunsStartErrors[keyof RunsStartErrors];
2502
2168
 
2503
- export type RunsFilesDeleteResponses = {
2169
+ export type RunsStartResponses = {
2170
+ /**
2171
+ * Run completed while waiting — same body as GET /api/v1/runs/:id
2172
+ */
2173
+ 200: RunStartResponse;
2174
+ /**
2175
+ * Run accepted (async)
2176
+ */
2177
+ 201: RunStartResponse;
2504
2178
  /**
2505
- * Deleted
2179
+ * Wait expired with a non-terminal status — poll GET /api/v1/runs/:id
2506
2180
  */
2507
- 204: void;
2181
+ 202: RunStartResponse;
2508
2182
  };
2509
2183
 
2510
- export type RunsFilesDeleteResponse = RunsFilesDeleteResponses[keyof RunsFilesDeleteResponses];
2184
+ export type RunsStartResponse = RunsStartResponses[keyof RunsStartResponses];
2511
2185
 
2512
- export type RunsFilesListData = {
2186
+ export type RunsArtifactsGetData = {
2513
2187
  body?: never;
2514
2188
  path: {
2515
2189
  id: string;
2190
+ path: string;
2516
2191
  };
2517
2192
  query?: never;
2518
- url: '/api/v1/runs/{id}/files';
2193
+ url: '/api/v1/runs/{id}/artifacts/{path}';
2519
2194
  };
2520
2195
 
2521
- export type RunsFilesListErrors = {
2196
+ export type RunsArtifactsGetErrors = {
2522
2197
  /**
2523
2198
  * Validation error. Request shape did not match the spec.
2524
2199
  */
@@ -2535,6 +2210,10 @@ export type RunsFilesListErrors = {
2535
2210
  * Resource not found
2536
2211
  */
2537
2212
  404: ApiErrorEnvelope;
2213
+ /**
2214
+ * Payload too large. Upload exceeded the per-request size cap.
2215
+ */
2216
+ 413: ApiErrorEnvelope;
2538
2217
  /**
2539
2218
  * Rate limit exceeded
2540
2219
  */
@@ -2545,27 +2224,28 @@ export type RunsFilesListErrors = {
2545
2224
  500: ApiErrorEnvelope;
2546
2225
  };
2547
2226
 
2548
- export type RunsFilesListError = RunsFilesListErrors[keyof RunsFilesListErrors];
2227
+ export type RunsArtifactsGetError = RunsArtifactsGetErrors[keyof RunsArtifactsGetErrors];
2549
2228
 
2550
- export type RunsFilesListResponses = {
2229
+ export type RunsArtifactsGetResponses = {
2551
2230
  /**
2552
- * Run files
2231
+ * Run artifact
2553
2232
  */
2554
- 200: RunFilesResponse;
2233
+ 200: unknown;
2555
2234
  };
2556
2235
 
2557
- export type RunsFilesListResponse = RunsFilesListResponses[keyof RunsFilesListResponses];
2558
-
2559
- export type RunsFilesUploadData = {
2560
- body: RunsFilesUploadBody;
2236
+ export type RunsArtifactsListData = {
2237
+ body?: never;
2561
2238
  path: {
2239
+ /**
2240
+ * Run id
2241
+ */
2562
2242
  id: string;
2563
2243
  };
2564
2244
  query?: never;
2565
- url: '/api/v1/runs/{id}/files';
2245
+ url: '/api/v1/runs/{id}/artifacts';
2566
2246
  };
2567
2247
 
2568
- export type RunsFilesUploadErrors = {
2248
+ export type RunsArtifactsListErrors = {
2569
2249
  /**
2570
2250
  * Validation error. Request shape did not match the spec.
2571
2251
  */
@@ -2582,6 +2262,10 @@ export type RunsFilesUploadErrors = {
2582
2262
  * Resource not found
2583
2263
  */
2584
2264
  404: ApiErrorEnvelope;
2265
+ /**
2266
+ * Payload too large. Upload exceeded the per-request size cap.
2267
+ */
2268
+ 413: ApiErrorEnvelope;
2585
2269
  /**
2586
2270
  * Rate limit exceeded
2587
2271
  */
@@ -2592,38 +2276,27 @@ export type RunsFilesUploadErrors = {
2592
2276
  500: ApiErrorEnvelope;
2593
2277
  };
2594
2278
 
2595
- export type RunsFilesUploadError = RunsFilesUploadErrors[keyof RunsFilesUploadErrors];
2279
+ export type RunsArtifactsListError = RunsArtifactsListErrors[keyof RunsArtifactsListErrors];
2596
2280
 
2597
- export type RunsFilesUploadResponses = {
2281
+ export type RunsArtifactsListResponses = {
2598
2282
  /**
2599
- * Uploaded file
2283
+ * Run artifacts
2600
2284
  */
2601
- 201: {
2602
- [key: string]: unknown;
2603
- };
2285
+ 200: RunArtifactsResponse;
2604
2286
  };
2605
2287
 
2606
- export type RunsFilesUploadResponse = RunsFilesUploadResponses[keyof RunsFilesUploadResponses];
2288
+ export type RunsArtifactsListResponse = RunsArtifactsListResponses[keyof RunsArtifactsListResponses];
2607
2289
 
2608
- export type RunsRerunData = {
2290
+ export type RunsCancelData = {
2609
2291
  body?: never;
2610
2292
  path: {
2611
2293
  id: string;
2612
2294
  };
2613
- query?: {
2614
- /**
2615
- * Version for the new run. `original` pins the source run. Defaults to latest.
2616
- */
2617
- version?: string;
2618
- /**
2619
- * Seconds to wait before returning (max 600). Omit for async.
2620
- */
2621
- wait_for_completion?: number;
2622
- };
2623
- url: '/api/v1/runs/{id}/rerun';
2295
+ query?: never;
2296
+ url: '/api/v1/runs/{id}/cancel';
2624
2297
  };
2625
2298
 
2626
- export type RunsRerunErrors = {
2299
+ export type RunsCancelErrors = {
2627
2300
  /**
2628
2301
  * Validation error. Request shape did not match the spec.
2629
2302
  */
@@ -2640,6 +2313,10 @@ export type RunsRerunErrors = {
2640
2313
  * Resource not found
2641
2314
  */
2642
2315
  404: ApiErrorEnvelope;
2316
+ /**
2317
+ * Payload too large. Upload exceeded the per-request size cap.
2318
+ */
2319
+ 413: ApiErrorEnvelope;
2643
2320
  /**
2644
2321
  * Rate limit exceeded
2645
2322
  */
@@ -2650,43 +2327,27 @@ export type RunsRerunErrors = {
2650
2327
  500: ApiErrorEnvelope;
2651
2328
  };
2652
2329
 
2653
- export type RunsRerunError = RunsRerunErrors[keyof RunsRerunErrors];
2330
+ export type RunsCancelError = RunsCancelErrors[keyof RunsCancelErrors];
2654
2331
 
2655
- export type RunsRerunResponses = {
2656
- /**
2657
- * Rerun completed while waiting
2658
- */
2659
- 200: RunStartResponse;
2660
- /**
2661
- * Rerun accepted (async)
2662
- */
2663
- 201: RunStartResponse;
2332
+ export type RunsCancelResponses = {
2664
2333
  /**
2665
- * Wait expired with a non-terminal status — poll GET /api/v1/runs/:id
2334
+ * Cancellation result
2666
2335
  */
2667
- 202: RunStartResponse;
2336
+ 200: RunCancelResponse;
2668
2337
  };
2669
2338
 
2670
- export type RunsRerunResponse = RunsRerunResponses[keyof RunsRerunResponses];
2339
+ export type RunsCancelResponse = RunsCancelResponses[keyof RunsCancelResponses];
2671
2340
 
2672
- export type RunsGetData = {
2341
+ export type RunsEvalResultsListData = {
2673
2342
  body?: never;
2674
2343
  path: {
2675
- /**
2676
- * Run id
2677
- */
2678
2344
  id: string;
2679
2345
  };
2680
- query?: {
2681
- /**
2682
- * Optional sections: `input`, `usage`, `execution`, `debug`. Terminal runs always include top-level output, files, and error.
2683
- */
2684
- expand?: string;
2685
- };
2686
- url: '/api/v1/runs/{id}';
2346
+ query?: never;
2347
+ url: '/api/v1/runs/{id}/eval-results';
2687
2348
  };
2688
2349
 
2689
- export type RunsGetErrors = {
2350
+ export type RunsEvalResultsListErrors = {
2690
2351
  /**
2691
2352
  * Validation error. Request shape did not match the spec.
2692
2353
  */
@@ -2703,6 +2364,10 @@ export type RunsGetErrors = {
2703
2364
  * Resource not found
2704
2365
  */
2705
2366
  404: ApiErrorEnvelope;
2367
+ /**
2368
+ * Payload too large. Upload exceeded the per-request size cap.
2369
+ */
2370
+ 413: ApiErrorEnvelope;
2706
2371
  /**
2707
2372
  * Rate limit exceeded
2708
2373
  */
@@ -2713,27 +2378,30 @@ export type RunsGetErrors = {
2713
2378
  500: ApiErrorEnvelope;
2714
2379
  };
2715
2380
 
2716
- export type RunsGetError = RunsGetErrors[keyof RunsGetErrors];
2381
+ export type RunsEvalResultsListError = RunsEvalResultsListErrors[keyof RunsEvalResultsListErrors];
2717
2382
 
2718
- export type RunsGetResponses = {
2383
+ export type RunsEvalResultsListResponses = {
2719
2384
  /**
2720
- * Run
2385
+ * Eval results
2721
2386
  */
2722
- 200: Run;
2387
+ 200: EvalResultsResponse;
2723
2388
  };
2724
2389
 
2725
- export type RunsGetResponse = RunsGetResponses[keyof RunsGetResponses];
2390
+ export type RunsEvalResultsListResponse = RunsEvalResultsListResponses[keyof RunsEvalResultsListResponses];
2726
2391
 
2727
- export type RunsTraceGetData = {
2392
+ export type RunsEventsListData = {
2728
2393
  body?: never;
2729
2394
  path: {
2395
+ /**
2396
+ * Run id
2397
+ */
2730
2398
  id: string;
2731
2399
  };
2732
2400
  query?: never;
2733
- url: '/api/v1/runs/{id}/trace';
2401
+ url: '/api/v1/runs/{id}/events';
2734
2402
  };
2735
2403
 
2736
- export type RunsTraceGetErrors = {
2404
+ export type RunsEventsListErrors = {
2737
2405
  /**
2738
2406
  * Validation error. Request shape did not match the spec.
2739
2407
  */
@@ -2750,6 +2418,10 @@ export type RunsTraceGetErrors = {
2750
2418
  * Resource not found
2751
2419
  */
2752
2420
  404: ApiErrorEnvelope;
2421
+ /**
2422
+ * Payload too large. Upload exceeded the per-request size cap.
2423
+ */
2424
+ 413: ApiErrorEnvelope;
2753
2425
  /**
2754
2426
  * Rate limit exceeded
2755
2427
  */
@@ -2760,29 +2432,27 @@ export type RunsTraceGetErrors = {
2760
2432
  500: ApiErrorEnvelope;
2761
2433
  };
2762
2434
 
2763
- export type RunsTraceGetError = RunsTraceGetErrors[keyof RunsTraceGetErrors];
2435
+ export type RunsEventsListError = RunsEventsListErrors[keyof RunsEventsListErrors];
2764
2436
 
2765
- export type RunsTraceGetResponses = {
2437
+ export type RunsEventsListResponses = {
2766
2438
  /**
2767
- * Run trace events
2439
+ * Run events
2768
2440
  */
2769
- 200: {
2770
- events: Array<unknown>;
2771
- };
2441
+ 200: RunEventsResponse;
2772
2442
  };
2773
2443
 
2774
- export type RunsTraceGetResponse = RunsTraceGetResponses[keyof RunsTraceGetResponses];
2444
+ export type RunsEventsListResponse = RunsEventsListResponses[keyof RunsEventsListResponses];
2775
2445
 
2776
- export type SourceLockfilePreviewData = {
2446
+ export type RunsFeedbackClearData = {
2777
2447
  body?: never;
2778
- path?: never;
2779
- query: {
2780
- packageRef: string;
2448
+ path: {
2449
+ id: string;
2781
2450
  };
2782
- url: '/api/v1/source/lockfile';
2451
+ query?: never;
2452
+ url: '/api/v1/runs/{id}/feedback';
2783
2453
  };
2784
2454
 
2785
- export type SourceLockfilePreviewErrors = {
2455
+ export type RunsFeedbackClearErrors = {
2786
2456
  /**
2787
2457
  * Validation error. Request shape did not match the spec.
2788
2458
  */
@@ -2799,6 +2469,10 @@ export type SourceLockfilePreviewErrors = {
2799
2469
  * Resource not found
2800
2470
  */
2801
2471
  404: ApiErrorEnvelope;
2472
+ /**
2473
+ * Payload too large. Upload exceeded the per-request size cap.
2474
+ */
2475
+ 413: ApiErrorEnvelope;
2802
2476
  /**
2803
2477
  * Rate limit exceeded
2804
2478
  */
@@ -2809,28 +2483,27 @@ export type SourceLockfilePreviewErrors = {
2809
2483
  500: ApiErrorEnvelope;
2810
2484
  };
2811
2485
 
2812
- export type SourceLockfilePreviewError = SourceLockfilePreviewErrors[keyof SourceLockfilePreviewErrors];
2486
+ export type RunsFeedbackClearError = RunsFeedbackClearErrors[keyof RunsFeedbackClearErrors];
2813
2487
 
2814
- export type SourceLockfilePreviewResponses = {
2488
+ export type RunsFeedbackClearResponses = {
2815
2489
  /**
2816
- * Resolved lockfile preview
2490
+ * Feedback cleared
2817
2491
  */
2818
- 200: SourceLockfileResponse;
2492
+ 200: RunFeedbackDetail;
2819
2493
  };
2820
2494
 
2821
- export type SourceLockfilePreviewResponse = SourceLockfilePreviewResponses[keyof SourceLockfilePreviewResponses];
2495
+ export type RunsFeedbackClearResponse = RunsFeedbackClearResponses[keyof RunsFeedbackClearResponses];
2822
2496
 
2823
- export type SourceRawData = {
2497
+ export type RunsFeedbackGetData = {
2824
2498
  body?: never;
2825
- path?: never;
2826
- query: {
2827
- ref?: string;
2828
- path: string;
2499
+ path: {
2500
+ id: string;
2829
2501
  };
2830
- url: '/api/v1/source/raw';
2502
+ query?: never;
2503
+ url: '/api/v1/runs/{id}/feedback';
2831
2504
  };
2832
2505
 
2833
- export type SourceRawErrors = {
2506
+ export type RunsFeedbackGetErrors = {
2834
2507
  /**
2835
2508
  * Validation error. Request shape did not match the spec.
2836
2509
  */
@@ -2847,6 +2520,10 @@ export type SourceRawErrors = {
2847
2520
  * Resource not found
2848
2521
  */
2849
2522
  404: ApiErrorEnvelope;
2523
+ /**
2524
+ * Payload too large. Upload exceeded the per-request size cap.
2525
+ */
2526
+ 413: ApiErrorEnvelope;
2850
2527
  /**
2851
2528
  * Rate limit exceeded
2852
2529
  */
@@ -2857,28 +2534,27 @@ export type SourceRawErrors = {
2857
2534
  500: ApiErrorEnvelope;
2858
2535
  };
2859
2536
 
2860
- export type SourceRawError = SourceRawErrors[keyof SourceRawErrors];
2537
+ export type RunsFeedbackGetError = RunsFeedbackGetErrors[keyof RunsFeedbackGetErrors];
2861
2538
 
2862
- export type SourceRawResponses = {
2539
+ export type RunsFeedbackGetResponses = {
2863
2540
  /**
2864
- * Raw source file preview
2541
+ * Run feedback
2865
2542
  */
2866
- 200: RawSourceResponse;
2543
+ 200: RunFeedbackDetail;
2867
2544
  };
2868
2545
 
2869
- export type SourceRawResponse = SourceRawResponses[keyof SourceRawResponses];
2546
+ export type RunsFeedbackGetResponse = RunsFeedbackGetResponses[keyof RunsFeedbackGetResponses];
2870
2547
 
2871
- export type SourceReleasesData = {
2872
- body?: never;
2873
- path?: never;
2874
- query: {
2875
- packagePath: string;
2876
- version?: string;
2548
+ export type RunsFeedbackUpdateData = {
2549
+ body: RunFeedbackRequest;
2550
+ path: {
2551
+ id: string;
2877
2552
  };
2878
- url: '/api/v1/source/releases';
2553
+ query?: never;
2554
+ url: '/api/v1/runs/{id}/feedback';
2879
2555
  };
2880
2556
 
2881
- export type SourceReleasesErrors = {
2557
+ export type RunsFeedbackUpdateErrors = {
2882
2558
  /**
2883
2559
  * Validation error. Request shape did not match the spec.
2884
2560
  */
@@ -2895,6 +2571,10 @@ export type SourceReleasesErrors = {
2895
2571
  * Resource not found
2896
2572
  */
2897
2573
  404: ApiErrorEnvelope;
2574
+ /**
2575
+ * Payload too large. Upload exceeded the per-request size cap.
2576
+ */
2577
+ 413: ApiErrorEnvelope;
2898
2578
  /**
2899
2579
  * Rate limit exceeded
2900
2580
  */
@@ -2905,25 +2585,27 @@ export type SourceReleasesErrors = {
2905
2585
  500: ApiErrorEnvelope;
2906
2586
  };
2907
2587
 
2908
- export type SourceReleasesError = SourceReleasesErrors[keyof SourceReleasesErrors];
2588
+ export type RunsFeedbackUpdateError = RunsFeedbackUpdateErrors[keyof RunsFeedbackUpdateErrors];
2909
2589
 
2910
- export type SourceReleasesResponses = {
2590
+ export type RunsFeedbackUpdateResponses = {
2911
2591
  /**
2912
- * Source package releases
2592
+ * Feedback updated
2913
2593
  */
2914
- 200: SourceReleasesResponse;
2594
+ 200: RunFeedbackDetail;
2915
2595
  };
2916
2596
 
2917
- export type SourceReleasesResponse2 = SourceReleasesResponses[keyof SourceReleasesResponses];
2597
+ export type RunsFeedbackUpdateResponse = RunsFeedbackUpdateResponses[keyof RunsFeedbackUpdateResponses];
2918
2598
 
2919
- export type SourceRepositoryData = {
2920
- body?: never;
2921
- path?: never;
2599
+ export type RunsPromoteData = {
2600
+ body: PromoteRunRequest;
2601
+ path: {
2602
+ id: string;
2603
+ };
2922
2604
  query?: never;
2923
- url: '/api/v1/source/repository';
2605
+ url: '/api/v1/runs/{id}/promote';
2924
2606
  };
2925
2607
 
2926
- export type SourceRepositoryErrors = {
2608
+ export type RunsPromoteErrors = {
2927
2609
  /**
2928
2610
  * Validation error. Request shape did not match the spec.
2929
2611
  */
@@ -2940,6 +2622,10 @@ export type SourceRepositoryErrors = {
2940
2622
  * Resource not found
2941
2623
  */
2942
2624
  404: ApiErrorEnvelope;
2625
+ /**
2626
+ * Payload too large. Upload exceeded the per-request size cap.
2627
+ */
2628
+ 413: ApiErrorEnvelope;
2943
2629
  /**
2944
2630
  * Rate limit exceeded
2945
2631
  */
@@ -2950,25 +2636,36 @@ export type SourceRepositoryErrors = {
2950
2636
  500: ApiErrorEnvelope;
2951
2637
  };
2952
2638
 
2953
- export type SourceRepositoryError = SourceRepositoryErrors[keyof SourceRepositoryErrors];
2639
+ export type RunsPromoteError = RunsPromoteErrors[keyof RunsPromoteErrors];
2954
2640
 
2955
- export type SourceRepositoryResponses = {
2641
+ export type RunsPromoteResponses = {
2956
2642
  /**
2957
- * Organization Git repository
2643
+ * Created or updated a dataset example from the run
2958
2644
  */
2959
- 200: SourceRepositoryResponse;
2645
+ 200: PromoteRunResponse;
2960
2646
  };
2961
2647
 
2962
- export type SourceRepositoryResponse2 = SourceRepositoryResponses[keyof SourceRepositoryResponses];
2648
+ export type RunsPromoteResponse = RunsPromoteResponses[keyof RunsPromoteResponses];
2963
2649
 
2964
- export type SourceSecretsDecryptData = {
2965
- body: SourceSecretsDecryptBody;
2966
- path?: never;
2967
- query?: never;
2968
- url: '/api/v1/source/secrets/decrypt';
2650
+ export type RunsRerunData = {
2651
+ body?: never;
2652
+ path: {
2653
+ id: string;
2654
+ };
2655
+ query?: {
2656
+ /**
2657
+ * Version for the new run. `original` pins the source run. Defaults to latest.
2658
+ */
2659
+ version?: string;
2660
+ /**
2661
+ * Seconds to wait before returning (max 600). Omit for async.
2662
+ */
2663
+ wait_for_completion?: number;
2664
+ };
2665
+ url: '/api/v1/runs/{id}/rerun';
2969
2666
  };
2970
2667
 
2971
- export type SourceSecretsDecryptErrors = {
2668
+ export type RunsRerunErrors = {
2972
2669
  /**
2973
2670
  * Validation error. Request shape did not match the spec.
2974
2671
  */
@@ -2985,6 +2682,10 @@ export type SourceSecretsDecryptErrors = {
2985
2682
  * Resource not found
2986
2683
  */
2987
2684
  404: ApiErrorEnvelope;
2685
+ /**
2686
+ * Payload too large. Upload exceeded the per-request size cap.
2687
+ */
2688
+ 413: ApiErrorEnvelope;
2988
2689
  /**
2989
2690
  * Rate limit exceeded
2990
2691
  */
@@ -2995,25 +2696,43 @@ export type SourceSecretsDecryptErrors = {
2995
2696
  500: ApiErrorEnvelope;
2996
2697
  };
2997
2698
 
2998
- export type SourceSecretsDecryptError = SourceSecretsDecryptErrors[keyof SourceSecretsDecryptErrors];
2699
+ export type RunsRerunError = RunsRerunErrors[keyof RunsRerunErrors];
2999
2700
 
3000
- export type SourceSecretsDecryptResponses = {
2701
+ export type RunsRerunResponses = {
2702
+ /**
2703
+ * Rerun completed while waiting
2704
+ */
2705
+ 200: RunStartResponse;
2706
+ /**
2707
+ * Rerun accepted (async)
2708
+ */
2709
+ 201: RunStartResponse;
3001
2710
  /**
3002
- * Decrypted secret value
2711
+ * Wait expired with a non-terminal status — poll GET /api/v1/runs/:id
3003
2712
  */
3004
- 200: SourceSecretsDecryptResponse;
2713
+ 202: RunStartResponse;
3005
2714
  };
3006
2715
 
3007
- export type SourceSecretsDecryptResponse2 = SourceSecretsDecryptResponses[keyof SourceSecretsDecryptResponses];
2716
+ export type RunsRerunResponse = RunsRerunResponses[keyof RunsRerunResponses];
3008
2717
 
3009
- export type SourceSecretsEncryptData = {
3010
- body: SourceSecretsEncryptBody;
3011
- path?: never;
3012
- query?: never;
3013
- url: '/api/v1/source/secrets/encrypt';
2718
+ export type RunsGetData = {
2719
+ body?: never;
2720
+ path: {
2721
+ /**
2722
+ * Run id
2723
+ */
2724
+ id: string;
2725
+ };
2726
+ query?: {
2727
+ /**
2728
+ * Optional sections: `input`, `usage`, `execution`, `debug`. Terminal runs always include top-level output, files, and error.
2729
+ */
2730
+ expand?: string;
2731
+ };
2732
+ url: '/api/v1/runs/{id}';
3014
2733
  };
3015
2734
 
3016
- export type SourceSecretsEncryptErrors = {
2735
+ export type RunsGetErrors = {
3017
2736
  /**
3018
2737
  * Validation error. Request shape did not match the spec.
3019
2738
  */
@@ -3030,6 +2749,10 @@ export type SourceSecretsEncryptErrors = {
3030
2749
  * Resource not found
3031
2750
  */
3032
2751
  404: ApiErrorEnvelope;
2752
+ /**
2753
+ * Payload too large. Upload exceeded the per-request size cap.
2754
+ */
2755
+ 413: ApiErrorEnvelope;
3033
2756
  /**
3034
2757
  * Rate limit exceeded
3035
2758
  */
@@ -3040,30 +2763,30 @@ export type SourceSecretsEncryptErrors = {
3040
2763
  500: ApiErrorEnvelope;
3041
2764
  };
3042
2765
 
3043
- export type SourceSecretsEncryptError = SourceSecretsEncryptErrors[keyof SourceSecretsEncryptErrors];
2766
+ export type RunsGetError = RunsGetErrors[keyof RunsGetErrors];
3044
2767
 
3045
- export type SourceSecretsEncryptResponses = {
2768
+ export type RunsGetResponses = {
3046
2769
  /**
3047
- * Encrypted secret value(s)
2770
+ * Run
3048
2771
  */
3049
- 200: SourceSecretsEncryptResponse;
2772
+ 200: Run;
3050
2773
  };
3051
2774
 
3052
- export type SourceSecretsEncryptResponse2 = SourceSecretsEncryptResponses[keyof SourceSecretsEncryptResponses];
2775
+ export type RunsGetResponse = RunsGetResponses[keyof RunsGetResponses];
3053
2776
 
3054
- export type WorkflowsGetData = {
2777
+ export type RunsStepsListData = {
3055
2778
  body?: never;
3056
2779
  path: {
3057
2780
  /**
3058
- * Workflow id (e.g. wf_abc123)
2781
+ * Run id
3059
2782
  */
3060
2783
  id: string;
3061
2784
  };
3062
2785
  query?: never;
3063
- url: '/api/v1/workflows/{id}';
2786
+ url: '/api/v1/runs/{id}/steps';
3064
2787
  };
3065
2788
 
3066
- export type WorkflowsGetErrors = {
2789
+ export type RunsStepsListErrors = {
3067
2790
  /**
3068
2791
  * Validation error. Request shape did not match the spec.
3069
2792
  */
@@ -3080,6 +2803,10 @@ export type WorkflowsGetErrors = {
3080
2803
  * Resource not found
3081
2804
  */
3082
2805
  404: ApiErrorEnvelope;
2806
+ /**
2807
+ * Payload too large. Upload exceeded the per-request size cap.
2808
+ */
2809
+ 413: ApiErrorEnvelope;
3083
2810
  /**
3084
2811
  * Rate limit exceeded
3085
2812
  */
@@ -3090,39 +2817,27 @@ export type WorkflowsGetErrors = {
3090
2817
  500: ApiErrorEnvelope;
3091
2818
  };
3092
2819
 
3093
- export type WorkflowsGetError = WorkflowsGetErrors[keyof WorkflowsGetErrors];
2820
+ export type RunsStepsListError = RunsStepsListErrors[keyof RunsStepsListErrors];
3094
2821
 
3095
- export type WorkflowsGetResponses = {
2822
+ export type RunsStepsListResponses = {
3096
2823
  /**
3097
- * Workflow summary with current YAML content
2824
+ * Run steps
3098
2825
  */
3099
- 200: WorkflowDetail;
2826
+ 200: RunStepsResponse;
3100
2827
  };
3101
2828
 
3102
- export type WorkflowsGetResponse = WorkflowsGetResponses[keyof WorkflowsGetResponses];
2829
+ export type RunsStepsListResponse = RunsStepsListResponses[keyof RunsStepsListResponses];
3103
2830
 
3104
- export type WorkflowsVersionsListData = {
2831
+ export type RunsTraceGetData = {
3105
2832
  body?: never;
3106
2833
  path: {
3107
- /**
3108
- * Workflow id
3109
- */
3110
2834
  id: string;
3111
2835
  };
3112
- query?: {
3113
- /**
3114
- * Page size (max 100, default 50)
3115
- */
3116
- limit?: number;
3117
- /**
3118
- * Page offset
3119
- */
3120
- offset?: number;
3121
- };
3122
- url: '/api/v1/workflows/{id}/versions';
2836
+ query?: never;
2837
+ url: '/api/v1/runs/{id}/trace';
3123
2838
  };
3124
2839
 
3125
- export type WorkflowsVersionsListErrors = {
2840
+ export type RunsTraceGetErrors = {
3126
2841
  /**
3127
2842
  * Validation error. Request shape did not match the spec.
3128
2843
  */
@@ -3139,6 +2854,10 @@ export type WorkflowsVersionsListErrors = {
3139
2854
  * Resource not found
3140
2855
  */
3141
2856
  404: ApiErrorEnvelope;
2857
+ /**
2858
+ * Payload too large. Upload exceeded the per-request size cap.
2859
+ */
2860
+ 413: ApiErrorEnvelope;
3142
2861
  /**
3143
2862
  * Rate limit exceeded
3144
2863
  */
@@ -3149,50 +2868,32 @@ export type WorkflowsVersionsListErrors = {
3149
2868
  500: ApiErrorEnvelope;
3150
2869
  };
3151
2870
 
3152
- export type WorkflowsVersionsListError = WorkflowsVersionsListErrors[keyof WorkflowsVersionsListErrors];
2871
+ export type RunsTraceGetError = RunsTraceGetErrors[keyof RunsTraceGetErrors];
3153
2872
 
3154
- export type WorkflowsVersionsListResponses = {
2873
+ export type RunsTraceGetResponses = {
3155
2874
  /**
3156
- * Paginated list of workflow versions
2875
+ * Run trace events
3157
2876
  */
3158
- 200: ListVersionsResponse;
2877
+ 200: {
2878
+ events: Array<unknown>;
2879
+ };
3159
2880
  };
3160
2881
 
3161
- export type WorkflowsVersionsListResponse = WorkflowsVersionsListResponses[keyof WorkflowsVersionsListResponses];
2882
+ export type RunsTraceGetResponse = RunsTraceGetResponses[keyof RunsTraceGetResponses];
3162
2883
 
3163
- export type WorkflowsListData = {
2884
+ export type RunsUsageGetData = {
3164
2885
  body?: never;
3165
- path?: never;
3166
- query?: {
3167
- /**
3168
- * Substring match against workflow name
3169
- */
3170
- search?: string;
3171
- /**
3172
- * Exact-match lookup by workflow name (slug)
3173
- */
3174
- name?: string;
3175
- /**
3176
- * Filter by workflow kind
3177
- */
3178
- kind?: 'workflow' | 'block';
3179
- /**
3180
- * Filter by folder: omit for all workflows, 'null' for root/unfiled only, or a folder id
3181
- */
3182
- folderId?: string | null;
3183
- /**
3184
- * Page size (max 100, default 50)
3185
- */
3186
- limit?: number;
2886
+ path: {
3187
2887
  /**
3188
- * Page offset
2888
+ * Run id
3189
2889
  */
3190
- offset?: number;
2890
+ id: string;
3191
2891
  };
3192
- url: '/api/v1/workflows';
2892
+ query?: never;
2893
+ url: '/api/v1/runs/{id}/usage';
3193
2894
  };
3194
2895
 
3195
- export type WorkflowsListErrors = {
2896
+ export type RunsUsageGetErrors = {
3196
2897
  /**
3197
2898
  * Validation error. Request shape did not match the spec.
3198
2899
  */
@@ -3209,6 +2910,10 @@ export type WorkflowsListErrors = {
3209
2910
  * Resource not found
3210
2911
  */
3211
2912
  404: ApiErrorEnvelope;
2913
+ /**
2914
+ * Payload too large. Upload exceeded the per-request size cap.
2915
+ */
2916
+ 413: ApiErrorEnvelope;
3212
2917
  /**
3213
2918
  * Rate limit exceeded
3214
2919
  */
@@ -3219,13 +2924,13 @@ export type WorkflowsListErrors = {
3219
2924
  500: ApiErrorEnvelope;
3220
2925
  };
3221
2926
 
3222
- export type WorkflowsListError = WorkflowsListErrors[keyof WorkflowsListErrors];
2927
+ export type RunsUsageGetError = RunsUsageGetErrors[keyof RunsUsageGetErrors];
3223
2928
 
3224
- export type WorkflowsListResponses = {
2929
+ export type RunsUsageGetResponses = {
3225
2930
  /**
3226
- * Paginated list of workflows
2931
+ * Run usage
3227
2932
  */
3228
- 200: ListWorkflowsResponse;
2933
+ 200: RunUsageResponse;
3229
2934
  };
3230
2935
 
3231
- export type WorkflowsListResponse = WorkflowsListResponses[keyof WorkflowsListResponses];
2936
+ export type RunsUsageGetResponse = RunsUsageGetResponses[keyof RunsUsageGetResponses];