@eigenpal/sdk 0.6.17 → 0.7.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.
@@ -1,903 +1,569 @@
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
- AgentsCreateData,
12
- AgentsCreateErrors,
13
- AgentsCreateResponses,
14
- AgentsFilesListOrGetData,
15
- AgentsFilesListOrGetErrors,
16
- AgentsFilesListOrGetResponses,
17
- AgentsFilesPutData,
18
- AgentsFilesPutErrors,
19
- AgentsFilesUploadBatchData,
20
- AgentsFilesUploadBatchErrors,
21
- AgentsGetData,
22
- AgentsGetErrors,
23
- AgentsGetResponses,
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
  /**
165
22
  * List or download agent source files
166
23
  *
167
- * Lists or reads files from the agent Git package (`agents/{slug}/` on organization source). Runtime artifacts (runs, dataset) are not served here.
24
+ * List or read agent source files from Git.
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
- 'Content-Type': 'application/json',
196
- ...options.headers,
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
- 'Content-Type': 'application/json',
214
- ...options.headers,
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
- 'Content-Type': 'application/json',
246
- ...options.headers,
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
- 'Content-Type': 'application/json',
286
- ...options.headers,
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
- 'Content-Type': 'application/json',
326
- ...options.headers,
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
- 'Content-Type': 'application/json',
348
- ...options.headers,
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
- * Lists Git-backed release versions for an agent. Release notes are included when a matching legacy published-version message exists.
158
+ * List Git release versions for an agent.
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
- * Returns agents the caller has access to, with pagination and basic execution stats. Accepts session cookies or API keys.
169
+ * List agents with pagination.
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
- * Creates a new agent, registers it in the automation table, and scaffolds its Git source package. Accepts session cookies or API keys.
180
+ * Create an agent and scaffold its Git source package.
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
- 'Content-Type': 'application/json',
398
- ...options.headers,
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
+ });
433
213
 
434
214
  /**
435
- * Start a workflow or agent run
215
+ * List runs
436
216
  *
437
- * Starts a run for a workflow or agent target. The target lives in the URL path; the optional `version` query parameter selects a release/ref and defaults to `latest`. The request body is the input object; a reserved `_overrides` key (workflow targets only) carries per-step output overrides for replay. Run provenance may be declared with the `X-Eigenpal-Trigger` header (`api` or `cli`).
217
+ * List workflow and agent runs with cursor pagination.
438
218
  */
