airbrowser-client 1.1.8

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.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +74 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +165 -0
  5. package/api.ts +4299 -0
  6. package/base.ts +62 -0
  7. package/common.ts +113 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +2543 -0
  10. package/dist/api.js +3260 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +46 -0
  13. package/dist/common.d.ts +28 -0
  14. package/dist/common.js +124 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +2543 -0
  18. package/dist/esm/api.js +3241 -0
  19. package/dist/esm/base.d.ts +42 -0
  20. package/dist/esm/base.js +41 -0
  21. package/dist/esm/common.d.ts +28 -0
  22. package/dist/esm/common.js +112 -0
  23. package/dist/esm/configuration.d.ts +98 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/ActionResult.md +26 -0
  30. package/docs/AttributeResponse.md +26 -0
  31. package/docs/BaseResponse.md +24 -0
  32. package/docs/BrowserApi.md +1922 -0
  33. package/docs/BrowserConfig.md +36 -0
  34. package/docs/BrowserCreated.md +26 -0
  35. package/docs/BrowserCreationData.md +22 -0
  36. package/docs/BrowserInfoResponse.md +26 -0
  37. package/docs/BrowserList.md +26 -0
  38. package/docs/BrowserListData.md +22 -0
  39. package/docs/CheckElementRequest.md +24 -0
  40. package/docs/ClickRequest.md +26 -0
  41. package/docs/CombinedDialogRequest.md +22 -0
  42. package/docs/CombinedEmulateRequest.md +32 -0
  43. package/docs/CombinedGuiClickRequest.md +30 -0
  44. package/docs/CombinedScrollRequest.md +32 -0
  45. package/docs/ConsoleLogsRequest.md +22 -0
  46. package/docs/ContentData.md +24 -0
  47. package/docs/ContentResponse.md +26 -0
  48. package/docs/CreateProfileRequest.md +20 -0
  49. package/docs/DetectCoordinatesRequest.md +20 -0
  50. package/docs/DetectCoordinatesResult.md +44 -0
  51. package/docs/ElementDataRequest.md +26 -0
  52. package/docs/ErrorResponse.md +24 -0
  53. package/docs/ExecuteData.md +20 -0
  54. package/docs/ExecuteRequest.md +22 -0
  55. package/docs/ExecuteResponse.md +26 -0
  56. package/docs/FillFormRequest.md +22 -0
  57. package/docs/FormField.md +22 -0
  58. package/docs/HealthApi.md +95 -0
  59. package/docs/HealthStatus.md +24 -0
  60. package/docs/HistoryRequest.md +20 -0
  61. package/docs/LogsResponse.md +26 -0
  62. package/docs/MouseRequest.md +28 -0
  63. package/docs/NavigateRequest.md +22 -0
  64. package/docs/NetworkLogsRequest.md +22 -0
  65. package/docs/PerformanceRequest.md +22 -0
  66. package/docs/PoolApi.md +104 -0
  67. package/docs/PoolScaled.md +26 -0
  68. package/docs/PoolStatusResponse.md +26 -0
  69. package/docs/PressKeysRequest.md +24 -0
  70. package/docs/ProfileInfo.md +28 -0
  71. package/docs/ProfileListData.md +20 -0
  72. package/docs/ProfileListResponse.md +26 -0
  73. package/docs/ProfileResponse.md +26 -0
  74. package/docs/ProfilesApi.md +209 -0
  75. package/docs/ResizeRequest.md +22 -0
  76. package/docs/ScaleData.md +20 -0
  77. package/docs/ScalePool.md +20 -0
  78. package/docs/ScreenshotData.md +22 -0
  79. package/docs/ScreenshotResponse.md +26 -0
  80. package/docs/SelectRequest.md +30 -0
  81. package/docs/SnapshotRequest.md +20 -0
  82. package/docs/SuccessResponse.md +26 -0
  83. package/docs/TabsRequest.md +26 -0
  84. package/docs/TypeRequest.md +26 -0
  85. package/docs/UploadFileRequest.md +24 -0
  86. package/docs/UrlData.md +20 -0
  87. package/docs/UrlResponse.md +26 -0
  88. package/docs/WaitElementRequest.md +26 -0
  89. package/docs/WhatIsVisibleResult.md +34 -0
  90. package/git_push.sh +57 -0
  91. package/index.ts +18 -0
  92. package/package.json +33 -0
  93. package/tsconfig.esm.json +7 -0
  94. package/tsconfig.json +18 -0
