@eigenpal/sdk 0.6.17 → 0.7.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 +10 -0
- package/README.md +18 -11
- package/package.json +1 -1
- package/src/client.ts +76 -76
- package/src/generated/client/client.gen.ts +1 -1
- package/src/generated/client/index.ts +1 -1
- package/src/generated/client/types.gen.ts +9 -6
- package/src/generated/client/utils.gen.ts +5 -5
- package/src/generated/client.gen.ts +2 -6
- package/src/generated/core/auth.gen.ts +1 -1
- package/src/generated/core/pathSerializer.gen.ts +2 -2
- package/src/generated/core/utils.gen.ts +3 -3
- package/src/generated/index.ts +2 -304
- package/src/generated/sdk.gen.ts +220 -556
- package/src/generated/types.gen.ts +2616 -2226
- package/src/index.ts +7 -12
- package/src/lib/files.ts +27 -14
- package/src/resources/executions.ts +26 -28
- package/src/resources/runs.ts +110 -25
- package/src/telemetry.ts +1 -1
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,164 +1,21 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
type Client,
|
|
5
|
-
formDataBodySerializer,
|
|
6
|
-
type Options as Options2,
|
|
7
|
-
type TDataShape,
|
|
8
|
-
} from './client';
|
|
3
|
+
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
|
|
9
4
|
import { client } from './client.gen';
|
|
10
|
-
import type {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
AgentsListData,
|
|
25
|
-
AgentsListErrors,
|
|
26
|
-
AgentsListResponses,
|
|
27
|
-
AgentsTriggersEmailCreateAliasData,
|
|
28
|
-
AgentsTriggersEmailCreateAliasErrors,
|
|
29
|
-
AgentsTriggersEmailCreateAliasResponses,
|
|
30
|
-
AgentsTriggersEmailDeleteAliasData,
|
|
31
|
-
AgentsTriggersEmailDeleteAliasErrors,
|
|
32
|
-
AgentsTriggersEmailDeleteAliasResponses,
|
|
33
|
-
AgentsTriggersEmailGetData,
|
|
34
|
-
AgentsTriggersEmailGetErrors,
|
|
35
|
-
AgentsTriggersEmailGetResponses,
|
|
36
|
-
AgentsTriggersEmailListData,
|
|
37
|
-
AgentsTriggersEmailListErrors,
|
|
38
|
-
AgentsTriggersEmailListResponses,
|
|
39
|
-
AgentsTriggersEmailUpdateAliasData,
|
|
40
|
-
AgentsTriggersEmailUpdateAliasErrors,
|
|
41
|
-
AgentsTriggersEmailUpdateAliasResponses,
|
|
42
|
-
AgentsTriggersEmailUpdateData,
|
|
43
|
-
AgentsTriggersEmailUpdateErrors,
|
|
44
|
-
AgentsTriggersEmailUpdateResponses,
|
|
45
|
-
AgentsUpdateData,
|
|
46
|
-
AgentsUpdateErrors,
|
|
47
|
-
AgentsUpdateResponses,
|
|
48
|
-
AgentsVersionsListData,
|
|
49
|
-
AgentsVersionsListErrors,
|
|
50
|
-
AgentsVersionsListResponses,
|
|
51
|
-
AutomationsSyncData,
|
|
52
|
-
AutomationsSyncErrors,
|
|
53
|
-
AutomationsSyncResponses,
|
|
54
|
-
RunsArtifactGetData,
|
|
55
|
-
RunsArtifactGetErrors,
|
|
56
|
-
RunsArtifactGetResponses,
|
|
57
|
-
RunsCancelData,
|
|
58
|
-
RunsCancelErrors,
|
|
59
|
-
RunsCancelResponses,
|
|
60
|
-
RunsComparisonGetData,
|
|
61
|
-
RunsComparisonGetErrors,
|
|
62
|
-
RunsComparisonGetResponses,
|
|
63
|
-
RunsConnectData,
|
|
64
|
-
RunsConnectErrors,
|
|
65
|
-
RunsConnectResponses,
|
|
66
|
-
RunsExpectedCreateData,
|
|
67
|
-
RunsExpectedCreateErrors,
|
|
68
|
-
RunsExpectedCreateResponses,
|
|
69
|
-
RunsExpectedFileDeleteData,
|
|
70
|
-
RunsExpectedFileDeleteErrors,
|
|
71
|
-
RunsExpectedFileDeleteResponses,
|
|
72
|
-
RunsExpectedFileGetData,
|
|
73
|
-
RunsExpectedFileGetErrors,
|
|
74
|
-
RunsExpectedFileGetResponses,
|
|
75
|
-
RunsExpectedFileUpdateData,
|
|
76
|
-
RunsExpectedFileUpdateErrors,
|
|
77
|
-
RunsExpectedFileUpdateResponses,
|
|
78
|
-
RunsExpectedGetData,
|
|
79
|
-
RunsExpectedGetErrors,
|
|
80
|
-
RunsExpectedGetResponses,
|
|
81
|
-
RunsFeedbackClearData,
|
|
82
|
-
RunsFeedbackClearErrors,
|
|
83
|
-
RunsFeedbackClearResponses,
|
|
84
|
-
RunsFeedbackGetData,
|
|
85
|
-
RunsFeedbackGetErrors,
|
|
86
|
-
RunsFeedbackGetResponses,
|
|
87
|
-
RunsFeedbackUpdateData,
|
|
88
|
-
RunsFeedbackUpdateErrors,
|
|
89
|
-
RunsFeedbackUpdateResponses,
|
|
90
|
-
RunsFilesDeleteData,
|
|
91
|
-
RunsFilesDeleteErrors,
|
|
92
|
-
RunsFilesDeleteResponses,
|
|
93
|
-
RunsFilesListData,
|
|
94
|
-
RunsFilesListErrors,
|
|
95
|
-
RunsFilesListResponses,
|
|
96
|
-
RunsFilesUploadData,
|
|
97
|
-
RunsFilesUploadErrors,
|
|
98
|
-
RunsFilesUploadResponses,
|
|
99
|
-
RunsFilesZipGetData,
|
|
100
|
-
RunsFilesZipGetErrors,
|
|
101
|
-
RunsFilesZipGetResponses,
|
|
102
|
-
RunsGetData,
|
|
103
|
-
RunsGetErrors,
|
|
104
|
-
RunsGetResponses,
|
|
105
|
-
RunsListData,
|
|
106
|
-
RunsListErrors,
|
|
107
|
-
RunsListResponses,
|
|
108
|
-
RunsRerunData,
|
|
109
|
-
RunsRerunErrors,
|
|
110
|
-
RunsRerunResponses,
|
|
111
|
-
RunStartWithTargetData,
|
|
112
|
-
RunStartWithTargetErrors,
|
|
113
|
-
RunStartWithTargetResponses,
|
|
114
|
-
RunsTraceGetData,
|
|
115
|
-
RunsTraceGetErrors,
|
|
116
|
-
RunsTraceGetResponses,
|
|
117
|
-
SourceLockfilePreviewData,
|
|
118
|
-
SourceLockfilePreviewErrors,
|
|
119
|
-
SourceLockfilePreviewResponses,
|
|
120
|
-
SourceRawData,
|
|
121
|
-
SourceRawErrors,
|
|
122
|
-
SourceRawResponses,
|
|
123
|
-
SourceReleasesData,
|
|
124
|
-
SourceReleasesErrors,
|
|
125
|
-
SourceReleasesResponses,
|
|
126
|
-
SourceRepositoryData,
|
|
127
|
-
SourceRepositoryErrors,
|
|
128
|
-
SourceRepositoryResponses,
|
|
129
|
-
SourceSecretsDecryptData,
|
|
130
|
-
SourceSecretsDecryptErrors,
|
|
131
|
-
SourceSecretsDecryptResponses,
|
|
132
|
-
SourceSecretsEncryptData,
|
|
133
|
-
SourceSecretsEncryptErrors,
|
|
134
|
-
SourceSecretsEncryptResponses,
|
|
135
|
-
WorkflowsGetData,
|
|
136
|
-
WorkflowsGetErrors,
|
|
137
|
-
WorkflowsGetResponses,
|
|
138
|
-
WorkflowsListData,
|
|
139
|
-
WorkflowsListErrors,
|
|
140
|
-
WorkflowsListResponses,
|
|
141
|
-
WorkflowsVersionsListData,
|
|
142
|
-
WorkflowsVersionsListErrors,
|
|
143
|
-
WorkflowsVersionsListResponses,
|
|
144
|
-
} from './types.gen';
|
|
145
|
-
|
|
146
|
-
export type Options<
|
|
147
|
-
TData extends TDataShape = TDataShape,
|
|
148
|
-
ThrowOnError extends boolean = boolean,
|
|
149
|
-
TResponse = unknown,
|
|
150
|
-
> = Options2<TData, ThrowOnError, TResponse> & {
|
|
151
|
-
/**
|
|
152
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
153
|
-
* individual options. This might be also useful if you want to implement a
|
|
154
|
-
* custom client.
|
|
155
|
-
*/
|
|
156
|
-
client?: Client;
|
|
157
|
-
/**
|
|
158
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
159
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
160
|
-
*/
|
|
161
|
-
meta?: Record<string, unknown>;
|
|
5
|
+
import type { AgentsCreateData, AgentsCreateErrors, AgentsCreateResponses, AgentsFilesListOrGetData, AgentsFilesListOrGetErrors, AgentsFilesListOrGetResponses, AgentsFilesPutData, AgentsFilesPutErrors, AgentsFilesUploadBatchData, AgentsFilesUploadBatchErrors, AgentsGetData, AgentsGetErrors, AgentsGetResponses, AgentsListData, AgentsListErrors, AgentsListResponses, AgentsTriggersEmailCreateAliasData, AgentsTriggersEmailCreateAliasErrors, AgentsTriggersEmailCreateAliasResponses, AgentsTriggersEmailDeleteAliasData, AgentsTriggersEmailDeleteAliasErrors, AgentsTriggersEmailDeleteAliasResponses, AgentsTriggersEmailGetData, AgentsTriggersEmailGetErrors, AgentsTriggersEmailGetResponses, AgentsTriggersEmailListData, AgentsTriggersEmailListErrors, AgentsTriggersEmailListResponses, AgentsTriggersEmailUpdateAliasData, AgentsTriggersEmailUpdateAliasErrors, AgentsTriggersEmailUpdateAliasResponses, AgentsTriggersEmailUpdateData, AgentsTriggersEmailUpdateErrors, AgentsTriggersEmailUpdateResponses, AgentsUpdateData, AgentsUpdateErrors, AgentsUpdateResponses, AgentsVersionsListData, AgentsVersionsListErrors, AgentsVersionsListResponses, AutomationsSyncData, AutomationsSyncErrors, AutomationsSyncResponses, RunsArtifactsGetData, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListErrors, RunsArtifactsListResponses, RunsCancelData, RunsCancelErrors, RunsCancelResponses, RunsComparisonGetData, RunsComparisonGetErrors, RunsComparisonGetResponses, RunsConnectData, RunsConnectErrors, RunsConnectResponses, RunsDefinitionGetData, RunsDefinitionGetErrors, RunsDefinitionGetResponses, RunsExpectedCreateData, RunsExpectedCreateErrors, RunsExpectedCreateResponses, RunsExpectedFileDeleteData, RunsExpectedFileDeleteErrors, RunsExpectedFileDeleteResponses, RunsExpectedFileGetData, RunsExpectedFileGetErrors, RunsExpectedFileGetResponses, RunsExpectedFileUpdateData, RunsExpectedFileUpdateErrors, RunsExpectedFileUpdateResponses, RunsExpectedGetData, RunsExpectedGetErrors, RunsExpectedGetResponses, RunsFeedbackClearData, RunsFeedbackClearErrors, RunsFeedbackClearResponses, RunsFeedbackGetData, RunsFeedbackGetErrors, RunsFeedbackGetResponses, RunsFeedbackUpdateData, RunsFeedbackUpdateErrors, RunsFeedbackUpdateResponses, RunsFilesDeleteData, RunsFilesDeleteErrors, RunsFilesDeleteResponses, RunsFilesListData, RunsFilesListErrors, RunsFilesListResponses, RunsFilesUploadData, RunsFilesUploadErrors, RunsFilesUploadResponses, RunsFilesZipGetData, RunsFilesZipGetErrors, RunsFilesZipGetResponses, RunsGetData, RunsGetErrors, RunsGetResponses, RunsListData, RunsListErrors, RunsListResponses, RunsRerunData, RunsRerunErrors, RunsRerunResponses, RunsStartData, RunsStartErrors, RunsStartResponses, RunsTraceGetData, RunsTraceGetErrors, RunsTraceGetResponses, SourceLockfilePreviewData, SourceLockfilePreviewErrors, SourceLockfilePreviewResponses, SourceRawData, SourceRawErrors, SourceRawResponses, SourceReleasesData, SourceReleasesErrors, SourceReleasesResponses, SourceRepositoryData, SourceRepositoryErrors, SourceRepositoryResponses, SourceSecretsDecryptData, SourceSecretsDecryptErrors, SourceSecretsDecryptResponses, SourceSecretsEncryptData, SourceSecretsEncryptErrors, SourceSecretsEncryptResponses, WorkflowsGetData, WorkflowsGetErrors, WorkflowsGetResponses, WorkflowsListData, WorkflowsListErrors, WorkflowsListResponses, WorkflowsVersionsListData, WorkflowsVersionsListErrors, WorkflowsVersionsListResponses } from './types.gen';
|
|
6
|
+
|
|
7
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
8
|
+
/**
|
|
9
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
10
|
+
* individual options. This might be also useful if you want to implement a
|
|
11
|
+
* custom client.
|
|
12
|
+
*/
|
|
13
|
+
client?: Client;
|
|
14
|
+
/**
|
|
15
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
17
|
+
*/
|
|
18
|
+
meta?: Record<string, unknown>;
|
|
162
19
|
};
|
|
163
20
|
|
|
164
21
|
/**
|
|
@@ -166,738 +23,545 @@ export type Options<
|
|
|
166
23
|
*
|
|
167
24
|
* Lists or reads files from the agent Git package (`agents/{slug}/` on organization source). Runtime artifacts (runs, dataset) are not served here.
|
|
168
25
|
*/
|
|
169
|
-
export const agentsFilesListOrGet = <ThrowOnError extends boolean = false>(
|
|
170
|
-
options: Options<AgentsFilesListOrGetData, ThrowOnError>
|
|
171
|
-
) =>
|
|
172
|
-
(options.client ?? client).get<
|
|
173
|
-
AgentsFilesListOrGetResponses,
|
|
174
|
-
AgentsFilesListOrGetErrors,
|
|
175
|
-
ThrowOnError
|
|
176
|
-
>({
|
|
26
|
+
export const agentsFilesListOrGet = <ThrowOnError extends boolean = false>(options: Options<AgentsFilesListOrGetData, ThrowOnError>) => (options.client ?? client).get<AgentsFilesListOrGetResponses, AgentsFilesListOrGetErrors, ThrowOnError>({
|
|
177
27
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
178
28
|
url: '/api/v1/agents/{agentId}/files',
|
|
179
|
-
...options
|
|
180
|
-
|
|
29
|
+
...options
|
|
30
|
+
});
|
|
181
31
|
|
|
182
32
|
/**
|
|
183
33
|
* Upload agent files (deprecated)
|
|
184
34
|
*
|
|
185
35
|
* Agent source is Git-backed. Use Git push or the builder instead.
|
|
186
36
|
*/
|
|
187
|
-
export const agentsFilesUploadBatch = <ThrowOnError extends boolean = false>(
|
|
188
|
-
options: Options<AgentsFilesUploadBatchData, ThrowOnError>
|
|
189
|
-
) =>
|
|
190
|
-
(options.client ?? client).post<unknown, AgentsFilesUploadBatchErrors, ThrowOnError>({
|
|
37
|
+
export const agentsFilesUploadBatch = <ThrowOnError extends boolean = false>(options: Options<AgentsFilesUploadBatchData, ThrowOnError>) => (options.client ?? client).post<unknown, AgentsFilesUploadBatchErrors, ThrowOnError>({
|
|
191
38
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
192
39
|
url: '/api/v1/agents/{agentId}/files',
|
|
193
40
|
...options,
|
|
194
41
|
headers: {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
|
|
42
|
+
'Content-Type': 'application/json',
|
|
43
|
+
...options.headers
|
|
44
|
+
}
|
|
45
|
+
});
|
|
199
46
|
|
|
200
47
|
/**
|
|
201
48
|
* Upload one agent file (deprecated)
|
|
202
49
|
*
|
|
203
50
|
* Agent source is Git-backed. Use Git push or the builder instead.
|
|
204
51
|
*/
|
|
205
|
-
export const agentsFilesPut = <ThrowOnError extends boolean = false>(
|
|
206
|
-
options: Options<AgentsFilesPutData, ThrowOnError>
|
|
207
|
-
) =>
|
|
208
|
-
(options.client ?? client).put<unknown, AgentsFilesPutErrors, ThrowOnError>({
|
|
52
|
+
export const agentsFilesPut = <ThrowOnError extends boolean = false>(options: Options<AgentsFilesPutData, ThrowOnError>) => (options.client ?? client).put<unknown, AgentsFilesPutErrors, ThrowOnError>({
|
|
209
53
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
210
54
|
url: '/api/v1/agents/{agentId}/files',
|
|
211
55
|
...options,
|
|
212
56
|
headers: {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
57
|
+
'Content-Type': 'application/json',
|
|
58
|
+
...options.headers
|
|
59
|
+
}
|
|
60
|
+
});
|
|
217
61
|
|
|
218
62
|
/**
|
|
219
63
|
* Get an agent
|
|
220
64
|
*
|
|
221
65
|
* Returns one agent by id or slug.
|
|
222
66
|
*/
|
|
223
|
-
export const agentsGet = <ThrowOnError extends boolean = false>(
|
|
224
|
-
options: Options<AgentsGetData, ThrowOnError>
|
|
225
|
-
) =>
|
|
226
|
-
(options.client ?? client).get<AgentsGetResponses, AgentsGetErrors, ThrowOnError>({
|
|
67
|
+
export const agentsGet = <ThrowOnError extends boolean = false>(options: Options<AgentsGetData, ThrowOnError>) => (options.client ?? client).get<AgentsGetResponses, AgentsGetErrors, ThrowOnError>({
|
|
227
68
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
228
69
|
url: '/api/v1/agents/{agentId}',
|
|
229
|
-
...options
|
|
230
|
-
|
|
70
|
+
...options
|
|
71
|
+
});
|
|
231
72
|
|
|
232
73
|
/**
|
|
233
74
|
* Update an agent
|
|
234
75
|
*
|
|
235
76
|
* Updates mutable agent metadata and configuration.
|
|
236
77
|
*/
|
|
237
|
-
export const agentsUpdate = <ThrowOnError extends boolean = false>(
|
|
238
|
-
options: Options<AgentsUpdateData, ThrowOnError>
|
|
239
|
-
) =>
|
|
240
|
-
(options.client ?? client).patch<AgentsUpdateResponses, AgentsUpdateErrors, ThrowOnError>({
|
|
78
|
+
export const agentsUpdate = <ThrowOnError extends boolean = false>(options: Options<AgentsUpdateData, ThrowOnError>) => (options.client ?? client).patch<AgentsUpdateResponses, AgentsUpdateErrors, ThrowOnError>({
|
|
241
79
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
242
80
|
url: '/api/v1/agents/{agentId}',
|
|
243
81
|
...options,
|
|
244
82
|
headers: {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
83
|
+
'Content-Type': 'application/json',
|
|
84
|
+
...options.headers
|
|
85
|
+
}
|
|
86
|
+
});
|
|
249
87
|
|
|
250
88
|
/**
|
|
251
89
|
* Delete an agent email alias
|
|
252
90
|
*
|
|
253
91
|
* Revokes an email trigger alias for one agent.
|
|
254
92
|
*/
|
|
255
|
-
export const agentsTriggersEmailDeleteAlias = <ThrowOnError extends boolean = false>(
|
|
256
|
-
options: Options<AgentsTriggersEmailDeleteAliasData, ThrowOnError>
|
|
257
|
-
) =>
|
|
258
|
-
(options.client ?? client).delete<
|
|
259
|
-
AgentsTriggersEmailDeleteAliasResponses,
|
|
260
|
-
AgentsTriggersEmailDeleteAliasErrors,
|
|
261
|
-
ThrowOnError
|
|
262
|
-
>({
|
|
93
|
+
export const agentsTriggersEmailDeleteAlias = <ThrowOnError extends boolean = false>(options: Options<AgentsTriggersEmailDeleteAliasData, ThrowOnError>) => (options.client ?? client).delete<AgentsTriggersEmailDeleteAliasResponses, AgentsTriggersEmailDeleteAliasErrors, ThrowOnError>({
|
|
263
94
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
264
95
|
url: '/api/v1/agents/{agentId}/triggers/email/{emailId}',
|
|
265
|
-
...options
|
|
266
|
-
|
|
96
|
+
...options
|
|
97
|
+
});
|
|
267
98
|
|
|
268
99
|
/**
|
|
269
100
|
* Update an agent email alias
|
|
270
101
|
*
|
|
271
102
|
* Updates an email trigger alias for one agent.
|
|
272
103
|
*/
|
|
273
|
-
export const agentsTriggersEmailUpdateAlias = <ThrowOnError extends boolean = false>(
|
|
274
|
-
options: Options<AgentsTriggersEmailUpdateAliasData, ThrowOnError>
|
|
275
|
-
) =>
|
|
276
|
-
(options.client ?? client).patch<
|
|
277
|
-
AgentsTriggersEmailUpdateAliasResponses,
|
|
278
|
-
AgentsTriggersEmailUpdateAliasErrors,
|
|
279
|
-
ThrowOnError
|
|
280
|
-
>({
|
|
104
|
+
export const agentsTriggersEmailUpdateAlias = <ThrowOnError extends boolean = false>(options: Options<AgentsTriggersEmailUpdateAliasData, ThrowOnError>) => (options.client ?? client).patch<AgentsTriggersEmailUpdateAliasResponses, AgentsTriggersEmailUpdateAliasErrors, ThrowOnError>({
|
|
281
105
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
282
106
|
url: '/api/v1/agents/{agentId}/triggers/email/{emailId}',
|
|
283
107
|
...options,
|
|
284
108
|
headers: {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
109
|
+
'Content-Type': 'application/json',
|
|
110
|
+
...options.headers
|
|
111
|
+
}
|
|
112
|
+
});
|
|
289
113
|
|
|
290
114
|
/**
|
|
291
115
|
* Get an agent email trigger
|
|
292
116
|
*
|
|
293
117
|
* Returns email trigger configuration and aliases for one agent.
|
|
294
118
|
*/
|
|
295
|
-
export const agentsTriggersEmailGet = <ThrowOnError extends boolean = false>(
|
|
296
|
-
options: Options<AgentsTriggersEmailGetData, ThrowOnError>
|
|
297
|
-
) =>
|
|
298
|
-
(options.client ?? client).get<
|
|
299
|
-
AgentsTriggersEmailGetResponses,
|
|
300
|
-
AgentsTriggersEmailGetErrors,
|
|
301
|
-
ThrowOnError
|
|
302
|
-
>({
|
|
119
|
+
export const agentsTriggersEmailGet = <ThrowOnError extends boolean = false>(options: Options<AgentsTriggersEmailGetData, ThrowOnError>) => (options.client ?? client).get<AgentsTriggersEmailGetResponses, AgentsTriggersEmailGetErrors, ThrowOnError>({
|
|
303
120
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
304
121
|
url: '/api/v1/agents/{agentId}/triggers/email',
|
|
305
|
-
...options
|
|
306
|
-
|
|
122
|
+
...options
|
|
123
|
+
});
|
|
307
124
|
|
|
308
125
|
/**
|
|
309
126
|
* Update an agent email trigger
|
|
310
127
|
*
|
|
311
128
|
* Enables or disables the email trigger for one agent.
|
|
312
129
|
*/
|
|
313
|
-
export const agentsTriggersEmailUpdate = <ThrowOnError extends boolean = false>(
|
|
314
|
-
options: Options<AgentsTriggersEmailUpdateData, ThrowOnError>
|
|
315
|
-
) =>
|
|
316
|
-
(options.client ?? client).patch<
|
|
317
|
-
AgentsTriggersEmailUpdateResponses,
|
|
318
|
-
AgentsTriggersEmailUpdateErrors,
|
|
319
|
-
ThrowOnError
|
|
320
|
-
>({
|
|
130
|
+
export const agentsTriggersEmailUpdate = <ThrowOnError extends boolean = false>(options: Options<AgentsTriggersEmailUpdateData, ThrowOnError>) => (options.client ?? client).patch<AgentsTriggersEmailUpdateResponses, AgentsTriggersEmailUpdateErrors, ThrowOnError>({
|
|
321
131
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
322
132
|
url: '/api/v1/agents/{agentId}/triggers/email',
|
|
323
133
|
...options,
|
|
324
134
|
headers: {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
}
|
|
328
|
-
|
|
135
|
+
'Content-Type': 'application/json',
|
|
136
|
+
...options.headers
|
|
137
|
+
}
|
|
138
|
+
});
|
|
329
139
|
|
|
330
140
|
/**
|
|
331
141
|
* Create an agent email alias
|
|
332
142
|
*
|
|
333
143
|
* Creates an email trigger alias for one agent.
|
|
334
144
|
*/
|
|
335
|
-
export const agentsTriggersEmailCreateAlias = <ThrowOnError extends boolean = false>(
|
|
336
|
-
options: Options<AgentsTriggersEmailCreateAliasData, ThrowOnError>
|
|
337
|
-
) =>
|
|
338
|
-
(options.client ?? client).post<
|
|
339
|
-
AgentsTriggersEmailCreateAliasResponses,
|
|
340
|
-
AgentsTriggersEmailCreateAliasErrors,
|
|
341
|
-
ThrowOnError
|
|
342
|
-
>({
|
|
145
|
+
export const agentsTriggersEmailCreateAlias = <ThrowOnError extends boolean = false>(options: Options<AgentsTriggersEmailCreateAliasData, ThrowOnError>) => (options.client ?? client).post<AgentsTriggersEmailCreateAliasResponses, AgentsTriggersEmailCreateAliasErrors, ThrowOnError>({
|
|
343
146
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
344
147
|
url: '/api/v1/agents/{agentId}/triggers/email',
|
|
345
148
|
...options,
|
|
346
149
|
headers: {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
|
|
150
|
+
'Content-Type': 'application/json',
|
|
151
|
+
...options.headers
|
|
152
|
+
}
|
|
153
|
+
});
|
|
351
154
|
|
|
352
155
|
/**
|
|
353
156
|
* List agent Git versions
|
|
354
157
|
*
|
|
355
158
|
* Lists Git-backed release versions for an agent. Release notes are included when a matching legacy published-version message exists.
|
|
356
159
|
*/
|
|
357
|
-
export const agentsVersionsList = <ThrowOnError extends boolean = false>(
|
|
358
|
-
options: Options<AgentsVersionsListData, ThrowOnError>
|
|
359
|
-
) =>
|
|
360
|
-
(options.client ?? client).get<
|
|
361
|
-
AgentsVersionsListResponses,
|
|
362
|
-
AgentsVersionsListErrors,
|
|
363
|
-
ThrowOnError
|
|
364
|
-
>({
|
|
160
|
+
export const agentsVersionsList = <ThrowOnError extends boolean = false>(options: Options<AgentsVersionsListData, ThrowOnError>) => (options.client ?? client).get<AgentsVersionsListResponses, AgentsVersionsListErrors, ThrowOnError>({
|
|
365
161
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
366
162
|
url: '/api/v1/agents/{agentId}/versions',
|
|
367
|
-
...options
|
|
368
|
-
|
|
163
|
+
...options
|
|
164
|
+
});
|
|
369
165
|
|
|
370
166
|
/**
|
|
371
167
|
* List agents
|
|
372
168
|
*
|
|
373
169
|
* Returns agents the caller has access to, with pagination and basic execution stats. Accepts session cookies or API keys.
|
|
374
170
|
*/
|
|
375
|
-
export const agentsList = <ThrowOnError extends boolean = false>(
|
|
376
|
-
options?: Options<AgentsListData, ThrowOnError>
|
|
377
|
-
) =>
|
|
378
|
-
(options?.client ?? client).get<AgentsListResponses, AgentsListErrors, ThrowOnError>({
|
|
171
|
+
export const agentsList = <ThrowOnError extends boolean = false>(options?: Options<AgentsListData, ThrowOnError>) => (options?.client ?? client).get<AgentsListResponses, AgentsListErrors, ThrowOnError>({
|
|
379
172
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
380
173
|
url: '/api/v1/agents',
|
|
381
|
-
...options
|
|
382
|
-
|
|
174
|
+
...options
|
|
175
|
+
});
|
|
383
176
|
|
|
384
177
|
/**
|
|
385
178
|
* Create an agent
|
|
386
179
|
*
|
|
387
180
|
* Creates a new agent, registers it in the automation table, and scaffolds its Git source package. Accepts session cookies or API keys.
|
|
388
181
|
*/
|
|
389
|
-
export const agentsCreate = <ThrowOnError extends boolean = false>(
|
|
390
|
-
options: Options<AgentsCreateData, ThrowOnError>
|
|
391
|
-
) =>
|
|
392
|
-
(options.client ?? client).post<AgentsCreateResponses, AgentsCreateErrors, ThrowOnError>({
|
|
182
|
+
export const agentsCreate = <ThrowOnError extends boolean = false>(options: Options<AgentsCreateData, ThrowOnError>) => (options.client ?? client).post<AgentsCreateResponses, AgentsCreateErrors, ThrowOnError>({
|
|
393
183
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
394
184
|
url: '/api/v1/agents',
|
|
395
185
|
...options,
|
|
396
186
|
headers: {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
|
|
187
|
+
'Content-Type': 'application/json',
|
|
188
|
+
...options.headers
|
|
189
|
+
}
|
|
190
|
+
});
|
|
401
191
|
|
|
402
192
|
/**
|
|
403
193
|
* List agent email triggers
|
|
404
194
|
*
|
|
405
195
|
* Lists email trigger aliases for the authenticated organization.
|
|
406
196
|
*/
|
|
407
|
-
export const agentsTriggersEmailList = <ThrowOnError extends boolean = false>(
|
|
408
|
-
options?: Options<AgentsTriggersEmailListData, ThrowOnError>
|
|
409
|
-
) =>
|
|
410
|
-
(options?.client ?? client).get<
|
|
411
|
-
AgentsTriggersEmailListResponses,
|
|
412
|
-
AgentsTriggersEmailListErrors,
|
|
413
|
-
ThrowOnError
|
|
414
|
-
>({
|
|
197
|
+
export const agentsTriggersEmailList = <ThrowOnError extends boolean = false>(options?: Options<AgentsTriggersEmailListData, ThrowOnError>) => (options?.client ?? client).get<AgentsTriggersEmailListResponses, AgentsTriggersEmailListErrors, ThrowOnError>({
|
|
415
198
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
416
199
|
url: '/api/v1/agents/triggers/email',
|
|
417
|
-
...options
|
|
418
|
-
|
|
200
|
+
...options
|
|
201
|
+
});
|
|
419
202
|
|
|
420
203
|
/**
|
|
421
204
|
* Sync an automation from latest source
|
|
422
205
|
*
|
|
423
206
|
* Reconciles lightweight automation metadata from the latest released Git source package. This does not enqueue executions.
|
|
424
207
|
*/
|
|
425
|
-
export const automationsSync = <ThrowOnError extends boolean = false>(
|
|
426
|
-
options: Options<AutomationsSyncData, ThrowOnError>
|
|
427
|
-
) =>
|
|
428
|
-
(options.client ?? client).post<AutomationsSyncResponses, AutomationsSyncErrors, ThrowOnError>({
|
|
208
|
+
export const automationsSync = <ThrowOnError extends boolean = false>(options: Options<AutomationsSyncData, ThrowOnError>) => (options.client ?? client).post<AutomationsSyncResponses, AutomationsSyncErrors, ThrowOnError>({
|
|
429
209
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
430
210
|
url: '/api/v1/automations/{automation}/sync',
|
|
431
|
-
...options
|
|
432
|
-
|
|
211
|
+
...options
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* List runs
|
|
216
|
+
*
|
|
217
|
+
* Tenant-scoped, cursor-paginated feed of workflow and agent runs. Use type and source filters to scope to one runtime or resource.
|
|
218
|
+
*/
|
|
219
|
+
export const runsList = <ThrowOnError extends boolean = false>(options?: Options<RunsListData, ThrowOnError>) => (options?.client ?? client).get<RunsListResponses, RunsListErrors, ThrowOnError>({
|
|
220
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
221
|
+
url: '/api/v1/runs',
|
|
222
|
+
...options
|
|
223
|
+
});
|
|
433
224
|
|
|
434
225
|
/**
|
|
435
226
|
* Start a workflow or agent run
|
|
436
227
|
*
|
|
437
|
-
* Starts a run for a workflow or agent target.
|
|
228
|
+
* Starts a run for a workflow or agent target. JSON and multipart bodies share the same envelope: `{ target, input, files?, overrides?, metadata? }`. In JSON, `files` carries `{ fileId, filename, mimeType }` references. In multipart (`Content-Type: multipart/form-data`), send `input`, `overrides`, and `metadata` as JSON text parts and each file as `files.<fieldName>`. Legacy 0.5.12 shapes (`_json`, top-level file fields, `input._overrides`) remain accepted. Run provenance may be declared with the `X-Eigenpal-Trigger` header (`api` or `cli`).
|
|
438
229
|
*/
|
|
439
|
-
export const
|
|
440
|
-
options: Options<RunStartWithTargetData, ThrowOnError>
|
|
441
|
-
) =>
|
|
442
|
-
(options.client ?? client).post<
|
|
443
|
-
RunStartWithTargetResponses,
|
|
444
|
-
RunStartWithTargetErrors,
|
|
445
|
-
ThrowOnError
|
|
446
|
-
>({
|
|
230
|
+
export const runsStart = <ThrowOnError extends boolean = false>(options: Options<RunsStartData, ThrowOnError>) => (options.client ?? client).post<RunsStartResponses, RunsStartErrors, ThrowOnError>({
|
|
447
231
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
448
|
-
url: '/api/v1/
|
|
232
|
+
url: '/api/v1/runs',
|
|
449
233
|
...options,
|
|
450
234
|
headers: {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
|
|
235
|
+
'Content-Type': 'application/json',
|
|
236
|
+
...options.headers
|
|
237
|
+
}
|
|
238
|
+
});
|
|
455
239
|
|
|
456
240
|
/**
|
|
457
241
|
* Download run artifact
|
|
458
242
|
*
|
|
459
|
-
* Download
|
|
243
|
+
* Download a run artifact. Workflow output artifacts resolve through DB-backed file rows; agent artifacts resolve through S3. Output files for both run types live under `output/` paths.
|
|
460
244
|
*/
|
|
461
|
-
export const
|
|
462
|
-
options: Options<RunsArtifactGetData, ThrowOnError>
|
|
463
|
-
) =>
|
|
464
|
-
(options.client ?? client).get<RunsArtifactGetResponses, RunsArtifactGetErrors, ThrowOnError>({
|
|
245
|
+
export const runsArtifactsGet = <ThrowOnError extends boolean = false>(options: Options<RunsArtifactsGetData, ThrowOnError>) => (options.client ?? client).get<RunsArtifactsGetResponses, RunsArtifactsGetErrors, ThrowOnError>({
|
|
465
246
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
466
|
-
url: '/api/v1/runs/{id}/
|
|
467
|
-
...options
|
|
468
|
-
|
|
247
|
+
url: '/api/v1/runs/{id}/artifacts/{path}',
|
|
248
|
+
...options
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* List run artifacts
|
|
253
|
+
*
|
|
254
|
+
* Lists every downloadable artifact path for a run. Download each with `GET /api/v1/runs/:id/artifacts/:path`.
|
|
255
|
+
*/
|
|
256
|
+
export const runsArtifactsList = <ThrowOnError extends boolean = false>(options: Options<RunsArtifactsListData, ThrowOnError>) => (options.client ?? client).get<RunsArtifactsListResponses, RunsArtifactsListErrors, ThrowOnError>({
|
|
257
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
258
|
+
url: '/api/v1/runs/{id}/artifacts',
|
|
259
|
+
...options
|
|
260
|
+
});
|
|
469
261
|
|
|
470
262
|
/**
|
|
471
263
|
* Cancel run
|
|
264
|
+
*
|
|
265
|
+
* Cancels a queued run immediately, or requests cancellation of an in-flight run. Returns the partial canonical run with a `cancellation` block describing the outcome.
|
|
472
266
|
*/
|
|
473
|
-
export const runsCancel = <ThrowOnError extends boolean = false>(
|
|
474
|
-
options: Options<RunsCancelData, ThrowOnError>
|
|
475
|
-
) =>
|
|
476
|
-
(options.client ?? client).post<RunsCancelResponses, RunsCancelErrors, ThrowOnError>({
|
|
267
|
+
export const runsCancel = <ThrowOnError extends boolean = false>(options: Options<RunsCancelData, ThrowOnError>) => (options.client ?? client).post<RunsCancelResponses, RunsCancelErrors, ThrowOnError>({
|
|
477
268
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
478
269
|
url: '/api/v1/runs/{id}/cancel',
|
|
479
|
-
...options
|
|
480
|
-
|
|
270
|
+
...options
|
|
271
|
+
});
|
|
481
272
|
|
|
482
273
|
/**
|
|
483
274
|
* Get run comparison
|
|
484
275
|
*/
|
|
485
|
-
export const runsComparisonGet = <ThrowOnError extends boolean = false>(
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
491
|
-
url: '/api/v1/runs/{id}/comparison',
|
|
492
|
-
...options,
|
|
493
|
-
}
|
|
494
|
-
);
|
|
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
|
+
});
|
|
495
281
|
|
|
496
282
|
/**
|
|
497
283
|
* Connect to live run
|
|
498
284
|
*/
|
|
499
|
-
export const runsConnect = <ThrowOnError extends boolean = false>(
|
|
500
|
-
options: Options<RunsConnectData, ThrowOnError>
|
|
501
|
-
) =>
|
|
502
|
-
(options.client ?? client).post<RunsConnectResponses, RunsConnectErrors, ThrowOnError>({
|
|
285
|
+
export const runsConnect = <ThrowOnError extends boolean = false>(options: Options<RunsConnectData, ThrowOnError>) => (options.client ?? client).post<RunsConnectResponses, RunsConnectErrors, ThrowOnError>({
|
|
503
286
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
504
287
|
url: '/api/v1/runs/{id}/connect',
|
|
505
|
-
...options
|
|
506
|
-
|
|
288
|
+
...options
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Get run definition snapshot
|
|
293
|
+
*
|
|
294
|
+
* Returns the workflow definition snapshot that ran — the exact definition captured at run creation, independent of later edits. Workflow runs only; agent runs return 404 (agent source lives in git, see `source.git` on the run).
|
|
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
|
+
});
|
|
507
301
|
|
|
508
302
|
/**
|
|
509
303
|
* Delete expected artifact file
|
|
510
304
|
*/
|
|
511
|
-
export const runsExpectedFileDelete = <ThrowOnError extends boolean = false>(
|
|
512
|
-
options: Options<RunsExpectedFileDeleteData, ThrowOnError>
|
|
513
|
-
) =>
|
|
514
|
-
(options.client ?? client).delete<
|
|
515
|
-
RunsExpectedFileDeleteResponses,
|
|
516
|
-
RunsExpectedFileDeleteErrors,
|
|
517
|
-
ThrowOnError
|
|
518
|
-
>({
|
|
305
|
+
export const runsExpectedFileDelete = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedFileDeleteData, ThrowOnError>) => (options.client ?? client).delete<RunsExpectedFileDeleteResponses, RunsExpectedFileDeleteErrors, ThrowOnError>({
|
|
519
306
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
520
307
|
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
521
|
-
...options
|
|
522
|
-
|
|
308
|
+
...options
|
|
309
|
+
});
|
|
523
310
|
|
|
524
311
|
/**
|
|
525
312
|
* Download expected artifact file
|
|
526
313
|
*/
|
|
527
|
-
export const runsExpectedFileGet = <ThrowOnError extends boolean = false>(
|
|
528
|
-
options: Options<RunsExpectedFileGetData, ThrowOnError>
|
|
529
|
-
) =>
|
|
530
|
-
(options.client ?? client).get<
|
|
531
|
-
RunsExpectedFileGetResponses,
|
|
532
|
-
RunsExpectedFileGetErrors,
|
|
533
|
-
ThrowOnError
|
|
534
|
-
>({
|
|
314
|
+
export const runsExpectedFileGet = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedFileGetData, ThrowOnError>) => (options.client ?? client).get<RunsExpectedFileGetResponses, RunsExpectedFileGetErrors, ThrowOnError>({
|
|
535
315
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
536
316
|
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
537
|
-
...options
|
|
538
|
-
|
|
317
|
+
...options
|
|
318
|
+
});
|
|
539
319
|
|
|
540
320
|
/**
|
|
541
321
|
* Rename expected artifact file
|
|
542
322
|
*/
|
|
543
|
-
export const runsExpectedFileUpdate = <ThrowOnError extends boolean = false>(
|
|
544
|
-
options: Options<RunsExpectedFileUpdateData, ThrowOnError>
|
|
545
|
-
) =>
|
|
546
|
-
(options.client ?? client).patch<
|
|
547
|
-
RunsExpectedFileUpdateResponses,
|
|
548
|
-
RunsExpectedFileUpdateErrors,
|
|
549
|
-
ThrowOnError
|
|
550
|
-
>({
|
|
323
|
+
export const runsExpectedFileUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedFileUpdateData, ThrowOnError>) => (options.client ?? client).patch<RunsExpectedFileUpdateResponses, RunsExpectedFileUpdateErrors, ThrowOnError>({
|
|
551
324
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
552
325
|
url: '/api/v1/runs/{id}/expected/{filename}',
|
|
553
326
|
...options,
|
|
554
327
|
headers: {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}
|
|
558
|
-
|
|
328
|
+
'Content-Type': 'application/json',
|
|
329
|
+
...options.headers
|
|
330
|
+
}
|
|
331
|
+
});
|
|
559
332
|
|
|
560
333
|
/**
|
|
561
334
|
* Get run expected artifacts
|
|
562
335
|
*/
|
|
563
|
-
export const runsExpectedGet = <ThrowOnError extends boolean = false>(
|
|
564
|
-
options: Options<RunsExpectedGetData, ThrowOnError>
|
|
565
|
-
) =>
|
|
566
|
-
(options.client ?? client).get<RunsExpectedGetResponses, RunsExpectedGetErrors, ThrowOnError>({
|
|
336
|
+
export const runsExpectedGet = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedGetData, ThrowOnError>) => (options.client ?? client).get<RunsExpectedGetResponses, RunsExpectedGetErrors, ThrowOnError>({
|
|
567
337
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
568
338
|
url: '/api/v1/runs/{id}/expected',
|
|
569
|
-
...options
|
|
570
|
-
|
|
339
|
+
...options
|
|
340
|
+
});
|
|
571
341
|
|
|
572
342
|
/**
|
|
573
343
|
* Create or update expected artifacts
|
|
574
344
|
*/
|
|
575
|
-
export const runsExpectedCreate = <ThrowOnError extends boolean = false>(
|
|
576
|
-
options: Options<RunsExpectedCreateData, ThrowOnError>
|
|
577
|
-
) =>
|
|
578
|
-
(options.client ?? client).post<
|
|
579
|
-
RunsExpectedCreateResponses,
|
|
580
|
-
RunsExpectedCreateErrors,
|
|
581
|
-
ThrowOnError
|
|
582
|
-
>({
|
|
345
|
+
export const runsExpectedCreate = <ThrowOnError extends boolean = false>(options: Options<RunsExpectedCreateData, ThrowOnError>) => (options.client ?? client).post<RunsExpectedCreateResponses, RunsExpectedCreateErrors, ThrowOnError>({
|
|
583
346
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
584
347
|
url: '/api/v1/runs/{id}/expected',
|
|
585
348
|
...options,
|
|
586
349
|
headers: {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
|
|
350
|
+
'Content-Type': 'application/json',
|
|
351
|
+
...options.headers
|
|
352
|
+
}
|
|
353
|
+
});
|
|
591
354
|
|
|
592
355
|
/**
|
|
593
356
|
* Clear run feedback
|
|
594
357
|
*/
|
|
595
|
-
export const runsFeedbackClear = <ThrowOnError extends boolean = false>(
|
|
596
|
-
options: Options<RunsFeedbackClearData, ThrowOnError>
|
|
597
|
-
) =>
|
|
598
|
-
(options.client ?? client).delete<
|
|
599
|
-
RunsFeedbackClearResponses,
|
|
600
|
-
RunsFeedbackClearErrors,
|
|
601
|
-
ThrowOnError
|
|
602
|
-
>({
|
|
358
|
+
export const runsFeedbackClear = <ThrowOnError extends boolean = false>(options: Options<RunsFeedbackClearData, ThrowOnError>) => (options.client ?? client).delete<RunsFeedbackClearResponses, RunsFeedbackClearErrors, ThrowOnError>({
|
|
603
359
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
604
360
|
url: '/api/v1/runs/{id}/feedback',
|
|
605
|
-
...options
|
|
606
|
-
|
|
361
|
+
...options
|
|
362
|
+
});
|
|
607
363
|
|
|
608
364
|
/**
|
|
609
365
|
* Get run feedback
|
|
610
366
|
*/
|
|
611
|
-
export const runsFeedbackGet = <ThrowOnError extends boolean = false>(
|
|
612
|
-
options: Options<RunsFeedbackGetData, ThrowOnError>
|
|
613
|
-
) =>
|
|
614
|
-
(options.client ?? client).get<RunsFeedbackGetResponses, RunsFeedbackGetErrors, ThrowOnError>({
|
|
367
|
+
export const runsFeedbackGet = <ThrowOnError extends boolean = false>(options: Options<RunsFeedbackGetData, ThrowOnError>) => (options.client ?? client).get<RunsFeedbackGetResponses, RunsFeedbackGetErrors, ThrowOnError>({
|
|
615
368
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
616
369
|
url: '/api/v1/runs/{id}/feedback',
|
|
617
|
-
...options
|
|
618
|
-
|
|
370
|
+
...options
|
|
371
|
+
});
|
|
619
372
|
|
|
620
373
|
/**
|
|
621
374
|
* Update run feedback
|
|
622
375
|
*/
|
|
623
|
-
export const runsFeedbackUpdate = <ThrowOnError extends boolean = false>(
|
|
624
|
-
options: Options<RunsFeedbackUpdateData, ThrowOnError>
|
|
625
|
-
) =>
|
|
626
|
-
(options.client ?? client).patch<
|
|
627
|
-
RunsFeedbackUpdateResponses,
|
|
628
|
-
RunsFeedbackUpdateErrors,
|
|
629
|
-
ThrowOnError
|
|
630
|
-
>({
|
|
376
|
+
export const runsFeedbackUpdate = <ThrowOnError extends boolean = false>(options: Options<RunsFeedbackUpdateData, ThrowOnError>) => (options.client ?? client).patch<RunsFeedbackUpdateResponses, RunsFeedbackUpdateErrors, ThrowOnError>({
|
|
631
377
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
632
378
|
url: '/api/v1/runs/{id}/feedback',
|
|
633
379
|
...options,
|
|
634
380
|
headers: {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
}
|
|
638
|
-
|
|
381
|
+
'Content-Type': 'application/json',
|
|
382
|
+
...options.headers
|
|
383
|
+
}
|
|
384
|
+
});
|
|
639
385
|
|
|
640
386
|
/**
|
|
641
387
|
* Download run output files zip
|
|
642
388
|
*
|
|
643
|
-
* Download agent run output artifacts as a zip.
|
|
389
|
+
* Download agent run output artifacts as a zip. Completed workflow output files are listed in top-level `files` and downloaded individually through GET /api/v1/runs/:id/artifacts/:path; zip download remains agent-only.
|
|
644
390
|
*/
|
|
645
|
-
export const runsFilesZipGet = <ThrowOnError extends boolean = false>(
|
|
646
|
-
options: Options<RunsFilesZipGetData, ThrowOnError>
|
|
647
|
-
) =>
|
|
648
|
-
(options.client ?? client).get<RunsFilesZipGetResponses, RunsFilesZipGetErrors, ThrowOnError>({
|
|
391
|
+
export const runsFilesZipGet = <ThrowOnError extends boolean = false>(options: Options<RunsFilesZipGetData, ThrowOnError>) => (options.client ?? client).get<RunsFilesZipGetResponses, RunsFilesZipGetErrors, ThrowOnError>({
|
|
649
392
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
650
393
|
url: '/api/v1/runs/{id}/files-zip',
|
|
651
|
-
...options
|
|
652
|
-
|
|
394
|
+
...options
|
|
395
|
+
});
|
|
653
396
|
|
|
654
397
|
/**
|
|
655
398
|
* Delete run input file
|
|
656
399
|
*/
|
|
657
|
-
export const runsFilesDelete = <ThrowOnError extends boolean = false>(
|
|
658
|
-
options: Options<RunsFilesDeleteData, ThrowOnError>
|
|
659
|
-
) =>
|
|
660
|
-
(options.client ?? client).delete<RunsFilesDeleteResponses, RunsFilesDeleteErrors, ThrowOnError>({
|
|
400
|
+
export const runsFilesDelete = <ThrowOnError extends boolean = false>(options: Options<RunsFilesDeleteData, ThrowOnError>) => (options.client ?? client).delete<RunsFilesDeleteResponses, RunsFilesDeleteErrors, ThrowOnError>({
|
|
661
401
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
662
402
|
url: '/api/v1/runs/{id}/files/{fileId}',
|
|
663
|
-
...options
|
|
664
|
-
|
|
403
|
+
...options
|
|
404
|
+
});
|
|
665
405
|
|
|
666
406
|
/**
|
|
667
407
|
* List run files
|
|
668
408
|
*
|
|
669
|
-
* List DB-backed workflow run files: mutable workflow inputs before execution starts, plus workflow/eval input and output file rows.
|
|
409
|
+
* List DB-backed workflow run files: mutable workflow inputs before execution starts, plus workflow/eval input and output file rows for structured inspection. Download generated output artifacts for completed workflow and agent runs through top-level `files` and GET /api/v1/runs/:id/artifacts/:path.
|
|
670
410
|
*/
|
|
671
|
-
export const runsFilesList = <ThrowOnError extends boolean = false>(
|
|
672
|
-
options: Options<RunsFilesListData, ThrowOnError>
|
|
673
|
-
) =>
|
|
674
|
-
(options.client ?? client).get<RunsFilesListResponses, RunsFilesListErrors, ThrowOnError>({
|
|
411
|
+
export const runsFilesList = <ThrowOnError extends boolean = false>(options: Options<RunsFilesListData, ThrowOnError>) => (options.client ?? client).get<RunsFilesListResponses, RunsFilesListErrors, ThrowOnError>({
|
|
675
412
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
676
413
|
url: '/api/v1/runs/{id}/files',
|
|
677
|
-
...options
|
|
678
|
-
|
|
414
|
+
...options
|
|
415
|
+
});
|
|
679
416
|
|
|
680
417
|
/**
|
|
681
418
|
* Upload run input file
|
|
682
419
|
*
|
|
683
|
-
* Upload a DB-backed workflow run input file. This endpoint is for workflow runs before execution starts;
|
|
420
|
+
* Upload a DB-backed workflow run input file. This endpoint is for workflow runs before execution starts; generated output downloads use artifacts.
|
|
684
421
|
*/
|
|
685
|
-
export const runsFilesUpload = <ThrowOnError extends boolean = false>(
|
|
686
|
-
options: Options<RunsFilesUploadData, ThrowOnError>
|
|
687
|
-
) =>
|
|
688
|
-
(options.client ?? client).post<RunsFilesUploadResponses, RunsFilesUploadErrors, ThrowOnError>({
|
|
422
|
+
export const runsFilesUpload = <ThrowOnError extends boolean = false>(options: Options<RunsFilesUploadData, ThrowOnError>) => (options.client ?? client).post<RunsFilesUploadResponses, RunsFilesUploadErrors, ThrowOnError>({
|
|
689
423
|
...formDataBodySerializer,
|
|
690
424
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
691
425
|
url: '/api/v1/runs/{id}/files',
|
|
692
426
|
...options,
|
|
693
427
|
headers: {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
|
|
428
|
+
'Content-Type': null,
|
|
429
|
+
...options.headers
|
|
430
|
+
}
|
|
431
|
+
});
|
|
698
432
|
|
|
699
433
|
/**
|
|
700
434
|
* Rerun run
|
|
701
435
|
*/
|
|
702
|
-
export const runsRerun = <ThrowOnError extends boolean = false>(
|
|
703
|
-
options: Options<RunsRerunData, ThrowOnError>
|
|
704
|
-
) =>
|
|
705
|
-
(options.client ?? client).post<RunsRerunResponses, RunsRerunErrors, ThrowOnError>({
|
|
436
|
+
export const runsRerun = <ThrowOnError extends boolean = false>(options: Options<RunsRerunData, ThrowOnError>) => (options.client ?? client).post<RunsRerunResponses, RunsRerunErrors, ThrowOnError>({
|
|
706
437
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
707
438
|
url: '/api/v1/runs/{id}/rerun',
|
|
708
|
-
...options
|
|
709
|
-
|
|
710
|
-
'Content-Type': 'application/json',
|
|
711
|
-
...options.headers,
|
|
712
|
-
},
|
|
713
|
-
});
|
|
439
|
+
...options
|
|
440
|
+
});
|
|
714
441
|
|
|
715
442
|
/**
|
|
716
443
|
* Get run
|
|
717
444
|
*
|
|
718
|
-
* Returns
|
|
445
|
+
* Returns the grouped run object — identity, `finished`, slim `execution`, `timing`, `source`, `trigger`, optional `eval`, and terminal `output`/`files`/`error` at the top level once `finished` is true. Pass `expand` (`input`, `usage`, `execution`, `debug`) to add nested detail objects; `expand=execution` adds steps (workflow) or files, feedback, and expected (agent). Download artifacts through `GET /api/v1/runs/:id/artifacts/:path`. Workflow definition snapshot: `GET /api/v1/runs/:id/definition`.
|
|
719
446
|
*/
|
|
720
|
-
export const runsGet = <ThrowOnError extends boolean = false>(
|
|
721
|
-
options: Options<RunsGetData, ThrowOnError>
|
|
722
|
-
) =>
|
|
723
|
-
(options.client ?? client).get<RunsGetResponses, RunsGetErrors, ThrowOnError>({
|
|
447
|
+
export const runsGet = <ThrowOnError extends boolean = false>(options: Options<RunsGetData, ThrowOnError>) => (options.client ?? client).get<RunsGetResponses, RunsGetErrors, ThrowOnError>({
|
|
724
448
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
725
449
|
url: '/api/v1/runs/{id}',
|
|
726
|
-
...options
|
|
727
|
-
|
|
450
|
+
...options
|
|
451
|
+
});
|
|
728
452
|
|
|
729
453
|
/**
|
|
730
454
|
* Get run trace
|
|
731
455
|
*/
|
|
732
|
-
export const runsTraceGet = <ThrowOnError extends boolean = false>(
|
|
733
|
-
options: Options<RunsTraceGetData, ThrowOnError>
|
|
734
|
-
) =>
|
|
735
|
-
(options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
|
|
456
|
+
export const runsTraceGet = <ThrowOnError extends boolean = false>(options: Options<RunsTraceGetData, ThrowOnError>) => (options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
|
|
736
457
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
737
458
|
url: '/api/v1/runs/{id}/trace',
|
|
738
|
-
...options
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* List runs
|
|
743
|
-
*
|
|
744
|
-
* Tenant-scoped, cursor-paginated feed of workflow and agent runs. Use type and source filters to scope to one runtime or resource.
|
|
745
|
-
*/
|
|
746
|
-
export const runsList = <ThrowOnError extends boolean = false>(
|
|
747
|
-
options?: Options<RunsListData, ThrowOnError>
|
|
748
|
-
) =>
|
|
749
|
-
(options?.client ?? client).get<RunsListResponses, RunsListErrors, ThrowOnError>({
|
|
750
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
751
|
-
url: '/api/v1/runs',
|
|
752
|
-
...options,
|
|
753
|
-
});
|
|
459
|
+
...options
|
|
460
|
+
});
|
|
754
461
|
|
|
755
462
|
/**
|
|
756
463
|
* Preview a source lockfile
|
|
757
464
|
*
|
|
758
465
|
* Resolves a package ref and returns the would-be eigenpal.lock without enqueueing or writing runtime artifacts.
|
|
759
466
|
*/
|
|
760
|
-
export const sourceLockfilePreview = <ThrowOnError extends boolean = false>(
|
|
761
|
-
options: Options<SourceLockfilePreviewData, ThrowOnError>
|
|
762
|
-
) =>
|
|
763
|
-
(options.client ?? client).get<
|
|
764
|
-
SourceLockfilePreviewResponses,
|
|
765
|
-
SourceLockfilePreviewErrors,
|
|
766
|
-
ThrowOnError
|
|
767
|
-
>({
|
|
467
|
+
export const sourceLockfilePreview = <ThrowOnError extends boolean = false>(options: Options<SourceLockfilePreviewData, ThrowOnError>) => (options.client ?? client).get<SourceLockfilePreviewResponses, SourceLockfilePreviewErrors, ThrowOnError>({
|
|
768
468
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
769
469
|
url: '/api/v1/source/lockfile',
|
|
770
|
-
...options
|
|
771
|
-
|
|
470
|
+
...options
|
|
471
|
+
});
|
|
772
472
|
|
|
773
473
|
/**
|
|
774
474
|
* Preview a raw Git source file
|
|
775
475
|
*
|
|
776
476
|
* Reads a raw file from the organization Git repository for metadata previews.
|
|
777
477
|
*/
|
|
778
|
-
export const sourceRaw = <ThrowOnError extends boolean = false>(
|
|
779
|
-
options: Options<SourceRawData, ThrowOnError>
|
|
780
|
-
) =>
|
|
781
|
-
(options.client ?? client).get<SourceRawResponses, SourceRawErrors, ThrowOnError>({
|
|
478
|
+
export const sourceRaw = <ThrowOnError extends boolean = false>(options: Options<SourceRawData, ThrowOnError>) => (options.client ?? client).get<SourceRawResponses, SourceRawErrors, ThrowOnError>({
|
|
782
479
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
783
480
|
url: '/api/v1/source/raw',
|
|
784
|
-
...options
|
|
785
|
-
|
|
481
|
+
...options
|
|
482
|
+
});
|
|
786
483
|
|
|
787
484
|
/**
|
|
788
485
|
* List Git source package releases
|
|
789
486
|
*
|
|
790
487
|
* Lists package-scoped Git release tags, or returns one exact version when requested.
|
|
791
488
|
*/
|
|
792
|
-
export const sourceReleases = <ThrowOnError extends boolean = false>(
|
|
793
|
-
options: Options<SourceReleasesData, ThrowOnError>
|
|
794
|
-
) =>
|
|
795
|
-
(options.client ?? client).get<SourceReleasesResponses, SourceReleasesErrors, ThrowOnError>({
|
|
489
|
+
export const sourceReleases = <ThrowOnError extends boolean = false>(options: Options<SourceReleasesData, ThrowOnError>) => (options.client ?? client).get<SourceReleasesResponses, SourceReleasesErrors, ThrowOnError>({
|
|
796
490
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
797
491
|
url: '/api/v1/source/releases',
|
|
798
|
-
...options
|
|
799
|
-
|
|
492
|
+
...options
|
|
493
|
+
});
|
|
800
494
|
|
|
801
495
|
/**
|
|
802
496
|
* Get organization Git source repository
|
|
803
497
|
*
|
|
804
498
|
* Returns the authenticated organization Git remote used by hidden source CLI commands.
|
|
805
499
|
*/
|
|
806
|
-
export const sourceRepository = <ThrowOnError extends boolean = false>(
|
|
807
|
-
options?: Options<SourceRepositoryData, ThrowOnError>
|
|
808
|
-
) =>
|
|
809
|
-
(options?.client ?? client).get<SourceRepositoryResponses, SourceRepositoryErrors, ThrowOnError>({
|
|
500
|
+
export const sourceRepository = <ThrowOnError extends boolean = false>(options?: Options<SourceRepositoryData, ThrowOnError>) => (options?.client ?? client).get<SourceRepositoryResponses, SourceRepositoryErrors, ThrowOnError>({
|
|
810
501
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
811
502
|
url: '/api/v1/source/repository',
|
|
812
|
-
...options
|
|
813
|
-
|
|
503
|
+
...options
|
|
504
|
+
});
|
|
814
505
|
|
|
815
506
|
/**
|
|
816
507
|
* Decrypt a Git-backed source secret
|
|
817
508
|
*
|
|
818
509
|
* 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.
|
|
819
510
|
*/
|
|
820
|
-
export const sourceSecretsDecrypt = <ThrowOnError extends boolean = false>(
|
|
821
|
-
options: Options<SourceSecretsDecryptData, ThrowOnError>
|
|
822
|
-
) =>
|
|
823
|
-
(options.client ?? client).post<
|
|
824
|
-
SourceSecretsDecryptResponses,
|
|
825
|
-
SourceSecretsDecryptErrors,
|
|
826
|
-
ThrowOnError
|
|
827
|
-
>({
|
|
511
|
+
export const sourceSecretsDecrypt = <ThrowOnError extends boolean = false>(options: Options<SourceSecretsDecryptData, ThrowOnError>) => (options.client ?? client).post<SourceSecretsDecryptResponses, SourceSecretsDecryptErrors, ThrowOnError>({
|
|
828
512
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
829
513
|
url: '/api/v1/source/secrets/decrypt',
|
|
830
514
|
...options,
|
|
831
515
|
headers: {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
}
|
|
835
|
-
|
|
516
|
+
'Content-Type': 'application/json',
|
|
517
|
+
...options.headers
|
|
518
|
+
}
|
|
519
|
+
});
|
|
836
520
|
|
|
837
521
|
/**
|
|
838
522
|
* Encrypt a Git-backed source secret
|
|
839
523
|
*
|
|
840
524
|
* 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.
|
|
841
525
|
*/
|
|
842
|
-
export const sourceSecretsEncrypt = <ThrowOnError extends boolean = false>(
|
|
843
|
-
options: Options<SourceSecretsEncryptData, ThrowOnError>
|
|
844
|
-
) =>
|
|
845
|
-
(options.client ?? client).post<
|
|
846
|
-
SourceSecretsEncryptResponses,
|
|
847
|
-
SourceSecretsEncryptErrors,
|
|
848
|
-
ThrowOnError
|
|
849
|
-
>({
|
|
526
|
+
export const sourceSecretsEncrypt = <ThrowOnError extends boolean = false>(options: Options<SourceSecretsEncryptData, ThrowOnError>) => (options.client ?? client).post<SourceSecretsEncryptResponses, SourceSecretsEncryptErrors, ThrowOnError>({
|
|
850
527
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
851
528
|
url: '/api/v1/source/secrets/encrypt',
|
|
852
529
|
...options,
|
|
853
530
|
headers: {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
857
|
-
|
|
531
|
+
'Content-Type': 'application/json',
|
|
532
|
+
...options.headers
|
|
533
|
+
}
|
|
534
|
+
});
|
|
858
535
|
|
|
859
536
|
/**
|
|
860
537
|
* Get a workflow by id
|
|
861
538
|
*
|
|
862
539
|
* Returns the workflow summary plus the current version YAML. Use `versions list` for historical YAML.
|
|
863
540
|
*/
|
|
864
|
-
export const workflowsGet = <ThrowOnError extends boolean = false>(
|
|
865
|
-
options: Options<WorkflowsGetData, ThrowOnError>
|
|
866
|
-
) =>
|
|
867
|
-
(options.client ?? client).get<WorkflowsGetResponses, WorkflowsGetErrors, ThrowOnError>({
|
|
541
|
+
export const workflowsGet = <ThrowOnError extends boolean = false>(options: Options<WorkflowsGetData, ThrowOnError>) => (options.client ?? client).get<WorkflowsGetResponses, WorkflowsGetErrors, ThrowOnError>({
|
|
868
542
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
869
543
|
url: '/api/v1/workflows/{id}',
|
|
870
|
-
...options
|
|
871
|
-
|
|
544
|
+
...options
|
|
545
|
+
});
|
|
872
546
|
|
|
873
547
|
/**
|
|
874
548
|
* List tagged versions for a workflow
|
|
875
549
|
*
|
|
876
550
|
* Returns released versions in reverse-chronological order, paginated.
|
|
877
551
|
*/
|
|
878
|
-
export const workflowsVersionsList = <ThrowOnError extends boolean = false>(
|
|
879
|
-
options: Options<WorkflowsVersionsListData, ThrowOnError>
|
|
880
|
-
) =>
|
|
881
|
-
(options.client ?? client).get<
|
|
882
|
-
WorkflowsVersionsListResponses,
|
|
883
|
-
WorkflowsVersionsListErrors,
|
|
884
|
-
ThrowOnError
|
|
885
|
-
>({
|
|
552
|
+
export const workflowsVersionsList = <ThrowOnError extends boolean = false>(options: Options<WorkflowsVersionsListData, ThrowOnError>) => (options.client ?? client).get<WorkflowsVersionsListResponses, WorkflowsVersionsListErrors, ThrowOnError>({
|
|
886
553
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
887
554
|
url: '/api/v1/workflows/{id}/versions',
|
|
888
|
-
...options
|
|
889
|
-
|
|
555
|
+
...options
|
|
556
|
+
});
|
|
890
557
|
|
|
891
558
|
/**
|
|
892
559
|
* List workflows
|
|
893
560
|
*
|
|
894
561
|
* Returns workflows the API key has access to, with pagination. Use `name` for exact-match slug lookup, `search` for substring match.
|
|
895
562
|
*/
|
|
896
|
-
export const workflowsList = <ThrowOnError extends boolean = false>(
|
|
897
|
-
options?: Options<WorkflowsListData, ThrowOnError>
|
|
898
|
-
) =>
|
|
899
|
-
(options?.client ?? client).get<WorkflowsListResponses, WorkflowsListErrors, ThrowOnError>({
|
|
563
|
+
export const workflowsList = <ThrowOnError extends boolean = false>(options?: Options<WorkflowsListData, ThrowOnError>) => (options?.client ?? client).get<WorkflowsListResponses, WorkflowsListErrors, ThrowOnError>({
|
|
900
564
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
901
565
|
url: '/api/v1/workflows',
|
|
902
|
-
...options
|
|
903
|
-
|
|
566
|
+
...options
|
|
567
|
+
});
|