@airtop/sdk 0.1.15 → 0.1.16

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 (54) hide show
  1. package/api/resources/profiles/client/Client.js +2 -2
  2. package/api/resources/sessions/client/Client.d.ts +9 -0
  3. package/api/resources/sessions/client/Client.js +65 -12
  4. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  5. package/api/resources/sessions/types/index.d.ts +1 -1
  6. package/api/resources/sessions/types/index.js +1 -1
  7. package/api/resources/windows/client/Client.js +26 -26
  8. package/api/types/PaginatedExtractionConfig.d.ts +1 -1
  9. package/api/types/SessionConfigV1.d.ts +2 -0
  10. package/api/types/VisualAnalysisConfig.d.ts +2 -0
  11. package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +11 -0
  12. package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +10 -0
  13. package/api/types/index.d.ts +1 -0
  14. package/api/types/index.js +1 -0
  15. package/dist/api/resources/profiles/client/Client.js +2 -2
  16. package/dist/api/resources/sessions/client/Client.d.ts +9 -0
  17. package/dist/api/resources/sessions/client/Client.js +65 -12
  18. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  19. package/dist/api/resources/sessions/types/index.d.ts +1 -1
  20. package/dist/api/resources/sessions/types/index.js +1 -1
  21. package/dist/api/resources/windows/client/Client.js +26 -26
  22. package/dist/api/types/PaginatedExtractionConfig.d.ts +1 -1
  23. package/dist/api/types/SessionConfigV1.d.ts +2 -0
  24. package/dist/api/types/VisualAnalysisConfig.d.ts +2 -0
  25. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +11 -0
  26. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +10 -0
  27. package/dist/api/types/index.d.ts +1 -0
  28. package/dist/api/types/index.js +1 -0
  29. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  30. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  31. package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
  32. package/dist/serialization/resources/sessions/types/index.js +1 -1
  33. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  34. package/dist/serialization/types/SessionConfigV1.js +1 -0
  35. package/dist/serialization/types/VisualAnalysisConfig.d.ts +2 -0
  36. package/dist/serialization/types/VisualAnalysisConfig.js +2 -0
  37. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +10 -0
  38. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +31 -0
  39. package/dist/serialization/types/index.d.ts +1 -0
  40. package/dist/serialization/types/index.js +1 -0
  41. package/package.json +1 -1
  42. package/reference.md +59 -0
  43. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  44. package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  45. package/serialization/resources/sessions/types/index.d.ts +1 -1
  46. package/serialization/resources/sessions/types/index.js +1 -1
  47. package/serialization/types/SessionConfigV1.d.ts +1 -0
  48. package/serialization/types/SessionConfigV1.js +1 -0
  49. package/serialization/types/VisualAnalysisConfig.d.ts +2 -0
  50. package/serialization/types/VisualAnalysisConfig.js +2 -0
  51. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +10 -0
  52. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +31 -0
  53. package/serialization/types/index.d.ts +1 -0
  54. package/serialization/types/index.js +1 -0
