@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.
Files changed (71) hide show
  1. package/api/resources/profiles/client/Client.js +2 -2
  2. package/api/resources/sessions/client/Client.js +14 -14
  3. package/api/resources/windows/client/Client.js +26 -26
  4. package/api/types/AirtopProxyConfiguration.d.ts +9 -0
  5. package/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
  6. package/api/types/Proxy.d.ts +9 -6
  7. package/api/types/ProxyConfigurationKind.d.ts +9 -0
  8. package/api/types/ProxyCredentials.d.ts +11 -0
  9. package/api/types/SessionConfigV1Proxy.d.ts +4 -4
  10. package/api/types/VisualAnalysisConfig.d.ts +1 -1
  11. package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +3 -2
  12. package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -0
  13. package/api/types/index.d.ts +3 -2
  14. package/api/types/index.js +3 -2
  15. package/dist/api/resources/profiles/client/Client.js +2 -2
  16. package/dist/api/resources/sessions/client/Client.js +14 -14
  17. package/dist/api/resources/windows/client/Client.js +26 -26
  18. package/dist/api/types/AirtopProxyConfiguration.d.ts +9 -0
  19. package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
  20. package/dist/api/types/Proxy.d.ts +9 -6
  21. package/dist/api/types/ProxyConfigurationKind.d.ts +9 -0
  22. package/dist/api/types/ProxyConfigurationKind.js +5 -0
  23. package/dist/api/types/ProxyCredentials.d.ts +11 -0
  24. package/dist/api/types/ProxyCredentials.js +5 -0
  25. package/dist/api/types/SessionConfigV1Proxy.d.ts +4 -4
  26. package/dist/api/types/VisualAnalysisConfig.d.ts +1 -1
  27. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +3 -2
  28. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -0
  29. package/dist/api/types/index.d.ts +3 -2
  30. package/dist/api/types/index.js +3 -2
  31. package/dist/serialization/types/AirtopProxyConfiguration.d.ts +13 -0
  32. package/dist/serialization/types/{SessionConfigV1ProxyItem.js → AirtopProxyConfiguration.js} +4 -5
  33. package/dist/serialization/types/Proxy.d.ts +4 -6
  34. package/dist/serialization/types/Proxy.js +3 -5
  35. package/dist/serialization/types/ProxyConfigurationKind.d.ts +14 -0
  36. package/dist/serialization/types/{CustomProxy.js → ProxyConfigurationKind.js} +5 -2
  37. package/dist/serialization/types/ProxyCredentials.d.ts +14 -0
  38. package/{serialization/types/SessionConfigV1ProxyItem.js → dist/serialization/types/ProxyCredentials.js} +5 -5
  39. package/dist/serialization/types/SessionConfigV1Proxy.d.ts +3 -3
  40. package/dist/serialization/types/SessionConfigV1Proxy.js +4 -4
  41. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
  42. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -1
  43. package/dist/serialization/types/index.d.ts +3 -2
  44. package/dist/serialization/types/index.js +3 -2
  45. package/package.json +1 -1
  46. package/serialization/types/AirtopProxyConfiguration.d.ts +13 -0
  47. package/serialization/types/AirtopProxyConfiguration.js +34 -0
  48. package/serialization/types/Proxy.d.ts +4 -6
  49. package/serialization/types/Proxy.js +3 -5
  50. package/serialization/types/ProxyConfigurationKind.d.ts +14 -0
  51. package/serialization/types/{CustomProxy.js → ProxyConfigurationKind.js} +5 -2
  52. package/serialization/types/ProxyCredentials.d.ts +14 -0
  53. package/serialization/types/ProxyCredentials.js +35 -0
  54. package/serialization/types/SessionConfigV1Proxy.d.ts +3 -3
  55. package/serialization/types/SessionConfigV1Proxy.js +4 -4
  56. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
  57. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +1 -1
  58. package/serialization/types/index.d.ts +3 -2
  59. package/serialization/types/index.js +3 -2
  60. package/api/types/CustomProxy.d.ts +0 -14
  61. package/api/types/SessionConfigV1ProxyItem.d.ts +0 -12
  62. package/dist/api/types/CustomProxy.d.ts +0 -14
  63. package/dist/api/types/SessionConfigV1ProxyItem.d.ts +0 -12
  64. package/dist/serialization/types/CustomProxy.d.ts +0 -11
  65. package/dist/serialization/types/SessionConfigV1ProxyItem.d.ts +0 -14
  66. package/serialization/types/CustomProxy.d.ts +0 -11
  67. package/serialization/types/SessionConfigV1ProxyItem.d.ts +0 -14
  68. /package/api/types/{CustomProxy.js → AirtopProxyConfiguration.js} +0 -0
  69. /package/api/types/{SessionConfigV1ProxyItem.js → ProxyConfigurationKind.js} +0 -0
  70. /package/{dist/api/types/CustomProxy.js → api/types/ProxyCredentials.js} +0 -0
  71. /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