439
- export const runStartWithTarget = <ThrowOnError extends boolean = false>(
440
- options: Options<RunStartWithTargetData, ThrowOnError>
441
- ) =>
442
- (options.client ?? client).post<
443
- RunStartWithTargetResponses,
444
- RunStartWithTargetErrors,
445
- ThrowOnError
446
- >({
219
+ export const runsList = <ThrowOnError extends boolean = false>(options?: Options<RunsListData, ThrowOnError>) => (options?.client ?? client).get<RunsListResponses, RunsListErrors, ThrowOnError>({
447
220
  security: [{ scheme: 'bearer', type: 'http' }],
448
- url: '/api/v1/run/{target}',
221
+ url: '/api/v1/runs',
222
+ ...options
223
+ });
224
+
225
+ /**
226
+ * Start a run
227
+ *
228
+ * Start a run. Send JSON or multipart/form-data.
229
+ */
230
+ export const runsStart = <ThrowOnError extends boolean = false>(options: Options<RunsStartData, ThrowOnError>) => (options.client ?? client).post<RunsStartResponses, RunsStartErrors, ThrowOnError>({
231
+ security: [{ scheme: 'bearer', type: 'http' }],
232
+ url: '/api/v1/runs',
449
233
  ...options,
450
234
  headers: {
451
- 'Content-Type': 'application/json',
452
- ...options.headers,
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 an agent run artifact such as input/output JSON, trace.jsonl, issues.md, metadata, or files under input/ and output/. Workflow run file rows are exposed through /files.
243
+ * Download one artifact by path.
460
244
  */
461
- export const runsArtifactGet = <ThrowOnError extends boolean = false>(
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}/artifact/{path}',
467
- ...options,
468
- });
247
+ url: '/api/v1/runs/{id}/artifacts/{path}',
248
+ ...options
249
+ });
250
+
251
+ /**
252
+ * List run artifacts
253
+ *
254
+ * List downloadable artifact paths for a run.
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
+ * Cancel a queued run or request cancellation of an in-flight run.
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
- options: Options<RunsComparisonGetData, ThrowOnError>
487
- ) =>
488
- (options.client ?? client).get<RunsComparisonGetResponses, RunsComparisonGetErrors, ThrowOnError>(
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
+ * Workflow definition snapshot captured when the run was created.
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
- 'Content-Type': 'application/json',
556
- ...options.headers,
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
- 'Content-Type': 'application/json',
588
- ...options.headers,
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
- 'Content-Type': 'application/json',
636
- ...options.headers,
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. Workflow run files use /files and will be folded into artifacts in a future refactor.
389
+ * Download agent run output files as a zip.
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. Agent debug outputs are exposed as run artifacts instead.
409
+ * List workflow run input and output file rows.
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; agent run downloads use artifacts.
420
+ * Upload a workflow run input file before execution starts.
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
- 'Content-Type': null,
695
- ...options.headers,
696
- },
697
- });
428
+ 'Content-Type': null,
429
+ ...options.headers
430
+ }
431
+ });
698
432
 
699
433
  /**
700
434
  * Rerun run
435
+ *
436
+ * Start a new run from an existing run id.
701
437
  */
702
- export const runsRerun = <ThrowOnError extends boolean = false>(
703
- options: Options<RunsRerunData, ThrowOnError>
704
- ) =>
705
- (options.client ?? client).post<RunsRerunResponses, RunsRerunErrors, ThrowOnError>({
438
+ export const runsRerun = <ThrowOnError extends boolean = false>(options: Options<RunsRerunData, ThrowOnError>) => (options.client ?? client).post<RunsRerunResponses, RunsRerunErrors, ThrowOnError>({
706
439
  security: [{ scheme: 'bearer', type: 'http' }],
707
440
  url: '/api/v1/runs/{id}/rerun',
708
- ...options,
709
- headers: {
710
- 'Content-Type': 'application/json',
711
- ...options.headers,
712
- },
713
- });
441
+ ...options
442
+ });
714
443
 
715
444
  /**
716
445
  * Get run
717
446
  *
718
- * Returns a run summary by default. Pass include=detail for the rich type-specific workflow or agent run payload.
447
+ * Fetch one run by id. Use `expand` for input, usage, execution, and debug detail.
719
448
  */
720
- export const runsGet = <ThrowOnError extends boolean = false>(
721
- options: Options<RunsGetData, ThrowOnError>
722
- ) =>
723
- (options.client ?? client).get<RunsGetResponses, RunsGetErrors, ThrowOnError>({
449
+ export const runsGet = <ThrowOnError extends boolean = false>(options: Options<RunsGetData, ThrowOnError>) => (options.client ?? client).get<RunsGetResponses, RunsGetErrors, ThrowOnError>({
724
450
  security: [{ scheme: 'bearer', type: 'http' }],
725
451
  url: '/api/v1/runs/{id}',
726
- ...options,
727
- });
452
+ ...options
453
+ });
728
454
 
729
455
  /**
730
456
  * Get run trace
731
457
  */
732
- export const runsTraceGet = <ThrowOnError extends boolean = false>(
733
- options: Options<RunsTraceGetData, ThrowOnError>
734
- ) =>
735
- (options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
458
+ export const runsTraceGet = <ThrowOnError extends boolean = false>(options: Options<RunsTraceGetData, ThrowOnError>) => (options.client ?? client).get<RunsTraceGetResponses, RunsTraceGetErrors, ThrowOnError>({
736
459
  security: [{ scheme: 'bearer', type: 'http' }],
737
460
  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
- });
461
+ ...options
462
+ });
754
463
 
