@eigenpal/sdk 0.4.17 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @eigenpal/sdk
2
2
 
3
- ## 0.4.17
3
+ ## 0.5.1
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -8,6 +8,7 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
+ - 5909b21: Add execution-scoped agent feedback filters and expected artifact management to the API, CLI, and SDKs.
11
12
  - 9905f7f: Fix the published SDKs so the README's default `baseUrl` works. 0.4.10
12
13
  shipped paths under `/v1/...` while the actual Next.js routes live at
13
14
  `/api/v1/...`, so every call from a freshly installed SDK either hit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/sdk",
3
- "version": "0.4.17",
3
+ "version": "0.5.1",
4
4
  "description": "Official TypeScript SDK for the EigenPal API",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -3,8 +3,21 @@
3
3
  export {
4
4
  agentsCreate,
5
5
  agentsExecutionsCancel,
6
+ agentsExecutionsExpectedCreate,
7
+ agentsExecutionsExpectedDelete,
8
+ agentsExecutionsExpectedDownload,
9
+ agentsExecutionsExpectedList,
10
+ agentsExecutionsExpectedRename,
11
+ agentsExecutionsFeedbackDelete,
12
+ agentsExecutionsFeedbackGet,
13
+ agentsExecutionsFeedbackUpdate,
14
+ agentsExecutionsFilesDownload,
6
15
  agentsExecutionsGet,
7
16
  agentsExecutionsList,
17
+ agentsExecutionsRerun,
18
+ agentsFilesListOrGet,
19
+ agentsFilesPut,
20
+ agentsFilesUploadBatch,
8
21
  agentsGet,
9
22
  agentsList,
10
23
  agentsRun,
@@ -19,8 +32,13 @@ export {
19
32
  type Options,
20
33
  } from './sdk.gen';
21
34
  export type {
35
+ AgentExecutionExpectedArtifacts,
36
+ AgentExecutionFeedback,
37
+ AgentExecutionFeedbackDetail,
22
38
  AgentExecutionResponse,
23
39
  AgentExecutionSummary,
40
+ AgentFileBody,
41
+ AgentFilesBody,
24
42
  AgentSummary,
25
43
  AgentsCreateData,
26
44
  AgentsCreateError,
@@ -32,6 +50,49 @@ export type {
32
50
  AgentsExecutionsCancelErrors,
33
51
  AgentsExecutionsCancelResponse,
34
52
  AgentsExecutionsCancelResponses,
53
+ AgentsExecutionsExpectedCreateData,
54
+ AgentsExecutionsExpectedCreateError,
55
+ AgentsExecutionsExpectedCreateErrors,
56
+ AgentsExecutionsExpectedCreateResponse,
57
+ AgentsExecutionsExpectedCreateResponses,
58
+ AgentsExecutionsExpectedDeleteData,
59
+ AgentsExecutionsExpectedDeleteError,
60
+ AgentsExecutionsExpectedDeleteErrors,
61
+ AgentsExecutionsExpectedDeleteResponse,
62
+ AgentsExecutionsExpectedDeleteResponses,
63
+ AgentsExecutionsExpectedDownloadData,
64
+ AgentsExecutionsExpectedDownloadError,
65
+ AgentsExecutionsExpectedDownloadErrors,
66
+ AgentsExecutionsExpectedDownloadResponses,
67
+ AgentsExecutionsExpectedListData,
68
+ AgentsExecutionsExpectedListError,
69
+ AgentsExecutionsExpectedListErrors,
70
+ AgentsExecutionsExpectedListResponse,
71
+ AgentsExecutionsExpectedListResponses,
72
+ AgentsExecutionsExpectedRenameData,
73
+ AgentsExecutionsExpectedRenameError,
74
+ AgentsExecutionsExpectedRenameErrors,
75
+ AgentsExecutionsExpectedRenameResponse,
76
+ AgentsExecutionsExpectedRenameResponses,
77
+ AgentsExecutionsFeedbackDeleteData,
78
+ AgentsExecutionsFeedbackDeleteError,
79
+ AgentsExecutionsFeedbackDeleteErrors,
80
+ AgentsExecutionsFeedbackDeleteResponse,
81
+ AgentsExecutionsFeedbackDeleteResponses,
82
+ AgentsExecutionsFeedbackGetData,
83
+ AgentsExecutionsFeedbackGetError,
84
+ AgentsExecutionsFeedbackGetErrors,
85
+ AgentsExecutionsFeedbackGetResponse,
86
+ AgentsExecutionsFeedbackGetResponses,
87
+ AgentsExecutionsFeedbackUpdateData,
88
+ AgentsExecutionsFeedbackUpdateError,
89
+ AgentsExecutionsFeedbackUpdateErrors,
90
+ AgentsExecutionsFeedbackUpdateResponse,
91
+ AgentsExecutionsFeedbackUpdateResponses,
92
+ AgentsExecutionsFilesDownloadData,
93
+ AgentsExecutionsFilesDownloadError,
94
+ AgentsExecutionsFilesDownloadErrors,
95
+ AgentsExecutionsFilesDownloadResponses,
35
96
  AgentsExecutionsGetData,
36
97
  AgentsExecutionsGetError,
37
98
  AgentsExecutionsGetErrors,
@@ -42,6 +103,25 @@ export type {
42
103
  AgentsExecutionsListErrors,
43
104
  AgentsExecutionsListResponse,
44
105
  AgentsExecutionsListResponses,
106
+ AgentsExecutionsRerunData,
107
+ AgentsExecutionsRerunError,
108
+ AgentsExecutionsRerunErrors,
109
+ AgentsExecutionsRerunResponse,
110
+ AgentsExecutionsRerunResponses,
111
+ AgentsFilesListOrGetData,
112
+ AgentsFilesListOrGetError,
113
+ AgentsFilesListOrGetErrors,
114
+ AgentsFilesListOrGetResponses,
115
+ AgentsFilesPutData,
116
+ AgentsFilesPutError,
117
+ AgentsFilesPutErrors,
118
+ AgentsFilesPutResponse,
119
+ AgentsFilesPutResponses,
120
+ AgentsFilesUploadBatchData,
121
+ AgentsFilesUploadBatchError,
122
+ AgentsFilesUploadBatchErrors,
123
+ AgentsFilesUploadBatchResponse,
124
+ AgentsFilesUploadBatchResponses,
45
125
  AgentsGetData,
46
126
  AgentsGetError,
47
127
  AgentsGetErrors,
@@ -67,6 +147,7 @@ export type {
67
147
  CancelAgentExecutionResponse,
68
148
  CancelWorkflowExecutionResponse,
69
149
  ClientOptions,
150
+ CopyAgentExecutionOutputToExpectedBody,
70
151
  CreateAgentBody,
71
152
  CreateAgentResponse,
72
153
  ExecutionStatus,
@@ -79,10 +160,14 @@ export type {
79
160
  ListWorkflowsResponse,
80
161
  PatchAgentBody,
81
162
  PatchAgentResponse,
163
+ RenameExpectedFileBody,
164
+ RenameExpectedFileResponse,
165
+ RerunAgentExecutionResponse,
82
166
  RunAgentBody,
83
167
  RunAgentResponse,
84
168
  RunWorkflowBody,
85
169
  RunWorkflowResponse,
170
+ UpdateAgentExecutionFeedbackBody,
86
171
  WorkflowExecutionStatusResponse,
87
172
  WorkflowSummary,
88
173
  WorkflowVersion,
@@ -9,12 +9,51 @@ import type {
9
9
  AgentsExecutionsCancelData,
10
10
  AgentsExecutionsCancelErrors,
11
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,
12
39
  AgentsExecutionsGetData,
13
40
  AgentsExecutionsGetErrors,
14
41
  AgentsExecutionsGetResponses,
15
42
  AgentsExecutionsListData,
16
43
  AgentsExecutionsListErrors,
17
44
  AgentsExecutionsListResponses,
45
+ AgentsExecutionsRerunData,
46
+ AgentsExecutionsRerunErrors,
47
+ AgentsExecutionsRerunResponses,
48
+ AgentsFilesListOrGetData,
49
+ AgentsFilesListOrGetErrors,
50
+ AgentsFilesListOrGetResponses,
51
+ AgentsFilesPutData,
52
+ AgentsFilesPutErrors,
53
+ AgentsFilesPutResponses,
54
+ AgentsFilesUploadBatchData,
55
+ AgentsFilesUploadBatchErrors,
56
+ AgentsFilesUploadBatchResponses,
18
57
  AgentsGetData,
19
58
  AgentsGetErrors,
20
59
  AgentsGetResponses,
@@ -86,6 +125,64 @@ export const agentsExecutionsList = <ThrowOnError extends boolean = false>(
86
125
  ...options,
87
126
  });
88
127
 
128
+ /**
129
+ * List or download agent files
130
+ *
131
+ * Lists live agent files, or returns one file when `path` is provided.
132
+ */
133
+ export const agentsFilesListOrGet = <ThrowOnError extends boolean = false>(
134
+ options: Options<AgentsFilesListOrGetData, ThrowOnError>
135
+ ) =>
136
+ (options.client ?? client).get<
137
+ AgentsFilesListOrGetResponses,
138
+ AgentsFilesListOrGetErrors,
139
+ ThrowOnError
140
+ >({
141
+ security: [{ scheme: 'bearer', type: 'http' }],
142
+ url: '/api/v1/agents/{agentId}/files',
143
+ ...options,
144
+ });
145
+
146
+ /**
147
+ * Upload agent files
148
+ *
149
+ * Uploads multiple files into the live agent namespace.
150
+ */
151
+ export const agentsFilesUploadBatch = <ThrowOnError extends boolean = false>(
152
+ options: Options<AgentsFilesUploadBatchData, ThrowOnError>
153
+ ) =>
154
+ (options.client ?? client).post<
155
+ AgentsFilesUploadBatchResponses,
156
+ AgentsFilesUploadBatchErrors,
157
+ ThrowOnError
158
+ >({
159
+ security: [{ scheme: 'bearer', type: 'http' }],
160
+ url: '/api/v1/agents/{agentId}/files',
161
+ ...options,
162
+ headers: {
163
+ 'Content-Type': 'application/json',
164
+ ...options.headers,
165
+ },
166
+ });
167
+
168
+ /**
169
+ * Upload one agent file
170
+ *
171
+ * Uploads one file into the live agent namespace at the safe relative `path` query parameter.
172
+ */
173
+ export const agentsFilesPut = <ThrowOnError extends boolean = false>(
174
+ options: Options<AgentsFilesPutData, ThrowOnError>
175
+ ) =>
176
+ (options.client ?? client).put<AgentsFilesPutResponses, AgentsFilesPutErrors, ThrowOnError>({
177
+ security: [{ scheme: 'bearer', type: 'http' }],
178
+ url: '/api/v1/agents/{agentId}/files',
179
+ ...options,
180
+ headers: {
181
+ 'Content-Type': 'application/json',
182
+ ...options.headers,
183
+ },
184
+ });
185
+
89
186
  /**
90
187
  * Get an agent
91
188
  *
@@ -154,6 +251,198 @@ export const agentsExecutionsCancel = <ThrowOnError extends boolean = false>(
154
251
  ...options,
155
252
  });
156
253
 
254
+ /**
255
+ * Delete an expected file
256
+ *
257
+ * Deletes one expected file attached to an agent execution.
258
+ */
259
+ export const agentsExecutionsExpectedDelete = <ThrowOnError extends boolean = false>(
260
+ options: Options<AgentsExecutionsExpectedDeleteData, ThrowOnError>
261
+ ) =>
262
+ (options.client ?? client).delete<
263
+ AgentsExecutionsExpectedDeleteResponses,
264
+ AgentsExecutionsExpectedDeleteErrors,
265
+ ThrowOnError
266
+ >({
267
+ security: [{ scheme: 'bearer', type: 'http' }],
268
+ url: '/api/v1/agents/executions/{executionId}/expected/{filename}',
269
+ ...options,
270
+ });
271
+
272
+ /**
273
+ * Download an expected file
274
+ *
275
+ * Downloads one expected file attached to an agent execution.
276
+ */
277
+ export const agentsExecutionsExpectedDownload = <ThrowOnError extends boolean = false>(
278
+ options: Options<AgentsExecutionsExpectedDownloadData, ThrowOnError>
279
+ ) =>
280
+ (options.client ?? client).get<
281
+ AgentsExecutionsExpectedDownloadResponses,
282
+ AgentsExecutionsExpectedDownloadErrors,
283
+ ThrowOnError
284
+ >({
285
+ security: [{ scheme: 'bearer', type: 'http' }],
286
+ url: '/api/v1/agents/executions/{executionId}/expected/{filename}',
287
+ ...options,
288
+ });
289
+
290
+ /**
291
+ * Rename an expected file
292
+ *
293
+ * Renames one expected file attached to an agent execution.
294
+ */
295
+ export const agentsExecutionsExpectedRename = <ThrowOnError extends boolean = false>(
296
+ options: Options<AgentsExecutionsExpectedRenameData, ThrowOnError>
297
+ ) =>
298
+ (options.client ?? client).patch<
299
+ AgentsExecutionsExpectedRenameResponses,
300
+ AgentsExecutionsExpectedRenameErrors,
301
+ ThrowOnError
302
+ >({
303
+ security: [{ scheme: 'bearer', type: 'http' }],
304
+ url: '/api/v1/agents/executions/{executionId}/expected/{filename}',
305
+ ...options,
306
+ headers: {
307
+ 'Content-Type': 'application/json',
308
+ ...options.headers,
309
+ },
310
+ });
311
+
312
+ /**
313
+ * List execution expected artifacts
314
+ *
315
+ * Returns structured expected JSON and expected file names for one execution.
316
+ */
317
+ export const agentsExecutionsExpectedList = <ThrowOnError extends boolean = false>(
318
+ options: Options<AgentsExecutionsExpectedListData, ThrowOnError>
319
+ ) =>
320
+ (options.client ?? client).get<
321
+ AgentsExecutionsExpectedListResponses,
322
+ AgentsExecutionsExpectedListErrors,
323
+ ThrowOnError
324
+ >({
325
+ security: [{ scheme: 'bearer', type: 'http' }],
326
+ url: '/api/v1/agents/executions/{executionId}/expected',
327
+ ...options,
328
+ });
329
+
330
+ /**
331
+ * Create an expected file
332
+ *
333
+ * Uploads an expected file with multipart/form-data, or copies a generated output file into expected artifacts with JSON.
334
+ */
335
+ export const agentsExecutionsExpectedCreate = <ThrowOnError extends boolean = false>(
336
+ options: Options<AgentsExecutionsExpectedCreateData, ThrowOnError>
337
+ ) =>
338
+ (options.client ?? client).post<
339
+ AgentsExecutionsExpectedCreateResponses,
340
+ AgentsExecutionsExpectedCreateErrors,
341
+ ThrowOnError
342
+ >({
343
+ security: [{ scheme: 'bearer', type: 'http' }],
344
+ url: '/api/v1/agents/executions/{executionId}/expected',
345
+ ...options,
346
+ headers: {
347
+ 'Content-Type': 'application/json',
348
+ ...options.headers,
349
+ },
350
+ });
351
+
352
+ /**
353
+ * Clear execution feedback
354
+ *
355
+ * Deletes feedback, structured expected JSON, and expected files from one execution.
356
+ */
357
+ export const agentsExecutionsFeedbackDelete = <ThrowOnError extends boolean = false>(
358
+ options: Options<AgentsExecutionsFeedbackDeleteData, ThrowOnError>
359
+ ) =>
360
+ (options.client ?? client).delete<
361
+ AgentsExecutionsFeedbackDeleteResponses,
362
+ AgentsExecutionsFeedbackDeleteErrors,
363
+ ThrowOnError
364
+ >({
365
+ security: [{ scheme: 'bearer', type: 'http' }],
366
+ url: '/api/v1/agents/executions/{executionId}/feedback',
367
+ ...options,
368
+ });
369
+
370
+ /**
371
+ * Get execution feedback
372
+ *
373
+ * Returns feedback and expected artifacts attached to one agent execution.
374
+ */
375
+ export const agentsExecutionsFeedbackGet = <ThrowOnError extends boolean = false>(
376
+ options: Options<AgentsExecutionsFeedbackGetData, ThrowOnError>
377
+ ) =>
378
+ (options.client ?? client).get<
379
+ AgentsExecutionsFeedbackGetResponses,
380
+ AgentsExecutionsFeedbackGetErrors,
381
+ ThrowOnError
382
+ >({
383
+ security: [{ scheme: 'bearer', type: 'http' }],
384
+ url: '/api/v1/agents/executions/{executionId}/feedback',
385
+ ...options,
386
+ });
387
+
388
+ /**
389
+ * Update execution feedback
390
+ *
391
+ * Updates the feedback body, rating, status, or structured expected JSON attached to one execution.
392
+ */
393
+ export const agentsExecutionsFeedbackUpdate = <ThrowOnError extends boolean = false>(
394
+ options: Options<AgentsExecutionsFeedbackUpdateData, ThrowOnError>
395
+ ) =>
396
+ (options.client ?? client).patch<
397
+ AgentsExecutionsFeedbackUpdateResponses,
398
+ AgentsExecutionsFeedbackUpdateErrors,
399
+ ThrowOnError
400
+ >({
401
+ security: [{ scheme: 'bearer', type: 'http' }],
402
+ url: '/api/v1/agents/executions/{executionId}/feedback',
403
+ ...options,
404
+ headers: {
405
+ 'Content-Type': 'application/json',
406
+ ...options.headers,
407
+ },
408
+ });
409
+
410
+ /**
411
+ * Download an execution file
412
+ *
413
+ * Downloads an input file, output file, issues.md, or trace.jsonl attached to an agent execution.
414
+ */
415
+ export const agentsExecutionsFilesDownload = <ThrowOnError extends boolean = false>(
416
+ options: Options<AgentsExecutionsFilesDownloadData, ThrowOnError>
417
+ ) =>
418
+ (options.client ?? client).get<
419
+ AgentsExecutionsFilesDownloadResponses,
420
+ AgentsExecutionsFilesDownloadErrors,
421
+ ThrowOnError
422
+ >({
423
+ security: [{ scheme: 'bearer', type: 'http' }],
424
+ url: '/api/v1/agents/executions/{executionId}/files/{kind}/{filename}',
425
+ ...options,
426
+ });
427
+
428
+ /**
429
+ * Rerun agent execution
430
+ *
431
+ * Creates a new execution for the same agent using a previous execution's stored input snapshot.
432
+ */
433
+ export const agentsExecutionsRerun = <ThrowOnError extends boolean = false>(
434
+ options: Options<AgentsExecutionsRerunData, ThrowOnError>
435
+ ) =>
436
+ (options.client ?? client).post<
437
+ AgentsExecutionsRerunResponses,
438
+ AgentsExecutionsRerunErrors,
439
+ ThrowOnError
440
+ >({
441
+ security: [{ scheme: 'bearer', type: 'http' }],
442
+ url: '/api/v1/agents/executions/{executionId}/rerun',
443
+ ...options,
444
+ });
445
+
157
446
  /**
158
447
  * Get agent execution
159
448
  *