@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.
@@ -6,54 +6,13 @@ import type {
6
6
  AgentsCreateData,
7
7
  AgentsCreateErrors,
8
8
  AgentsCreateResponses,
9
- AgentsExecutionsCancelData,
10
- AgentsExecutionsCancelErrors,
11
- AgentsExecutionsCancelResponses,
12
- AgentsExecutionsExpectedCreateData,
13
- AgentsExecutionsExpectedCreateErrors,
14
- AgentsExecutionsExpectedCreateResponses,
15
- AgentsExecutionsExpectedDeleteData,
16
- AgentsExecutionsExpectedDeleteErrors,
17
- AgentsExecutionsExpectedDeleteResponses,
18
- AgentsExecutionsExpectedDownloadData,
19
- AgentsExecutionsExpectedDownloadErrors,
20
- AgentsExecutionsExpectedDownloadResponses,
21
- AgentsExecutionsExpectedListData,
22
- AgentsExecutionsExpectedListErrors,
23
- AgentsExecutionsExpectedListResponses,
24
- AgentsExecutionsExpectedRenameData,
25
- AgentsExecutionsExpectedRenameErrors,
26
- AgentsExecutionsExpectedRenameResponses,
27
- AgentsExecutionsFeedbackDeleteData,
28
- AgentsExecutionsFeedbackDeleteErrors,
29
- AgentsExecutionsFeedbackDeleteResponses,
30
- AgentsExecutionsFeedbackGetData,
31
- AgentsExecutionsFeedbackGetErrors,
32
- AgentsExecutionsFeedbackGetResponses,
33
- AgentsExecutionsFeedbackUpdateData,
34
- AgentsExecutionsFeedbackUpdateErrors,
35
- AgentsExecutionsFeedbackUpdateResponses,
36
- AgentsExecutionsFilesDownloadData,
37
- AgentsExecutionsFilesDownloadErrors,
38
- AgentsExecutionsFilesDownloadResponses,
39
- AgentsExecutionsGetData,
40
- AgentsExecutionsGetErrors,
41
- AgentsExecutionsGetResponses,
42
- AgentsExecutionsListData,
43
- AgentsExecutionsListErrors,
44
- AgentsExecutionsListResponses,
45
- AgentsExecutionsRerunData,
46
- AgentsExecutionsRerunErrors,
47
- AgentsExecutionsRerunResponses,
48
9
  AgentsFilesListOrGetData,
49
10
  AgentsFilesListOrGetErrors,
50
11
  AgentsFilesListOrGetResponses,
51
12
  AgentsFilesPutData,
52
13
  AgentsFilesPutErrors,
53
- AgentsFilesPutResponses,
54
14
  AgentsFilesUploadBatchData,
55
15
  AgentsFilesUploadBatchErrors,
56
- AgentsFilesUploadBatchResponses,
57
16
  AgentsGetData,
58
17
  AgentsGetErrors,
59
18
  AgentsGetResponses,
@@ -63,9 +22,69 @@ import type {
63
22
  AgentsRunData,
64
23
  AgentsRunErrors,
65
24
  AgentsRunResponses,
25
+ AgentsRunsCancelData,
26
+ AgentsRunsCancelErrors,
27
+ AgentsRunsCancelResponses,
28
+ AgentsRunsExpectedCreateData,
29
+ AgentsRunsExpectedCreateErrors,
30
+ AgentsRunsExpectedCreateResponses,
31
+ AgentsRunsExpectedDeleteData,
32
+ AgentsRunsExpectedDeleteErrors,
33
+ AgentsRunsExpectedDeleteResponses,
34
+ AgentsRunsExpectedDownloadData,
35
+ AgentsRunsExpectedDownloadErrors,
36
+ AgentsRunsExpectedDownloadResponses,
37
+ AgentsRunsExpectedListData,
38
+ AgentsRunsExpectedListErrors,
39
+ AgentsRunsExpectedListResponses,
40
+ AgentsRunsExpectedRenameData,
41
+ AgentsRunsExpectedRenameErrors,
42
+ AgentsRunsExpectedRenameResponses,
43
+ AgentsRunsFeedbackDeleteData,
44
+ AgentsRunsFeedbackDeleteErrors,
45
+ AgentsRunsFeedbackDeleteResponses,
46
+ AgentsRunsFeedbackGetData,
47
+ AgentsRunsFeedbackGetErrors,
48
+ AgentsRunsFeedbackGetResponses,
49
+ AgentsRunsFeedbackUpdateData,
50
+ AgentsRunsFeedbackUpdateErrors,
51
+ AgentsRunsFeedbackUpdateResponses,
52
+ AgentsRunsFilesDownloadData,
53
+ AgentsRunsFilesDownloadErrors,
54
+ AgentsRunsFilesDownloadResponses,
55
+ AgentsRunsGetData,
56
+ AgentsRunsGetErrors,
57
+ AgentsRunsGetResponses,
58
+ AgentsRunsListData,
59
+ AgentsRunsListErrors,
60
+ AgentsRunsListResponses,
61
+ AgentsRunsRerunData,
62
+ AgentsRunsRerunErrors,
63
+ AgentsRunsRerunResponses,
66
64
  AgentsUpdateData,
67
65
  AgentsUpdateErrors,
68
66
  AgentsUpdateResponses,
67
+ AutomationsSyncData,
68
+ AutomationsSyncErrors,
69
+ AutomationsSyncResponses,
70
+ SourceLockfilePreviewData,
71
+ SourceLockfilePreviewErrors,
72
+ SourceLockfilePreviewResponses,
73
+ SourceRawData,
74
+ SourceRawErrors,
75
+ SourceRawResponses,
76
+ SourceReleasesData,
77
+ SourceReleasesErrors,
78
+ SourceReleasesResponses,
79
+ SourceRepositoryData,
80
+ SourceRepositoryErrors,
81
+ SourceRepositoryResponses,
82
+ SourceSecretsDecryptData,
83
+ SourceSecretsDecryptErrors,
84
+ SourceSecretsDecryptResponses,
85
+ SourceSecretsEncryptData,
86
+ SourceSecretsEncryptErrors,
87
+ SourceSecretsEncryptResponses,
69
88
  WorkflowsExecutionsCancelData,
70
89
  WorkflowsExecutionsCancelErrors,
71
90
  WorkflowsExecutionsCancelResponses,
@@ -108,27 +127,9 @@ export type Options<
108
127
  };
109
128
 
110
129
  /**
111
- * List agent executions
130
+ * List or download agent source files
112
131
  *
113
- * Returns executions for an agent, optionally filtered by status or experiment batch.
114
- */
115
- export const agentsExecutionsList = <ThrowOnError extends boolean = false>(
116
- options: Options<AgentsExecutionsListData, ThrowOnError>
117
- ) =>
118
- (options.client ?? client).get<
119
- AgentsExecutionsListResponses,
120
- AgentsExecutionsListErrors,
121
- ThrowOnError
122
- >({
123
- security: [{ scheme: 'bearer', type: 'http' }],
124
- url: '/api/v1/agents/{agentId}/executions',
125
- ...options,
126
- });
127
-
128
- /**
129
- * List or download agent files
130
- *
131
- * Lists live agent files, or returns one file when `path` is provided.
132
+ * Lists or reads files from the agent Git package (`agents/{slug}/` on organization source). Runtime artifacts (runs, dataset) are not served here.
132
133
  */
133
134
  export const agentsFilesListOrGet = <ThrowOnError extends boolean = false>(
134
135
  options: Options<AgentsFilesListOrGetData, ThrowOnError>
@@ -144,18 +145,14 @@ export const agentsFilesListOrGet = <ThrowOnError extends boolean = false>(
144
145
  });
145
146
 
146
147
  /**
147
- * Upload agent files
148
+ * Upload agent files (deprecated)
148
149
  *
149
- * Uploads multiple files into the live agent namespace.
150
+ * Agent source is Git-backed. Use Git push or the builder instead.
150
151
  */
151
152
  export const agentsFilesUploadBatch = <ThrowOnError extends boolean = false>(
152
153
  options: Options<AgentsFilesUploadBatchData, ThrowOnError>
153
154
  ) =>
154
- (options.client ?? client).post<
155
- AgentsFilesUploadBatchResponses,
156
- AgentsFilesUploadBatchErrors,
157
- ThrowOnError
158
- >({
155
+ (options.client ?? client).post<unknown, AgentsFilesUploadBatchErrors, ThrowOnError>({
159
156
  security: [{ scheme: 'bearer', type: 'http' }],
160
157
  url: '/api/v1/agents/{agentId}/files',
161
158
  ...options,
@@ -166,14 +163,14 @@ export const agentsFilesUploadBatch = <ThrowOnError extends boolean = false>(
166
163
  });
167
164
 
168
165
  /**
169
- * Upload one agent file
166
+ * Upload one agent file (deprecated)
170
167
  *
171
- * Uploads one file into the live agent namespace at the safe relative `path` query parameter.
168
+ * Agent source is Git-backed. Use Git push or the builder instead.
172
169
  */
173
170
  export const agentsFilesPut = <ThrowOnError extends boolean = false>(
174
171
  options: Options<AgentsFilesPutData, ThrowOnError>
175
172
  ) =>
176
- (options.client ?? client).put<AgentsFilesPutResponses, AgentsFilesPutErrors, ThrowOnError>({
173
+ (options.client ?? client).put<unknown, AgentsFilesPutErrors, ThrowOnError>({
177
174
  security: [{ scheme: 'bearer', type: 'http' }],
178
175
  url: '/api/v1/agents/{agentId}/files',
179
176
  ...options,
@@ -216,9 +213,9 @@ export const agentsUpdate = <ThrowOnError extends boolean = false>(
216
213
  });
217
214
 
218
215
  /**
219
- * Execute an agent
216
+ * Run an agent
220
217
  *
221
- * Enqueues an agent execution. Returns 202 with `{ executionId }` by default. Pass `wait_for_completion=<seconds>` to hold the connection until the execution reaches a terminal state. File inputs are uploaded as multipart/form-data.
218
+ * Enqueues an agent run. Returns 202 with `{ runId }` by default. Pass `wait_for_completion=<seconds>` to hold the connection until the run reaches a terminal state. File inputs are uploaded as multipart/form-data.
222
219
  */
223
220
  export const agentsRun = <ThrowOnError extends boolean = false>(
224
221
  options: Options<AgentsRunData, ThrowOnError>
@@ -234,74 +231,116 @@ export const agentsRun = <ThrowOnError extends boolean = false>(
234
231
  });
235
232
 
236
233
  /**
237
- * Cancel agent execution
234
+ * List agent runs
238
235
  *
239
- * Requests cancellation for one agent execution by id.
236
+ * Returns runs for an agent, optionally filtered by status or experiment batch.
240
237
  */
241
- export const agentsExecutionsCancel = <ThrowOnError extends boolean = false>(
242
- options: Options<AgentsExecutionsCancelData, ThrowOnError>
238
+ export const agentsRunsList = <ThrowOnError extends boolean = false>(
239
+ options: Options<AgentsRunsListData, ThrowOnError>
243
240
  ) =>
244
- (options.client ?? client).post<
245
- AgentsExecutionsCancelResponses,
246
- AgentsExecutionsCancelErrors,
247
- ThrowOnError
248
- >({
241
+ (options.client ?? client).get<AgentsRunsListResponses, AgentsRunsListErrors, ThrowOnError>({
249
242
  security: [{ scheme: 'bearer', type: 'http' }],
250
- url: '/api/v1/agents/executions/{executionId}/cancel',
243
+ url: '/api/v1/agents/{agentId}/runs',
244
+ ...options,
245
+ });
246
+
247
+ /**
248
+ * List agents
249
+ *
250
+ * Returns agents the caller has access to, with pagination and basic execution stats. Accepts session cookies or API keys.
251
+ */
252
+ export const agentsList = <ThrowOnError extends boolean = false>(
253
+ options?: Options<AgentsListData, ThrowOnError>
254
+ ) =>
255
+ (options?.client ?? client).get<AgentsListResponses, AgentsListErrors, ThrowOnError>({
256
+ security: [{ scheme: 'bearer', type: 'http' }],
257
+ url: '/api/v1/agents',
258
+ ...options,
259
+ });
260
+
261
+ /**
262
+ * Create an agent
263
+ *
264
+ * Creates a new agent, registers it in the automation table, and scaffolds its Git source package. Accepts session cookies or API keys.
265
+ */
266
+ export const agentsCreate = <ThrowOnError extends boolean = false>(
267
+ options: Options<AgentsCreateData, ThrowOnError>
268
+ ) =>
269
+ (options.client ?? client).post<AgentsCreateResponses, AgentsCreateErrors, ThrowOnError>({
270
+ security: [{ scheme: 'bearer', type: 'http' }],
271
+ url: '/api/v1/agents',
272
+ ...options,
273
+ headers: {
274
+ 'Content-Type': 'application/json',
275
+ ...options.headers,
276
+ },
277
+ });
278
+
279
+ /**
280
+ * Cancel agent run
281
+ *
282
+ * Requests cancellation for one agent run by id.
283
+ */
284
+ export const agentsRunsCancel = <ThrowOnError extends boolean = false>(
285
+ options: Options<AgentsRunsCancelData, ThrowOnError>
286
+ ) =>
287
+ (options.client ?? client).post<AgentsRunsCancelResponses, AgentsRunsCancelErrors, ThrowOnError>({
288
+ security: [{ scheme: 'bearer', type: 'http' }],
289
+ url: '/api/v1/agents/runs/{runId}/cancel',
251
290
  ...options,
252
291
  });
253
292
 
254
293
  /**
255
294
  * Delete an expected file
256
295
  *
257
- * Deletes one expected file attached to an agent execution.
296
+ * Deletes one expected file attached to an agent run.
258
297
  */
259
- export const agentsExecutionsExpectedDelete = <ThrowOnError extends boolean = false>(
260
- options: Options<AgentsExecutionsExpectedDeleteData, ThrowOnError>
298
+ export const agentsRunsExpectedDelete = <ThrowOnError extends boolean = false>(
299
+ options: Options<AgentsRunsExpectedDeleteData, ThrowOnError>
261
300
  ) =>
262
301
  (options.client ?? client).delete<
263
- AgentsExecutionsExpectedDeleteResponses,
264
- AgentsExecutionsExpectedDeleteErrors,
302
+ AgentsRunsExpectedDeleteResponses,
303
+ AgentsRunsExpectedDeleteErrors,
265
304
  ThrowOnError
266
305
  >({
267
306
  security: [{ scheme: 'bearer', type: 'http' }],
268
- url: '/api/v1/agents/executions/{executionId}/expected/{filename}',
307
+ url: '/api/v1/agents/runs/{runId}/expected/{filename}',
269
308
  ...options,
270
309
  });
271
310
 
272
311
  /**
273
312
  * Download an expected file
274
313
  *
275
- * Downloads one expected file attached to an agent execution.
314
+ * Downloads one expected file attached to an agent run.
276
315
  */
277
- export const agentsExecutionsExpectedDownload = <ThrowOnError extends boolean = false>(
278
- options: Options<AgentsExecutionsExpectedDownloadData, ThrowOnError>
316
+ export const agentsRunsExpectedDownload = <ThrowOnError extends boolean = false>(
317
+ options: Options<AgentsRunsExpectedDownloadData, ThrowOnError>
279
318
  ) =>
280
319
  (options.client ?? client).get<
281
- AgentsExecutionsExpectedDownloadResponses,
282
- AgentsExecutionsExpectedDownloadErrors,
320
+ AgentsRunsExpectedDownloadResponses,
321
+ AgentsRunsExpectedDownloadErrors,
283
322
  ThrowOnError
284
323
  >({
285
324
  security: [{ scheme: 'bearer', type: 'http' }],
286
- url: '/api/v1/agents/executions/{executionId}/expected/{filename}',
325
+ url: '/api/v1/agents/runs/{runId}/expected/{filename}',
287
326
  ...options,
288
327
  });
289
328
 
290
329
  /**
291
330
  * Rename an expected file
292
331
  *
293
- * Renames one expected file attached to an agent execution.
332
+ * Renames one expected file attached to an agent run.
294
333
  */
295
- export const agentsExecutionsExpectedRename = <ThrowOnError extends boolean = false>(
296
- options: Options<AgentsExecutionsExpectedRenameData, ThrowOnError>
334
+ export const agentsRunsExpectedRename = <ThrowOnError extends boolean = false>(
335
+ options: Options<AgentsRunsExpectedRenameData, ThrowOnError>
297
336
  ) =>
298
337
  (options.client ?? client).patch<
299
- AgentsExecutionsExpectedRenameResponses,
300
- AgentsExecutionsExpectedRenameErrors,
338
+ AgentsRunsExpectedRenameResponses,
339
+ AgentsRunsExpectedRenameErrors,
301
340
  ThrowOnError
302
341
  >({
303
342
  security: [{ scheme: 'bearer', type: 'http' }],
304
- url: '/api/v1/agents/executions/{executionId}/expected/{filename}',
343
+ url: '/api/v1/agents/runs/{runId}/expected/{filename}',
305
344
  ...options,
306
345
  headers: {
307
346
  'Content-Type': 'application/json',
@@ -310,20 +349,20 @@ export const agentsExecutionsExpectedRename = <ThrowOnError extends boolean = fa
310
349
  });
311
350
 
312
351
  /**
313
- * List execution expected artifacts
352
+ * List run expected artifacts
314
353
  *
315
- * Returns structured expected JSON and expected file names for one execution.
354
+ * Returns structured expected JSON and expected file names for one run.
316
355
  */
317
- export const agentsExecutionsExpectedList = <ThrowOnError extends boolean = false>(
318
- options: Options<AgentsExecutionsExpectedListData, ThrowOnError>
356
+ export const agentsRunsExpectedList = <ThrowOnError extends boolean = false>(
357
+ options: Options<AgentsRunsExpectedListData, ThrowOnError>
319
358
  ) =>
320
359
  (options.client ?? client).get<
321
- AgentsExecutionsExpectedListResponses,
322
- AgentsExecutionsExpectedListErrors,
360
+ AgentsRunsExpectedListResponses,
361
+ AgentsRunsExpectedListErrors,
323
362
  ThrowOnError
324
363
  >({
325
364
  security: [{ scheme: 'bearer', type: 'http' }],
326
- url: '/api/v1/agents/executions/{executionId}/expected',
365
+ url: '/api/v1/agents/runs/{runId}/expected',
327
366
  ...options,
328
367
  });
329
368
 
@@ -332,16 +371,16 @@ export const agentsExecutionsExpectedList = <ThrowOnError extends boolean = fals
332
371
  *
333
372
  * Uploads an expected file with multipart/form-data, or copies a generated output file into expected artifacts with JSON.
334
373
  */
335
- export const agentsExecutionsExpectedCreate = <ThrowOnError extends boolean = false>(
336
- options: Options<AgentsExecutionsExpectedCreateData, ThrowOnError>
374
+ export const agentsRunsExpectedCreate = <ThrowOnError extends boolean = false>(
375
+ options: Options<AgentsRunsExpectedCreateData, ThrowOnError>
337
376
  ) =>
338
377
  (options.client ?? client).post<
339
- AgentsExecutionsExpectedCreateResponses,
340
- AgentsExecutionsExpectedCreateErrors,
378
+ AgentsRunsExpectedCreateResponses,
379
+ AgentsRunsExpectedCreateErrors,
341
380
  ThrowOnError
342
381
  >({
343
382
  security: [{ scheme: 'bearer', type: 'http' }],
344
- url: '/api/v1/agents/executions/{executionId}/expected',
383
+ url: '/api/v1/agents/runs/{runId}/expected',
345
384
  ...options,
346
385
  headers: {
347
386
  'Content-Type': 'application/json',
@@ -350,56 +389,56 @@ export const agentsExecutionsExpectedCreate = <ThrowOnError extends boolean = fa
350
389
  });
351
390
 
352
391
  /**
353
- * Clear execution feedback
392
+ * Clear run feedback
354
393
  *
355
- * Deletes feedback, structured expected JSON, and expected files from one execution.
394
+ * Deletes feedback, structured expected JSON, and expected files from one run.
356
395
  */
357
- export const agentsExecutionsFeedbackDelete = <ThrowOnError extends boolean = false>(
358
- options: Options<AgentsExecutionsFeedbackDeleteData, ThrowOnError>
396
+ export const agentsRunsFeedbackDelete = <ThrowOnError extends boolean = false>(
397
+ options: Options<AgentsRunsFeedbackDeleteData, ThrowOnError>
359
398
  ) =>
360
399
  (options.client ?? client).delete<
361
- AgentsExecutionsFeedbackDeleteResponses,
362
- AgentsExecutionsFeedbackDeleteErrors,
400
+ AgentsRunsFeedbackDeleteResponses,
401
+ AgentsRunsFeedbackDeleteErrors,
363
402
  ThrowOnError
364
403
  >({
365
404
  security: [{ scheme: 'bearer', type: 'http' }],
366
- url: '/api/v1/agents/executions/{executionId}/feedback',
405
+ url: '/api/v1/agents/runs/{runId}/feedback',
367
406
  ...options,
368
407
  });
369
408
 
370
409
  /**
371
- * Get execution feedback
410
+ * Get run feedback
372
411
  *
373
- * Returns feedback and expected artifacts attached to one agent execution.
412
+ * Returns feedback and expected artifacts attached to one agent run.
374
413
  */
375
- export const agentsExecutionsFeedbackGet = <ThrowOnError extends boolean = false>(
376
- options: Options<AgentsExecutionsFeedbackGetData, ThrowOnError>
414
+ export const agentsRunsFeedbackGet = <ThrowOnError extends boolean = false>(
415
+ options: Options<AgentsRunsFeedbackGetData, ThrowOnError>
377
416
  ) =>
378
417
  (options.client ?? client).get<
379
- AgentsExecutionsFeedbackGetResponses,
380
- AgentsExecutionsFeedbackGetErrors,
418
+ AgentsRunsFeedbackGetResponses,
419
+ AgentsRunsFeedbackGetErrors,
381
420
  ThrowOnError
382
421
  >({
383
422
  security: [{ scheme: 'bearer', type: 'http' }],
384
- url: '/api/v1/agents/executions/{executionId}/feedback',
423
+ url: '/api/v1/agents/runs/{runId}/feedback',
385
424
  ...options,
386
425
  });
387
426
 
388
427
  /**
389
- * Update execution feedback
428
+ * Update run feedback
390
429
  *
391
- * Updates the feedback body, rating, status, or structured expected JSON attached to one execution.
430
+ * Updates the feedback body, rating, status, or structured expected JSON attached to one run.
392
431
  */
393
- export const agentsExecutionsFeedbackUpdate = <ThrowOnError extends boolean = false>(
394
- options: Options<AgentsExecutionsFeedbackUpdateData, ThrowOnError>
432
+ export const agentsRunsFeedbackUpdate = <ThrowOnError extends boolean = false>(
433
+ options: Options<AgentsRunsFeedbackUpdateData, ThrowOnError>
395
434
  ) =>
396
435
  (options.client ?? client).patch<
397
- AgentsExecutionsFeedbackUpdateResponses,
398
- AgentsExecutionsFeedbackUpdateErrors,
436
+ AgentsRunsFeedbackUpdateResponses,
437
+ AgentsRunsFeedbackUpdateErrors,
399
438
  ThrowOnError
400
439
  >({
401
440
  security: [{ scheme: 'bearer', type: 'http' }],
402
- url: '/api/v1/agents/executions/{executionId}/feedback',
441
+ url: '/api/v1/agents/runs/{runId}/feedback',
403
442
  ...options,
404
443
  headers: {
405
444
  'Content-Type': 'application/json',
@@ -408,84 +447,162 @@ export const agentsExecutionsFeedbackUpdate = <ThrowOnError extends boolean = fa
408
447
  });
409
448
 
410
449
  /**
411
- * Download an execution file
450
+ * Download a run file
412
451
  *
413
- * Downloads an input file, output file, issues.md, or trace.jsonl attached to an agent execution.
452
+ * Downloads an input file, output file, issues.md, trace.jsonl, or eigenpal.lock attached to an agent run.
414
453
  */
415
- export const agentsExecutionsFilesDownload = <ThrowOnError extends boolean = false>(
416
- options: Options<AgentsExecutionsFilesDownloadData, ThrowOnError>
454
+ export const agentsRunsFilesDownload = <ThrowOnError extends boolean = false>(
455
+ options: Options<AgentsRunsFilesDownloadData, ThrowOnError>
417
456
  ) =>
418
457
  (options.client ?? client).get<
419
- AgentsExecutionsFilesDownloadResponses,
420
- AgentsExecutionsFilesDownloadErrors,
458
+ AgentsRunsFilesDownloadResponses,
459
+ AgentsRunsFilesDownloadErrors,
421
460
  ThrowOnError
422
461
  >({
423
462
  security: [{ scheme: 'bearer', type: 'http' }],
424
- url: '/api/v1/agents/executions/{executionId}/files/{kind}/{filename}',
463
+ url: '/api/v1/agents/runs/{runId}/files/{kind}/{filename}',
425
464
  ...options,
426
465
  });
427
466
 
428
467
  /**
429
- * Rerun agent execution
468
+ * Rerun agent run
430
469
  *
431
- * Creates a new execution for the same agent using a previous execution's stored input snapshot.
470
+ * Creates a new run for the same agent using a previous run's stored input snapshot.
432
471
  */
433
- export const agentsExecutionsRerun = <ThrowOnError extends boolean = false>(
434
- options: Options<AgentsExecutionsRerunData, ThrowOnError>
472
+ export const agentsRunsRerun = <ThrowOnError extends boolean = false>(
473
+ options: Options<AgentsRunsRerunData, ThrowOnError>
435
474
  ) =>
436
- (options.client ?? client).post<
437
- AgentsExecutionsRerunResponses,
438
- AgentsExecutionsRerunErrors,
439
- ThrowOnError
440
- >({
475
+ (options.client ?? client).post<AgentsRunsRerunResponses, AgentsRunsRerunErrors, ThrowOnError>({
476
+ security: [{ scheme: 'bearer', type: 'http' }],
477
+ url: '/api/v1/agents/runs/{runId}/rerun',
478
+ ...options,
479
+ });
480
+
481
+ /**
482
+ * Get agent run
483
+ *
484
+ * Returns one agent run by id.
485
+ */
486
+ export const agentsRunsGet = <ThrowOnError extends boolean = false>(
487
+ options: Options<AgentsRunsGetData, ThrowOnError>
488
+ ) =>
489
+ (options.client ?? client).get<AgentsRunsGetResponses, AgentsRunsGetErrors, ThrowOnError>({
490
+ security: [{ scheme: 'bearer', type: 'http' }],
491
+ url: '/api/v1/agents/runs/{runId}',
492
+ ...options,
493
+ });
494
+
495
+ /**
496
+ * Sync an automation from latest source
497
+ *
498
+ * Reconciles lightweight automation metadata from the latest released Git source package. This does not enqueue executions.
499
+ */
500
+ export const automationsSync = <ThrowOnError extends boolean = false>(
501
+ options: Options<AutomationsSyncData, ThrowOnError>
502
+ ) =>
503
+ (options.client ?? client).post<AutomationsSyncResponses, AutomationsSyncErrors, ThrowOnError>({
441
504
  security: [{ scheme: 'bearer', type: 'http' }],
442
- url: '/api/v1/agents/executions/{executionId}/rerun',
505
+ url: '/api/v1/automations/{automation}/sync',
443
506
  ...options,
444
507
  });
445
508
 
446
509
  /**
447
- * Get agent execution
510
+ * Preview a source lockfile
448
511
  *
449
- * Returns one agent execution by id.
512
+ * Resolves a package ref and returns the would-be eigenpal.lock without enqueueing or writing runtime artifacts.
450
513
  */
451
- export const agentsExecutionsGet = <ThrowOnError extends boolean = false>(
452
- options: Options<AgentsExecutionsGetData, ThrowOnError>
514
+ export const sourceLockfilePreview = <ThrowOnError extends boolean = false>(
515
+ options: Options<SourceLockfilePreviewData, ThrowOnError>
453
516
  ) =>
454
517
  (options.client ?? client).get<
455
- AgentsExecutionsGetResponses,
456
- AgentsExecutionsGetErrors,
518
+ SourceLockfilePreviewResponses,
519
+ SourceLockfilePreviewErrors,
457
520
  ThrowOnError
458
521
  >({
459
522
  security: [{ scheme: 'bearer', type: 'http' }],
460
- url: '/api/v1/agents/executions/{executionId}',
523
+ url: '/api/v1/source/lockfile',
461
524
  ...options,
462
525
  });
463
526
 
464
527
  /**
465
- * List agents
528
+ * Preview a raw Git source file
466
529
  *
467
- * Returns agents the API key has access to, with pagination and basic execution stats.
530
+ * Reads a raw file from the organization Git repository for metadata previews.
468
531
  */
469
- export const agentsList = <ThrowOnError extends boolean = false>(
470
- options?: Options<AgentsListData, ThrowOnError>
532
+ export const sourceRaw = <ThrowOnError extends boolean = false>(
533
+ options: Options<SourceRawData, ThrowOnError>
471
534
  ) =>
472
- (options?.client ?? client).get<AgentsListResponses, AgentsListErrors, ThrowOnError>({
535
+ (options.client ?? client).get<SourceRawResponses, SourceRawErrors, ThrowOnError>({
473
536
  security: [{ scheme: 'bearer', type: 'http' }],
474
- url: '/api/v1/agents',
537
+ url: '/api/v1/source/raw',
475
538
  ...options,
476
539
  });
477
540
 
478
541
  /**
479
- * Create an agent
542
+ * List Git source package releases
480
543
  *
481
- * Creates a new agent and initializes its workspace files.
544
+ * Lists package-scoped Git release tags, or returns one exact version when requested.
482
545
  */
483
- export const agentsCreate = <ThrowOnError extends boolean = false>(
484
- options: Options<AgentsCreateData, ThrowOnError>
546
+ export const sourceReleases = <ThrowOnError extends boolean = false>(
547
+ options: Options<SourceReleasesData, ThrowOnError>
485
548
  ) =>
486
- (options.client ?? client).post<AgentsCreateResponses, AgentsCreateErrors, ThrowOnError>({
549
+ (options.client ?? client).get<SourceReleasesResponses, SourceReleasesErrors, ThrowOnError>({
487
550
  security: [{ scheme: 'bearer', type: 'http' }],
488
- url: '/api/v1/agents',
551
+ url: '/api/v1/source/releases',
552
+ ...options,
553
+ });
554
+
555
+ /**
556
+ * Get organization Git source repository
557
+ *
558
+ * Returns the authenticated organization Git remote used by hidden source CLI commands.
559
+ */
560
+ export const sourceRepository = <ThrowOnError extends boolean = false>(
561
+ options?: Options<SourceRepositoryData, ThrowOnError>
562
+ ) =>
563
+ (options?.client ?? client).get<SourceRepositoryResponses, SourceRepositoryErrors, ThrowOnError>({
564
+ security: [{ scheme: 'bearer', type: 'http' }],
565
+ url: '/api/v1/source/repository',
566
+ ...options,
567
+ });
568
+
569
+ /**
570
+ * Decrypt a Git-backed source secret
571
+ *
572
+ * Decrypts one or more encrypted source secret values for the authenticated tenant. Single-secret requests require an execution id and are checked against that execution lockfile graph; batch `secrets[]` requests are tenant-scoped for local CLI use.
573
+ */
574
+ export const sourceSecretsDecrypt = <ThrowOnError extends boolean = false>(
575
+ options: Options<SourceSecretsDecryptData, ThrowOnError>
576
+ ) =>
577
+ (options.client ?? client).post<
578
+ SourceSecretsDecryptResponses,
579
+ SourceSecretsDecryptErrors,
580
+ ThrowOnError
581
+ >({
582
+ security: [{ scheme: 'bearer', type: 'http' }],
583
+ url: '/api/v1/source/secrets/decrypt',
584
+ ...options,
585
+ headers: {
586
+ 'Content-Type': 'application/json',
587
+ ...options.headers,
588
+ },
589
+ });
590
+
591
+ /**
592
+ * Encrypt a Git-backed source secret
593
+ *
594
+ * Encrypts one or more plaintext secret values for the authenticated tenant using the organization active decrypt key. Organization decrypt keys never leave the server; callers send plaintext over TLS with normal app authentication.
595
+ */
596
+ export const sourceSecretsEncrypt = <ThrowOnError extends boolean = false>(
597
+ options: Options<SourceSecretsEncryptData, ThrowOnError>
598
+ ) =>
599
+ (options.client ?? client).post<
600
+ SourceSecretsEncryptResponses,
601
+ SourceSecretsEncryptErrors,
602
+ ThrowOnError
603
+ >({
604
+ security: [{ scheme: 'bearer', type: 'http' }],
605
+ url: '/api/v1/source/secrets/encrypt',
489
606
  ...options,
490
607
  headers: {
491
608
  'Content-Type': 'application/json',