@@ -0,0 +1,95 @@
1
+ # HealthApi
2
+
3
+ All URIs are relative to */api/v1*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**healthCheck**](#healthcheck) | **GET** /health/ | Check the health status of the browser pool|
8
+ |[**prometheusMetrics**](#prometheusmetrics) | **GET** /health/metrics | Get Prometheus-style metrics for monitoring|
9
+
10
+ # **healthCheck**
11
+ > HealthStatus healthCheck()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ HealthApi,
19
+ Configuration
20
+ } from 'airbrowser-client';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new HealthApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.healthCheck();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **HealthStatus**
35
+
36
+ ### Authorization
37
+
38
+ No authorization required
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Success | - |
50
+
51
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
52
+
53
+ # **prometheusMetrics**
54
+ > prometheusMetrics()
55
+
56
+
57
+ ### Example
58
+
59
+ ```typescript
60
+ import {
61
+ HealthApi,
62
+ Configuration
63
+ } from 'airbrowser-client';
64
+
65
+ const configuration = new Configuration();
66
+ const apiInstance = new HealthApi(configuration);
67
+
68
+ const { status, data } = await apiInstance.prometheusMetrics();
69
+ ```
70
+
71
+ ### Parameters
72
+ This endpoint does not have any parameters.
73
+
74
+
75
+ ### Return type
76
+
77
+ void (empty response body)
78
+
79
+ ### Authorization
80
+
81
+ No authorization required
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: Not defined
86
+ - **Accept**: Not defined
87
+
88
+
89
+ ### HTTP response details
90
+ | Status code | Description | Response headers |
91
+ |-------------|-------------|------------------|
92
+ |**200** | Success | - |
93
+
94
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
95
+
@@ -0,0 +1,24 @@
1
+ # HealthStatus
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | Health status | [optional] [default to undefined]
9
+ **pool** | **object** | Pool status information | [optional] [default to undefined]
10
+ **timestamp** | **number** | Unix timestamp | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { HealthStatus } from 'airbrowser-client';
16
+
17
+ const instance: HealthStatus = {
18
+ status,
19
+ pool,
20
+ timestamp,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # HistoryRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | History action: back, forward, or refresh | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HistoryRequest } from 'airbrowser-client';
14
+
15
+ const instance: HistoryRequest = {
16
+ action,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # LogsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | Operation success | [default to undefined]
9
+ **message** | **string** | Status message | [default to undefined]
10
+ **timestamp** | **number** | Unix timestamp | [default to undefined]
11
+ **data** | **object** | Log entries | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { LogsResponse } from 'airbrowser-client';
17
+
18
+ const instance: LogsResponse = {
19
+ success,
20
+ message,
21
+ timestamp,
22
+ data,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # MouseRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | Action: hover or drag | [default to undefined]
9
+ **selector** | **string** | Element selector (for hover) | [optional] [default to undefined]
10
+ **source** | **string** | Source selector (for drag) | [optional] [default to undefined]
11
+ **target** | **string** | Target selector (for drag) | [optional] [default to undefined]
12
+ **by** | **string** | Selector type: css, id, name, xpath | [optional] [default to 'css']
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { MouseRequest } from 'airbrowser-client';
18
+
19
+ const instance: MouseRequest = {
20
+ action,
21
+ selector,
22
+ source,
23
+ target,
24
+ by,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # NavigateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **url** | **string** | URL to navigate to | [default to undefined]
9
+ **timeout** | **number** | Navigation timeout in seconds | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { NavigateRequest } from 'airbrowser-client';
15
+
16
+ const instance: NavigateRequest = {
17
+ url,
18
+ timeout,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # NetworkLogsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | Action: get or clear | [default to undefined]
9
+ **limit** | **number** | Max number of logs to return (for get) | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { NetworkLogsRequest } from 'airbrowser-client';
15
+
16
+ const instance: NetworkLogsRequest = {
17
+ action,
18
+ limit,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # PerformanceRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | Performance action: start_trace, stop_trace, metrics, or analyze | [default to undefined]
9
+ **categories** | **string** | Comma-separated trace categories (for start_trace) | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PerformanceRequest } from 'airbrowser-client';
15
+
16
+ const instance: PerformanceRequest = {
17
+ action,
18
+ categories,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,104 @@
1
+ # PoolApi
2
+
3
+ All URIs are relative to */api/v1*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**scalePool**](#scalepool) | **POST** /pool/scale | Scale the browser pool to a new maximum size|
8
+ |[**shutdownServer**](#shutdownserver) | **POST** /pool/shutdown | Gracefully shutdown the browser pool server|
9
+
10
+ # **scalePool**
11
+ > PoolScaled scalePool(payload)
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ PoolApi,
19
+ Configuration,
20
+ ScalePool
21
+ } from 'airbrowser-client';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new PoolApi(configuration);
25
+
26
+ let payload: ScalePool; //
27
+
28
+ const { status, data } = await apiInstance.scalePool(
29
+ payload
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **payload** | **ScalePool**| | |
38
+
39
+
40
+ ### Return type
41
+
42
+ **PoolScaled**
43
+
44
+ ### Authorization
45
+
46
+ No authorization required
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**400** | Bad request | - |
58
+ |**200** | Success | - |
59
+
60
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
61
+
62
+ # **shutdownServer**
63
+ > BaseResponse shutdownServer()
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ PoolApi,
71
+ Configuration
72
+ } from 'airbrowser-client';
73
+
74
+ const configuration = new Configuration();
75
+ const apiInstance = new PoolApi(configuration);
76
+
77
+ const { status, data } = await apiInstance.shutdownServer();
78
+ ```
79
+
80
+ ### Parameters
81
+ This endpoint does not have any parameters.
82
+
83
+
84
+ ### Return type
85
+
86
+ **BaseResponse**
87
+
88
+ ### Authorization
89
+
90
+ No authorization required
91
+
92
+ ### HTTP request headers
93
+
94
+ - **Content-Type**: Not defined
95
+ - **Accept**: application/json
96
+
97
+
98
+ ### HTTP response details
99
+ | Status code | Description | Response headers |
100
+ |-------------|-------------|------------------|
101
+ |**200** | Success | - |
102
+
103
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
104
+
@@ -0,0 +1,26 @@
1
+ # PoolScaled
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | Operation success | [default to undefined]
9
+ **message** | **string** | Status message | [default to undefined]
10
+ **timestamp** | **number** | Unix timestamp | [default to undefined]
11
+ **data** | [**ScaleData**](ScaleData.md) | Scale result | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PoolScaled } from 'airbrowser-client';
17
+
18
+ const instance: PoolScaled = {
19
+ success,
20
+ message,
21
+ timestamp,
22
+ data,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # PoolStatusResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | Operation success | [default to undefined]
9
+ **message** | **string** | Status message | [default to undefined]
10
+ **timestamp** | **number** | Unix timestamp | [default to undefined]
11
+ **data** | **object** | Pool status information | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PoolStatusResponse } from 'airbrowser-client';
17
+
18
+ const instance: PoolStatusResponse = {
19
+ success,
20
+ message,
21
+ timestamp,
22
+ data,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # PressKeysRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **selector** | **string** | Element selector | [default to undefined]
9
+ **by** | **string** | Selector type: css, id, name, xpath | [optional] [default to 'css']
10
+ **keys** | **string** | Keys to press | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PressKeysRequest } from 'airbrowser-client';
16
+
17
+ const instance: PressKeysRequest = {
18
+ selector,
19
+ by,
20
+ keys,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # ProfileInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Profile name | [optional] [default to undefined]
9
+ **path** | **string** | Profile storage path | [optional] [default to undefined]
10
+ **size_mb** | **number** | Profile size in MB | [optional] [default to undefined]
11
+ **last_used** | **string** | Last used timestamp (ISO format) | [optional] [default to undefined]
12
+ **in_use** | **boolean** | Whether profile is currently in use by a browser | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ProfileInfo } from 'airbrowser-client';
18
+
19
+ const instance: ProfileInfo = {
20
+ name,
21
+ path,
22
+ size_mb,
23
+ last_used,
24
+ in_use,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # ProfileListData
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **profiles** | [**Array<ProfileInfo>**](ProfileInfo.md) | List of profiles | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ProfileListData } from 'airbrowser-client';
14
+
15
+ const instance: ProfileListData = {
16
+ profiles,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # ProfileListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | Operation success | [optional] [default to undefined]
9
+ **message** | **string** | Status message | [optional] [default to undefined]
10
+ **timestamp** | **number** | Unix timestamp | [optional] [default to undefined]
11
+ **data** | [**ProfileListData**](ProfileListData.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ProfileListResponse } from 'airbrowser-client';
17
+
18
+ const instance: ProfileListResponse = {
19
+ success,
20
+ message,
21
+ timestamp,
22
+ data,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # ProfileResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | Operation success | [optional] [default to undefined]
9
+ **message** | **string** | Status message | [optional] [default to undefined]
10
+ **timestamp** | **number** | Unix timestamp | [optional] [default to undefined]
11
+ **data** | [**ProfileInfo**](ProfileInfo.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ProfileResponse } from 'airbrowser-client';
17
+
18
+ const instance: ProfileResponse = {
19
+ success,
20
+ message,
21
+ timestamp,
22
+ data,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)