- * Proxy object with url of the proxy as a parameter. Takes optional username and password.
6
+ * Configuration for a single custom proxy.
6
7
  */
7
- export interface Proxy {
8
- password?: string;
9
- url: string;
10
- username?: string;
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface ProxyConfigurationKind {
6
+ domainPattern: string;
7
+ /** Configuration for a single custom proxy. */
8
+ relay: Airtop.Proxy;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,11 +7,11 @@ import * as Airtop from "../index";
7
7
  */
8
8
  export declare type SessionConfigV1Proxy =
9
9
  /**
10
- * True to use airtop provided proxy */
10
+ * Use Airtop-provided proxy. */
11
11
  boolean
12
12
  /**
13
13
  * Configuration for a single custom proxy. */
14
- | Airtop.CustomProxy
14
+ | Airtop.Proxy
15
15
  /**
16
- * Array of proxy configurations. Includes a domain pattern and a proxy configuration to assign proxies to specific domains. */
17
- | Airtop.SessionConfigV1ProxyItem[];
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 'first'. 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 perform a second round of analysis to select the result that best matches the element description. */
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 'first'. 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 perform a second round of analysis to select the result that best matches the element description.
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
  };
@@ -7,4 +7,5 @@ exports.VisualAnalysisConfigResultSelectionStrategy = void 0;
7
7
  exports.VisualAnalysisConfigResultSelectionStrategy = {
8
8
  First: "first",
9
9
  BestMatch: "bestMatch",
10
+ Auto: "auto",
10
11
  };
@@ -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 "./CustomProxy";
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("./CustomProxy"), exports);
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
+ }
@@ -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.SessionConfigV1ProxyItem = void 0;
29
+ exports.AirtopProxyConfiguration = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const CustomProxy_1 = require("./CustomProxy");
32
- exports.SessionConfigV1ProxyItem = core.serialization.object({
33
- domainPattern: core.serialization.string(),
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
- export declare const Proxy: core.serialization.ObjectSchema<serializers.Proxy.Raw, Airtop.Proxy>;
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
- interface Raw {
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
- exports.Proxy = core.serialization.object({
32
- password: core.serialization.string().optional(),
33
- url: core.serialization.string(),
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.CustomProxy = void 0;
29
+ exports.ProxyConfigurationKind = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Proxy_1 = require("./Proxy");
32
- exports.CustomProxy = core.serialization.undiscriminatedUnion([core.serialization.string(), Proxy_1.Proxy]);
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.SessionConfigV1ProxyItem = void 0;
29
+ exports.ProxyCredentials = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const CustomProxy_1 = require("./CustomProxy");
32
- exports.SessionConfigV1ProxyItem = core.serialization.object({
33
- domainPattern: core.serialization.string(),
34
- relay: CustomProxy_1.CustomProxy,
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 { CustomProxy } from "./CustomProxy";
8
- import { SessionConfigV1ProxyItem } from "./SessionConfigV1ProxyItem";
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 | CustomProxy.Raw | SessionConfigV1ProxyItem.Raw[];
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 CustomProxy_1 = require("./CustomProxy");
32
- const SessionConfigV1ProxyItem_1 = require("./SessionConfigV1ProxyItem");
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
- CustomProxy_1.CustomProxy,
36
- core.serialization.list(SessionConfigV1ProxyItem_1.SessionConfigV1ProxyItem),
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 "./CustomProxy";
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("./CustomProxy"), exports);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",
@@ -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
- export declare const Proxy: core.serialization.ObjectSchema<serializers.Proxy.Raw, Airtop.Proxy>;
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
- interface Raw {
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
- exports.Proxy = core.serialization.object({
32
- password: core.serialization.string().optional(),
33
- url: core.serialization.string(),
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.CustomProxy = void 0;
29
+ exports.ProxyConfigurationKind = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Proxy_1 = require("./Proxy");
32
- exports.CustomProxy = core.serialization.undiscriminatedUnion([core.serialization.string(), Proxy_1.Proxy]);
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 { CustomProxy } from "./CustomProxy";
8
- import { SessionConfigV1ProxyItem } from "./SessionConfigV1ProxyItem";
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 | CustomProxy.Raw | SessionConfigV1ProxyItem.Raw[];
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 CustomProxy_1 = require("./CustomProxy");
32
- const SessionConfigV1ProxyItem_1 = require("./SessionConfigV1ProxyItem");
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
- CustomProxy_1.CustomProxy,
36
- core.serialization.list(SessionConfigV1ProxyItem_1.SessionConfigV1ProxyItem),
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 "./CustomProxy";
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("./CustomProxy"), exports);
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
- }