@airtop/sdk 0.1.31-beta2 → 0.1.31
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/Client.d.ts +0 -6
- package/Client.js +6 -16
- package/README.md +6 -8
- package/api/errors/index.d.ts +0 -2
- package/api/errors/index.js +0 -2
- package/api/resources/index.d.ts +0 -3
- package/api/resources/index.js +1 -4
- package/api/resources/profiles/client/Client.js +2 -2
- package/api/resources/requests/client/Client.js +2 -2
- package/api/resources/sessions/client/Client.d.ts +0 -9
- package/api/resources/sessions/client/Client.js +12 -65
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/api/resources/sessions/types/index.d.ts +1 -1
- package/api/resources/sessions/types/index.js +1 -1
- package/api/resources/windows/client/Client.d.ts +0 -138
- package/api/resources/windows/client/Client.js +30 -729
- package/api/resources/windows/client/requests/index.d.ts +0 -11
- package/api/types/SessionConfigV1.d.ts +0 -2
- package/api/types/index.d.ts +0 -7
- package/api/types/index.js +0 -7
- package/dist/Client.d.ts +0 -6
- package/dist/Client.js +6 -16
- package/dist/api/errors/index.d.ts +0 -2
- package/dist/api/errors/index.js +0 -2
- package/dist/api/resources/index.d.ts +0 -3
- package/dist/api/resources/index.js +1 -4
- package/dist/api/resources/profiles/client/Client.js +2 -2
- package/dist/api/resources/requests/client/Client.js +2 -2
- package/dist/api/resources/sessions/client/Client.d.ts +0 -9
- package/dist/api/resources/sessions/client/Client.js +12 -65
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/dist/api/resources/sessions/types/index.d.ts +1 -1
- package/dist/api/resources/sessions/types/index.js +1 -1
- package/dist/api/resources/windows/client/Client.d.ts +0 -138
- package/dist/api/resources/windows/client/Client.js +30 -729
- package/dist/api/resources/windows/client/requests/index.d.ts +0 -11
- package/dist/api/types/SessionConfigV1.d.ts +0 -2
- package/dist/api/types/index.d.ts +0 -7
- package/dist/api/types/index.js +0 -7
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
- package/dist/serialization/resources/sessions/types/index.js +1 -1
- package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -11
- package/dist/serialization/resources/windows/client/requests/index.js +1 -23
- package/dist/serialization/types/SessionConfigV1.d.ts +0 -1
- package/dist/serialization/types/SessionConfigV1.js +0 -1
- package/dist/serialization/types/index.d.ts +0 -7
- package/dist/serialization/types/index.js +0 -7
- package/dist/wrapper/AirtopClient.d.ts +0 -1
- package/dist/wrapper/AirtopClient.js +0 -3
- package/dist/wrapper/AirtopWindows.d.ts +1 -1
- package/package.json +2 -3
- package/reference.md +155 -1298
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/serialization/resources/sessions/types/index.d.ts +1 -1
- package/serialization/resources/sessions/types/index.js +1 -1
- package/serialization/resources/windows/client/requests/index.d.ts +0 -11
- package/serialization/resources/windows/client/requests/index.js +1 -23
- package/serialization/types/SessionConfigV1.d.ts +0 -1
- package/serialization/types/SessionConfigV1.js +0 -1
- package/serialization/types/index.d.ts +0 -7
- package/serialization/types/index.js +0 -7
- package/wrapper/AirtopClient.d.ts +0 -1
- package/wrapper/AirtopClient.js +0 -3
- package/wrapper/AirtopWindows.d.ts +1 -1
- package/api/errors/ForbiddenError.d.ts +0 -8
- package/api/errors/ForbiddenError.js +0 -41
- package/api/errors/UnauthorizedError.d.ts +0 -8
- package/api/errors/UnauthorizedError.js +0 -41
- package/api/resources/automations/client/Client.d.ts +0 -87
- package/api/resources/automations/client/Client.js +0 -451
- package/api/resources/automations/client/index.d.ts +0 -1
- package/api/resources/automations/client/index.js +0 -17
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
- package/api/resources/automations/client/requests/index.d.ts +0 -1
- package/api/resources/automations/client/requests/index.js +0 -2
- package/api/resources/automations/index.d.ts +0 -1
- package/api/resources/automations/index.js +0 -17
- package/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
- package/api/resources/extensionConfigurations/client/Client.js +0 -149
- package/api/resources/extensionConfigurations/client/index.d.ts +0 -1
- package/api/resources/extensionConfigurations/client/index.js +0 -2
- package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
- package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +0 -5
- package/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
- package/api/resources/extensionConfigurations/client/requests/index.js +0 -2
- package/api/resources/extensionConfigurations/index.d.ts +0 -1
- package/api/resources/extensionConfigurations/index.js +0 -17
- package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
- package/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
- package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
- package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
- package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
- package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
- package/api/types/AsyncConfig.d.ts +0 -7
- package/api/types/AsyncConfig.js +0 -5
- package/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
- package/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
- package/api/types/AutomationOutput.d.ts +0 -10
- package/api/types/AutomationOutput.js +0 -5
- package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
- package/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
- package/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
- package/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
- package/api/types/ExtensionConfigurationOutput.d.ts +0 -13
- package/api/types/ExtensionConfigurationOutput.js +0 -5
- package/api/types/ListAutomationsOutput.d.ts +0 -7
- package/api/types/ListAutomationsOutput.js +0 -5
- package/dist/api/errors/ForbiddenError.d.ts +0 -8
- package/dist/api/errors/ForbiddenError.js +0 -41
- package/dist/api/errors/UnauthorizedError.d.ts +0 -8
- package/dist/api/errors/UnauthorizedError.js +0 -41
- package/dist/api/resources/automations/client/Client.d.ts +0 -87
- package/dist/api/resources/automations/client/Client.js +0 -451
- package/dist/api/resources/automations/client/index.d.ts +0 -1
- package/dist/api/resources/automations/client/index.js +0 -17
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
- package/dist/api/resources/automations/client/requests/index.d.ts +0 -1
- package/dist/api/resources/automations/client/requests/index.js +0 -2
- package/dist/api/resources/automations/index.d.ts +0 -1
- package/dist/api/resources/automations/index.js +0 -17
- package/dist/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
- package/dist/api/resources/extensionConfigurations/client/Client.js +0 -149
- package/dist/api/resources/extensionConfigurations/client/index.d.ts +0 -1
- package/dist/api/resources/extensionConfigurations/client/index.js +0 -2
- package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
- package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +0 -5
- package/dist/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
- package/dist/api/resources/extensionConfigurations/client/requests/index.js +0 -2
- package/dist/api/resources/extensionConfigurations/index.d.ts +0 -1
- package/dist/api/resources/extensionConfigurations/index.js +0 -17
- package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
- package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
- package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
- package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
- package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
- package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
- package/dist/api/types/AsyncConfig.d.ts +0 -7
- package/dist/api/types/AsyncConfig.js +0 -5
- package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
- package/dist/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
- package/dist/api/types/AutomationOutput.d.ts +0 -10
- package/dist/api/types/AutomationOutput.js +0 -5
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
- package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
- package/dist/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
- package/dist/api/types/ExtensionConfigurationOutput.d.ts +0 -13
- package/dist/api/types/ExtensionConfigurationOutput.js +0 -5
- package/dist/api/types/ListAutomationsOutput.d.ts +0 -7
- package/dist/api/types/ListAutomationsOutput.js +0 -5
- package/dist/serialization/resources/automations/client/index.d.ts +0 -1
- package/dist/serialization/resources/automations/client/index.js +0 -17
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -35
- package/dist/serialization/resources/automations/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/automations/client/requests/index.js +0 -5
- package/dist/serialization/resources/automations/index.d.ts +0 -1
- package/dist/serialization/resources/automations/index.js +0 -17
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -41
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -39
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -39
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -40
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -40
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -41
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -40
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -41
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -39
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -40
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -45
- package/dist/serialization/types/AsyncConfig.d.ts +0 -12
- package/dist/serialization/types/AsyncConfig.js +0 -33
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -36
- package/dist/serialization/types/AutomationOutput.d.ts +0 -16
- package/dist/serialization/types/AutomationOutput.js +0 -37
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -31
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -31
- package/dist/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
- package/dist/serialization/types/ExtensionConfigurationOutput.js +0 -36
- package/dist/serialization/types/ListAutomationsOutput.d.ts +0 -13
- package/dist/serialization/types/ListAutomationsOutput.js +0 -34
- package/serialization/resources/automations/client/index.d.ts +0 -1
- package/serialization/resources/automations/client/index.js +0 -17
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -35
- package/serialization/resources/automations/client/requests/index.d.ts +0 -1
- package/serialization/resources/automations/client/requests/index.js +0 -5
- package/serialization/resources/automations/index.d.ts +0 -1
- package/serialization/resources/automations/index.js +0 -17
- package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
- package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -41
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -39
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -39
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -40
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -40
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -41
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -40
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -41
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -39
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -40
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -45
- package/serialization/types/AsyncConfig.d.ts +0 -12
- package/serialization/types/AsyncConfig.js +0 -33
- package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
- package/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -36
- package/serialization/types/AutomationOutput.d.ts +0 -16
- package/serialization/types/AutomationOutput.js +0 -37
- package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
- package/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -31
- package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
- package/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -31
- package/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
- package/serialization/types/ExtensionConfigurationOutput.js +0 -36
- package/serialization/types/ListAutomationsOutput.d.ts +0 -13
- package/serialization/types/ListAutomationsOutput.js +0 -34
package/Client.d.ts
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
import * as environments from "./environments";
|
5
5
|
import * as core from "./core";
|
6
6
|
import { Windows } from "./api/resources/windows/client/Client";
|
7
|
-
import { Automations } from "./api/resources/automations/client/Client";
|
8
|
-
import { ExtensionConfigurations } from "./api/resources/extensionConfigurations/client/Client";
|
9
7
|
import { Profiles } from "./api/resources/profiles/client/Client";
|
10
8
|
import { Requests } from "./api/resources/requests/client/Client";
|
11
9
|
import { Sessions } from "./api/resources/sessions/client/Client";
|
@@ -29,10 +27,6 @@ export declare class AirtopClient {
|
|
29
27
|
constructor(_options: AirtopClient.Options);
|
30
28
|
protected _windows: Windows | undefined;
|
31
29
|
get windows(): Windows;
|
32
|
-
protected _automations: Automations | undefined;
|
33
|
-
get automations(): Automations;
|
34
|
-
protected _extensionConfigurations: ExtensionConfigurations | undefined;
|
35
|
-
get extensionConfigurations(): ExtensionConfigurations;
|
36
30
|
protected _profiles: Profiles | undefined;
|
37
31
|
get profiles(): Profiles;
|
38
32
|
protected _requests: Requests | undefined;
|
package/Client.js
CHANGED
@@ -5,11 +5,9 @@
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.AirtopClient = void 0;
|
7
7
|
const Client_1 = require("./api/resources/windows/client/Client");
|
8
|
-
const Client_2 = require("./api/resources/
|
9
|
-
const Client_3 = require("./api/resources/
|
10
|
-
const Client_4 = require("./api/resources/
|
11
|
-
const Client_5 = require("./api/resources/requests/client/Client");
|
12
|
-
const Client_6 = require("./api/resources/sessions/client/Client");
|
8
|
+
const Client_2 = require("./api/resources/profiles/client/Client");
|
9
|
+
const Client_3 = require("./api/resources/requests/client/Client");
|
10
|
+
const Client_4 = require("./api/resources/sessions/client/Client");
|
13
11
|
class AirtopClient {
|
14
12
|
constructor(_options) {
|
15
13
|
this._options = _options;
|
@@ -18,25 +16,17 @@ class AirtopClient {
|
|
18
16
|
var _a;
|
19
17
|
return ((_a = this._windows) !== null && _a !== void 0 ? _a : (this._windows = new Client_1.Windows(this._options)));
|
20
18
|
}
|
21
|
-
get automations() {
|
22
|
-
var _a;
|
23
|
-
return ((_a = this._automations) !== null && _a !== void 0 ? _a : (this._automations = new Client_2.Automations(this._options)));
|
24
|
-
}
|
25
|
-
get extensionConfigurations() {
|
26
|
-
var _a;
|
27
|
-
return ((_a = this._extensionConfigurations) !== null && _a !== void 0 ? _a : (this._extensionConfigurations = new Client_3.ExtensionConfigurations(this._options)));
|
28
|
-
}
|
29
19
|
get profiles() {
|
30
20
|
var _a;
|
31
|
-
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new
|
21
|
+
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_2.Profiles(this._options)));
|
32
22
|
}
|
33
23
|
get requests() {
|
34
24
|
var _a;
|
35
|
-
return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new
|
25
|
+
return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_3.Requests(this._options)));
|
36
26
|
}
|
37
27
|
get sessions() {
|
38
28
|
var _a;
|
39
|
-
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new
|
29
|
+
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_4.Sessions(this._options)));
|
40
30
|
}
|
41
31
|
}
|
42
32
|
exports.AirtopClient = AirtopClient;
|
package/README.md
CHANGED
@@ -19,9 +19,7 @@ Instantiate and use the client with the following:
|
|
19
19
|
import { AirtopClient } from "@airtop/sdk";
|
20
20
|
|
21
21
|
const client = new AirtopClient({ apiKey: "YOUR_API_KEY" });
|
22
|
-
await client.windows.
|
23
|
-
elementDescription: "The login button",
|
24
|
-
});
|
22
|
+
await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
|
25
23
|
```
|
26
24
|
|
27
25
|
## Request And Response Types
|
@@ -32,7 +30,7 @@ following namespace:
|
|
32
30
|
```typescript
|
33
31
|
import { Airtop } from "@airtop/sdk";
|
34
32
|
|
35
|
-
const request: Airtop.
|
33
|
+
const request: Airtop.CreateWindowInputV1Body = {
|
36
34
|
...
|
37
35
|
};
|
38
36
|
```
|
@@ -46,7 +44,7 @@ will be thrown.
|
|
46
44
|
import { AirtopError } from "@airtop/sdk";
|
47
45
|
|
48
46
|
try {
|
49
|
-
await client.windows.
|
47
|
+
await client.windows.create(...);
|
50
48
|
} catch (err) {
|
51
49
|
if (err instanceof AirtopError) {
|
52
50
|
console.log(err.statusCode);
|
@@ -73,7 +71,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
73
71
|
Use the `maxRetries` request option to configure this behavior.
|
74
72
|
|
75
73
|
```typescript
|
76
|
-
const response = await client.windows.
|
74
|
+
const response = await client.windows.create(..., {
|
77
75
|
maxRetries: 0 // override maxRetries at the request level
|
78
76
|
});
|
79
77
|
```
|
@@ -83,7 +81,7 @@ const response = await client.windows.asyncClick(..., {
|
|
83
81
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
84
82
|
|
85
83
|
```typescript
|
86
|
-
const response = await client.windows.
|
84
|
+
const response = await client.windows.create(..., {
|
87
85
|
timeoutInSeconds: 30 // override timeout to 30s
|
88
86
|
});
|
89
87
|
```
|
@@ -94,7 +92,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
94
92
|
|
95
93
|
```typescript
|
96
94
|
const controller = new AbortController();
|
97
|
-
const response = await client.windows.
|
95
|
+
const response = await client.windows.create(..., {
|
98
96
|
abortSignal: controller.signal
|
99
97
|
});
|
100
98
|
controller.abort(); // aborts the request
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./UnauthorizedError"), exports);
|
18
|
-
__exportStar(require("./ForbiddenError"), exports);
|
19
17
|
__exportStar(require("./NotFoundError"), exports);
|
20
18
|
__exportStar(require("./UnprocessableEntityError"), exports);
|
21
19
|
__exportStar(require("./InternalServerError"), exports);
|
package/api/resources/index.d.ts
CHANGED
@@ -2,11 +2,8 @@ export * as windows from "./windows";
|
|
2
2
|
export * from "./windows/types";
|
3
3
|
export * as sessions from "./sessions";
|
4
4
|
export * from "./sessions/types";
|
5
|
-
export * as automations from "./automations";
|
6
|
-
export * as extensionConfigurations from "./extensionConfigurations";
|
7
5
|
export * as profiles from "./profiles";
|
8
6
|
export * as requests from "./requests";
|
9
7
|
export * from "./windows/client/requests";
|
10
|
-
export * from "./automations/client/requests";
|
11
8
|
export * from "./profiles/client/requests";
|
12
9
|
export * from "./sessions/client/requests";
|
package/api/resources/index.js
CHANGED
@@ -26,16 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.requests = exports.profiles = exports.
|
29
|
+
exports.requests = exports.profiles = exports.sessions = exports.windows = void 0;
|
30
30
|
exports.windows = __importStar(require("./windows"));
|
31
31
|
__exportStar(require("./windows/types"), exports);
|
32
32
|
exports.sessions = __importStar(require("./sessions"));
|
33
33
|
__exportStar(require("./sessions/types"), exports);
|
34
|
-
exports.automations = __importStar(require("./automations"));
|
35
|
-
exports.extensionConfigurations = __importStar(require("./extensionConfigurations"));
|
36
34
|
exports.profiles = __importStar(require("./profiles"));
|
37
35
|
exports.requests = __importStar(require("./requests"));
|
38
36
|
__exportStar(require("./windows/client/requests"), exports);
|
39
|
-
__exportStar(require("./automations/client/requests"), exports);
|
40
37
|
__exportStar(require("./profiles/client/requests"), exports);
|
41
38
|
__exportStar(require("./sessions/client/requests"), exports);
|
@@ -84,8 +84,8 @@ class Profiles {
|
|
84
84
|
Authorization: yield this._getAuthorizationHeader(),
|
85
85
|
"X-Fern-Language": "JavaScript",
|
86
86
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
87
|
-
"X-Fern-SDK-Version": "0.1.31
|
88
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
87
|
+
"X-Fern-SDK-Version": "0.1.31",
|
88
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
91
91
|
},
|
@@ -65,8 +65,8 @@ class Requests {
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
66
66
|
"X-Fern-Language": "JavaScript",
|
67
67
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
68
|
-
"X-Fern-SDK-Version": "0.1.31
|
69
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
68
|
+
"X-Fern-SDK-Version": "0.1.31",
|
69
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
72
72
|
},
|
@@ -75,15 +75,6 @@ export declare class Sessions {
|
|
75
75
|
* Get a session event stream for a given session ID
|
76
76
|
*/
|
77
77
|
events(id: string, request?: Airtop.SessionsEventsRequest, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
|
78
|
-
/**
|
79
|
-
* @param {string} sessionId - ID of the session.
|
80
|
-
* @param {string} extensionConfigurationName - Name under which to save the extension configuration.
|
81
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
82
|
-
*
|
83
|
-
* @example
|
84
|
-
* await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
|
85
|
-
*/
|
86
|
-
saveExtensionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
|
87
78
|
/**
|
88
79
|
* @param {string} sessionId - ID of the session.
|
89
80
|
* @param {string} profileName - Name under which to save the profile.
|
@@ -94,8 +94,8 @@ class Sessions {
|
|
94
94
|
Authorization: yield this._getAuthorizationHeader(),
|
95
95
|
"X-Fern-Language": "JavaScript",
|
96
96
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
97
|
-
"X-Fern-SDK-Version": "0.1.31
|
98
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
97
|
+
"X-Fern-SDK-Version": "0.1.31",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
99
99
|
"X-Fern-Runtime": core.RUNTIME.type,
|
100
100
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
101
101
|
},
|
@@ -180,8 +180,8 @@ class Sessions {
|
|
180
180
|
Authorization: yield this._getAuthorizationHeader(),
|
181
181
|
"X-Fern-Language": "JavaScript",
|
182
182
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
183
|
-
"X-Fern-SDK-Version": "0.1.31
|
184
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
183
|
+
"X-Fern-SDK-Version": "0.1.31",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
185
185
|
"X-Fern-Runtime": core.RUNTIME.type,
|
186
186
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
187
187
|
},
|
@@ -245,8 +245,8 @@ class Sessions {
|
|
245
245
|
Authorization: yield this._getAuthorizationHeader(),
|
246
246
|
"X-Fern-Language": "JavaScript",
|
247
247
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
248
|
-
"X-Fern-SDK-Version": "0.1.31
|
249
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
248
|
+
"X-Fern-SDK-Version": "0.1.31",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
250
250
|
"X-Fern-Runtime": core.RUNTIME.type,
|
251
251
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
252
252
|
},
|
@@ -332,8 +332,8 @@ class Sessions {
|
|
332
332
|
Authorization: yield this._getAuthorizationHeader(),
|
333
333
|
"X-Fern-Language": "JavaScript",
|
334
334
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
335
|
-
"X-Fern-SDK-Version": "0.1.31
|
336
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
335
|
+
"X-Fern-SDK-Version": "0.1.31",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
337
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
338
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
339
339
|
},
|
@@ -388,8 +388,8 @@ class Sessions {
|
|
388
388
|
Authorization: yield this._getAuthorizationHeader(),
|
389
389
|
"X-Fern-Language": "JavaScript",
|
390
390
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
391
|
-
"X-Fern-SDK-Version": "0.1.31
|
392
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
391
|
+
"X-Fern-SDK-Version": "0.1.31",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
393
393
|
"X-Fern-Runtime": core.RUNTIME.type,
|
394
394
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
395
395
|
},
|
@@ -468,59 +468,6 @@ class Sessions {
|
|
468
468
|
}
|
469
469
|
});
|
470
470
|
}
|
471
|
-
/**
|
472
|
-
* @param {string} sessionId - ID of the session.
|
473
|
-
* @param {string} extensionConfigurationName - Name under which to save the extension configuration.
|
474
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
475
|
-
*
|
476
|
-
* @example
|
477
|
-
* await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
|
478
|
-
*/
|
479
|
-
saveExtensionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
|
480
|
-
var _a, _b;
|
481
|
-
return __awaiter(this, void 0, void 0, function* () {
|
482
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
483
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extension-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
|
484
|
-
method: "PUT",
|
485
|
-
headers: {
|
486
|
-
Authorization: yield this._getAuthorizationHeader(),
|
487
|
-
"X-Fern-Language": "JavaScript",
|
488
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
489
|
-
"X-Fern-SDK-Version": "0.1.31-beta2",
|
490
|
-
"User-Agent": "@airtop/sdk/0.1.31-beta2",
|
491
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
492
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
493
|
-
},
|
494
|
-
contentType: "application/json",
|
495
|
-
requestType: "json",
|
496
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
497
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
498
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
499
|
-
});
|
500
|
-
if (_response.ok) {
|
501
|
-
return;
|
502
|
-
}
|
503
|
-
if (_response.error.reason === "status-code") {
|
504
|
-
throw new errors.AirtopError({
|
505
|
-
statusCode: _response.error.statusCode,
|
506
|
-
body: _response.error.body,
|
507
|
-
});
|
508
|
-
}
|
509
|
-
switch (_response.error.reason) {
|
510
|
-
case "non-json":
|
511
|
-
throw new errors.AirtopError({
|
512
|
-
statusCode: _response.error.statusCode,
|
513
|
-
body: _response.error.rawBody,
|
514
|
-
});
|
515
|
-
case "timeout":
|
516
|
-
throw new errors.AirtopTimeoutError();
|
517
|
-
case "unknown":
|
518
|
-
throw new errors.AirtopError({
|
519
|
-
message: _response.error.errorMessage,
|
520
|
-
});
|
521
|
-
}
|
522
|
-
});
|
523
|
-
}
|
524
471
|
/**
|
525
472
|
* @param {string} sessionId - ID of the session.
|
526
473
|
* @param {string} profileName - Name under which to save the profile.
|
@@ -539,8 +486,8 @@ class Sessions {
|
|
539
486
|
Authorization: yield this._getAuthorizationHeader(),
|
540
487
|
"X-Fern-Language": "JavaScript",
|
541
488
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
542
|
-
"X-Fern-SDK-Version": "0.1.31
|
543
|
-
"User-Agent": "@airtop/sdk/0.1.31
|
489
|
+
"X-Fern-SDK-Version": "0.1.31",
|
490
|
+
"User-Agent": "@airtop/sdk/0.1.31",
|
544
491
|
"X-Fern-Runtime": core.RUNTIME.type,
|
545
492
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
546
493
|
},
|
@@ -5,8 +5,11 @@ import * as Airtop from "../../../index";
|
|
5
5
|
/**
|
6
6
|
* Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
|
7
7
|
*/
|
8
|
-
export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.
|
8
|
+
export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_;
|
9
9
|
export declare namespace SessionsEventsResponse {
|
10
|
+
interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
|
11
|
+
event: "windowEvent";
|
12
|
+
}
|
10
13
|
interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
|
11
14
|
event: "sessionEvent";
|
12
15
|
}
|
@@ -16,7 +19,4 @@ export declare namespace SessionsEventsResponse {
|
|
16
19
|
interface Error_ extends Airtop.SessionsEventsResponseError {
|
17
20
|
event: "error";
|
18
21
|
}
|
19
|
-
interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
|
20
|
-
event: "windowEvent";
|
21
|
-
}
|
22
22
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export * from "./SessionsListRequestStatus";
|
2
|
+
export * from "./SessionsEventsResponseWindowEvent";
|
2
3
|
export * from "./SessionsEventsResponseSessionEvent";
|
3
4
|
export * from "./SessionsEventsResponseStatus";
|
4
5
|
export * from "./SessionsEventsResponseError";
|
5
|
-
export * from "./SessionsEventsResponseWindowEvent";
|
6
6
|
export * from "./SessionsEventsResponse";
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./SessionsListRequestStatus"), exports);
|
18
|
+
__exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
|
18
19
|
__exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
|
19
20
|
__exportStar(require("./SessionsEventsResponseStatus"), exports);
|
20
21
|
__exportStar(require("./SessionsEventsResponseError"), exports);
|
21
|
-
__exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
|
22
22
|
__exportStar(require("./SessionsEventsResponse"), exports);
|
@@ -22,144 +22,6 @@ export declare namespace Windows {
|
|
22
22
|
export declare class Windows {
|
23
23
|
protected readonly _options: Windows.Options;
|
24
24
|
constructor(_options: Windows.Options);
|
25
|
-
/**
|
26
|
-
* Execute a click interaction in a specific browser window asynchronously
|
27
|
-
*
|
28
|
-
* @param {string} sessionId - The session id for the window.
|
29
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
30
|
-
* @param {Airtop.AsyncClickRequest} request
|
31
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
32
|
-
*
|
33
|
-
* @example
|
34
|
-
* await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
35
|
-
* elementDescription: "The login button"
|
36
|
-
* })
|
37
|
-
*/
|
38
|
-
asyncClick(sessionId: string, windowId: string, request: Airtop.AsyncClickRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
39
|
-
/**
|
40
|
-
* Create an automation of a browser window asynchronously
|
41
|
-
*
|
42
|
-
* @param {string} sessionId - The session id for the window.
|
43
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
44
|
-
* @param {Airtop.AsyncCreateAutomationRequest} request
|
45
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
46
|
-
*
|
47
|
-
* @example
|
48
|
-
* await client.windows.asyncCreateAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
49
|
-
*/
|
50
|
-
asyncCreateAutomation(sessionId: string, windowId: string, request?: Airtop.AsyncCreateAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
51
|
-
/**
|
52
|
-
* Execute an automation of a browser window asynchronously
|
53
|
-
*
|
54
|
-
* @param {string} sessionId - The session id for the window.
|
55
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
56
|
-
* @param {Airtop.AsyncExecuteAutomationRequest} request
|
57
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
58
|
-
*
|
59
|
-
* @example
|
60
|
-
* await client.windows.asyncExecuteAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
61
|
-
* automationId: "automationId"
|
62
|
-
* })
|
63
|
-
*/
|
64
|
-
asyncExecuteAutomation(sessionId: string, windowId: string, request: Airtop.AsyncExecuteAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
65
|
-
/**
|
66
|
-
* @param {string} sessionId - The session id for the window.
|
67
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
68
|
-
* @param {Airtop.AsyncHoverRequest} request
|
69
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
70
|
-
*
|
71
|
-
* @example
|
72
|
-
* await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
73
|
-
* elementDescription: "The search box input in the top right corner"
|
74
|
-
* })
|
75
|
-
*/
|
76
|
-
asyncHover(sessionId: string, windowId: string, request: Airtop.AsyncHoverRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
77
|
-
/**
|
78
|
-
* @param {string} sessionId - The session id for the window.
|
79
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
80
|
-
* @param {Airtop.AsyncMonitorRequest} request
|
81
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
82
|
-
*
|
83
|
-
* @example
|
84
|
-
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
85
|
-
* condition: "Determine if the user appears to be signed in to the website"
|
86
|
-
* })
|
87
|
-
*/
|
88
|
-
asyncMonitor(sessionId: string, windowId: string, request: Airtop.AsyncMonitorRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
89
|
-
/**
|
90
|
-
* @param {string} sessionId - The session id for the window.
|
91
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
92
|
-
* @param {Airtop.AsyncPageQueryRequest} request
|
93
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
94
|
-
*
|
95
|
-
* @example
|
96
|
-
* await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
97
|
-
* prompt: "What is the main idea of this page?"
|
98
|
-
* })
|
99
|
-
*/
|
100
|
-
asyncPageQuery(sessionId: string, windowId: string, request: Airtop.AsyncPageQueryRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
101
|
-
/**
|
102
|
-
* @param {string} sessionId - The session id for the window.
|
103
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
104
|
-
* @param {Airtop.AsyncPaginatedExtractionRequest} request
|
105
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
106
|
-
*
|
107
|
-
* @example
|
108
|
-
* await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
109
|
-
* prompt: "This site contains a list of results about <provide details about the list>. Navigate through 3 pages of results and return the title and <provide details about the data you want to extract> about each result in this list."
|
110
|
-
* })
|
111
|
-
*/
|
112
|
-
asyncPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.AsyncPaginatedExtractionRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
113
|
-
/**
|
114
|
-
* This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
|
115
|
-
*
|
116
|
-
* @param {string} sessionId - The session id for the window.
|
117
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
118
|
-
* @param {Airtop.AsyncPromptContentRequest} request
|
119
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
120
|
-
*
|
121
|
-
* @example
|
122
|
-
* await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
123
|
-
* prompt: "What is the main idea of this page?"
|
124
|
-
* })
|
125
|
-
*/
|
126
|
-
asyncPromptContent(sessionId: string, windowId: string, request: Airtop.AsyncPromptContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
127
|
-
/**
|
128
|
-
* Take a screenshot of the current viewport of a browser window asynchronously
|
129
|
-
*
|
130
|
-
* @param {string} sessionId - The session id for the window.
|
131
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
132
|
-
* @param {Airtop.AsyncScreenshotRequest} request
|
133
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
134
|
-
*
|
135
|
-
* @example
|
136
|
-
* await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
137
|
-
*/
|
138
|
-
asyncScreenshot(sessionId: string, windowId: string, request?: Airtop.AsyncScreenshotRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
139
|
-
/**
|
140
|
-
* This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
|
141
|
-
*
|
142
|
-
* @param {string} sessionId - The session id for the window.
|
143
|
-
* @param {string} windowId - The Airtop window id of the browser window to summarize.
|
144
|
-
* @param {Airtop.AsyncSummarizeContentRequest} request
|
145
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
146
|
-
*
|
147
|
-
* @example
|
148
|
-
* await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
149
|
-
*/
|
150
|
-
asyncSummarizeContent(sessionId: string, windowId: string, request?: Airtop.AsyncSummarizeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
151
|
-
/**
|
152
|
-
* @param {string} sessionId - The session id for the window.
|
153
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
154
|
-
* @param {Airtop.AsyncTypeRequest} request
|
155
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
156
|
-
*
|
157
|
-
* @example
|
158
|
-
* await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
159
|
-
* text: "Example text"
|
160
|
-
* })
|
161
|
-
*/
|
162
|
-
asyncType(sessionId: string, windowId: string, request: Airtop.AsyncTypeRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
163
25
|
/**
|
164
26
|
* Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
|
165
27
|
*
|