@airtop/sdk 0.1.5 → 0.1.6
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/profiles/client/Client.js +4 -4
- package/api/resources/sessions/client/Client.js +10 -10
- package/api/resources/windows/client/Client.d.ts +34 -0
- package/api/resources/windows/client/Client.js +203 -16
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +25 -0
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +5 -0
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +23 -0
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +5 -0
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +29 -0
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +5 -0
- package/api/resources/windows/client/requests/index.d.ts +3 -0
- package/api/types/ClickConfig.d.ts +4 -0
- package/api/types/ClickConfig.js +5 -0
- package/api/types/CustomProxy.d.ts +1 -1
- package/api/types/SessionConfigV1Proxy.d.ts +4 -1
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/profiles/client/Client.js +4 -4
- package/dist/api/resources/sessions/client/Client.js +10 -10
- package/dist/api/resources/windows/client/Client.d.ts +34 -0
- package/dist/api/resources/windows/client/Client.js +203 -16
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +5 -0
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +5 -0
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +5 -0
- package/dist/api/resources/windows/client/requests/index.d.ts +3 -0
- package/dist/api/types/ClickConfig.d.ts +4 -0
- package/dist/api/types/ClickConfig.js +5 -0
- package/dist/api/types/CustomProxy.d.ts +1 -1
- package/dist/api/types/SessionConfigV1Proxy.d.ts +4 -1
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +38 -0
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +38 -0
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +40 -0
- package/dist/serialization/resources/windows/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/windows/client/requests/index.js +7 -1
- package/dist/serialization/types/ClickConfig.d.ts +10 -0
- package/dist/serialization/types/ClickConfig.js +31 -0
- package/dist/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
- package/dist/serialization/types/SessionConfigV1Proxy.js +5 -1
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +196 -0
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +17 -0
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +38 -0
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +17 -0
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +38 -0
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +19 -0
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +40 -0
- package/serialization/resources/windows/client/requests/index.d.ts +3 -0
- package/serialization/resources/windows/client/requests/index.js +7 -1
- package/serialization/types/ClickConfig.d.ts +10 -0
- package/serialization/types/ClickConfig.js +31 -0
- package/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
- package/serialization/types/SessionConfigV1Proxy.js +5 -1
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js
ADDED
@@ -0,0 +1,38 @@
|
|
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.SessionHoverHandlerRequestBody = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const ClickConfig_1 = require("../../../../types/ClickConfig");
|
32
|
+
exports.SessionHoverHandlerRequestBody = core.serialization.object({
|
33
|
+
clientRequestId: core.serialization.string().optional(),
|
34
|
+
configuration: ClickConfig_1.ClickConfig.optional(),
|
35
|
+
costThresholdCredits: core.serialization.number().optional(),
|
36
|
+
elementDescription: core.serialization.string().optional(),
|
37
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
38
|
+
});
|
package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts
ADDED
@@ -0,0 +1,19 @@
|
|
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 { ClickConfig } from "../../../../types/ClickConfig";
|
8
|
+
export declare const SessionTypeHandlerRequestBody: core.serialization.Schema<serializers.SessionTypeHandlerRequestBody.Raw, Airtop.SessionTypeHandlerRequestBody>;
|
9
|
+
export declare namespace SessionTypeHandlerRequestBody {
|
10
|
+
interface Raw {
|
11
|
+
clientRequestId?: string | null;
|
12
|
+
configuration?: ClickConfig.Raw | null;
|
13
|
+
costThresholdCredits?: number | null;
|
14
|
+
elementDescription?: string | null;
|
15
|
+
pressEnterKey?: boolean | null;
|
16
|
+
text: string;
|
17
|
+
timeThresholdSeconds?: number | null;
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,40 @@
|
|
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.SessionTypeHandlerRequestBody = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const ClickConfig_1 = require("../../../../types/ClickConfig");
|
32
|
+
exports.SessionTypeHandlerRequestBody = core.serialization.object({
|
33
|
+
clientRequestId: core.serialization.string().optional(),
|
34
|
+
configuration: ClickConfig_1.ClickConfig.optional(),
|
35
|
+
costThresholdCredits: core.serialization.number().optional(),
|
36
|
+
elementDescription: core.serialization.string().optional(),
|
37
|
+
pressEnterKey: core.serialization.boolean().optional(),
|
38
|
+
text: core.serialization.string(),
|
39
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
40
|
+
});
|
@@ -1,4 +1,7 @@
|
|
1
1
|
export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
|
2
2
|
export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
|
3
|
+
export { SessionClickHandlerRequestBody } from "./SessionClickHandlerRequestBody";
|
4
|
+
export { SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
|
3
5
|
export { ScrapeContentRequest } from "./ScrapeContentRequest";
|
4
6
|
export { SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
|
7
|
+
export { SessionTypeHandlerRequestBody } from "./SessionTypeHandlerRequestBody";
|
@@ -1,11 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SessionSummaryHandlerRequestBody = exports.ScrapeContentRequest = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
|
3
|
+
exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionHoverHandlerRequestBody = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
|
4
4
|
var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
|
5
5
|
Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
|
6
6
|
var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
|
7
7
|
Object.defineProperty(exports, "WindowLoadUrlV1Body", { enumerable: true, get: function () { return WindowLoadUrlV1Body_1.WindowLoadUrlV1Body; } });
|
8
|
+
var SessionClickHandlerRequestBody_1 = require("./SessionClickHandlerRequestBody");
|
9
|
+
Object.defineProperty(exports, "SessionClickHandlerRequestBody", { enumerable: true, get: function () { return SessionClickHandlerRequestBody_1.SessionClickHandlerRequestBody; } });
|
10
|
+
var SessionHoverHandlerRequestBody_1 = require("./SessionHoverHandlerRequestBody");
|
11
|
+
Object.defineProperty(exports, "SessionHoverHandlerRequestBody", { enumerable: true, get: function () { return SessionHoverHandlerRequestBody_1.SessionHoverHandlerRequestBody; } });
|
8
12
|
var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
|
9
13
|
Object.defineProperty(exports, "ScrapeContentRequest", { enumerable: true, get: function () { return ScrapeContentRequest_1.ScrapeContentRequest; } });
|
10
14
|
var SessionSummaryHandlerRequestBody_1 = require("./SessionSummaryHandlerRequestBody");
|
11
15
|
Object.defineProperty(exports, "SessionSummaryHandlerRequestBody", { enumerable: true, get: function () { return SessionSummaryHandlerRequestBody_1.SessionSummaryHandlerRequestBody; } });
|
16
|
+
var SessionTypeHandlerRequestBody_1 = require("./SessionTypeHandlerRequestBody");
|
17
|
+
Object.defineProperty(exports, "SessionTypeHandlerRequestBody", { enumerable: true, get: function () { return SessionTypeHandlerRequestBody_1.SessionTypeHandlerRequestBody; } });
|
@@ -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 ClickConfig: core.serialization.Schema<serializers.ClickConfig.Raw, Airtop.ClickConfig>;
|
8
|
+
export declare namespace ClickConfig {
|
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.ClickConfig = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.ClickConfig = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
@@ -8,5 +8,5 @@ import { CustomProxy } from "./CustomProxy";
|
|
8
8
|
import { SessionConfigV1ProxyItem } from "./SessionConfigV1ProxyItem";
|
9
9
|
export declare const SessionConfigV1Proxy: core.serialization.Schema<serializers.SessionConfigV1Proxy.Raw, Airtop.SessionConfigV1Proxy>;
|
10
10
|
export declare namespace SessionConfigV1Proxy {
|
11
|
-
type Raw = CustomProxy.Raw | SessionConfigV1ProxyItem.Raw[];
|
11
|
+
type Raw = boolean | CustomProxy.Raw | SessionConfigV1ProxyItem.Raw[];
|
12
12
|
}
|
@@ -30,4 +30,8 @@ exports.SessionConfigV1Proxy = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const CustomProxy_1 = require("./CustomProxy");
|
32
32
|
const SessionConfigV1ProxyItem_1 = require("./SessionConfigV1ProxyItem");
|
33
|
-
exports.SessionConfigV1Proxy = core.serialization.undiscriminatedUnion([
|
33
|
+
exports.SessionConfigV1Proxy = core.serialization.undiscriminatedUnion([
|
34
|
+
core.serialization.boolean(),
|
35
|
+
CustomProxy_1.CustomProxy,
|
36
|
+
core.serialization.list(SessionConfigV1ProxyItem_1.SessionConfigV1ProxyItem),
|
37
|
+
]);
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./AiPromptResponse"), exports);
|
18
18
|
__exportStar(require("./AiResponseEnvelope"), exports);
|
19
|
+
__exportStar(require("./ClickConfig"), exports);
|
19
20
|
__exportStar(require("./ClientProvidedResponseMetadata"), exports);
|
20
21
|
__exportStar(require("./EmptyResponse"), exports);
|
21
22
|
__exportStar(require("./EmptyResponseJson"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -679,6 +679,136 @@ await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b
|
|
679
679
|
</dl>
|
680
680
|
</details>
|
681
681
|
|
682
|
+
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">click</a>(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse</code></summary>
|
683
|
+
<dl>
|
684
|
+
<dd>
|
685
|
+
|
686
|
+
#### 🔌 Usage
|
687
|
+
|
688
|
+
<dl>
|
689
|
+
<dd>
|
690
|
+
|
691
|
+
<dl>
|
692
|
+
<dd>
|
693
|
+
|
694
|
+
```typescript
|
695
|
+
await client.windows.click("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
696
|
+
elementDescription: "The login button",
|
697
|
+
});
|
698
|
+
```
|
699
|
+
|
700
|
+
</dd>
|
701
|
+
</dl>
|
702
|
+
</dd>
|
703
|
+
</dl>
|
704
|
+
|
705
|
+
#### ⚙️ Parameters
|
706
|
+
|
707
|
+
<dl>
|
708
|
+
<dd>
|
709
|
+
|
710
|
+
<dl>
|
711
|
+
<dd>
|
712
|
+
|
713
|
+
**sessionId:** `string` — The session id for the window.
|
714
|
+
|
715
|
+
</dd>
|
716
|
+
</dl>
|
717
|
+
|
718
|
+
<dl>
|
719
|
+
<dd>
|
720
|
+
|
721
|
+
**windowId:** `string` — The Airtop window id of the browser window.
|
722
|
+
|
723
|
+
</dd>
|
724
|
+
</dl>
|
725
|
+
|
726
|
+
<dl>
|
727
|
+
<dd>
|
728
|
+
|
729
|
+
**request:** `Airtop.SessionClickHandlerRequestBody`
|
730
|
+
|
731
|
+
</dd>
|
732
|
+
</dl>
|
733
|
+
|
734
|
+
<dl>
|
735
|
+
<dd>
|
736
|
+
|
737
|
+
**requestOptions:** `Windows.RequestOptions`
|
738
|
+
|
739
|
+
</dd>
|
740
|
+
</dl>
|
741
|
+
</dd>
|
742
|
+
</dl>
|
743
|
+
|
744
|
+
</dd>
|
745
|
+
</dl>
|
746
|
+
</details>
|
747
|
+
|
748
|
+
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">hover</a>(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse</code></summary>
|
749
|
+
<dl>
|
750
|
+
<dd>
|
751
|
+
|
752
|
+
#### 🔌 Usage
|
753
|
+
|
754
|
+
<dl>
|
755
|
+
<dd>
|
756
|
+
|
757
|
+
<dl>
|
758
|
+
<dd>
|
759
|
+
|
760
|
+
```typescript
|
761
|
+
await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430");
|
762
|
+
```
|
763
|
+
|
764
|
+
</dd>
|
765
|
+
</dl>
|
766
|
+
</dd>
|
767
|
+
</dl>
|
768
|
+
|
769
|
+
#### ⚙️ Parameters
|
770
|
+
|
771
|
+
<dl>
|
772
|
+
<dd>
|
773
|
+
|
774
|
+
<dl>
|
775
|
+
<dd>
|
776
|
+
|
777
|
+
**sessionId:** `string` — The session id for the window.
|
778
|
+
|
779
|
+
</dd>
|
780
|
+
</dl>
|
781
|
+
|
782
|
+
<dl>
|
783
|
+
<dd>
|
784
|
+
|
785
|
+
**windowId:** `string` — The Airtop window id of the browser window.
|
786
|
+
|
787
|
+
</dd>
|
788
|
+
</dl>
|
789
|
+
|
790
|
+
<dl>
|
791
|
+
<dd>
|
792
|
+
|
793
|
+
**request:** `Airtop.SessionHoverHandlerRequestBody`
|
794
|
+
|
795
|
+
</dd>
|
796
|
+
</dl>
|
797
|
+
|
798
|
+
<dl>
|
799
|
+
<dd>
|
800
|
+
|
801
|
+
**requestOptions:** `Windows.RequestOptions`
|
802
|
+
|
803
|
+
</dd>
|
804
|
+
</dl>
|
805
|
+
</dd>
|
806
|
+
</dl>
|
807
|
+
|
808
|
+
</dd>
|
809
|
+
</dl>
|
810
|
+
</details>
|
811
|
+
|
682
812
|
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">pageQuery</a>(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse</code></summary>
|
683
813
|
<dl>
|
684
814
|
<dd>
|
@@ -968,3 +1098,69 @@ await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0
|
|
968
1098
|
</dd>
|
969
1099
|
</dl>
|
970
1100
|
</details>
|
1101
|
+
|
1102
|
+
<details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">type</a>(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse</code></summary>
|
1103
|
+
<dl>
|
1104
|
+
<dd>
|
1105
|
+
|
1106
|
+
#### 🔌 Usage
|
1107
|
+
|
1108
|
+
<dl>
|
1109
|
+
<dd>
|
1110
|
+
|
1111
|
+
<dl>
|
1112
|
+
<dd>
|
1113
|
+
|
1114
|
+
```typescript
|
1115
|
+
await client.windows.type("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
1116
|
+
text: "Example text",
|
1117
|
+
});
|
1118
|
+
```
|
1119
|
+
|
1120
|
+
</dd>
|
1121
|
+
</dl>
|
1122
|
+
</dd>
|
1123
|
+
</dl>
|
1124
|
+
|
1125
|
+
#### ⚙️ Parameters
|
1126
|
+
|
1127
|
+
<dl>
|
1128
|
+
<dd>
|
1129
|
+
|
1130
|
+
<dl>
|
1131
|
+
<dd>
|
1132
|
+
|
1133
|
+
**sessionId:** `string` — The session id for the window.
|
1134
|
+
|
1135
|
+
</dd>
|
1136
|
+
</dl>
|
1137
|
+
|
1138
|
+
<dl>
|
1139
|
+
<dd>
|
1140
|
+
|
1141
|
+
**windowId:** `string` — The Airtop window id of the browser window.
|
1142
|
+
|
1143
|
+
</dd>
|
1144
|
+
</dl>
|
1145
|
+
|
1146
|
+
<dl>
|
1147
|
+
<dd>
|
1148
|
+
|
1149
|
+
**request:** `Airtop.SessionTypeHandlerRequestBody`
|
1150
|
+
|
1151
|
+
</dd>
|
1152
|
+
</dl>
|
1153
|
+
|
1154
|
+
<dl>
|
1155
|
+
<dd>
|
1156
|
+
|
1157
|
+
**requestOptions:** `Windows.RequestOptions`
|
1158
|
+
|
1159
|
+
</dd>
|
1160
|
+
</dl>
|
1161
|
+
</dd>
|
1162
|
+
</dl>
|
1163
|
+
|
1164
|
+
</dd>
|
1165
|
+
</dl>
|
1166
|
+
</details>
|
@@ -0,0 +1,17 @@
|
|
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 { ClickConfig } from "../../../../types/ClickConfig";
|
8
|
+
export declare const SessionClickHandlerRequestBody: core.serialization.Schema<serializers.SessionClickHandlerRequestBody.Raw, Airtop.SessionClickHandlerRequestBody>;
|
9
|
+
export declare namespace SessionClickHandlerRequestBody {
|
10
|
+
interface Raw {
|
11
|
+
clientRequestId?: string | null;
|
12
|
+
configuration?: ClickConfig.Raw | null;
|
13
|
+
costThresholdCredits?: number | null;
|
14
|
+
elementDescription: string;
|
15
|
+
timeThresholdSeconds?: number | null;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,38 @@
|
|
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.SessionClickHandlerRequestBody = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const ClickConfig_1 = require("../../../../types/ClickConfig");
|
32
|
+
exports.SessionClickHandlerRequestBody = core.serialization.object({
|
33
|
+
clientRequestId: core.serialization.string().optional(),
|
34
|
+
configuration: ClickConfig_1.ClickConfig.optional(),
|
35
|
+
costThresholdCredits: core.serialization.number().optional(),
|
36
|
+
elementDescription: core.serialization.string(),
|
37
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
38
|
+
});
|
@@ -0,0 +1,17 @@
|
|
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 { ClickConfig } from "../../../../types/ClickConfig";
|
8
|
+
export declare const SessionHoverHandlerRequestBody: core.serialization.Schema<serializers.SessionHoverHandlerRequestBody.Raw, Airtop.SessionHoverHandlerRequestBody>;
|
9
|
+
export declare namespace SessionHoverHandlerRequestBody {
|
10
|
+
interface Raw {
|
11
|
+
clientRequestId?: string | null;
|
12
|
+
configuration?: ClickConfig.Raw | null;
|
13
|
+
costThresholdCredits?: number | null;
|
14
|
+
elementDescription?: string | null;
|
15
|
+
timeThresholdSeconds?: number | null;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,38 @@
|
|
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.SessionHoverHandlerRequestBody = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const ClickConfig_1 = require("../../../../types/ClickConfig");
|
32
|
+
exports.SessionHoverHandlerRequestBody = core.serialization.object({
|
33
|
+
clientRequestId: core.serialization.string().optional(),
|
34
|
+
configuration: ClickConfig_1.ClickConfig.optional(),
|
35
|
+
costThresholdCredits: core.serialization.number().optional(),
|
36
|
+
elementDescription: core.serialization.string().optional(),
|
37
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
38
|
+
});
|
@@ -0,0 +1,19 @@
|
|
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 { ClickConfig } from "../../../../types/ClickConfig";
|
8
|
+
export declare const SessionTypeHandlerRequestBody: core.serialization.Schema<serializers.SessionTypeHandlerRequestBody.Raw, Airtop.SessionTypeHandlerRequestBody>;
|
9
|
+
export declare namespace SessionTypeHandlerRequestBody {
|
10
|
+
interface Raw {
|
11
|
+
clientRequestId?: string | null;
|
12
|
+
configuration?: ClickConfig.Raw | null;
|
13
|
+
costThresholdCredits?: number | null;
|
14
|
+
elementDescription?: string | null;
|
15
|
+
pressEnterKey?: boolean | null;
|
16
|
+
text: string;
|
17
|
+
timeThresholdSeconds?: number | null;
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,40 @@
|
|
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.SessionTypeHandlerRequestBody = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const ClickConfig_1 = require("../../../../types/ClickConfig");
|
32
|
+
exports.SessionTypeHandlerRequestBody = core.serialization.object({
|
33
|
+
clientRequestId: core.serialization.string().optional(),
|
34
|
+
configuration: ClickConfig_1.ClickConfig.optional(),
|
35
|
+
costThresholdCredits: core.serialization.number().optional(),
|
36
|
+
elementDescription: core.serialization.string().optional(),
|
37
|
+
pressEnterKey: core.serialization.boolean().optional(),
|
38
|
+
text: core.serialization.string(),
|
39
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
40
|
+
});
|
@@ -1,4 +1,7 @@
|
|
1
1
|
export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
|
2
2
|
export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
|
3
|
+
export { SessionClickHandlerRequestBody } from "./SessionClickHandlerRequestBody";
|
4
|
+
export { SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
|
3
5
|
export { ScrapeContentRequest } from "./ScrapeContentRequest";
|
4
6
|
export { SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
|
7
|
+
export { SessionTypeHandlerRequestBody } from "./SessionTypeHandlerRequestBody";
|
@@ -1,11 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SessionSummaryHandlerRequestBody = exports.ScrapeContentRequest = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
|
3
|
+
exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionHoverHandlerRequestBody = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
|
4
4
|
var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
|
5
5
|
Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
|
6
6
|
var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
|
7
7
|
Object.defineProperty(exports, "WindowLoadUrlV1Body", { enumerable: true, get: function () { return WindowLoadUrlV1Body_1.WindowLoadUrlV1Body; } });
|
8
|
+
var SessionClickHandlerRequestBody_1 = require("./SessionClickHandlerRequestBody");
|
9
|
+
Object.defineProperty(exports, "SessionClickHandlerRequestBody", { enumerable: true, get: function () { return SessionClickHandlerRequestBody_1.SessionClickHandlerRequestBody; } });
|
10
|
+
var SessionHoverHandlerRequestBody_1 = require("./SessionHoverHandlerRequestBody");
|
11
|
+
Object.defineProperty(exports, "SessionHoverHandlerRequestBody", { enumerable: true, get: function () { return SessionHoverHandlerRequestBody_1.SessionHoverHandlerRequestBody; } });
|
8
12
|
var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
|
9
13
|
Object.defineProperty(exports, "ScrapeContentRequest", { enumerable: true, get: function () { return ScrapeContentRequest_1.ScrapeContentRequest; } });
|
10
14
|
var SessionSummaryHandlerRequestBody_1 = require("./SessionSummaryHandlerRequestBody");
|
11
15
|
Object.defineProperty(exports, "SessionSummaryHandlerRequestBody", { enumerable: true, get: function () { return SessionSummaryHandlerRequestBody_1.SessionSummaryHandlerRequestBody; } });
|
16
|
+
var SessionTypeHandlerRequestBody_1 = require("./SessionTypeHandlerRequestBody");
|
17
|
+
Object.defineProperty(exports, "SessionTypeHandlerRequestBody", { enumerable: true, get: function () { return SessionTypeHandlerRequestBody_1.SessionTypeHandlerRequestBody; } });
|
@@ -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 ClickConfig: core.serialization.Schema<serializers.ClickConfig.Raw, Airtop.ClickConfig>;
|
8
|
+
export declare namespace ClickConfig {
|
9
|
+
type Raw = Record<string, unknown>;
|
10
|
+
}
|