asteroid-odyssey 1.0.23 → 1.0.25
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 +8 -91
- package/dist/generated/agents/sdk.gen.js +31 -226
- package/dist/generated/agents/types.gen.d.ts +71 -741
- package/dist/index.d.ts +16 -58
- package/dist/index.js +36 -97
- package/package.json +1 -1
|
@@ -1,381 +1,56 @@
|
|
|
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;
|
|
97
|
-
/**
|
|
98
|
-
* Workflow name.
|
|
99
|
-
*/
|
|
100
|
-
name: string;
|
|
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>;
|
|
7
|
+
export type ExecutionResponse = {
|
|
105
8
|
/**
|
|
106
|
-
* The
|
|
9
|
+
* The ID of the execution
|
|
107
10
|
*/
|
|
108
|
-
|
|
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>;
|
|
138
|
-
};
|
|
139
|
-
export type Credential = {
|
|
140
|
-
/**
|
|
141
|
-
* The credential name
|
|
142
|
-
*/
|
|
143
|
-
name: string;
|
|
144
|
-
/**
|
|
145
|
-
* The encrypted credential
|
|
146
|
-
*/
|
|
147
|
-
data: string;
|
|
148
|
-
};
|
|
149
|
-
export type CredentialsResponse = {
|
|
150
|
-
/**
|
|
151
|
-
* The name of the workflow
|
|
152
|
-
*/
|
|
153
|
-
workflow_name: string;
|
|
154
|
-
credentials: Array<Credential>;
|
|
155
|
-
};
|
|
156
|
-
export type Execution = {
|
|
157
|
-
/**
|
|
158
|
-
* Execution identifier.
|
|
159
|
-
*/
|
|
160
|
-
id: string;
|
|
161
|
-
/**
|
|
162
|
-
* Run ID.
|
|
163
|
-
*/
|
|
164
|
-
run_id: string;
|
|
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;
|
|
176
|
-
/**
|
|
177
|
-
* The result of the execution.
|
|
178
|
-
*/
|
|
179
|
-
result: {
|
|
180
|
-
[key: string]: unknown;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* The date and time the execution was created.
|
|
184
|
-
*/
|
|
185
|
-
created_at: string;
|
|
186
|
-
/**
|
|
187
|
-
* The error that occurred during the execution.
|
|
188
|
-
*/
|
|
189
|
-
error?: string;
|
|
11
|
+
execution_id: string;
|
|
190
12
|
};
|
|
191
|
-
export type
|
|
13
|
+
export type ExecutionStatusResponse = {
|
|
192
14
|
/**
|
|
193
|
-
*
|
|
15
|
+
* The ID of the execution
|
|
194
16
|
*/
|
|
195
17
|
execution_id: string;
|
|
196
18
|
status: Status;
|
|
197
19
|
/**
|
|
198
|
-
* Reason for the status
|
|
20
|
+
* Reason for the current status (if applicable)
|
|
199
21
|
*/
|
|
200
22
|
reason?: string;
|
|
201
23
|
/**
|
|
202
|
-
*
|
|
24
|
+
* Time when the status was last updated
|
|
203
25
|
*/
|
|
204
|
-
|
|
26
|
+
updated_at?: string;
|
|
205
27
|
};
|
|
206
|
-
|
|
207
|
-
* Status of the execution.
|
|
208
|
-
*/
|
|
209
|
-
export type Status = 'starting' | 'running' | 'paused' | 'completed' | 'cancelled' | 'failed';
|
|
210
|
-
export type BrowserSession = {
|
|
28
|
+
export type ExecutionResultResponse = {
|
|
211
29
|
/**
|
|
212
|
-
*
|
|
213
|
-
*/
|
|
214
|
-
id?: string;
|
|
215
|
-
/**
|
|
216
|
-
* Browser name (Anchor, Browserbase, etc.)
|
|
217
|
-
*/
|
|
218
|
-
browser_name?: string;
|
|
219
|
-
/**
|
|
220
|
-
* Execution ID.
|
|
221
|
-
*/
|
|
222
|
-
execution_id?: string;
|
|
223
|
-
/**
|
|
224
|
-
* CDP URL.
|
|
225
|
-
*/
|
|
226
|
-
cdp_url?: string;
|
|
227
|
-
/**
|
|
228
|
-
* Debugger URL.
|
|
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;
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* A message given to the agent by the user
|
|
290
|
-
*/
|
|
291
|
-
export type UserMessage = {
|
|
292
|
-
/**
|
|
293
|
-
* Unique identifier for the message
|
|
294
|
-
*/
|
|
295
|
-
id: string;
|
|
296
|
-
/**
|
|
297
|
-
* ID of the execution this message belongs to
|
|
30
|
+
* The ID of the execution
|
|
298
31
|
*/
|
|
299
32
|
execution_id: string;
|
|
33
|
+
status: Status;
|
|
300
34
|
/**
|
|
301
|
-
*
|
|
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
|
|
35
|
+
* The execution result data (if execution is completed)
|
|
318
36
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
37
|
+
result?: {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
};
|
|
322
40
|
/**
|
|
323
|
-
*
|
|
41
|
+
* Error message (if execution failed)
|
|
324
42
|
*/
|
|
325
|
-
|
|
43
|
+
error?: string;
|
|
326
44
|
};
|
|
327
45
|
/**
|
|
328
|
-
*
|
|
46
|
+
* Status of the execution
|
|
329
47
|
*/
|
|
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;
|
|
48
|
+
export type Status = 'starting' | 'running' | 'paused' | 'completed' | 'cancelled' | 'failed' | 'awaiting_completion';
|
|
49
|
+
export type ErrorResponse = {
|
|
363
50
|
/**
|
|
364
|
-
*
|
|
51
|
+
* Error message
|
|
365
52
|
*/
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Prompt template for LLM
|
|
369
|
-
*/
|
|
370
|
-
prompt_template?: string;
|
|
371
|
-
/**
|
|
372
|
-
* Allowed tools for LLM
|
|
373
|
-
*/
|
|
374
|
-
allowed_tools?: Array<string>;
|
|
375
|
-
/**
|
|
376
|
-
* Require human approval to finish
|
|
377
|
-
*/
|
|
378
|
-
require_human_approval_to_finish?: boolean;
|
|
53
|
+
error: string;
|
|
379
54
|
};
|
|
380
55
|
export type GetOpenApiData = {
|
|
381
56
|
body?: never;
|
|
@@ -419,442 +94,97 @@ export type HealthCheckResponses = {
|
|
|
419
94
|
};
|
|
420
95
|
};
|
|
421
96
|
export type HealthCheckResponse = HealthCheckResponses[keyof HealthCheckResponses];
|
|
422
|
-
export type
|
|
423
|
-
body
|
|
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;
|
|
451
|
-
};
|
|
452
|
-
query?: never;
|
|
453
|
-
url: '/workflow/{agent_name}/create';
|
|
454
|
-
};
|
|
455
|
-
export type CreateWorkflowErrors = {
|
|
456
|
-
/**
|
|
457
|
-
* Invalid input
|
|
458
|
-
*/
|
|
459
|
-
400: unknown;
|
|
460
|
-
};
|
|
461
|
-
export type CreateWorkflowResponses = {
|
|
462
|
-
/**
|
|
463
|
-
* The ID of the workflow
|
|
464
|
-
*/
|
|
465
|
-
201: string;
|
|
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 = {
|
|
477
|
-
/**
|
|
478
|
-
* Workflow not found
|
|
479
|
-
*/
|
|
480
|
-
404: {
|
|
481
|
-
error?: string;
|
|
482
|
-
};
|
|
483
|
-
};
|
|
484
|
-
export type DeleteWorkflowError = DeleteWorkflowErrors[keyof DeleteWorkflowErrors];
|
|
485
|
-
export type DeleteWorkflowResponses = {
|
|
486
|
-
/**
|
|
487
|
-
* Workflow deleted successfully
|
|
488
|
-
*/
|
|
489
|
-
200: {
|
|
490
|
-
result?: string;
|
|
491
|
-
};
|
|
492
|
-
};
|
|
493
|
-
export type DeleteWorkflowResponse = DeleteWorkflowResponses[keyof DeleteWorkflowResponses];
|
|
494
|
-
export type GetWorkflowData = {
|
|
495
|
-
body?: never;
|
|
496
|
-
path: {
|
|
497
|
-
workflow_id: string;
|
|
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;
|
|
596
|
-
};
|
|
597
|
-
query?: never;
|
|
598
|
-
url: '/workflow/{workflow_id}/credentials';
|
|
599
|
-
};
|
|
600
|
-
export type AddWorkflowCredentialResponses = {
|
|
601
|
-
/**
|
|
602
|
-
* Credentials set successfully
|
|
603
|
-
*/
|
|
604
|
-
200: unknown;
|
|
605
|
-
};
|
|
606
|
-
export type GetCredentialsPublicKeyData = {
|
|
607
|
-
body?: never;
|
|
608
|
-
path?: never;
|
|
609
|
-
query?: never;
|
|
610
|
-
url: '/credentials/public_key';
|
|
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}';
|
|
632
|
-
};
|
|
633
|
-
export type DeleteExecutionErrors = {
|
|
634
|
-
/**
|
|
635
|
-
* Execution not found
|
|
636
|
-
*/
|
|
637
|
-
404: {
|
|
638
|
-
error?: string;
|
|
639
|
-
};
|
|
640
|
-
};
|
|
641
|
-
export type DeleteExecutionError = DeleteExecutionErrors[keyof DeleteExecutionErrors];
|
|
642
|
-
export type DeleteExecutionResponses = {
|
|
643
|
-
/**
|
|
644
|
-
* Execution deleted successfully
|
|
645
|
-
*/
|
|
646
|
-
200: {
|
|
647
|
-
result?: string;
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
export type DeleteExecutionResponse = DeleteExecutionResponses[keyof DeleteExecutionResponses];
|
|
651
|
-
export type GetExecutionData = {
|
|
652
|
-
body?: never;
|
|
653
|
-
path: {
|
|
654
|
-
id: string;
|
|
655
|
-
};
|
|
656
|
-
query?: never;
|
|
657
|
-
url: '/execution/{id}';
|
|
658
|
-
};
|
|
659
|
-
export type GetExecutionErrors = {
|
|
660
|
-
/**
|
|
661
|
-
* Execution not found
|
|
662
|
-
*/
|
|
663
|
-
404: unknown;
|
|
664
|
-
};
|
|
665
|
-
export type GetExecutionResponses = {
|
|
666
|
-
/**
|
|
667
|
-
* Execution
|
|
668
|
-
*/
|
|
669
|
-
200: Execution;
|
|
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;
|
|
685
|
-
/**
|
|
686
|
-
* Execution not found
|
|
687
|
-
*/
|
|
688
|
-
404: unknown;
|
|
689
|
-
};
|
|
690
|
-
export type UpdateExecutionStatusResponses = {
|
|
691
|
-
/**
|
|
692
|
-
* Execution status updated
|
|
693
|
-
*/
|
|
694
|
-
200: unknown;
|
|
695
|
-
};
|
|
696
|
-
export type GetBrowserSessionData = {
|
|
697
|
-
body?: never;
|
|
97
|
+
export type ExecuteAgentData = {
|
|
98
|
+
body: AgentExecutionRequest;
|
|
698
99
|
path: {
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the agent
|
|
102
|
+
*/
|
|
699
103
|
id: string;
|
|
700
104
|
};
|
|
701
105
|
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';
|
|
106
|
+
url: '/agent/{id}';
|
|
722
107
|
};
|
|
723
|
-
export type
|
|
108
|
+
export type ExecuteAgentErrors = {
|
|
724
109
|
/**
|
|
725
|
-
* Invalid
|
|
110
|
+
* Invalid request
|
|
726
111
|
*/
|
|
727
|
-
400:
|
|
112
|
+
400: ErrorResponse;
|
|
728
113
|
/**
|
|
729
|
-
*
|
|
114
|
+
* Agent not found
|
|
730
115
|
*/
|
|
731
|
-
404:
|
|
732
|
-
};
|
|
733
|
-
export type SetSlackChannelResponses = {
|
|
116
|
+
404: ErrorResponse;
|
|
734
117
|
/**
|
|
735
|
-
*
|
|
118
|
+
* Internal server error
|
|
736
119
|
*/
|
|
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';
|
|
120
|
+
500: ErrorResponse;
|
|
746
121
|
};
|
|
747
|
-
export type
|
|
122
|
+
export type ExecuteAgentError = ExecuteAgentErrors[keyof ExecuteAgentErrors];
|
|
123
|
+
export type ExecuteAgentResponses = {
|
|
748
124
|
/**
|
|
749
|
-
*
|
|
125
|
+
* Agent execution started successfully
|
|
750
126
|
*/
|
|
751
|
-
|
|
127
|
+
202: ExecutionResponse;
|
|
752
128
|
};
|
|
753
|
-
export type
|
|
754
|
-
export type
|
|
129
|
+
export type ExecuteAgentResponse = ExecuteAgentResponses[keyof ExecuteAgentResponses];
|
|
130
|
+
export type GetExecutionStatusData = {
|
|
755
131
|
body?: never;
|
|
756
132
|
path: {
|
|
133
|
+
/**
|
|
134
|
+
* The ID of the execution
|
|
135
|
+
*/
|
|
757
136
|
id: string;
|
|
758
137
|
};
|
|
759
138
|
query?: never;
|
|
760
|
-
url: '/execution/{id}/
|
|
139
|
+
url: '/execution/{id}/status';
|
|
761
140
|
};
|
|
762
|
-
export type
|
|
141
|
+
export type GetExecutionStatusErrors = {
|
|
763
142
|
/**
|
|
764
143
|
* Execution not found
|
|
765
144
|
*/
|
|
766
|
-
404:
|
|
767
|
-
};
|
|
768
|
-
export type GetExecutionProgressResponses = {
|
|
769
|
-
/**
|
|
770
|
-
* Progress of the execution
|
|
771
|
-
*/
|
|
772
|
-
200: Array<ProgressUpdate>;
|
|
773
|
-
};
|
|
774
|
-
export type GetExecutionProgressResponse = GetExecutionProgressResponses[keyof GetExecutionProgressResponses];
|
|
775
|
-
export type GetExecutionFilesData = {
|
|
776
|
-
body?: never;
|
|
777
|
-
path: {
|
|
778
|
-
id: string;
|
|
779
|
-
};
|
|
780
|
-
query?: never;
|
|
781
|
-
url: '/execution/{id}/files';
|
|
782
|
-
};
|
|
783
|
-
export type GetExecutionFilesErrors = {
|
|
784
|
-
/**
|
|
785
|
-
* Execution files not found.
|
|
786
|
-
*/
|
|
787
|
-
404: unknown;
|
|
788
|
-
};
|
|
789
|
-
export type GetExecutionFilesResponses = {
|
|
790
|
-
/**
|
|
791
|
-
* List of file records associated with the execution.
|
|
792
|
-
*/
|
|
793
|
-
200: Array<File>;
|
|
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 = {
|
|
145
|
+
404: ErrorResponse;
|
|
805
146
|
/**
|
|
806
|
-
*
|
|
147
|
+
* Internal server error
|
|
807
148
|
*/
|
|
808
|
-
|
|
149
|
+
500: ErrorResponse;
|
|
809
150
|
};
|
|
810
|
-
export type
|
|
151
|
+
export type GetExecutionStatusError = GetExecutionStatusErrors[keyof GetExecutionStatusErrors];
|
|
152
|
+
export type GetExecutionStatusResponses = {
|
|
811
153
|
/**
|
|
812
|
-
*
|
|
154
|
+
* Execution status retrieved successfully
|
|
813
155
|
*/
|
|
814
|
-
200:
|
|
156
|
+
200: ExecutionStatusResponse;
|
|
815
157
|
};
|
|
816
|
-
export type
|
|
817
|
-
export type
|
|
158
|
+
export type GetExecutionStatusResponse = GetExecutionStatusResponses[keyof GetExecutionStatusResponses];
|
|
159
|
+
export type GetExecutionResultData = {
|
|
818
160
|
body?: never;
|
|
819
161
|
path: {
|
|
162
|
+
/**
|
|
163
|
+
* The ID of the execution
|
|
164
|
+
*/
|
|
820
165
|
id: string;
|
|
821
166
|
};
|
|
822
167
|
query?: never;
|
|
823
|
-
url: '/execution/{id}/
|
|
168
|
+
url: '/execution/{id}/result';
|
|
824
169
|
};
|
|
825
|
-
export type
|
|
170
|
+
export type GetExecutionResultErrors = {
|
|
826
171
|
/**
|
|
827
172
|
* Execution not found
|
|
828
173
|
*/
|
|
829
|
-
404:
|
|
830
|
-
};
|
|
831
|
-
export type GetExecutionUserMessagesResponses = {
|
|
832
|
-
/**
|
|
833
|
-
* List of messages for the execution
|
|
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 = {
|
|
174
|
+
404: ErrorResponse;
|
|
847
175
|
/**
|
|
848
|
-
*
|
|
176
|
+
* Internal server error
|
|
849
177
|
*/
|
|
850
|
-
|
|
178
|
+
500: ErrorResponse;
|
|
851
179
|
};
|
|
852
|
-
export type
|
|
180
|
+
export type GetExecutionResultError = GetExecutionResultErrors[keyof GetExecutionResultErrors];
|
|
181
|
+
export type GetExecutionResultResponses = {
|
|
853
182
|
/**
|
|
854
|
-
*
|
|
183
|
+
* Execution result retrieved successfully
|
|
855
184
|
*/
|
|
856
|
-
|
|
185
|
+
200: ExecutionResultResponse;
|
|
857
186
|
};
|
|
187
|
+
export type GetExecutionResultResponse = GetExecutionResultResponses[keyof GetExecutionResultResponses];
|
|
858
188
|
export type ClientOptions = {
|
|
859
|
-
baseUrl:
|
|
189
|
+
baseUrl: 'https://odyssey.asteroid.ai/api/v1' | (string & {});
|
|
860
190
|
};
|