755
464
  /**
756
465
  * Preview a source lockfile
757
466
  *
758
467
  * Resolves a package ref and returns the would-be eigenpal.lock without enqueueing or writing runtime artifacts.
759
468
  */
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
- >({
469
+ export const sourceLockfilePreview = <ThrowOnError extends boolean = false>(options: Options<SourceLockfilePreviewData, ThrowOnError>) => (options.client ?? client).get<SourceLockfilePreviewResponses, SourceLockfilePreviewErrors, ThrowOnError>({
768
470
  security: [{ scheme: 'bearer', type: 'http' }],
769
471
  url: '/api/v1/source/lockfile',
770
- ...options,
771
- });
472
+ ...options
473
+ });
772
474
 
773
475
  /**
774
476
  * Preview a raw Git source file
775
477
  *
776
478
  * Reads a raw file from the organization Git repository for metadata previews.
777
479
  */
778
- export const sourceRaw = <ThrowOnError extends boolean = false>(
779
- options: Options<SourceRawData, ThrowOnError>
780
- ) =>
781
- (options.client ?? client).get<SourceRawResponses, SourceRawErrors, ThrowOnError>({
480
+ export const sourceRaw = <ThrowOnError extends boolean = false>(options: Options<SourceRawData, ThrowOnError>) => (options.client ?? client).get<SourceRawResponses, SourceRawErrors, ThrowOnError>({
782
481
  security: [{ scheme: 'bearer', type: 'http' }],
783
482
  url: '/api/v1/source/raw',
784
- ...options,
785
- });
483
+ ...options
484
+ });
786
485
 
787
486
  /**
788
487
  * List Git source package releases
789
488
  *
790
489
  * Lists package-scoped Git release tags, or returns one exact version when requested.
791
490
  */
792
- export const sourceReleases = <ThrowOnError extends boolean = false>(
793
- options: Options<SourceReleasesData, ThrowOnError>
794
- ) =>
795
- (options.client ?? client).get<SourceReleasesResponses, SourceReleasesErrors, ThrowOnError>({
491
+ export const sourceReleases = <ThrowOnError extends boolean = false>(options: Options<SourceReleasesData, ThrowOnError>) => (options.client ?? client).get<SourceReleasesResponses, SourceReleasesErrors, ThrowOnError>({
796
492
  security: [{ scheme: 'bearer', type: 'http' }],
797
493
  url: '/api/v1/source/releases',
798
- ...options,
799
- });
494
+ ...options
495
+ });
800
496
 
801
497
  /**
802
498
  * Get organization Git source repository
803
499
  *
804
500
  * Returns the authenticated organization Git remote used by hidden source CLI commands.
805
501
  */
806
- export const sourceRepository = <ThrowOnError extends boolean = false>(
807
- options?: Options<SourceRepositoryData, ThrowOnError>
808
- ) =>
809
- (options?.client ?? client).get<SourceRepositoryResponses, SourceRepositoryErrors, ThrowOnError>({
502
+ export const sourceRepository = <ThrowOnError extends boolean = false>(options?: Options<SourceRepositoryData, ThrowOnError>) => (options?.client ?? client).get<SourceRepositoryResponses, SourceRepositoryErrors, ThrowOnError>({
810
503
  security: [{ scheme: 'bearer', type: 'http' }],
811
504
  url: '/api/v1/source/repository',
812
- ...options,
813
- });
505
+ ...options
506
+ });
814
507
 
