@eigenpal/sdk 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -3
- package/README.md +56 -152
- package/package.json +1 -1
- package/src/client.ts +34 -19
- package/src/generated/index.ts +2 -2
- package/src/generated/sdk.gen.ts +161 -284
- package/src/generated/types.gen.ts +1006 -1301
- package/src/index.ts +20 -44
- package/src/resources/auth.ts +18 -0
- package/src/resources/automations.ts +284 -7
- package/src/resources/files.ts +51 -0
- package/src/resources/runs.ts +66 -463
- package/src/telemetry.ts +1 -1
- package/src/resources/agents.ts +0 -221
- package/src/resources/executions.ts +0 -142
- package/src/resources/source.ts +0 -101
- package/src/resources/workflows.ts +0 -82
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
|
|
4
4
|
import { client } from './client.gen';
|
|
5
|
-
import type {
|
|
5
|
+
import type { AuthCheckData, AuthCheckErrors, AuthCheckResponses, AutomationsDatasetExportData, AutomationsDatasetExportErrors, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportErrors, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponses, AutomationsExamplesGetData, AutomationsExamplesGetErrors, AutomationsExamplesGetResponses, AutomationsExamplesListData, AutomationsExamplesListErrors, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunErrors, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListErrors, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetErrors, AutomationsGetResponses, AutomationsListData, AutomationsListErrors, AutomationsListResponses, AutomationsTriggersGetData, AutomationsTriggersGetErrors, AutomationsTriggersGetResponses, AutomationsVersionsListData, AutomationsVersionsListErrors, AutomationsVersionsListResponses, FilesContentGetData, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateErrors, FilesCreateResponses, FilesDeleteData, FilesDeleteErrors, FilesDeleteResponses, FilesGetData, FilesGetErrors, FilesGetResponses, RunsArtifactsGetData, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListErrors, RunsArtifactsListResponses, RunsCancelData, RunsCancelErrors, RunsCancelResponses, RunsEvalResultsListData, RunsEvalResultsListErrors, RunsEvalResultsListResponses, RunsEventsListData, RunsEventsListErrors, RunsEventsListResponses, RunsFeedbackClearData, RunsFeedbackClearErrors, RunsFeedbackClearResponses, RunsFeedbackGetData, RunsFeedbackGetErrors, RunsFeedbackGetResponses, RunsFeedbackUpdateData, RunsFeedbackUpdateErrors, RunsFeedbackUpdateResponses, RunsGetData, RunsGetErrors, RunsGetResponses, RunsListData, RunsListErrors, RunsListResponses, RunsPromoteData, RunsPromoteErrors, RunsPromoteResponses, RunsRerunData, RunsRerunErrors, RunsRerunResponses, RunsStartData, RunsStartErrors, RunsStartResponses, RunsStepsListData, RunsStepsListErrors, RunsStepsListResponses, RunsTraceGetData, RunsTraceGetErrors, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetErrors, RunsUsageGetResponses } from './types.gen';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
8
8
|
/**
|
|
@@ -19,39 +19,54 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Check API key identity
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* Return the tenant, user, API key, and scope represented by the current API key.
|
|
25
25
|
*/
|
|
26
|
-
export const
|
|
26
|
+
export const authCheck = <ThrowOnError extends boolean = false>(options?: Options<AuthCheckData, ThrowOnError>) => (options?.client ?? client).get<AuthCheckResponses, AuthCheckErrors, ThrowOnError>({
|
|
27
27
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
28
|
-
url: '/api/v1/
|
|
28
|
+
url: '/api/v1/auth/check',
|
|
29
29
|
...options
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
* Export automation dataset
|
|
34
|
+
*/
|
|
35
|
+
export const automationsDatasetExport = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetExportData, ThrowOnError>) => (options.client ?? client).get<AutomationsDatasetExportResponses, AutomationsDatasetExportErrors, ThrowOnError>({
|
|
36
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
37
|
+
url: '/api/v1/automations/{id}/dataset/export',
|
|
38
|
+
...options
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Import automation dataset
|
|
36
43
|
*/
|
|
37
|
-
export const
|
|
44
|
+
export const automationsDatasetImport = <ThrowOnError extends boolean = false>(options: Options<AutomationsDatasetImportData, ThrowOnError>) => (options.client ?? client).post<AutomationsDatasetImportResponses, AutomationsDatasetImportErrors, ThrowOnError>({
|
|
45
|
+
...formDataBodySerializer,
|
|
38
46
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
39
|
-
url: '/api/v1/
|
|
47
|
+
url: '/api/v1/automations/{id}/dataset/import',
|
|
40
48
|
...options,
|
|
41
49
|
headers: {
|
|
42
|
-
'Content-Type':
|
|
50
|
+
'Content-Type': null,
|
|
43
51
|
...options.headers
|
|
44
52
|
}
|
|
45
53
|
});
|
|
46
54
|
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* Agent source is Git-backed. Use Git push or the builder instead.
|
|
56
|
+
* Get automation evaluators
|
|
51
57
|
*/
|
|
52
|
-
export const
|
|
58
|
+
export const automationsEvaluatorsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsEvaluatorsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsGetErrors, ThrowOnError>({
|
|
53
59
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
54
|
-
url: '/api/v1/
|
|
60
|
+
url: '/api/v1/automations/{id}/evaluators',
|
|
61
|
+
...options
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Replace automation evaluators
|
|
66
|
+
*/
|
|
67
|
+
export const automationsEvaluatorsUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsEvaluatorsUpdateData, ThrowOnError>) => (options.client ?? client).put<AutomationsEvaluatorsUpdateResponses, AutomationsEvaluatorsUpdateErrors, ThrowOnError>({
|
|
68
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
69
|
+
url: '/api/v1/automations/{id}/evaluators',
|
|
55
70
|
...options,
|
|
56
71
|
headers: {
|
|
57
72
|
'Content-Type': 'application/json',
|
|
@@ -60,24 +75,29 @@ export const agentsFilesPut = <ThrowOnError extends boolean = false>(options: Op
|
|
|
60
75
|
});
|
|
61
76
|
|
|
62
77
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* Returns one agent by id or slug.
|
|
78
|
+
* Delete automation example
|
|
66
79
|
*/
|
|
67
|
-
export const
|
|
80
|
+
export const automationsExamplesDelete = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesDeleteData, ThrowOnError>) => (options.client ?? client).delete<AutomationsExamplesDeleteResponses, AutomationsExamplesDeleteErrors, ThrowOnError>({
|
|
68
81
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
69
|
-
url: '/api/v1/
|
|
82
|
+
url: '/api/v1/automations/{id}/examples/{exampleId}',
|
|
70
83
|
...options
|
|
71
84
|
});
|
|
72
85
|
|
|
73
86
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* Updates mutable agent metadata and configuration.
|
|
87
|
+
* Get automation example
|
|
77
88
|
*/
|
|
78
|
-
export const
|
|
89
|
+
export const automationsExamplesGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesGetResponses, AutomationsExamplesGetErrors, ThrowOnError>({
|
|
79
90
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
80
|
-
url: '/api/v1/
|
|
91
|
+
url: '/api/v1/automations/{id}/examples/{exampleId}',
|
|
92
|
+
...options
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Update automation example
|
|
97
|
+
*/
|
|
98
|
+
export const automationsExamplesUpdate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesUpdateData, ThrowOnError>) => (options.client ?? client).patch<AutomationsExamplesUpdateResponses, AutomationsExamplesUpdateErrors, ThrowOnError>({
|
|
99
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
100
|
+
url: '/api/v1/automations/{id}/examples/{exampleId}',
|
|
81
101
|
...options,
|
|
82
102
|
headers: {
|
|
83
103
|
'Content-Type': 'application/json',
|
|
@@ -86,24 +106,29 @@ export const agentsUpdate = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
86
106
|
});
|
|
87
107
|
|
|
88
108
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* Revokes an email trigger alias for one agent.
|
|
109
|
+
* Run automation example
|
|
92
110
|
*/
|
|
93
|
-
export const
|
|
111
|
+
export const automationsExamplesRun = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesRunData, ThrowOnError>) => (options.client ?? client).post<AutomationsExamplesRunResponses, AutomationsExamplesRunErrors, ThrowOnError>({
|
|
94
112
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
95
|
-
url: '/api/v1/
|
|
113
|
+
url: '/api/v1/automations/{id}/examples/{exampleId}/run',
|
|
96
114
|
...options
|
|
97
115
|
});
|
|
98
116
|
|
|
99
117
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* Updates an email trigger alias for one agent.
|
|
118
|
+
* List automation examples
|
|
103
119
|
*/
|
|
104
|
-
export const
|
|
120
|
+
export const automationsExamplesList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesListData, ThrowOnError>) => (options.client ?? client).get<AutomationsExamplesListResponses, AutomationsExamplesListErrors, ThrowOnError>({
|
|
105
121
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
106
|
-
url: '/api/v1/
|
|
122
|
+
url: '/api/v1/automations/{id}/examples',
|
|
123
|
+
...options
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Create automation example
|
|
128
|
+
*/
|
|
129
|
+
export const automationsExamplesCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExamplesCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsExamplesCreateResponses, AutomationsExamplesCreateErrors, ThrowOnError>({
|
|
130
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
131
|
+
url: '/api/v1/automations/{id}/examples',
|
|
107
132
|
...options,
|
|
108
133
|
headers: {
|
|
109
134
|
'Content-Type': 'application/json',
|
|
@@ -112,24 +137,20 @@ export const agentsTriggersEmailUpdateAlias = <ThrowOnError extends boolean = fa
|
|
|
112
137
|
});
|
|
113
138
|
|
|
114
139
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* Returns email trigger configuration and aliases for one agent.
|
|
140
|
+
* List automation experiments
|
|
118
141
|
*/
|
|
119
|
-
export const
|
|
142
|
+
export const automationsExperimentsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsListData, ThrowOnError>) => (options.client ?? client).get<AutomationsExperimentsListResponses, AutomationsExperimentsListErrors, ThrowOnError>({
|
|
120
143
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
121
|
-
url: '/api/v1/
|
|
144
|
+
url: '/api/v1/automations/{id}/experiments',
|
|
122
145
|
...options
|
|
123
146
|
});
|
|
124
147
|
|
|
125
148
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* Enables or disables the email trigger for one agent.
|
|
149
|
+
* Create automation experiment
|
|
129
150
|
*/
|
|
130
|
-
export const
|
|
151
|
+
export const automationsExperimentsCreate = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCreateData, ThrowOnError>) => (options.client ?? client).post<AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateErrors, ThrowOnError>({
|
|
131
152
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
132
|
-
url: '/api/v1/
|
|
153
|
+
url: '/api/v1/automations/{id}/experiments',
|
|
133
154
|
...options,
|
|
134
155
|
headers: {
|
|
135
156
|
'Content-Type': 'application/json',
|
|
@@ -138,79 +159,116 @@ export const agentsTriggersEmailUpdate = <ThrowOnError extends boolean = false>(
|
|
|
138
159
|
});
|
|
139
160
|
|
|
140
161
|
/**
|
|
141
|
-
*
|
|
162
|
+
* Cancel automation experiment
|
|
163
|
+
*/
|
|
164
|
+
export const automationsExperimentsCancel = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsCancelData, ThrowOnError>) => (options.client ?? client).post<AutomationsExperimentsCancelResponses, AutomationsExperimentsCancelErrors, ThrowOnError>({
|
|
165
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
166
|
+
url: '/api/v1/automations/{id}/experiments/{experimentId}/cancel',
|
|
167
|
+
...options
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Get automation experiment
|
|
172
|
+
*/
|
|
173
|
+
export const automationsExperimentsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsExperimentsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsExperimentsGetResponses, AutomationsExperimentsGetErrors, ThrowOnError>({
|
|
174
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
175
|
+
url: '/api/v1/automations/{id}/experiments/{experimentId}',
|
|
176
|
+
...options
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Get automation
|
|
142
181
|
*
|
|
143
|
-
*
|
|
182
|
+
* Get one runnable workflow or agent automation by id or typed alias.
|
|
144
183
|
*/
|
|
145
|
-
export const
|
|
184
|
+
export const automationsGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsGetResponses, AutomationsGetErrors, ThrowOnError>({
|
|
146
185
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
147
|
-
url: '/api/v1/
|
|
148
|
-
...options
|
|
149
|
-
headers: {
|
|
150
|
-
'Content-Type': 'application/json',
|
|
151
|
-
...options.headers
|
|
152
|
-
}
|
|
186
|
+
url: '/api/v1/automations/{id}',
|
|
187
|
+
...options
|
|
153
188
|
});
|
|
154
189
|
|
|
155
190
|
/**
|
|
156
|
-
*
|
|
191
|
+
* Get automation triggers
|
|
157
192
|
*
|
|
158
|
-
*
|
|
193
|
+
* Read trigger state for a workflow or agent automation. Trigger mutation is not public v1.
|
|
159
194
|
*/
|
|
160
|
-
export const
|
|
195
|
+
export const automationsTriggersGet = <ThrowOnError extends boolean = false>(options: Options<AutomationsTriggersGetData, ThrowOnError>) => (options.client ?? client).get<AutomationsTriggersGetResponses, AutomationsTriggersGetErrors, ThrowOnError>({
|
|
161
196
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
162
|
-
url: '/api/v1/
|
|
197
|
+
url: '/api/v1/automations/{id}/triggers',
|
|
163
198
|
...options
|
|
164
199
|
});
|
|
165
200
|
|
|
166
201
|
/**
|
|
167
|
-
* List
|
|
202
|
+
* List automation versions
|
|
168
203
|
*
|
|
169
|
-
* List
|
|
204
|
+
* List versions for a workflow or agent automation through one read-only route.
|
|
170
205
|
*/
|
|
171
|
-
export const
|
|
206
|
+
export const automationsVersionsList = <ThrowOnError extends boolean = false>(options: Options<AutomationsVersionsListData, ThrowOnError>) => (options.client ?? client).get<AutomationsVersionsListResponses, AutomationsVersionsListErrors, ThrowOnError>({
|
|
172
207
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
173
|
-
url: '/api/v1/
|
|
208
|
+
url: '/api/v1/automations/{id}/versions',
|
|
174
209
|
...options
|
|
175
210
|
});
|
|
176
211
|
|
|
177
212
|
/**
|
|
178
|
-
*
|
|
213
|
+
* List automations
|
|
179
214
|
*
|
|
180
|
-
*
|
|
215
|
+
* List runnable workflow and agent automations in one collection.
|
|
181
216
|
*/
|
|
182
|
-
export const
|
|
217
|
+
export const automationsList = <ThrowOnError extends boolean = false>(options?: Options<AutomationsListData, ThrowOnError>) => (options?.client ?? client).get<AutomationsListResponses, AutomationsListErrors, ThrowOnError>({
|
|
183
218
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
184
|
-
url: '/api/v1/
|
|
185
|
-
...options
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
219
|
+
url: '/api/v1/automations',
|
|
220
|
+
...options
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Download file content
|
|
225
|
+
*
|
|
226
|
+
* Download bytes for a reusable uploaded file.
|
|
227
|
+
*/
|
|
228
|
+
export const filesContentGet = <ThrowOnError extends boolean = false>(options: Options<FilesContentGetData, ThrowOnError>) => (options.client ?? client).get<FilesContentGetResponses, FilesContentGetErrors, ThrowOnError>({
|
|
229
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
230
|
+
url: '/api/v1/files/{id}/content',
|
|
231
|
+
...options
|
|
190
232
|
});
|
|
191
233
|
|
|
192
234
|
/**
|
|
193
|
-
*
|
|
235
|
+
* Delete file
|
|
194
236
|
*
|
|
195
|
-
*
|
|
237
|
+
* Delete a reusable uploaded file. Historical run and dataset snapshots are separate artifacts.
|
|
196
238
|
*/
|
|
197
|
-
export const
|
|
239
|
+
export const filesDelete = <ThrowOnError extends boolean = false>(options: Options<FilesDeleteData, ThrowOnError>) => (options.client ?? client).delete<FilesDeleteResponses, FilesDeleteErrors, ThrowOnError>({
|
|
198
240
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
199
|
-
url: '/api/v1/
|
|
241
|
+
url: '/api/v1/files/{id}',
|
|
200
242
|
...options
|
|
201
243
|
});
|
|
202
244
|
|
|
203
245
|
/**
|
|
204
|
-
*
|
|
246
|
+
* Get file metadata
|
|
205
247
|
*
|
|
206
|
-
*
|
|
248
|
+
* Get metadata for a reusable uploaded file.
|
|
207
249
|
*/
|
|
208
|
-
export const
|
|
250
|
+
export const filesGet = <ThrowOnError extends boolean = false>(options: Options<FilesGetData, ThrowOnError>) => (options.client ?? client).get<FilesGetResponses, FilesGetErrors, ThrowOnError>({
|
|
209
251
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
210
|
-
url: '/api/v1/
|
|
252
|
+
url: '/api/v1/files/{id}',
|
|
211
253
|
...options
|
|
212
254
|
});
|
|
213
255
|
|
|
256
|
+
/**
|
|
257
|
+
* Upload file
|
|
258
|
+
*
|
|
259
|
+
* Upload a reusable file that can later be referenced by run inputs or dataset examples.
|
|
260
|
+
*/
|
|
261
|
+
export const filesCreate = <ThrowOnError extends boolean = false>(options: Options<FilesCreateData, ThrowOnError>) => (options.client ?? client).post<FilesCreateResponses, FilesCreateErrors, ThrowOnError>({
|
|
262
|
+
...formDataBodySerializer,
|
|
263
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
264
|
+
url: '/api/v1/files',
|
|
265
|
+
...options,
|
|
266
|
+
headers: {
|
|
267
|
+
'Content-Type': null,
|
|
268
|
+
...options.headers
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
|
|
214
272
|
/**
|
|
215
273
|
* List runs
|
|
216
274
|
*
|
|
@@ -271,87 +329,25 @@ export const runsCancel = <ThrowOnError extends boolean = false>(options: Option
|
|
|
271
329
|
});
|
|
272
330
|
|
|
273
331
|
/**
|
|
274
|
-
*
|
|
275
|
-
*/
|
|
276
|
-
export const runsComparisonGet = <ThrowOnError extends boolean = false>(options: Options<RunsComparisonGetData, ThrowOnError>) => (options.client ?? client).get<RunsComparisonGetResponses, RunsComparisonGetErrors, ThrowOnError>({
|
|
277
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
278
|
-
url: '/api/v1/runs/{id}/comparison',
|
|
279
|
-
...options
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Connect to live run
|
|
332
|
+
* List run eval results
|
|
284
333
|
*/
|
|
285
|
-
export const
|
|
334
|
+
export const runsEvalResultsList = <ThrowOnError extends boolean = false>(options: Options<RunsEvalResultsListData, ThrowOnError>) => (options.client ?? client).get<RunsEvalResultsListResponses, RunsEvalResultsListErrors, ThrowOnError>({
|
|
286
335
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
287
|
-
url: '/api/v1/runs/{id}/
|
|
336
|
+
url: '/api/v1/runs/{id}/eval-results',
|
|
288
337
|
...options
|
|
289
338
|
});
|
|
290
339
|
|
|
291
340
|
/**
|
|
292
|
-
*
|
|
341
|
+
* List run events
|
|
293
342
|
*
|
|
294
|
-
*
|
|
295
|
-
*/
|
|
296
|
-
export const runsDefinitionGet = <ThrowOnError extends boolean = false>(options: Options<RunsDefinitionGetData, ThrowOnError>) => (options.client ?? client).get<RunsDefinitionGetResponses, RunsDefinitionGetErrors, ThrowOnError>({
|
|
297
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
298
|
-
url: '/api/v1/runs/{id}/definition',
|
|
299
|
-
...options
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Delete expected artifact file
|
|
304
|
-
*/
|
|
305
|
-
export const runsExpectedFileDelete = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedFileDeleteData, ThrowOnError>) => (options.client ?? client).delete<RunsExpectedFileDeleteResponses, RunsExpectedFileDeleteErrors, ThrowOnError>({
|
|
306
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
307
|
-
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
308
|
-
...options
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Download expected artifact file
|
|
343
|
+
* List a stable chronological lifecycle timeline for a run.
|
|
313
344
|
*/
|
|
314
|
-
export const
|
|
345
|
+
export const runsEventsList = <ThrowOnError extends boolean = false>(options: Options<RunsEventsListData, ThrowOnError>) => (options.client ?? client).get<RunsEventsListResponses, RunsEventsListErrors, ThrowOnError>({
|
|
315
346
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
316
|
-
url: '/api/v1/runs/{id}/
|
|
347
|
+
url: '/api/v1/runs/{id}/events',
|
|
317
348
|
...options
|
|
318
349
|
});
|
|
319
350
|
|
|
320
|
-
/**
|
|
321
|
-
* Rename expected artifact file
|
|
322
|
-
*/
|
|
323
|
-
export const runsExpectedFileUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedFileUpdateData, ThrowOnError>) => (options.client ?? client).patch<RunsExpectedFileUpdateResponses, RunsExpectedFileUpdateErrors, ThrowOnError>({
|
|
324
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
325
|
-
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
326
|
-
...options,
|
|
327
|
-
headers: {
|
|
328
|
-
'Content-Type': 'application/json',
|
|
329
|
-
...options.headers
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Get run expected artifacts
|
|
335
|
-
*/
|
|
336
|
-
export const runsExpectedGet = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedGetData, ThrowOnError>) => (options.client ?? client).get<RunsExpectedGetResponses, RunsExpectedGetErrors, ThrowOnError>({
|
|
337
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
338
|
-
url: '/api/v1/runs/{id}/expected',
|
|
339
|
-
...options
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Create or update expected artifacts
|
|
344
|
-
*/
|
|
345
|
-
export const runsExpectedCreate = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedCreateData, ThrowOnError>) => (options.client ?? client).post<RunsExpectedCreateResponses, RunsExpectedCreateErrors, ThrowOnError>({
|
|
346
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
347
|
-
url: '/api/v1/runs/{id}/expected',
|
|
348
|
-
...options,
|
|
349
|
-
headers: {
|
|
350
|
-
'Content-Type': 'application/json',
|
|
351
|
-
...options.headers
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
|
|
355
351
|
/**
|
|
356
352
|
* Clear run feedback
|
|
357
353
|
*/
|
|
@@ -373,7 +369,7 @@ export const runsFeedbackGet = <ThrowOnError extends boolean = false>(options: O
|
|
|
373
369
|
/**
|
|
374
370
|
* Update run feedback
|
|
375
371
|
*/
|
|
376
|
-
export const runsFeedbackUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsFeedbackUpdateData, ThrowOnError>) => (options.client ?? client).
|
|
372
|
+
export const runsFeedbackUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsFeedbackUpdateData, ThrowOnError>) => (options.client ?? client).put<RunsFeedbackUpdateResponses, RunsFeedbackUpdateErrors, ThrowOnError>({
|
|
377
373
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
378
374
|
url: '/api/v1/runs/{id}/feedback',
|
|
379
375
|
...options,
|
|
@@ -384,48 +380,14 @@ export const runsFeedbackUpdate = <ThrowOnError extends boolean = false>(options
|
|
|
384
380
|
});
|
|
385
381
|
|
|
386
382
|
/**
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
* Download agent run output files as a zip.
|
|
390
|
-
*/
|
|
391
|
-
export const runsFilesZipGet = <ThrowOnError extends boolean = false>(options: Options<RunsFilesZipGetData, ThrowOnError>) => (options.client ?? client).get<RunsFilesZipGetResponses, RunsFilesZipGetErrors, ThrowOnError>({
|
|
392
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
393
|
-
url: '/api/v1/runs/{id}/files-zip',
|
|
394
|
-
...options
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Delete run input file
|
|
399
|
-
*/
|
|
400
|
-
export const runsFilesDelete = <ThrowOnError extends boolean = false>(options: Options<RunsFilesDeleteData, ThrowOnError>) => (options.client ?? client).delete<RunsFilesDeleteResponses, RunsFilesDeleteErrors, ThrowOnError>({
|
|
401
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
402
|
-
url: '/api/v1/runs/{id}/files/{fileId}',
|
|
403
|
-
...options
|
|
404
|
-
});
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* List run files
|
|
408
|
-
*
|
|
409
|
-
* List workflow run input and output file rows.
|
|
383
|
+
* Promote a run to a dataset example
|
|
410
384
|
*/
|
|
411
|
-
export const
|
|
412
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
413
|
-
url: '/api/v1/runs/{id}/files',
|
|
414
|
-
...options
|
|
415
|
-
});
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Upload run input file
|
|
419
|
-
*
|
|
420
|
-
* Upload a workflow run input file before execution starts.
|
|
421
|
-
*/
|
|
422
|
-
export const runsFilesUpload = <ThrowOnError extends boolean = false>(options: Options<RunsFilesUploadData, ThrowOnError>) => (options.client ?? client).post<RunsFilesUploadResponses, RunsFilesUploadErrors, ThrowOnError>({
|
|
423
|
-
...formDataBodySerializer,
|
|
385
|
+
export const runsPromote = <ThrowOnError extends boolean = false>(options: Options<RunsPromoteData, ThrowOnError>) => (options.client ?? client).post<RunsPromoteResponses, RunsPromoteErrors, ThrowOnError>({
|
|
424
386
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
425
|
-
url: '/api/v1/runs/{id}/
|
|
387
|
+
url: '/api/v1/runs/{id}/promote',
|
|
426
388
|
...options,
|
|
427
389
|
headers: {
|
|
428
|
-
'Content-Type':
|
|
390
|
+
'Content-Type': 'application/json',
|
|
429
391
|
...options.headers
|
|
430
392
|
}
|
|
431
393
|
});
|
|
@@ -453,117 +415,32 @@ export const runsGet = <ThrowOnError extends boolean = false>(options: Options<R
|
|
|
453
415
|
});
|
|
454
416
|
|
|
455
417
|
/**
|
|
456
|
-
*
|
|
457
|
-
*/
|
|
458
|
-
export const runsTraceGet = <ThrowOnError extends boolean = false>(options: Options<RunsTraceGetData, ThrowOnError>) => (options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
|
|
459
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
460
|
-
url: '/api/v1/runs/{id}/trace',
|
|
461
|
-
...options
|
|
462
|
-
});
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Preview a source lockfile
|
|
466
|
-
*
|
|
467
|
-
* Resolves a package ref and returns the would-be eigenpal.lock without enqueueing or writing runtime artifacts.
|
|
468
|
-
*/
|
|
469
|
-
export const sourceLockfilePreview = <ThrowOnError extends boolean = false>(options: Options<SourceLockfilePreviewData, ThrowOnError>) => (options.client ?? client).get<SourceLockfilePreviewResponses, SourceLockfilePreviewErrors, ThrowOnError>({
|
|
470
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
471
|
-
url: '/api/v1/source/lockfile',
|
|
472
|
-
...options
|
|
473
|
-
});
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Preview a raw Git source file
|
|
477
|
-
*
|
|
478
|
-
* Reads a raw file from the organization Git repository for metadata previews.
|
|
479
|
-
*/
|
|
480
|
-
export const sourceRaw = <ThrowOnError extends boolean = false>(options: Options<SourceRawData, ThrowOnError>) => (options.client ?? client).get<SourceRawResponses, SourceRawErrors, ThrowOnError>({
|
|
481
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
482
|
-
url: '/api/v1/source/raw',
|
|
483
|
-
...options
|
|
484
|
-
});
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* List Git source package releases
|
|
488
|
-
*
|
|
489
|
-
* Lists package-scoped Git release tags, or returns one exact version when requested.
|
|
490
|
-
*/
|
|
491
|
-
export const sourceReleases = <ThrowOnError extends boolean = false>(options: Options<SourceReleasesData, ThrowOnError>) => (options.client ?? client).get<SourceReleasesResponses, SourceReleasesErrors, ThrowOnError>({
|
|
492
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
493
|
-
url: '/api/v1/source/releases',
|
|
494
|
-
...options
|
|
495
|
-
});
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* Get organization Git source repository
|
|
499
|
-
*
|
|
500
|
-
* Returns the authenticated organization Git remote used by hidden source CLI commands.
|
|
501
|
-
*/
|
|
502
|
-
export const sourceRepository = <ThrowOnError extends boolean = false>(options?: Options<SourceRepositoryData, ThrowOnError>) => (options?.client ?? client).get<SourceRepositoryResponses, SourceRepositoryErrors, ThrowOnError>({
|
|
503
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
504
|
-
url: '/api/v1/source/repository',
|
|
505
|
-
...options
|
|
506
|
-
});
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* Decrypt a Git-backed source secret
|
|
418
|
+
* List run steps
|
|
510
419
|
*
|
|
511
|
-
*
|
|
420
|
+
* List workflow steps or an agent-compatible execution step summary for a run.
|
|
512
421
|
*/
|
|
513
|
-
export const
|
|
422
|
+
export const runsStepsList = <ThrowOnError extends boolean = false>(options: Options<RunsStepsListData, ThrowOnError>) => (options.client ?? client).get<RunsStepsListResponses, RunsStepsListErrors, ThrowOnError>({
|
|
514
423
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
515
|
-
url: '/api/v1/
|
|
516
|
-
...options,
|
|
517
|
-
headers: {
|
|
518
|
-
'Content-Type': 'application/json',
|
|
519
|
-
...options.headers
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* Encrypt a Git-backed source secret
|
|
525
|
-
*
|
|
526
|
-
* 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.
|
|
527
|
-
*/
|
|
528
|
-
export const sourceSecretsEncrypt = <ThrowOnError extends boolean = false>(options: Options<SourceSecretsEncryptData, ThrowOnError>) => (options.client ?? client).post<SourceSecretsEncryptResponses, SourceSecretsEncryptErrors, ThrowOnError>({
|
|
529
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
530
|
-
url: '/api/v1/source/secrets/encrypt',
|
|
531
|
-
...options,
|
|
532
|
-
headers: {
|
|
533
|
-
'Content-Type': 'application/json',
|
|
534
|
-
...options.headers
|
|
535
|
-
}
|
|
536
|
-
});
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* Get a workflow by id
|
|
540
|
-
*
|
|
541
|
-
* Get a workflow by id, including current YAML.
|
|
542
|
-
*/
|
|
543
|
-
export const workflowsGet = <ThrowOnError extends boolean = false>(options: Options<WorkflowsGetData, ThrowOnError>) => (options.client ?? client).get<WorkflowsGetResponses, WorkflowsGetErrors, ThrowOnError>({
|
|
544
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
545
|
-
url: '/api/v1/workflows/{id}',
|
|
424
|
+
url: '/api/v1/runs/{id}/steps',
|
|
546
425
|
...options
|
|
547
426
|
});
|
|
548
427
|
|
|
549
428
|
/**
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
* List published workflow versions.
|
|
429
|
+
* Get run trace
|
|
553
430
|
*/
|
|
554
|
-
export const
|
|
431
|
+
export const runsTraceGet = <ThrowOnError extends boolean = false>(options: Options<RunsTraceGetData, ThrowOnError>) => (options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
|
|
555
432
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
556
|
-
url: '/api/v1/
|
|
433
|
+
url: '/api/v1/runs/{id}/trace',
|
|
557
434
|
...options
|
|
558
435
|
});
|
|
559
436
|
|
|
560
437
|
/**
|
|
561
|
-
*
|
|
438
|
+
* Get run usage
|
|
562
439
|
*
|
|
563
|
-
*
|
|
440
|
+
* Get token, credit, duration, and execution usage for a run.
|
|
564
441
|
*/
|
|
565
|
-
export const
|
|
442
|
+
export const runsUsageGet = <ThrowOnError extends boolean = false>(options: Options<RunsUsageGetData, ThrowOnError>) => (options.client ?? client).get<RunsUsageGetResponses, RunsUsageGetErrors, ThrowOnError>({
|
|
566
443
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
567
|
-
url: '/api/v1/
|
|
444
|
+
url: '/api/v1/runs/{id}/usage',
|
|
568
445
|
...options
|
|
569
446
|
});
|