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.
- package/.openapi-generator/FILES +74 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +165 -0
- package/api.ts +4299 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +2543 -0
- package/dist/api.js +3260 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +2543 -0
- package/dist/esm/api.js +3241 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/ActionResult.md +26 -0
- package/docs/AttributeResponse.md +26 -0
- package/docs/BaseResponse.md +24 -0
- package/docs/BrowserApi.md +1922 -0
- package/docs/BrowserConfig.md +36 -0
- package/docs/BrowserCreated.md +26 -0
- package/docs/BrowserCreationData.md +22 -0
- package/docs/BrowserInfoResponse.md +26 -0
- package/docs/BrowserList.md +26 -0
- package/docs/BrowserListData.md +22 -0
- package/docs/CheckElementRequest.md +24 -0
- package/docs/ClickRequest.md +26 -0
- package/docs/CombinedDialogRequest.md +22 -0
- package/docs/CombinedEmulateRequest.md +32 -0
- package/docs/CombinedGuiClickRequest.md +30 -0
- package/docs/CombinedScrollRequest.md +32 -0
- package/docs/ConsoleLogsRequest.md +22 -0
- package/docs/ContentData.md +24 -0
- package/docs/ContentResponse.md +26 -0
- package/docs/CreateProfileRequest.md +20 -0
- package/docs/DetectCoordinatesRequest.md +20 -0
- package/docs/DetectCoordinatesResult.md +44 -0
- package/docs/ElementDataRequest.md +26 -0
- package/docs/ErrorResponse.md +24 -0
- package/docs/ExecuteData.md +20 -0
- package/docs/ExecuteRequest.md +22 -0
- package/docs/ExecuteResponse.md +26 -0
- package/docs/FillFormRequest.md +22 -0
- package/docs/FormField.md +22 -0
- package/docs/HealthApi.md +95 -0
- package/docs/HealthStatus.md +24 -0
- package/docs/HistoryRequest.md +20 -0
- package/docs/LogsResponse.md +26 -0
- package/docs/MouseRequest.md +28 -0
- package/docs/NavigateRequest.md +22 -0
- package/docs/NetworkLogsRequest.md +22 -0
- package/docs/PerformanceRequest.md +22 -0
- package/docs/PoolApi.md +104 -0
- package/docs/PoolScaled.md +26 -0
- package/docs/PoolStatusResponse.md +26 -0
- package/docs/PressKeysRequest.md +24 -0
- package/docs/ProfileInfo.md +28 -0
- package/docs/ProfileListData.md +20 -0
- package/docs/ProfileListResponse.md +26 -0
- package/docs/ProfileResponse.md +26 -0
- package/docs/ProfilesApi.md +209 -0
- package/docs/ResizeRequest.md +22 -0
- package/docs/ScaleData.md +20 -0
- package/docs/ScalePool.md +20 -0
- package/docs/ScreenshotData.md +22 -0
- package/docs/ScreenshotResponse.md +26 -0
- package/docs/SelectRequest.md +30 -0
- package/docs/SnapshotRequest.md +20 -0
- package/docs/SuccessResponse.md +26 -0
- package/docs/TabsRequest.md +26 -0
- package/docs/TypeRequest.md +26 -0
- package/docs/UploadFileRequest.md +24 -0
- package/docs/UrlData.md +20 -0
- package/docs/UrlResponse.md +26 -0
- package/docs/WaitElementRequest.md +26 -0
- package/docs/WhatIsVisibleResult.md +34 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# ProfilesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to */api/v1*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createProfile**](#createprofile) | **POST** /profiles/ | Create a new browser profile|
|
|
8
|
+
|[**deleteProfile**](#deleteprofile) | **DELETE** /profiles/{profile_name} | Delete a browser profile|
|
|
9
|
+
|[**getProfile**](#getprofile) | **GET** /profiles/{profile_name} | Get profile information|
|
|
10
|
+
|[**listProfiles**](#listprofiles) | **GET** /profiles/ | List all browser profiles|
|
|
11
|
+
|
|
12
|
+
# **createProfile**
|
|
13
|
+
> ProfileResponse createProfile(payload)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ProfilesApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
CreateProfileRequest
|
|
23
|
+
} from 'airbrowser-client';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ProfilesApi(configuration);
|
|
27
|
+
|
|
28
|
+
let payload: CreateProfileRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createProfile(
|
|
31
|
+
payload
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **payload** | **CreateProfileRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**ProfileResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**400** | Bad request | - |
|
|
60
|
+
|**200** | Success | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **deleteProfile**
|
|
65
|
+
> deleteProfile()
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import {
|
|
72
|
+
ProfilesApi,
|
|
73
|
+
Configuration
|
|
74
|
+
} from 'airbrowser-client';
|
|
75
|
+
|
|
76
|
+
const configuration = new Configuration();
|
|
77
|
+
const apiInstance = new ProfilesApi(configuration);
|
|
78
|
+
|
|
79
|
+
let profileName: string; //Profile name (default to undefined)
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.deleteProfile(
|
|
82
|
+
profileName
|
|
83
|
+
);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Parameters
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **profileName** | [**string**] | Profile name | defaults to undefined|
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Return type
|
|
94
|
+
|
|
95
|
+
void (empty response body)
|
|
96
|
+
|
|
97
|
+
### Authorization
|
|
98
|
+
|
|
99
|
+
No authorization required
|
|
100
|
+
|
|
101
|
+
### HTTP request headers
|
|
102
|
+
|
|
103
|
+
- **Content-Type**: Not defined
|
|
104
|
+
- **Accept**: Not defined
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### HTTP response details
|
|
108
|
+
| Status code | Description | Response headers |
|
|
109
|
+
|-------------|-------------|------------------|
|
|
110
|
+
|**404** | Profile not found | - |
|
|
111
|
+
|**400** | Profile in use | - |
|
|
112
|
+
|**200** | Success | - |
|
|
113
|
+
|
|
114
|
+
[[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)
|
|
115
|
+
|
|
116
|
+
# **getProfile**
|
|
117
|
+
> ProfileResponse getProfile()
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Example
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {
|
|
124
|
+
ProfilesApi,
|
|
125
|
+
Configuration
|
|
126
|
+
} from 'airbrowser-client';
|
|
127
|
+
|
|
128
|
+
const configuration = new Configuration();
|
|
129
|
+
const apiInstance = new ProfilesApi(configuration);
|
|
130
|
+
|
|
131
|
+
let profileName: string; //Profile name (default to undefined)
|
|
132
|
+
|
|
133
|
+
const { status, data } = await apiInstance.getProfile(
|
|
134
|
+
profileName
|
|
135
|
+
);
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
|Name | Type | Description | Notes|
|
|
141
|
+
|------------- | ------------- | ------------- | -------------|
|
|
142
|
+
| **profileName** | [**string**] | Profile name | defaults to undefined|
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Return type
|
|
146
|
+
|
|
147
|
+
**ProfileResponse**
|
|
148
|
+
|
|
149
|
+
### Authorization
|
|
150
|
+
|
|
151
|
+
No authorization required
|
|
152
|
+
|
|
153
|
+
### HTTP request headers
|
|
154
|
+
|
|
155
|
+
- **Content-Type**: Not defined
|
|
156
|
+
- **Accept**: application/json
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### HTTP response details
|
|
160
|
+
| Status code | Description | Response headers |
|
|
161
|
+
|-------------|-------------|------------------|
|
|
162
|
+
|**404** | Profile not found | - |
|
|
163
|
+
|**200** | Success | - |
|
|
164
|
+
|
|
165
|
+
[[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)
|
|
166
|
+
|
|
167
|
+
# **listProfiles**
|
|
168
|
+
> ProfileListResponse listProfiles()
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Example
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
import {
|
|
175
|
+
ProfilesApi,
|
|
176
|
+
Configuration
|
|
177
|
+
} from 'airbrowser-client';
|
|
178
|
+
|
|
179
|
+
const configuration = new Configuration();
|
|
180
|
+
const apiInstance = new ProfilesApi(configuration);
|
|
181
|
+
|
|
182
|
+
const { status, data } = await apiInstance.listProfiles();
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Parameters
|
|
186
|
+
This endpoint does not have any parameters.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
**ProfileListResponse**
|
|
192
|
+
|
|
193
|
+
### Authorization
|
|
194
|
+
|
|
195
|
+
No authorization required
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: Not defined
|
|
200
|
+
- **Accept**: application/json
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### HTTP response details
|
|
204
|
+
| Status code | Description | Response headers |
|
|
205
|
+
|-------------|-------------|------------------|
|
|
206
|
+
|**200** | Success | - |
|
|
207
|
+
|
|
208
|
+
[[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)
|
|
209
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ResizeRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**width** | **number** | Viewport width | [default to undefined]
|
|
9
|
+
**height** | **number** | Viewport height | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ResizeRequest } from 'airbrowser-client';
|
|
15
|
+
|
|
16
|
+
const instance: ResizeRequest = {
|
|
17
|
+
width,
|
|
18
|
+
height,
|
|
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,20 @@
|
|
|
1
|
+
# ScaleData
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**new_max_browsers** | **number** | New maximum browser count | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ScaleData } from 'airbrowser-client';
|
|
14
|
+
|
|
15
|
+
const instance: ScaleData = {
|
|
16
|
+
new_max_browsers,
|
|
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,20 @@
|
|
|
1
|
+
# ScalePool
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**target_size** | **number** | New maximum number of browsers | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ScalePool } from 'airbrowser-client';
|
|
14
|
+
|
|
15
|
+
const instance: ScalePool = {
|
|
16
|
+
target_size,
|
|
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,22 @@
|
|
|
1
|
+
# ScreenshotData
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**screenshot_url** | **string** | URL to screenshot | [optional] [default to undefined]
|
|
9
|
+
**screenshot_path** | **string** | Path to screenshot file | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ScreenshotData } from 'airbrowser-client';
|
|
15
|
+
|
|
16
|
+
const instance: ScreenshotData = {
|
|
17
|
+
screenshot_url,
|
|
18
|
+
screenshot_path,
|
|
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,26 @@
|
|
|
1
|
+
# ScreenshotResponse
|
|
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** | [**ScreenshotData**](ScreenshotData.md) | Screenshot data | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ScreenshotResponse } from 'airbrowser-client';
|
|
17
|
+
|
|
18
|
+
const instance: ScreenshotResponse = {
|
|
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,30 @@
|
|
|
1
|
+
# SelectRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**selector** | **string** | Select element selector | [default to undefined]
|
|
9
|
+
**by** | **string** | Selector type (css, id, name, xpath) | [optional] [default to 'css']
|
|
10
|
+
**action** | **string** | Action: select or options | [optional] [default to ActionEnum_Select]
|
|
11
|
+
**value** | **string** | Option value to select | [optional] [default to undefined]
|
|
12
|
+
**text** | **string** | Option text to select | [optional] [default to undefined]
|
|
13
|
+
**index** | **number** | Option index to select | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { SelectRequest } from 'airbrowser-client';
|
|
19
|
+
|
|
20
|
+
const instance: SelectRequest = {
|
|
21
|
+
selector,
|
|
22
|
+
by,
|
|
23
|
+
action,
|
|
24
|
+
value,
|
|
25
|
+
text,
|
|
26
|
+
index,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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
|
+
# SnapshotRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | Snapshot type: dom or accessibility | [optional] [default to 'dom']
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SnapshotRequest } from 'airbrowser-client';
|
|
14
|
+
|
|
15
|
+
const instance: SnapshotRequest = {
|
|
16
|
+
type,
|
|
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
|
+
# SuccessResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**success** | **boolean** | Operation success | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | Success message | [optional] [default to undefined]
|
|
10
|
+
**timestamp** | **number** | Unix timestamp | [optional] [default to undefined]
|
|
11
|
+
**data** | **object** | Additional result data | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SuccessResponse } from 'airbrowser-client';
|
|
17
|
+
|
|
18
|
+
const instance: SuccessResponse = {
|
|
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
|
+
# TabsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**action** | **string** | Tab action: list, new, switch, close, or current | [default to undefined]
|
|
9
|
+
**url** | **string** | URL for new tab (for \'new\' action) | [optional] [default to undefined]
|
|
10
|
+
**index** | **number** | Tab index (for \'switch\' or \'close\' actions) | [optional] [default to undefined]
|
|
11
|
+
**handle** | **string** | Tab handle (for \'switch\' or \'close\' actions) | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { TabsRequest } from 'airbrowser-client';
|
|
17
|
+
|
|
18
|
+
const instance: TabsRequest = {
|
|
19
|
+
action,
|
|
20
|
+
url,
|
|
21
|
+
index,
|
|
22
|
+
handle,
|
|
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
|
+
# TypeRequest
|
|
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
|
+
**text** | **string** | Text to type | [default to undefined]
|
|
11
|
+
**timeout** | **number** | Timeout in seconds | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { TypeRequest } from 'airbrowser-client';
|
|
17
|
+
|
|
18
|
+
const instance: TypeRequest = {
|
|
19
|
+
selector,
|
|
20
|
+
by,
|
|
21
|
+
text,
|
|
22
|
+
timeout,
|
|
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
|
+
# UploadFileRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**selector** | **string** | File input selector | [default to undefined]
|
|
9
|
+
**file_path** | **string** | Path to file to upload | [default to undefined]
|
|
10
|
+
**by** | **string** | Selector type (css, id, name, xpath) | [optional] [default to 'css']
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UploadFileRequest } from 'airbrowser-client';
|
|
16
|
+
|
|
17
|
+
const instance: UploadFileRequest = {
|
|
18
|
+
selector,
|
|
19
|
+
file_path,
|
|
20
|
+
by,
|
|
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)
|
package/docs/UrlData.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UrlData
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**url** | **string** | Current URL | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UrlData } from 'airbrowser-client';
|
|
14
|
+
|
|
15
|
+
const instance: UrlData = {
|
|
16
|
+
url,
|
|
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
|
+
# UrlResponse
|
|
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** | [**UrlData**](UrlData.md) | URL data | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UrlResponse } from 'airbrowser-client';
|
|
17
|
+
|
|
18
|
+
const instance: UrlResponse = {
|
|
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
|
+
# WaitElementRequest
|
|
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
|
+
**until** | **string** | Wait until: visible or hidden | [default to undefined]
|
|
11
|
+
**timeout** | **number** | Timeout in seconds | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { WaitElementRequest } from 'airbrowser-client';
|
|
17
|
+
|
|
18
|
+
const instance: WaitElementRequest = {
|
|
19
|
+
selector,
|
|
20
|
+
by,
|
|
21
|
+
until,
|
|
22
|
+
timeout,
|
|
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,34 @@
|
|
|
1
|
+
# WhatIsVisibleResult
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**success** | **boolean** | Operation success | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | Success message | [optional] [default to undefined]
|
|
10
|
+
**timestamp** | **number** | Unix timestamp | [optional] [default to undefined]
|
|
11
|
+
**analysis** | **string** | Comprehensive page state analysis | [optional] [default to undefined]
|
|
12
|
+
**model** | **string** | AI model used for analysis | [optional] [default to undefined]
|
|
13
|
+
**screenshot_url** | **string** | URL to the screenshot | [optional] [default to undefined]
|
|
14
|
+
**screenshot_path** | **string** | Path to the screenshot file | [optional] [default to undefined]
|
|
15
|
+
**error** | **string** | Error message if failed | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { WhatIsVisibleResult } from 'airbrowser-client';
|
|
21
|
+
|
|
22
|
+
const instance: WhatIsVisibleResult = {
|
|
23
|
+
success,
|
|
24
|
+
message,
|
|
25
|
+
timestamp,
|
|
26
|
+
analysis,
|
|
27
|
+
model,
|
|
28
|
+
screenshot_url,
|
|
29
|
+
screenshot_path,
|
|
30
|
+
error,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="ifokeev"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="airbrowser-mcp"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Airbrowser API
|
|
5
|
+
* Undetectable Chrome-in-Docker for developers and agents (REST + MCP)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
|