@airtop/sdk 0.1.26-beta0 → 0.1.27-beta0
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/api/resources/extensionConfigurations/client/Client.js +4 -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.js +14 -14
- package/api/resources/windows/client/Client.d.ts +42 -8
- package/api/resources/windows/client/Client.js +192 -56
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +23 -0
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +4 -2
- package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +4 -2
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +4 -2
- package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +4 -2
- package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +3 -3
- package/api/resources/windows/client/requests/index.d.ts +2 -0
- package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +4 -0
- package/api/types/CreateAutomationRequestBodyConfiguration.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/extensionConfigurations/client/Client.js +4 -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.js +14 -14
- package/dist/api/resources/windows/client/Client.d.ts +42 -8
- package/dist/api/resources/windows/client/Client.js +192 -56
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +4 -2
- package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +4 -2
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +4 -2
- package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +4 -2
- package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +3 -3
- package/dist/api/resources/windows/client/requests/index.d.ts +2 -0
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +4 -0
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +39 -0
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +39 -0
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +1 -1
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +1 -1
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +1 -1
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +1 -1
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +1 -1
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +1 -1
- package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +1 -1
- package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +1 -1
- package/dist/serialization/resources/windows/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/windows/client/requests/index.js +5 -1
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +10 -0
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +31 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/wrapper/AirtopWindows.d.ts +15 -3
- package/dist/wrapper/AirtopWindows.js +21 -2
- package/package.json +1 -1
- package/reference.md +181 -4
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +39 -0
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +39 -0
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +1 -1
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +1 -1
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +1 -1
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +1 -1
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +1 -1
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +1 -1
- package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +1 -1
- package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +1 -1
- package/serialization/resources/windows/client/requests/index.d.ts +2 -0
- package/serialization/resources/windows/client/requests/index.js +5 -1
- package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +10 -0
- package/serialization/types/CreateAutomationRequestBodyConfiguration.js +31 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/wrapper/AirtopWindows.d.ts +15 -3
- package/wrapper/AirtopWindows.js +21 -2
@@ -8,6 +8,7 @@ export * from "./BrowserWaitSelectorConfig";
|
|
8
8
|
export * from "./ClickConfigClickType";
|
9
9
|
export * from "./ClickConfig";
|
10
10
|
export * from "./ClientProvidedResponseMetadata";
|
11
|
+
export * from "./CreateAutomationRequestBodyConfiguration";
|
11
12
|
export * from "./EnvelopeDefaultMeta";
|
12
13
|
export * from "./ErrorBody";
|
13
14
|
export * from "./ErrorDetail";
|
package/dist/api/types/index.js
CHANGED
@@ -24,6 +24,7 @@ __exportStar(require("./BrowserWaitSelectorConfig"), exports);
|
|
24
24
|
__exportStar(require("./ClickConfigClickType"), exports);
|
25
25
|
__exportStar(require("./ClickConfig"), exports);
|
26
26
|
__exportStar(require("./ClientProvidedResponseMetadata"), exports);
|
27
|
+
__exportStar(require("./CreateAutomationRequestBodyConfiguration"), exports);
|
27
28
|
__exportStar(require("./EnvelopeDefaultMeta"), exports);
|
28
29
|
__exportStar(require("./ErrorBody"), exports);
|
29
30
|
__exportStar(require("./ErrorDetail"), exports);
|
package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../index";
|
5
|
+
import * as Airtop from "../../../../../api/index";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
import { AsyncConfig } from "../../../../types/AsyncConfig";
|
8
|
+
import { CreateAutomationRequestBodyConfiguration } from "../../../../types/CreateAutomationRequestBodyConfiguration";
|
9
|
+
export declare const AsyncCreateAutomationRequest: core.serialization.Schema<serializers.AsyncCreateAutomationRequest.Raw, Airtop.AsyncCreateAutomationRequest>;
|
10
|
+
export declare namespace AsyncCreateAutomationRequest {
|
11
|
+
interface Raw {
|
12
|
+
async?: AsyncConfig.Raw | null;
|
13
|
+
clientRequestId?: string | null;
|
14
|
+
configuration?: CreateAutomationRequestBodyConfiguration.Raw | null;
|
15
|
+
costThresholdCredits?: number | null;
|
16
|
+
timeThresholdSeconds?: number | null;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.AsyncCreateAutomationRequest = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const AsyncConfig_1 = require("../../../../types/AsyncConfig");
|
32
|
+
const CreateAutomationRequestBodyConfiguration_1 = require("../../../../types/CreateAutomationRequestBodyConfiguration");
|
33
|
+
exports.AsyncCreateAutomationRequest = core.serialization.object({
|
34
|
+
async: AsyncConfig_1.AsyncConfig.optional(),
|
35
|
+
clientRequestId: core.serialization.string().optional(),
|
36
|
+
configuration: CreateAutomationRequestBodyConfiguration_1.CreateAutomationRequestBodyConfiguration.optional(),
|
37
|
+
costThresholdCredits: core.serialization.number().optional(),
|
38
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
39
|
+
});
|
package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../index";
|
5
|
+
import * as Airtop from "../../../../../api/index";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
import { AsyncConfig } from "../../../../types/AsyncConfig";
|
8
|
+
export declare const AsyncExecuteAutomationRequest: core.serialization.Schema<serializers.AsyncExecuteAutomationRequest.Raw, Airtop.AsyncExecuteAutomationRequest>;
|
9
|
+
export declare namespace AsyncExecuteAutomationRequest {
|
10
|
+
interface Raw {
|
11
|
+
async?: AsyncConfig.Raw | null;
|
12
|
+
automationId: string;
|
13
|
+
clientRequestId?: string | null;
|
14
|
+
costThresholdCredits?: number | null;
|
15
|
+
parameters?: Record<string, unknown> | null;
|
16
|
+
timeThresholdSeconds?: number | null;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.AsyncExecuteAutomationRequest = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const AsyncConfig_1 = require("../../../../types/AsyncConfig");
|
32
|
+
exports.AsyncExecuteAutomationRequest = core.serialization.object({
|
33
|
+
async: AsyncConfig_1.AsyncConfig.optional(),
|
34
|
+
automationId: core.serialization.string(),
|
35
|
+
clientRequestId: core.serialization.string().optional(),
|
36
|
+
costThresholdCredits: core.serialization.number().optional(),
|
37
|
+
parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
38
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
39
|
+
});
|
@@ -13,7 +13,7 @@ export declare namespace AsyncHoverRequest {
|
|
13
13
|
clientRequestId?: string | null;
|
14
14
|
configuration?: MicroInteractionConfig.Raw | null;
|
15
15
|
costThresholdCredits?: number | null;
|
16
|
-
elementDescription
|
16
|
+
elementDescription: string;
|
17
17
|
timeThresholdSeconds?: number | null;
|
18
18
|
}
|
19
19
|
}
|
@@ -35,6 +35,6 @@ exports.AsyncHoverRequest = core.serialization.object({
|
|
35
35
|
clientRequestId: core.serialization.string().optional(),
|
36
36
|
configuration: MicroInteractionConfig_1.MicroInteractionConfig.optional(),
|
37
37
|
costThresholdCredits: core.serialization.number().optional(),
|
38
|
-
elementDescription: core.serialization.string()
|
38
|
+
elementDescription: core.serialization.string(),
|
39
39
|
timeThresholdSeconds: core.serialization.number().optional(),
|
40
40
|
});
|
package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts
CHANGED
@@ -13,7 +13,7 @@ export declare namespace AsyncPaginatedExtractionRequest {
|
|
13
13
|
clientRequestId?: string | null;
|
14
14
|
configuration?: PaginatedExtractionConfig.Raw | null;
|
15
15
|
costThresholdCredits?: number | null;
|
16
|
-
prompt
|
16
|
+
prompt: string;
|
17
17
|
timeThresholdSeconds?: number | null;
|
18
18
|
}
|
19
19
|
}
|
package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js
CHANGED
@@ -35,6 +35,6 @@ exports.AsyncPaginatedExtractionRequest = core.serialization.object({
|
|
35
35
|
clientRequestId: core.serialization.string().optional(),
|
36
36
|
configuration: PaginatedExtractionConfig_1.PaginatedExtractionConfig.optional(),
|
37
37
|
costThresholdCredits: core.serialization.number().optional(),
|
38
|
-
prompt: core.serialization.string()
|
38
|
+
prompt: core.serialization.string(),
|
39
39
|
timeThresholdSeconds: core.serialization.number().optional(),
|
40
40
|
});
|
package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts
CHANGED
@@ -11,7 +11,7 @@ export declare namespace SessionHoverHandlerRequestBody {
|
|
11
11
|
clientRequestId?: string | null;
|
12
12
|
configuration?: MicroInteractionConfig.Raw | null;
|
13
13
|
costThresholdCredits?: number | null;
|
14
|
-
elementDescription
|
14
|
+
elementDescription: string;
|
15
15
|
timeThresholdSeconds?: number | null;
|
16
16
|
}
|
17
17
|
}
|
package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js
CHANGED
@@ -33,6 +33,6 @@ exports.SessionHoverHandlerRequestBody = core.serialization.object({
|
|
33
33
|
clientRequestId: core.serialization.string().optional(),
|
34
34
|
configuration: MicroInteractionConfig_1.MicroInteractionConfig.optional(),
|
35
35
|
costThresholdCredits: core.serialization.number().optional(),
|
36
|
-
elementDescription: core.serialization.string()
|
36
|
+
elementDescription: core.serialization.string(),
|
37
37
|
timeThresholdSeconds: core.serialization.number().optional(),
|
38
38
|
});
|
@@ -11,7 +11,7 @@ export declare namespace SessionPaginatedExtractionHandlerRequestBody {
|
|
11
11
|
clientRequestId?: string | null;
|
12
12
|
configuration?: PaginatedExtractionConfig.Raw | null;
|
13
13
|
costThresholdCredits?: number | null;
|
14
|
-
prompt
|
14
|
+
prompt: string;
|
15
15
|
timeThresholdSeconds?: number | null;
|
16
16
|
}
|
17
17
|
}
|
@@ -33,6 +33,6 @@ exports.SessionPaginatedExtractionHandlerRequestBody = core.serialization.object
|
|
33
33
|
clientRequestId: core.serialization.string().optional(),
|
34
34
|
configuration: PaginatedExtractionConfig_1.PaginatedExtractionConfig.optional(),
|
35
35
|
costThresholdCredits: core.serialization.number().optional(),
|
36
|
-
prompt: core.serialization.string()
|
36
|
+
prompt: core.serialization.string(),
|
37
37
|
timeThresholdSeconds: core.serialization.number().optional(),
|
38
38
|
});
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export { AsyncClickRequest } from "./AsyncClickRequest";
|
2
|
+
export { AsyncCreateAutomationRequest } from "./AsyncCreateAutomationRequest";
|
3
|
+
export { AsyncExecuteAutomationRequest } from "./AsyncExecuteAutomationRequest";
|
2
4
|
export { AsyncHoverRequest } from "./AsyncHoverRequest";
|
3
5
|
export { AsyncMonitorRequest } from "./AsyncMonitorRequest";
|
4
6
|
export { AsyncPageQueryRequest } from "./AsyncPageQueryRequest";
|
@@ -1,8 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScrollHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.SessionMonitorHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = exports.AsyncTypeRequest = exports.AsyncSummarizeContentRequest = exports.AsyncScreenshotRequest = exports.AsyncPromptContentRequest = exports.AsyncPaginatedExtractionRequest = exports.AsyncPageQueryRequest = exports.AsyncMonitorRequest = exports.AsyncHoverRequest = exports.AsyncClickRequest = void 0;
|
3
|
+
exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScrollHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.SessionMonitorHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = exports.AsyncTypeRequest = exports.AsyncSummarizeContentRequest = exports.AsyncScreenshotRequest = exports.AsyncPromptContentRequest = exports.AsyncPaginatedExtractionRequest = exports.AsyncPageQueryRequest = exports.AsyncMonitorRequest = exports.AsyncHoverRequest = exports.AsyncExecuteAutomationRequest = exports.AsyncCreateAutomationRequest = exports.AsyncClickRequest = void 0;
|
4
4
|
var AsyncClickRequest_1 = require("./AsyncClickRequest");
|
5
5
|
Object.defineProperty(exports, "AsyncClickRequest", { enumerable: true, get: function () { return AsyncClickRequest_1.AsyncClickRequest; } });
|
6
|
+
var AsyncCreateAutomationRequest_1 = require("./AsyncCreateAutomationRequest");
|
7
|
+
Object.defineProperty(exports, "AsyncCreateAutomationRequest", { enumerable: true, get: function () { return AsyncCreateAutomationRequest_1.AsyncCreateAutomationRequest; } });
|
8
|
+
var AsyncExecuteAutomationRequest_1 = require("./AsyncExecuteAutomationRequest");
|
9
|
+
Object.defineProperty(exports, "AsyncExecuteAutomationRequest", { enumerable: true, get: function () { return AsyncExecuteAutomationRequest_1.AsyncExecuteAutomationRequest; } });
|
6
10
|
var AsyncHoverRequest_1 = require("./AsyncHoverRequest");
|
7
11
|
Object.defineProperty(exports, "AsyncHoverRequest", { enumerable: true, get: function () { return AsyncHoverRequest_1.AsyncHoverRequest; } });
|
8
12
|
var AsyncMonitorRequest_1 = require("./AsyncMonitorRequest");
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Airtop from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const CreateAutomationRequestBodyConfiguration: core.serialization.Schema<serializers.CreateAutomationRequestBodyConfiguration.Raw, Airtop.CreateAutomationRequestBodyConfiguration>;
|
8
|
+
export declare namespace CreateAutomationRequestBodyConfiguration {
|
9
|
+
type Raw = Record<string, unknown>;
|
10
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.CreateAutomationRequestBodyConfiguration = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.CreateAutomationRequestBodyConfiguration = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
@@ -8,6 +8,7 @@ export * from "./BrowserWaitSelectorConfig";
|
|
8
8
|
export * from "./ClickConfigClickType";
|
9
9
|
export * from "./ClickConfig";
|
10
10
|
export * from "./ClientProvidedResponseMetadata";
|
11
|
+
export * from "./CreateAutomationRequestBodyConfiguration";
|
11
12
|
export * from "./EnvelopeDefaultMeta";
|
12
13
|
export * from "./ErrorBody";
|
13
14
|
export * from "./ErrorDetail";
|
@@ -24,6 +24,7 @@ __exportStar(require("./BrowserWaitSelectorConfig"), exports);
|
|
24
24
|
__exportStar(require("./ClickConfigClickType"), exports);
|
25
25
|
__exportStar(require("./ClickConfig"), exports);
|
26
26
|
__exportStar(require("./ClientProvidedResponseMetadata"), exports);
|
27
|
+
__exportStar(require("./CreateAutomationRequestBodyConfiguration"), exports);
|
27
28
|
__exportStar(require("./EnvelopeDefaultMeta"), exports);
|
28
29
|
__exportStar(require("./ErrorBody"), exports);
|
29
30
|
__exportStar(require("./ErrorDetail"), exports);
|
@@ -15,7 +15,7 @@ declare namespace seleniumWebdriver {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
import type * as Airtop from '../api';
|
18
|
-
import { Windows as WindowsClass, type Windows as WindowsNamespace } from '../api/resources/windows/client/Client';
|
18
|
+
import { type Windows, Windows as WindowsClass, type Windows as WindowsNamespace } from '../api/resources/windows/client/Client';
|
19
19
|
import * as core from '../core';
|
20
20
|
export declare class AirtopWindows extends WindowsClass {
|
21
21
|
readonly _options: WindowsNamespace.Options;
|
@@ -101,7 +101,7 @@ export declare class AirtopWindows extends WindowsClass {
|
|
101
101
|
* @example
|
102
102
|
* await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
103
103
|
*/
|
104
|
-
hover(sessionId: string, windowId: string, request
|
104
|
+
hover(sessionId: string, windowId: string, request: Airtop.SessionHoverHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
105
105
|
/**
|
106
106
|
* @param {string} sessionId - The session id for the window.
|
107
107
|
* @param {string} windowId - The Airtop window id of the browser window.
|
@@ -135,7 +135,19 @@ export declare class AirtopWindows extends WindowsClass {
|
|
135
135
|
* @example
|
136
136
|
* await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
137
137
|
*/
|
138
|
-
paginatedExtraction(sessionId: string, windowId: string, request
|
138
|
+
paginatedExtraction(sessionId: string, windowId: string, request: Airtop.SessionPaginatedExtractionHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
139
|
+
/**
|
140
|
+
* Execute a scroll interaction in a specific browser window
|
141
|
+
*
|
142
|
+
* @param {string} sessionId - The session id for the window.
|
143
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
144
|
+
* @param {Airtop.SessionScrollHandlerRequestBody} request
|
145
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
146
|
+
*
|
147
|
+
* @example
|
148
|
+
* await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
149
|
+
*/
|
150
|
+
scroll(sessionId: string, windowId: string, request?: Airtop.SessionScrollHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
139
151
|
private executeSeleniumCDPCommand;
|
140
152
|
getWindowInfoForSeleniumDriver(session: Airtop.ExternalSessionWithConnectionInfo, driver: seleniumWebdriver.WebDriver, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
|
141
153
|
}
|
@@ -163,7 +163,7 @@ class AirtopWindows extends Client_1.Windows {
|
|
163
163
|
* @example
|
164
164
|
* await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
165
165
|
*/
|
166
|
-
hover(sessionId, windowId, request
|
166
|
+
hover(sessionId, windowId, request, requestOptions) {
|
167
167
|
const _super = Object.create(null, {
|
168
168
|
hover: { get: () => super.hover }
|
169
169
|
});
|
@@ -218,7 +218,7 @@ class AirtopWindows extends Client_1.Windows {
|
|
218
218
|
* @example
|
219
219
|
* await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
220
220
|
*/
|
221
|
-
paginatedExtraction(sessionId, windowId, request
|
221
|
+
paginatedExtraction(sessionId, windowId, request, requestOptions) {
|
222
222
|
const _super = Object.create(null, {
|
223
223
|
paginatedExtraction: { get: () => super.paginatedExtraction }
|
224
224
|
});
|
@@ -226,6 +226,25 @@ class AirtopWindows extends Client_1.Windows {
|
|
226
226
|
return _super.paginatedExtraction.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
227
227
|
});
|
228
228
|
}
|
229
|
+
/**
|
230
|
+
* Execute a scroll interaction in a specific browser window
|
231
|
+
*
|
232
|
+
* @param {string} sessionId - The session id for the window.
|
233
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
234
|
+
* @param {Airtop.SessionScrollHandlerRequestBody} request
|
235
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
236
|
+
*
|
237
|
+
* @example
|
238
|
+
* await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
239
|
+
*/
|
240
|
+
scroll(sessionId, windowId, request = {}, requestOptions) {
|
241
|
+
const _super = Object.create(null, {
|
242
|
+
scroll: { get: () => super.scroll }
|
243
|
+
});
|
244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
245
|
+
return _super.scroll.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
|
246
|
+
});
|
247
|
+
}
|
229
248
|
executeSeleniumCDPCommand(driver, session, apiKey) {
|
230
249
|
return __awaiter(this, void 0, void 0, function* () {
|
231
250
|
// Get the current WebDriver session ID
|
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -83,6 +83,173 @@ await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2
|
|
83
83
|
</dl>
|
84
84
|
</details>
|
85
85
|
|
86
|
+
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">asyncCreateAutomation</a>(sessionId, windowId, { ...params }) -> Airtop.AsyncSessionAiResponseEnvelope</code></summary>
|
87
|
+
<dl>
|
88
|
+
<dd>
|
89
|
+
|
90
|
+
#### 📝 Description
|
91
|
+
|
92
|
+
<dl>
|
93
|
+
<dd>
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dd>
|
97
|
+
|
98
|
+
Create an automation of a browser window asynchronously
|
99
|
+
|
100
|
+
</dd>
|
101
|
+
</dl>
|
102
|
+
</dd>
|
103
|
+
</dl>
|
104
|
+
|
105
|
+
#### 🔌 Usage
|
106
|
+
|
107
|
+
<dl>
|
108
|
+
<dd>
|
109
|
+
|
110
|
+
<dl>
|
111
|
+
<dd>
|
112
|
+
|
113
|
+
```typescript
|
114
|
+
await client.windows.asyncCreateAutomation(
|
115
|
+
"6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
|
116
|
+
"0334da2a-91b0-42c5-6156-76a5eba87430"
|
117
|
+
);
|
118
|
+
```
|
119
|
+
|
120
|
+
</dd>
|
121
|
+
</dl>
|
122
|
+
</dd>
|
123
|
+
</dl>
|
124
|
+
|
125
|
+
#### ⚙️ Parameters
|
126
|
+
|
127
|
+
<dl>
|
128
|
+
<dd>
|
129
|
+
|
130
|
+
<dl>
|
131
|
+
<dd>
|
132
|
+
|
133
|
+
**sessionId:** `string` — The session id for the window.
|
134
|
+
|
135
|
+
</dd>
|
136
|
+
</dl>
|
137
|
+
|
138
|
+
<dl>
|
139
|
+
<dd>
|
140
|
+
|
141
|
+
**windowId:** `string` — The Airtop window id of the browser window.
|
142
|
+
|
143
|
+
</dd>
|
144
|
+
</dl>
|
145
|
+
|
146
|
+
<dl>
|
147
|
+
<dd>
|
148
|
+
|
149
|
+
**request:** `Airtop.AsyncCreateAutomationRequest`
|
150
|
+
|
151
|
+
</dd>
|
152
|
+
</dl>
|
153
|
+
|
154
|
+
<dl>
|
155
|
+
<dd>
|
156
|
+
|
157
|
+
**requestOptions:** `Windows.RequestOptions`
|
158
|
+
|
159
|
+
</dd>
|
160
|
+
</dl>
|
161
|
+
</dd>
|
162
|
+
</dl>
|
163
|
+
|
164
|
+
</dd>
|
165
|
+
</dl>
|
166
|
+
</details>
|
167
|
+
|
168
|
+
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">asyncExecuteAutomation</a>(sessionId, windowId, { ...params }) -> Airtop.AsyncSessionAiResponseEnvelope</code></summary>
|
169
|
+
<dl>
|
170
|
+
<dd>
|
171
|
+
|
172
|
+
#### 📝 Description
|
173
|
+
|
174
|
+
<dl>
|
175
|
+
<dd>
|
176
|
+
|
177
|
+
<dl>
|
178
|
+
<dd>
|
179
|
+
|
180
|
+
Execute an automation of a browser window asynchronously
|
181
|
+
|
182
|
+
</dd>
|
183
|
+
</dl>
|
184
|
+
</dd>
|
185
|
+
</dl>
|
186
|
+
|
187
|
+
#### 🔌 Usage
|
188
|
+
|
189
|
+
<dl>
|
190
|
+
<dd>
|
191
|
+
|
192
|
+
<dl>
|
193
|
+
<dd>
|
194
|
+
|
195
|
+
```typescript
|
196
|
+
await client.windows.asyncExecuteAutomation(
|
197
|
+
"6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
|
198
|
+
"0334da2a-91b0-42c5-6156-76a5eba87430",
|
199
|
+
{
|
200
|
+
automationId: "automationId",
|
201
|
+
}
|
202
|
+
);
|
203
|
+
```
|
204
|
+
|
205
|
+
</dd>
|
206
|
+
</dl>
|
207
|
+
</dd>
|
208
|
+
</dl>
|
209
|
+
|
210
|
+
#### ⚙️ Parameters
|
211
|
+
|
212
|
+
<dl>
|
213
|
+
<dd>
|
214
|
+
|
215
|
+
<dl>
|
216
|
+
<dd>
|
217
|
+
|
218
|
+
**sessionId:** `string` — The session id for the window.
|
219
|
+
|
220
|
+
</dd>
|
221
|
+
</dl>
|
222
|
+
|
223
|
+
<dl>
|
224
|
+
<dd>
|
225
|
+
|
226
|
+
**windowId:** `string` — The Airtop window id of the browser window.
|
227
|
+
|
228
|
+
</dd>
|
229
|
+
</dl>
|
230
|
+
|
231
|
+
<dl>
|
232
|
+
<dd>
|
233
|
+
|
234
|
+
**request:** `Airtop.AsyncExecuteAutomationRequest`
|
235
|
+
|
236
|
+
</dd>
|
237
|
+
</dl>
|
238
|
+
|
239
|
+
<dl>
|
240
|
+
<dd>
|
241
|
+
|
242
|
+
**requestOptions:** `Windows.RequestOptions`
|
243
|
+
|
244
|
+
</dd>
|
245
|
+
</dl>
|
246
|
+
</dd>
|
247
|
+
</dl>
|
248
|
+
|
249
|
+
</dd>
|
250
|
+
</dl>
|
251
|
+
</details>
|
252
|
+
|
86
253
|
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">asyncHover</a>(sessionId, windowId, { ...params }) -> Airtop.AsyncSessionAiResponseEnvelope</code></summary>
|
87
254
|
<dl>
|
88
255
|
<dd>
|
@@ -96,7 +263,9 @@ await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2
|
|
96
263
|
<dd>
|
97
264
|
|
98
265
|
```typescript
|
99
|
-
await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430"
|
266
|
+
await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
267
|
+
elementDescription: "The search box input in the top right corner",
|
268
|
+
});
|
100
269
|
```
|
101
270
|
|
102
271
|
</dd>
|
@@ -292,7 +461,10 @@ await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "033
|
|
292
461
|
```typescript
|
293
462
|
await client.windows.asyncPaginatedExtraction(
|
294
463
|
"6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
|
295
|
-
"0334da2a-91b0-42c5-6156-76a5eba87430"
|
464
|
+
"0334da2a-91b0-42c5-6156-76a5eba87430",
|
465
|
+
{
|
466
|
+
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.",
|
467
|
+
}
|
296
468
|
);
|
297
469
|
```
|
298
470
|
|
@@ -1069,7 +1241,9 @@ Execute a hover interaction in a specific browser window
|
|
1069
1241
|
<dd>
|
1070
1242
|
|
1071
1243
|
```typescript
|
1072
|
-
await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430"
|
1244
|
+
await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
1245
|
+
elementDescription: "The search box input in the top right corner",
|
1246
|
+
});
|
1073
1247
|
```
|
1074
1248
|
|
1075
1249
|
</dd>
|
@@ -1295,7 +1469,10 @@ Submit a prompt that queries the content of a specific browser window and pagina
|
|
1295
1469
|
```typescript
|
1296
1470
|
await client.windows.paginatedExtraction(
|
1297
1471
|
"6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
|
1298
|
-
"0334da2a-91b0-42c5-6156-76a5eba87430"
|
1472
|
+
"0334da2a-91b0-42c5-6156-76a5eba87430",
|
1473
|
+
{
|
1474
|
+
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.",
|
1475
|
+
}
|
1299
1476
|
);
|
1300
1477
|
```
|
1301
1478
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../index";
|
5
|
+
import * as Airtop from "../../../../../api/index";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
import { AsyncConfig } from "../../../../types/AsyncConfig";
|
8
|
+
import { CreateAutomationRequestBodyConfiguration } from "../../../../types/CreateAutomationRequestBodyConfiguration";
|
9
|
+
export declare const AsyncCreateAutomationRequest: core.serialization.Schema<serializers.AsyncCreateAutomationRequest.Raw, Airtop.AsyncCreateAutomationRequest>;
|
10
|
+
export declare namespace AsyncCreateAutomationRequest {
|
11
|
+
interface Raw {
|
12
|
+
async?: AsyncConfig.Raw | null;
|
13
|
+
clientRequestId?: string | null;
|
14
|
+
configuration?: CreateAutomationRequestBodyConfiguration.Raw | null;
|
15
|
+
costThresholdCredits?: number | null;
|
16
|
+
timeThresholdSeconds?: number | null;
|
17
|
+
}
|
18
|
+
}
|