@airtop/sdk 0.1.18 → 0.1.19
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 +2 -2
- package/api/resources/sessions/client/Client.js +14 -14
- package/api/resources/windows/client/Client.js +26 -26
- package/api/types/AirtopProxyConfiguration.d.ts +9 -0
- package/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
- package/api/types/Proxy.d.ts +9 -6
- package/api/types/ProxyConfigurationKind.d.ts +9 -0
- package/api/types/ProxyCredentials.d.ts +11 -0
- package/api/types/SessionConfigV1Proxy.d.ts +4 -4
- package/api/types/VisualAnalysisConfig.d.ts +1 -1
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +3 -2
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -0
- package/api/types/index.d.ts +3 -2
- package/api/types/index.js +3 -2
- package/dist/api/resources/profiles/client/Client.js +2 -2
- package/dist/api/resources/sessions/client/Client.js +14 -14
- package/dist/api/resources/windows/client/Client.js +26 -26
- package/dist/api/types/AirtopProxyConfiguration.d.ts +9 -0
- package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
- package/dist/api/types/Proxy.d.ts +9 -6
- package/dist/api/types/ProxyConfigurationKind.d.ts +9 -0
- package/dist/api/types/ProxyConfigurationKind.js +5 -0
- package/dist/api/types/ProxyCredentials.d.ts +11 -0
- package/dist/api/types/ProxyCredentials.js +5 -0
- package/dist/api/types/SessionConfigV1Proxy.d.ts +4 -4
- package/dist/api/types/VisualAnalysisConfig.d.ts +1 -1
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +3 -2
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -0
- package/dist/api/types/index.d.ts +3 -2
- package/dist/api/types/index.js +3 -2
- package/dist/serialization/types/AirtopProxyConfiguration.d.ts +13 -0
- package/dist/serialization/types/{SessionConfigV1ProxyItem.js → AirtopProxyConfiguration.js} +4 -5
- package/dist/serialization/types/Proxy.d.ts +4 -6
- package/dist/serialization/types/Proxy.js +3 -5
- package/dist/serialization/types/ProxyConfigurationKind.d.ts +14 -0
- package/dist/serialization/types/{CustomProxy.js → ProxyConfigurationKind.js} +5 -2
- package/dist/serialization/types/ProxyCredentials.d.ts +14 -0
- package/{serialization/types/SessionConfigV1ProxyItem.js → dist/serialization/types/ProxyCredentials.js} +5 -5
- package/dist/serialization/types/SessionConfigV1Proxy.d.ts +3 -3
- package/dist/serialization/types/SessionConfigV1Proxy.js +4 -4
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -1
- package/dist/serialization/types/index.d.ts +3 -2
- package/dist/serialization/types/index.js +3 -2
- package/package.json +1 -1
- package/serialization/types/AirtopProxyConfiguration.d.ts +13 -0
- package/serialization/types/AirtopProxyConfiguration.js +34 -0
- package/serialization/types/Proxy.d.ts +4 -6
- package/serialization/types/Proxy.js +3 -5
- package/serialization/types/ProxyConfigurationKind.d.ts +14 -0
- package/serialization/types/{CustomProxy.js → ProxyConfigurationKind.js} +5 -2
- package/serialization/types/ProxyCredentials.d.ts +14 -0
- package/serialization/types/ProxyCredentials.js +35 -0
- package/serialization/types/SessionConfigV1Proxy.d.ts +3 -3
- package/serialization/types/SessionConfigV1Proxy.js +4 -4
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -1
- package/serialization/types/index.d.ts +3 -2
- package/serialization/types/index.js +3 -2
- package/api/types/CustomProxy.d.ts +0 -14
- package/api/types/SessionConfigV1ProxyItem.d.ts +0 -12
- package/dist/api/types/CustomProxy.d.ts +0 -14
- package/dist/api/types/SessionConfigV1ProxyItem.d.ts +0 -12
- package/dist/serialization/types/CustomProxy.d.ts +0 -11
- package/dist/serialization/types/SessionConfigV1ProxyItem.d.ts +0 -14
- package/serialization/types/CustomProxy.d.ts +0 -11
- package/serialization/types/SessionConfigV1ProxyItem.d.ts +0 -14
- /package/api/types/{CustomProxy.js → AirtopProxyConfiguration.js} +0 -0
- /package/api/types/{SessionConfigV1ProxyItem.js → ProxyConfigurationKind.js} +0 -0
- /package/{dist/api/types/CustomProxy.js → api/types/ProxyCredentials.js} +0 -0
- /package/dist/api/types/{SessionConfigV1ProxyItem.js → AirtopProxyConfiguration.js} +0 -0
@@ -1,11 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
import * as Airtop from "../index";
|
4
5
|
/**
|
5
|
-
*
|
6
|
+
* Configuration for a single custom proxy.
|
6
7
|
*/
|
7
|
-
export
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
export declare type Proxy =
|
9
|
+
/**
|
10
|
+
* Url of the proxy. Or `default` to use Airtop-provided proxy. */
|
11
|
+
string | Airtop.AirtopProxyConfiguration
|
12
|
+
/**
|
13
|
+
* Proxy object with url of the proxy as a parameter. Takes optional username and password. */
|
14
|
+
| Airtop.ProxyCredentials;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Proxy object with url of the proxy as a parameter. Takes optional username and password.
|
6
|
+
*/
|
7
|
+
export interface ProxyCredentials {
|
8
|
+
password?: string;
|
9
|
+
url: string;
|
10
|
+
username?: string;
|
11
|
+
}
|
@@ -7,11 +7,11 @@ import * as Airtop from "../index";
|
|
7
7
|
*/
|
8
8
|
export declare type SessionConfigV1Proxy =
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* Use Airtop-provided proxy. */
|
11
11
|
boolean
|
12
12
|
/**
|
13
13
|
* Configuration for a single custom proxy. */
|
14
|
-
| Airtop.
|
14
|
+
| Airtop.Proxy
|
15
15
|
/**
|
16
|
-
*
|
17
|
-
| Airtop.
|
16
|
+
* You can set multiple proxies. You associate each proxy with a domain pattern. If the domain matches the pattern, the proxy is used. Pattern can contain `?` to match any single character and / or `*` to match any sequence of characters. For example, `*.example.com` will match `www.example.com` and `sub.example.com`. */
|
17
|
+
| Airtop.ProxyConfigurationKind[];
|
@@ -9,7 +9,7 @@ export interface VisualAnalysisConfig {
|
|
9
9
|
overlapPercentage?: number;
|
10
10
|
/** The direction to partition the screenshot into chunks: 'vertical', 'horizontal', or 'bidirectional'. Defaults to 'vertical', which is recommended for most web pages. For optimal results when partitioning in a single direction, ensure the perpendicular dimension does not exceed 1920 pixels. */
|
11
11
|
partitionDirection?: Airtop.VisualAnalysisConfigPartitionDirection;
|
12
|
-
/** [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'first' or bestMatch'. Defaults to '
|
12
|
+
/** [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'auto', 'first' or 'bestMatch'. Defaults to 'auto'. Use 'auto' to let the system decide the best strategy. Use 'first' to select the first visual element that matches the element description. This will favor results that appear higher on the page in the event of multiple matches. Use 'bestMatch' to analyze the complete page and apply judgement to select the best candidate from all potential matches. */
|
13
13
|
resultSelectionStrategy?: Airtop.VisualAnalysisConfigResultSelectionStrategy;
|
14
14
|
/** Scan mode only: The delay between scrolls in milliseconds. Defaults to 1000 (milliseconds). */
|
15
15
|
scanScrollDelay?: number;
|
@@ -2,10 +2,11 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
/**
|
5
|
-
* [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'first' or bestMatch'. Defaults to '
|
5
|
+
* [Experimental] The strategy to use for selecting the match using visual analysis. Can be 'auto', 'first' or 'bestMatch'. Defaults to 'auto'. Use 'auto' to let the system decide the best strategy. Use 'first' to select the first visual element that matches the element description. This will favor results that appear higher on the page in the event of multiple matches. Use 'bestMatch' to analyze the complete page and apply judgement to select the best candidate from all potential matches.
|
6
6
|
*/
|
7
|
-
export declare type VisualAnalysisConfigResultSelectionStrategy = "first" | "bestMatch";
|
7
|
+
export declare type VisualAnalysisConfigResultSelectionStrategy = "first" | "bestMatch" | "auto";
|
8
8
|
export declare const VisualAnalysisConfigResultSelectionStrategy: {
|
9
9
|
readonly First: "first";
|
10
10
|
readonly BestMatch: "bestMatch";
|
11
|
+
readonly Auto: "auto";
|
11
12
|
};
|
@@ -30,9 +30,10 @@ export * from "./ScrapeResponseOutput";
|
|
30
30
|
export * from "./ScreenshotConfig";
|
31
31
|
export * from "./ScreenshotMetadata";
|
32
32
|
export * from "./ScreenshotRequestConfig";
|
33
|
+
export * from "./AirtopProxyConfiguration";
|
34
|
+
export * from "./ProxyCredentials";
|
33
35
|
export * from "./Proxy";
|
34
|
-
export * from "./
|
35
|
-
export * from "./SessionConfigV1ProxyItem";
|
36
|
+
export * from "./ProxyConfigurationKind";
|
36
37
|
export * from "./SessionConfigV1Proxy";
|
37
38
|
export * from "./SessionConfigV1";
|
38
39
|
export * from "./SessionEventMessage";
|
package/dist/api/types/index.js
CHANGED
@@ -46,9 +46,10 @@ __exportStar(require("./ScrapeResponseOutput"), exports);
|
|
46
46
|
__exportStar(require("./ScreenshotConfig"), exports);
|
47
47
|
__exportStar(require("./ScreenshotMetadata"), exports);
|
48
48
|
__exportStar(require("./ScreenshotRequestConfig"), exports);
|
49
|
+
__exportStar(require("./AirtopProxyConfiguration"), exports);
|
50
|
+
__exportStar(require("./ProxyCredentials"), exports);
|
49
51
|
__exportStar(require("./Proxy"), exports);
|
50
|
-
__exportStar(require("./
|
51
|
-
__exportStar(require("./SessionConfigV1ProxyItem"), exports);
|
52
|
+
__exportStar(require("./ProxyConfigurationKind"), exports);
|
52
53
|
__exportStar(require("./SessionConfigV1Proxy"), exports);
|
53
54
|
__exportStar(require("./SessionConfigV1"), exports);
|
54
55
|
__exportStar(require("./SessionEventMessage"), exports);
|
@@ -0,0 +1,13 @@
|
|
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 AirtopProxyConfiguration: core.serialization.ObjectSchema<serializers.AirtopProxyConfiguration.Raw, Airtop.AirtopProxyConfiguration>;
|
8
|
+
export declare namespace AirtopProxyConfiguration {
|
9
|
+
interface Raw {
|
10
|
+
country?: string | null;
|
11
|
+
sticky?: boolean | null;
|
12
|
+
}
|
13
|
+
}
|
package/dist/serialization/types/{SessionConfigV1ProxyItem.js → AirtopProxyConfiguration.js}
RENAMED
@@ -26,10 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.AirtopProxyConfiguration = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
relay: CustomProxy_1.CustomProxy,
|
31
|
+
exports.AirtopProxyConfiguration = core.serialization.object({
|
32
|
+
country: core.serialization.string().optional(),
|
33
|
+
sticky: core.serialization.boolean().optional(),
|
35
34
|
});
|
@@ -4,11 +4,9 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Airtop from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
-
|
7
|
+
import { AirtopProxyConfiguration } from "./AirtopProxyConfiguration";
|
8
|
+
import { ProxyCredentials } from "./ProxyCredentials";
|
9
|
+
export declare const Proxy: core.serialization.Schema<serializers.Proxy.Raw, Airtop.Proxy>;
|
8
10
|
export declare namespace Proxy {
|
9
|
-
|
10
|
-
password?: string | null;
|
11
|
-
url: string;
|
12
|
-
username?: string | null;
|
13
|
-
}
|
11
|
+
type Raw = string | AirtopProxyConfiguration.Raw | ProxyCredentials.Raw;
|
14
12
|
}
|
@@ -28,8 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.Proxy = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
username: core.serialization.string().optional(),
|
35
|
-
});
|
31
|
+
const AirtopProxyConfiguration_1 = require("./AirtopProxyConfiguration");
|
32
|
+
const ProxyCredentials_1 = require("./ProxyCredentials");
|
33
|
+
exports.Proxy = core.serialization.undiscriminatedUnion([core.serialization.string(), AirtopProxyConfiguration_1.AirtopProxyConfiguration, ProxyCredentials_1.ProxyCredentials]);
|
@@ -0,0 +1,14 @@
|
|
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 { Proxy } from "./Proxy";
|
8
|
+
export declare const ProxyConfigurationKind: core.serialization.ObjectSchema<serializers.ProxyConfigurationKind.Raw, Airtop.ProxyConfigurationKind>;
|
9
|
+
export declare namespace ProxyConfigurationKind {
|
10
|
+
interface Raw {
|
11
|
+
domainPattern: string;
|
12
|
+
relay: Proxy.Raw;
|
13
|
+
}
|
14
|
+
}
|
@@ -26,7 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.ProxyConfigurationKind = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const Proxy_1 = require("./Proxy");
|
32
|
-
exports.
|
32
|
+
exports.ProxyConfigurationKind = core.serialization.object({
|
33
|
+
domainPattern: core.serialization.string(),
|
34
|
+
relay: Proxy_1.Proxy,
|
35
|
+
});
|
@@ -0,0 +1,14 @@
|
|
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 ProxyCredentials: core.serialization.ObjectSchema<serializers.ProxyCredentials.Raw, Airtop.ProxyCredentials>;
|
8
|
+
export declare namespace ProxyCredentials {
|
9
|
+
interface Raw {
|
10
|
+
password?: string | null;
|
11
|
+
url: string;
|
12
|
+
username?: string | null;
|
13
|
+
}
|
14
|
+
}
|
@@ -26,10 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.ProxyCredentials = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
exports.ProxyCredentials = core.serialization.object({
|
32
|
+
password: core.serialization.string().optional(),
|
33
|
+
url: core.serialization.string(),
|
34
|
+
username: core.serialization.string().optional(),
|
35
35
|
});
|
@@ -4,9 +4,9 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Airtop from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
-
import {
|
8
|
-
import {
|
7
|
+
import { Proxy } from "./Proxy";
|
8
|
+
import { ProxyConfigurationKind } from "./ProxyConfigurationKind";
|
9
9
|
export declare const SessionConfigV1Proxy: core.serialization.Schema<serializers.SessionConfigV1Proxy.Raw, Airtop.SessionConfigV1Proxy>;
|
10
10
|
export declare namespace SessionConfigV1Proxy {
|
11
|
-
type Raw = boolean |
|
11
|
+
type Raw = boolean | Proxy.Raw | ProxyConfigurationKind.Raw[];
|
12
12
|
}
|
@@ -28,10 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.SessionConfigV1Proxy = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
const
|
32
|
-
const
|
31
|
+
const Proxy_1 = require("./Proxy");
|
32
|
+
const ProxyConfigurationKind_1 = require("./ProxyConfigurationKind");
|
33
33
|
exports.SessionConfigV1Proxy = core.serialization.undiscriminatedUnion([
|
34
34
|
core.serialization.boolean(),
|
35
|
-
|
36
|
-
core.serialization.list(
|
35
|
+
Proxy_1.Proxy,
|
36
|
+
core.serialization.list(ProxyConfigurationKind_1.ProxyConfigurationKind),
|
37
37
|
]);
|
@@ -6,5 +6,5 @@ import * as Airtop from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const VisualAnalysisConfigResultSelectionStrategy: core.serialization.Schema<serializers.VisualAnalysisConfigResultSelectionStrategy.Raw, Airtop.VisualAnalysisConfigResultSelectionStrategy>;
|
8
8
|
export declare namespace VisualAnalysisConfigResultSelectionStrategy {
|
9
|
-
type Raw = "first" | "bestMatch";
|
9
|
+
type Raw = "first" | "bestMatch" | "auto";
|
10
10
|
}
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.VisualAnalysisConfigResultSelectionStrategy = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
exports.VisualAnalysisConfigResultSelectionStrategy = core.serialization.enum_(["first", "bestMatch"]);
|
31
|
+
exports.VisualAnalysisConfigResultSelectionStrategy = core.serialization.enum_(["first", "bestMatch", "auto"]);
|
@@ -30,9 +30,10 @@ export * from "./ScrapeResponseOutput";
|
|
30
30
|
export * from "./ScreenshotConfig";
|
31
31
|
export * from "./ScreenshotMetadata";
|
32
32
|
export * from "./ScreenshotRequestConfig";
|
33
|
+
export * from "./AirtopProxyConfiguration";
|
34
|
+
export * from "./ProxyCredentials";
|
33
35
|
export * from "./Proxy";
|
34
|
-
export * from "./
|
35
|
-
export * from "./SessionConfigV1ProxyItem";
|
36
|
+
export * from "./ProxyConfigurationKind";
|
36
37
|
export * from "./SessionConfigV1Proxy";
|
37
38
|
export * from "./SessionConfigV1";
|
38
39
|
export * from "./SessionEventMessage";
|
@@ -46,9 +46,10 @@ __exportStar(require("./ScrapeResponseOutput"), exports);
|
|
46
46
|
__exportStar(require("./ScreenshotConfig"), exports);
|
47
47
|
__exportStar(require("./ScreenshotMetadata"), exports);
|
48
48
|
__exportStar(require("./ScreenshotRequestConfig"), exports);
|
49
|
+
__exportStar(require("./AirtopProxyConfiguration"), exports);
|
50
|
+
__exportStar(require("./ProxyCredentials"), exports);
|
49
51
|
__exportStar(require("./Proxy"), exports);
|
50
|
-
__exportStar(require("./
|
51
|
-
__exportStar(require("./SessionConfigV1ProxyItem"), exports);
|
52
|
+
__exportStar(require("./ProxyConfigurationKind"), exports);
|
52
53
|
__exportStar(require("./SessionConfigV1Proxy"), exports);
|
53
54
|
__exportStar(require("./SessionConfigV1"), exports);
|
54
55
|
__exportStar(require("./SessionEventMessage"), exports);
|
package/package.json
CHANGED
@@ -0,0 +1,13 @@
|
|
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 AirtopProxyConfiguration: core.serialization.ObjectSchema<serializers.AirtopProxyConfiguration.Raw, Airtop.AirtopProxyConfiguration>;
|
8
|
+
export declare namespace AirtopProxyConfiguration {
|
9
|
+
interface Raw {
|
10
|
+
country?: string | null;
|
11
|
+
sticky?: boolean | null;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,34 @@
|
|
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.AirtopProxyConfiguration = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.AirtopProxyConfiguration = core.serialization.object({
|
32
|
+
country: core.serialization.string().optional(),
|
33
|
+
sticky: core.serialization.boolean().optional(),
|
34
|
+
});
|
@@ -4,11 +4,9 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Airtop from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
-
|
7
|
+
import { AirtopProxyConfiguration } from "./AirtopProxyConfiguration";
|
8
|
+
import { ProxyCredentials } from "./ProxyCredentials";
|
9
|
+
export declare const Proxy: core.serialization.Schema<serializers.Proxy.Raw, Airtop.Proxy>;
|
8
10
|
export declare namespace Proxy {
|
9
|
-
|
10
|
-
password?: string | null;
|
11
|
-
url: string;
|
12
|
-
username?: string | null;
|
13
|
-
}
|
11
|
+
type Raw = string | AirtopProxyConfiguration.Raw | ProxyCredentials.Raw;
|
14
12
|
}
|
@@ -28,8 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.Proxy = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
username: core.serialization.string().optional(),
|
35
|
-
});
|
31
|
+
const AirtopProxyConfiguration_1 = require("./AirtopProxyConfiguration");
|
32
|
+
const ProxyCredentials_1 = require("./ProxyCredentials");
|
33
|
+
exports.Proxy = core.serialization.undiscriminatedUnion([core.serialization.string(), AirtopProxyConfiguration_1.AirtopProxyConfiguration, ProxyCredentials_1.ProxyCredentials]);
|
@@ -0,0 +1,14 @@
|
|
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 { Proxy } from "./Proxy";
|
8
|
+
export declare const ProxyConfigurationKind: core.serialization.ObjectSchema<serializers.ProxyConfigurationKind.Raw, Airtop.ProxyConfigurationKind>;
|
9
|
+
export declare namespace ProxyConfigurationKind {
|
10
|
+
interface Raw {
|
11
|
+
domainPattern: string;
|
12
|
+
relay: Proxy.Raw;
|
13
|
+
}
|
14
|
+
}
|
@@ -26,7 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
29
|
+
exports.ProxyConfigurationKind = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const Proxy_1 = require("./Proxy");
|
32
|
-
exports.
|
32
|
+
exports.ProxyConfigurationKind = core.serialization.object({
|
33
|
+
domainPattern: core.serialization.string(),
|
34
|
+
relay: Proxy_1.Proxy,
|
35
|
+
});
|
@@ -0,0 +1,14 @@
|
|
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 ProxyCredentials: core.serialization.ObjectSchema<serializers.ProxyCredentials.Raw, Airtop.ProxyCredentials>;
|
8
|
+
export declare namespace ProxyCredentials {
|
9
|
+
interface Raw {
|
10
|
+
password?: string | null;
|
11
|
+
url: string;
|
12
|
+
username?: string | null;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,35 @@
|
|
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.ProxyCredentials = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.ProxyCredentials = core.serialization.object({
|
32
|
+
password: core.serialization.string().optional(),
|
33
|
+
url: core.serialization.string(),
|
34
|
+
username: core.serialization.string().optional(),
|
35
|
+
});
|
@@ -4,9 +4,9 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Airtop from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
-
import {
|
8
|
-
import {
|
7
|
+
import { Proxy } from "./Proxy";
|
8
|
+
import { ProxyConfigurationKind } from "./ProxyConfigurationKind";
|
9
9
|
export declare const SessionConfigV1Proxy: core.serialization.Schema<serializers.SessionConfigV1Proxy.Raw, Airtop.SessionConfigV1Proxy>;
|
10
10
|
export declare namespace SessionConfigV1Proxy {
|
11
|
-
type Raw = boolean |
|
11
|
+
type Raw = boolean | Proxy.Raw | ProxyConfigurationKind.Raw[];
|
12
12
|
}
|
@@ -28,10 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.SessionConfigV1Proxy = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
const
|
32
|
-
const
|
31
|
+
const Proxy_1 = require("./Proxy");
|
32
|
+
const ProxyConfigurationKind_1 = require("./ProxyConfigurationKind");
|
33
33
|
exports.SessionConfigV1Proxy = core.serialization.undiscriminatedUnion([
|
34
34
|
core.serialization.boolean(),
|
35
|
-
|
36
|
-
core.serialization.list(
|
35
|
+
Proxy_1.Proxy,
|
36
|
+
core.serialization.list(ProxyConfigurationKind_1.ProxyConfigurationKind),
|
37
37
|
]);
|
@@ -6,5 +6,5 @@ import * as Airtop from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
7
7
|
export declare const VisualAnalysisConfigResultSelectionStrategy: core.serialization.Schema<serializers.VisualAnalysisConfigResultSelectionStrategy.Raw, Airtop.VisualAnalysisConfigResultSelectionStrategy>;
|
8
8
|
export declare namespace VisualAnalysisConfigResultSelectionStrategy {
|
9
|
-
type Raw = "first" | "bestMatch";
|
9
|
+
type Raw = "first" | "bestMatch" | "auto";
|
10
10
|
}
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.VisualAnalysisConfigResultSelectionStrategy = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
|
-
exports.VisualAnalysisConfigResultSelectionStrategy = core.serialization.enum_(["first", "bestMatch"]);
|
31
|
+
exports.VisualAnalysisConfigResultSelectionStrategy = core.serialization.enum_(["first", "bestMatch", "auto"]);
|
@@ -30,9 +30,10 @@ export * from "./ScrapeResponseOutput";
|
|
30
30
|
export * from "./ScreenshotConfig";
|
31
31
|
export * from "./ScreenshotMetadata";
|
32
32
|
export * from "./ScreenshotRequestConfig";
|
33
|
+
export * from "./AirtopProxyConfiguration";
|
34
|
+
export * from "./ProxyCredentials";
|
33
35
|
export * from "./Proxy";
|
34
|
-
export * from "./
|
35
|
-
export * from "./SessionConfigV1ProxyItem";
|
36
|
+
export * from "./ProxyConfigurationKind";
|
36
37
|
export * from "./SessionConfigV1Proxy";
|
37
38
|
export * from "./SessionConfigV1";
|
38
39
|
export * from "./SessionEventMessage";
|
@@ -46,9 +46,10 @@ __exportStar(require("./ScrapeResponseOutput"), exports);
|
|
46
46
|
__exportStar(require("./ScreenshotConfig"), exports);
|
47
47
|
__exportStar(require("./ScreenshotMetadata"), exports);
|
48
48
|
__exportStar(require("./ScreenshotRequestConfig"), exports);
|
49
|
+
__exportStar(require("./AirtopProxyConfiguration"), exports);
|
50
|
+
__exportStar(require("./ProxyCredentials"), exports);
|
49
51
|
__exportStar(require("./Proxy"), exports);
|
50
|
-
__exportStar(require("./
|
51
|
-
__exportStar(require("./SessionConfigV1ProxyItem"), exports);
|
52
|
+
__exportStar(require("./ProxyConfigurationKind"), exports);
|
52
53
|
__exportStar(require("./SessionConfigV1Proxy"), exports);
|
53
54
|
__exportStar(require("./SessionConfigV1"), exports);
|
54
55
|
__exportStar(require("./SessionEventMessage"), exports);
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Airtop from "../index";
|
5
|
-
/**
|
6
|
-
* Configuration for a single custom proxy.
|
7
|
-
*/
|
8
|
-
export declare type CustomProxy =
|
9
|
-
/**
|
10
|
-
* url of the proxy. Or "default" to use airtop provided proxy. */
|
11
|
-
string
|
12
|
-
/**
|
13
|
-
* Proxy object with url of the proxy as a parameter. Takes optional username and password. */
|
14
|
-
| Airtop.Proxy;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
3
|
-
*/
|
4
|
-
import * as Airtop from "../index";
|
5
|
-
/**
|
6
|
-
* You can set multiple proxies. You associate each proxy with a domain pattern. If the domain matches the pattern, the proxy is used. Pattern can contain '?' to match any single character, and '*' to match any sequence of characters. For example, '*.example.com' will match 'www.example.com' and 'sub.example.com'
|
7
|
-
*/
|
8
|
-
export interface SessionConfigV1ProxyItem {
|
9
|
-
domainPattern: string;
|
10
|
-
/** Configuration for a single custom proxy. */
|
11
|
-
relay: Airtop.CustomProxy;
|
12
|
-
}
|