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