@@ -68,8 +68,8 @@ class Windows {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "@airtop/sdk",
71
- "X-Fern-SDK-Version": "0.1.15",
72
- "User-Agent": "@airtop/sdk/0.1.15",
71
+ "X-Fern-SDK-Version": "0.1.16",
72
+ "User-Agent": "@airtop/sdk/0.1.16",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -144,8 +144,8 @@ class Windows {
144
144
  Authorization: yield this._getAuthorizationHeader(),
145
145
  "X-Fern-Language": "JavaScript",
146
146
  "X-Fern-SDK-Name": "@airtop/sdk",
147
- "X-Fern-SDK-Version": "0.1.15",
148
- "User-Agent": "@airtop/sdk/0.1.15",
147
+ "X-Fern-SDK-Version": "0.1.16",
148
+ "User-Agent": "@airtop/sdk/0.1.16",
149
149
  "X-Fern-Runtime": core.RUNTIME.type,
150
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
151
151
  },
@@ -209,8 +209,8 @@ class Windows {
209
209
  Authorization: yield this._getAuthorizationHeader(),
210
210
  "X-Fern-Language": "JavaScript",
211
211
  "X-Fern-SDK-Name": "@airtop/sdk",
212
- "X-Fern-SDK-Version": "0.1.15",
213
- "User-Agent": "@airtop/sdk/0.1.15",
212
+ "X-Fern-SDK-Version": "0.1.16",
213
+ "User-Agent": "@airtop/sdk/0.1.16",
214
214
  "X-Fern-Runtime": core.RUNTIME.type,
215
215
  "X-Fern-Runtime-Version": core.RUNTIME.version,
216
216
  },
@@ -271,8 +271,8 @@ class Windows {
271
271
  Authorization: yield this._getAuthorizationHeader(),
272
272
  "X-Fern-Language": "JavaScript",
273
273
  "X-Fern-SDK-Name": "@airtop/sdk",
274
- "X-Fern-SDK-Version": "0.1.15",
275
- "User-Agent": "@airtop/sdk/0.1.15",
274
+ "X-Fern-SDK-Version": "0.1.16",
275
+ "User-Agent": "@airtop/sdk/0.1.16",
276
276
  "X-Fern-Runtime": core.RUNTIME.type,
277
277
  "X-Fern-Runtime-Version": core.RUNTIME.version,
278
278
  },
@@ -335,8 +335,8 @@ class Windows {
335
335
  Authorization: yield this._getAuthorizationHeader(),
336
336
  "X-Fern-Language": "JavaScript",
337
337
  "X-Fern-SDK-Name": "@airtop/sdk",
338
- "X-Fern-SDK-Version": "0.1.15",
339
- "User-Agent": "@airtop/sdk/0.1.15",
338
+ "X-Fern-SDK-Version": "0.1.16",
339
+ "User-Agent": "@airtop/sdk/0.1.16",
340
340
  "X-Fern-Runtime": core.RUNTIME.type,
341
341
  "X-Fern-Runtime-Version": core.RUNTIME.version,
342
342
  },
@@ -398,8 +398,8 @@ class Windows {
398
398
  Authorization: yield this._getAuthorizationHeader(),
399
399
  "X-Fern-Language": "JavaScript",
400
400
  "X-Fern-SDK-Name": "@airtop/sdk",
401
- "X-Fern-SDK-Version": "0.1.15",
402
- "User-Agent": "@airtop/sdk/0.1.15",
401
+ "X-Fern-SDK-Version": "0.1.16",
402
+ "User-Agent": "@airtop/sdk/0.1.16",
403
403
  "X-Fern-Runtime": core.RUNTIME.type,
404
404
  "X-Fern-Runtime-Version": core.RUNTIME.version,
405
405
  },
@@ -463,8 +463,8 @@ class Windows {
463
463
  Authorization: yield this._getAuthorizationHeader(),
464
464
  "X-Fern-Language": "JavaScript",
465
465
  "X-Fern-SDK-Name": "@airtop/sdk",
466
- "X-Fern-SDK-Version": "0.1.15",
467
- "User-Agent": "@airtop/sdk/0.1.15",
466
+ "X-Fern-SDK-Version": "0.1.16",
467
+ "User-Agent": "@airtop/sdk/0.1.16",
468
468
  "X-Fern-Runtime": core.RUNTIME.type,
469
469
  "X-Fern-Runtime-Version": core.RUNTIME.version,
470
470
  },
@@ -528,8 +528,8 @@ class Windows {
528
528
  Authorization: yield this._getAuthorizationHeader(),
529
529
  "X-Fern-Language": "JavaScript",
530
530
  "X-Fern-SDK-Name": "@airtop/sdk",
531
- "X-Fern-SDK-Version": "0.1.15",
532
- "User-Agent": "@airtop/sdk/0.1.15",
531
+ "X-Fern-SDK-Version": "0.1.16",
532
+ "User-Agent": "@airtop/sdk/0.1.16",
533
533
  "X-Fern-Runtime": core.RUNTIME.type,
534
534
  "X-Fern-Runtime-Version": core.RUNTIME.version,
535
535
  },
@@ -595,8 +595,8 @@ class Windows {
595
595
  Authorization: yield this._getAuthorizationHeader(),
596
596
  "X-Fern-Language": "JavaScript",
597
597
  "X-Fern-SDK-Name": "@airtop/sdk",
598
- "X-Fern-SDK-Version": "0.1.15",
599
- "User-Agent": "@airtop/sdk/0.1.15",
598
+ "X-Fern-SDK-Version": "0.1.16",
599
+ "User-Agent": "@airtop/sdk/0.1.16",
600
600
  "X-Fern-Runtime": core.RUNTIME.type,
601
601
  "X-Fern-Runtime-Version": core.RUNTIME.version,
602
602
  },
@@ -660,8 +660,8 @@ class Windows {
660
660
  Authorization: yield this._getAuthorizationHeader(),
661
661
  "X-Fern-Language": "JavaScript",
662
662
  "X-Fern-SDK-Name": "@airtop/sdk",
663
- "X-Fern-SDK-Version": "0.1.15",
664
- "User-Agent": "@airtop/sdk/0.1.15",
663
+ "X-Fern-SDK-Version": "0.1.16",
664
+ "User-Agent": "@airtop/sdk/0.1.16",
665
665
  "X-Fern-Runtime": core.RUNTIME.type,
666
666
  "X-Fern-Runtime-Version": core.RUNTIME.version,
667
667
  },
@@ -723,8 +723,8 @@ class Windows {
723
723
  Authorization: yield this._getAuthorizationHeader(),
724
724
  "X-Fern-Language": "JavaScript",
725
725
  "X-Fern-SDK-Name": "@airtop/sdk",
726
- "X-Fern-SDK-Version": "0.1.15",
727
- "User-Agent": "@airtop/sdk/0.1.15",
726
+ "X-Fern-SDK-Version": "0.1.16",
727
+ "User-Agent": "@airtop/sdk/0.1.16",
728
728
  "X-Fern-Runtime": core.RUNTIME.type,
729
729
  "X-Fern-Runtime-Version": core.RUNTIME.version,
730
730
  },
@@ -788,8 +788,8 @@ class Windows {
788
788
  Authorization: yield this._getAuthorizationHeader(),
789
789
  "X-Fern-Language": "JavaScript",
790
790
  "X-Fern-SDK-Name": "@airtop/sdk",
791
- "X-Fern-SDK-Version": "0.1.15",
792
- "User-Agent": "@airtop/sdk/0.1.15",
791
+ "X-Fern-SDK-Version": "0.1.16",
792
+ "User-Agent": "@airtop/sdk/0.1.16",
793
793
  "X-Fern-Runtime": core.RUNTIME.type,
794
794
  "X-Fern-Runtime-Version": core.RUNTIME.version,
795
795
  },
@@ -855,8 +855,8 @@ class Windows {
855
855
  Authorization: yield this._getAuthorizationHeader(),
856
856
  "X-Fern-Language": "JavaScript",
857
857
  "X-Fern-SDK-Name": "@airtop/sdk",
858
- "X-Fern-SDK-Version": "0.1.15",
859
- "User-Agent": "@airtop/sdk/0.1.15",
858
+ "X-Fern-SDK-Version": "0.1.16",
859
+ "User-Agent": "@airtop/sdk/0.1.16",
860
860
  "X-Fern-Runtime": core.RUNTIME.type,
861
861
  "X-Fern-Runtime-Version": core.RUNTIME.version,
862
862
  },
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface PaginatedExtractionConfig {
5
- /** The mode to use for interaction. If set to 'auto', Airtop AI will automatically choose the most cost-effective interaction mode. If set to 'accurate', Airtop AI will use the most accurate interaction mode. If set to 'cost-efficient', Airtop AI will use the most cost-effective interaction mode. */
5
+ /** The mode to use for interaction. If set to 'auto', Airtop AI will automatically choose the most cost-effective interaction mode. If set to 'accurate', the request might be slower, but more likely to be accurate. Whereas, 'cost-efficient' will be cheaper and speed things up, but may reduce accuracy. */
6
6
  interactionMode?: string;
7
7
  /** JSON schema defining the structure of the output. If not provided, the format of the output might vary. */
8
8
  outputSchema?: string;
@@ -6,6 +6,8 @@ export interface SessionConfigV1 {
6
6
  /** Deprecated: Use profileName instead. */
7
7
  baseProfileId?: string;
8
8
  /** - */
9
+ extensionConfigurationName?: string;
10
+ /** - */
9
11
  extensionIds?: string[];
10
12
  /** Deprecated: use Save Profile On Termination API instead. */
11
13
  persistProfile?: boolean;
@@ -9,6 +9,8 @@ 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. */
13
+ resultSelectionStrategy?: Airtop.VisualAnalysisConfigResultSelectionStrategy;
12
14
  /** Scan mode only: The delay between scrolls in milliseconds. Defaults to 1000 (milliseconds). */
13
15
  scanScrollDelay?: number;
14
16
  /** Whether to analyze the current viewport or the whole page. Can be 'viewport', 'page', 'scan' or 'auto'. Defaults to 'auto', which provides the simplest out-of-the-box experience for most web pages. Use 'viewport' for analysis of the current browser view only. Use 'page' for a full page analysis. Use 'scan' for a full page analysis on sites that have compatibility or accuracy issues with 'page' mode. */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
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.
6
+ */
7
+ export declare type VisualAnalysisConfigResultSelectionStrategy = "first" | "bestMatch";
8
+ export declare const VisualAnalysisConfigResultSelectionStrategy: {
9
+ readonly First: "first";
10
+ readonly BestMatch: "bestMatch";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.VisualAnalysisConfigResultSelectionStrategy = void 0;
7
+ exports.VisualAnalysisConfigResultSelectionStrategy = {
8
+ First: "first",
9
+ BestMatch: "bestMatch",
10
+ };
@@ -45,6 +45,7 @@ export * from "./StatusMessage";
45
45
  export * from "./SummaryConfig";
46
46
  export * from "./SummaryExperimentalConfig";
47
47
  export * from "./VisualAnalysisConfigPartitionDirection";
48
+ export * from "./VisualAnalysisConfigResultSelectionStrategy";
48
49
  export * from "./VisualAnalysisConfigScope";
49
50
  export * from "./VisualAnalysisConfig";
50
51
  export * from "./Window";
@@ -61,6 +61,7 @@ __exportStar(require("./StatusMessage"), exports);
61
61
  __exportStar(require("./SummaryConfig"), exports);
62
62
  __exportStar(require("./SummaryExperimentalConfig"), exports);
63
63
  __exportStar(require("./VisualAnalysisConfigPartitionDirection"), exports);
64
+ __exportStar(require("./VisualAnalysisConfigResultSelectionStrategy"), exports);
64
65
  __exportStar(require("./VisualAnalysisConfigScope"), exports);
65
66
  __exportStar(require("./VisualAnalysisConfig"), exports);
66
67
  __exportStar(require("./Window"), exports);
@@ -4,13 +4,16 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
7
8
  import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
8
9
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
9
10
  import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
10
- import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
11
11
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
12
12
  export declare namespace SessionsEventsResponse {
13
- type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent;
13
+ type Raw = SessionsEventsResponse.SessionEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent;
14
+ interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
15
+ event: "sessionEvent";
16
+ }
14
17
  interface Status extends SessionsEventsResponseStatus.Raw {
15
18
  event: "status";
16
19
  }
@@ -20,7 +23,4 @@ export declare namespace SessionsEventsResponse {
20
23
  interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
21
24
  event: "windowEvent";
22
25
  }
23
- interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
24
- event: "sessionEvent";
25
- }
26
26
  }
@@ -28,16 +28,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SessionsEventsResponse = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
31
32
  const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
32
33
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
33
34
  const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
34
- const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
35
35
  exports.SessionsEventsResponse = core.serialization
36
36
  .union("event", {
37
+ sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
37
38
  status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
38
39
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
39
40
  windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
40
- sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
41
41
  })
42
42
  .transform({
43
43
  transform: (value) => value,
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
+ export * from "./SessionsEventsResponseSessionEvent";
2
3
  export * from "./SessionsEventsResponseStatus";
3
4
  export * from "./SessionsEventsResponseError";
4
5
  export * from "./SessionsEventsResponseWindowEvent";
5
- export * from "./SessionsEventsResponseSessionEvent";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
18
19
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
19
20
  __exportStar(require("./SessionsEventsResponseError"), exports);
20
21
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
- __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -9,6 +9,7 @@ export declare const SessionConfigV1: core.serialization.ObjectSchema<serializer
9
9
  export declare namespace SessionConfigV1 {
10
10
  interface Raw {
11
11
  baseProfileId?: string | null;
12
+ extensionConfigurationName?: string | null;
12
13
  extensionIds?: string[] | null;
13
14
  persistProfile?: boolean | null;
14
15
  profileName?: string | null;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  const SessionConfigV1Proxy_1 = require("./SessionConfigV1Proxy");
32
32
  exports.SessionConfigV1 = core.serialization.object({
33
33
  baseProfileId: core.serialization.string().optional(),
34
+ extensionConfigurationName: core.serialization.string().optional(),
34
35
  extensionIds: core.serialization.list(core.serialization.string()).optional(),
35
36
  persistProfile: core.serialization.boolean().optional(),
36
37
  profileName: core.serialization.string().optional(),
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { VisualAnalysisConfigPartitionDirection } from "./VisualAnalysisConfigPartitionDirection";
8
+ import { VisualAnalysisConfigResultSelectionStrategy } from "./VisualAnalysisConfigResultSelectionStrategy";
8
9
  import { VisualAnalysisConfigScope } from "./VisualAnalysisConfigScope";
9
10
  export declare const VisualAnalysisConfig: core.serialization.ObjectSchema<serializers.VisualAnalysisConfig.Raw, Airtop.VisualAnalysisConfig>;
10
11
  export declare namespace VisualAnalysisConfig {
@@ -12,6 +13,7 @@ export declare namespace VisualAnalysisConfig {
12
13
  maxScanScrolls?: number | null;
13
14
  overlapPercentage?: number | null;
14
15
  partitionDirection?: VisualAnalysisConfigPartitionDirection.Raw | null;
16
+ resultSelectionStrategy?: VisualAnalysisConfigResultSelectionStrategy.Raw | null;
15
17
  scanScrollDelay?: number | null;
16
18
  scope?: VisualAnalysisConfigScope.Raw | null;
17
19
  }
@@ -29,11 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.VisualAnalysisConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VisualAnalysisConfigPartitionDirection_1 = require("./VisualAnalysisConfigPartitionDirection");
32
+ const VisualAnalysisConfigResultSelectionStrategy_1 = require("./VisualAnalysisConfigResultSelectionStrategy");
32
33
  const VisualAnalysisConfigScope_1 = require("./VisualAnalysisConfigScope");
33
34
  exports.VisualAnalysisConfig = core.serialization.object({
34
35
  maxScanScrolls: core.serialization.number().optional(),
35
36
  overlapPercentage: core.serialization.number().optional(),
36
37
  partitionDirection: VisualAnalysisConfigPartitionDirection_1.VisualAnalysisConfigPartitionDirection.optional(),
38
+ resultSelectionStrategy: VisualAnalysisConfigResultSelectionStrategy_1.VisualAnalysisConfigResultSelectionStrategy.optional(),
37
39
  scanScrollDelay: core.serialization.number().optional(),
38
40
  scope: VisualAnalysisConfigScope_1.VisualAnalysisConfigScope.optional(),
39
41
  });
@@ -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 VisualAnalysisConfigResultSelectionStrategy: core.serialization.Schema<serializers.VisualAnalysisConfigResultSelectionStrategy.Raw, Airtop.VisualAnalysisConfigResultSelectionStrategy>;
8
+ export declare namespace VisualAnalysisConfigResultSelectionStrategy {
9
+ type Raw = "first" | "bestMatch";
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.VisualAnalysisConfigResultSelectionStrategy = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.VisualAnalysisConfigResultSelectionStrategy = core.serialization.enum_(["first", "bestMatch"]);
@@ -45,6 +45,7 @@ export * from "./StatusMessage";
45
45
  export * from "./SummaryConfig";
46
46
  export * from "./SummaryExperimentalConfig";
47
47
  export * from "./VisualAnalysisConfigPartitionDirection";
48
+ export * from "./VisualAnalysisConfigResultSelectionStrategy";
48
49
  export * from "./VisualAnalysisConfigScope";
49
50
  export * from "./VisualAnalysisConfig";
50
51
  export * from "./Window";
@@ -61,6 +61,7 @@ __exportStar(require("./StatusMessage"), exports);
61
61
  __exportStar(require("./SummaryConfig"), exports);
62
62
  __exportStar(require("./SummaryExperimentalConfig"), exports);
63
63
  __exportStar(require("./VisualAnalysisConfigPartitionDirection"), exports);
64
+ __exportStar(require("./VisualAnalysisConfigResultSelectionStrategy"), exports);
64
65
  __exportStar(require("./VisualAnalysisConfigScope"), exports);
65
66
  __exportStar(require("./VisualAnalysisConfig"), exports);
66
67
  __exportStar(require("./Window"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1335,6 +1335,65 @@ await client.sessions.terminate("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
1335
1335
  </dl>
1336
1336
  </details>
1337
1337
 
1338
+ <details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">saveExtentionConfigurationOnTermination</a>(sessionId, extensionConfigurationName) -> void</code></summary>
1339
+ <dl>
1340
+ <dd>
1341
+
1342
+ #### 🔌 Usage
1343
+
1344
+ <dl>
1345
+ <dd>
1346
+
1347
+ <dl>
1348
+ <dd>
1349
+
1350
+ ```typescript
1351
+ await client.sessions.saveExtentionConfigurationOnTermination(
1352
+ "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
1353
+ "myExtensionConfiguration"
1354
+ );
1355
+ ```
1356
+
1357
+ </dd>
1358
+ </dl>
1359
+ </dd>
1360
+ </dl>
1361
+
1362
+ #### ⚙️ Parameters
1363
+
1364
+ <dl>
1365
+ <dd>
1366
+
1367
+ <dl>
1368
+ <dd>
1369
+
1370
+ **sessionId:** `string` — ID of the session.
1371
+
1372
+ </dd>
1373
+ </dl>
1374
+
1375
+ <dl>
1376
+ <dd>
1377
+
1378
+ **extensionConfigurationName:** `string` — Name under which to save the extension configuration.
1379
+
1380
+ </dd>
1381
+ </dl>
1382
+
1383
+ <dl>
1384
+ <dd>
1385
+
1386
+ **requestOptions:** `Sessions.RequestOptions`
1387
+
1388
+ </dd>
1389
+ </dl>
1390
+ </dd>
1391
+ </dl>
1392
+
1393
+ </dd>
1394
+ </dl>
1395
+ </details>
1396
+
1338
1397
  <details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">saveProfileOnTermination</a>(sessionId, profileName) -> void</code></summary>
1339
1398
  <dl>
1340
1399
  <dd>
@@ -4,13 +4,16 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
7
8
  import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
8
9
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
9
10
  import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
10
- import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
11
11
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
12
12
  export declare namespace SessionsEventsResponse {
13
- type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent;
13
+ type Raw = SessionsEventsResponse.SessionEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent;
14
+ interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
15
+ event: "sessionEvent";
16
+ }
14
17
  interface Status extends SessionsEventsResponseStatus.Raw {
15
18
  event: "status";
16
19
  }
@@ -20,7 +23,4 @@ export declare namespace SessionsEventsResponse {
20
23
  interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
21
24
  event: "windowEvent";
22
25
  }
23
- interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
24
- event: "sessionEvent";
25
- }
26
26
  }
@@ -28,16 +28,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SessionsEventsResponse = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
31
32
  const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
32
33
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
33
34
  const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
34
- const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
35
35
  exports.SessionsEventsResponse = core.serialization
36
36
  .union("event", {
37
+ sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
37
38
  status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
38
39
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
39
40
  windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
40
- sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
41
41
  })
42
42
  .transform({
43
43
  transform: (value) => value,
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
+ export * from "./SessionsEventsResponseSessionEvent";
2
3
  export * from "./SessionsEventsResponseStatus";
3
4
  export * from "./SessionsEventsResponseError";
4
5
  export * from "./SessionsEventsResponseWindowEvent";
5
- export * from "./SessionsEventsResponseSessionEvent";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
18
19
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
19
20
  __exportStar(require("./SessionsEventsResponseError"), exports);
20
21
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
- __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -9,6 +9,7 @@ export declare const SessionConfigV1: core.serialization.ObjectSchema<serializer
9
9
  export declare namespace SessionConfigV1 {
10
10
  interface Raw {
11
11
  baseProfileId?: string | null;
12
+ extensionConfigurationName?: string | null;
12
13
  extensionIds?: string[] | null;
13
14
  persistProfile?: boolean | null;
14
15
  profileName?: string | null;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  const SessionConfigV1Proxy_1 = require("./SessionConfigV1Proxy");
32
32
  exports.SessionConfigV1 = core.serialization.object({
33
33
  baseProfileId: core.serialization.string().optional(),
34
+ extensionConfigurationName: core.serialization.string().optional(),
34
35
  extensionIds: core.serialization.list(core.serialization.string()).optional(),
35
36
  persistProfile: core.serialization.boolean().optional(),
36
37
  profileName: core.serialization.string().optional(),
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { VisualAnalysisConfigPartitionDirection } from "./VisualAnalysisConfigPartitionDirection";
8
+ import { VisualAnalysisConfigResultSelectionStrategy } from "./VisualAnalysisConfigResultSelectionStrategy";
8
9
  import { VisualAnalysisConfigScope } from "./VisualAnalysisConfigScope";
9
10
  export declare const VisualAnalysisConfig: core.serialization.ObjectSchema<serializers.VisualAnalysisConfig.Raw, Airtop.VisualAnalysisConfig>;
10
11
  export declare namespace VisualAnalysisConfig {
@@ -12,6 +13,7 @@ export declare namespace VisualAnalysisConfig {
12
13
  maxScanScrolls?: number | null;
13
14
  overlapPercentage?: number | null;
14
15
  partitionDirection?: VisualAnalysisConfigPartitionDirection.Raw | null;
16
+ resultSelectionStrategy?: VisualAnalysisConfigResultSelectionStrategy.Raw | null;
15
17
  scanScrollDelay?: number | null;
16
18
  scope?: VisualAnalysisConfigScope.Raw | null;
17
19
  }
@@ -29,11 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.VisualAnalysisConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VisualAnalysisConfigPartitionDirection_1 = require("./VisualAnalysisConfigPartitionDirection");
32
+ const VisualAnalysisConfigResultSelectionStrategy_1 = require("./VisualAnalysisConfigResultSelectionStrategy");
32
33
  const VisualAnalysisConfigScope_1 = require("./VisualAnalysisConfigScope");
33
34
  exports.VisualAnalysisConfig = core.serialization.object({
34
35
  maxScanScrolls: core.serialization.number().optional(),
35
36
  overlapPercentage: core.serialization.number().optional(),
36
37
  partitionDirection: VisualAnalysisConfigPartitionDirection_1.VisualAnalysisConfigPartitionDirection.optional(),
38
+ resultSelectionStrategy: VisualAnalysisConfigResultSelectionStrategy_1.VisualAnalysisConfigResultSelectionStrategy.optional(),
37
39
  scanScrollDelay: core.serialization.number().optional(),
38
40
  scope: VisualAnalysisConfigScope_1.VisualAnalysisConfigScope.optional(),
39
41
  });
@@ -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 VisualAnalysisConfigResultSelectionStrategy: core.serialization.Schema<serializers.VisualAnalysisConfigResultSelectionStrategy.Raw, Airtop.VisualAnalysisConfigResultSelectionStrategy>;
8
+ export declare namespace VisualAnalysisConfigResultSelectionStrategy {
9
+ type Raw = "first" | "bestMatch";
10
+ }