@airtop/sdk 1.0.0-alpha2.26 → 1.0.0-alpha2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +208 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +301 -27
- package/dist/index.d.ts +301 -27
- package/dist/index.js +196 -45
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
@@ -1,20 +1,25 @@
|
|
1
|
+
import { SessionListParams, ProfileOutput, FileListParams, FileCreateFileParams, WindowCreateParams, WindowIDData, EnvelopeDefaultMeta as EnvelopeDefaultMeta$1, Issue as Issue$1, WindowInfo, WindowGetParams, AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
2
|
+
import * as index_js from '@airtop/core/resources/index.js';
|
3
|
+
export { index_js as AirtopCore };
|
4
|
+
export { AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
5
|
+
import * as _airtop_core_resources_shared_mjs from '@airtop/core/resources/shared.mjs';
|
6
|
+
export { _airtop_core_resources_shared_mjs as AirtopCoreShared };
|
7
|
+
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
8
|
+
import * as windows_js from '@airtop/core/resources/windows.js';
|
9
|
+
export { windows_js as AirtopCoreWindows };
|
10
|
+
export { WindowActParams, WindowClickParams, WindowExtractParams, WindowFillFormParams, WindowFindManyParams, WindowFindOneParams, WindowGetParams, WindowHoverParams, WindowLlmParams, WindowLoadURLParams, WindowMonitorParams, WindowNavigateParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowWaitForPageParams } from '@airtop/core/resources/windows.js';
|
1
11
|
import * as _airtop_core from '@airtop/core';
|
2
12
|
import { Airtop } from '@airtop/core';
|
3
13
|
import { AirtopJsonSchemaAdapter } from '@airtop/json-schema-adapter';
|
4
14
|
export { AirtopJsonSchemaAdapter } from '@airtop/json-schema-adapter';
|
5
15
|
import { ILogLayer } from 'loglayer';
|
6
16
|
export { ILogLayer } from 'loglayer';
|
7
|
-
import { Issue, SessionConfigV1,
|
17
|
+
import { Issue, SessionConfigV1, ListAutomationsOutput, AutomationData, FilesResponse, EnvelopeDefaultMeta, GetFileData, CreateFileData, AirtopPagination, ExternalFile, ServicePromptActionResponseEnvelope, ServicePromptParameters, ExternalSessionWithConnectionInfo, ExtractActionResponseEnvelope, ActActionResponseEnvelope, LlmActionResponseEnvelope, NodeHandle, WaitForPageActionResponseEnvelope, NavigateActionResponseEnvelope, FindOneActionResponseEnvelope, FindManyActionResponseEnvelope, AIPromptResponse as AIPromptResponse$1, WindowIDDataResponse, OperationOutcomeResponse, WindowsResponse } from '@airtop/core/resources/shared.js';
|
8
18
|
export { AIResponseEnvelope, ActActionResponseData, AgentInvocationData, AgentVersionData, AirtopPagination, AsyncConfig, AsyncSessionAIResponseEnvelope, BrowserWaitNavigationConfig, ClickConfig, ClientProvidedResponseMetadata, CreateFileData, EnvelopeDefaultMeta, ExternalSessionAIResponseMetadata, ExternalSessionAIResponseMetadataUsage, ExternalSessionConfig, ExternalSessionWithConnectionInfo, ExtractActionResponseData, FindManyActionResponseData, FindOneActionResponseData, GetFileData, IntervalMonitorConfig, Issue, LlmActionResponseData, MicroInteractionConfig, MonitorConfig, NavigateActionResponseData, OperationOutcome, OperationOutcomeResponse, PageQueryConfig, PageQueryExperimentalConfig, PaginatedExtractionConfig, ScrapeResponseContent, ScrapeResponseEnvelope, ScrapeResponseOutput, ScreenshotConfig, ScreenshotMetadata, ScreenshotRequestConfig, ScreenshotScrollPosition, ScreenshotViewportDimensions, ScrollByConfig, ScrollToEdgeConfig, ServicePromptActionResponseData, SummaryExperimentalConfig, VisualAnalysisConfig, WaitForPageActionResponseData, WindowIDData, WindowIDDataResponse, WindowInfo, WindowResponse, WindowsResponse, WindowsWithMeta } from '@airtop/core/resources/shared.js';
|
9
|
-
import * as _airtop_core_resources_shared_mjs from '@airtop/core/resources/shared.mjs';
|
10
19
|
import { AutomationUpdateDescriptionParams } from '@airtop/core/resources/automations.js';
|
11
|
-
import { SessionListParams, ProfileOutput, FileListParams, FileCreateFileParams, WindowCreateParams, WindowIDData, EnvelopeDefaultMeta as EnvelopeDefaultMeta$1, Issue as Issue$1, WindowInfo, WindowGetParams, AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
12
|
-
export { AIPromptResponse, ScrapeResponse } from '@airtop/core/resources/index.js';
|
13
20
|
import * as _airtop_core_resources_sessions_mjs from '@airtop/core/resources/sessions.mjs';
|
14
21
|
import * as _airtop_core_resources_js from '@airtop/core/resources.js';
|
15
22
|
import { ConnectedServicesActionResponseEnvelope } from '@airtop/core/resources.js';
|
16
|
-
import { WindowClickParams, WindowHoverParams, WindowLoadURLParams, WindowMonitorParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowExtractParams, WindowActParams, WindowLlmParams, WindowFindOneParams, WindowFindManyParams, WindowWaitForPageParams, WindowNavigateParams, WindowFillFormParams } from '@airtop/core/resources/windows.js';
|
17
|
-
export { WindowActParams, WindowClickParams, WindowExtractParams, WindowFillFormParams, WindowFindManyParams, WindowFindOneParams, WindowGetParams, WindowHoverParams, WindowLlmParams, WindowLoadURLParams, WindowMonitorParams, WindowNavigateParams, WindowPageQueryParams, WindowPaginatedExtractionParams, WindowScrapeParams, WindowScreenshotParams, WindowScrollParams, WindowTypeParams, WindowWaitForPageParams } from '@airtop/core/resources/windows.js';
|
18
23
|
import { DeepOmit } from 'deep-utility-types';
|
19
24
|
export { DeepOmit } from 'deep-utility-types';
|
20
25
|
|
@@ -272,8 +277,6 @@ interface GetSessionsConfig extends Omit<SessionListParams, "sessionIds"> {
|
|
272
277
|
*/
|
273
278
|
interface GetFilesConfig extends Omit<FileListParams, "sessionIds"> {
|
274
279
|
}
|
275
|
-
interface AirtopFileResponse extends GetFileResponse {
|
276
|
-
}
|
277
280
|
interface AirtopAutomationUpdateDescriptionConfig extends AutomationUpdateDescriptionParams {
|
278
281
|
}
|
279
282
|
interface AirtopAutomationData extends AutomationData {
|
@@ -287,6 +290,222 @@ interface AirtopFileListParams extends FileListParams {
|
|
287
290
|
interface AirtopFilesResponse extends FilesResponse {
|
288
291
|
}
|
289
292
|
|
293
|
+
/**
|
294
|
+
* Common data found in a file API call response.
|
295
|
+
*/
|
296
|
+
interface CommonFileResponse {
|
297
|
+
data: {
|
298
|
+
/**
|
299
|
+
* The ID of the file.
|
300
|
+
*/
|
301
|
+
id: string;
|
302
|
+
};
|
303
|
+
meta?: EnvelopeDefaultMeta;
|
304
|
+
warnings?: Issue[];
|
305
|
+
errors?: Issue[];
|
306
|
+
}
|
307
|
+
/**
|
308
|
+
* The file data containing details such as the id, file name, type, and download URL.
|
309
|
+
*/
|
310
|
+
interface FileData extends GetFileData {
|
311
|
+
}
|
312
|
+
/**
|
313
|
+
* The file data from creating a new file.
|
314
|
+
*/
|
315
|
+
interface FileCreateData extends CreateFileData {
|
316
|
+
}
|
317
|
+
/**
|
318
|
+
* The file data from listing files (external file data).
|
319
|
+
*/
|
320
|
+
interface FileListData extends ExternalFile {
|
321
|
+
}
|
322
|
+
/**
|
323
|
+
* The metadata associated with the file.
|
324
|
+
*/
|
325
|
+
interface FileMetadata extends EnvelopeDefaultMeta {
|
326
|
+
}
|
327
|
+
/**
|
328
|
+
* A non-fatal file operation issue.
|
329
|
+
*/
|
330
|
+
interface FileWarning extends Issue {
|
331
|
+
}
|
332
|
+
/**
|
333
|
+
* A fatal file operation issue.
|
334
|
+
*/
|
335
|
+
interface FileError extends Issue {
|
336
|
+
}
|
337
|
+
/**
|
338
|
+
* Response object for getting file information.
|
339
|
+
*/
|
340
|
+
interface AirtopFileGetResponse {
|
341
|
+
/**
|
342
|
+
* The file data containing details such as the id, file name, type, and download URL.
|
343
|
+
* Includes all information about the file that was processed or retrieved.
|
344
|
+
*/
|
345
|
+
data: FileData;
|
346
|
+
/**
|
347
|
+
* The metadata associated with the file operation.
|
348
|
+
* Contains information about the request that processed the file.
|
349
|
+
*/
|
350
|
+
meta?: FileMetadata;
|
351
|
+
/**
|
352
|
+
* Warnings that occurred during file processing or operation.
|
353
|
+
* These are non-fatal issues that didn't prevent file processing.
|
354
|
+
*/
|
355
|
+
warnings?: FileWarning[];
|
356
|
+
/**
|
357
|
+
* Errors that occurred during file processing or operation.
|
358
|
+
* These are fatal issues that prevented file processing.
|
359
|
+
*/
|
360
|
+
errors?: FileError[];
|
361
|
+
}
|
362
|
+
/**
|
363
|
+
* Response object for creating a new file.
|
364
|
+
*/
|
365
|
+
interface AirtopFileCreateResponse {
|
366
|
+
/**
|
367
|
+
* The file data containing details such as the id, file name, type, and download URL.
|
368
|
+
* Includes all information about the file that was created.
|
369
|
+
*/
|
370
|
+
data: FileCreateData;
|
371
|
+
/**
|
372
|
+
* The metadata associated with the file operation.
|
373
|
+
* Contains information about the request that created the file.
|
374
|
+
*/
|
375
|
+
meta?: FileMetadata;
|
376
|
+
/**
|
377
|
+
* Warnings that occurred during file processing or operation.
|
378
|
+
* These are non-fatal issues that didn't prevent file processing.
|
379
|
+
*/
|
380
|
+
warnings?: FileWarning[];
|
381
|
+
/**
|
382
|
+
* Errors that occurred during file processing or operation.
|
383
|
+
* These are fatal issues that prevented file processing.
|
384
|
+
*/
|
385
|
+
errors?: FileError[];
|
386
|
+
}
|
387
|
+
/**
|
388
|
+
* Response object for listing file information.
|
389
|
+
*/
|
390
|
+
interface AirtopFileListResponse {
|
391
|
+
/**
|
392
|
+
* The file data containing details such as the id, file name, type, and download URL.
|
393
|
+
* Includes all information about the file from the list operation.
|
394
|
+
*/
|
395
|
+
data: FileListData;
|
396
|
+
/**
|
397
|
+
* The metadata associated with the file operation.
|
398
|
+
* Contains information about the request that listed the file.
|
399
|
+
*/
|
400
|
+
meta?: FileMetadata;
|
401
|
+
/**
|
402
|
+
* Warnings that occurred during file processing or operation.
|
403
|
+
* These are non-fatal issues that didn't prevent file processing.
|
404
|
+
*/
|
405
|
+
warnings?: FileWarning[];
|
406
|
+
/**
|
407
|
+
* Errors that occurred during file processing or operation.
|
408
|
+
* These are fatal issues that prevented file processing.
|
409
|
+
*/
|
410
|
+
errors?: FileError[];
|
411
|
+
}
|
412
|
+
/**
|
413
|
+
* Response object for listing files with AirtopFile instances.
|
414
|
+
* Note: The files array contains AirtopFile<AirtopFileListInfoResponse> instances.
|
415
|
+
*/
|
416
|
+
interface AirtopFileListWithInstancesResponse {
|
417
|
+
/**
|
418
|
+
* Pagination information for the file list.
|
419
|
+
*/
|
420
|
+
pagination: AirtopPagination;
|
421
|
+
/**
|
422
|
+
* Array of AirtopFile instances (typed as any to avoid circular reference).
|
423
|
+
* In practice, these are AirtopFile<AirtopFileListInfoResponse> instances.
|
424
|
+
*/
|
425
|
+
files: any[];
|
426
|
+
/**
|
427
|
+
* Errors that occurred during file listing.
|
428
|
+
*/
|
429
|
+
errors?: FileError[];
|
430
|
+
/**
|
431
|
+
* The metadata associated with the file listing operation.
|
432
|
+
*/
|
433
|
+
meta?: FileMetadata;
|
434
|
+
/**
|
435
|
+
* Warnings that occurred during file listing.
|
436
|
+
*/
|
437
|
+
warnings?: FileWarning[];
|
438
|
+
}
|
439
|
+
|
440
|
+
/**
|
441
|
+
* Represents a file in the Airtop system.
|
442
|
+
*/
|
443
|
+
declare class AirtopFile<Response extends CommonFileResponse> extends AirtopFileClient {
|
444
|
+
/**
|
445
|
+
* The file data containing details such as the id, file name, type, and download URL.
|
446
|
+
* Includes all information about the file that was processed or retrieved.
|
447
|
+
*/
|
448
|
+
data: Response["data"];
|
449
|
+
/**
|
450
|
+
* The metadata associated with the file operation.
|
451
|
+
* Contains information about the request that processed the file.
|
452
|
+
*/
|
453
|
+
meta: Response["meta"];
|
454
|
+
/**
|
455
|
+
* Warnings that occurred during file processing or operation.
|
456
|
+
* These are non-fatal issues that didn't prevent file processing.
|
457
|
+
*/
|
458
|
+
warnings: Response["warnings"];
|
459
|
+
/**
|
460
|
+
* Errors that occurred during file processing or operation.
|
461
|
+
* These are fatal issues that prevented file processing.
|
462
|
+
*/
|
463
|
+
errors: Response["errors"];
|
464
|
+
/**
|
465
|
+
* Creates a new AirtopFile instance.
|
466
|
+
* @param config - Common configuration options for the file
|
467
|
+
* @param fileData - File data
|
468
|
+
*/
|
469
|
+
constructor(config: CommonAirtopConfig, fileData: Response);
|
470
|
+
/**
|
471
|
+
* Returns response data as a JSON object.
|
472
|
+
*/
|
473
|
+
toJSON(): {
|
474
|
+
data: Response["data"];
|
475
|
+
meta: Response["meta"];
|
476
|
+
warnings: Response["warnings"];
|
477
|
+
errors: Response["errors"];
|
478
|
+
};
|
479
|
+
}
|
480
|
+
|
481
|
+
/**
|
482
|
+
* Client for making file-specific requests to the Airtop API.
|
483
|
+
*/
|
484
|
+
declare class AirtopFileClient extends AirtopBase {
|
485
|
+
/**
|
486
|
+
* The file id
|
487
|
+
* @internal
|
488
|
+
*/
|
489
|
+
protected fileId: string;
|
490
|
+
/**
|
491
|
+
* Creates a new AirtopFileClient instance.
|
492
|
+
* @param config - Common configuration options
|
493
|
+
* @param fileId - File id
|
494
|
+
*/
|
495
|
+
constructor(config: CommonAirtopConfig, fileId: string);
|
496
|
+
/**
|
497
|
+
* Gets a file by ID.
|
498
|
+
* @param requestOptions
|
499
|
+
* @returns AirtopFile instance
|
500
|
+
*/
|
501
|
+
getFile(requestOptions?: AirtopRequestOptions): Promise<AirtopFile<AirtopFileGetResponse>>;
|
502
|
+
/**
|
503
|
+
* Removes a file by ID.
|
504
|
+
* @param requestOptions - Request options
|
505
|
+
*/
|
506
|
+
removeFile(requestOptions?: AirtopRequestOptions): Promise<void>;
|
507
|
+
}
|
508
|
+
|
290
509
|
/**
|
291
510
|
* The session data containing connection and state information.
|
292
511
|
* Includes details about the browser session and its configuration.
|
@@ -341,13 +560,62 @@ interface AirtopSessionResponse {
|
|
341
560
|
* Configuration parameters for retrieving a window.
|
342
561
|
* Excludes session ID which is provided by the parent session.
|
343
562
|
*/
|
563
|
+
/**
|
564
|
+
* File status event data structure.
|
565
|
+
* Represents the status of a file in the session.
|
566
|
+
*/
|
567
|
+
interface FileStatusEvent {
|
568
|
+
/**
|
569
|
+
* The type of event.
|
570
|
+
*/
|
571
|
+
event: "file_status";
|
572
|
+
/**
|
573
|
+
* The status of the file.
|
574
|
+
*/
|
575
|
+
status: "available" | "processing" | "error";
|
576
|
+
/**
|
577
|
+
* The ID of the file.
|
578
|
+
*/
|
579
|
+
fileId: string;
|
580
|
+
/**
|
581
|
+
* The download URL for the file (when status is 'available').
|
582
|
+
*/
|
583
|
+
downloadUrl?: string;
|
584
|
+
/**
|
585
|
+
* The timestamp when the event occurred.
|
586
|
+
*/
|
587
|
+
eventTime: string;
|
588
|
+
}
|
589
|
+
/**
|
590
|
+
* Configuration for the waitForDownload method.
|
591
|
+
*/
|
592
|
+
interface WaitForDownloadConfig {
|
593
|
+
/**
|
594
|
+
* The number of seconds to look back for prior events.
|
595
|
+
* Default is 5. 0 means no lookback.
|
596
|
+
*/
|
597
|
+
lookbackSeconds?: number;
|
598
|
+
}
|
599
|
+
/**
|
600
|
+
* Result of waiting for a file download.
|
601
|
+
*/
|
602
|
+
interface WaitForDownloadResult {
|
603
|
+
/**
|
604
|
+
* The ID of the file.
|
605
|
+
*/
|
606
|
+
id: string;
|
607
|
+
/**
|
608
|
+
* The download URL for the file.
|
609
|
+
*/
|
610
|
+
downloadUrl: string;
|
611
|
+
}
|
344
612
|
interface CreateFileConfig extends Omit<FileCreateFileParams, "sessionId" | "fileName"> {
|
345
613
|
}
|
346
614
|
/**
|
347
615
|
* Extended service prompt parameters that allow outputSchema to be either a string or an object.
|
348
616
|
* The SDK will automatically convert object schemas to JSON strings.
|
349
617
|
*/
|
350
|
-
interface ExtendedServicePromptParameters extends Omit<ServicePromptParameters,
|
618
|
+
interface ExtendedServicePromptParameters extends Omit<ServicePromptParameters, "outputSchema"> {
|
351
619
|
/**
|
352
620
|
* JSON schema for structured output. Can be provided as a JSON string or as an object.
|
353
621
|
* If provided as an object, it will be automatically stringified.
|
@@ -901,7 +1169,7 @@ declare class AirtopSessionClient extends AirtopBase {
|
|
901
1169
|
*/
|
902
1170
|
protected sessionId: string;
|
903
1171
|
/**
|
904
|
-
* Creates a new
|
1172
|
+
* Creates a new AirtopSessionClient instance.
|
905
1173
|
* @param config - Common configuration options for the session
|
906
1174
|
* @param sessionId - Browser session id
|
907
1175
|
*/
|
@@ -951,8 +1219,9 @@ declare class AirtopSessionClient extends AirtopBase {
|
|
951
1219
|
* @param fileName - The name of the file to create
|
952
1220
|
* @param config - Additional configuration options for creating the file
|
953
1221
|
* @param requestOptions - Request options
|
1222
|
+
* @returns AirtopFile instance
|
954
1223
|
*/
|
955
|
-
createFile(fileName: string, config?: CreateFileConfig, requestOptions?: AirtopRequestOptions):
|
1224
|
+
createFile(fileName: string, config?: CreateFileConfig, requestOptions?: AirtopRequestOptions): Promise<AirtopFile<AirtopFileCreateResponse>>;
|
956
1225
|
llm(prompt: string, config?: WindowLlmConfig, requestOptions?: AirtopRequestOptions): Promise<WindowLlmResponse>;
|
957
1226
|
/**
|
958
1227
|
* Calls the service endpoint with a string prompt.
|
@@ -974,6 +1243,17 @@ declare class AirtopSessionClient extends AirtopBase {
|
|
974
1243
|
* @returns A promise that resolves to the connected services response containing service details
|
975
1244
|
*/
|
976
1245
|
getConnectedServices(requestOptions?: AirtopRequestOptions): Promise<ConnectedServicesActionResponseEnvelope>;
|
1246
|
+
/**
|
1247
|
+
* Waits for a file to be downloaded in a session and reach 'available' status.
|
1248
|
+
* Defaults to looking back 5 seconds in the event stream for the file to be available.
|
1249
|
+
* Use `lookbackSeconds` to control this behavior.
|
1250
|
+
*
|
1251
|
+
* @param configuration - The optional configuration parameters for the function
|
1252
|
+
* @param configuration.lookbackSeconds - The number of seconds to look back for prior events. Default `5`. 0 means no lookback.
|
1253
|
+
* @param requestOptions - Optional request configuration including timeout
|
1254
|
+
* @returns Object containing file's id and downloadUrl, or null if timed out
|
1255
|
+
*/
|
1256
|
+
waitForDownload(configuration?: WaitForDownloadConfig, requestOptions?: AirtopRequestOptions): Promise<WaitForDownloadResult | null>;
|
977
1257
|
}
|
978
1258
|
|
979
1259
|
/**
|
@@ -1073,6 +1353,11 @@ declare class AirtopClient extends AirtopBase {
|
|
1073
1353
|
* @param sessionId - The session ID to attach to the AirtopSessionClient instance
|
1074
1354
|
**/
|
1075
1355
|
withSessionId(sessionId: string): AirtopSessionClient;
|
1356
|
+
/**
|
1357
|
+
* Returns a file client instance for making file-based requests for a given file id.
|
1358
|
+
* @param fileId - The file ID to attach to the AirtopFileClient instance
|
1359
|
+
*/
|
1360
|
+
withFileId(fileId: string): AirtopFileClient;
|
1076
1361
|
/**
|
1077
1362
|
* Retrieves the status of a request.
|
1078
1363
|
* @param requestId - ID of the request to check
|
@@ -1080,24 +1365,13 @@ declare class AirtopClient extends AirtopBase {
|
|
1080
1365
|
* @returns Status of the request
|
1081
1366
|
*/
|
1082
1367
|
getRequestStatus(requestId: string, requestOptions?: AirtopRequestOptions): Promise<_airtop_core_resources_shared_mjs.RequestStatusResponse>;
|
1083
|
-
/**
|
1084
|
-
* Gets a file by ID.
|
1085
|
-
* @param fileId
|
1086
|
-
* @param requestOptions
|
1087
|
-
*/
|
1088
|
-
getFile(fileId: string, requestOptions?: AirtopRequestOptions): Promise<AirtopFileResponse>;
|
1089
|
-
/**
|
1090
|
-
* Removes a file by ID.
|
1091
|
-
* @param fileId - ID of the file to remove
|
1092
|
-
* @param requestOptions - Request options
|
1093
|
-
*/
|
1094
|
-
removeFile(fileId: string, requestOptions?: AirtopRequestOptions): Promise<void>;
|
1095
1368
|
/**
|
1096
1369
|
* List files
|
1097
|
-
* @param query
|
1098
|
-
* @param requestOptions
|
1370
|
+
* @param query - File list parameters
|
1371
|
+
* @param requestOptions - Request options
|
1372
|
+
* @returns Object containing pagination info and array of AirtopFile instances
|
1099
1373
|
*/
|
1100
|
-
listFiles(query: AirtopFileListParams, requestOptions?: AirtopRequestOptions): Promise<
|
1374
|
+
listFiles(query: AirtopFileListParams, requestOptions?: AirtopRequestOptions): Promise<AirtopFileListWithInstancesResponse>;
|
1101
1375
|
/**
|
1102
1376
|
* List all automations
|
1103
1377
|
* @param requestOptions - Request options
|
@@ -1461,4 +1735,4 @@ interface AirtopPluginRegistration {
|
|
1461
1735
|
*/
|
1462
1736
|
declare function registerAirtopPlugin(plugin: AirtopPluginRegistration): void;
|
1463
1737
|
|
1464
|
-
export { type AirtopAgentCancelInvocationParams, AirtopAgentClient, type AirtopAgentCreateAgentParams, type AirtopAgentCreateInvocationParams, type AirtopAgentDeleteAgentsParams, type AirtopAgentGetAgentParams, type AirtopAgentGetAgentsParams, type AirtopAgentGetInvocationsParams, type AirtopAgentGetVersionDataParams, type AirtopAgentPublishAgentParams, type AirtopAgentResponse, type AirtopAgentUpdateAgentParams, type AirtopAgentUpdateVersionDataParams, type AirtopAutomationData, type AirtopAutomationListResponse, type AirtopAutomationUpdateDescriptionConfig, AirtopBase, AirtopClient, type AirtopClientPlugin, type AirtopConstructorConfig, type AirtopCreateAgentInvocationResponse, type AirtopCreateAgentResponse, type AirtopCreateNewAgentDraftResponse, type AirtopDeleteAgentsResponse, AirtopError, type AirtopFileListParams, type
|
1738
|
+
export { type AirtopAgentCancelInvocationParams, AirtopAgentClient, type AirtopAgentCreateAgentParams, type AirtopAgentCreateInvocationParams, type AirtopAgentDeleteAgentsParams, type AirtopAgentGetAgentParams, type AirtopAgentGetAgentsParams, type AirtopAgentGetInvocationsParams, type AirtopAgentGetVersionDataParams, type AirtopAgentPublishAgentParams, type AirtopAgentResponse, type AirtopAgentUpdateAgentParams, type AirtopAgentUpdateVersionDataParams, type AirtopAutomationData, type AirtopAutomationListResponse, type AirtopAutomationUpdateDescriptionConfig, AirtopBase, AirtopClient, type AirtopClientPlugin, type AirtopConstructorConfig, type AirtopCreateAgentInvocationResponse, type AirtopCreateAgentResponse, type AirtopCreateNewAgentDraftResponse, type AirtopDeleteAgentsResponse, AirtopError, AirtopFile, AirtopFileClient, type AirtopFileCreateResponse, type AirtopFileGetResponse, type AirtopFileListParams, type AirtopFileListResponse, type AirtopFileListWithInstancesResponse, type AirtopFilesResponse, type AirtopGetAgentInvocationsResponse, type AirtopGetAgentResponse, type AirtopGetAgentVersionDataResponse, type AirtopGetAgentsResponse, AirtopMocks, AirtopNode, type AirtopNodeApiResponseData, AirtopPluginAugmentationType, type AirtopPluginRegistration, type AirtopPluginType, type AirtopProfile, type AirtopPublishNewAgentResponse, type AirtopRequestOptions, AirtopSession, AirtopSessionClient, type AirtopSessionClientPlugin, type AirtopSessionPlugin, type AirtopSessionResponse, type AirtopUpdateAgentResponse, type AirtopUpdateVersionDataResponse, AirtopWindow, AirtopWindowClient, type AirtopWindowClientPlugin, type AirtopWindowCreateResponse, type AirtopWindowGetInfoResponse, type AirtopWindowPlugin, AirtopWindowScreenshot, type AirtopWindowScreenshotPlugin, type AirtopWindowScreenshotResponse, type CommonAirtopConfig, type CommonFileResponse, type CommonResponse, type CommonWindowResponse, type CreateFileConfig, type CreateSessionConfig, type ExtendedServicePromptParameters, type FileCreateData, type FileData, type FileError, type FileListData, type FileMetadata, type FileStatusEvent, type FileWarning, type GetFilesConfig, type GetSessionsConfig, type OutputJsonSchemaConfig, type ScreenshotData, type SessionData, type SessionError, type SessionMetadata, type SessionServiceResponse, type SessionWarning, type WaitForDownloadConfig, type WaitForDownloadResult, type WindowActConfig, type WindowActResponse, type WindowClickConfig, type WindowCreateData, type WindowCreateOptions, type WindowError, type WindowExtractConfig, type WindowExtractResponse, type WindowFillFormConfig, type WindowFindManyConfig, type WindowFindManyResponse, type WindowFindOneConfig, type WindowFindOneResponse, type WindowGetConfig, type WindowHoverConfig, type WindowInfoData, type WindowLlmConfig, type WindowLlmResponse, type WindowLoadUrlConfig, type WindowMetadata, type WindowMonitorConfig, type WindowNavigateConfig, WindowNavigateDirection, type WindowNavigateResponse, type WindowPageQueryConfig, type WindowPaginatedExtractionConfig, type WindowPromptResponse, type WindowScrapeConfig, type WindowScrapeResponse, type WindowScreenshotConfig, type WindowScrollConfig, type WindowTypeConfig, type WindowWaitForPageConfig, type WindowWaitForPageResponse, type WindowWarning, registerAirtopPlugin };
|