asteroid-odyssey 1.3.10 → 1.6.4
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/README.md +32 -5
- package/dist/index.d.mts +1230 -2044
- package/dist/index.d.ts +1230 -2044
- package/dist/index.js +8 -2
- package/dist/index.mjs +8 -2
- package/package.json +6 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type AuthToken
|
|
2
|
-
interface Auth
|
|
1
|
+
type AuthToken = string | undefined;
|
|
2
|
+
interface Auth {
|
|
3
3
|
/**
|
|
4
4
|
* Which part of the request do we use to send the auth?
|
|
5
5
|
*
|
|
@@ -16,53 +16,60 @@ interface Auth$1 {
|
|
|
16
16
|
type: 'apiKey' | 'http';
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
interface SerializerOptions
|
|
19
|
+
interface SerializerOptions<T> {
|
|
20
20
|
/**
|
|
21
21
|
* @default true
|
|
22
22
|
*/
|
|
23
23
|
explode: boolean;
|
|
24
24
|
style: T;
|
|
25
25
|
}
|
|
26
|
-
type ArrayStyle
|
|
27
|
-
type ObjectStyle
|
|
26
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
27
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
28
28
|
|
|
29
|
-
type QuerySerializer
|
|
30
|
-
type BodySerializer
|
|
31
|
-
|
|
29
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
30
|
+
type BodySerializer = (body: any) => any;
|
|
31
|
+
type QuerySerializerOptionsObject = {
|
|
32
32
|
allowReserved?: boolean;
|
|
33
|
-
array?: SerializerOptions
|
|
34
|
-
object?: SerializerOptions
|
|
35
|
-
}
|
|
33
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
34
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
35
|
+
};
|
|
36
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
37
|
+
/**
|
|
38
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
39
|
+
* override the global array/object settings for specific parameter names.
|
|
40
|
+
*/
|
|
41
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
42
|
+
};
|
|
36
43
|
|
|
37
|
-
|
|
44
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
45
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
38
46
|
/**
|
|
39
47
|
* Returns the final request URL.
|
|
40
48
|
*/
|
|
41
49
|
buildUrl: BuildUrlFn;
|
|
42
|
-
connect: MethodFn;
|
|
43
|
-
delete: MethodFn;
|
|
44
|
-
get: MethodFn;
|
|
45
50
|
getConfig: () => Config;
|
|
46
|
-
head: MethodFn;
|
|
47
|
-
options: MethodFn;
|
|
48
|
-
patch: MethodFn;
|
|
49
|
-
post: MethodFn;
|
|
50
|
-
put: MethodFn;
|
|
51
51
|
request: RequestFn;
|
|
52
52
|
setConfig: (config: Config) => Config;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
} & {
|
|
54
|
+
[K in HttpMethod]: MethodFn;
|
|
55
|
+
} & ([SseFn] extends [never] ? {
|
|
56
|
+
sse?: never;
|
|
57
|
+
} : {
|
|
58
|
+
sse: {
|
|
59
|
+
[K in HttpMethod]: SseFn;
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
interface Config$1 {
|
|
56
63
|
/**
|
|
57
64
|
* Auth token or a function returning auth token. The resolved value will be
|
|
58
65
|
* added to the request payload as defined by its `security` array.
|
|
59
66
|
*/
|
|
60
|
-
auth?: ((auth: Auth
|
|
67
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
61
68
|
/**
|
|
62
69
|
* A function for serializing request body parameter. By default,
|
|
63
70
|
* {@link JSON.stringify()} will be used.
|
|
64
71
|
*/
|
|
65
|
-
bodySerializer?: BodySerializer
|
|
72
|
+
bodySerializer?: BodySerializer | null;
|
|
66
73
|
/**
|
|
67
74
|
* An object containing any HTTP headers that you want to pre-populate your
|
|
68
75
|
* `Headers` object with.
|
|
@@ -75,7 +82,7 @@ interface Config$3 {
|
|
|
75
82
|
*
|
|
76
83
|
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
77
84
|
*/
|
|
78
|
-
method?:
|
|
85
|
+
method?: Uppercase<HttpMethod>;
|
|
79
86
|
/**
|
|
80
87
|
* A function for serializing request query parameters. By default, arrays
|
|
81
88
|
* will be exploded in form style, objects will be exploded in deepObject
|
|
@@ -86,7 +93,7 @@ interface Config$3 {
|
|
|
86
93
|
*
|
|
87
94
|
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
88
95
|
*/
|
|
89
|
-
querySerializer?: QuerySerializer
|
|
96
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
90
97
|
/**
|
|
91
98
|
* A function validating request data. This is useful if you want to ensure
|
|
92
99
|
* the request conforms to the desired shape, so it can be safely sent to
|
|
@@ -106,257 +113,96 @@ interface Config$3 {
|
|
|
106
113
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
107
114
|
}
|
|
108
115
|
|
|
109
|
-
type
|
|
110
|
-
type ReqInterceptor$1<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
111
|
-
type ResInterceptor$1<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
112
|
-
declare class Interceptors$1<Interceptor> {
|
|
113
|
-
_fns: (Interceptor | null)[];
|
|
114
|
-
constructor();
|
|
115
|
-
clear(): void;
|
|
116
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
117
|
-
exists(id: number | Interceptor): boolean;
|
|
118
|
-
eject(id: number | Interceptor): void;
|
|
119
|
-
update(id: number | Interceptor, fn: Interceptor): number | false | Interceptor;
|
|
120
|
-
use(fn: Interceptor): number;
|
|
121
|
-
}
|
|
122
|
-
interface Middleware$1<Req, Res, Err, Options> {
|
|
123
|
-
error: Pick<Interceptors$1<ErrInterceptor$1<Err, Res, Req, Options>>, 'eject' | 'use'>;
|
|
124
|
-
request: Pick<Interceptors$1<ReqInterceptor$1<Req, Options>>, 'eject' | 'use'>;
|
|
125
|
-
response: Pick<Interceptors$1<ResInterceptor$1<Res, Req, Options>>, 'eject' | 'use'>;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
type ResponseStyle$1 = 'data' | 'fields';
|
|
129
|
-
interface Config$2<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$3 {
|
|
130
|
-
/**
|
|
131
|
-
* Base URL for all requests made by this client.
|
|
132
|
-
*/
|
|
133
|
-
baseUrl?: T['baseUrl'];
|
|
116
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
134
117
|
/**
|
|
135
118
|
* Fetch API implementation. You can use this option to provide a custom
|
|
136
119
|
* fetch instance.
|
|
137
120
|
*
|
|
138
121
|
* @default globalThis.fetch
|
|
139
122
|
*/
|
|
140
|
-
fetch?:
|
|
123
|
+
fetch?: typeof fetch;
|
|
141
124
|
/**
|
|
142
|
-
*
|
|
143
|
-
* options won't have any effect.
|
|
144
|
-
*
|
|
145
|
-
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
125
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
146
126
|
*/
|
|
147
|
-
|
|
127
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
148
128
|
/**
|
|
149
|
-
*
|
|
150
|
-
* will infer the appropriate method from the `Content-Type` response header.
|
|
151
|
-
* You can override this behavior with any of the {@link Body} methods.
|
|
152
|
-
* Select `stream` if you don't want to parse response data at all.
|
|
129
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
153
130
|
*
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
|
-
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
157
|
-
/**
|
|
158
|
-
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
131
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
159
132
|
*
|
|
160
|
-
* @
|
|
133
|
+
* @param error The error that occurred.
|
|
161
134
|
*/
|
|
162
|
-
|
|
135
|
+
onSseError?: (error: unknown) => void;
|
|
163
136
|
/**
|
|
164
|
-
*
|
|
137
|
+
* Callback invoked when an event is streamed from the server.
|
|
165
138
|
*
|
|
166
|
-
*
|
|
167
|
-
*/
|
|
168
|
-
throwOnError?: T['throwOnError'];
|
|
169
|
-
}
|
|
170
|
-
interface RequestOptions$1<TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$2<{
|
|
171
|
-
responseStyle: TResponseStyle;
|
|
172
|
-
throwOnError: ThrowOnError;
|
|
173
|
-
}> {
|
|
174
|
-
/**
|
|
175
|
-
* Any body that you want to add to your request.
|
|
139
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
176
140
|
*
|
|
177
|
-
*
|
|
178
|
-
|
|
179
|
-
body?: unknown;
|
|
180
|
-
path?: Record<string, unknown>;
|
|
181
|
-
query?: Record<string, unknown>;
|
|
182
|
-
/**
|
|
183
|
-
* Security mechanism(s) to use for the request.
|
|
141
|
+
* @param event Event streamed from the server.
|
|
142
|
+
* @returns Nothing (void).
|
|
184
143
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
interface ResolvedRequestOptions$1<TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$1<TResponseStyle, ThrowOnError, Url> {
|
|
189
|
-
serializedBody?: string;
|
|
190
|
-
}
|
|
191
|
-
type RequestResult$1<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$1 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
192
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
193
|
-
request: Request;
|
|
194
|
-
response: Response;
|
|
195
|
-
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
196
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
197
|
-
error: undefined;
|
|
198
|
-
} | {
|
|
199
|
-
data: undefined;
|
|
200
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
201
|
-
}) & {
|
|
202
|
-
request: Request;
|
|
203
|
-
response: Response;
|
|
204
|
-
}>;
|
|
205
|
-
interface ClientOptions$3 {
|
|
206
|
-
baseUrl?: string;
|
|
207
|
-
responseStyle?: ResponseStyle$1;
|
|
208
|
-
throwOnError?: boolean;
|
|
209
|
-
}
|
|
210
|
-
type MethodFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
211
|
-
type RequestFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$1<TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
212
|
-
type BuildUrlFn$1 = <TData extends {
|
|
213
|
-
body?: unknown;
|
|
214
|
-
path?: Record<string, unknown>;
|
|
215
|
-
query?: Record<string, unknown>;
|
|
216
|
-
url: string;
|
|
217
|
-
}>(options: Pick<TData, 'url'> & Options$3<TData>) => string;
|
|
218
|
-
type Client$2 = Client$3<RequestFn$1, Config$2, MethodFn$1, BuildUrlFn$1> & {
|
|
219
|
-
interceptors: Middleware$1<Request, Response, unknown, ResolvedRequestOptions$1>;
|
|
220
|
-
};
|
|
221
|
-
interface TDataShape$1 {
|
|
222
|
-
body?: unknown;
|
|
223
|
-
headers?: unknown;
|
|
224
|
-
path?: unknown;
|
|
225
|
-
query?: unknown;
|
|
226
|
-
url: string;
|
|
227
|
-
}
|
|
228
|
-
type OmitKeys$1<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
229
|
-
type Options$3<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$1<RequestOptions$1<TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & Omit<TData, 'url'>;
|
|
230
|
-
|
|
231
|
-
type AuthToken = string | undefined;
|
|
232
|
-
interface Auth {
|
|
144
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
145
|
+
serializedBody?: RequestInit['body'];
|
|
233
146
|
/**
|
|
234
|
-
*
|
|
147
|
+
* Default retry delay in milliseconds.
|
|
235
148
|
*
|
|
236
|
-
*
|
|
237
|
-
*/
|
|
238
|
-
in?: 'header' | 'query' | 'cookie';
|
|
239
|
-
/**
|
|
240
|
-
* Header or query parameter name.
|
|
149
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
241
150
|
*
|
|
242
|
-
* @default
|
|
243
|
-
*/
|
|
244
|
-
name?: string;
|
|
245
|
-
scheme?: 'basic' | 'bearer';
|
|
246
|
-
type: 'apiKey' | 'http';
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
interface SerializerOptions<T> {
|
|
250
|
-
/**
|
|
251
|
-
* @default true
|
|
252
|
-
*/
|
|
253
|
-
explode: boolean;
|
|
254
|
-
style: T;
|
|
255
|
-
}
|
|
256
|
-
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
257
|
-
type ObjectStyle = 'form' | 'deepObject';
|
|
258
|
-
|
|
259
|
-
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
260
|
-
type BodySerializer = (body: any) => any;
|
|
261
|
-
interface QuerySerializerOptions {
|
|
262
|
-
allowReserved?: boolean;
|
|
263
|
-
array?: SerializerOptions<ArrayStyle>;
|
|
264
|
-
object?: SerializerOptions<ObjectStyle>;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
interface Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never> {
|
|
268
|
-
/**
|
|
269
|
-
* Returns the final request URL.
|
|
270
|
-
*/
|
|
271
|
-
buildUrl: BuildUrlFn;
|
|
272
|
-
connect: MethodFn;
|
|
273
|
-
delete: MethodFn;
|
|
274
|
-
get: MethodFn;
|
|
275
|
-
getConfig: () => Config;
|
|
276
|
-
head: MethodFn;
|
|
277
|
-
options: MethodFn;
|
|
278
|
-
patch: MethodFn;
|
|
279
|
-
post: MethodFn;
|
|
280
|
-
put: MethodFn;
|
|
281
|
-
request: RequestFn;
|
|
282
|
-
setConfig: (config: Config) => Config;
|
|
283
|
-
trace: MethodFn;
|
|
284
|
-
}
|
|
285
|
-
interface Config$1 {
|
|
286
|
-
/**
|
|
287
|
-
* Auth token or a function returning auth token. The resolved value will be
|
|
288
|
-
* added to the request payload as defined by its `security` array.
|
|
289
|
-
*/
|
|
290
|
-
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
291
|
-
/**
|
|
292
|
-
* A function for serializing request body parameter. By default,
|
|
293
|
-
* {@link JSON.stringify()} will be used.
|
|
151
|
+
* @default 3000
|
|
294
152
|
*/
|
|
295
|
-
|
|
153
|
+
sseDefaultRetryDelay?: number;
|
|
296
154
|
/**
|
|
297
|
-
*
|
|
298
|
-
* `Headers` object with.
|
|
299
|
-
*
|
|
300
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
155
|
+
* Maximum number of retry attempts before giving up.
|
|
301
156
|
*/
|
|
302
|
-
|
|
157
|
+
sseMaxRetryAttempts?: number;
|
|
303
158
|
/**
|
|
304
|
-
*
|
|
159
|
+
* Maximum retry delay in milliseconds.
|
|
305
160
|
*
|
|
306
|
-
*
|
|
307
|
-
*/
|
|
308
|
-
method?: 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE';
|
|
309
|
-
/**
|
|
310
|
-
* A function for serializing request query parameters. By default, arrays
|
|
311
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
312
|
-
* style, and reserved characters are percent-encoded.
|
|
161
|
+
* Applies only when exponential backoff is used.
|
|
313
162
|
*
|
|
314
|
-
* This
|
|
315
|
-
* API function is used.
|
|
163
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
316
164
|
*
|
|
317
|
-
*
|
|
318
|
-
*/
|
|
319
|
-
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
320
|
-
/**
|
|
321
|
-
* A function validating request data. This is useful if you want to ensure
|
|
322
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
323
|
-
* the server.
|
|
324
|
-
*/
|
|
325
|
-
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
326
|
-
/**
|
|
327
|
-
* A function transforming response data before it's returned. This is useful
|
|
328
|
-
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
165
|
+
* @default 30000
|
|
329
166
|
*/
|
|
330
|
-
|
|
167
|
+
sseMaxRetryDelay?: number;
|
|
331
168
|
/**
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
169
|
+
* Optional sleep function for retry backoff.
|
|
170
|
+
*
|
|
171
|
+
* Defaults to using `setTimeout`.
|
|
335
172
|
*/
|
|
336
|
-
|
|
173
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
174
|
+
url: string;
|
|
175
|
+
};
|
|
176
|
+
interface StreamEvent<TData = unknown> {
|
|
177
|
+
data: TData;
|
|
178
|
+
event?: string;
|
|
179
|
+
id?: string;
|
|
180
|
+
retry?: number;
|
|
337
181
|
}
|
|
182
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
183
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
184
|
+
};
|
|
338
185
|
|
|
339
186
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
340
187
|
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
341
188
|
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
342
189
|
declare class Interceptors<Interceptor> {
|
|
343
|
-
|
|
344
|
-
constructor();
|
|
190
|
+
fns: Array<Interceptor | null>;
|
|
345
191
|
clear(): void;
|
|
346
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
347
|
-
exists(id: number | Interceptor): boolean;
|
|
348
192
|
eject(id: number | Interceptor): void;
|
|
349
|
-
|
|
193
|
+
exists(id: number | Interceptor): boolean;
|
|
194
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
195
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
350
196
|
use(fn: Interceptor): number;
|
|
351
197
|
}
|
|
352
198
|
interface Middleware<Req, Res, Err, Options> {
|
|
353
|
-
error:
|
|
354
|
-
request:
|
|
355
|
-
response:
|
|
199
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
200
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
201
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
356
202
|
}
|
|
357
203
|
|
|
358
204
|
type ResponseStyle = 'data' | 'fields';
|
|
359
|
-
interface Config<T extends ClientOptions$
|
|
205
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
360
206
|
/**
|
|
361
207
|
* Base URL for all requests made by this client.
|
|
362
208
|
*/
|
|
@@ -367,7 +213,7 @@ interface Config<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Reque
|
|
|
367
213
|
*
|
|
368
214
|
* @default globalThis.fetch
|
|
369
215
|
*/
|
|
370
|
-
fetch?:
|
|
216
|
+
fetch?: typeof fetch;
|
|
371
217
|
/**
|
|
372
218
|
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
373
219
|
* options won't have any effect.
|
|
@@ -397,10 +243,10 @@ interface Config<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Reque
|
|
|
397
243
|
*/
|
|
398
244
|
throwOnError?: T['throwOnError'];
|
|
399
245
|
}
|
|
400
|
-
interface RequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
246
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
401
247
|
responseStyle: TResponseStyle;
|
|
402
248
|
throwOnError: ThrowOnError;
|
|
403
|
-
}> {
|
|
249
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
404
250
|
/**
|
|
405
251
|
* Any body that you want to add to your request.
|
|
406
252
|
*
|
|
@@ -415,7 +261,7 @@ interface RequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowO
|
|
|
415
261
|
security?: ReadonlyArray<Auth>;
|
|
416
262
|
url: Url;
|
|
417
263
|
}
|
|
418
|
-
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<TResponseStyle, ThrowOnError, Url> {
|
|
264
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
419
265
|
serializedBody?: string;
|
|
420
266
|
}
|
|
421
267
|
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
@@ -432,20 +278,21 @@ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boole
|
|
|
432
278
|
request: Request;
|
|
433
279
|
response: Response;
|
|
434
280
|
}>;
|
|
435
|
-
interface ClientOptions$
|
|
281
|
+
interface ClientOptions$1 {
|
|
436
282
|
baseUrl?: string;
|
|
437
283
|
responseStyle?: ResponseStyle;
|
|
438
284
|
throwOnError?: boolean;
|
|
439
285
|
}
|
|
440
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
441
|
-
type
|
|
286
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
287
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
288
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
442
289
|
type BuildUrlFn = <TData extends {
|
|
443
290
|
body?: unknown;
|
|
444
291
|
path?: Record<string, unknown>;
|
|
445
292
|
query?: Record<string, unknown>;
|
|
446
293
|
url: string;
|
|
447
|
-
}>(options:
|
|
448
|
-
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn> & {
|
|
294
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
295
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
449
296
|
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
450
297
|
};
|
|
451
298
|
interface TDataShape {
|
|
@@ -456,1456 +303,926 @@ interface TDataShape {
|
|
|
456
303
|
url: string;
|
|
457
304
|
}
|
|
458
305
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
459
|
-
type Options$
|
|
306
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
460
307
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
*/
|
|
464
|
-
type AgentExecutionRequest = {
|
|
465
|
-
[key: string]: unknown;
|
|
308
|
+
type ClientOptions = {
|
|
309
|
+
baseUrl: 'https://odyssey.asteroid.ai/agents/v2' | (string & {});
|
|
466
310
|
};
|
|
467
|
-
type
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
311
|
+
type AgentsAgentBase = {
|
|
312
|
+
id: CommonUuid;
|
|
313
|
+
name: string;
|
|
314
|
+
createdAt: string;
|
|
315
|
+
organizationId?: CommonUuid;
|
|
316
|
+
userId: CommonUuid;
|
|
472
317
|
};
|
|
473
|
-
type
|
|
474
|
-
/**
|
|
475
|
-
* The ID of the execution
|
|
476
|
-
*/
|
|
477
|
-
execution_id: string;
|
|
478
|
-
status: Status;
|
|
479
|
-
/**
|
|
480
|
-
* Reason for the current status (if applicable)
|
|
481
|
-
*/
|
|
482
|
-
reason?: string;
|
|
318
|
+
type AgentsAgentExecuteAgentRequest = {
|
|
483
319
|
/**
|
|
484
|
-
*
|
|
320
|
+
* The ID of the agent profile to use. Note this is not the agent ID
|
|
485
321
|
*/
|
|
486
|
-
|
|
487
|
-
};
|
|
488
|
-
type ExecutionResultResponse = {
|
|
322
|
+
agentProfileId?: CommonUuid;
|
|
489
323
|
/**
|
|
490
|
-
*
|
|
324
|
+
* Inputs to be merged into the placeholders defined in prompts
|
|
491
325
|
*/
|
|
492
|
-
|
|
493
|
-
|
|
326
|
+
inputs?: {
|
|
327
|
+
[key: string]: unknown;
|
|
328
|
+
};
|
|
494
329
|
/**
|
|
495
|
-
*
|
|
330
|
+
* Deprecated: Use 'inputs' instead. Inputs to be merged into the placeholders defined in prompts
|
|
331
|
+
*
|
|
496
332
|
* @deprecated
|
|
497
333
|
*/
|
|
498
|
-
|
|
334
|
+
dynamicData?: {
|
|
499
335
|
[key: string]: unknown;
|
|
500
336
|
};
|
|
501
337
|
/**
|
|
502
|
-
*
|
|
503
|
-
*/
|
|
504
|
-
error?: string;
|
|
505
|
-
execution_result?: ExecutionResult;
|
|
506
|
-
};
|
|
507
|
-
/**
|
|
508
|
-
* The result of an execution. Contains the outcome, reasoning, and result.
|
|
509
|
-
*/
|
|
510
|
-
type ExecutionResult = {
|
|
511
|
-
/**
|
|
512
|
-
* The outcome of the execution (success or failure)
|
|
513
|
-
*/
|
|
514
|
-
outcome?: 'success' | 'failure';
|
|
515
|
-
/**
|
|
516
|
-
* The reasoning behind the execution outcome
|
|
338
|
+
* Array of temporary files to attach to the execution. Must have been pre-uploaded using the stage file endpoint
|
|
517
339
|
*/
|
|
518
|
-
|
|
340
|
+
tempFiles?: Array<AgentsFilesTempFile>;
|
|
519
341
|
/**
|
|
520
|
-
*
|
|
342
|
+
* Optional metadata key-value pairs (string keys and string values) for organizing and filtering executions
|
|
521
343
|
*/
|
|
522
|
-
|
|
344
|
+
metadata?: {
|
|
523
345
|
[key: string]: unknown;
|
|
524
346
|
};
|
|
525
|
-
};
|
|
526
|
-
/**
|
|
527
|
-
* Status of the execution
|
|
528
|
-
*/
|
|
529
|
-
type Status = 'starting' | 'running' | 'paused' | 'completed' | 'cancelled' | 'failed' | 'awaiting_confirmation' | 'paused_by_agent';
|
|
530
|
-
type ErrorResponse = {
|
|
531
347
|
/**
|
|
532
|
-
*
|
|
348
|
+
* The version of the agent to execute. If not provided, the latest version will be used.
|
|
533
349
|
*/
|
|
534
|
-
|
|
350
|
+
version?: number;
|
|
535
351
|
};
|
|
536
|
-
type
|
|
352
|
+
type AgentsAgentExecuteAgentResponse = {
|
|
537
353
|
/**
|
|
538
|
-
* The
|
|
354
|
+
* The ID of the newly created execution
|
|
539
355
|
*/
|
|
540
|
-
|
|
356
|
+
executionId: CommonUuid;
|
|
541
357
|
};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
agent_profile_id?: string;
|
|
550
|
-
/**
|
|
551
|
-
* Dynamic data to be merged into the saved agent configuration.
|
|
552
|
-
*/
|
|
553
|
-
dynamic_data?: {
|
|
554
|
-
[key: string]: unknown;
|
|
555
|
-
};
|
|
358
|
+
type AgentsAgentSortField = 'name' | 'created_at';
|
|
359
|
+
type AgentsExecutionActionName = 'element_click' | 'element_type' | 'element_select' | 'element_hover' | 'element_drag' | 'element_wait' | 'element_fill_form' | 'element_get_text' | 'element_file_upload' | 'coord_move' | 'coord_click' | 'coord_double_click' | 'coord_drag' | 'coord_scroll' | 'nav_to' | 'nav_back' | 'nav_refresh' | 'nav_tabs' | 'nav_close_browser' | 'nav_resize_browser' | 'nav_install_browser' | 'nav_zoom_in' | 'nav_zoom_out' | 'obs_snapshot' | 'obs_snapshot_with_selectors' | 'obs_screenshot' | 'obs_console_messages' | 'obs_network_requests' | 'obs_extract_html' | 'script_eval' | 'script_playwright' | 'script_playwright_llm_vars' | 'script_hybrid_playwright' | 'browser_press_key' | 'browser_handle_dialog' | 'browser_read_clipboard' | 'file_list' | 'file_read' | 'file_stage' | 'file_download' | 'file_pdf_save' | 'scratchpad_read' | 'scratchpad_write' | 'scriptpad_run_function' | 'scriptpad_search_replace' | 'scriptpad_read' | 'scriptpad_write' | 'ext_google_sheets_get_data' | 'ext_google_sheets_set_value' | 'ext_get_mail' | 'ext_api_call' | 'util_wait_time' | 'util_get_datetime' | 'util_generate_totp_secret' | 'util_send_user_message' | 'agent_query_context' | 'agent_compile_workflow' | 'llm_call';
|
|
360
|
+
type AgentsExecutionActivity = {
|
|
361
|
+
id: CommonUuid;
|
|
362
|
+
payload: AgentsExecutionActivityPayloadUnion;
|
|
363
|
+
executionId: CommonUuid;
|
|
364
|
+
timestamp: string;
|
|
556
365
|
};
|
|
557
|
-
type
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
366
|
+
type AgentsExecutionActivityActionCompletedInfo = ({
|
|
367
|
+
actionName: 'ext_api_call';
|
|
368
|
+
} & AgentsExecutionExtApiCallCompletedDetails) | ({
|
|
369
|
+
actionName: 'scratchpad_read';
|
|
370
|
+
} & AgentsExecutionScratchpadReadCompletedDetails) | ({
|
|
371
|
+
actionName: 'scratchpad_write';
|
|
372
|
+
} & AgentsExecutionScratchpadWriteCompletedDetails) | ({
|
|
373
|
+
actionName: 'script_playwright';
|
|
374
|
+
} & AgentsExecutionScriptPlaywrightCompletedDetails) | ({
|
|
375
|
+
actionName: 'script_hybrid_playwright';
|
|
376
|
+
} & AgentsExecutionScriptHybridPlaywrightCompletedDetails) | ({
|
|
377
|
+
actionName: 'script_eval';
|
|
378
|
+
} & AgentsExecutionScriptEvalCompletedDetails) | ({
|
|
379
|
+
actionName: 'file_read';
|
|
380
|
+
} & AgentsExecutionFileReadCompletedDetails) | ({
|
|
381
|
+
actionName: 'file_list';
|
|
382
|
+
} & AgentsExecutionFileListCompletedDetails) | ({
|
|
383
|
+
actionName: 'file_stage';
|
|
384
|
+
} & AgentsExecutionFileStageCompletedDetails) | ({
|
|
385
|
+
actionName: 'element_file_upload';
|
|
386
|
+
} & AgentsExecutionElementFileUploadCompletedDetails) | ({
|
|
387
|
+
actionName: 'ext_get_mail';
|
|
388
|
+
} & AgentsExecutionExtGetMailCompletedDetails) | ({
|
|
389
|
+
actionName: 'scriptpad_run_function';
|
|
390
|
+
} & AgentsExecutionScriptPadRunFunctionCompletedDetails) | ({
|
|
391
|
+
actionName: 'scriptpad_read';
|
|
392
|
+
} & AgentsExecutionScriptpadReadCompletedDetails) | ({
|
|
393
|
+
actionName: 'scriptpad_write';
|
|
394
|
+
} & AgentsExecutionScriptpadWriteCompletedDetails) | ({
|
|
395
|
+
actionName: 'scriptpad_search_replace';
|
|
396
|
+
} & AgentsExecutionScriptpadSearchReplaceCompletedDetails) | ({
|
|
397
|
+
actionName: 'obs_snapshot_with_selectors';
|
|
398
|
+
} & AgentsExecutionObsSnapshotWithSelectorsCompletedDetails) | ({
|
|
399
|
+
actionName: 'util_get_datetime';
|
|
400
|
+
} & AgentsExecutionUtilGetDatetimeCompletedDetails) | ({
|
|
401
|
+
actionName: 'nav_to';
|
|
402
|
+
} & AgentsExecutionNavToCompletedDetails) | ({
|
|
403
|
+
actionName: 'agent_query_context';
|
|
404
|
+
} & AgentsExecutionAgentQueryContextCompletedDetails);
|
|
405
|
+
type AgentsExecutionActivityActionCompletedPayload = {
|
|
406
|
+
activityType: 'action_completed';
|
|
407
|
+
message: string;
|
|
408
|
+
actionId: string;
|
|
409
|
+
actionName: AgentsExecutionActionName;
|
|
410
|
+
duration?: number;
|
|
411
|
+
info?: AgentsExecutionActivityActionCompletedInfo;
|
|
412
|
+
};
|
|
413
|
+
type AgentsExecutionActivityActionFailedPayload = {
|
|
414
|
+
activityType: 'action_failed';
|
|
415
|
+
message: string;
|
|
416
|
+
actionName: AgentsExecutionActionName;
|
|
417
|
+
actionId: string;
|
|
418
|
+
duration?: number;
|
|
419
|
+
};
|
|
420
|
+
type AgentsExecutionActivityActionStartedInfo = ({
|
|
421
|
+
actionName: 'nav_to';
|
|
422
|
+
} & AgentsExecutionNavToStartedDetails) | ({
|
|
423
|
+
actionName: 'scratchpad_read';
|
|
424
|
+
} & AgentsExecutionScratchpadReadStartedDetails) | ({
|
|
425
|
+
actionName: 'scratchpad_write';
|
|
426
|
+
} & AgentsExecutionScratchpadWriteStartedDetails) | ({
|
|
427
|
+
actionName: 'scriptpad_run_function';
|
|
428
|
+
} & AgentsExecutionScriptpadRunFunctionStartedDetails) | ({
|
|
429
|
+
actionName: 'script_playwright';
|
|
430
|
+
} & AgentsExecutionScriptPlaywrightStartedDetails) | ({
|
|
431
|
+
actionName: 'script_hybrid_playwright';
|
|
432
|
+
} & AgentsExecutionScriptHybridPlaywrightStartedDetails) | ({
|
|
433
|
+
actionName: 'script_eval';
|
|
434
|
+
} & AgentsExecutionScriptEvalStartedDetails) | ({
|
|
435
|
+
actionName: 'scriptpad_search_replace';
|
|
436
|
+
} & AgentsExecutionScriptpadSearchReplaceStartedDetails) | ({
|
|
437
|
+
actionName: 'util_get_datetime';
|
|
438
|
+
} & AgentsExecutionUtilGetDatetimeStartedDetails) | ({
|
|
439
|
+
actionName: 'scriptpad_read';
|
|
440
|
+
} & AgentsExecutionScriptpadReadStartedDetails) | ({
|
|
441
|
+
actionName: 'llm_call';
|
|
442
|
+
} & AgentsExecutionLlmCallStartedDetails) | ({
|
|
443
|
+
actionName: 'agent_query_context';
|
|
444
|
+
} & AgentsExecutionAgentQueryContextStartedDetails);
|
|
445
|
+
type AgentsExecutionActivityActionStartedPayload = {
|
|
446
|
+
activityType: 'action_started';
|
|
447
|
+
message: string;
|
|
448
|
+
actionName: AgentsExecutionActionName;
|
|
449
|
+
actionId: string;
|
|
450
|
+
info?: AgentsExecutionActivityActionStartedInfo;
|
|
451
|
+
};
|
|
452
|
+
type AgentsExecutionActivityFileAddedPayload = {
|
|
453
|
+
activityType: 'file_added';
|
|
454
|
+
fileId: CommonUuid;
|
|
455
|
+
fileName: string;
|
|
456
|
+
mimeType: string;
|
|
457
|
+
fileSize: number;
|
|
458
|
+
source: 'upload' | 'download';
|
|
459
|
+
presignedUrl: string;
|
|
460
|
+
};
|
|
461
|
+
type AgentsExecutionActivityGenericPayload = {
|
|
462
|
+
activityType: 'generic';
|
|
463
|
+
message: string;
|
|
464
|
+
};
|
|
465
|
+
type AgentsExecutionActivityPayloadUnion = ({
|
|
466
|
+
activityType: 'terminal';
|
|
467
|
+
} & AgentsExecutionTerminalPayload) | ({
|
|
468
|
+
activityType: 'generic';
|
|
469
|
+
} & AgentsExecutionActivityGenericPayload) | ({
|
|
470
|
+
activityType: 'reasoning';
|
|
471
|
+
} & AgentsExecutionActivityReasoningPayload) | ({
|
|
472
|
+
activityType: 'step_started';
|
|
473
|
+
} & AgentsExecutionActivityStepStartedPayload) | ({
|
|
474
|
+
activityType: 'step_completed';
|
|
475
|
+
} & AgentsExecutionActivityStepCompletedPayload) | ({
|
|
476
|
+
activityType: 'transitioned_node';
|
|
477
|
+
} & AgentsExecutionActivityTransitionedNodePayload) | ({
|
|
478
|
+
activityType: 'status_changed';
|
|
479
|
+
} & AgentsExecutionActivityStatusChangedPayload) | ({
|
|
480
|
+
activityType: 'action_started';
|
|
481
|
+
} & AgentsExecutionActivityActionStartedPayload) | ({
|
|
482
|
+
activityType: 'action_completed';
|
|
483
|
+
} & AgentsExecutionActivityActionCompletedPayload) | ({
|
|
484
|
+
activityType: 'action_failed';
|
|
485
|
+
} & AgentsExecutionActivityActionFailedPayload) | ({
|
|
486
|
+
activityType: 'user_message_received';
|
|
487
|
+
} & AgentsExecutionActivityUserMessageReceivedPayload) | ({
|
|
488
|
+
activityType: 'file_added';
|
|
489
|
+
} & AgentsExecutionActivityFileAddedPayload) | ({
|
|
490
|
+
activityType: 'workflow_updated';
|
|
491
|
+
} & AgentsExecutionActivityWorkflowUpdatedPayload) | ({
|
|
492
|
+
activityType: 'playwright_script_generated';
|
|
493
|
+
} & AgentsExecutionActivityPlaywrightScriptGeneratedPayload);
|
|
494
|
+
type AgentsExecutionActivityPlaywrightScriptGeneratedPayload = {
|
|
495
|
+
activityType: 'playwright_script_generated';
|
|
496
|
+
nodeId: CommonUuid;
|
|
497
|
+
nodeName: string;
|
|
498
|
+
script: string;
|
|
499
|
+
llmVars?: Array<AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar>;
|
|
500
|
+
context: string;
|
|
501
|
+
oldScript?: string;
|
|
502
|
+
};
|
|
503
|
+
type AgentsExecutionActivityReasoningPayload = {
|
|
504
|
+
activityType: 'reasoning';
|
|
505
|
+
reasoning: string;
|
|
506
|
+
};
|
|
507
|
+
type AgentsExecutionActivityStatusChangedPayload = {
|
|
508
|
+
activityType: 'status_changed';
|
|
509
|
+
status: AgentsExecutionStatus;
|
|
510
|
+
completedPayload?: AgentsExecutionCompletedPayload;
|
|
511
|
+
failedPayload?: AgentsExecutionFailedPayload;
|
|
512
|
+
pausedPayload?: AgentsExecutionPausedPayload;
|
|
513
|
+
awaitingConfirmationPayload?: AgentsExecutionAwaitingConfirmationPayload;
|
|
514
|
+
cancelledPayload?: AgentsExecutionCancelledPayload;
|
|
515
|
+
};
|
|
516
|
+
type AgentsExecutionActivityStepCompletedPayload = {
|
|
517
|
+
activityType: 'step_completed';
|
|
518
|
+
stepNumber: number;
|
|
519
|
+
};
|
|
520
|
+
type AgentsExecutionActivityStepStartedPayload = {
|
|
521
|
+
activityType: 'step_started';
|
|
522
|
+
stepNumber: number;
|
|
523
|
+
};
|
|
524
|
+
type AgentsExecutionActivityTransitionedNodePayload = {
|
|
525
|
+
activityType: 'transitioned_node';
|
|
526
|
+
newNodeUUID: CommonUuid;
|
|
527
|
+
newNodeName: string;
|
|
528
|
+
newNodeType: string;
|
|
529
|
+
fromNodeDuration?: number;
|
|
530
|
+
transitionType?: AgentsGraphModelsTransitionsTransitionType;
|
|
582
531
|
/**
|
|
583
|
-
*
|
|
532
|
+
* Output variables provided by the from node
|
|
584
533
|
*/
|
|
585
|
-
|
|
534
|
+
fromNodeOutput?: Array<AgentsExecutionNodeOutputItem>;
|
|
535
|
+
};
|
|
536
|
+
type AgentsExecutionActivityUserMessageReceivedPayload = {
|
|
537
|
+
activityType: 'user_message_received';
|
|
538
|
+
message: string;
|
|
539
|
+
userUUID: CommonUuid;
|
|
540
|
+
};
|
|
541
|
+
type AgentsExecutionActivityWorkflowUpdatedPayload = {
|
|
542
|
+
activityType: 'workflow_updated';
|
|
543
|
+
workflowUpdate: Array<AgentsExecutionWorkflowUpdate>;
|
|
544
|
+
};
|
|
545
|
+
type AgentsExecutionAgentQueryContextCompletedDetails = {
|
|
546
|
+
actionName: 'agent_query_context';
|
|
547
|
+
query: string;
|
|
548
|
+
answer: string;
|
|
549
|
+
};
|
|
550
|
+
type AgentsExecutionAgentQueryContextStartedDetails = {
|
|
551
|
+
actionName: 'agent_query_context';
|
|
552
|
+
query: string;
|
|
553
|
+
};
|
|
554
|
+
type AgentsExecutionAwaitingConfirmationPayload = {
|
|
555
|
+
reason: string;
|
|
556
|
+
};
|
|
557
|
+
type AgentsExecutionCancelReason = 'timeout' | 'max_steps' | 'user_requested';
|
|
558
|
+
type AgentsExecutionCancelledPayload = {
|
|
559
|
+
reason: AgentsExecutionCancelReason;
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* User comment on an execution
|
|
563
|
+
*/
|
|
564
|
+
type AgentsExecutionComment = {
|
|
586
565
|
/**
|
|
587
|
-
*
|
|
566
|
+
* Unique identifier for the comment
|
|
588
567
|
*/
|
|
589
|
-
|
|
568
|
+
id: CommonUuid;
|
|
590
569
|
/**
|
|
591
|
-
*
|
|
570
|
+
* Execution this comment belongs to
|
|
592
571
|
*/
|
|
593
|
-
|
|
572
|
+
executionId: CommonUuid;
|
|
594
573
|
/**
|
|
595
|
-
*
|
|
574
|
+
* User who created the comment
|
|
596
575
|
*/
|
|
597
|
-
|
|
598
|
-
};
|
|
599
|
-
type AgentProfile = {
|
|
576
|
+
userId: CommonUuid;
|
|
600
577
|
/**
|
|
601
|
-
*
|
|
578
|
+
* Comment content
|
|
602
579
|
*/
|
|
603
|
-
|
|
580
|
+
content: string;
|
|
604
581
|
/**
|
|
605
|
-
*
|
|
582
|
+
* Whether the comment is public
|
|
606
583
|
*/
|
|
607
|
-
|
|
584
|
+
public: boolean;
|
|
608
585
|
/**
|
|
609
|
-
*
|
|
586
|
+
* When the comment was created
|
|
610
587
|
*/
|
|
611
|
-
|
|
588
|
+
createdAt: string;
|
|
612
589
|
/**
|
|
613
|
-
*
|
|
590
|
+
* When the comment was last updated
|
|
614
591
|
*/
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
592
|
+
updatedAt?: string;
|
|
593
|
+
};
|
|
594
|
+
type AgentsExecutionCompletedPayload = {
|
|
595
|
+
outcome: string;
|
|
596
|
+
reasoning: string;
|
|
597
|
+
result: unknown;
|
|
598
|
+
lessons_learned?: string;
|
|
599
|
+
};
|
|
600
|
+
type AgentsExecutionElementFileUploadCompletedDetails = {
|
|
601
|
+
actionName: 'element_file_upload';
|
|
602
|
+
fileNames: Array<string>;
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* Execution result containing outcome, reasoning, and result data
|
|
606
|
+
*/
|
|
607
|
+
type AgentsExecutionExecutionResult = {
|
|
618
608
|
/**
|
|
619
|
-
*
|
|
609
|
+
* Unique identifier for the result
|
|
620
610
|
*/
|
|
621
|
-
|
|
611
|
+
id: CommonUuid;
|
|
622
612
|
/**
|
|
623
|
-
*
|
|
613
|
+
* Execution this result belongs to
|
|
624
614
|
*/
|
|
625
|
-
|
|
615
|
+
executionId: CommonUuid;
|
|
626
616
|
/**
|
|
627
|
-
*
|
|
617
|
+
* Outcome of the execution (success or failure)
|
|
628
618
|
*/
|
|
629
|
-
|
|
619
|
+
outcome: string;
|
|
630
620
|
/**
|
|
631
|
-
*
|
|
621
|
+
* AI reasoning for the outcome
|
|
632
622
|
*/
|
|
633
|
-
|
|
623
|
+
reasoning: string;
|
|
634
624
|
/**
|
|
635
|
-
*
|
|
625
|
+
* Result data as JSON
|
|
636
626
|
*/
|
|
637
|
-
|
|
627
|
+
result: unknown;
|
|
638
628
|
/**
|
|
639
|
-
*
|
|
629
|
+
* When the result was created
|
|
640
630
|
*/
|
|
641
|
-
|
|
631
|
+
createdAt: string;
|
|
632
|
+
};
|
|
633
|
+
type AgentsExecutionExtApiCallCompletedDetails = {
|
|
634
|
+
actionName: 'ext_api_call';
|
|
635
|
+
statusCode: string;
|
|
636
|
+
responseBody: string;
|
|
637
|
+
requestMethod?: string;
|
|
638
|
+
requestUrl?: string;
|
|
639
|
+
};
|
|
640
|
+
type AgentsExecutionExtGetMailCompletedDetails = {
|
|
641
|
+
actionName: 'ext_get_mail';
|
|
642
|
+
emailCount: number;
|
|
643
|
+
emails: Array<unknown>;
|
|
644
|
+
};
|
|
645
|
+
type AgentsExecutionFailedPayload = {
|
|
646
|
+
reason: string;
|
|
647
|
+
os_error?: CommonOsError;
|
|
648
|
+
};
|
|
649
|
+
type AgentsExecutionFileListCompletedDetails = {
|
|
650
|
+
actionName: 'file_list';
|
|
651
|
+
fileNames: Array<string>;
|
|
652
|
+
};
|
|
653
|
+
type AgentsExecutionFileReadCompletedDetails = {
|
|
654
|
+
actionName: 'file_read';
|
|
655
|
+
fileNames: Array<string>;
|
|
656
|
+
errorCount?: number;
|
|
657
|
+
totalSizeBytes?: number;
|
|
658
|
+
};
|
|
659
|
+
type AgentsExecutionFileStageCompletedDetails = {
|
|
660
|
+
actionName: 'file_stage';
|
|
661
|
+
fileNames: Array<string>;
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* Human-applied label for categorizing executions
|
|
665
|
+
*/
|
|
666
|
+
type AgentsExecutionHumanLabel = {
|
|
642
667
|
/**
|
|
643
|
-
*
|
|
668
|
+
* Unique identifier for the label
|
|
644
669
|
*/
|
|
645
|
-
|
|
670
|
+
id: CommonUuid;
|
|
646
671
|
/**
|
|
647
|
-
*
|
|
672
|
+
* Organization this label belongs to
|
|
648
673
|
*/
|
|
649
|
-
|
|
650
|
-
};
|
|
651
|
-
type CreateAgentProfileRequest = {
|
|
674
|
+
organizationId: CommonUuid;
|
|
652
675
|
/**
|
|
653
|
-
*
|
|
676
|
+
* Display name of the label
|
|
654
677
|
*/
|
|
655
678
|
name: string;
|
|
656
679
|
/**
|
|
657
|
-
*
|
|
680
|
+
* Hex color code for the label (e.g., #FF5733)
|
|
658
681
|
*/
|
|
659
|
-
|
|
682
|
+
color: string;
|
|
660
683
|
/**
|
|
661
|
-
*
|
|
684
|
+
* When the label was created
|
|
662
685
|
*/
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
686
|
+
createdAt: string;
|
|
687
|
+
};
|
|
688
|
+
type AgentsExecutionLlmCallPurpose = 'iris_pick_next_action' | 'transition_pick_next_node' | 'output_populate_result' | 'generate_hybrid_playwright_code' | 'generate_playwright_variables';
|
|
689
|
+
type AgentsExecutionLlmCallStartedDetails = {
|
|
690
|
+
actionName: 'llm_call';
|
|
691
|
+
purpose: AgentsExecutionLlmCallPurpose;
|
|
692
|
+
};
|
|
693
|
+
/**
|
|
694
|
+
* Represents a single execution in a list view
|
|
695
|
+
*/
|
|
696
|
+
type AgentsExecutionListItem = {
|
|
666
697
|
/**
|
|
667
|
-
*
|
|
698
|
+
* The unique identifier of the execution
|
|
668
699
|
*/
|
|
669
|
-
|
|
700
|
+
id: CommonUuid;
|
|
670
701
|
/**
|
|
671
|
-
*
|
|
702
|
+
* The ID of the agent that was executed
|
|
672
703
|
*/
|
|
673
|
-
|
|
704
|
+
agentId: CommonUuid;
|
|
674
705
|
/**
|
|
675
|
-
*
|
|
706
|
+
* The ID of the workflow that was executed
|
|
676
707
|
*/
|
|
677
|
-
|
|
708
|
+
workflowId: CommonUuid;
|
|
678
709
|
/**
|
|
679
|
-
*
|
|
710
|
+
* The current status of the execution
|
|
680
711
|
*/
|
|
681
|
-
|
|
712
|
+
status: AgentsExecutionStatus;
|
|
682
713
|
/**
|
|
683
|
-
*
|
|
714
|
+
* When the execution was created
|
|
684
715
|
*/
|
|
685
|
-
|
|
716
|
+
createdAt: string;
|
|
686
717
|
/**
|
|
687
|
-
*
|
|
718
|
+
* When the execution reached a terminal state (if applicable)
|
|
688
719
|
*/
|
|
689
|
-
|
|
690
|
-
};
|
|
691
|
-
type UpdateAgentProfileRequest = {
|
|
720
|
+
terminalAt?: string;
|
|
692
721
|
/**
|
|
693
|
-
* The
|
|
722
|
+
* The organization this execution belongs to
|
|
694
723
|
*/
|
|
695
|
-
|
|
724
|
+
organizationId: CommonUuid;
|
|
696
725
|
/**
|
|
697
|
-
* The
|
|
726
|
+
* The agent display name
|
|
698
727
|
*/
|
|
699
|
-
|
|
700
|
-
proxy_cc?: CountryCode;
|
|
701
|
-
proxy_type?: ProxyType;
|
|
728
|
+
agentName: string;
|
|
702
729
|
/**
|
|
703
|
-
*
|
|
730
|
+
* The name of the agent profile used for this execution (if any)
|
|
704
731
|
*/
|
|
705
|
-
|
|
732
|
+
agentProfileName?: string;
|
|
706
733
|
/**
|
|
707
|
-
*
|
|
734
|
+
* Execution result with outcome, reasoning, and result data
|
|
708
735
|
*/
|
|
709
|
-
|
|
736
|
+
executionResult?: AgentsExecutionExecutionResult;
|
|
710
737
|
/**
|
|
711
|
-
*
|
|
738
|
+
* Execution duration in seconds (only present for terminal executions)
|
|
712
739
|
*/
|
|
713
|
-
|
|
740
|
+
duration?: number;
|
|
714
741
|
/**
|
|
715
|
-
*
|
|
742
|
+
* Human-applied labels for this execution
|
|
716
743
|
*/
|
|
717
|
-
|
|
744
|
+
humanLabels: Array<AgentsExecutionHumanLabel>;
|
|
718
745
|
/**
|
|
719
|
-
*
|
|
746
|
+
* Comments on this execution
|
|
720
747
|
*/
|
|
721
|
-
|
|
748
|
+
comments: Array<AgentsExecutionComment>;
|
|
722
749
|
/**
|
|
723
|
-
*
|
|
750
|
+
* Optional metadata key-value pairs attached to this execution
|
|
724
751
|
*/
|
|
725
|
-
|
|
752
|
+
metadata?: {
|
|
753
|
+
[key: string]: unknown;
|
|
754
|
+
};
|
|
726
755
|
/**
|
|
727
|
-
*
|
|
756
|
+
* Browser recording URL (if a browser session was used and execution is terminal)
|
|
728
757
|
*/
|
|
729
|
-
|
|
758
|
+
browserRecordingUrl?: string;
|
|
730
759
|
/**
|
|
731
|
-
*
|
|
760
|
+
* Browser live view URL for debugging (if a browser session is active and execution is running)
|
|
732
761
|
*/
|
|
733
|
-
|
|
762
|
+
browserLiveViewUrl?: string;
|
|
763
|
+
};
|
|
764
|
+
type AgentsExecutionNavToCompletedDetails = {
|
|
765
|
+
actionName: 'nav_to';
|
|
766
|
+
pageTitle?: string;
|
|
767
|
+
};
|
|
768
|
+
type AgentsExecutionNavToStartedDetails = {
|
|
769
|
+
actionName: 'nav_to';
|
|
770
|
+
url: string;
|
|
771
|
+
};
|
|
772
|
+
type AgentsExecutionNodeDetails = {
|
|
773
|
+
nodeID: CommonUuid;
|
|
774
|
+
nodeName: string;
|
|
775
|
+
nodeType: string;
|
|
734
776
|
};
|
|
735
777
|
/**
|
|
736
|
-
*
|
|
737
|
-
*/
|
|
738
|
-
type CountryCode = 'us' | 'uk' | 'fr' | 'it' | 'jp' | 'au' | 'de' | 'fi' | 'ca';
|
|
739
|
-
/**
|
|
740
|
-
* Type of proxy to use
|
|
778
|
+
* A single output variable with a name and value
|
|
741
779
|
*/
|
|
742
|
-
type
|
|
743
|
-
type Credential = {
|
|
780
|
+
type AgentsExecutionNodeOutputItem = {
|
|
744
781
|
/**
|
|
745
|
-
* The
|
|
746
|
-
*/
|
|
747
|
-
id?: string;
|
|
748
|
-
/**
|
|
749
|
-
* The credential name
|
|
782
|
+
* The name of the output variable
|
|
750
783
|
*/
|
|
751
784
|
name: string;
|
|
752
785
|
/**
|
|
753
|
-
* The
|
|
754
|
-
*/
|
|
755
|
-
data: string;
|
|
756
|
-
/**
|
|
757
|
-
* When the credential was created
|
|
758
|
-
*/
|
|
759
|
-
created_at?: string;
|
|
760
|
-
};
|
|
761
|
-
type GetOpenApiData = {
|
|
762
|
-
body?: never;
|
|
763
|
-
path?: never;
|
|
764
|
-
query?: never;
|
|
765
|
-
url: '/openapi.yaml';
|
|
766
|
-
};
|
|
767
|
-
type GetOpenApiResponses = {
|
|
768
|
-
/**
|
|
769
|
-
* OpenAPI schema
|
|
770
|
-
*/
|
|
771
|
-
200: unknown;
|
|
772
|
-
};
|
|
773
|
-
type HealthCheckData = {
|
|
774
|
-
body?: never;
|
|
775
|
-
path?: never;
|
|
776
|
-
query?: never;
|
|
777
|
-
url: '/health';
|
|
778
|
-
};
|
|
779
|
-
type HealthCheckErrors = {
|
|
780
|
-
/**
|
|
781
|
-
* API is unhealthy
|
|
782
|
-
*/
|
|
783
|
-
500: {
|
|
784
|
-
/**
|
|
785
|
-
* The error message
|
|
786
|
-
*/
|
|
787
|
-
error?: string;
|
|
788
|
-
};
|
|
789
|
-
};
|
|
790
|
-
type HealthCheckError = HealthCheckErrors[keyof HealthCheckErrors];
|
|
791
|
-
type HealthCheckResponses = {
|
|
792
|
-
/**
|
|
793
|
-
* API is healthy
|
|
794
|
-
*/
|
|
795
|
-
200: {
|
|
796
|
-
/**
|
|
797
|
-
* The health status of the API
|
|
798
|
-
*/
|
|
799
|
-
status?: string;
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
|
-
type HealthCheckResponse = HealthCheckResponses[keyof HealthCheckResponses];
|
|
803
|
-
type ExecuteAgentData = {
|
|
804
|
-
body: AgentExecutionRequest;
|
|
805
|
-
path: {
|
|
806
|
-
/**
|
|
807
|
-
* The ID of the agent
|
|
808
|
-
*/
|
|
809
|
-
id: string;
|
|
810
|
-
};
|
|
811
|
-
query?: never;
|
|
812
|
-
url: '/agent/{id}';
|
|
813
|
-
};
|
|
814
|
-
type ExecuteAgentErrors = {
|
|
815
|
-
/**
|
|
816
|
-
* Invalid request
|
|
817
|
-
*/
|
|
818
|
-
400: ErrorResponse;
|
|
819
|
-
/**
|
|
820
|
-
* Agent not found
|
|
821
|
-
*/
|
|
822
|
-
404: ErrorResponse;
|
|
823
|
-
/**
|
|
824
|
-
* Internal server error
|
|
825
|
-
*/
|
|
826
|
-
500: ErrorResponse;
|
|
827
|
-
};
|
|
828
|
-
type ExecuteAgentError = ExecuteAgentErrors[keyof ExecuteAgentErrors];
|
|
829
|
-
type ExecuteAgentResponses = {
|
|
830
|
-
/**
|
|
831
|
-
* Agent execution started successfully
|
|
832
|
-
*/
|
|
833
|
-
202: ExecutionResponse;
|
|
834
|
-
};
|
|
835
|
-
type ExecuteAgentResponse = ExecuteAgentResponses[keyof ExecuteAgentResponses];
|
|
836
|
-
type ExecuteAgentStructuredData = {
|
|
837
|
-
body: StructuredAgentExecutionRequest;
|
|
838
|
-
path: {
|
|
839
|
-
/**
|
|
840
|
-
* The ID of the agent
|
|
841
|
-
*/
|
|
842
|
-
id: string;
|
|
843
|
-
};
|
|
844
|
-
query?: never;
|
|
845
|
-
url: '/agent/{id}/execute';
|
|
846
|
-
};
|
|
847
|
-
type ExecuteAgentStructuredErrors = {
|
|
848
|
-
/**
|
|
849
|
-
* Invalid request
|
|
850
|
-
*/
|
|
851
|
-
400: ErrorResponse;
|
|
852
|
-
/**
|
|
853
|
-
* Agent not found
|
|
854
|
-
*/
|
|
855
|
-
404: ErrorResponse;
|
|
856
|
-
/**
|
|
857
|
-
* Internal server error
|
|
858
|
-
*/
|
|
859
|
-
500: ErrorResponse;
|
|
860
|
-
};
|
|
861
|
-
type ExecuteAgentStructuredError = ExecuteAgentStructuredErrors[keyof ExecuteAgentStructuredErrors];
|
|
862
|
-
type ExecuteAgentStructuredResponses = {
|
|
863
|
-
/**
|
|
864
|
-
* Agent execution started successfully
|
|
865
|
-
*/
|
|
866
|
-
202: ExecutionResponse;
|
|
867
|
-
};
|
|
868
|
-
type ExecuteAgentStructuredResponse = ExecuteAgentStructuredResponses[keyof ExecuteAgentStructuredResponses];
|
|
869
|
-
type GetExecutionStatusData = {
|
|
870
|
-
body?: never;
|
|
871
|
-
path: {
|
|
872
|
-
/**
|
|
873
|
-
* The ID of the execution
|
|
874
|
-
*/
|
|
875
|
-
id: string;
|
|
876
|
-
};
|
|
877
|
-
query?: never;
|
|
878
|
-
url: '/execution/{id}/status';
|
|
879
|
-
};
|
|
880
|
-
type GetExecutionStatusErrors = {
|
|
881
|
-
/**
|
|
882
|
-
* Execution not found
|
|
883
|
-
*/
|
|
884
|
-
404: ErrorResponse;
|
|
885
|
-
/**
|
|
886
|
-
* Internal server error
|
|
887
|
-
*/
|
|
888
|
-
500: ErrorResponse;
|
|
889
|
-
};
|
|
890
|
-
type GetExecutionStatusError = GetExecutionStatusErrors[keyof GetExecutionStatusErrors];
|
|
891
|
-
type GetExecutionStatusResponses = {
|
|
892
|
-
/**
|
|
893
|
-
* Execution status retrieved successfully
|
|
894
|
-
*/
|
|
895
|
-
200: ExecutionStatusResponse;
|
|
896
|
-
};
|
|
897
|
-
type GetExecutionStatusResponse = GetExecutionStatusResponses[keyof GetExecutionStatusResponses];
|
|
898
|
-
type GetExecutionResultData = {
|
|
899
|
-
body?: never;
|
|
900
|
-
path: {
|
|
901
|
-
/**
|
|
902
|
-
* The ID of the execution
|
|
903
|
-
*/
|
|
904
|
-
id: string;
|
|
905
|
-
};
|
|
906
|
-
query?: never;
|
|
907
|
-
url: '/execution/{id}/result';
|
|
908
|
-
};
|
|
909
|
-
type GetExecutionResultErrors = {
|
|
910
|
-
/**
|
|
911
|
-
* Execution not found
|
|
912
|
-
*/
|
|
913
|
-
404: ErrorResponse;
|
|
914
|
-
/**
|
|
915
|
-
* Internal server error
|
|
916
|
-
*/
|
|
917
|
-
500: ErrorResponse;
|
|
918
|
-
};
|
|
919
|
-
type GetExecutionResultError = GetExecutionResultErrors[keyof GetExecutionResultErrors];
|
|
920
|
-
type GetExecutionResultResponses = {
|
|
921
|
-
/**
|
|
922
|
-
* Execution result retrieved successfully
|
|
923
|
-
*/
|
|
924
|
-
200: ExecutionResultResponse;
|
|
925
|
-
};
|
|
926
|
-
type GetExecutionResultResponse = GetExecutionResultResponses[keyof GetExecutionResultResponses];
|
|
927
|
-
type GetBrowserSessionRecordingData = {
|
|
928
|
-
body?: never;
|
|
929
|
-
path: {
|
|
930
|
-
/**
|
|
931
|
-
* The ID of the execution
|
|
932
|
-
*/
|
|
933
|
-
id: string;
|
|
934
|
-
};
|
|
935
|
-
query?: never;
|
|
936
|
-
url: '/execution/{id}/browser_session/recording';
|
|
937
|
-
};
|
|
938
|
-
type GetBrowserSessionRecordingErrors = {
|
|
939
|
-
/**
|
|
940
|
-
* Browser session not found
|
|
941
|
-
*/
|
|
942
|
-
404: ErrorResponse;
|
|
943
|
-
/**
|
|
944
|
-
* Internal server error
|
|
945
|
-
*/
|
|
946
|
-
500: ErrorResponse;
|
|
947
|
-
};
|
|
948
|
-
type GetBrowserSessionRecordingError = GetBrowserSessionRecordingErrors[keyof GetBrowserSessionRecordingErrors];
|
|
949
|
-
type GetBrowserSessionRecordingResponses = {
|
|
950
|
-
/**
|
|
951
|
-
* Browser session recording retrieved successfully
|
|
952
|
-
*/
|
|
953
|
-
200: BrowserSessionRecordingResponse;
|
|
954
|
-
};
|
|
955
|
-
type GetBrowserSessionRecordingResponse = GetBrowserSessionRecordingResponses[keyof GetBrowserSessionRecordingResponses];
|
|
956
|
-
type GetAgentProfilesData = {
|
|
957
|
-
body?: never;
|
|
958
|
-
path?: never;
|
|
959
|
-
query?: {
|
|
960
|
-
/**
|
|
961
|
-
* The ID of the organization to filter by
|
|
962
|
-
*/
|
|
963
|
-
organization_id?: string;
|
|
964
|
-
};
|
|
965
|
-
url: '/agent-profiles';
|
|
966
|
-
};
|
|
967
|
-
type GetAgentProfilesErrors = {
|
|
968
|
-
/**
|
|
969
|
-
* Unauthorized - Authentication required
|
|
970
|
-
*/
|
|
971
|
-
401: ErrorResponse;
|
|
972
|
-
/**
|
|
973
|
-
* Forbidden - Insufficient permissions
|
|
974
|
-
*/
|
|
975
|
-
403: ErrorResponse;
|
|
976
|
-
/**
|
|
977
|
-
* Internal server error
|
|
978
|
-
*/
|
|
979
|
-
500: ErrorResponse;
|
|
980
|
-
};
|
|
981
|
-
type GetAgentProfilesError = GetAgentProfilesErrors[keyof GetAgentProfilesErrors];
|
|
982
|
-
type GetAgentProfilesResponses = {
|
|
983
|
-
/**
|
|
984
|
-
* List of agent profiles
|
|
985
|
-
*/
|
|
986
|
-
200: Array<AgentProfile>;
|
|
987
|
-
};
|
|
988
|
-
type GetAgentProfilesResponse = GetAgentProfilesResponses[keyof GetAgentProfilesResponses];
|
|
989
|
-
type CreateAgentProfileData = {
|
|
990
|
-
body: CreateAgentProfileRequest;
|
|
991
|
-
path?: never;
|
|
992
|
-
query?: never;
|
|
993
|
-
url: '/agent-profiles';
|
|
994
|
-
};
|
|
995
|
-
type CreateAgentProfileErrors = {
|
|
996
|
-
/**
|
|
997
|
-
* Bad request - Invalid input or profile name already exists
|
|
998
|
-
*/
|
|
999
|
-
400: ErrorResponse;
|
|
1000
|
-
/**
|
|
1001
|
-
* Unauthorized - Authentication required
|
|
1002
|
-
*/
|
|
1003
|
-
401: ErrorResponse;
|
|
1004
|
-
/**
|
|
1005
|
-
* Forbidden - Insufficient permissions
|
|
1006
|
-
*/
|
|
1007
|
-
403: ErrorResponse;
|
|
1008
|
-
/**
|
|
1009
|
-
* Internal server error
|
|
1010
|
-
*/
|
|
1011
|
-
500: ErrorResponse;
|
|
1012
|
-
};
|
|
1013
|
-
type CreateAgentProfileError = CreateAgentProfileErrors[keyof CreateAgentProfileErrors];
|
|
1014
|
-
type CreateAgentProfileResponses = {
|
|
1015
|
-
/**
|
|
1016
|
-
* Agent profile created successfully
|
|
1017
|
-
*/
|
|
1018
|
-
201: AgentProfile;
|
|
1019
|
-
};
|
|
1020
|
-
type CreateAgentProfileResponse = CreateAgentProfileResponses[keyof CreateAgentProfileResponses];
|
|
1021
|
-
type DeleteAgentProfileData = {
|
|
1022
|
-
body?: never;
|
|
1023
|
-
path: {
|
|
1024
|
-
/**
|
|
1025
|
-
* The ID of the agent profile
|
|
1026
|
-
*/
|
|
1027
|
-
profile_id: string;
|
|
1028
|
-
};
|
|
1029
|
-
query?: never;
|
|
1030
|
-
url: '/agent-profiles/{profile_id}';
|
|
1031
|
-
};
|
|
1032
|
-
type DeleteAgentProfileErrors = {
|
|
1033
|
-
/**
|
|
1034
|
-
* Unauthorized - Authentication required
|
|
1035
|
-
*/
|
|
1036
|
-
401: ErrorResponse;
|
|
1037
|
-
/**
|
|
1038
|
-
* Forbidden - Insufficient permissions
|
|
1039
|
-
*/
|
|
1040
|
-
403: ErrorResponse;
|
|
1041
|
-
/**
|
|
1042
|
-
* Agent profile not found
|
|
1043
|
-
*/
|
|
1044
|
-
404: ErrorResponse;
|
|
1045
|
-
/**
|
|
1046
|
-
* Internal server error
|
|
1047
|
-
*/
|
|
1048
|
-
500: ErrorResponse;
|
|
1049
|
-
};
|
|
1050
|
-
type DeleteAgentProfileError = DeleteAgentProfileErrors[keyof DeleteAgentProfileErrors];
|
|
1051
|
-
type DeleteAgentProfileResponses = {
|
|
1052
|
-
/**
|
|
1053
|
-
* Agent profile deleted successfully
|
|
1054
|
-
*/
|
|
1055
|
-
200: {
|
|
1056
|
-
message?: string;
|
|
1057
|
-
};
|
|
1058
|
-
};
|
|
1059
|
-
type DeleteAgentProfileResponse = DeleteAgentProfileResponses[keyof DeleteAgentProfileResponses];
|
|
1060
|
-
type GetAgentProfileData = {
|
|
1061
|
-
body?: never;
|
|
1062
|
-
path: {
|
|
1063
|
-
/**
|
|
1064
|
-
* The ID of the agent profile
|
|
1065
|
-
*/
|
|
1066
|
-
profile_id: string;
|
|
1067
|
-
};
|
|
1068
|
-
query?: never;
|
|
1069
|
-
url: '/agent-profiles/{profile_id}';
|
|
1070
|
-
};
|
|
1071
|
-
type GetAgentProfileErrors = {
|
|
1072
|
-
/**
|
|
1073
|
-
* Unauthorized - Authentication required
|
|
1074
|
-
*/
|
|
1075
|
-
401: ErrorResponse;
|
|
1076
|
-
/**
|
|
1077
|
-
* Forbidden - Insufficient permissions
|
|
1078
|
-
*/
|
|
1079
|
-
403: ErrorResponse;
|
|
1080
|
-
/**
|
|
1081
|
-
* Agent profile not found
|
|
1082
|
-
*/
|
|
1083
|
-
404: ErrorResponse;
|
|
1084
|
-
/**
|
|
1085
|
-
* Internal server error
|
|
1086
|
-
*/
|
|
1087
|
-
500: ErrorResponse;
|
|
1088
|
-
};
|
|
1089
|
-
type GetAgentProfileError = GetAgentProfileErrors[keyof GetAgentProfileErrors];
|
|
1090
|
-
type GetAgentProfileResponses = {
|
|
1091
|
-
/**
|
|
1092
|
-
* Agent profile found
|
|
1093
|
-
*/
|
|
1094
|
-
200: AgentProfile;
|
|
1095
|
-
};
|
|
1096
|
-
type GetAgentProfileResponse = GetAgentProfileResponses[keyof GetAgentProfileResponses];
|
|
1097
|
-
type UpdateAgentProfileData = {
|
|
1098
|
-
body: UpdateAgentProfileRequest;
|
|
1099
|
-
path: {
|
|
1100
|
-
/**
|
|
1101
|
-
* The ID of the agent profile
|
|
1102
|
-
*/
|
|
1103
|
-
profile_id: string;
|
|
1104
|
-
};
|
|
1105
|
-
query?: never;
|
|
1106
|
-
url: '/agent-profiles/{profile_id}';
|
|
1107
|
-
};
|
|
1108
|
-
type UpdateAgentProfileErrors = {
|
|
1109
|
-
/**
|
|
1110
|
-
* Bad request - Invalid input
|
|
1111
|
-
*/
|
|
1112
|
-
400: ErrorResponse;
|
|
1113
|
-
/**
|
|
1114
|
-
* Unauthorized - Authentication required
|
|
1115
|
-
*/
|
|
1116
|
-
401: ErrorResponse;
|
|
1117
|
-
/**
|
|
1118
|
-
* Forbidden - Insufficient permissions
|
|
1119
|
-
*/
|
|
1120
|
-
403: ErrorResponse;
|
|
1121
|
-
/**
|
|
1122
|
-
* Agent profile not found
|
|
1123
|
-
*/
|
|
1124
|
-
404: ErrorResponse;
|
|
1125
|
-
/**
|
|
1126
|
-
* Internal server error
|
|
1127
|
-
*/
|
|
1128
|
-
500: ErrorResponse;
|
|
1129
|
-
};
|
|
1130
|
-
type UpdateAgentProfileError = UpdateAgentProfileErrors[keyof UpdateAgentProfileErrors];
|
|
1131
|
-
type UpdateAgentProfileResponses = {
|
|
1132
|
-
/**
|
|
1133
|
-
* Agent profile updated successfully
|
|
786
|
+
* The value of the output variable
|
|
1134
787
|
*/
|
|
1135
|
-
|
|
1136
|
-
};
|
|
1137
|
-
type UpdateAgentProfileResponse = UpdateAgentProfileResponses[keyof UpdateAgentProfileResponses];
|
|
1138
|
-
type GetCredentialsPublicKeyData = {
|
|
1139
|
-
body?: never;
|
|
1140
|
-
path?: never;
|
|
1141
|
-
query?: never;
|
|
1142
|
-
url: '/credentials/public_key';
|
|
1143
|
-
};
|
|
1144
|
-
type GetCredentialsPublicKeyErrors = {
|
|
1145
|
-
/**
|
|
1146
|
-
* Public key not found
|
|
1147
|
-
*/
|
|
1148
|
-
404: unknown;
|
|
1149
|
-
};
|
|
1150
|
-
type GetCredentialsPublicKeyResponses = {
|
|
1151
|
-
/**
|
|
1152
|
-
* The public key for credentials
|
|
1153
|
-
*/
|
|
1154
|
-
200: string;
|
|
1155
|
-
};
|
|
1156
|
-
type GetCredentialsPublicKeyResponse = GetCredentialsPublicKeyResponses[keyof GetCredentialsPublicKeyResponses];
|
|
1157
|
-
type ClientOptions$1 = {
|
|
1158
|
-
baseUrl: 'https://odyssey.asteroid.ai/api/v1' | `${string}://${string}/api/v1` | (string & {});
|
|
1159
|
-
};
|
|
1160
|
-
|
|
1161
|
-
type types_gen$1_AgentExecutionRequest = AgentExecutionRequest;
|
|
1162
|
-
type types_gen$1_AgentProfile = AgentProfile;
|
|
1163
|
-
type types_gen$1_BrowserSessionRecordingResponse = BrowserSessionRecordingResponse;
|
|
1164
|
-
type types_gen$1_Cookie = Cookie;
|
|
1165
|
-
type types_gen$1_CountryCode = CountryCode;
|
|
1166
|
-
type types_gen$1_CreateAgentProfileData = CreateAgentProfileData;
|
|
1167
|
-
type types_gen$1_CreateAgentProfileError = CreateAgentProfileError;
|
|
1168
|
-
type types_gen$1_CreateAgentProfileErrors = CreateAgentProfileErrors;
|
|
1169
|
-
type types_gen$1_CreateAgentProfileRequest = CreateAgentProfileRequest;
|
|
1170
|
-
type types_gen$1_CreateAgentProfileResponse = CreateAgentProfileResponse;
|
|
1171
|
-
type types_gen$1_CreateAgentProfileResponses = CreateAgentProfileResponses;
|
|
1172
|
-
type types_gen$1_Credential = Credential;
|
|
1173
|
-
type types_gen$1_DeleteAgentProfileData = DeleteAgentProfileData;
|
|
1174
|
-
type types_gen$1_DeleteAgentProfileError = DeleteAgentProfileError;
|
|
1175
|
-
type types_gen$1_DeleteAgentProfileErrors = DeleteAgentProfileErrors;
|
|
1176
|
-
type types_gen$1_DeleteAgentProfileResponse = DeleteAgentProfileResponse;
|
|
1177
|
-
type types_gen$1_DeleteAgentProfileResponses = DeleteAgentProfileResponses;
|
|
1178
|
-
type types_gen$1_ErrorResponse = ErrorResponse;
|
|
1179
|
-
type types_gen$1_ExecuteAgentData = ExecuteAgentData;
|
|
1180
|
-
type types_gen$1_ExecuteAgentError = ExecuteAgentError;
|
|
1181
|
-
type types_gen$1_ExecuteAgentErrors = ExecuteAgentErrors;
|
|
1182
|
-
type types_gen$1_ExecuteAgentResponse = ExecuteAgentResponse;
|
|
1183
|
-
type types_gen$1_ExecuteAgentResponses = ExecuteAgentResponses;
|
|
1184
|
-
type types_gen$1_ExecuteAgentStructuredData = ExecuteAgentStructuredData;
|
|
1185
|
-
type types_gen$1_ExecuteAgentStructuredError = ExecuteAgentStructuredError;
|
|
1186
|
-
type types_gen$1_ExecuteAgentStructuredErrors = ExecuteAgentStructuredErrors;
|
|
1187
|
-
type types_gen$1_ExecuteAgentStructuredResponse = ExecuteAgentStructuredResponse;
|
|
1188
|
-
type types_gen$1_ExecuteAgentStructuredResponses = ExecuteAgentStructuredResponses;
|
|
1189
|
-
type types_gen$1_ExecutionResponse = ExecutionResponse;
|
|
1190
|
-
type types_gen$1_ExecutionResult = ExecutionResult;
|
|
1191
|
-
type types_gen$1_ExecutionResultResponse = ExecutionResultResponse;
|
|
1192
|
-
type types_gen$1_ExecutionStatusResponse = ExecutionStatusResponse;
|
|
1193
|
-
type types_gen$1_GetAgentProfileData = GetAgentProfileData;
|
|
1194
|
-
type types_gen$1_GetAgentProfileError = GetAgentProfileError;
|
|
1195
|
-
type types_gen$1_GetAgentProfileErrors = GetAgentProfileErrors;
|
|
1196
|
-
type types_gen$1_GetAgentProfileResponse = GetAgentProfileResponse;
|
|
1197
|
-
type types_gen$1_GetAgentProfileResponses = GetAgentProfileResponses;
|
|
1198
|
-
type types_gen$1_GetAgentProfilesData = GetAgentProfilesData;
|
|
1199
|
-
type types_gen$1_GetAgentProfilesError = GetAgentProfilesError;
|
|
1200
|
-
type types_gen$1_GetAgentProfilesErrors = GetAgentProfilesErrors;
|
|
1201
|
-
type types_gen$1_GetAgentProfilesResponse = GetAgentProfilesResponse;
|
|
1202
|
-
type types_gen$1_GetAgentProfilesResponses = GetAgentProfilesResponses;
|
|
1203
|
-
type types_gen$1_GetBrowserSessionRecordingData = GetBrowserSessionRecordingData;
|
|
1204
|
-
type types_gen$1_GetBrowserSessionRecordingError = GetBrowserSessionRecordingError;
|
|
1205
|
-
type types_gen$1_GetBrowserSessionRecordingErrors = GetBrowserSessionRecordingErrors;
|
|
1206
|
-
type types_gen$1_GetBrowserSessionRecordingResponse = GetBrowserSessionRecordingResponse;
|
|
1207
|
-
type types_gen$1_GetBrowserSessionRecordingResponses = GetBrowserSessionRecordingResponses;
|
|
1208
|
-
type types_gen$1_GetCredentialsPublicKeyData = GetCredentialsPublicKeyData;
|
|
1209
|
-
type types_gen$1_GetCredentialsPublicKeyErrors = GetCredentialsPublicKeyErrors;
|
|
1210
|
-
type types_gen$1_GetCredentialsPublicKeyResponse = GetCredentialsPublicKeyResponse;
|
|
1211
|
-
type types_gen$1_GetCredentialsPublicKeyResponses = GetCredentialsPublicKeyResponses;
|
|
1212
|
-
type types_gen$1_GetExecutionResultData = GetExecutionResultData;
|
|
1213
|
-
type types_gen$1_GetExecutionResultError = GetExecutionResultError;
|
|
1214
|
-
type types_gen$1_GetExecutionResultErrors = GetExecutionResultErrors;
|
|
1215
|
-
type types_gen$1_GetExecutionResultResponse = GetExecutionResultResponse;
|
|
1216
|
-
type types_gen$1_GetExecutionResultResponses = GetExecutionResultResponses;
|
|
1217
|
-
type types_gen$1_GetExecutionStatusData = GetExecutionStatusData;
|
|
1218
|
-
type types_gen$1_GetExecutionStatusError = GetExecutionStatusError;
|
|
1219
|
-
type types_gen$1_GetExecutionStatusErrors = GetExecutionStatusErrors;
|
|
1220
|
-
type types_gen$1_GetExecutionStatusResponse = GetExecutionStatusResponse;
|
|
1221
|
-
type types_gen$1_GetExecutionStatusResponses = GetExecutionStatusResponses;
|
|
1222
|
-
type types_gen$1_GetOpenApiData = GetOpenApiData;
|
|
1223
|
-
type types_gen$1_GetOpenApiResponses = GetOpenApiResponses;
|
|
1224
|
-
type types_gen$1_HealthCheckData = HealthCheckData;
|
|
1225
|
-
type types_gen$1_HealthCheckError = HealthCheckError;
|
|
1226
|
-
type types_gen$1_HealthCheckErrors = HealthCheckErrors;
|
|
1227
|
-
type types_gen$1_HealthCheckResponse = HealthCheckResponse;
|
|
1228
|
-
type types_gen$1_HealthCheckResponses = HealthCheckResponses;
|
|
1229
|
-
type types_gen$1_ProxyType = ProxyType;
|
|
1230
|
-
type types_gen$1_Status = Status;
|
|
1231
|
-
type types_gen$1_StructuredAgentExecutionRequest = StructuredAgentExecutionRequest;
|
|
1232
|
-
type types_gen$1_UpdateAgentProfileData = UpdateAgentProfileData;
|
|
1233
|
-
type types_gen$1_UpdateAgentProfileError = UpdateAgentProfileError;
|
|
1234
|
-
type types_gen$1_UpdateAgentProfileErrors = UpdateAgentProfileErrors;
|
|
1235
|
-
type types_gen$1_UpdateAgentProfileRequest = UpdateAgentProfileRequest;
|
|
1236
|
-
type types_gen$1_UpdateAgentProfileResponse = UpdateAgentProfileResponse;
|
|
1237
|
-
type types_gen$1_UpdateAgentProfileResponses = UpdateAgentProfileResponses;
|
|
1238
|
-
declare namespace types_gen$1 {
|
|
1239
|
-
export type { types_gen$1_AgentExecutionRequest as AgentExecutionRequest, types_gen$1_AgentProfile as AgentProfile, types_gen$1_BrowserSessionRecordingResponse as BrowserSessionRecordingResponse, ClientOptions$1 as ClientOptions, types_gen$1_Cookie as Cookie, types_gen$1_CountryCode as CountryCode, types_gen$1_CreateAgentProfileData as CreateAgentProfileData, types_gen$1_CreateAgentProfileError as CreateAgentProfileError, types_gen$1_CreateAgentProfileErrors as CreateAgentProfileErrors, types_gen$1_CreateAgentProfileRequest as CreateAgentProfileRequest, types_gen$1_CreateAgentProfileResponse as CreateAgentProfileResponse, types_gen$1_CreateAgentProfileResponses as CreateAgentProfileResponses, types_gen$1_Credential as Credential, types_gen$1_DeleteAgentProfileData as DeleteAgentProfileData, types_gen$1_DeleteAgentProfileError as DeleteAgentProfileError, types_gen$1_DeleteAgentProfileErrors as DeleteAgentProfileErrors, types_gen$1_DeleteAgentProfileResponse as DeleteAgentProfileResponse, types_gen$1_DeleteAgentProfileResponses as DeleteAgentProfileResponses, types_gen$1_ErrorResponse as ErrorResponse, types_gen$1_ExecuteAgentData as ExecuteAgentData, types_gen$1_ExecuteAgentError as ExecuteAgentError, types_gen$1_ExecuteAgentErrors as ExecuteAgentErrors, types_gen$1_ExecuteAgentResponse as ExecuteAgentResponse, types_gen$1_ExecuteAgentResponses as ExecuteAgentResponses, types_gen$1_ExecuteAgentStructuredData as ExecuteAgentStructuredData, types_gen$1_ExecuteAgentStructuredError as ExecuteAgentStructuredError, types_gen$1_ExecuteAgentStructuredErrors as ExecuteAgentStructuredErrors, types_gen$1_ExecuteAgentStructuredResponse as ExecuteAgentStructuredResponse, types_gen$1_ExecuteAgentStructuredResponses as ExecuteAgentStructuredResponses, types_gen$1_ExecutionResponse as ExecutionResponse, types_gen$1_ExecutionResult as ExecutionResult, types_gen$1_ExecutionResultResponse as ExecutionResultResponse, types_gen$1_ExecutionStatusResponse as ExecutionStatusResponse, types_gen$1_GetAgentProfileData as GetAgentProfileData, types_gen$1_GetAgentProfileError as GetAgentProfileError, types_gen$1_GetAgentProfileErrors as GetAgentProfileErrors, types_gen$1_GetAgentProfileResponse as GetAgentProfileResponse, types_gen$1_GetAgentProfileResponses as GetAgentProfileResponses, types_gen$1_GetAgentProfilesData as GetAgentProfilesData, types_gen$1_GetAgentProfilesError as GetAgentProfilesError, types_gen$1_GetAgentProfilesErrors as GetAgentProfilesErrors, types_gen$1_GetAgentProfilesResponse as GetAgentProfilesResponse, types_gen$1_GetAgentProfilesResponses as GetAgentProfilesResponses, types_gen$1_GetBrowserSessionRecordingData as GetBrowserSessionRecordingData, types_gen$1_GetBrowserSessionRecordingError as GetBrowserSessionRecordingError, types_gen$1_GetBrowserSessionRecordingErrors as GetBrowserSessionRecordingErrors, types_gen$1_GetBrowserSessionRecordingResponse as GetBrowserSessionRecordingResponse, types_gen$1_GetBrowserSessionRecordingResponses as GetBrowserSessionRecordingResponses, types_gen$1_GetCredentialsPublicKeyData as GetCredentialsPublicKeyData, types_gen$1_GetCredentialsPublicKeyErrors as GetCredentialsPublicKeyErrors, types_gen$1_GetCredentialsPublicKeyResponse as GetCredentialsPublicKeyResponse, types_gen$1_GetCredentialsPublicKeyResponses as GetCredentialsPublicKeyResponses, types_gen$1_GetExecutionResultData as GetExecutionResultData, types_gen$1_GetExecutionResultError as GetExecutionResultError, types_gen$1_GetExecutionResultErrors as GetExecutionResultErrors, types_gen$1_GetExecutionResultResponse as GetExecutionResultResponse, types_gen$1_GetExecutionResultResponses as GetExecutionResultResponses, types_gen$1_GetExecutionStatusData as GetExecutionStatusData, types_gen$1_GetExecutionStatusError as GetExecutionStatusError, types_gen$1_GetExecutionStatusErrors as GetExecutionStatusErrors, types_gen$1_GetExecutionStatusResponse as GetExecutionStatusResponse, types_gen$1_GetExecutionStatusResponses as GetExecutionStatusResponses, types_gen$1_GetOpenApiData as GetOpenApiData, types_gen$1_GetOpenApiResponses as GetOpenApiResponses, types_gen$1_HealthCheckData as HealthCheckData, types_gen$1_HealthCheckError as HealthCheckError, types_gen$1_HealthCheckErrors as HealthCheckErrors, types_gen$1_HealthCheckResponse as HealthCheckResponse, types_gen$1_HealthCheckResponses as HealthCheckResponses, types_gen$1_ProxyType as ProxyType, types_gen$1_Status as Status, types_gen$1_StructuredAgentExecutionRequest as StructuredAgentExecutionRequest, types_gen$1_UpdateAgentProfileData as UpdateAgentProfileData, types_gen$1_UpdateAgentProfileError as UpdateAgentProfileError, types_gen$1_UpdateAgentProfileErrors as UpdateAgentProfileErrors, types_gen$1_UpdateAgentProfileRequest as UpdateAgentProfileRequest, types_gen$1_UpdateAgentProfileResponse as UpdateAgentProfileResponse, types_gen$1_UpdateAgentProfileResponses as UpdateAgentProfileResponses };
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
type ActivityActionCompletedInfoApiCall = {
|
|
1243
|
-
actionName: 'api_call';
|
|
1244
|
-
info: AgentsExecutionApiCallCompletedDetails;
|
|
1245
|
-
};
|
|
1246
|
-
type ActivityActionCompletedInfoBrowserFileUpload = {
|
|
1247
|
-
actionName: 'browser_file_upload';
|
|
1248
|
-
info: AgentsExecutionFileUploadCompletedDetails;
|
|
1249
|
-
};
|
|
1250
|
-
type ActivityActionCompletedInfoBrowserNavigate = {
|
|
1251
|
-
actionName: 'browser_navigate';
|
|
1252
|
-
info: AgentsExecutionNavigationDetails;
|
|
1253
|
-
};
|
|
1254
|
-
type ActivityActionCompletedInfoBrowserSnapshotWithSelectors = {
|
|
1255
|
-
actionName: 'browser_snapshot_with_selectors';
|
|
1256
|
-
info: AgentsExecutionBrowserSnapshotCompletedDetails;
|
|
1257
|
-
};
|
|
1258
|
-
type ActivityActionCompletedInfoGetMail = {
|
|
1259
|
-
actionName: 'get_mail';
|
|
1260
|
-
info: AgentsExecutionGetMailCompletedDetails;
|
|
1261
|
-
};
|
|
1262
|
-
type ActivityActionCompletedInfoGoToUrl = {
|
|
1263
|
-
actionName: 'go_to_url';
|
|
1264
|
-
info: AgentsExecutionNavigationDetails;
|
|
1265
|
-
};
|
|
1266
|
-
type ActivityActionCompletedInfoHybridPlaywright = {
|
|
1267
|
-
actionName: 'hybrid_playwright';
|
|
1268
|
-
info: AgentsExecutionPlaywrightScriptCompletedDetails;
|
|
1269
|
-
};
|
|
1270
|
-
type ActivityActionCompletedInfoListFiles = {
|
|
1271
|
-
actionName: 'list_files';
|
|
1272
|
-
info: AgentsExecutionFileListCompletedDetails;
|
|
1273
|
-
};
|
|
1274
|
-
type ActivityActionCompletedInfoPlaywrightScript = {
|
|
1275
|
-
actionName: 'playwright_script';
|
|
1276
|
-
info: AgentsExecutionPlaywrightScriptCompletedDetails;
|
|
1277
|
-
};
|
|
1278
|
-
type ActivityActionCompletedInfoReadFiles = {
|
|
1279
|
-
actionName: 'read_files';
|
|
1280
|
-
info: AgentsExecutionFileReadCompletedDetails;
|
|
1281
|
-
};
|
|
1282
|
-
type ActivityActionCompletedInfoReadScratchpad = {
|
|
1283
|
-
actionName: 'read_scratchpad';
|
|
1284
|
-
info: AgentsExecutionScratchpadCompletedDetails;
|
|
1285
|
-
};
|
|
1286
|
-
type ActivityActionCompletedInfoScriptpadRead = {
|
|
1287
|
-
actionName: 'scriptpad_read';
|
|
1288
|
-
info: AgentsExecutionScriptpadReadCompletedDetails;
|
|
1289
|
-
};
|
|
1290
|
-
type ActivityActionCompletedInfoScriptpadRunFunction = {
|
|
1291
|
-
actionName: 'scriptpad_run_function';
|
|
1292
|
-
info: AgentsExecutionRunFunctionCompletedDetails;
|
|
1293
|
-
};
|
|
1294
|
-
type ActivityActionCompletedInfoScriptpadSearchReplace = {
|
|
1295
|
-
actionName: 'scriptpad_search_replace';
|
|
1296
|
-
info: AgentsExecutionScriptpadSearchReplaceCompletedDetails;
|
|
1297
|
-
};
|
|
1298
|
-
type ActivityActionCompletedInfoUploadFile = {
|
|
1299
|
-
actionName: 'upload_file';
|
|
1300
|
-
info: AgentsExecutionFileUploadCompletedDetails;
|
|
1301
|
-
};
|
|
1302
|
-
type ActivityActionCompletedInfoUploadLocalFile = {
|
|
1303
|
-
actionName: 'upload_local_file';
|
|
1304
|
-
info: AgentsExecutionFileUploadCompletedDetails;
|
|
1305
|
-
};
|
|
1306
|
-
type ActivityActionCompletedInfoWriteScratchpad = {
|
|
1307
|
-
actionName: 'write_scratchpad';
|
|
1308
|
-
info: AgentsExecutionScratchpadCompletedDetails;
|
|
1309
|
-
};
|
|
1310
|
-
type ActivityActionStartedInfoBrowserNavigate = {
|
|
1311
|
-
actionName: 'browser_navigate';
|
|
1312
|
-
info: AgentsExecutionNavigationDetails;
|
|
1313
|
-
};
|
|
1314
|
-
type ActivityActionStartedInfoGetDatetime = {
|
|
1315
|
-
actionName: 'get_datetime';
|
|
1316
|
-
info: AgentsExecutionGetDatetimeDetails;
|
|
1317
|
-
};
|
|
1318
|
-
type ActivityActionStartedInfoGoToUrl = {
|
|
1319
|
-
actionName: 'go_to_url';
|
|
1320
|
-
info: AgentsExecutionNavigationDetails;
|
|
1321
|
-
};
|
|
1322
|
-
type ActivityActionStartedInfoHybridPlaywright = {
|
|
1323
|
-
actionName: 'hybrid_playwright';
|
|
1324
|
-
info: AgentsExecutionPlaywrightScriptStartedDetails;
|
|
1325
|
-
};
|
|
1326
|
-
type ActivityActionStartedInfoPlaywrightScript = {
|
|
1327
|
-
actionName: 'playwright_script';
|
|
1328
|
-
info: AgentsExecutionPlaywrightScriptStartedDetails;
|
|
1329
|
-
};
|
|
1330
|
-
type ActivityActionStartedInfoReadScratchpad = {
|
|
1331
|
-
actionName: 'read_scratchpad';
|
|
1332
|
-
info: AgentsExecutionScratchpadCompletedDetails;
|
|
1333
|
-
};
|
|
1334
|
-
type ActivityActionStartedInfoScriptpadRead = {
|
|
1335
|
-
actionName: 'scriptpad_read';
|
|
1336
|
-
info: AgentsExecutionScriptpadReadCompletedDetails;
|
|
1337
|
-
};
|
|
1338
|
-
type ActivityActionStartedInfoScriptpadRunFunction = {
|
|
1339
|
-
actionName: 'scriptpad_run_function';
|
|
1340
|
-
info: AgentsExecutionRunFunctionCompletedDetails;
|
|
1341
|
-
};
|
|
1342
|
-
type ActivityActionStartedInfoScriptpadSearchReplace = {
|
|
1343
|
-
actionName: 'scriptpad_search_replace';
|
|
1344
|
-
info: AgentsExecutionScriptpadSearchReplaceCompletedDetails;
|
|
1345
|
-
};
|
|
1346
|
-
type ActivityActionStartedInfoWriteScratchpad = {
|
|
1347
|
-
actionName: 'write_scratchpad';
|
|
1348
|
-
info: AgentsExecutionScratchpadCompletedDetails;
|
|
1349
|
-
};
|
|
1350
|
-
type ActivityPayloadUnionActionCompleted = {
|
|
1351
|
-
activityType: 'action_completed';
|
|
1352
|
-
data: AgentsExecutionActivityActionCompletedPayload;
|
|
1353
|
-
};
|
|
1354
|
-
type ActivityPayloadUnionActionFailed = {
|
|
1355
|
-
activityType: 'action_failed';
|
|
1356
|
-
data: AgentsExecutionActivityActionFailedPayload;
|
|
1357
|
-
};
|
|
1358
|
-
type ActivityPayloadUnionActionStarted = {
|
|
1359
|
-
activityType: 'action_started';
|
|
1360
|
-
data: AgentsExecutionActivityActionStartedPayload;
|
|
1361
|
-
};
|
|
1362
|
-
type ActivityPayloadUnionFileAdded = {
|
|
1363
|
-
activityType: 'file_added';
|
|
1364
|
-
data: AgentsExecutionActivityFileAddedPayload;
|
|
1365
|
-
};
|
|
1366
|
-
type ActivityPayloadUnionGeneric = {
|
|
1367
|
-
activityType: 'generic';
|
|
1368
|
-
data: AgentsExecutionActivityGenericPayload;
|
|
1369
|
-
};
|
|
1370
|
-
type ActivityPayloadUnionPlaywrightScriptGenerated = {
|
|
1371
|
-
activityType: 'playwright_script_generated';
|
|
1372
|
-
data: AgentsExecutionActivityPlaywrightScriptGeneratedPayload;
|
|
1373
|
-
};
|
|
1374
|
-
type ActivityPayloadUnionReasoning = {
|
|
1375
|
-
activityType: 'reasoning';
|
|
1376
|
-
data: AgentsExecutionActivityReasoningPayload;
|
|
1377
|
-
};
|
|
1378
|
-
type ActivityPayloadUnionStatusChanged = {
|
|
1379
|
-
activityType: 'status_changed';
|
|
1380
|
-
data: AgentsExecutionActivityStatusChangedPayload;
|
|
1381
|
-
};
|
|
1382
|
-
type ActivityPayloadUnionStepCompleted = {
|
|
1383
|
-
activityType: 'step_completed';
|
|
1384
|
-
data: AgentsExecutionActivityStepCompletedPayload;
|
|
788
|
+
value: string;
|
|
1385
789
|
};
|
|
1386
|
-
type
|
|
1387
|
-
|
|
1388
|
-
|
|
790
|
+
type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails = {
|
|
791
|
+
actionName: 'obs_snapshot_with_selectors';
|
|
792
|
+
url: string;
|
|
793
|
+
title: string;
|
|
1389
794
|
};
|
|
1390
|
-
type
|
|
1391
|
-
|
|
1392
|
-
data: AgentsExecutionTerminalPayload;
|
|
795
|
+
type AgentsExecutionPausedPayload = {
|
|
796
|
+
reason: string;
|
|
1393
797
|
};
|
|
1394
|
-
type
|
|
1395
|
-
|
|
1396
|
-
data: AgentsExecutionActivityTransitionedNodePayload;
|
|
798
|
+
type AgentsExecutionRulesDetails = {
|
|
799
|
+
rules: string;
|
|
1397
800
|
};
|
|
1398
|
-
type
|
|
1399
|
-
|
|
1400
|
-
|
|
801
|
+
type AgentsExecutionScratchpadReadCompletedDetails = {
|
|
802
|
+
actionName: 'scratchpad_read';
|
|
803
|
+
content?: string;
|
|
804
|
+
contentTruncated?: boolean;
|
|
1401
805
|
};
|
|
1402
|
-
type
|
|
1403
|
-
|
|
1404
|
-
|
|
806
|
+
type AgentsExecutionScratchpadReadStartedDetails = {
|
|
807
|
+
actionName: 'scratchpad_read';
|
|
808
|
+
operation: 'read';
|
|
1405
809
|
};
|
|
1406
|
-
type
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
810
|
+
type AgentsExecutionScratchpadWriteCompletedDetails = {
|
|
811
|
+
actionName: 'scratchpad_write';
|
|
812
|
+
linesChanged: number;
|
|
813
|
+
totalLines: number;
|
|
814
|
+
patchesApplied: number;
|
|
815
|
+
content?: string;
|
|
816
|
+
contentTruncated?: boolean;
|
|
1412
817
|
};
|
|
1413
|
-
type
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
*/
|
|
1417
|
-
agentProfileId?: CommonUuid;
|
|
1418
|
-
/**
|
|
1419
|
-
* Dynamic data to be merged into the placeholders defined in prompts
|
|
1420
|
-
*/
|
|
1421
|
-
dynamicData?: {
|
|
1422
|
-
[key: string]: unknown;
|
|
1423
|
-
};
|
|
1424
|
-
/**
|
|
1425
|
-
* Array of temporary files to attach to the execution. Must have been pre-uploaded using the stage file endpoint
|
|
1426
|
-
*/
|
|
1427
|
-
tempFiles?: Array<AgentsFilesTempFile>;
|
|
1428
|
-
/**
|
|
1429
|
-
* Optional metadata key-value pairs (string keys and string values) for organizing and filtering executions
|
|
1430
|
-
*/
|
|
1431
|
-
metadata?: {
|
|
1432
|
-
[key: string]: unknown;
|
|
1433
|
-
};
|
|
1434
|
-
/**
|
|
1435
|
-
* The version of the agent to execute. If not provided, the latest version will be used.
|
|
1436
|
-
*/
|
|
1437
|
-
version?: number;
|
|
818
|
+
type AgentsExecutionScratchpadWriteStartedDetails = {
|
|
819
|
+
actionName: 'scratchpad_write';
|
|
820
|
+
operation: 'write';
|
|
1438
821
|
};
|
|
1439
|
-
type
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
*/
|
|
1443
|
-
executionId: CommonUuid;
|
|
822
|
+
type AgentsExecutionScriptEvalCompletedDetails = {
|
|
823
|
+
actionName: 'script_eval';
|
|
824
|
+
result: unknown;
|
|
1444
825
|
};
|
|
1445
|
-
type
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
executionId: CommonUuid;
|
|
1451
|
-
timestamp: string;
|
|
826
|
+
type AgentsExecutionScriptEvalStartedDetails = {
|
|
827
|
+
actionName: 'script_eval';
|
|
828
|
+
element?: string;
|
|
829
|
+
ref?: string;
|
|
830
|
+
function: string;
|
|
1452
831
|
};
|
|
1453
|
-
type
|
|
1454
|
-
actionName: '
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
} & ActivityActionCompletedInfoGoToUrl) | ({
|
|
1460
|
-
actionName: 'read_scratchpad';
|
|
1461
|
-
} & ActivityActionCompletedInfoReadScratchpad) | ({
|
|
1462
|
-
actionName: 'write_scratchpad';
|
|
1463
|
-
} & ActivityActionCompletedInfoWriteScratchpad) | ({
|
|
1464
|
-
actionName: 'playwright_script';
|
|
1465
|
-
} & ActivityActionCompletedInfoPlaywrightScript) | ({
|
|
1466
|
-
actionName: 'hybrid_playwright';
|
|
1467
|
-
} & ActivityActionCompletedInfoHybridPlaywright) | ({
|
|
1468
|
-
actionName: 'read_files';
|
|
1469
|
-
} & ActivityActionCompletedInfoReadFiles) | ({
|
|
1470
|
-
actionName: 'list_files';
|
|
1471
|
-
} & ActivityActionCompletedInfoListFiles) | ({
|
|
1472
|
-
actionName: 'upload_file';
|
|
1473
|
-
} & ActivityActionCompletedInfoUploadFile) | ({
|
|
1474
|
-
actionName: 'upload_local_file';
|
|
1475
|
-
} & ActivityActionCompletedInfoUploadLocalFile) | ({
|
|
1476
|
-
actionName: 'browser_file_upload';
|
|
1477
|
-
} & ActivityActionCompletedInfoBrowserFileUpload) | ({
|
|
1478
|
-
actionName: 'get_mail';
|
|
1479
|
-
} & ActivityActionCompletedInfoGetMail) | ({
|
|
1480
|
-
actionName: 'scriptpad_run_function';
|
|
1481
|
-
} & ActivityActionCompletedInfoScriptpadRunFunction) | ({
|
|
1482
|
-
actionName: 'scriptpad_read';
|
|
1483
|
-
} & ActivityActionCompletedInfoScriptpadRead) | ({
|
|
1484
|
-
actionName: 'scriptpad_search_replace';
|
|
1485
|
-
} & ActivityActionCompletedInfoScriptpadSearchReplace) | ({
|
|
1486
|
-
actionName: 'browser_snapshot_with_selectors';
|
|
1487
|
-
} & ActivityActionCompletedInfoBrowserSnapshotWithSelectors);
|
|
1488
|
-
type AgentsExecutionActivityActionCompletedPayload = {
|
|
1489
|
-
message: string;
|
|
1490
|
-
actionName: AgentsExecutionActionName;
|
|
1491
|
-
actionId?: string;
|
|
1492
|
-
duration?: number;
|
|
1493
|
-
info?: AgentsExecutionActivityActionCompletedInfo;
|
|
832
|
+
type AgentsExecutionScriptHybridPlaywrightCompletedDetails = {
|
|
833
|
+
actionName: 'script_hybrid_playwright';
|
|
834
|
+
success: boolean;
|
|
835
|
+
result: string;
|
|
836
|
+
consoleLogs: Array<string>;
|
|
837
|
+
failedLine?: number;
|
|
1494
838
|
};
|
|
1495
|
-
type
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
actionId?: string;
|
|
1499
|
-
duration?: number;
|
|
839
|
+
type AgentsExecutionScriptHybridPlaywrightStartedDetails = {
|
|
840
|
+
actionName: 'script_hybrid_playwright';
|
|
841
|
+
llmVars?: Array<string>;
|
|
1500
842
|
};
|
|
1501
|
-
type
|
|
1502
|
-
actionName: 'browser_navigate';
|
|
1503
|
-
} & ActivityActionStartedInfoBrowserNavigate) | ({
|
|
1504
|
-
actionName: 'go_to_url';
|
|
1505
|
-
} & ActivityActionStartedInfoGoToUrl) | ({
|
|
1506
|
-
actionName: 'read_scratchpad';
|
|
1507
|
-
} & ActivityActionStartedInfoReadScratchpad) | ({
|
|
1508
|
-
actionName: 'write_scratchpad';
|
|
1509
|
-
} & ActivityActionStartedInfoWriteScratchpad) | ({
|
|
843
|
+
type AgentsExecutionScriptPadRunFunctionCompletedDetails = {
|
|
1510
844
|
actionName: 'scriptpad_run_function';
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
} & ActivityActionStartedInfoHybridPlaywright) | ({
|
|
1516
|
-
actionName: 'scriptpad_read';
|
|
1517
|
-
} & ActivityActionStartedInfoScriptpadRead) | ({
|
|
1518
|
-
actionName: 'scriptpad_search_replace';
|
|
1519
|
-
} & ActivityActionStartedInfoScriptpadSearchReplace) | ({
|
|
1520
|
-
actionName: 'get_datetime';
|
|
1521
|
-
} & ActivityActionStartedInfoGetDatetime);
|
|
1522
|
-
type AgentsExecutionActivityActionStartedPayload = {
|
|
1523
|
-
message: string;
|
|
1524
|
-
actionName: AgentsExecutionActionName;
|
|
1525
|
-
actionId?: string;
|
|
1526
|
-
duration?: number;
|
|
1527
|
-
info?: AgentsExecutionActivityActionStartedInfo;
|
|
845
|
+
success: boolean;
|
|
846
|
+
result: string;
|
|
847
|
+
consoleLogs: Array<string>;
|
|
848
|
+
failedLine?: number;
|
|
1528
849
|
};
|
|
1529
|
-
type
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
presignedUrl: string;
|
|
850
|
+
type AgentsExecutionScriptPlaywrightCompletedDetails = {
|
|
851
|
+
actionName: 'script_playwright';
|
|
852
|
+
success: boolean;
|
|
853
|
+
result: string;
|
|
854
|
+
consoleLogs: Array<string>;
|
|
855
|
+
failedLine?: number;
|
|
1536
856
|
};
|
|
1537
|
-
type
|
|
1538
|
-
|
|
857
|
+
type AgentsExecutionScriptPlaywrightStartedDetails = {
|
|
858
|
+
actionName: 'script_playwright';
|
|
859
|
+
llmVars?: Array<string>;
|
|
1539
860
|
};
|
|
1540
|
-
type
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
activityType: 'generic';
|
|
1544
|
-
} & ActivityPayloadUnionGeneric) | ({
|
|
1545
|
-
activityType: 'reasoning';
|
|
1546
|
-
} & ActivityPayloadUnionReasoning) | ({
|
|
1547
|
-
activityType: 'step_started';
|
|
1548
|
-
} & ActivityPayloadUnionStepStarted) | ({
|
|
1549
|
-
activityType: 'step_completed';
|
|
1550
|
-
} & ActivityPayloadUnionStepCompleted) | ({
|
|
1551
|
-
activityType: 'transitioned_node';
|
|
1552
|
-
} & ActivityPayloadUnionTransitionedNode) | ({
|
|
1553
|
-
activityType: 'status_changed';
|
|
1554
|
-
} & ActivityPayloadUnionStatusChanged) | ({
|
|
1555
|
-
activityType: 'action_started';
|
|
1556
|
-
} & ActivityPayloadUnionActionStarted) | ({
|
|
1557
|
-
activityType: 'action_completed';
|
|
1558
|
-
} & ActivityPayloadUnionActionCompleted) | ({
|
|
1559
|
-
activityType: 'action_failed';
|
|
1560
|
-
} & ActivityPayloadUnionActionFailed) | ({
|
|
1561
|
-
activityType: 'user_message_received';
|
|
1562
|
-
} & ActivityPayloadUnionUserMessageReceived) | ({
|
|
1563
|
-
activityType: 'file_added';
|
|
1564
|
-
} & ActivityPayloadUnionFileAdded) | ({
|
|
1565
|
-
activityType: 'workflow_updated';
|
|
1566
|
-
} & ActivityPayloadUnionWorkflowUpdated) | ({
|
|
1567
|
-
activityType: 'playwright_script_generated';
|
|
1568
|
-
} & ActivityPayloadUnionPlaywrightScriptGenerated);
|
|
1569
|
-
type AgentsExecutionActivityPlaywrightScriptGeneratedPayload = {
|
|
1570
|
-
nodeId: CommonUuid;
|
|
1571
|
-
nodeName: string;
|
|
1572
|
-
script: string;
|
|
1573
|
-
llmVars?: Array<AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar>;
|
|
1574
|
-
context: string;
|
|
1575
|
-
oldScript?: string;
|
|
861
|
+
type AgentsExecutionScriptpadReadCompletedDetails = {
|
|
862
|
+
actionName: 'scriptpad_read';
|
|
863
|
+
content: string;
|
|
1576
864
|
};
|
|
1577
|
-
type
|
|
1578
|
-
|
|
865
|
+
type AgentsExecutionScriptpadReadStartedDetails = {
|
|
866
|
+
actionName: 'scriptpad_read';
|
|
867
|
+
offset: number;
|
|
868
|
+
limit: number;
|
|
1579
869
|
};
|
|
1580
|
-
type
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
pausedPayload?: AgentsExecutionPausedPayload;
|
|
1585
|
-
awaitingConfirmationPayload?: AgentsExecutionAwaitingConfirmationPayload;
|
|
1586
|
-
cancelledPayload?: AgentsExecutionCancelledPayload;
|
|
870
|
+
type AgentsExecutionScriptpadRunFunctionStartedDetails = {
|
|
871
|
+
actionName: 'scriptpad_run_function';
|
|
872
|
+
functionName: string;
|
|
873
|
+
arguments: unknown;
|
|
1587
874
|
};
|
|
1588
|
-
type
|
|
1589
|
-
|
|
875
|
+
type AgentsExecutionScriptpadSearchReplaceCompletedDetails = {
|
|
876
|
+
actionName: 'scriptpad_search_replace';
|
|
877
|
+
linesReplaced: number;
|
|
878
|
+
linesReplacedWith: number;
|
|
879
|
+
oldTotalLines: number;
|
|
880
|
+
newTotalLines: number;
|
|
881
|
+
oldScriptpad?: string;
|
|
882
|
+
newScriptpad?: string;
|
|
883
|
+
};
|
|
884
|
+
type AgentsExecutionScriptpadSearchReplaceStartedDetails = {
|
|
885
|
+
actionName: 'scriptpad_search_replace';
|
|
886
|
+
search: string;
|
|
887
|
+
replace: string;
|
|
888
|
+
replaceAll: boolean;
|
|
1590
889
|
};
|
|
1591
|
-
type
|
|
1592
|
-
|
|
890
|
+
type AgentsExecutionScriptpadWriteCompletedDetails = {
|
|
891
|
+
actionName: 'scriptpad_write';
|
|
892
|
+
linesChanged: number;
|
|
893
|
+
totalLines: number;
|
|
894
|
+
patchesApplied: number;
|
|
895
|
+
scriptpad?: string;
|
|
1593
896
|
};
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
897
|
+
/**
|
|
898
|
+
* Fields that can be used for sorting executions
|
|
899
|
+
*/
|
|
900
|
+
type AgentsExecutionSortField = 'created_at' | 'status';
|
|
901
|
+
type AgentsExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
|
|
902
|
+
type AgentsExecutionTerminalPayload = {
|
|
903
|
+
activityType: 'terminal';
|
|
904
|
+
reason: 'unsubscribe' | 'complete' | 'error';
|
|
905
|
+
message?: string;
|
|
1599
906
|
};
|
|
1600
|
-
type
|
|
907
|
+
type AgentsExecutionTransitionDetails = {
|
|
908
|
+
transitionID: CommonUuid;
|
|
909
|
+
transitionType: string;
|
|
910
|
+
};
|
|
911
|
+
type AgentsExecutionUpdateExecutionStatusRequest = {
|
|
912
|
+
/**
|
|
913
|
+
* The new status to set for the execution
|
|
914
|
+
*/
|
|
915
|
+
status: AgentsExecutionUpdateableStatus;
|
|
916
|
+
};
|
|
917
|
+
type AgentsExecutionUpdateType = 'add' | 'edit' | 'delete';
|
|
918
|
+
/**
|
|
919
|
+
* Status values that can be set via the update endpoint
|
|
920
|
+
*/
|
|
921
|
+
type AgentsExecutionUpdateableStatus = 'running' | 'paused' | 'cancelled';
|
|
922
|
+
type AgentsExecutionUserMessagesAddTextBody = {
|
|
1601
923
|
message: string;
|
|
1602
|
-
userUUID: CommonUuid;
|
|
1603
924
|
};
|
|
1604
|
-
type
|
|
1605
|
-
|
|
925
|
+
type AgentsExecutionUtilGetDatetimeCompletedDetails = {
|
|
926
|
+
actionName: 'util_get_datetime';
|
|
927
|
+
usedBrowserTimezone: boolean;
|
|
928
|
+
datetime: string;
|
|
929
|
+
tzTimezoneIdentifier: string;
|
|
1606
930
|
};
|
|
1607
|
-
type
|
|
1608
|
-
|
|
931
|
+
type AgentsExecutionUtilGetDatetimeStartedDetails = {
|
|
932
|
+
actionName: 'util_get_datetime';
|
|
933
|
+
tzTimezoneIdentifier: string;
|
|
1609
934
|
};
|
|
1610
|
-
type
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
935
|
+
type AgentsExecutionWorkflowUpdate = {
|
|
936
|
+
updateType: AgentsExecutionUpdateType;
|
|
937
|
+
rulesDetails?: AgentsExecutionRulesDetails;
|
|
938
|
+
nodeDetails?: AgentsExecutionNodeDetails;
|
|
939
|
+
transitionDetails?: AgentsExecutionTransitionDetails;
|
|
1615
940
|
};
|
|
1616
|
-
type
|
|
1617
|
-
|
|
941
|
+
type AgentsFilesFile = {
|
|
942
|
+
id: CommonUuid;
|
|
943
|
+
executionId: CommonUuid;
|
|
944
|
+
agentId: CommonUuid;
|
|
945
|
+
filePath: string;
|
|
946
|
+
fileName: string;
|
|
947
|
+
fileExt: string;
|
|
948
|
+
fileSize: number;
|
|
949
|
+
fileType: string;
|
|
950
|
+
mimeType: string;
|
|
951
|
+
createdAt: string;
|
|
952
|
+
signedUrl: string;
|
|
1618
953
|
};
|
|
1619
|
-
type
|
|
1620
|
-
|
|
1621
|
-
|
|
954
|
+
type AgentsFilesFilePart = Blob | File;
|
|
955
|
+
type AgentsFilesTempFile = {
|
|
956
|
+
id: CommonUuid;
|
|
957
|
+
name: string;
|
|
1622
958
|
};
|
|
1623
|
-
type
|
|
1624
|
-
|
|
1625
|
-
|
|
959
|
+
type AgentsFilesTempFilesResponse = {
|
|
960
|
+
tempFiles: Array<AgentsFilesTempFile>;
|
|
961
|
+
};
|
|
962
|
+
type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar = {
|
|
963
|
+
name: string;
|
|
964
|
+
type: AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType;
|
|
965
|
+
description: string;
|
|
1626
966
|
};
|
|
967
|
+
type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType = 'string' | 'number' | 'boolean';
|
|
968
|
+
type AgentsGraphModelsTransitionsTransitionType = 'iris' | 'selector' | 'outcome_success';
|
|
1627
969
|
/**
|
|
1628
|
-
*
|
|
970
|
+
* An agent profile containing browser configuration and credentials
|
|
1629
971
|
*/
|
|
1630
|
-
type
|
|
972
|
+
type AgentsProfileAgentProfile = {
|
|
1631
973
|
/**
|
|
1632
|
-
* Unique identifier for the
|
|
974
|
+
* Unique identifier for the agent profile
|
|
1633
975
|
*/
|
|
1634
976
|
id: CommonUuid;
|
|
1635
977
|
/**
|
|
1636
|
-
*
|
|
978
|
+
* Name of the agent profile (unique within organization)
|
|
1637
979
|
*/
|
|
1638
|
-
|
|
980
|
+
name: string;
|
|
1639
981
|
/**
|
|
1640
|
-
*
|
|
982
|
+
* Description of the agent profile
|
|
1641
983
|
*/
|
|
1642
|
-
|
|
984
|
+
description: string;
|
|
1643
985
|
/**
|
|
1644
|
-
*
|
|
986
|
+
* The ID of the organization that owns this profile
|
|
1645
987
|
*/
|
|
1646
|
-
|
|
988
|
+
organizationId: CommonUuid;
|
|
1647
989
|
/**
|
|
1648
|
-
*
|
|
990
|
+
* Country code for proxy location
|
|
1649
991
|
*/
|
|
1650
|
-
|
|
992
|
+
proxyCC?: AgentsProfileCountryCode;
|
|
1651
993
|
/**
|
|
1652
|
-
*
|
|
994
|
+
* Type of proxy to use
|
|
995
|
+
*/
|
|
996
|
+
proxyType?: AgentsProfileProxyType;
|
|
997
|
+
/**
|
|
998
|
+
* Whether the captcha solver is active for this profile
|
|
999
|
+
*/
|
|
1000
|
+
captchaSolverActive: boolean;
|
|
1001
|
+
/**
|
|
1002
|
+
* Whether to use the same IP address for all executions
|
|
1003
|
+
*/
|
|
1004
|
+
stickyIP: boolean;
|
|
1005
|
+
/**
|
|
1006
|
+
* Operating system to emulate
|
|
1007
|
+
*/
|
|
1008
|
+
operatingSystem?: AgentsProfileOperatingSystem;
|
|
1009
|
+
/**
|
|
1010
|
+
* Whether extra stealth mode is enabled
|
|
1011
|
+
*/
|
|
1012
|
+
extraStealth: boolean;
|
|
1013
|
+
/**
|
|
1014
|
+
* Whether to persist browser cache between sessions
|
|
1015
|
+
*/
|
|
1016
|
+
cachePersistence: boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
* List of credentials associated with this profile
|
|
1019
|
+
*/
|
|
1020
|
+
credentials: Array<AgentsProfileCredential>;
|
|
1021
|
+
/**
|
|
1022
|
+
* List of cookies associated with this profile
|
|
1023
|
+
*/
|
|
1024
|
+
cookies: Array<AgentsProfileCookie>;
|
|
1025
|
+
/**
|
|
1026
|
+
* When the profile was created
|
|
1653
1027
|
*/
|
|
1654
1028
|
createdAt: string;
|
|
1655
1029
|
/**
|
|
1656
|
-
* When the
|
|
1030
|
+
* When the profile was last updated
|
|
1657
1031
|
*/
|
|
1658
|
-
updatedAt
|
|
1659
|
-
};
|
|
1660
|
-
type AgentsExecutionCompletedPayload = {
|
|
1661
|
-
outcome: string;
|
|
1662
|
-
reasoning: string;
|
|
1663
|
-
result: unknown;
|
|
1664
|
-
lessons_learned?: string;
|
|
1032
|
+
updatedAt: string;
|
|
1665
1033
|
};
|
|
1666
1034
|
/**
|
|
1667
|
-
*
|
|
1035
|
+
* A browser cookie stored for an agent profile
|
|
1668
1036
|
*/
|
|
1669
|
-
type
|
|
1037
|
+
type AgentsProfileCookie = {
|
|
1670
1038
|
/**
|
|
1671
|
-
* Unique identifier for the
|
|
1039
|
+
* Unique identifier for the cookie
|
|
1672
1040
|
*/
|
|
1673
|
-
id
|
|
1041
|
+
id?: CommonUuid;
|
|
1674
1042
|
/**
|
|
1675
|
-
*
|
|
1043
|
+
* Display name for the cookie
|
|
1676
1044
|
*/
|
|
1677
|
-
|
|
1045
|
+
name: string;
|
|
1678
1046
|
/**
|
|
1679
|
-
*
|
|
1047
|
+
* The cookie key/name as sent in HTTP headers
|
|
1680
1048
|
*/
|
|
1681
|
-
|
|
1049
|
+
key: string;
|
|
1682
1050
|
/**
|
|
1683
|
-
*
|
|
1051
|
+
* The cookie value
|
|
1684
1052
|
*/
|
|
1685
|
-
|
|
1053
|
+
value: string;
|
|
1686
1054
|
/**
|
|
1687
|
-
*
|
|
1055
|
+
* When the cookie expires (optional)
|
|
1688
1056
|
*/
|
|
1689
|
-
|
|
1057
|
+
expiry?: string;
|
|
1690
1058
|
/**
|
|
1691
|
-
*
|
|
1059
|
+
* The domain for which the cookie is valid
|
|
1692
1060
|
*/
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
type AgentsExecutionGetDatetimeDetails = {
|
|
1711
|
-
tzTimezoneIdentifier: string;
|
|
1712
|
-
};
|
|
1713
|
-
type AgentsExecutionGetMailCompletedDetails = {
|
|
1714
|
-
emailCount: number;
|
|
1715
|
-
emails: Array<unknown>;
|
|
1061
|
+
domain: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* Whether the cookie should only be sent over HTTPS
|
|
1064
|
+
*/
|
|
1065
|
+
secure: boolean;
|
|
1066
|
+
/**
|
|
1067
|
+
* SameSite attribute for the cookie
|
|
1068
|
+
*/
|
|
1069
|
+
sameSite: AgentsProfileSameSite;
|
|
1070
|
+
/**
|
|
1071
|
+
* Whether the cookie should be accessible only via HTTP(S)
|
|
1072
|
+
*/
|
|
1073
|
+
httpOnly: boolean;
|
|
1074
|
+
/**
|
|
1075
|
+
* When the cookie was created
|
|
1076
|
+
*/
|
|
1077
|
+
createdAt?: string;
|
|
1716
1078
|
};
|
|
1717
1079
|
/**
|
|
1718
|
-
*
|
|
1080
|
+
* Two-letter country code for proxy location
|
|
1719
1081
|
*/
|
|
1720
|
-
type
|
|
1082
|
+
type AgentsProfileCountryCode = 'us' | 'uk' | 'fr' | 'it' | 'jp' | 'au' | 'de' | 'fi' | 'ca';
|
|
1083
|
+
/**
|
|
1084
|
+
* Request to create a new agent profile
|
|
1085
|
+
*/
|
|
1086
|
+
type AgentsProfileCreateAgentProfileRequest = {
|
|
1721
1087
|
/**
|
|
1722
|
-
*
|
|
1088
|
+
* Name of the agent profile (must be unique within organization)
|
|
1723
1089
|
*/
|
|
1724
|
-
|
|
1090
|
+
name: string;
|
|
1725
1091
|
/**
|
|
1726
|
-
*
|
|
1092
|
+
* Description of the agent profile
|
|
1093
|
+
*/
|
|
1094
|
+
description: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* The ID of the organization that the profile belongs to
|
|
1727
1097
|
*/
|
|
1728
1098
|
organizationId: CommonUuid;
|
|
1729
1099
|
/**
|
|
1730
|
-
*
|
|
1100
|
+
* Country code for proxy location
|
|
1731
1101
|
*/
|
|
1732
|
-
|
|
1102
|
+
proxyCC?: AgentsProfileCountryCode;
|
|
1733
1103
|
/**
|
|
1734
|
-
*
|
|
1104
|
+
* Type of proxy to use
|
|
1735
1105
|
*/
|
|
1736
|
-
|
|
1106
|
+
proxyType?: AgentsProfileProxyType;
|
|
1737
1107
|
/**
|
|
1738
|
-
*
|
|
1108
|
+
* Whether the captcha solver should be active
|
|
1739
1109
|
*/
|
|
1740
|
-
|
|
1110
|
+
captchaSolverActive?: boolean;
|
|
1111
|
+
/**
|
|
1112
|
+
* Whether to use the same IP address for all executions
|
|
1113
|
+
*/
|
|
1114
|
+
stickyIP?: boolean;
|
|
1115
|
+
/**
|
|
1116
|
+
* Operating system to emulate
|
|
1117
|
+
*/
|
|
1118
|
+
operatingSystem?: AgentsProfileOperatingSystem;
|
|
1119
|
+
/**
|
|
1120
|
+
* Whether to enable extra stealth mode
|
|
1121
|
+
*/
|
|
1122
|
+
extraStealth?: boolean;
|
|
1123
|
+
/**
|
|
1124
|
+
* Whether to persist browser cache between sessions
|
|
1125
|
+
*/
|
|
1126
|
+
cachePersistence?: boolean;
|
|
1127
|
+
/**
|
|
1128
|
+
* Initial credentials to create with the profile
|
|
1129
|
+
*/
|
|
1130
|
+
credentials?: Array<AgentsProfileCredential>;
|
|
1131
|
+
/**
|
|
1132
|
+
* Initial cookies to create with the profile
|
|
1133
|
+
*/
|
|
1134
|
+
cookies?: Array<AgentsProfileCookie>;
|
|
1741
1135
|
};
|
|
1742
1136
|
/**
|
|
1743
|
-
*
|
|
1137
|
+
* A credential stored for an agent profile
|
|
1744
1138
|
*/
|
|
1745
|
-
type
|
|
1139
|
+
type AgentsProfileCredential = {
|
|
1746
1140
|
/**
|
|
1747
|
-
*
|
|
1141
|
+
* Unique identifier for the credential
|
|
1748
1142
|
*/
|
|
1749
|
-
id
|
|
1143
|
+
id?: CommonUuid;
|
|
1750
1144
|
/**
|
|
1751
|
-
*
|
|
1145
|
+
* Display name for the credential (will be uppercased)
|
|
1752
1146
|
*/
|
|
1753
|
-
|
|
1147
|
+
name: string;
|
|
1754
1148
|
/**
|
|
1755
|
-
* The
|
|
1149
|
+
* The credential value (plaintext - will be encrypted server-side)
|
|
1756
1150
|
*/
|
|
1757
|
-
|
|
1151
|
+
data: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* When the credential was created
|
|
1154
|
+
*/
|
|
1155
|
+
createdAt?: string;
|
|
1156
|
+
};
|
|
1157
|
+
/**
|
|
1158
|
+
* Operating system to emulate in the browser
|
|
1159
|
+
*/
|
|
1160
|
+
type AgentsProfileOperatingSystem = 'macos' | 'windows';
|
|
1161
|
+
/**
|
|
1162
|
+
* Type of proxy to use for browser sessions
|
|
1163
|
+
*/
|
|
1164
|
+
type AgentsProfileProxyType = 'basic' | 'residential' | 'mobile';
|
|
1165
|
+
/**
|
|
1166
|
+
* SameSite attribute for cookies
|
|
1167
|
+
*/
|
|
1168
|
+
type AgentsProfileSameSite = 'Strict' | 'Lax' | 'None';
|
|
1169
|
+
/**
|
|
1170
|
+
* Available fields for sorting agent profiles
|
|
1171
|
+
*/
|
|
1172
|
+
type AgentsProfileSortField = 'name' | 'created_at' | 'updated_at';
|
|
1173
|
+
/**
|
|
1174
|
+
* Request to update an existing agent profile
|
|
1175
|
+
*/
|
|
1176
|
+
type AgentsProfileUpdateAgentProfileRequest = {
|
|
1758
1177
|
/**
|
|
1759
|
-
*
|
|
1178
|
+
* New name for the profile
|
|
1760
1179
|
*/
|
|
1761
|
-
|
|
1180
|
+
name?: string;
|
|
1762
1181
|
/**
|
|
1763
|
-
*
|
|
1182
|
+
* New description for the profile
|
|
1764
1183
|
*/
|
|
1765
|
-
|
|
1184
|
+
description?: string;
|
|
1766
1185
|
/**
|
|
1767
|
-
*
|
|
1186
|
+
* Country code for proxy location
|
|
1768
1187
|
*/
|
|
1769
|
-
|
|
1188
|
+
proxyCC?: AgentsProfileCountryCode;
|
|
1770
1189
|
/**
|
|
1771
|
-
*
|
|
1190
|
+
* Type of proxy to use (set to empty string to disable proxy)
|
|
1772
1191
|
*/
|
|
1773
|
-
|
|
1192
|
+
proxyType?: AgentsProfileProxyType;
|
|
1774
1193
|
/**
|
|
1775
|
-
*
|
|
1194
|
+
* Whether the captcha solver should be active
|
|
1776
1195
|
*/
|
|
1777
|
-
|
|
1196
|
+
captchaSolverActive?: boolean;
|
|
1778
1197
|
/**
|
|
1779
|
-
*
|
|
1198
|
+
* Operating system to emulate
|
|
1780
1199
|
*/
|
|
1781
|
-
|
|
1200
|
+
operatingSystem?: AgentsProfileOperatingSystem;
|
|
1782
1201
|
/**
|
|
1783
|
-
*
|
|
1202
|
+
* Whether to enable extra stealth mode
|
|
1784
1203
|
*/
|
|
1785
|
-
|
|
1204
|
+
extraStealth?: boolean;
|
|
1786
1205
|
/**
|
|
1787
|
-
*
|
|
1206
|
+
* Whether to persist browser cache between sessions
|
|
1788
1207
|
*/
|
|
1789
|
-
|
|
1208
|
+
cachePersistence?: boolean;
|
|
1790
1209
|
/**
|
|
1791
|
-
*
|
|
1210
|
+
* Credentials to add to the profile
|
|
1792
1211
|
*/
|
|
1793
|
-
|
|
1212
|
+
credentialsToAdd?: Array<AgentsProfileCredential>;
|
|
1794
1213
|
/**
|
|
1795
|
-
*
|
|
1214
|
+
* IDs of credentials to remove from the profile
|
|
1796
1215
|
*/
|
|
1797
|
-
|
|
1216
|
+
credentialsToDelete?: Array<CommonUuid>;
|
|
1798
1217
|
/**
|
|
1799
|
-
*
|
|
1218
|
+
* Cookies to add to the profile
|
|
1800
1219
|
*/
|
|
1801
|
-
|
|
1220
|
+
cookiesToAdd?: Array<AgentsProfileCookie>;
|
|
1802
1221
|
/**
|
|
1803
|
-
*
|
|
1222
|
+
* IDs of cookies to remove from the profile
|
|
1804
1223
|
*/
|
|
1805
|
-
|
|
1806
|
-
[key: string]: unknown;
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
|
-
type AgentsExecutionNavigationDetails = {
|
|
1810
|
-
url: string;
|
|
1811
|
-
pageTitle?: string;
|
|
1812
|
-
};
|
|
1813
|
-
type AgentsExecutionNodeDetails = {
|
|
1814
|
-
nodeID: CommonUuid;
|
|
1815
|
-
nodeName: string;
|
|
1816
|
-
nodeType: string;
|
|
1817
|
-
};
|
|
1818
|
-
type AgentsExecutionPausedPayload = {
|
|
1819
|
-
reason: string;
|
|
1820
|
-
};
|
|
1821
|
-
type AgentsExecutionPlaywrightScriptCompletedDetails = {
|
|
1822
|
-
scriptContent: string;
|
|
1823
|
-
executionTimeMs?: number;
|
|
1824
|
-
consoleLogs?: Array<string>;
|
|
1825
|
-
failedLine?: number;
|
|
1826
|
-
errorMessage?: string;
|
|
1827
|
-
success: boolean;
|
|
1828
|
-
result?: string;
|
|
1829
|
-
llmVars?: Array<string>;
|
|
1830
|
-
};
|
|
1831
|
-
type AgentsExecutionPlaywrightScriptStartedDetails = {
|
|
1832
|
-
llmVars?: Array<string>;
|
|
1833
|
-
};
|
|
1834
|
-
type AgentsExecutionRunFunctionCompletedDetails = {
|
|
1835
|
-
functionName: string;
|
|
1836
|
-
arguments: unknown;
|
|
1837
|
-
success: boolean;
|
|
1838
|
-
result?: string;
|
|
1839
|
-
errorMessage?: string;
|
|
1840
|
-
};
|
|
1841
|
-
type AgentsExecutionScratchpadCompletedDetails = {
|
|
1842
|
-
operation: 'read' | 'write';
|
|
1843
|
-
content?: string;
|
|
1844
|
-
contentTruncated?: boolean;
|
|
1845
|
-
};
|
|
1846
|
-
type AgentsExecutionScriptpadReadCompletedDetails = {
|
|
1847
|
-
totalLines: number;
|
|
1848
|
-
readLines?: number;
|
|
1849
|
-
offset?: number;
|
|
1850
|
-
limit?: number;
|
|
1851
|
-
scriptpad?: string;
|
|
1852
|
-
};
|
|
1853
|
-
type AgentsExecutionScriptpadSearchReplaceCompletedDetails = {
|
|
1854
|
-
linesChanged?: number;
|
|
1855
|
-
totalLines: number;
|
|
1856
|
-
replaceAll: boolean;
|
|
1857
|
-
scriptpad?: string;
|
|
1858
|
-
};
|
|
1859
|
-
/**
|
|
1860
|
-
* Fields that can be used for sorting executions
|
|
1861
|
-
*/
|
|
1862
|
-
type AgentsExecutionSortField = 'created_at' | 'status';
|
|
1863
|
-
type AgentsExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
|
|
1864
|
-
type AgentsExecutionTerminalPayload = {
|
|
1865
|
-
reason: 'unsubscribe' | 'complete' | 'error';
|
|
1866
|
-
message?: string;
|
|
1867
|
-
};
|
|
1868
|
-
type AgentsExecutionTransitionDetails = {
|
|
1869
|
-
transitionID: CommonUuid;
|
|
1870
|
-
transitionType: string;
|
|
1871
|
-
};
|
|
1872
|
-
type AgentsExecutionUpdateType = 'add' | 'edit' | 'delete';
|
|
1873
|
-
type AgentsExecutionUserMessagesAddTextBody = {
|
|
1874
|
-
message: string;
|
|
1875
|
-
};
|
|
1876
|
-
type AgentsExecutionWorkflowUpdate = {
|
|
1877
|
-
updateType: AgentsExecutionUpdateType;
|
|
1878
|
-
agentRulesDetails?: AgentsExecutionAgentRulesDetails;
|
|
1879
|
-
nodeDetails?: AgentsExecutionNodeDetails;
|
|
1880
|
-
transitionDetails?: AgentsExecutionTransitionDetails;
|
|
1881
|
-
};
|
|
1882
|
-
type AgentsFilesFile = {
|
|
1883
|
-
id: CommonUuid;
|
|
1884
|
-
executionId: CommonUuid;
|
|
1885
|
-
agentId: CommonUuid;
|
|
1886
|
-
filePath: string;
|
|
1887
|
-
fileName: string;
|
|
1888
|
-
fileExt: string;
|
|
1889
|
-
fileSize: number;
|
|
1890
|
-
fileType: string;
|
|
1891
|
-
mimeType: string;
|
|
1892
|
-
createdAt: string;
|
|
1893
|
-
signedUrl: string;
|
|
1894
|
-
};
|
|
1895
|
-
type AgentsFilesFilePart = Blob | File;
|
|
1896
|
-
type AgentsFilesTempFile = {
|
|
1897
|
-
id: CommonUuid;
|
|
1898
|
-
name: string;
|
|
1899
|
-
};
|
|
1900
|
-
type AgentsFilesTempFilesResponse = {
|
|
1901
|
-
tempFiles: Array<AgentsFilesTempFile>;
|
|
1902
|
-
};
|
|
1903
|
-
type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar = {
|
|
1904
|
-
name: string;
|
|
1905
|
-
type: AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType;
|
|
1906
|
-
description: string;
|
|
1224
|
+
cookiesToDelete?: Array<CommonUuid>;
|
|
1907
1225
|
};
|
|
1908
|
-
type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType = 'string' | 'number' | 'boolean';
|
|
1909
1226
|
type CommonBadRequestErrorBody = {
|
|
1910
1227
|
code: 400;
|
|
1911
1228
|
message: string;
|
|
@@ -1918,6 +1235,10 @@ type CommonForbiddenErrorBody = {
|
|
|
1918
1235
|
code: 403;
|
|
1919
1236
|
message: string;
|
|
1920
1237
|
};
|
|
1238
|
+
type CommonInternalServerErrorBody = {
|
|
1239
|
+
code: 500;
|
|
1240
|
+
message: string;
|
|
1241
|
+
};
|
|
1921
1242
|
type CommonNotFoundErrorBody = {
|
|
1922
1243
|
code: 404;
|
|
1923
1244
|
message: string;
|
|
@@ -1926,6 +1247,10 @@ type CommonOsError = {
|
|
|
1926
1247
|
message: string;
|
|
1927
1248
|
};
|
|
1928
1249
|
type CommonSortDirection = 'asc' | 'desc';
|
|
1250
|
+
type CommonUnauthorizedErrorBody = {
|
|
1251
|
+
code: 401;
|
|
1252
|
+
message: string;
|
|
1253
|
+
};
|
|
1929
1254
|
type CommonUuid = string;
|
|
1930
1255
|
type Version = 'v1';
|
|
1931
1256
|
type AgentsAgentSearch = string;
|
|
@@ -1933,10 +1258,6 @@ type AgentsAgentSearch = string;
|
|
|
1933
1258
|
* Filter by agent ID
|
|
1934
1259
|
*/
|
|
1935
1260
|
type AgentsExecutionSearchAgentId = CommonUuid;
|
|
1936
|
-
/**
|
|
1937
|
-
* Filter by agent version
|
|
1938
|
-
*/
|
|
1939
|
-
type AgentsExecutionSearchAgentVersion = number;
|
|
1940
1261
|
/**
|
|
1941
1262
|
* Filter executions created after this timestamp
|
|
1942
1263
|
*/
|
|
@@ -1969,15 +1290,281 @@ type AgentsExecutionSearchOutcomeLabel = string;
|
|
|
1969
1290
|
* Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
|
|
1970
1291
|
*/
|
|
1971
1292
|
type AgentsExecutionSearchStatus = Array<AgentsExecutionStatus>;
|
|
1293
|
+
/**
|
|
1294
|
+
* Search profiles by name (partial match)
|
|
1295
|
+
*/
|
|
1296
|
+
type AgentsProfileSearch = string;
|
|
1972
1297
|
type CommonPaginationPage = number;
|
|
1973
1298
|
type CommonPaginationPageSize = number;
|
|
1299
|
+
type AgentProfilesListData = {
|
|
1300
|
+
body?: never;
|
|
1301
|
+
path?: never;
|
|
1302
|
+
query?: {
|
|
1303
|
+
/**
|
|
1304
|
+
* Filter by organization ID
|
|
1305
|
+
*/
|
|
1306
|
+
organizationId?: CommonUuid;
|
|
1307
|
+
pageSize?: number;
|
|
1308
|
+
page?: number;
|
|
1309
|
+
/**
|
|
1310
|
+
* Search profiles by name (partial match)
|
|
1311
|
+
*/
|
|
1312
|
+
searchName?: string;
|
|
1313
|
+
sortField?: AgentsProfileSortField;
|
|
1314
|
+
sortDirection?: CommonSortDirection;
|
|
1315
|
+
};
|
|
1316
|
+
url: '/agent-profiles';
|
|
1317
|
+
};
|
|
1318
|
+
type AgentProfilesListErrors = {
|
|
1319
|
+
/**
|
|
1320
|
+
* The server could not understand the request due to invalid syntax.
|
|
1321
|
+
*/
|
|
1322
|
+
400: CommonBadRequestErrorBody;
|
|
1323
|
+
/**
|
|
1324
|
+
* Access is unauthorized.
|
|
1325
|
+
*/
|
|
1326
|
+
401: CommonUnauthorizedErrorBody;
|
|
1327
|
+
/**
|
|
1328
|
+
* Access is forbidden.
|
|
1329
|
+
*/
|
|
1330
|
+
403: CommonForbiddenErrorBody;
|
|
1331
|
+
/**
|
|
1332
|
+
* The server cannot find the requested resource.
|
|
1333
|
+
*/
|
|
1334
|
+
404: CommonNotFoundErrorBody;
|
|
1335
|
+
/**
|
|
1336
|
+
* Server error
|
|
1337
|
+
*/
|
|
1338
|
+
500: CommonInternalServerErrorBody;
|
|
1339
|
+
};
|
|
1340
|
+
type AgentProfilesListError = AgentProfilesListErrors[keyof AgentProfilesListErrors];
|
|
1341
|
+
type AgentProfilesListResponses = {
|
|
1342
|
+
/**
|
|
1343
|
+
* The request has succeeded.
|
|
1344
|
+
*/
|
|
1345
|
+
200: {
|
|
1346
|
+
items: Array<AgentsProfileAgentProfile>;
|
|
1347
|
+
page: number;
|
|
1348
|
+
pageSize: number;
|
|
1349
|
+
total: number;
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
type AgentProfilesListResponse = AgentProfilesListResponses[keyof AgentProfilesListResponses];
|
|
1353
|
+
type AgentProfilesCreateData = {
|
|
1354
|
+
/**
|
|
1355
|
+
* Agent profile to create
|
|
1356
|
+
*/
|
|
1357
|
+
body: AgentsProfileCreateAgentProfileRequest;
|
|
1358
|
+
path?: never;
|
|
1359
|
+
query?: never;
|
|
1360
|
+
url: '/agent-profiles';
|
|
1361
|
+
};
|
|
1362
|
+
type AgentProfilesCreateErrors = {
|
|
1363
|
+
/**
|
|
1364
|
+
* The server could not understand the request due to invalid syntax.
|
|
1365
|
+
*/
|
|
1366
|
+
400: CommonBadRequestErrorBody;
|
|
1367
|
+
/**
|
|
1368
|
+
* Access is unauthorized.
|
|
1369
|
+
*/
|
|
1370
|
+
401: CommonUnauthorizedErrorBody;
|
|
1371
|
+
/**
|
|
1372
|
+
* Access is forbidden.
|
|
1373
|
+
*/
|
|
1374
|
+
403: CommonForbiddenErrorBody;
|
|
1375
|
+
/**
|
|
1376
|
+
* The server cannot find the requested resource.
|
|
1377
|
+
*/
|
|
1378
|
+
404: CommonNotFoundErrorBody;
|
|
1379
|
+
/**
|
|
1380
|
+
* Server error
|
|
1381
|
+
*/
|
|
1382
|
+
500: CommonInternalServerErrorBody;
|
|
1383
|
+
};
|
|
1384
|
+
type AgentProfilesCreateError = AgentProfilesCreateErrors[keyof AgentProfilesCreateErrors];
|
|
1385
|
+
type AgentProfilesCreateResponses = {
|
|
1386
|
+
/**
|
|
1387
|
+
* The request has succeeded and a new resource has been created as a result.
|
|
1388
|
+
*/
|
|
1389
|
+
201: AgentsProfileAgentProfile;
|
|
1390
|
+
};
|
|
1391
|
+
type AgentProfilesCreateResponse = AgentProfilesCreateResponses[keyof AgentProfilesCreateResponses];
|
|
1392
|
+
type AgentProfileDeleteData = {
|
|
1393
|
+
body?: never;
|
|
1394
|
+
path: {
|
|
1395
|
+
/**
|
|
1396
|
+
* The ID of the agent profile
|
|
1397
|
+
*/
|
|
1398
|
+
profileId: CommonUuid;
|
|
1399
|
+
};
|
|
1400
|
+
query?: never;
|
|
1401
|
+
url: '/agent-profiles/{profileId}';
|
|
1402
|
+
};
|
|
1403
|
+
type AgentProfileDeleteErrors = {
|
|
1404
|
+
/**
|
|
1405
|
+
* The server could not understand the request due to invalid syntax.
|
|
1406
|
+
*/
|
|
1407
|
+
400: CommonBadRequestErrorBody;
|
|
1408
|
+
/**
|
|
1409
|
+
* Access is unauthorized.
|
|
1410
|
+
*/
|
|
1411
|
+
401: CommonUnauthorizedErrorBody;
|
|
1412
|
+
/**
|
|
1413
|
+
* Access is forbidden.
|
|
1414
|
+
*/
|
|
1415
|
+
403: CommonForbiddenErrorBody;
|
|
1416
|
+
/**
|
|
1417
|
+
* The server cannot find the requested resource.
|
|
1418
|
+
*/
|
|
1419
|
+
404: CommonNotFoundErrorBody;
|
|
1420
|
+
/**
|
|
1421
|
+
* Server error
|
|
1422
|
+
*/
|
|
1423
|
+
500: CommonInternalServerErrorBody;
|
|
1424
|
+
};
|
|
1425
|
+
type AgentProfileDeleteError = AgentProfileDeleteErrors[keyof AgentProfileDeleteErrors];
|
|
1426
|
+
type AgentProfileDeleteResponses = {
|
|
1427
|
+
/**
|
|
1428
|
+
* There is no content to send for this request, but the headers may be useful.
|
|
1429
|
+
*/
|
|
1430
|
+
204: void;
|
|
1431
|
+
};
|
|
1432
|
+
type AgentProfileDeleteResponse = AgentProfileDeleteResponses[keyof AgentProfileDeleteResponses];
|
|
1433
|
+
type AgentProfileGetData = {
|
|
1434
|
+
body?: never;
|
|
1435
|
+
path: {
|
|
1436
|
+
/**
|
|
1437
|
+
* The ID of the agent profile
|
|
1438
|
+
*/
|
|
1439
|
+
profileId: CommonUuid;
|
|
1440
|
+
};
|
|
1441
|
+
query?: never;
|
|
1442
|
+
url: '/agent-profiles/{profileId}';
|
|
1443
|
+
};
|
|
1444
|
+
type AgentProfileGetErrors = {
|
|
1445
|
+
/**
|
|
1446
|
+
* The server could not understand the request due to invalid syntax.
|
|
1447
|
+
*/
|
|
1448
|
+
400: CommonBadRequestErrorBody;
|
|
1449
|
+
/**
|
|
1450
|
+
* Access is unauthorized.
|
|
1451
|
+
*/
|
|
1452
|
+
401: CommonUnauthorizedErrorBody;
|
|
1453
|
+
/**
|
|
1454
|
+
* Access is forbidden.
|
|
1455
|
+
*/
|
|
1456
|
+
403: CommonForbiddenErrorBody;
|
|
1457
|
+
/**
|
|
1458
|
+
* The server cannot find the requested resource.
|
|
1459
|
+
*/
|
|
1460
|
+
404: CommonNotFoundErrorBody;
|
|
1461
|
+
/**
|
|
1462
|
+
* Server error
|
|
1463
|
+
*/
|
|
1464
|
+
500: CommonInternalServerErrorBody;
|
|
1465
|
+
};
|
|
1466
|
+
type AgentProfileGetError = AgentProfileGetErrors[keyof AgentProfileGetErrors];
|
|
1467
|
+
type AgentProfileGetResponses = {
|
|
1468
|
+
/**
|
|
1469
|
+
* The request has succeeded.
|
|
1470
|
+
*/
|
|
1471
|
+
200: AgentsProfileAgentProfile;
|
|
1472
|
+
};
|
|
1473
|
+
type AgentProfileGetResponse = AgentProfileGetResponses[keyof AgentProfileGetResponses];
|
|
1474
|
+
type AgentProfileUpdateData = {
|
|
1475
|
+
/**
|
|
1476
|
+
* Fields to update
|
|
1477
|
+
*/
|
|
1478
|
+
body: AgentsProfileUpdateAgentProfileRequest;
|
|
1479
|
+
path: {
|
|
1480
|
+
/**
|
|
1481
|
+
* The ID of the agent profile
|
|
1482
|
+
*/
|
|
1483
|
+
profileId: CommonUuid;
|
|
1484
|
+
};
|
|
1485
|
+
query?: never;
|
|
1486
|
+
url: '/agent-profiles/{profileId}';
|
|
1487
|
+
};
|
|
1488
|
+
type AgentProfileUpdateErrors = {
|
|
1489
|
+
/**
|
|
1490
|
+
* The server could not understand the request due to invalid syntax.
|
|
1491
|
+
*/
|
|
1492
|
+
400: CommonBadRequestErrorBody;
|
|
1493
|
+
/**
|
|
1494
|
+
* Access is unauthorized.
|
|
1495
|
+
*/
|
|
1496
|
+
401: CommonUnauthorizedErrorBody;
|
|
1497
|
+
/**
|
|
1498
|
+
* Access is forbidden.
|
|
1499
|
+
*/
|
|
1500
|
+
403: CommonForbiddenErrorBody;
|
|
1501
|
+
/**
|
|
1502
|
+
* The server cannot find the requested resource.
|
|
1503
|
+
*/
|
|
1504
|
+
404: CommonNotFoundErrorBody;
|
|
1505
|
+
/**
|
|
1506
|
+
* Server error
|
|
1507
|
+
*/
|
|
1508
|
+
500: CommonInternalServerErrorBody;
|
|
1509
|
+
};
|
|
1510
|
+
type AgentProfileUpdateError = AgentProfileUpdateErrors[keyof AgentProfileUpdateErrors];
|
|
1511
|
+
type AgentProfileUpdateResponses = {
|
|
1512
|
+
/**
|
|
1513
|
+
* The request has succeeded.
|
|
1514
|
+
*/
|
|
1515
|
+
200: AgentsProfileAgentProfile;
|
|
1516
|
+
};
|
|
1517
|
+
type AgentProfileUpdateResponse = AgentProfileUpdateResponses[keyof AgentProfileUpdateResponses];
|
|
1518
|
+
type AgentProfileClearBrowserCacheData = {
|
|
1519
|
+
body?: never;
|
|
1520
|
+
path: {
|
|
1521
|
+
/**
|
|
1522
|
+
* The ID of the agent profile
|
|
1523
|
+
*/
|
|
1524
|
+
profileId: CommonUuid;
|
|
1525
|
+
};
|
|
1526
|
+
query?: never;
|
|
1527
|
+
url: '/agent-profiles/{profileId}/clear-browser-cache';
|
|
1528
|
+
};
|
|
1529
|
+
type AgentProfileClearBrowserCacheErrors = {
|
|
1530
|
+
/**
|
|
1531
|
+
* The server could not understand the request due to invalid syntax.
|
|
1532
|
+
*/
|
|
1533
|
+
400: CommonBadRequestErrorBody;
|
|
1534
|
+
/**
|
|
1535
|
+
* Access is unauthorized.
|
|
1536
|
+
*/
|
|
1537
|
+
401: CommonUnauthorizedErrorBody;
|
|
1538
|
+
/**
|
|
1539
|
+
* Access is forbidden.
|
|
1540
|
+
*/
|
|
1541
|
+
403: CommonForbiddenErrorBody;
|
|
1542
|
+
/**
|
|
1543
|
+
* The server cannot find the requested resource.
|
|
1544
|
+
*/
|
|
1545
|
+
404: CommonNotFoundErrorBody;
|
|
1546
|
+
/**
|
|
1547
|
+
* Server error
|
|
1548
|
+
*/
|
|
1549
|
+
500: CommonInternalServerErrorBody;
|
|
1550
|
+
};
|
|
1551
|
+
type AgentProfileClearBrowserCacheError = AgentProfileClearBrowserCacheErrors[keyof AgentProfileClearBrowserCacheErrors];
|
|
1552
|
+
type AgentProfileClearBrowserCacheResponses = {
|
|
1553
|
+
/**
|
|
1554
|
+
* The request has succeeded.
|
|
1555
|
+
*/
|
|
1556
|
+
200: {
|
|
1557
|
+
message: string;
|
|
1558
|
+
};
|
|
1559
|
+
};
|
|
1560
|
+
type AgentProfileClearBrowserCacheResponse = AgentProfileClearBrowserCacheResponses[keyof AgentProfileClearBrowserCacheResponses];
|
|
1974
1561
|
type AgentListData = {
|
|
1975
1562
|
body?: never;
|
|
1976
1563
|
path?: never;
|
|
1977
|
-
query
|
|
1564
|
+
query?: {
|
|
1978
1565
|
organizationId?: CommonUuid;
|
|
1979
|
-
pageSize
|
|
1980
|
-
page
|
|
1566
|
+
pageSize?: number;
|
|
1567
|
+
page?: number;
|
|
1981
1568
|
searchName?: string;
|
|
1982
1569
|
sortField?: AgentsAgentSortField;
|
|
1983
1570
|
sortDirection?: CommonSortDirection;
|
|
@@ -2042,13 +1629,13 @@ type AgentExecutePostResponse = AgentExecutePostResponses[keyof AgentExecutePost
|
|
|
2042
1629
|
type ExecutionsListData = {
|
|
2043
1630
|
body?: never;
|
|
2044
1631
|
path?: never;
|
|
2045
|
-
query
|
|
1632
|
+
query?: {
|
|
2046
1633
|
/**
|
|
2047
1634
|
* Optional organization ID filter (required for customer queries)
|
|
2048
1635
|
*/
|
|
2049
1636
|
organizationId?: CommonUuid;
|
|
2050
|
-
pageSize
|
|
2051
|
-
page
|
|
1637
|
+
pageSize?: number;
|
|
1638
|
+
page?: number;
|
|
2052
1639
|
/**
|
|
2053
1640
|
* Search by execution ID (partial, case-insensitive match)
|
|
2054
1641
|
*/
|
|
@@ -2061,10 +1648,6 @@ type ExecutionsListData = {
|
|
|
2061
1648
|
* Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
|
|
2062
1649
|
*/
|
|
2063
1650
|
status?: Array<AgentsExecutionStatus>;
|
|
2064
|
-
/**
|
|
2065
|
-
* Filter by agent version
|
|
2066
|
-
*/
|
|
2067
|
-
agentVersion?: number;
|
|
2068
1651
|
/**
|
|
2069
1652
|
* Filter executions created after this timestamp
|
|
2070
1653
|
*/
|
|
@@ -2099,6 +1682,10 @@ type ExecutionsListErrors = {
|
|
|
2099
1682
|
* The server could not understand the request due to invalid syntax.
|
|
2100
1683
|
*/
|
|
2101
1684
|
400: CommonBadRequestErrorBody;
|
|
1685
|
+
/**
|
|
1686
|
+
* Access is unauthorized.
|
|
1687
|
+
*/
|
|
1688
|
+
401: CommonUnauthorizedErrorBody;
|
|
2102
1689
|
/**
|
|
2103
1690
|
* Access is forbidden.
|
|
2104
1691
|
*/
|
|
@@ -2107,6 +1694,10 @@ type ExecutionsListErrors = {
|
|
|
2107
1694
|
* The server cannot find the requested resource.
|
|
2108
1695
|
*/
|
|
2109
1696
|
404: CommonNotFoundErrorBody;
|
|
1697
|
+
/**
|
|
1698
|
+
* Server error
|
|
1699
|
+
*/
|
|
1700
|
+
500: CommonInternalServerErrorBody;
|
|
2110
1701
|
};
|
|
2111
1702
|
type ExecutionsListError = ExecutionsListErrors[keyof ExecutionsListErrors];
|
|
2112
1703
|
type ExecutionsListResponses = {
|
|
@@ -2121,6 +1712,47 @@ type ExecutionsListResponses = {
|
|
|
2121
1712
|
};
|
|
2122
1713
|
};
|
|
2123
1714
|
type ExecutionsListResponse = ExecutionsListResponses[keyof ExecutionsListResponses];
|
|
1715
|
+
type ExecutionGetData = {
|
|
1716
|
+
body?: never;
|
|
1717
|
+
path: {
|
|
1718
|
+
/**
|
|
1719
|
+
* The unique identifier of the execution
|
|
1720
|
+
*/
|
|
1721
|
+
executionId: CommonUuid;
|
|
1722
|
+
};
|
|
1723
|
+
query?: never;
|
|
1724
|
+
url: '/executions/{executionId}';
|
|
1725
|
+
};
|
|
1726
|
+
type ExecutionGetErrors = {
|
|
1727
|
+
/**
|
|
1728
|
+
* The server could not understand the request due to invalid syntax.
|
|
1729
|
+
*/
|
|
1730
|
+
400: CommonBadRequestErrorBody;
|
|
1731
|
+
/**
|
|
1732
|
+
* Access is unauthorized.
|
|
1733
|
+
*/
|
|
1734
|
+
401: CommonUnauthorizedErrorBody;
|
|
1735
|
+
/**
|
|
1736
|
+
* Access is forbidden.
|
|
1737
|
+
*/
|
|
1738
|
+
403: CommonForbiddenErrorBody;
|
|
1739
|
+
/**
|
|
1740
|
+
* The server cannot find the requested resource.
|
|
1741
|
+
*/
|
|
1742
|
+
404: CommonNotFoundErrorBody;
|
|
1743
|
+
/**
|
|
1744
|
+
* Server error
|
|
1745
|
+
*/
|
|
1746
|
+
500: CommonInternalServerErrorBody;
|
|
1747
|
+
};
|
|
1748
|
+
type ExecutionGetError = ExecutionGetErrors[keyof ExecutionGetErrors];
|
|
1749
|
+
type ExecutionGetResponses = {
|
|
1750
|
+
/**
|
|
1751
|
+
* The request has succeeded.
|
|
1752
|
+
*/
|
|
1753
|
+
200: AgentsExecutionListItem;
|
|
1754
|
+
};
|
|
1755
|
+
type ExecutionGetResponse = ExecutionGetResponses[keyof ExecutionGetResponses];
|
|
2124
1756
|
type ExecutionActivitiesGetData = {
|
|
2125
1757
|
body?: never;
|
|
2126
1758
|
path: {
|
|
@@ -2146,6 +1778,10 @@ type ExecutionActivitiesGetErrors = {
|
|
|
2146
1778
|
* The server could not understand the request due to invalid syntax.
|
|
2147
1779
|
*/
|
|
2148
1780
|
400: CommonBadRequestErrorBody;
|
|
1781
|
+
/**
|
|
1782
|
+
* Access is unauthorized.
|
|
1783
|
+
*/
|
|
1784
|
+
401: CommonUnauthorizedErrorBody;
|
|
2149
1785
|
/**
|
|
2150
1786
|
* Access is forbidden.
|
|
2151
1787
|
*/
|
|
@@ -2154,6 +1790,10 @@ type ExecutionActivitiesGetErrors = {
|
|
|
2154
1790
|
* The server cannot find the requested resource.
|
|
2155
1791
|
*/
|
|
2156
1792
|
404: CommonNotFoundErrorBody;
|
|
1793
|
+
/**
|
|
1794
|
+
* Server error
|
|
1795
|
+
*/
|
|
1796
|
+
500: CommonInternalServerErrorBody;
|
|
2157
1797
|
};
|
|
2158
1798
|
type ExecutionActivitiesGetError = ExecutionActivitiesGetErrors[keyof ExecutionActivitiesGetErrors];
|
|
2159
1799
|
type ExecutionActivitiesGetResponses = {
|
|
@@ -2192,6 +1832,7 @@ type ExecutionContextFilesUploadData = {
|
|
|
2192
1832
|
path: {
|
|
2193
1833
|
/**
|
|
2194
1834
|
* Upload files to a running execution
|
|
1835
|
+
*
|
|
2195
1836
|
* Upload files to a running execution that is already in progress. If you want to attach files to an execution that is not yet running, see the /temp-files endpoint.
|
|
2196
1837
|
*/
|
|
2197
1838
|
executionId: CommonUuid;
|
|
@@ -2217,6 +1858,50 @@ type ExecutionContextFilesUploadResponses = {
|
|
|
2217
1858
|
200: 'Files uploaded.';
|
|
2218
1859
|
};
|
|
2219
1860
|
type ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponses[keyof ExecutionContextFilesUploadResponses];
|
|
1861
|
+
type ExecutionStatusUpdateData = {
|
|
1862
|
+
/**
|
|
1863
|
+
* The status update request
|
|
1864
|
+
*/
|
|
1865
|
+
body: AgentsExecutionUpdateExecutionStatusRequest;
|
|
1866
|
+
path: {
|
|
1867
|
+
/**
|
|
1868
|
+
* The unique identifier of the execution
|
|
1869
|
+
*/
|
|
1870
|
+
executionId: CommonUuid;
|
|
1871
|
+
};
|
|
1872
|
+
query?: never;
|
|
1873
|
+
url: '/executions/{executionId}/status';
|
|
1874
|
+
};
|
|
1875
|
+
type ExecutionStatusUpdateErrors = {
|
|
1876
|
+
/**
|
|
1877
|
+
* The server could not understand the request due to invalid syntax.
|
|
1878
|
+
*/
|
|
1879
|
+
400: CommonBadRequestErrorBody;
|
|
1880
|
+
/**
|
|
1881
|
+
* Access is unauthorized.
|
|
1882
|
+
*/
|
|
1883
|
+
401: CommonUnauthorizedErrorBody;
|
|
1884
|
+
/**
|
|
1885
|
+
* Access is forbidden.
|
|
1886
|
+
*/
|
|
1887
|
+
403: CommonForbiddenErrorBody;
|
|
1888
|
+
/**
|
|
1889
|
+
* The server cannot find the requested resource.
|
|
1890
|
+
*/
|
|
1891
|
+
404: CommonNotFoundErrorBody;
|
|
1892
|
+
/**
|
|
1893
|
+
* Server error
|
|
1894
|
+
*/
|
|
1895
|
+
500: CommonInternalServerErrorBody;
|
|
1896
|
+
};
|
|
1897
|
+
type ExecutionStatusUpdateError = ExecutionStatusUpdateErrors[keyof ExecutionStatusUpdateErrors];
|
|
1898
|
+
type ExecutionStatusUpdateResponses = {
|
|
1899
|
+
/**
|
|
1900
|
+
* The request has succeeded.
|
|
1901
|
+
*/
|
|
1902
|
+
200: 'Execution status updated.';
|
|
1903
|
+
};
|
|
1904
|
+
type ExecutionStatusUpdateResponse = ExecutionStatusUpdateResponses[keyof ExecutionStatusUpdateResponses];
|
|
2220
1905
|
type ExecutionUserMessagesAddData = {
|
|
2221
1906
|
/**
|
|
2222
1907
|
* The message content to send
|
|
@@ -2236,6 +1921,10 @@ type ExecutionUserMessagesAddErrors = {
|
|
|
2236
1921
|
* The server could not understand the request due to invalid syntax.
|
|
2237
1922
|
*/
|
|
2238
1923
|
400: CommonBadRequestErrorBody;
|
|
1924
|
+
/**
|
|
1925
|
+
* Access is unauthorized.
|
|
1926
|
+
*/
|
|
1927
|
+
401: CommonUnauthorizedErrorBody;
|
|
2239
1928
|
/**
|
|
2240
1929
|
* Access is forbidden.
|
|
2241
1930
|
*/
|
|
@@ -2244,6 +1933,10 @@ type ExecutionUserMessagesAddErrors = {
|
|
|
2244
1933
|
* The server cannot find the requested resource.
|
|
2245
1934
|
*/
|
|
2246
1935
|
404: CommonNotFoundErrorBody;
|
|
1936
|
+
/**
|
|
1937
|
+
* Server error
|
|
1938
|
+
*/
|
|
1939
|
+
500: CommonInternalServerErrorBody;
|
|
2247
1940
|
};
|
|
2248
1941
|
type ExecutionUserMessagesAddError = ExecutionUserMessagesAddErrors[keyof ExecutionUserMessagesAddErrors];
|
|
2249
1942
|
type ExecutionUserMessagesAddResponses = {
|
|
@@ -2285,179 +1978,8 @@ type TempFilesStageResponses = {
|
|
|
2285
1978
|
200: AgentsFilesTempFilesResponse;
|
|
2286
1979
|
};
|
|
2287
1980
|
type TempFilesStageResponse = TempFilesStageResponses[keyof TempFilesStageResponses];
|
|
2288
|
-
type ClientOptions = {
|
|
2289
|
-
baseUrl: 'https://odyssey.asteroid.ai/agents/v2' | (string & {});
|
|
2290
|
-
};
|
|
2291
1981
|
|
|
2292
|
-
type
|
|
2293
|
-
type types_gen_ActivityActionCompletedInfoBrowserFileUpload = ActivityActionCompletedInfoBrowserFileUpload;
|
|
2294
|
-
type types_gen_ActivityActionCompletedInfoBrowserNavigate = ActivityActionCompletedInfoBrowserNavigate;
|
|
2295
|
-
type types_gen_ActivityActionCompletedInfoBrowserSnapshotWithSelectors = ActivityActionCompletedInfoBrowserSnapshotWithSelectors;
|
|
2296
|
-
type types_gen_ActivityActionCompletedInfoGetMail = ActivityActionCompletedInfoGetMail;
|
|
2297
|
-
type types_gen_ActivityActionCompletedInfoGoToUrl = ActivityActionCompletedInfoGoToUrl;
|
|
2298
|
-
type types_gen_ActivityActionCompletedInfoHybridPlaywright = ActivityActionCompletedInfoHybridPlaywright;
|
|
2299
|
-
type types_gen_ActivityActionCompletedInfoListFiles = ActivityActionCompletedInfoListFiles;
|
|
2300
|
-
type types_gen_ActivityActionCompletedInfoPlaywrightScript = ActivityActionCompletedInfoPlaywrightScript;
|
|
2301
|
-
type types_gen_ActivityActionCompletedInfoReadFiles = ActivityActionCompletedInfoReadFiles;
|
|
2302
|
-
type types_gen_ActivityActionCompletedInfoReadScratchpad = ActivityActionCompletedInfoReadScratchpad;
|
|
2303
|
-
type types_gen_ActivityActionCompletedInfoScriptpadRead = ActivityActionCompletedInfoScriptpadRead;
|
|
2304
|
-
type types_gen_ActivityActionCompletedInfoScriptpadRunFunction = ActivityActionCompletedInfoScriptpadRunFunction;
|
|
2305
|
-
type types_gen_ActivityActionCompletedInfoScriptpadSearchReplace = ActivityActionCompletedInfoScriptpadSearchReplace;
|
|
2306
|
-
type types_gen_ActivityActionCompletedInfoUploadFile = ActivityActionCompletedInfoUploadFile;
|
|
2307
|
-
type types_gen_ActivityActionCompletedInfoUploadLocalFile = ActivityActionCompletedInfoUploadLocalFile;
|
|
2308
|
-
type types_gen_ActivityActionCompletedInfoWriteScratchpad = ActivityActionCompletedInfoWriteScratchpad;
|
|
2309
|
-
type types_gen_ActivityActionStartedInfoBrowserNavigate = ActivityActionStartedInfoBrowserNavigate;
|
|
2310
|
-
type types_gen_ActivityActionStartedInfoGetDatetime = ActivityActionStartedInfoGetDatetime;
|
|
2311
|
-
type types_gen_ActivityActionStartedInfoGoToUrl = ActivityActionStartedInfoGoToUrl;
|
|
2312
|
-
type types_gen_ActivityActionStartedInfoHybridPlaywright = ActivityActionStartedInfoHybridPlaywright;
|
|
2313
|
-
type types_gen_ActivityActionStartedInfoPlaywrightScript = ActivityActionStartedInfoPlaywrightScript;
|
|
2314
|
-
type types_gen_ActivityActionStartedInfoReadScratchpad = ActivityActionStartedInfoReadScratchpad;
|
|
2315
|
-
type types_gen_ActivityActionStartedInfoScriptpadRead = ActivityActionStartedInfoScriptpadRead;
|
|
2316
|
-
type types_gen_ActivityActionStartedInfoScriptpadRunFunction = ActivityActionStartedInfoScriptpadRunFunction;
|
|
2317
|
-
type types_gen_ActivityActionStartedInfoScriptpadSearchReplace = ActivityActionStartedInfoScriptpadSearchReplace;
|
|
2318
|
-
type types_gen_ActivityActionStartedInfoWriteScratchpad = ActivityActionStartedInfoWriteScratchpad;
|
|
2319
|
-
type types_gen_ActivityPayloadUnionActionCompleted = ActivityPayloadUnionActionCompleted;
|
|
2320
|
-
type types_gen_ActivityPayloadUnionActionFailed = ActivityPayloadUnionActionFailed;
|
|
2321
|
-
type types_gen_ActivityPayloadUnionActionStarted = ActivityPayloadUnionActionStarted;
|
|
2322
|
-
type types_gen_ActivityPayloadUnionFileAdded = ActivityPayloadUnionFileAdded;
|
|
2323
|
-
type types_gen_ActivityPayloadUnionGeneric = ActivityPayloadUnionGeneric;
|
|
2324
|
-
type types_gen_ActivityPayloadUnionPlaywrightScriptGenerated = ActivityPayloadUnionPlaywrightScriptGenerated;
|
|
2325
|
-
type types_gen_ActivityPayloadUnionReasoning = ActivityPayloadUnionReasoning;
|
|
2326
|
-
type types_gen_ActivityPayloadUnionStatusChanged = ActivityPayloadUnionStatusChanged;
|
|
2327
|
-
type types_gen_ActivityPayloadUnionStepCompleted = ActivityPayloadUnionStepCompleted;
|
|
2328
|
-
type types_gen_ActivityPayloadUnionStepStarted = ActivityPayloadUnionStepStarted;
|
|
2329
|
-
type types_gen_ActivityPayloadUnionTerminal = ActivityPayloadUnionTerminal;
|
|
2330
|
-
type types_gen_ActivityPayloadUnionTransitionedNode = ActivityPayloadUnionTransitionedNode;
|
|
2331
|
-
type types_gen_ActivityPayloadUnionUserMessageReceived = ActivityPayloadUnionUserMessageReceived;
|
|
2332
|
-
type types_gen_ActivityPayloadUnionWorkflowUpdated = ActivityPayloadUnionWorkflowUpdated;
|
|
2333
|
-
type types_gen_AgentExecutePostData = AgentExecutePostData;
|
|
2334
|
-
type types_gen_AgentExecutePostError = AgentExecutePostError;
|
|
2335
|
-
type types_gen_AgentExecutePostErrors = AgentExecutePostErrors;
|
|
2336
|
-
type types_gen_AgentExecutePostResponse = AgentExecutePostResponse;
|
|
2337
|
-
type types_gen_AgentExecutePostResponses = AgentExecutePostResponses;
|
|
2338
|
-
type types_gen_AgentListData = AgentListData;
|
|
2339
|
-
type types_gen_AgentListError = AgentListError;
|
|
2340
|
-
type types_gen_AgentListErrors = AgentListErrors;
|
|
2341
|
-
type types_gen_AgentListResponse = AgentListResponse;
|
|
2342
|
-
type types_gen_AgentListResponses = AgentListResponses;
|
|
2343
|
-
type types_gen_AgentsAgentBase = AgentsAgentBase;
|
|
2344
|
-
type types_gen_AgentsAgentExecuteAgentRequest = AgentsAgentExecuteAgentRequest;
|
|
2345
|
-
type types_gen_AgentsAgentExecuteAgentResponse = AgentsAgentExecuteAgentResponse;
|
|
2346
|
-
type types_gen_AgentsAgentSearch = AgentsAgentSearch;
|
|
2347
|
-
type types_gen_AgentsAgentSortField = AgentsAgentSortField;
|
|
2348
|
-
type types_gen_AgentsExecutionActionName = AgentsExecutionActionName;
|
|
2349
|
-
type types_gen_AgentsExecutionActivity = AgentsExecutionActivity;
|
|
2350
|
-
type types_gen_AgentsExecutionActivityActionCompletedInfo = AgentsExecutionActivityActionCompletedInfo;
|
|
2351
|
-
type types_gen_AgentsExecutionActivityActionCompletedPayload = AgentsExecutionActivityActionCompletedPayload;
|
|
2352
|
-
type types_gen_AgentsExecutionActivityActionFailedPayload = AgentsExecutionActivityActionFailedPayload;
|
|
2353
|
-
type types_gen_AgentsExecutionActivityActionStartedInfo = AgentsExecutionActivityActionStartedInfo;
|
|
2354
|
-
type types_gen_AgentsExecutionActivityActionStartedPayload = AgentsExecutionActivityActionStartedPayload;
|
|
2355
|
-
type types_gen_AgentsExecutionActivityFileAddedPayload = AgentsExecutionActivityFileAddedPayload;
|
|
2356
|
-
type types_gen_AgentsExecutionActivityGenericPayload = AgentsExecutionActivityGenericPayload;
|
|
2357
|
-
type types_gen_AgentsExecutionActivityPayloadUnion = AgentsExecutionActivityPayloadUnion;
|
|
2358
|
-
type types_gen_AgentsExecutionActivityPlaywrightScriptGeneratedPayload = AgentsExecutionActivityPlaywrightScriptGeneratedPayload;
|
|
2359
|
-
type types_gen_AgentsExecutionActivityReasoningPayload = AgentsExecutionActivityReasoningPayload;
|
|
2360
|
-
type types_gen_AgentsExecutionActivityStatusChangedPayload = AgentsExecutionActivityStatusChangedPayload;
|
|
2361
|
-
type types_gen_AgentsExecutionActivityStepCompletedPayload = AgentsExecutionActivityStepCompletedPayload;
|
|
2362
|
-
type types_gen_AgentsExecutionActivityStepStartedPayload = AgentsExecutionActivityStepStartedPayload;
|
|
2363
|
-
type types_gen_AgentsExecutionActivityTransitionedNodePayload = AgentsExecutionActivityTransitionedNodePayload;
|
|
2364
|
-
type types_gen_AgentsExecutionActivityUserMessageReceivedPayload = AgentsExecutionActivityUserMessageReceivedPayload;
|
|
2365
|
-
type types_gen_AgentsExecutionActivityWorkflowUpdatedPayload = AgentsExecutionActivityWorkflowUpdatedPayload;
|
|
2366
|
-
type types_gen_AgentsExecutionAgentRulesDetails = AgentsExecutionAgentRulesDetails;
|
|
2367
|
-
type types_gen_AgentsExecutionApiCallCompletedDetails = AgentsExecutionApiCallCompletedDetails;
|
|
2368
|
-
type types_gen_AgentsExecutionAwaitingConfirmationPayload = AgentsExecutionAwaitingConfirmationPayload;
|
|
2369
|
-
type types_gen_AgentsExecutionBrowserSnapshotCompletedDetails = AgentsExecutionBrowserSnapshotCompletedDetails;
|
|
2370
|
-
type types_gen_AgentsExecutionCancelReason = AgentsExecutionCancelReason;
|
|
2371
|
-
type types_gen_AgentsExecutionCancelledPayload = AgentsExecutionCancelledPayload;
|
|
2372
|
-
type types_gen_AgentsExecutionComment = AgentsExecutionComment;
|
|
2373
|
-
type types_gen_AgentsExecutionCompletedPayload = AgentsExecutionCompletedPayload;
|
|
2374
|
-
type types_gen_AgentsExecutionExecutionResult = AgentsExecutionExecutionResult;
|
|
2375
|
-
type types_gen_AgentsExecutionFailedPayload = AgentsExecutionFailedPayload;
|
|
2376
|
-
type types_gen_AgentsExecutionFileListCompletedDetails = AgentsExecutionFileListCompletedDetails;
|
|
2377
|
-
type types_gen_AgentsExecutionFileReadCompletedDetails = AgentsExecutionFileReadCompletedDetails;
|
|
2378
|
-
type types_gen_AgentsExecutionFileUploadCompletedDetails = AgentsExecutionFileUploadCompletedDetails;
|
|
2379
|
-
type types_gen_AgentsExecutionGetDatetimeDetails = AgentsExecutionGetDatetimeDetails;
|
|
2380
|
-
type types_gen_AgentsExecutionGetMailCompletedDetails = AgentsExecutionGetMailCompletedDetails;
|
|
2381
|
-
type types_gen_AgentsExecutionHumanLabel = AgentsExecutionHumanLabel;
|
|
2382
|
-
type types_gen_AgentsExecutionListItem = AgentsExecutionListItem;
|
|
2383
|
-
type types_gen_AgentsExecutionNavigationDetails = AgentsExecutionNavigationDetails;
|
|
2384
|
-
type types_gen_AgentsExecutionNodeDetails = AgentsExecutionNodeDetails;
|
|
2385
|
-
type types_gen_AgentsExecutionPausedPayload = AgentsExecutionPausedPayload;
|
|
2386
|
-
type types_gen_AgentsExecutionPlaywrightScriptCompletedDetails = AgentsExecutionPlaywrightScriptCompletedDetails;
|
|
2387
|
-
type types_gen_AgentsExecutionPlaywrightScriptStartedDetails = AgentsExecutionPlaywrightScriptStartedDetails;
|
|
2388
|
-
type types_gen_AgentsExecutionRunFunctionCompletedDetails = AgentsExecutionRunFunctionCompletedDetails;
|
|
2389
|
-
type types_gen_AgentsExecutionScratchpadCompletedDetails = AgentsExecutionScratchpadCompletedDetails;
|
|
2390
|
-
type types_gen_AgentsExecutionScriptpadReadCompletedDetails = AgentsExecutionScriptpadReadCompletedDetails;
|
|
2391
|
-
type types_gen_AgentsExecutionScriptpadSearchReplaceCompletedDetails = AgentsExecutionScriptpadSearchReplaceCompletedDetails;
|
|
2392
|
-
type types_gen_AgentsExecutionSearchAgentId = AgentsExecutionSearchAgentId;
|
|
2393
|
-
type types_gen_AgentsExecutionSearchAgentVersion = AgentsExecutionSearchAgentVersion;
|
|
2394
|
-
type types_gen_AgentsExecutionSearchCreatedAfter = AgentsExecutionSearchCreatedAfter;
|
|
2395
|
-
type types_gen_AgentsExecutionSearchCreatedBefore = AgentsExecutionSearchCreatedBefore;
|
|
2396
|
-
type types_gen_AgentsExecutionSearchExecutionId = AgentsExecutionSearchExecutionId;
|
|
2397
|
-
type types_gen_AgentsExecutionSearchHumanLabels = AgentsExecutionSearchHumanLabels;
|
|
2398
|
-
type types_gen_AgentsExecutionSearchMetadataKey = AgentsExecutionSearchMetadataKey;
|
|
2399
|
-
type types_gen_AgentsExecutionSearchMetadataValue = AgentsExecutionSearchMetadataValue;
|
|
2400
|
-
type types_gen_AgentsExecutionSearchOutcomeLabel = AgentsExecutionSearchOutcomeLabel;
|
|
2401
|
-
type types_gen_AgentsExecutionSearchStatus = AgentsExecutionSearchStatus;
|
|
2402
|
-
type types_gen_AgentsExecutionSortField = AgentsExecutionSortField;
|
|
2403
|
-
type types_gen_AgentsExecutionStatus = AgentsExecutionStatus;
|
|
2404
|
-
type types_gen_AgentsExecutionTerminalPayload = AgentsExecutionTerminalPayload;
|
|
2405
|
-
type types_gen_AgentsExecutionTransitionDetails = AgentsExecutionTransitionDetails;
|
|
2406
|
-
type types_gen_AgentsExecutionUpdateType = AgentsExecutionUpdateType;
|
|
2407
|
-
type types_gen_AgentsExecutionUserMessagesAddTextBody = AgentsExecutionUserMessagesAddTextBody;
|
|
2408
|
-
type types_gen_AgentsExecutionWorkflowUpdate = AgentsExecutionWorkflowUpdate;
|
|
2409
|
-
type types_gen_AgentsFilesFile = AgentsFilesFile;
|
|
2410
|
-
type types_gen_AgentsFilesFilePart = AgentsFilesFilePart;
|
|
2411
|
-
type types_gen_AgentsFilesTempFile = AgentsFilesTempFile;
|
|
2412
|
-
type types_gen_AgentsFilesTempFilesResponse = AgentsFilesTempFilesResponse;
|
|
2413
|
-
type types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar = AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar;
|
|
2414
|
-
type types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType = AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType;
|
|
2415
|
-
type types_gen_ClientOptions = ClientOptions;
|
|
2416
|
-
type types_gen_CommonBadRequestErrorBody = CommonBadRequestErrorBody;
|
|
2417
|
-
type types_gen_CommonError = CommonError;
|
|
2418
|
-
type types_gen_CommonForbiddenErrorBody = CommonForbiddenErrorBody;
|
|
2419
|
-
type types_gen_CommonNotFoundErrorBody = CommonNotFoundErrorBody;
|
|
2420
|
-
type types_gen_CommonOsError = CommonOsError;
|
|
2421
|
-
type types_gen_CommonPaginationPage = CommonPaginationPage;
|
|
2422
|
-
type types_gen_CommonPaginationPageSize = CommonPaginationPageSize;
|
|
2423
|
-
type types_gen_CommonSortDirection = CommonSortDirection;
|
|
2424
|
-
type types_gen_CommonUuid = CommonUuid;
|
|
2425
|
-
type types_gen_ExecutionActivitiesGetData = ExecutionActivitiesGetData;
|
|
2426
|
-
type types_gen_ExecutionActivitiesGetError = ExecutionActivitiesGetError;
|
|
2427
|
-
type types_gen_ExecutionActivitiesGetErrors = ExecutionActivitiesGetErrors;
|
|
2428
|
-
type types_gen_ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponse;
|
|
2429
|
-
type types_gen_ExecutionActivitiesGetResponses = ExecutionActivitiesGetResponses;
|
|
2430
|
-
type types_gen_ExecutionContextFilesGetData = ExecutionContextFilesGetData;
|
|
2431
|
-
type types_gen_ExecutionContextFilesGetError = ExecutionContextFilesGetError;
|
|
2432
|
-
type types_gen_ExecutionContextFilesGetErrors = ExecutionContextFilesGetErrors;
|
|
2433
|
-
type types_gen_ExecutionContextFilesGetResponse = ExecutionContextFilesGetResponse;
|
|
2434
|
-
type types_gen_ExecutionContextFilesGetResponses = ExecutionContextFilesGetResponses;
|
|
2435
|
-
type types_gen_ExecutionContextFilesUploadData = ExecutionContextFilesUploadData;
|
|
2436
|
-
type types_gen_ExecutionContextFilesUploadError = ExecutionContextFilesUploadError;
|
|
2437
|
-
type types_gen_ExecutionContextFilesUploadErrors = ExecutionContextFilesUploadErrors;
|
|
2438
|
-
type types_gen_ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponse;
|
|
2439
|
-
type types_gen_ExecutionContextFilesUploadResponses = ExecutionContextFilesUploadResponses;
|
|
2440
|
-
type types_gen_ExecutionUserMessagesAddData = ExecutionUserMessagesAddData;
|
|
2441
|
-
type types_gen_ExecutionUserMessagesAddError = ExecutionUserMessagesAddError;
|
|
2442
|
-
type types_gen_ExecutionUserMessagesAddErrors = ExecutionUserMessagesAddErrors;
|
|
2443
|
-
type types_gen_ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponse;
|
|
2444
|
-
type types_gen_ExecutionUserMessagesAddResponses = ExecutionUserMessagesAddResponses;
|
|
2445
|
-
type types_gen_ExecutionsListData = ExecutionsListData;
|
|
2446
|
-
type types_gen_ExecutionsListError = ExecutionsListError;
|
|
2447
|
-
type types_gen_ExecutionsListErrors = ExecutionsListErrors;
|
|
2448
|
-
type types_gen_ExecutionsListResponse = ExecutionsListResponse;
|
|
2449
|
-
type types_gen_ExecutionsListResponses = ExecutionsListResponses;
|
|
2450
|
-
type types_gen_TempFilesStageData = TempFilesStageData;
|
|
2451
|
-
type types_gen_TempFilesStageError = TempFilesStageError;
|
|
2452
|
-
type types_gen_TempFilesStageErrors = TempFilesStageErrors;
|
|
2453
|
-
type types_gen_TempFilesStageResponse = TempFilesStageResponse;
|
|
2454
|
-
type types_gen_TempFilesStageResponses = TempFilesStageResponses;
|
|
2455
|
-
type types_gen_Version = Version;
|
|
2456
|
-
declare namespace types_gen {
|
|
2457
|
-
export type { types_gen_ActivityActionCompletedInfoApiCall as ActivityActionCompletedInfoApiCall, types_gen_ActivityActionCompletedInfoBrowserFileUpload as ActivityActionCompletedInfoBrowserFileUpload, types_gen_ActivityActionCompletedInfoBrowserNavigate as ActivityActionCompletedInfoBrowserNavigate, types_gen_ActivityActionCompletedInfoBrowserSnapshotWithSelectors as ActivityActionCompletedInfoBrowserSnapshotWithSelectors, types_gen_ActivityActionCompletedInfoGetMail as ActivityActionCompletedInfoGetMail, types_gen_ActivityActionCompletedInfoGoToUrl as ActivityActionCompletedInfoGoToUrl, types_gen_ActivityActionCompletedInfoHybridPlaywright as ActivityActionCompletedInfoHybridPlaywright, types_gen_ActivityActionCompletedInfoListFiles as ActivityActionCompletedInfoListFiles, types_gen_ActivityActionCompletedInfoPlaywrightScript as ActivityActionCompletedInfoPlaywrightScript, types_gen_ActivityActionCompletedInfoReadFiles as ActivityActionCompletedInfoReadFiles, types_gen_ActivityActionCompletedInfoReadScratchpad as ActivityActionCompletedInfoReadScratchpad, types_gen_ActivityActionCompletedInfoScriptpadRead as ActivityActionCompletedInfoScriptpadRead, types_gen_ActivityActionCompletedInfoScriptpadRunFunction as ActivityActionCompletedInfoScriptpadRunFunction, types_gen_ActivityActionCompletedInfoScriptpadSearchReplace as ActivityActionCompletedInfoScriptpadSearchReplace, types_gen_ActivityActionCompletedInfoUploadFile as ActivityActionCompletedInfoUploadFile, types_gen_ActivityActionCompletedInfoUploadLocalFile as ActivityActionCompletedInfoUploadLocalFile, types_gen_ActivityActionCompletedInfoWriteScratchpad as ActivityActionCompletedInfoWriteScratchpad, types_gen_ActivityActionStartedInfoBrowserNavigate as ActivityActionStartedInfoBrowserNavigate, types_gen_ActivityActionStartedInfoGetDatetime as ActivityActionStartedInfoGetDatetime, types_gen_ActivityActionStartedInfoGoToUrl as ActivityActionStartedInfoGoToUrl, types_gen_ActivityActionStartedInfoHybridPlaywright as ActivityActionStartedInfoHybridPlaywright, types_gen_ActivityActionStartedInfoPlaywrightScript as ActivityActionStartedInfoPlaywrightScript, types_gen_ActivityActionStartedInfoReadScratchpad as ActivityActionStartedInfoReadScratchpad, types_gen_ActivityActionStartedInfoScriptpadRead as ActivityActionStartedInfoScriptpadRead, types_gen_ActivityActionStartedInfoScriptpadRunFunction as ActivityActionStartedInfoScriptpadRunFunction, types_gen_ActivityActionStartedInfoScriptpadSearchReplace as ActivityActionStartedInfoScriptpadSearchReplace, types_gen_ActivityActionStartedInfoWriteScratchpad as ActivityActionStartedInfoWriteScratchpad, types_gen_ActivityPayloadUnionActionCompleted as ActivityPayloadUnionActionCompleted, types_gen_ActivityPayloadUnionActionFailed as ActivityPayloadUnionActionFailed, types_gen_ActivityPayloadUnionActionStarted as ActivityPayloadUnionActionStarted, types_gen_ActivityPayloadUnionFileAdded as ActivityPayloadUnionFileAdded, types_gen_ActivityPayloadUnionGeneric as ActivityPayloadUnionGeneric, types_gen_ActivityPayloadUnionPlaywrightScriptGenerated as ActivityPayloadUnionPlaywrightScriptGenerated, types_gen_ActivityPayloadUnionReasoning as ActivityPayloadUnionReasoning, types_gen_ActivityPayloadUnionStatusChanged as ActivityPayloadUnionStatusChanged, types_gen_ActivityPayloadUnionStepCompleted as ActivityPayloadUnionStepCompleted, types_gen_ActivityPayloadUnionStepStarted as ActivityPayloadUnionStepStarted, types_gen_ActivityPayloadUnionTerminal as ActivityPayloadUnionTerminal, types_gen_ActivityPayloadUnionTransitionedNode as ActivityPayloadUnionTransitionedNode, types_gen_ActivityPayloadUnionUserMessageReceived as ActivityPayloadUnionUserMessageReceived, types_gen_ActivityPayloadUnionWorkflowUpdated as ActivityPayloadUnionWorkflowUpdated, types_gen_AgentExecutePostData as AgentExecutePostData, types_gen_AgentExecutePostError as AgentExecutePostError, types_gen_AgentExecutePostErrors as AgentExecutePostErrors, types_gen_AgentExecutePostResponse as AgentExecutePostResponse, types_gen_AgentExecutePostResponses as AgentExecutePostResponses, types_gen_AgentListData as AgentListData, types_gen_AgentListError as AgentListError, types_gen_AgentListErrors as AgentListErrors, types_gen_AgentListResponse as AgentListResponse, types_gen_AgentListResponses as AgentListResponses, types_gen_AgentsAgentBase as AgentsAgentBase, types_gen_AgentsAgentExecuteAgentRequest as AgentsAgentExecuteAgentRequest, types_gen_AgentsAgentExecuteAgentResponse as AgentsAgentExecuteAgentResponse, types_gen_AgentsAgentSearch as AgentsAgentSearch, types_gen_AgentsAgentSortField as AgentsAgentSortField, types_gen_AgentsExecutionActionName as AgentsExecutionActionName, types_gen_AgentsExecutionActivity as AgentsExecutionActivity, types_gen_AgentsExecutionActivityActionCompletedInfo as AgentsExecutionActivityActionCompletedInfo, types_gen_AgentsExecutionActivityActionCompletedPayload as AgentsExecutionActivityActionCompletedPayload, types_gen_AgentsExecutionActivityActionFailedPayload as AgentsExecutionActivityActionFailedPayload, types_gen_AgentsExecutionActivityActionStartedInfo as AgentsExecutionActivityActionStartedInfo, types_gen_AgentsExecutionActivityActionStartedPayload as AgentsExecutionActivityActionStartedPayload, types_gen_AgentsExecutionActivityFileAddedPayload as AgentsExecutionActivityFileAddedPayload, types_gen_AgentsExecutionActivityGenericPayload as AgentsExecutionActivityGenericPayload, types_gen_AgentsExecutionActivityPayloadUnion as AgentsExecutionActivityPayloadUnion, types_gen_AgentsExecutionActivityPlaywrightScriptGeneratedPayload as AgentsExecutionActivityPlaywrightScriptGeneratedPayload, types_gen_AgentsExecutionActivityReasoningPayload as AgentsExecutionActivityReasoningPayload, types_gen_AgentsExecutionActivityStatusChangedPayload as AgentsExecutionActivityStatusChangedPayload, types_gen_AgentsExecutionActivityStepCompletedPayload as AgentsExecutionActivityStepCompletedPayload, types_gen_AgentsExecutionActivityStepStartedPayload as AgentsExecutionActivityStepStartedPayload, types_gen_AgentsExecutionActivityTransitionedNodePayload as AgentsExecutionActivityTransitionedNodePayload, types_gen_AgentsExecutionActivityUserMessageReceivedPayload as AgentsExecutionActivityUserMessageReceivedPayload, types_gen_AgentsExecutionActivityWorkflowUpdatedPayload as AgentsExecutionActivityWorkflowUpdatedPayload, types_gen_AgentsExecutionAgentRulesDetails as AgentsExecutionAgentRulesDetails, types_gen_AgentsExecutionApiCallCompletedDetails as AgentsExecutionApiCallCompletedDetails, types_gen_AgentsExecutionAwaitingConfirmationPayload as AgentsExecutionAwaitingConfirmationPayload, types_gen_AgentsExecutionBrowserSnapshotCompletedDetails as AgentsExecutionBrowserSnapshotCompletedDetails, types_gen_AgentsExecutionCancelReason as AgentsExecutionCancelReason, types_gen_AgentsExecutionCancelledPayload as AgentsExecutionCancelledPayload, types_gen_AgentsExecutionComment as AgentsExecutionComment, types_gen_AgentsExecutionCompletedPayload as AgentsExecutionCompletedPayload, types_gen_AgentsExecutionExecutionResult as AgentsExecutionExecutionResult, types_gen_AgentsExecutionFailedPayload as AgentsExecutionFailedPayload, types_gen_AgentsExecutionFileListCompletedDetails as AgentsExecutionFileListCompletedDetails, types_gen_AgentsExecutionFileReadCompletedDetails as AgentsExecutionFileReadCompletedDetails, types_gen_AgentsExecutionFileUploadCompletedDetails as AgentsExecutionFileUploadCompletedDetails, types_gen_AgentsExecutionGetDatetimeDetails as AgentsExecutionGetDatetimeDetails, types_gen_AgentsExecutionGetMailCompletedDetails as AgentsExecutionGetMailCompletedDetails, types_gen_AgentsExecutionHumanLabel as AgentsExecutionHumanLabel, types_gen_AgentsExecutionListItem as AgentsExecutionListItem, types_gen_AgentsExecutionNavigationDetails as AgentsExecutionNavigationDetails, types_gen_AgentsExecutionNodeDetails as AgentsExecutionNodeDetails, types_gen_AgentsExecutionPausedPayload as AgentsExecutionPausedPayload, types_gen_AgentsExecutionPlaywrightScriptCompletedDetails as AgentsExecutionPlaywrightScriptCompletedDetails, types_gen_AgentsExecutionPlaywrightScriptStartedDetails as AgentsExecutionPlaywrightScriptStartedDetails, types_gen_AgentsExecutionRunFunctionCompletedDetails as AgentsExecutionRunFunctionCompletedDetails, types_gen_AgentsExecutionScratchpadCompletedDetails as AgentsExecutionScratchpadCompletedDetails, types_gen_AgentsExecutionScriptpadReadCompletedDetails as AgentsExecutionScriptpadReadCompletedDetails, types_gen_AgentsExecutionScriptpadSearchReplaceCompletedDetails as AgentsExecutionScriptpadSearchReplaceCompletedDetails, types_gen_AgentsExecutionSearchAgentId as AgentsExecutionSearchAgentId, types_gen_AgentsExecutionSearchAgentVersion as AgentsExecutionSearchAgentVersion, types_gen_AgentsExecutionSearchCreatedAfter as AgentsExecutionSearchCreatedAfter, types_gen_AgentsExecutionSearchCreatedBefore as AgentsExecutionSearchCreatedBefore, types_gen_AgentsExecutionSearchExecutionId as AgentsExecutionSearchExecutionId, types_gen_AgentsExecutionSearchHumanLabels as AgentsExecutionSearchHumanLabels, types_gen_AgentsExecutionSearchMetadataKey as AgentsExecutionSearchMetadataKey, types_gen_AgentsExecutionSearchMetadataValue as AgentsExecutionSearchMetadataValue, types_gen_AgentsExecutionSearchOutcomeLabel as AgentsExecutionSearchOutcomeLabel, types_gen_AgentsExecutionSearchStatus as AgentsExecutionSearchStatus, types_gen_AgentsExecutionSortField as AgentsExecutionSortField, types_gen_AgentsExecutionStatus as AgentsExecutionStatus, types_gen_AgentsExecutionTerminalPayload as AgentsExecutionTerminalPayload, types_gen_AgentsExecutionTransitionDetails as AgentsExecutionTransitionDetails, types_gen_AgentsExecutionUpdateType as AgentsExecutionUpdateType, types_gen_AgentsExecutionUserMessagesAddTextBody as AgentsExecutionUserMessagesAddTextBody, types_gen_AgentsExecutionWorkflowUpdate as AgentsExecutionWorkflowUpdate, types_gen_AgentsFilesFile as AgentsFilesFile, types_gen_AgentsFilesFilePart as AgentsFilesFilePart, types_gen_AgentsFilesTempFile as AgentsFilesTempFile, types_gen_AgentsFilesTempFilesResponse as AgentsFilesTempFilesResponse, types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar as AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType as AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, types_gen_ClientOptions as ClientOptions, types_gen_CommonBadRequestErrorBody as CommonBadRequestErrorBody, types_gen_CommonError as CommonError, types_gen_CommonForbiddenErrorBody as CommonForbiddenErrorBody, types_gen_CommonNotFoundErrorBody as CommonNotFoundErrorBody, types_gen_CommonOsError as CommonOsError, types_gen_CommonPaginationPage as CommonPaginationPage, types_gen_CommonPaginationPageSize as CommonPaginationPageSize, types_gen_CommonSortDirection as CommonSortDirection, types_gen_CommonUuid as CommonUuid, types_gen_ExecutionActivitiesGetData as ExecutionActivitiesGetData, types_gen_ExecutionActivitiesGetError as ExecutionActivitiesGetError, types_gen_ExecutionActivitiesGetErrors as ExecutionActivitiesGetErrors, types_gen_ExecutionActivitiesGetResponse as ExecutionActivitiesGetResponse, types_gen_ExecutionActivitiesGetResponses as ExecutionActivitiesGetResponses, types_gen_ExecutionContextFilesGetData as ExecutionContextFilesGetData, types_gen_ExecutionContextFilesGetError as ExecutionContextFilesGetError, types_gen_ExecutionContextFilesGetErrors as ExecutionContextFilesGetErrors, types_gen_ExecutionContextFilesGetResponse as ExecutionContextFilesGetResponse, types_gen_ExecutionContextFilesGetResponses as ExecutionContextFilesGetResponses, types_gen_ExecutionContextFilesUploadData as ExecutionContextFilesUploadData, types_gen_ExecutionContextFilesUploadError as ExecutionContextFilesUploadError, types_gen_ExecutionContextFilesUploadErrors as ExecutionContextFilesUploadErrors, types_gen_ExecutionContextFilesUploadResponse as ExecutionContextFilesUploadResponse, types_gen_ExecutionContextFilesUploadResponses as ExecutionContextFilesUploadResponses, types_gen_ExecutionUserMessagesAddData as ExecutionUserMessagesAddData, types_gen_ExecutionUserMessagesAddError as ExecutionUserMessagesAddError, types_gen_ExecutionUserMessagesAddErrors as ExecutionUserMessagesAddErrors, types_gen_ExecutionUserMessagesAddResponse as ExecutionUserMessagesAddResponse, types_gen_ExecutionUserMessagesAddResponses as ExecutionUserMessagesAddResponses, types_gen_ExecutionsListData as ExecutionsListData, types_gen_ExecutionsListError as ExecutionsListError, types_gen_ExecutionsListErrors as ExecutionsListErrors, types_gen_ExecutionsListResponse as ExecutionsListResponse, types_gen_ExecutionsListResponses as ExecutionsListResponses, types_gen_TempFilesStageData as TempFilesStageData, types_gen_TempFilesStageError as TempFilesStageError, types_gen_TempFilesStageErrors as TempFilesStageErrors, types_gen_TempFilesStageResponse as TempFilesStageResponse, types_gen_TempFilesStageResponses as TempFilesStageResponses, types_gen_Version as Version };
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
|
|
1982
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
2461
1983
|
/**
|
|
2462
1984
|
* You can provide a client instance returned by `createClient()` instead of
|
|
2463
1985
|
* individual options. This might be also useful if you want to implement a
|
|
@@ -2471,421 +1993,85 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
|
|
|
2471
1993
|
meta?: Record<string, unknown>;
|
|
2472
1994
|
};
|
|
2473
1995
|
/**
|
|
2474
|
-
*
|
|
2475
|
-
*/
|
|
2476
|
-
declare const getOpenApi: <ThrowOnError extends boolean = false>(options?: Options$1<GetOpenApiData, ThrowOnError>) => RequestResult<GetOpenApiResponses, unknown, ThrowOnError, "fields">;
|
|
2477
|
-
/**
|
|
2478
|
-
* Check the health of the API
|
|
2479
|
-
*/
|
|
2480
|
-
declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Options$1<HealthCheckData, ThrowOnError>) => RequestResult<HealthCheckResponses, HealthCheckErrors, ThrowOnError, "fields">;
|
|
2481
|
-
/**
|
|
2482
|
-
* Execute an agent
|
|
2483
|
-
* Executes an agent with the provided parameters
|
|
2484
|
-
* @deprecated
|
|
2485
|
-
*/
|
|
2486
|
-
declare const executeAgent$1: <ThrowOnError extends boolean = false>(options: Options$1<ExecuteAgentData, ThrowOnError>) => RequestResult<ExecuteAgentResponses, ExecuteAgentErrors, ThrowOnError, "fields">;
|
|
2487
|
-
/**
|
|
2488
|
-
* Execute an agent with structured parameters
|
|
2489
|
-
* Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
|
|
2490
|
-
*/
|
|
2491
|
-
declare const executeAgentStructured: <ThrowOnError extends boolean = false>(options: Options$1<ExecuteAgentStructuredData, ThrowOnError>) => RequestResult<ExecuteAgentStructuredResponses, ExecuteAgentStructuredErrors, ThrowOnError, "fields">;
|
|
2492
|
-
/**
|
|
2493
|
-
* Get execution status
|
|
2494
|
-
*/
|
|
2495
|
-
declare const getExecutionStatus$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionStatusData, ThrowOnError>) => RequestResult<GetExecutionStatusResponses, GetExecutionStatusErrors, ThrowOnError, "fields">;
|
|
2496
|
-
/**
|
|
2497
|
-
* Get execution result
|
|
2498
|
-
*/
|
|
2499
|
-
declare const getExecutionResult$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionResultData, ThrowOnError>) => RequestResult<GetExecutionResultResponses, GetExecutionResultErrors, ThrowOnError, "fields">;
|
|
2500
|
-
/**
|
|
2501
|
-
* Get browser session recording
|
|
2502
|
-
* Retrieves the browser session recording URL for a completed execution
|
|
2503
|
-
*/
|
|
2504
|
-
declare const getBrowserSessionRecording$1: <ThrowOnError extends boolean = false>(options: Options$1<GetBrowserSessionRecordingData, ThrowOnError>) => RequestResult<GetBrowserSessionRecordingResponses, GetBrowserSessionRecordingErrors, ThrowOnError, "fields">;
|
|
2505
|
-
/**
|
|
2506
|
-
* Get agent profiles
|
|
2507
|
-
* Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
|
|
2508
|
-
*/
|
|
2509
|
-
declare const getAgentProfiles$1: <ThrowOnError extends boolean = false>(options?: Options$1<GetAgentProfilesData, ThrowOnError>) => RequestResult<GetAgentProfilesResponses, GetAgentProfilesErrors, ThrowOnError, "fields">;
|
|
2510
|
-
/**
|
|
2511
|
-
* Create an agent profile
|
|
2512
|
-
* Creates a new agent profile for the organization
|
|
2513
|
-
*/
|
|
2514
|
-
declare const createAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<CreateAgentProfileData, ThrowOnError>) => RequestResult<CreateAgentProfileResponses, CreateAgentProfileErrors, ThrowOnError, "fields">;
|
|
2515
|
-
/**
|
|
2516
|
-
* Delete an agent profile
|
|
2517
|
-
* Deletes the specified agent profile
|
|
2518
|
-
*/
|
|
2519
|
-
declare const deleteAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<DeleteAgentProfileData, ThrowOnError>) => RequestResult<DeleteAgentProfileResponses, DeleteAgentProfileErrors, ThrowOnError, "fields">;
|
|
2520
|
-
/**
|
|
2521
|
-
* Get an agent profile by ID
|
|
2522
|
-
* Returns the complete agent profile including credentials
|
|
2523
|
-
*/
|
|
2524
|
-
declare const getAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<GetAgentProfileData, ThrowOnError>) => RequestResult<GetAgentProfileResponses, GetAgentProfileErrors, ThrowOnError, "fields">;
|
|
2525
|
-
/**
|
|
2526
|
-
* Update an agent profile
|
|
2527
|
-
* Updates an agent profile including metadata and/or credentials
|
|
2528
|
-
*/
|
|
2529
|
-
declare const updateAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<UpdateAgentProfileData, ThrowOnError>) => RequestResult<UpdateAgentProfileResponses, UpdateAgentProfileErrors, ThrowOnError, "fields">;
|
|
2530
|
-
/**
|
|
2531
|
-
* Get the public key for credentials
|
|
2532
|
-
*/
|
|
2533
|
-
declare const getCredentialsPublicKey$1: <ThrowOnError extends boolean = false>(options?: Options$1<GetCredentialsPublicKeyData, ThrowOnError>) => RequestResult<GetCredentialsPublicKeyResponses, GetCredentialsPublicKeyErrors, ThrowOnError, "fields">;
|
|
2534
|
-
|
|
2535
|
-
declare const sdk_gen$1_executeAgentStructured: typeof executeAgentStructured;
|
|
2536
|
-
declare const sdk_gen$1_getOpenApi: typeof getOpenApi;
|
|
2537
|
-
declare const sdk_gen$1_healthCheck: typeof healthCheck;
|
|
2538
|
-
declare namespace sdk_gen$1 {
|
|
2539
|
-
export { type Options$1 as Options, createAgentProfile$1 as createAgentProfile, deleteAgentProfile$1 as deleteAgentProfile, executeAgent$1 as executeAgent, sdk_gen$1_executeAgentStructured as executeAgentStructured, getAgentProfile$1 as getAgentProfile, getAgentProfiles$1 as getAgentProfiles, getBrowserSessionRecording$1 as getBrowserSessionRecording, getCredentialsPublicKey$1 as getCredentialsPublicKey, getExecutionResult$1 as getExecutionResult, getExecutionStatus$1 as getExecutionStatus, sdk_gen$1_getOpenApi as getOpenApi, sdk_gen$1_healthCheck as healthCheck, updateAgentProfile$1 as updateAgentProfile };
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
type Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options$3<TData, ThrowOnError> & {
|
|
2543
|
-
/**
|
|
2544
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
2545
|
-
* individual options. This might be also useful if you want to implement a
|
|
2546
|
-
* custom client.
|
|
2547
|
-
*/
|
|
2548
|
-
client?: Client$2;
|
|
2549
|
-
/**
|
|
2550
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
2551
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
2552
|
-
*/
|
|
2553
|
-
meta?: Record<string, unknown>;
|
|
2554
|
-
};
|
|
2555
|
-
declare const agentList: <ThrowOnError extends boolean = false>(options: Options<AgentListData, ThrowOnError>) => RequestResult$1<AgentListResponses, AgentListErrors, ThrowOnError, "fields">;
|
|
2556
|
-
/**
|
|
2557
|
-
* Execute an agent
|
|
2558
|
-
* Start an execution for the given agent.
|
|
2559
|
-
*/
|
|
2560
|
-
declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult$1<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
|
|
2561
|
-
/**
|
|
2562
|
-
* List executions
|
|
2563
|
-
* List executions with filtering and pagination
|
|
2564
|
-
*/
|
|
2565
|
-
declare const executionsList: <ThrowOnError extends boolean = false>(options: Options<ExecutionsListData, ThrowOnError>) => RequestResult$1<ExecutionsListResponses, ExecutionsListErrors, ThrowOnError, "fields">;
|
|
2566
|
-
/**
|
|
2567
|
-
* Retrieve execution activities
|
|
2568
|
-
* Get activities for an execution
|
|
2569
|
-
*/
|
|
2570
|
-
declare const executionActivitiesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionActivitiesGetData, ThrowOnError>) => RequestResult$1<ExecutionActivitiesGetResponses, ExecutionActivitiesGetErrors, ThrowOnError, "fields">;
|
|
2571
|
-
declare const executionContextFilesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesGetData, ThrowOnError>) => RequestResult$1<ExecutionContextFilesGetResponses, ExecutionContextFilesGetErrors, ThrowOnError, "fields">;
|
|
2572
|
-
declare const executionContextFilesUpload: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesUploadData, ThrowOnError>) => RequestResult$1<ExecutionContextFilesUploadResponses, ExecutionContextFilesUploadErrors, ThrowOnError, "fields">;
|
|
2573
|
-
/**
|
|
2574
|
-
* Send user message to execution
|
|
2575
|
-
* Add a user message to an execution
|
|
2576
|
-
*/
|
|
2577
|
-
declare const executionUserMessagesAdd: <ThrowOnError extends boolean = false>(options: Options<ExecutionUserMessagesAddData, ThrowOnError>) => RequestResult$1<ExecutionUserMessagesAddResponses, ExecutionUserMessagesAddErrors, ThrowOnError, "fields">;
|
|
2578
|
-
/**
|
|
2579
|
-
* Stage a file for an execution
|
|
2580
|
-
* Stage a file prior to starting an execution, so that it can be used when the execution is started. See the /agents/{agentId}/execute to understand how to pass the returned file information to the execution endpoint.
|
|
2581
|
-
*/
|
|
2582
|
-
declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult$1<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
|
|
2583
|
-
|
|
2584
|
-
type sdk_gen_Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
|
|
2585
|
-
declare const sdk_gen_agentExecutePost: typeof agentExecutePost;
|
|
2586
|
-
declare const sdk_gen_agentList: typeof agentList;
|
|
2587
|
-
declare const sdk_gen_executionActivitiesGet: typeof executionActivitiesGet;
|
|
2588
|
-
declare const sdk_gen_executionContextFilesGet: typeof executionContextFilesGet;
|
|
2589
|
-
declare const sdk_gen_executionContextFilesUpload: typeof executionContextFilesUpload;
|
|
2590
|
-
declare const sdk_gen_executionUserMessagesAdd: typeof executionUserMessagesAdd;
|
|
2591
|
-
declare const sdk_gen_executionsList: typeof executionsList;
|
|
2592
|
-
declare const sdk_gen_tempFilesStage: typeof tempFilesStage;
|
|
2593
|
-
declare namespace sdk_gen {
|
|
2594
|
-
export { type sdk_gen_Options as Options, sdk_gen_agentExecutePost as agentExecutePost, sdk_gen_agentList as agentList, sdk_gen_executionActivitiesGet as executionActivitiesGet, sdk_gen_executionContextFilesGet as executionContextFilesGet, sdk_gen_executionContextFilesUpload as executionContextFilesUpload, sdk_gen_executionUserMessagesAdd as executionUserMessagesAdd, sdk_gen_executionsList as executionsList, sdk_gen_tempFilesStage as tempFilesStage };
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
/**
|
|
2598
|
-
* Create an API client with a provided API key.
|
|
2599
|
-
*
|
|
2600
|
-
* @param apiKey - Your API key.
|
|
2601
|
-
* @returns A configured API client.
|
|
2602
|
-
*
|
|
2603
|
-
* @example
|
|
2604
|
-
* const client = AsteroidClient('your-api-key');
|
|
2605
|
-
*/
|
|
2606
|
-
declare const AsteroidClient: (apiKey: string, options?: {
|
|
2607
|
-
v1?: {
|
|
2608
|
-
baseUrl?: string;
|
|
2609
|
-
};
|
|
2610
|
-
v2?: {
|
|
2611
|
-
baseUrl?: string;
|
|
2612
|
-
};
|
|
2613
|
-
}) => {
|
|
2614
|
-
agentsV1Client: Client;
|
|
2615
|
-
agentsV2Client: Client$2;
|
|
2616
|
-
};
|
|
2617
|
-
type AsteroidClient = ReturnType<typeof AsteroidClient>;
|
|
2618
|
-
/** --- V1 --- */
|
|
2619
|
-
/**
|
|
2620
|
-
* Execute an agent with parameters including optional agent profile ID, dynamic data, and metadata.
|
|
2621
|
-
*
|
|
2622
|
-
* @param client - The API client.
|
|
2623
|
-
* @param agentId - The ID of the agent to execute.
|
|
2624
|
-
* @param executionData - The structured execution parameters.
|
|
2625
|
-
* @returns The execution ID.
|
|
2626
|
-
*
|
|
2627
|
-
* @example
|
|
2628
|
-
* const executionId = await executeAgent(client, 'my-agent-id', {
|
|
2629
|
-
* agentProfileId: 'profile-123',
|
|
2630
|
-
* dynamicData: { input: "some dynamic value" },
|
|
2631
|
-
* metadata: { environment: "production", userId: "user-123" }
|
|
2632
|
-
* });
|
|
2633
|
-
*/
|
|
2634
|
-
declare const executeAgent: (client: AsteroidClient, agentId: string, executionData: AgentsAgentExecuteAgentRequest) => Promise<string>;
|
|
2635
|
-
/**
|
|
2636
|
-
* Get the current status for an execution.
|
|
2637
|
-
*
|
|
2638
|
-
* @param client - The API client.
|
|
2639
|
-
* @param executionId - The execution identifier.
|
|
2640
|
-
* @returns The execution status details.
|
|
2641
|
-
*
|
|
2642
|
-
* @example
|
|
2643
|
-
* const status = await getExecutionStatus(client, executionId);
|
|
2644
|
-
* console.log(status.status);
|
|
2645
|
-
*/
|
|
2646
|
-
declare const getExecutionStatus: (client: AsteroidClient, executionId: string) => Promise<ExecutionStatusResponse>;
|
|
2647
|
-
/**
|
|
2648
|
-
* Get the final result of an execution.
|
|
2649
|
-
*
|
|
2650
|
-
* @param client - The API client.
|
|
2651
|
-
* @param executionId - The execution identifier.
|
|
2652
|
-
* @returns The result object of the execution.
|
|
2653
|
-
*
|
|
2654
|
-
* @example
|
|
2655
|
-
* const result = await getExecutionResult(client, executionId);
|
|
2656
|
-
* console.log(result);
|
|
2657
|
-
*/
|
|
2658
|
-
declare const getExecutionResult: (client: AsteroidClient, executionId: string) => Promise<Record<string, unknown>>;
|
|
2659
|
-
/**
|
|
2660
|
-
* Waits for an execution to reach a terminal state and returns the result.
|
|
2661
|
-
* Continuously polls the execution status until it's either "completed", "cancelled", or "failed".
|
|
2662
|
-
*
|
|
2663
|
-
* @param client - The API client.
|
|
2664
|
-
* @param executionId - The execution identifier.
|
|
2665
|
-
* @param interval - Polling interval in milliseconds (default is 1000ms).
|
|
2666
|
-
* @returns A promise that resolves with the execution result if completed.
|
|
2667
|
-
* @throws An error if the execution ends as "cancelled" or "failed".
|
|
2668
|
-
*
|
|
2669
|
-
* @example
|
|
2670
|
-
* const result = await waitForExecutionResult(client, executionId, 2000);
|
|
2671
|
-
*/
|
|
2672
|
-
declare const waitForExecutionResult: (client: AsteroidClient, executionId: string, interval?: number, timeout?: number) => Promise<Record<string, unknown>>;
|
|
2673
|
-
/**
|
|
2674
|
-
* Get the browser session recording URL for a completed execution.
|
|
2675
|
-
*
|
|
2676
|
-
* @param client - The API client.
|
|
2677
|
-
* @param executionId - The execution identifier.
|
|
2678
|
-
* @returns The browser session recording URL.
|
|
2679
|
-
*
|
|
2680
|
-
* @example
|
|
2681
|
-
* const recording = await getBrowserSessionRecording(client, executionId);
|
|
2682
|
-
* console.log(recording.recording_url);
|
|
2683
|
-
*/
|
|
2684
|
-
declare const getBrowserSessionRecording: (client: AsteroidClient, executionId: string) => Promise<BrowserSessionRecordingResponse>;
|
|
2685
|
-
/**
|
|
2686
|
-
* Upload files to an execution.
|
|
2687
|
-
*
|
|
2688
|
-
* @param client - The API client.
|
|
2689
|
-
* @param executionId - The execution identifier.
|
|
2690
|
-
* @param files - Array of files to upload.
|
|
2691
|
-
* @returns A success message.
|
|
1996
|
+
* List Agent Profiles
|
|
2692
1997
|
*
|
|
2693
|
-
*
|
|
2694
|
-
* const fileInput = document.getElementById('file-input') as HTMLInputElement;
|
|
2695
|
-
* const files = Array.from(fileInput.files || []);
|
|
2696
|
-
* const result = await uploadExecutionFiles(client, executionId, files);
|
|
2697
|
-
* console.log(result); // "Files uploaded."
|
|
1998
|
+
* List all agent profiles for an organization
|
|
2698
1999
|
*/
|
|
2699
|
-
declare const
|
|
2000
|
+
declare const agentProfilesList: <ThrowOnError extends boolean = false>(options?: Options<AgentProfilesListData, ThrowOnError>) => RequestResult<AgentProfilesListResponses, AgentProfilesListErrors, ThrowOnError, "fields">;
|
|
2700
2001
|
/**
|
|
2701
|
-
*
|
|
2002
|
+
* Create Agent Profile
|
|
2702
2003
|
*
|
|
2703
|
-
*
|
|
2704
|
-
* @param organizationId - Optional organization ID to filter by.
|
|
2705
|
-
* @returns []AgentProfile - List of agent profiles.
|
|
2706
|
-
*
|
|
2707
|
-
* @example
|
|
2708
|
-
* const profiles = await getAgentProfiles(client, 'org_123');
|
|
2004
|
+
* Create a new agent profile
|
|
2709
2005
|
*/
|
|
2710
|
-
declare const
|
|
2006
|
+
declare const agentProfilesCreate: <ThrowOnError extends boolean = false>(options: Options<AgentProfilesCreateData, ThrowOnError>) => RequestResult<AgentProfilesCreateResponses, AgentProfilesCreateErrors, ThrowOnError, "fields">;
|
|
2711
2007
|
/**
|
|
2712
|
-
*
|
|
2713
|
-
*
|
|
2714
|
-
* @param client - The API client.
|
|
2715
|
-
* @returns The PEM-formatted public key.
|
|
2008
|
+
* Delete Agent Profile
|
|
2716
2009
|
*
|
|
2717
|
-
*
|
|
2718
|
-
* const publicKey = await getCredentialsPublicKey(client);
|
|
2010
|
+
* Delete an agent profile
|
|
2719
2011
|
*/
|
|
2720
|
-
declare const
|
|
2012
|
+
declare const agentProfileDelete: <ThrowOnError extends boolean = false>(options: Options<AgentProfileDeleteData, ThrowOnError>) => RequestResult<AgentProfileDeleteResponses, AgentProfileDeleteErrors, ThrowOnError, "fields">;
|
|
2721
2013
|
/**
|
|
2722
|
-
*
|
|
2723
|
-
*
|
|
2724
|
-
* @param client - The API client.
|
|
2725
|
-
* @param payload - The agent profile data.
|
|
2726
|
-
* @returns The created agent profile.
|
|
2014
|
+
* Get Agent Profile
|
|
2727
2015
|
*
|
|
2728
|
-
*
|
|
2729
|
-
* const profile = await createAgentProfile(client, {
|
|
2730
|
-
* name: 'My Profile',
|
|
2731
|
-
* description: 'Profile description',
|
|
2732
|
-
* organization_id: 'org_123',
|
|
2733
|
-
* proxy_cc: 'us',
|
|
2734
|
-
* proxy_type: 'residential',
|
|
2735
|
-
* captcha_solver_active: false,
|
|
2736
|
-
* sticky_ip: false,
|
|
2737
|
-
* credentials: []
|
|
2738
|
-
* cookies: []
|
|
2739
|
-
* });
|
|
2016
|
+
* Get an agent profile by ID
|
|
2740
2017
|
*/
|
|
2741
|
-
declare const
|
|
2018
|
+
declare const agentProfileGet: <ThrowOnError extends boolean = false>(options: Options<AgentProfileGetData, ThrowOnError>) => RequestResult<AgentProfileGetResponses, AgentProfileGetErrors, ThrowOnError, "fields">;
|
|
2742
2019
|
/**
|
|
2743
|
-
*
|
|
2744
|
-
*
|
|
2745
|
-
* @param client - The API client.
|
|
2746
|
-
* @param profileId - The agent profile ID.
|
|
2747
|
-
* @returns The agent profile.
|
|
2020
|
+
* Update Agent Profile
|
|
2748
2021
|
*
|
|
2749
|
-
*
|
|
2750
|
-
* const profile = await getAgentProfile(client, 'profile_123');
|
|
2022
|
+
* Update an existing agent profile
|
|
2751
2023
|
*/
|
|
2752
|
-
declare const
|
|
2024
|
+
declare const agentProfileUpdate: <ThrowOnError extends boolean = false>(options: Options<AgentProfileUpdateData, ThrowOnError>) => RequestResult<AgentProfileUpdateResponses, AgentProfileUpdateErrors, ThrowOnError, "fields">;
|
|
2753
2025
|
/**
|
|
2754
|
-
*
|
|
2026
|
+
* Clear Browser Cache
|
|
2755
2027
|
*
|
|
2756
|
-
*
|
|
2757
|
-
* @param profileId - The agent profile ID.
|
|
2758
|
-
* @param payload - The update data.
|
|
2759
|
-
* @returns The updated agent profile.
|
|
2760
|
-
*
|
|
2761
|
-
* @example
|
|
2762
|
-
* const updated = await updateAgentProfile(client, 'profile_123', {
|
|
2763
|
-
* name: 'New Name',
|
|
2764
|
-
* credentials_to_add: [{ name: 'API_KEY', data: 'secret-key' }],
|
|
2765
|
-
* credentials_to_delete: ['cred_456']
|
|
2766
|
-
* });
|
|
2028
|
+
* Clears the browser profile/cache for the specified agent profile by deleting its browser profile
|
|
2767
2029
|
*/
|
|
2768
|
-
declare const
|
|
2030
|
+
declare const agentProfileClearBrowserCache: <ThrowOnError extends boolean = false>(options: Options<AgentProfileClearBrowserCacheData, ThrowOnError>) => RequestResult<AgentProfileClearBrowserCacheResponses, AgentProfileClearBrowserCacheErrors, ThrowOnError, "fields">;
|
|
2031
|
+
declare const agentList: <ThrowOnError extends boolean = false>(options?: Options<AgentListData, ThrowOnError>) => RequestResult<AgentListResponses, AgentListErrors, ThrowOnError, "fields">;
|
|
2769
2032
|
/**
|
|
2770
|
-
*
|
|
2771
|
-
*
|
|
2772
|
-
* @param client - The API client.
|
|
2773
|
-
* @param profileId - The agent profile ID.
|
|
2774
|
-
* @returns A success message.
|
|
2033
|
+
* Execute an agent
|
|
2775
2034
|
*
|
|
2776
|
-
*
|
|
2777
|
-
* await deleteAgentProfile(client, 'profile_123');
|
|
2035
|
+
* Start an execution for the given agent.
|
|
2778
2036
|
*/
|
|
2779
|
-
declare const
|
|
2780
|
-
message?: string;
|
|
2781
|
-
}>;
|
|
2037
|
+
declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
|
|
2782
2038
|
/**
|
|
2783
|
-
*
|
|
2784
|
-
*
|
|
2785
|
-
* @param client - The API client.
|
|
2786
|
-
* @param executionId - The execution identifier.
|
|
2787
|
-
* @param n - The number of activities to return.
|
|
2788
|
-
* @returns The list of execution activities.
|
|
2039
|
+
* List executions
|
|
2789
2040
|
*
|
|
2790
|
-
*
|
|
2791
|
-
* const activities = await getLastNExecutionActivities(client, 'execution_123', 10);
|
|
2792
|
-
* console.log(activities);
|
|
2041
|
+
* List executions with filtering and pagination
|
|
2793
2042
|
*/
|
|
2794
|
-
declare const
|
|
2043
|
+
declare const executionsList: <ThrowOnError extends boolean = false>(options?: Options<ExecutionsListData, ThrowOnError>) => RequestResult<ExecutionsListResponses, ExecutionsListErrors, ThrowOnError, "fields">;
|
|
2795
2044
|
/**
|
|
2796
|
-
*
|
|
2797
|
-
*
|
|
2798
|
-
* @param client - The API client.
|
|
2799
|
-
* @param executionId - The execution identifier.
|
|
2800
|
-
* @param message - The message to add.
|
|
2045
|
+
* Get execution
|
|
2801
2046
|
*
|
|
2802
|
-
*
|
|
2803
|
-
* await addMessageToExecution(client, 'execution_123', 'Hello, world!');
|
|
2047
|
+
* Get a single execution by ID with all details
|
|
2804
2048
|
*/
|
|
2805
|
-
declare const
|
|
2049
|
+
declare const executionGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionGetData, ThrowOnError>) => RequestResult<ExecutionGetResponses, ExecutionGetErrors, ThrowOnError, "fields">;
|
|
2806
2050
|
/**
|
|
2807
|
-
*
|
|
2808
|
-
*
|
|
2809
|
-
* @param client - The API client.
|
|
2810
|
-
* @param executionId - The execution identifier.
|
|
2811
|
-
* @returns A list of files associated with the execution.
|
|
2051
|
+
* Retrieve execution activities
|
|
2812
2052
|
*
|
|
2813
|
-
*
|
|
2814
|
-
* const files = await getExecutionFiles(client, 'execution_123');
|
|
2815
|
-
* files.forEach(file => {
|
|
2816
|
-
* console.log(`File: ${file.fileName}, Size: ${file.fileSize}`);
|
|
2817
|
-
* });
|
|
2053
|
+
* Get activities for an execution
|
|
2818
2054
|
*/
|
|
2819
|
-
declare const
|
|
2055
|
+
declare const executionActivitiesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionActivitiesGetData, ThrowOnError>) => RequestResult<ExecutionActivitiesGetResponses, ExecutionActivitiesGetErrors, ThrowOnError, "fields">;
|
|
2056
|
+
declare const executionContextFilesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesGetData, ThrowOnError>) => RequestResult<ExecutionContextFilesGetResponses, ExecutionContextFilesGetErrors, ThrowOnError, "fields">;
|
|
2057
|
+
declare const executionContextFilesUpload: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesUploadData, ThrowOnError>) => RequestResult<ExecutionContextFilesUploadResponses, ExecutionContextFilesUploadErrors, ThrowOnError, "fields">;
|
|
2820
2058
|
/**
|
|
2821
|
-
*
|
|
2822
|
-
*
|
|
2823
|
-
* @param client - The API client.
|
|
2824
|
-
* @param file - The File object containing the signed URL and metadata.
|
|
2825
|
-
* @param downloadPath - Path where the file should be saved. Can be a directory or full file path.
|
|
2826
|
-
* @param createDirs - Whether to create parent directories if they don't exist (default: true).
|
|
2827
|
-
* @param timeout - Request timeout in seconds (default: 30).
|
|
2828
|
-
* @returns The full path where the file was saved.
|
|
2059
|
+
* Update execution status
|
|
2829
2060
|
*
|
|
2830
|
-
*
|
|
2831
|
-
* const files = await getExecutionFiles(client, 'execution_123');
|
|
2832
|
-
* for (const file of files) {
|
|
2833
|
-
* // Download to specific directory
|
|
2834
|
-
* const savedPath = await downloadExecutionFile(client, file, './downloads/');
|
|
2835
|
-
* console.log(`Downloaded ${file.fileName} to ${savedPath}`);
|
|
2836
|
-
*
|
|
2837
|
-
* // Download with specific filename
|
|
2838
|
-
* const savedPath2 = await downloadExecutionFile(client, file, './downloads/my_file.txt');
|
|
2839
|
-
* console.log(`Downloaded to ${savedPath2}`);
|
|
2840
|
-
* }
|
|
2061
|
+
* Update the status of an execution. Use this to pause, resume, or cancel an execution.
|
|
2841
2062
|
*/
|
|
2842
|
-
declare const
|
|
2843
|
-
/** --- V2 --- */
|
|
2063
|
+
declare const executionStatusUpdate: <ThrowOnError extends boolean = false>(options: Options<ExecutionStatusUpdateData, ThrowOnError>) => RequestResult<ExecutionStatusUpdateResponses, ExecutionStatusUpdateErrors, ThrowOnError, "fields">;
|
|
2844
2064
|
/**
|
|
2845
|
-
*
|
|
2065
|
+
* Send user message to execution
|
|
2846
2066
|
*
|
|
2847
|
-
*
|
|
2848
|
-
* @param organizationId - The organization identifier.
|
|
2849
|
-
* @param page - The page number.
|
|
2850
|
-
* @param pageSize - The page size.
|
|
2851
|
-
* @returns The list of agents.
|
|
2067
|
+
* Add a user message to an execution
|
|
2852
2068
|
*/
|
|
2853
|
-
declare const
|
|
2069
|
+
declare const executionUserMessagesAdd: <ThrowOnError extends boolean = false>(options: Options<ExecutionUserMessagesAddData, ThrowOnError>) => RequestResult<ExecutionUserMessagesAddResponses, ExecutionUserMessagesAddErrors, ThrowOnError, "fields">;
|
|
2854
2070
|
/**
|
|
2855
|
-
*
|
|
2856
|
-
*
|
|
2857
|
-
* @param client - The API client.
|
|
2858
|
-
* @param options - Filtering and pagination options.
|
|
2859
|
-
* @returns Paginated execution list with metadata.
|
|
2860
|
-
*
|
|
2861
|
-
* @example
|
|
2862
|
-
* // Get all executions for an organization
|
|
2863
|
-
* const result = await getExecutions(client, {
|
|
2864
|
-
* organizationId: 'org_123',
|
|
2865
|
-
* page: 1,
|
|
2866
|
-
* pageSize: 20
|
|
2867
|
-
* });
|
|
2868
|
-
*
|
|
2869
|
-
* @example
|
|
2870
|
-
* // Filter by agent and status
|
|
2871
|
-
* const result = await getExecutions(client, {
|
|
2872
|
-
* organizationId: 'org_123',
|
|
2873
|
-
* agentId: 'agent_456',
|
|
2874
|
-
* status: ['completed', 'failed'],
|
|
2875
|
-
* page: 1,
|
|
2876
|
-
* pageSize: 20,
|
|
2877
|
-
* sortField: 'created_at',
|
|
2878
|
-
* sortDirection: 'desc'
|
|
2879
|
-
* });
|
|
2071
|
+
* Stage a file for an execution
|
|
2880
2072
|
*
|
|
2881
|
-
*
|
|
2882
|
-
* // Search by execution ID
|
|
2883
|
-
* const result = await getExecutions(client, {
|
|
2884
|
-
* executionId: 'exec_',
|
|
2885
|
-
* page: 1,
|
|
2886
|
-
* pageSize: 20
|
|
2887
|
-
* });
|
|
2073
|
+
* Stage a file prior to starting an execution, so that it can be used when the execution is started. See the /agents/{agentId}/execute to understand how to pass the returned file information to the execution endpoint.
|
|
2888
2074
|
*/
|
|
2889
|
-
declare const
|
|
2075
|
+
declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
|
|
2890
2076
|
|
|
2891
|
-
export {
|
|
2077
|
+
export { type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentsAgentBase, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionRulesDetails, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTransitionDetails, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAgentProfile, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileOperatingSystem, type AgentsProfileProxyType, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfileRequest, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileGet, agentProfileUpdate, agentProfilesCreate, agentProfilesList, executionActivitiesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionStatusUpdate, executionUserMessagesAdd, executionsList, tempFilesStage };
|