815
508
  /**
816
509
  * Decrypt a Git-backed source secret
817
510
  *
818
511
  * 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
512
  */
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
- >({
513
+ export const sourceSecretsDecrypt = <ThrowOnError extends boolean = false>(options: Options<SourceSecretsDecryptData, ThrowOnError>) => (options.client ?? client).post<SourceSecretsDecryptResponses, SourceSecretsDecryptErrors, ThrowOnError>({
828
514
  security: [{ scheme: 'bearer', type: 'http' }],
829
515
  url: '/api/v1/source/secrets/decrypt',
830
516
  ...options,
831
517
  headers: {
832
- 'Content-Type': 'application/json',
833
- ...options.headers,
834
- },
835
- });
518
+ 'Content-Type': 'application/json',
519
+ ...options.headers
520
+ }
521
+ });
836
522
 
837
523
  /**
838
524
  * Encrypt a Git-backed source secret
839
525
  *
840
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.
841
527
  */
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
- >({
528
+ export const sourceSecretsEncrypt = <ThrowOnError extends boolean = false>(options: Options<SourceSecretsEncryptData, ThrowOnError>) => (options.client ?? client).post<SourceSecretsEncryptResponses, SourceSecretsEncryptErrors, ThrowOnError>({
850
529
  security: [{ scheme: 'bearer', type: 'http' }],
851
530
  url: '/api/v1/source/secrets/encrypt',
852
531
  ...options,
853
532
  headers: {
854
- 'Content-Type': 'application/json',
855
- ...options.headers,
856
- },
857
- });
533
+ 'Content-Type': 'application/json',
534
+ ...options.headers
535
+ }
536
+ });
858
537
 
859
538
  /**
860
539
  * Get a workflow by id
861
540
  *
862
- * Returns the workflow summary plus the current version YAML. Use `versions list` for historical YAML.
541
+ * Get a workflow by id, including current YAML.
863
542
  */
864
- export const workflowsGet = <ThrowOnError extends boolean = false>(
865
- options: Options<WorkflowsGetData, ThrowOnError>
866
- ) =>
867
- (options.client ?? client).get<WorkflowsGetResponses, WorkflowsGetErrors, ThrowOnError>({
543
+ export const workflowsGet = <ThrowOnError extends boolean = false>(options: Options<WorkflowsGetData, ThrowOnError>) => (options.client ?? client).get<WorkflowsGetResponses, WorkflowsGetErrors, ThrowOnError>({
868
544
  security: [{ scheme: 'bearer', type: 'http' }],
869
545
  url: '/api/v1/workflows/{id}',
870
- ...options,
871
- });
546
+ ...options
547
+ });
872
548
 
873
549
  /**
874
550
  * List tagged versions for a workflow
875
551
  *
876
- * Returns released versions in reverse-chronological order, paginated.
552
+ * List published workflow versions.
877
553
  */
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
- >({
554
+ export const workflowsVersionsList = <ThrowOnError extends boolean = false>(options: Options<WorkflowsVersionsListData, ThrowOnError>) => (options.client ?? client).get<WorkflowsVersionsListResponses, WorkflowsVersionsListErrors, ThrowOnError>({
886
555
  security: [{ scheme: 'bearer', type: 'http' }],
887
556
  url: '/api/v1/workflows/{id}/versions',
888
- ...options,
889
- });
557
+ ...options
558
+ });
890
559
 
891
560
  /**
892
561
  * List workflows
893
562
  *
894
- * Returns workflows the API key has access to, with pagination. Use `name` for exact-match slug lookup, `search` for substring match.
563
+ * List workflows with pagination.
895
564
  */
896
- export const workflowsList = <ThrowOnError extends boolean = false>(
897
- options?: Options<WorkflowsListData, ThrowOnError>
898
- ) =>
899
- (options?.client ?? client).get<WorkflowsListResponses, WorkflowsListErrors, ThrowOnError>({
565
+ export const workflowsList = <ThrowOnError extends boolean = false>(options?: Options<WorkflowsListData, ThrowOnError>) => (options?.client ?? client).get<WorkflowsListResponses, WorkflowsListErrors, ThrowOnError>({
900
566
  security: [{ scheme: 'bearer', type: 'http' }],
901
567
  url: '/api/v1/workflows',
902
- ...options,
903
- });
568
+ ...options
569
+ });