asteroid-odyssey 1.0.24 → 1.1.2
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/dist/generated/agents/client.gen.js +3 -1
- package/dist/generated/agents/sdk.gen.d.ts +22 -88
- package/dist/generated/agents/sdk.gen.js +71 -206
- package/dist/generated/agents/types.gen.d.ts +174 -693
- package/dist/index.d.ts +43 -52
- package/dist/index.js +87 -97
- package/package.json +1 -1
|
@@ -1,381 +1,98 @@
|
|
|
1
|
-
export type OptimisationRequest = {
|
|
2
|
-
/**
|
|
3
|
-
* The run ID that we want to subject to optimisation
|
|
4
|
-
*/
|
|
5
|
-
run_id: string;
|
|
6
|
-
};
|
|
7
|
-
export type ProgressUpdate = {
|
|
8
|
-
/**
|
|
9
|
-
* The execution ID
|
|
10
|
-
*/
|
|
11
|
-
execution_id: string;
|
|
12
|
-
/**
|
|
13
|
-
* The progress of the execution
|
|
14
|
-
*/
|
|
15
|
-
progress: string;
|
|
16
|
-
/**
|
|
17
|
-
* The date and time the progress was created
|
|
18
|
-
*/
|
|
19
|
-
created_at: string;
|
|
20
|
-
};
|
|
21
|
-
export type Agent = {
|
|
22
|
-
/**
|
|
23
|
-
* The name of the agent
|
|
24
|
-
*/
|
|
25
|
-
name: string;
|
|
26
|
-
/**
|
|
27
|
-
* The description of the agent
|
|
28
|
-
*/
|
|
29
|
-
description: string;
|
|
30
|
-
/**
|
|
31
|
-
* The visibility of the agent
|
|
32
|
-
*/
|
|
33
|
-
visibility: string;
|
|
34
|
-
/**
|
|
35
|
-
* The prompts for the agent
|
|
36
|
-
*/
|
|
37
|
-
required_prompts: Array<string>;
|
|
38
|
-
/**
|
|
39
|
-
* The fields that must be provided when creating a workflow for a given agent
|
|
40
|
-
*/
|
|
41
|
-
required_fields?: Array<string>;
|
|
42
|
-
};
|
|
43
1
|
/**
|
|
44
|
-
*
|
|
2
|
+
* Request to execute an agent with specific parameters
|
|
45
3
|
*/
|
|
46
|
-
export type
|
|
4
|
+
export type AgentExecutionRequest = {
|
|
47
5
|
[key: string]: unknown;
|
|
48
6
|
};
|
|
49
|
-
export type
|
|
50
|
-
/**
|
|
51
|
-
* The name of the workflow.
|
|
52
|
-
*/
|
|
53
|
-
name: string;
|
|
54
|
-
/**
|
|
55
|
-
* Used to assign the workflow to a user. Do not use this field.
|
|
56
|
-
*/
|
|
57
|
-
user_id?: string;
|
|
58
|
-
result_schema?: ResultSchema;
|
|
59
|
-
/**
|
|
60
|
-
* Field for custom configuration. Do not use.
|
|
61
|
-
*/
|
|
62
|
-
fields?: {
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* The prompts for the workflow. They can have variables in them. They will be merged with the dynamic data passed when the workflow is executed.
|
|
67
|
-
*/
|
|
68
|
-
prompts: Array<string>;
|
|
69
|
-
workflow_options?: UnresolvedWorkflowOptions;
|
|
70
|
-
/**
|
|
71
|
-
* The Language Model Provider for the Workflow
|
|
72
|
-
*/
|
|
73
|
-
provider: 'openai' | 'anthropic';
|
|
74
|
-
/**
|
|
75
|
-
* The URL to start the workflow.
|
|
76
|
-
*/
|
|
77
|
-
start_url: string;
|
|
78
|
-
};
|
|
79
|
-
export type Workflow = {
|
|
80
|
-
/**
|
|
81
|
-
* Workflow identifier.
|
|
82
|
-
*/
|
|
83
|
-
id: string;
|
|
84
|
-
/**
|
|
85
|
-
* The ID of the user who created the workflow.
|
|
86
|
-
*/
|
|
87
|
-
user_id: string;
|
|
88
|
-
result_schema: ResultSchema;
|
|
89
|
-
/**
|
|
90
|
-
* Identifier of the associated agent.
|
|
91
|
-
*/
|
|
92
|
-
agent_id: string;
|
|
93
|
-
/**
|
|
94
|
-
* The date and time the workflow was created.
|
|
95
|
-
*/
|
|
96
|
-
created_at?: string;
|
|
7
|
+
export type ExecutionResponse = {
|
|
97
8
|
/**
|
|
98
|
-
*
|
|
9
|
+
* The ID of the execution
|
|
99
10
|
*/
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* The prompts for the workflow. They can have variables in them. They will be merged with the dynamic data passed when the workflow is executed.
|
|
103
|
-
*/
|
|
104
|
-
prompts: Array<string>;
|
|
105
|
-
/**
|
|
106
|
-
* The variables in the prompts.
|
|
107
|
-
*/
|
|
108
|
-
prompt_variables?: Array<string>;
|
|
109
|
-
/**
|
|
110
|
-
* Additional options for the workflow. See documentation for more details.
|
|
111
|
-
*/
|
|
112
|
-
workflow_options?: {
|
|
113
|
-
[key: string]: unknown;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* The URL to start the workflow.
|
|
117
|
-
*/
|
|
118
|
-
start_url: string;
|
|
119
|
-
/**
|
|
120
|
-
* JSON object containing static workflow configuration (e.g. a prompt_template).
|
|
121
|
-
*/
|
|
122
|
-
fields?: {
|
|
123
|
-
[key: string]: unknown;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
export type WorkflowExecution = {
|
|
127
|
-
workflow: Workflow;
|
|
128
|
-
executions: Array<Execution>;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Dynamic values to be merged into the saved workflow configuration.
|
|
132
|
-
*/
|
|
133
|
-
export type WorkflowExecutionRequest = {
|
|
134
|
-
[key: string]: unknown;
|
|
135
|
-
};
|
|
136
|
-
export type CredentialsRequest = {
|
|
137
|
-
credentials: Array<Credential>;
|
|
11
|
+
execution_id: string;
|
|
138
12
|
};
|
|
139
|
-
export type
|
|
13
|
+
export type ExecutionStatusResponse = {
|
|
140
14
|
/**
|
|
141
|
-
* The
|
|
15
|
+
* The ID of the execution
|
|
142
16
|
*/
|
|
143
|
-
|
|
17
|
+
execution_id: string;
|
|
18
|
+
status: Status;
|
|
144
19
|
/**
|
|
145
|
-
*
|
|
20
|
+
* Reason for the current status (if applicable)
|
|
146
21
|
*/
|
|
147
|
-
|
|
148
|
-
};
|
|
149
|
-
export type CredentialsResponse = {
|
|
22
|
+
reason?: string;
|
|
150
23
|
/**
|
|
151
|
-
*
|
|
24
|
+
* Time when the status was last updated
|
|
152
25
|
*/
|
|
153
|
-
|
|
154
|
-
credentials: Array<Credential>;
|
|
26
|
+
updated_at?: string;
|
|
155
27
|
};
|
|
156
|
-
export type
|
|
157
|
-
/**
|
|
158
|
-
* Execution identifier.
|
|
159
|
-
*/
|
|
160
|
-
id: string;
|
|
28
|
+
export type ExecutionResultResponse = {
|
|
161
29
|
/**
|
|
162
|
-
*
|
|
30
|
+
* The ID of the execution
|
|
163
31
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
* Dynamic data to be merged into the saved workflow configuration.
|
|
167
|
-
*/
|
|
168
|
-
dynamic_data?: {
|
|
169
|
-
[key: string]: unknown;
|
|
170
|
-
};
|
|
171
|
-
/**
|
|
172
|
-
* Workflow ID.
|
|
173
|
-
*/
|
|
174
|
-
workflow_id: string;
|
|
175
|
-
status?: ExecutionStatus;
|
|
32
|
+
execution_id: string;
|
|
33
|
+
status: Status;
|
|
176
34
|
/**
|
|
177
|
-
* The result
|
|
35
|
+
* (Deprecated, use execution_result instead) The structured result data from the execution. Contains the outcome, reasoning, final answer, and result.
|
|
36
|
+
* @deprecated
|
|
178
37
|
*/
|
|
179
|
-
result
|
|
38
|
+
result?: {
|
|
180
39
|
[key: string]: unknown;
|
|
181
40
|
};
|
|
182
41
|
/**
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
created_at: string;
|
|
186
|
-
/**
|
|
187
|
-
* The error that occurred during the execution.
|
|
42
|
+
* Error message (if execution failed)
|
|
188
43
|
*/
|
|
189
44
|
error?: string;
|
|
190
|
-
|
|
191
|
-
export type ExecutionStatus = {
|
|
192
|
-
/**
|
|
193
|
-
* Execution ID.
|
|
194
|
-
*/
|
|
195
|
-
execution_id: string;
|
|
196
|
-
status: Status;
|
|
197
|
-
/**
|
|
198
|
-
* Reason for the status.
|
|
199
|
-
*/
|
|
200
|
-
reason?: string;
|
|
201
|
-
/**
|
|
202
|
-
* The date and time the execution status was created.
|
|
203
|
-
*/
|
|
204
|
-
created_at: string;
|
|
45
|
+
execution_result?: ExecutionResult;
|
|
205
46
|
};
|
|
206
47
|
/**
|
|
207
|
-
*
|
|
48
|
+
* The result of an execution. Contains the outcome, reasoning, and result.
|
|
208
49
|
*/
|
|
209
|
-
export type
|
|
210
|
-
export type BrowserSession = {
|
|
211
|
-
/**
|
|
212
|
-
* Browser session identifier.
|
|
213
|
-
*/
|
|
214
|
-
id?: string;
|
|
50
|
+
export type ExecutionResult = {
|
|
215
51
|
/**
|
|
216
|
-
*
|
|
52
|
+
* The outcome of the execution (success or failure)
|
|
217
53
|
*/
|
|
218
|
-
|
|
54
|
+
outcome?: 'success' | 'failure';
|
|
219
55
|
/**
|
|
220
|
-
*
|
|
56
|
+
* The reasoning behind the execution outcome
|
|
221
57
|
*/
|
|
222
|
-
|
|
58
|
+
reasoning?: string;
|
|
223
59
|
/**
|
|
224
|
-
*
|
|
60
|
+
* The structured result data from the execution. This will follow the format defined in the result_schema of the agent.
|
|
225
61
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
*/
|
|
230
|
-
debugger_url?: string;
|
|
231
|
-
/**
|
|
232
|
-
* Session ID.
|
|
233
|
-
*/
|
|
234
|
-
session_id?: string;
|
|
235
|
-
/**
|
|
236
|
-
* Session URL.
|
|
237
|
-
*/
|
|
238
|
-
session_url?: string;
|
|
239
|
-
/**
|
|
240
|
-
* Recording URL.
|
|
241
|
-
*/
|
|
242
|
-
recording_url?: string;
|
|
243
|
-
};
|
|
244
|
-
export type SlackChannelRequest = {
|
|
245
|
-
/**
|
|
246
|
-
* Slack channel ID.
|
|
247
|
-
*/
|
|
248
|
-
slack_channel_id: string;
|
|
249
|
-
};
|
|
250
|
-
export type File = {
|
|
251
|
-
/**
|
|
252
|
-
* Unique file identifier.
|
|
253
|
-
*/
|
|
254
|
-
id: string;
|
|
255
|
-
/**
|
|
256
|
-
* Execution ID associated with the file.
|
|
257
|
-
*/
|
|
258
|
-
execution_id: string;
|
|
259
|
-
/**
|
|
260
|
-
* Full GCS object path (e.g., "2023-10-21_14-05-01/1697892305-screenshot.png").
|
|
261
|
-
*/
|
|
262
|
-
file_path: string;
|
|
263
|
-
/**
|
|
264
|
-
* File extension.
|
|
265
|
-
*/
|
|
266
|
-
file_ext: string;
|
|
267
|
-
/**
|
|
268
|
-
* File name.
|
|
269
|
-
*/
|
|
270
|
-
file_name: string;
|
|
271
|
-
/**
|
|
272
|
-
* Size of the file in bytes.
|
|
273
|
-
*/
|
|
274
|
-
file_size: number;
|
|
275
|
-
/**
|
|
276
|
-
* MIME type of the file.
|
|
277
|
-
*/
|
|
278
|
-
mime_type: string;
|
|
279
|
-
/**
|
|
280
|
-
* Timestamp when the file record was created.
|
|
281
|
-
*/
|
|
282
|
-
created_at: string;
|
|
283
|
-
/**
|
|
284
|
-
* Signed URL to download the file.
|
|
285
|
-
*/
|
|
286
|
-
signed_url: string;
|
|
62
|
+
result?: {
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
};
|
|
287
65
|
};
|
|
288
66
|
/**
|
|
289
|
-
*
|
|
67
|
+
* Status of the execution
|
|
290
68
|
*/
|
|
291
|
-
export type
|
|
69
|
+
export type Status = 'starting' | 'running' | 'paused' | 'completed' | 'cancelled' | 'failed' | 'awaiting_completion' | 'paused_by_agent';
|
|
70
|
+
export type ErrorResponse = {
|
|
292
71
|
/**
|
|
293
|
-
*
|
|
72
|
+
* Error message
|
|
294
73
|
*/
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* ID of the execution this message belongs to
|
|
298
|
-
*/
|
|
299
|
-
execution_id: string;
|
|
300
|
-
/**
|
|
301
|
-
* ID of the user who created the message
|
|
302
|
-
*/
|
|
303
|
-
user_id: string;
|
|
304
|
-
/**
|
|
305
|
-
* The message content
|
|
306
|
-
*/
|
|
307
|
-
message: string;
|
|
308
|
-
/**
|
|
309
|
-
* When the message was created
|
|
310
|
-
*/
|
|
311
|
-
created_at: string;
|
|
312
|
-
/**
|
|
313
|
-
* Whether the message has been injected into the agent's conversation
|
|
314
|
-
*/
|
|
315
|
-
injected: boolean;
|
|
316
|
-
/**
|
|
317
|
-
* When the message was injected into the agent's conversation
|
|
318
|
-
*/
|
|
319
|
-
injected_at: string;
|
|
74
|
+
error: string;
|
|
320
75
|
};
|
|
321
|
-
export type
|
|
76
|
+
export type BrowserSessionRecordingResponse = {
|
|
322
77
|
/**
|
|
323
|
-
* The
|
|
78
|
+
* The URL of the browser session recording
|
|
324
79
|
*/
|
|
325
|
-
|
|
80
|
+
recording_url: string;
|
|
326
81
|
};
|
|
327
82
|
/**
|
|
328
|
-
*
|
|
83
|
+
* Request to execute an agent with structured parameters including optional agent profile configuration
|
|
329
84
|
*/
|
|
330
|
-
export type
|
|
331
|
-
/**
|
|
332
|
-
* Maximum number of iterations for the workflow
|
|
333
|
-
*/
|
|
334
|
-
max_iterations?: number;
|
|
335
|
-
/**
|
|
336
|
-
* Timeout in seconds per step
|
|
337
|
-
*/
|
|
338
|
-
timeout_per_step?: number;
|
|
339
|
-
/**
|
|
340
|
-
* Browser viewport width
|
|
341
|
-
*/
|
|
342
|
-
viewport_width?: number;
|
|
343
|
-
/**
|
|
344
|
-
* Browser viewport height
|
|
345
|
-
*/
|
|
346
|
-
viewport_height?: number;
|
|
347
|
-
/**
|
|
348
|
-
* Maximum retries for LLM calls
|
|
349
|
-
*/
|
|
350
|
-
max_llm_retries?: number;
|
|
351
|
-
/**
|
|
352
|
-
* Delay between retries in seconds
|
|
353
|
-
*/
|
|
354
|
-
llm_retry_delay?: number;
|
|
355
|
-
/**
|
|
356
|
-
* Maximum pause duration in minutes
|
|
357
|
-
*/
|
|
358
|
-
max_pause_duration?: number;
|
|
359
|
-
/**
|
|
360
|
-
* Status check interval in seconds
|
|
361
|
-
*/
|
|
362
|
-
status_check_interval?: number;
|
|
363
|
-
/**
|
|
364
|
-
* Temperature for LLM (0.0 to 1.0)
|
|
365
|
-
*/
|
|
366
|
-
temperature?: number;
|
|
367
|
-
/**
|
|
368
|
-
* Prompt template for LLM
|
|
369
|
-
*/
|
|
370
|
-
prompt_template?: string;
|
|
85
|
+
export type StructuredAgentExecutionRequest = {
|
|
371
86
|
/**
|
|
372
|
-
*
|
|
87
|
+
* The ID of the browser profile to use
|
|
373
88
|
*/
|
|
374
|
-
|
|
89
|
+
agent_profile_id?: string;
|
|
375
90
|
/**
|
|
376
|
-
*
|
|
91
|
+
* Dynamic data to be merged into the saved agent configuration.
|
|
377
92
|
*/
|
|
378
|
-
|
|
93
|
+
dynamic_data?: {
|
|
94
|
+
[key: string]: unknown;
|
|
95
|
+
};
|
|
379
96
|
};
|
|
380
97
|
export type GetOpenApiData = {
|
|
381
98
|
body?: never;
|
|
@@ -389,472 +106,236 @@ export type GetOpenApiResponses = {
|
|
|
389
106
|
*/
|
|
390
107
|
200: unknown;
|
|
391
108
|
};
|
|
392
|
-
export type
|
|
393
|
-
body
|
|
394
|
-
path?: never;
|
|
395
|
-
query?: never;
|
|
396
|
-
url: '/health';
|
|
397
|
-
};
|
|
398
|
-
export type HealthCheckErrors = {
|
|
399
|
-
/**
|
|
400
|
-
* API is unhealthy
|
|
401
|
-
*/
|
|
402
|
-
500: {
|
|
109
|
+
export type UploadExecutionFilesData = {
|
|
110
|
+
body: {
|
|
403
111
|
/**
|
|
404
|
-
*
|
|
112
|
+
* Files to upload to the execution
|
|
405
113
|
*/
|
|
406
|
-
|
|
114
|
+
files?: Array<Blob | File>;
|
|
407
115
|
};
|
|
408
|
-
|
|
409
|
-
export type HealthCheckError = HealthCheckErrors[keyof HealthCheckErrors];
|
|
410
|
-
export type HealthCheckResponses = {
|
|
411
|
-
/**
|
|
412
|
-
* API is healthy
|
|
413
|
-
*/
|
|
414
|
-
200: {
|
|
116
|
+
path: {
|
|
415
117
|
/**
|
|
416
|
-
* The
|
|
118
|
+
* The ID of the execution
|
|
417
119
|
*/
|
|
418
|
-
|
|
419
|
-
};
|
|
420
|
-
};
|
|
421
|
-
export type HealthCheckResponse = HealthCheckResponses[keyof HealthCheckResponses];
|
|
422
|
-
export type GetAgentsData = {
|
|
423
|
-
body?: never;
|
|
424
|
-
path?: never;
|
|
425
|
-
query?: never;
|
|
426
|
-
url: '/agents';
|
|
427
|
-
};
|
|
428
|
-
export type GetAgentsResponses = {
|
|
429
|
-
/**
|
|
430
|
-
* List of agents
|
|
431
|
-
*/
|
|
432
|
-
200: Array<Agent>;
|
|
433
|
-
};
|
|
434
|
-
export type GetAgentsResponse = GetAgentsResponses[keyof GetAgentsResponses];
|
|
435
|
-
export type QueueOptimisationJobData = {
|
|
436
|
-
body?: OptimisationRequest;
|
|
437
|
-
path?: never;
|
|
438
|
-
query?: never;
|
|
439
|
-
url: '/optimiser';
|
|
440
|
-
};
|
|
441
|
-
export type QueueOptimisationJobResponses = {
|
|
442
|
-
/**
|
|
443
|
-
* Optimiser job created
|
|
444
|
-
*/
|
|
445
|
-
202: unknown;
|
|
446
|
-
};
|
|
447
|
-
export type CreateWorkflowData = {
|
|
448
|
-
body: CreateWorkflowRequest;
|
|
449
|
-
path: {
|
|
450
|
-
agent_name: string;
|
|
120
|
+
id: string;
|
|
451
121
|
};
|
|
452
122
|
query?: never;
|
|
453
|
-
url: '/
|
|
123
|
+
url: '/execution/{id}/files';
|
|
454
124
|
};
|
|
455
|
-
export type
|
|
125
|
+
export type UploadExecutionFilesErrors = {
|
|
456
126
|
/**
|
|
457
|
-
*
|
|
127
|
+
* Bad request
|
|
458
128
|
*/
|
|
459
|
-
400:
|
|
460
|
-
};
|
|
461
|
-
export type CreateWorkflowResponses = {
|
|
129
|
+
400: ErrorResponse;
|
|
462
130
|
/**
|
|
463
|
-
*
|
|
131
|
+
* Unauthorized
|
|
464
132
|
*/
|
|
465
|
-
|
|
466
|
-
};
|
|
467
|
-
export type CreateWorkflowResponse = CreateWorkflowResponses[keyof CreateWorkflowResponses];
|
|
468
|
-
export type DeleteWorkflowData = {
|
|
469
|
-
body?: never;
|
|
470
|
-
path: {
|
|
471
|
-
workflow_id: string;
|
|
472
|
-
};
|
|
473
|
-
query?: never;
|
|
474
|
-
url: '/workflow/{workflow_id}';
|
|
475
|
-
};
|
|
476
|
-
export type DeleteWorkflowErrors = {
|
|
133
|
+
401: ErrorResponse;
|
|
477
134
|
/**
|
|
478
|
-
*
|
|
135
|
+
* Execution not found
|
|
479
136
|
*/
|
|
480
|
-
404:
|
|
481
|
-
error?: string;
|
|
482
|
-
};
|
|
137
|
+
404: ErrorResponse;
|
|
483
138
|
};
|
|
484
|
-
export type
|
|
485
|
-
export type
|
|
139
|
+
export type UploadExecutionFilesError = UploadExecutionFilesErrors[keyof UploadExecutionFilesErrors];
|
|
140
|
+
export type UploadExecutionFilesResponses = {
|
|
486
141
|
/**
|
|
487
|
-
*
|
|
142
|
+
* Files uploaded successfully
|
|
488
143
|
*/
|
|
489
144
|
200: {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
};
|
|
499
|
-
query?: never;
|
|
500
|
-
url: '/workflow/{workflow_id}';
|
|
501
|
-
};
|
|
502
|
-
export type GetWorkflowErrors = {
|
|
503
|
-
/**
|
|
504
|
-
* Workflow not found
|
|
505
|
-
*/
|
|
506
|
-
404: unknown;
|
|
507
|
-
};
|
|
508
|
-
export type GetWorkflowResponses = {
|
|
509
|
-
/**
|
|
510
|
-
* Workflow
|
|
511
|
-
*/
|
|
512
|
-
200: Workflow;
|
|
513
|
-
};
|
|
514
|
-
export type GetWorkflowResponse = GetWorkflowResponses[keyof GetWorkflowResponses];
|
|
515
|
-
export type ExecuteWorkflowData = {
|
|
516
|
-
body: WorkflowExecutionRequest;
|
|
517
|
-
path: {
|
|
518
|
-
workflow_id: string;
|
|
519
|
-
};
|
|
520
|
-
query?: never;
|
|
521
|
-
url: '/workflow/{workflow_id}';
|
|
522
|
-
};
|
|
523
|
-
export type ExecuteWorkflowErrors = {
|
|
524
|
-
/**
|
|
525
|
-
* Invalid input or missing required fields
|
|
526
|
-
*/
|
|
527
|
-
400: unknown;
|
|
528
|
-
};
|
|
529
|
-
export type ExecuteWorkflowResponses = {
|
|
530
|
-
/**
|
|
531
|
-
* Workflow executed successfully, job queued
|
|
532
|
-
*/
|
|
533
|
-
202: string;
|
|
534
|
-
};
|
|
535
|
-
export type ExecuteWorkflowResponse = ExecuteWorkflowResponses[keyof ExecuteWorkflowResponses];
|
|
536
|
-
export type GetExecutionsForWorkflowData = {
|
|
537
|
-
body?: never;
|
|
538
|
-
path: {
|
|
539
|
-
workflow_id: string;
|
|
540
|
-
};
|
|
541
|
-
query?: never;
|
|
542
|
-
url: '/workflow/{workflow_id}/executions';
|
|
543
|
-
};
|
|
544
|
-
export type GetExecutionsForWorkflowResponses = {
|
|
545
|
-
/**
|
|
546
|
-
* Executions for the workflow
|
|
547
|
-
*/
|
|
548
|
-
200: Array<Execution>;
|
|
549
|
-
};
|
|
550
|
-
export type GetExecutionsForWorkflowResponse = GetExecutionsForWorkflowResponses[keyof GetExecutionsForWorkflowResponses];
|
|
551
|
-
export type DeleteWorkflowCredentialsData = {
|
|
552
|
-
body?: never;
|
|
553
|
-
path: {
|
|
554
|
-
workflow_id: string;
|
|
555
|
-
};
|
|
556
|
-
query?: never;
|
|
557
|
-
url: '/workflow/{workflow_id}/credentials';
|
|
558
|
-
};
|
|
559
|
-
export type DeleteWorkflowCredentialsErrors = {
|
|
560
|
-
/**
|
|
561
|
-
* Workflow not found
|
|
562
|
-
*/
|
|
563
|
-
404: unknown;
|
|
564
|
-
};
|
|
565
|
-
export type DeleteWorkflowCredentialsResponses = {
|
|
566
|
-
/**
|
|
567
|
-
* Credentials deleted successfully
|
|
568
|
-
*/
|
|
569
|
-
200: unknown;
|
|
570
|
-
};
|
|
571
|
-
export type GetWorkflowCredentialsData = {
|
|
572
|
-
body?: never;
|
|
573
|
-
path: {
|
|
574
|
-
workflow_id: string;
|
|
575
|
-
};
|
|
576
|
-
query?: never;
|
|
577
|
-
url: '/workflow/{workflow_id}/credentials';
|
|
578
|
-
};
|
|
579
|
-
export type GetWorkflowCredentialsErrors = {
|
|
580
|
-
/**
|
|
581
|
-
* Workflow not found
|
|
582
|
-
*/
|
|
583
|
-
404: unknown;
|
|
584
|
-
};
|
|
585
|
-
export type GetWorkflowCredentialsResponses = {
|
|
586
|
-
/**
|
|
587
|
-
* The workflow credentials
|
|
588
|
-
*/
|
|
589
|
-
200: CredentialsResponse;
|
|
590
|
-
};
|
|
591
|
-
export type GetWorkflowCredentialsResponse = GetWorkflowCredentialsResponses[keyof GetWorkflowCredentialsResponses];
|
|
592
|
-
export type AddWorkflowCredentialData = {
|
|
593
|
-
body: CredentialsRequest;
|
|
594
|
-
path: {
|
|
595
|
-
workflow_id: string;
|
|
145
|
+
/**
|
|
146
|
+
* Success message
|
|
147
|
+
*/
|
|
148
|
+
message?: string;
|
|
149
|
+
/**
|
|
150
|
+
* IDs of the uploaded files
|
|
151
|
+
*/
|
|
152
|
+
file_ids?: Array<string>;
|
|
596
153
|
};
|
|
597
|
-
query?: never;
|
|
598
|
-
url: '/workflow/{workflow_id}/credentials';
|
|
599
154
|
};
|
|
600
|
-
export type
|
|
601
|
-
|
|
602
|
-
* Credentials set successfully
|
|
603
|
-
*/
|
|
604
|
-
200: unknown;
|
|
605
|
-
};
|
|
606
|
-
export type GetCredentialsPublicKeyData = {
|
|
155
|
+
export type UploadExecutionFilesResponse = UploadExecutionFilesResponses[keyof UploadExecutionFilesResponses];
|
|
156
|
+
export type HealthCheckData = {
|
|
607
157
|
body?: never;
|
|
608
158
|
path?: never;
|
|
609
159
|
query?: never;
|
|
610
|
-
url: '/
|
|
611
|
-
};
|
|
612
|
-
export type GetCredentialsPublicKeyErrors = {
|
|
613
|
-
/**
|
|
614
|
-
* Public key not found
|
|
615
|
-
*/
|
|
616
|
-
404: unknown;
|
|
617
|
-
};
|
|
618
|
-
export type GetCredentialsPublicKeyResponses = {
|
|
619
|
-
/**
|
|
620
|
-
* The public key for credentials
|
|
621
|
-
*/
|
|
622
|
-
200: string;
|
|
623
|
-
};
|
|
624
|
-
export type GetCredentialsPublicKeyResponse = GetCredentialsPublicKeyResponses[keyof GetCredentialsPublicKeyResponses];
|
|
625
|
-
export type DeleteExecutionData = {
|
|
626
|
-
body?: never;
|
|
627
|
-
path: {
|
|
628
|
-
id: string;
|
|
629
|
-
};
|
|
630
|
-
query?: never;
|
|
631
|
-
url: '/execution/{id}';
|
|
160
|
+
url: '/health';
|
|
632
161
|
};
|
|
633
|
-
export type
|
|
162
|
+
export type HealthCheckErrors = {
|
|
634
163
|
/**
|
|
635
|
-
*
|
|
164
|
+
* API is unhealthy
|
|
636
165
|
*/
|
|
637
|
-
|
|
166
|
+
500: {
|
|
167
|
+
/**
|
|
168
|
+
* The error message
|
|
169
|
+
*/
|
|
638
170
|
error?: string;
|
|
639
171
|
};
|
|
640
172
|
};
|
|
641
|
-
export type
|
|
642
|
-
export type
|
|
173
|
+
export type HealthCheckError = HealthCheckErrors[keyof HealthCheckErrors];
|
|
174
|
+
export type HealthCheckResponses = {
|
|
643
175
|
/**
|
|
644
|
-
*
|
|
176
|
+
* API is healthy
|
|
645
177
|
*/
|
|
646
178
|
200: {
|
|
647
|
-
|
|
179
|
+
/**
|
|
180
|
+
* The health status of the API
|
|
181
|
+
*/
|
|
182
|
+
status?: string;
|
|
648
183
|
};
|
|
649
184
|
};
|
|
650
|
-
export type
|
|
651
|
-
export type
|
|
652
|
-
body
|
|
185
|
+
export type HealthCheckResponse = HealthCheckResponses[keyof HealthCheckResponses];
|
|
186
|
+
export type ExecuteAgentData = {
|
|
187
|
+
body: AgentExecutionRequest;
|
|
653
188
|
path: {
|
|
189
|
+
/**
|
|
190
|
+
* The ID of the agent
|
|
191
|
+
*/
|
|
654
192
|
id: string;
|
|
655
193
|
};
|
|
656
194
|
query?: never;
|
|
657
|
-
url: '/
|
|
195
|
+
url: '/agent/{id}';
|
|
658
196
|
};
|
|
659
|
-
export type
|
|
197
|
+
export type ExecuteAgentErrors = {
|
|
660
198
|
/**
|
|
661
|
-
*
|
|
199
|
+
* Invalid request
|
|
662
200
|
*/
|
|
663
|
-
|
|
664
|
-
};
|
|
665
|
-
export type GetExecutionResponses = {
|
|
201
|
+
400: ErrorResponse;
|
|
666
202
|
/**
|
|
667
|
-
*
|
|
203
|
+
* Agent not found
|
|
668
204
|
*/
|
|
669
|
-
|
|
670
|
-
};
|
|
671
|
-
export type GetExecutionResponse = GetExecutionResponses[keyof GetExecutionResponses];
|
|
672
|
-
export type UpdateExecutionStatusData = {
|
|
673
|
-
body: ExecutionStatus;
|
|
674
|
-
path: {
|
|
675
|
-
id: string;
|
|
676
|
-
};
|
|
677
|
-
query?: never;
|
|
678
|
-
url: '/execution/{id}/status';
|
|
679
|
-
};
|
|
680
|
-
export type UpdateExecutionStatusErrors = {
|
|
681
|
-
/**
|
|
682
|
-
* Invalid input
|
|
683
|
-
*/
|
|
684
|
-
400: unknown;
|
|
205
|
+
404: ErrorResponse;
|
|
685
206
|
/**
|
|
686
|
-
*
|
|
207
|
+
* Internal server error
|
|
687
208
|
*/
|
|
688
|
-
|
|
209
|
+
500: ErrorResponse;
|
|
689
210
|
};
|
|
690
|
-
export type
|
|
211
|
+
export type ExecuteAgentError = ExecuteAgentErrors[keyof ExecuteAgentErrors];
|
|
212
|
+
export type ExecuteAgentResponses = {
|
|
691
213
|
/**
|
|
692
|
-
*
|
|
214
|
+
* Agent execution started successfully
|
|
693
215
|
*/
|
|
694
|
-
|
|
216
|
+
202: ExecutionResponse;
|
|
695
217
|
};
|
|
696
|
-
export type
|
|
697
|
-
|
|
218
|
+
export type ExecuteAgentResponse = ExecuteAgentResponses[keyof ExecuteAgentResponses];
|
|
219
|
+
export type ExecuteAgentStructuredData = {
|
|
220
|
+
body: StructuredAgentExecutionRequest;
|
|
698
221
|
path: {
|
|
222
|
+
/**
|
|
223
|
+
* The ID of the agent
|
|
224
|
+
*/
|
|
699
225
|
id: string;
|
|
700
226
|
};
|
|
701
227
|
query?: never;
|
|
702
|
-
url: '/
|
|
703
|
-
};
|
|
704
|
-
export type GetBrowserSessionErrors = {
|
|
705
|
-
/**
|
|
706
|
-
* Browser session not found
|
|
707
|
-
*/
|
|
708
|
-
404: unknown;
|
|
709
|
-
};
|
|
710
|
-
export type GetBrowserSessionResponses = {
|
|
711
|
-
/**
|
|
712
|
-
* Browser session
|
|
713
|
-
*/
|
|
714
|
-
200: BrowserSession;
|
|
715
|
-
};
|
|
716
|
-
export type GetBrowserSessionResponse = GetBrowserSessionResponses[keyof GetBrowserSessionResponses];
|
|
717
|
-
export type SetSlackChannelData = {
|
|
718
|
-
body: SlackChannelRequest;
|
|
719
|
-
path?: never;
|
|
720
|
-
query?: never;
|
|
721
|
-
url: '/slack_channel';
|
|
228
|
+
url: '/agent/{id}/execute';
|
|
722
229
|
};
|
|
723
|
-
export type
|
|
230
|
+
export type ExecuteAgentStructuredErrors = {
|
|
724
231
|
/**
|
|
725
|
-
* Invalid
|
|
232
|
+
* Invalid request
|
|
726
233
|
*/
|
|
727
|
-
400:
|
|
234
|
+
400: ErrorResponse;
|
|
728
235
|
/**
|
|
729
|
-
*
|
|
236
|
+
* Agent not found
|
|
730
237
|
*/
|
|
731
|
-
404:
|
|
732
|
-
};
|
|
733
|
-
export type SetSlackChannelResponses = {
|
|
238
|
+
404: ErrorResponse;
|
|
734
239
|
/**
|
|
735
|
-
*
|
|
240
|
+
* Internal server error
|
|
736
241
|
*/
|
|
737
|
-
|
|
738
|
-
};
|
|
739
|
-
export type GetAgentWorkflowExecutionsData = {
|
|
740
|
-
body?: never;
|
|
741
|
-
path: {
|
|
742
|
-
agent_name: string;
|
|
743
|
-
};
|
|
744
|
-
query?: never;
|
|
745
|
-
url: '/agent/{agent_name}/workflows';
|
|
242
|
+
500: ErrorResponse;
|
|
746
243
|
};
|
|
747
|
-
export type
|
|
244
|
+
export type ExecuteAgentStructuredError = ExecuteAgentStructuredErrors[keyof ExecuteAgentStructuredErrors];
|
|
245
|
+
export type ExecuteAgentStructuredResponses = {
|
|
748
246
|
/**
|
|
749
|
-
*
|
|
247
|
+
* Agent execution started successfully
|
|
750
248
|
*/
|
|
751
|
-
|
|
249
|
+
202: ExecutionResponse;
|
|
752
250
|
};
|
|
753
|
-
export type
|
|
754
|
-
export type
|
|
251
|
+
export type ExecuteAgentStructuredResponse = ExecuteAgentStructuredResponses[keyof ExecuteAgentStructuredResponses];
|
|
252
|
+
export type GetExecutionStatusData = {
|
|
755
253
|
body?: never;
|
|
756
254
|
path: {
|
|
255
|
+
/**
|
|
256
|
+
* The ID of the execution
|
|
257
|
+
*/
|
|
757
258
|
id: string;
|
|
758
259
|
};
|
|
759
260
|
query?: never;
|
|
760
|
-
url: '/execution/{id}/
|
|
261
|
+
url: '/execution/{id}/status';
|
|
761
262
|
};
|
|
762
|
-
export type
|
|
263
|
+
export type GetExecutionStatusErrors = {
|
|
763
264
|
/**
|
|
764
265
|
* Execution not found
|
|
765
266
|
*/
|
|
766
|
-
404:
|
|
267
|
+
404: ErrorResponse;
|
|
268
|
+
/**
|
|
269
|
+
* Internal server error
|
|
270
|
+
*/
|
|
271
|
+
500: ErrorResponse;
|
|
767
272
|
};
|
|
768
|
-
export type
|
|
273
|
+
export type GetExecutionStatusError = GetExecutionStatusErrors[keyof GetExecutionStatusErrors];
|
|
274
|
+
export type GetExecutionStatusResponses = {
|
|
769
275
|
/**
|
|
770
|
-
*
|
|
276
|
+
* Execution status retrieved successfully
|
|
771
277
|
*/
|
|
772
|
-
200:
|
|
278
|
+
200: ExecutionStatusResponse;
|
|
773
279
|
};
|
|
774
|
-
export type
|
|
775
|
-
export type
|
|
280
|
+
export type GetExecutionStatusResponse = GetExecutionStatusResponses[keyof GetExecutionStatusResponses];
|
|
281
|
+
export type GetExecutionResultData = {
|
|
776
282
|
body?: never;
|
|
777
283
|
path: {
|
|
284
|
+
/**
|
|
285
|
+
* The ID of the execution
|
|
286
|
+
*/
|
|
778
287
|
id: string;
|
|
779
288
|
};
|
|
780
289
|
query?: never;
|
|
781
|
-
url: '/execution/{id}/
|
|
290
|
+
url: '/execution/{id}/result';
|
|
782
291
|
};
|
|
783
|
-
export type
|
|
292
|
+
export type GetExecutionResultErrors = {
|
|
784
293
|
/**
|
|
785
|
-
* Execution
|
|
786
|
-
*/
|
|
787
|
-
404: unknown;
|
|
788
|
-
};
|
|
789
|
-
export type GetExecutionFilesResponses = {
|
|
790
|
-
/**
|
|
791
|
-
* List of file records associated with the execution.
|
|
294
|
+
* Execution not found
|
|
792
295
|
*/
|
|
793
|
-
|
|
794
|
-
};
|
|
795
|
-
export type GetExecutionFilesResponse = GetExecutionFilesResponses[keyof GetExecutionFilesResponses];
|
|
796
|
-
export type GetWorkflowVersionsData = {
|
|
797
|
-
body?: never;
|
|
798
|
-
path: {
|
|
799
|
-
workflow_id: string;
|
|
800
|
-
};
|
|
801
|
-
query?: never;
|
|
802
|
-
url: '/workflow/{workflow_id}/versions';
|
|
803
|
-
};
|
|
804
|
-
export type GetWorkflowVersionsErrors = {
|
|
296
|
+
404: ErrorResponse;
|
|
805
297
|
/**
|
|
806
|
-
*
|
|
298
|
+
* Internal server error
|
|
807
299
|
*/
|
|
808
|
-
|
|
300
|
+
500: ErrorResponse;
|
|
809
301
|
};
|
|
810
|
-
export type
|
|
302
|
+
export type GetExecutionResultError = GetExecutionResultErrors[keyof GetExecutionResultErrors];
|
|
303
|
+
export type GetExecutionResultResponses = {
|
|
811
304
|
/**
|
|
812
|
-
*
|
|
305
|
+
* Execution result retrieved successfully
|
|
813
306
|
*/
|
|
814
|
-
200:
|
|
307
|
+
200: ExecutionResultResponse;
|
|
815
308
|
};
|
|
816
|
-
export type
|
|
817
|
-
export type
|
|
309
|
+
export type GetExecutionResultResponse = GetExecutionResultResponses[keyof GetExecutionResultResponses];
|
|
310
|
+
export type GetBrowserSessionRecordingData = {
|
|
818
311
|
body?: never;
|
|
819
312
|
path: {
|
|
313
|
+
/**
|
|
314
|
+
* The ID of the execution
|
|
315
|
+
*/
|
|
820
316
|
id: string;
|
|
821
317
|
};
|
|
822
318
|
query?: never;
|
|
823
|
-
url: '/execution/{id}/
|
|
319
|
+
url: '/execution/{id}/browser_session/recording';
|
|
824
320
|
};
|
|
825
|
-
export type
|
|
321
|
+
export type GetBrowserSessionRecordingErrors = {
|
|
826
322
|
/**
|
|
827
|
-
*
|
|
323
|
+
* Browser session not found
|
|
828
324
|
*/
|
|
829
|
-
404:
|
|
830
|
-
};
|
|
831
|
-
export type GetExecutionUserMessagesResponses = {
|
|
325
|
+
404: ErrorResponse;
|
|
832
326
|
/**
|
|
833
|
-
*
|
|
834
|
-
*/
|
|
835
|
-
200: Array<UserMessage>;
|
|
836
|
-
};
|
|
837
|
-
export type GetExecutionUserMessagesResponse = GetExecutionUserMessagesResponses[keyof GetExecutionUserMessagesResponses];
|
|
838
|
-
export type CreateExecutionUserMessageData = {
|
|
839
|
-
body: CreateMessageRequest;
|
|
840
|
-
path: {
|
|
841
|
-
id: string;
|
|
842
|
-
};
|
|
843
|
-
query?: never;
|
|
844
|
-
url: '/execution/{id}/user_messages';
|
|
845
|
-
};
|
|
846
|
-
export type CreateExecutionUserMessageErrors = {
|
|
847
|
-
/**
|
|
848
|
-
* Execution not found
|
|
327
|
+
* Internal server error
|
|
849
328
|
*/
|
|
850
|
-
|
|
329
|
+
500: ErrorResponse;
|
|
851
330
|
};
|
|
852
|
-
export type
|
|
331
|
+
export type GetBrowserSessionRecordingError = GetBrowserSessionRecordingErrors[keyof GetBrowserSessionRecordingErrors];
|
|
332
|
+
export type GetBrowserSessionRecordingResponses = {
|
|
853
333
|
/**
|
|
854
|
-
*
|
|
334
|
+
* Browser session recording retrieved successfully
|
|
855
335
|
*/
|
|
856
|
-
|
|
336
|
+
200: BrowserSessionRecordingResponse;
|
|
857
337
|
};
|
|
338
|
+
export type GetBrowserSessionRecordingResponse = GetBrowserSessionRecordingResponses[keyof GetBrowserSessionRecordingResponses];
|
|
858
339
|
export type ClientOptions = {
|
|
859
|
-
baseUrl: `${string}://${string}/api/v1` | (string & {});
|
|
340
|
+
baseUrl: 'https://odyssey.asteroid.ai/api/v1' | `${string}://${string}/api/v1` | (string & {});
|
|
860
341
|
};
|