@airtop/sdk 0.1.15-beta0 → 0.1.16-beta0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/api/resources/extensionConfigurations/client/Client.d.ts +50 -0
  4. package/api/resources/extensionConfigurations/client/Client.js +214 -0
  5. package/api/resources/extensionConfigurations/client/index.d.ts +1 -0
  6. package/api/resources/extensionConfigurations/client/index.js +17 -0
  7. package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +13 -0
  8. package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +5 -0
  9. package/api/resources/extensionConfigurations/client/requests/index.d.ts +1 -0
  10. package/api/resources/extensionConfigurations/client/requests/index.js +2 -0
  11. package/api/resources/extensionConfigurations/index.d.ts +1 -0
  12. package/api/resources/extensionConfigurations/index.js +17 -0
  13. package/api/resources/index.d.ts +2 -0
  14. package/api/resources/index.js +3 -1
  15. package/api/resources/profiles/client/Client.js +2 -2
  16. package/api/resources/requests/client/Client.js +2 -2
  17. package/api/resources/sessions/client/Client.d.ts +9 -0
  18. package/api/resources/sessions/client/Client.js +65 -12
  19. package/api/resources/windows/client/Client.js +46 -46
  20. package/api/types/ExtensionConfigurationOutput.d.ts +13 -0
  21. package/api/types/ExtensionConfigurationOutput.js +5 -0
  22. package/api/types/PaginatedExtractionConfig.d.ts +1 -1
  23. package/api/types/SessionConfigV1.d.ts +3 -1
  24. package/api/types/VisualAnalysisConfig.d.ts +2 -0
  25. package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +11 -0
  26. package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +10 -0
  27. package/api/types/index.d.ts +2 -0
  28. package/api/types/index.js +2 -0
  29. package/dist/Client.d.ts +3 -0
  30. package/dist/Client.js +11 -6
  31. package/dist/api/resources/extensionConfigurations/client/Client.d.ts +50 -0
  32. package/dist/api/resources/extensionConfigurations/client/Client.js +214 -0
  33. package/dist/api/resources/extensionConfigurations/client/index.d.ts +1 -0
  34. package/dist/api/resources/extensionConfigurations/client/index.js +17 -0
  35. package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +13 -0
  36. package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +5 -0
  37. package/dist/api/resources/extensionConfigurations/client/requests/index.d.ts +1 -0
  38. package/dist/api/resources/extensionConfigurations/client/requests/index.js +2 -0
  39. package/dist/api/resources/extensionConfigurations/index.d.ts +1 -0
  40. package/dist/api/resources/extensionConfigurations/index.js +17 -0
  41. package/dist/api/resources/index.d.ts +2 -0
  42. package/dist/api/resources/index.js +3 -1
  43. package/dist/api/resources/profiles/client/Client.js +2 -2
  44. package/dist/api/resources/requests/client/Client.js +2 -2
  45. package/dist/api/resources/sessions/client/Client.d.ts +9 -0
  46. package/dist/api/resources/sessions/client/Client.js +65 -12
  47. package/dist/api/resources/windows/client/Client.js +46 -46
  48. package/dist/api/types/ExtensionConfigurationOutput.d.ts +13 -0
  49. package/dist/api/types/ExtensionConfigurationOutput.js +5 -0
  50. package/dist/api/types/PaginatedExtractionConfig.d.ts +1 -1
  51. package/dist/api/types/SessionConfigV1.d.ts +3 -1
  52. package/dist/api/types/VisualAnalysisConfig.d.ts +2 -0
  53. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +11 -0
  54. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +10 -0
  55. package/dist/api/types/index.d.ts +2 -0
  56. package/dist/api/types/index.js +2 -0
  57. package/dist/serialization/types/ExtensionConfigurationOutput.d.ts +15 -0
  58. package/dist/serialization/types/ExtensionConfigurationOutput.js +36 -0
  59. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  60. package/dist/serialization/types/SessionConfigV1.js +1 -0
  61. package/dist/serialization/types/VisualAnalysisConfig.d.ts +2 -0
  62. package/dist/serialization/types/VisualAnalysisConfig.js +2 -0
  63. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +10 -0
  64. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +31 -0
  65. package/dist/serialization/types/index.d.ts +2 -0
  66. package/dist/serialization/types/index.js +2 -0
  67. package/dist/wrapper/AirtopClient.d.ts +1 -0
  68. package/dist/wrapper/AirtopClient.js +3 -0
  69. package/package.json +1 -1
  70. package/reference.md +187 -0
  71. package/serialization/types/ExtensionConfigurationOutput.d.ts +15 -0
  72. package/serialization/types/ExtensionConfigurationOutput.js +36 -0
  73. package/serialization/types/SessionConfigV1.d.ts +1 -0
  74. package/serialization/types/SessionConfigV1.js +1 -0
  75. package/serialization/types/VisualAnalysisConfig.d.ts +2 -0
  76. package/serialization/types/VisualAnalysisConfig.js +2 -0
  77. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +10 -0
  78. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +31 -0
  79. package/serialization/types/index.d.ts +2 -0
  80. package/serialization/types/index.js +2 -0
  81. package/wrapper/AirtopClient.d.ts +1 -0
  82. package/wrapper/AirtopClient.js +3 -0
@@ -71,8 +71,8 @@ class Windows {
71
71
  Authorization: yield this._getAuthorizationHeader(),
72
72
  "X-Fern-Language": "JavaScript",
73
73
  "X-Fern-SDK-Name": "@airtop/sdk",
74
- "X-Fern-SDK-Version": "0.1.16",
75
- "User-Agent": "@airtop/sdk/0.1.16",
74
+ "X-Fern-SDK-Version": "0.1.16-beta0",
75
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
76
76
  "X-Fern-Runtime": core.RUNTIME.type,
77
77
  "X-Fern-Runtime-Version": core.RUNTIME.version,
78
78
  },
@@ -132,8 +132,8 @@ class Windows {
132
132
  Authorization: yield this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "@airtop/sdk",
135
- "X-Fern-SDK-Version": "0.1.16",
136
- "User-Agent": "@airtop/sdk/0.1.16",
135
+ "X-Fern-SDK-Version": "0.1.16-beta0",
136
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
137
137
  "X-Fern-Runtime": core.RUNTIME.type,
138
138
  "X-Fern-Runtime-Version": core.RUNTIME.version,
139
139
  },
@@ -193,8 +193,8 @@ class Windows {
193
193
  Authorization: yield this._getAuthorizationHeader(),
194
194
  "X-Fern-Language": "JavaScript",
195
195
  "X-Fern-SDK-Name": "@airtop/sdk",
196
- "X-Fern-SDK-Version": "0.1.16",
197
- "User-Agent": "@airtop/sdk/0.1.16",
196
+ "X-Fern-SDK-Version": "0.1.16-beta0",
197
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
198
198
  "X-Fern-Runtime": core.RUNTIME.type,
199
199
  "X-Fern-Runtime-Version": core.RUNTIME.version,
200
200
  },
@@ -256,8 +256,8 @@ class Windows {
256
256
  Authorization: yield this._getAuthorizationHeader(),
257
257
  "X-Fern-Language": "JavaScript",
258
258
  "X-Fern-SDK-Name": "@airtop/sdk",
259
- "X-Fern-SDK-Version": "0.1.16",
260
- "User-Agent": "@airtop/sdk/0.1.16",
259
+ "X-Fern-SDK-Version": "0.1.16-beta0",
260
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
261
261
  "X-Fern-Runtime": core.RUNTIME.type,
262
262
  "X-Fern-Runtime-Version": core.RUNTIME.version,
263
263
  },
@@ -317,8 +317,8 @@ class Windows {
317
317
  Authorization: yield this._getAuthorizationHeader(),
318
318
  "X-Fern-Language": "JavaScript",
319
319
  "X-Fern-SDK-Name": "@airtop/sdk",
320
- "X-Fern-SDK-Version": "0.1.16",
321
- "User-Agent": "@airtop/sdk/0.1.16",
320
+ "X-Fern-SDK-Version": "0.1.16-beta0",
321
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
322
322
  "X-Fern-Runtime": core.RUNTIME.type,
323
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
324
  },
@@ -382,8 +382,8 @@ class Windows {
382
382
  Authorization: yield this._getAuthorizationHeader(),
383
383
  "X-Fern-Language": "JavaScript",
384
384
  "X-Fern-SDK-Name": "@airtop/sdk",
385
- "X-Fern-SDK-Version": "0.1.16",
386
- "User-Agent": "@airtop/sdk/0.1.16",
385
+ "X-Fern-SDK-Version": "0.1.16-beta0",
386
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
387
387
  "X-Fern-Runtime": core.RUNTIME.type,
388
388
  "X-Fern-Runtime-Version": core.RUNTIME.version,
389
389
  },
@@ -445,8 +445,8 @@ class Windows {
445
445
  Authorization: yield this._getAuthorizationHeader(),
446
446
  "X-Fern-Language": "JavaScript",
447
447
  "X-Fern-SDK-Name": "@airtop/sdk",
448
- "X-Fern-SDK-Version": "0.1.16",
449
- "User-Agent": "@airtop/sdk/0.1.16",
448
+ "X-Fern-SDK-Version": "0.1.16-beta0",
449
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
450
450
  "X-Fern-Runtime": core.RUNTIME.type,
451
451
  "X-Fern-Runtime-Version": core.RUNTIME.version,
452
452
  },
@@ -508,8 +508,8 @@ class Windows {
508
508
  Authorization: yield this._getAuthorizationHeader(),
509
509
  "X-Fern-Language": "JavaScript",
510
510
  "X-Fern-SDK-Name": "@airtop/sdk",
511
- "X-Fern-SDK-Version": "0.1.16",
512
- "User-Agent": "@airtop/sdk/0.1.16",
511
+ "X-Fern-SDK-Version": "0.1.16-beta0",
512
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
513
513
  "X-Fern-Runtime": core.RUNTIME.type,
514
514
  "X-Fern-Runtime-Version": core.RUNTIME.version,
515
515
  },
@@ -571,8 +571,8 @@ class Windows {
571
571
  Authorization: yield this._getAuthorizationHeader(),
572
572
  "X-Fern-Language": "JavaScript",
573
573
  "X-Fern-SDK-Name": "@airtop/sdk",
574
- "X-Fern-SDK-Version": "0.1.16",
575
- "User-Agent": "@airtop/sdk/0.1.16",
574
+ "X-Fern-SDK-Version": "0.1.16-beta0",
575
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
576
576
  "X-Fern-Runtime": core.RUNTIME.type,
577
577
  "X-Fern-Runtime-Version": core.RUNTIME.version,
578
578
  },
@@ -633,8 +633,8 @@ class Windows {
633
633
  Authorization: yield this._getAuthorizationHeader(),
634
634
  "X-Fern-Language": "JavaScript",
635
635
  "X-Fern-SDK-Name": "@airtop/sdk",
636
- "X-Fern-SDK-Version": "0.1.16",
637
- "User-Agent": "@airtop/sdk/0.1.16",
636
+ "X-Fern-SDK-Version": "0.1.16-beta0",
637
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
638
638
  "X-Fern-Runtime": core.RUNTIME.type,
639
639
  "X-Fern-Runtime-Version": core.RUNTIME.version,
640
640
  },
@@ -709,8 +709,8 @@ class Windows {
709
709
  Authorization: yield this._getAuthorizationHeader(),
710
710
  "X-Fern-Language": "JavaScript",
711
711
  "X-Fern-SDK-Name": "@airtop/sdk",
712
- "X-Fern-SDK-Version": "0.1.16",
713
- "User-Agent": "@airtop/sdk/0.1.16",
712
+ "X-Fern-SDK-Version": "0.1.16-beta0",
713
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
714
714
  "X-Fern-Runtime": core.RUNTIME.type,
715
715
  "X-Fern-Runtime-Version": core.RUNTIME.version,
716
716
  },
@@ -774,8 +774,8 @@ class Windows {
774
774
  Authorization: yield this._getAuthorizationHeader(),
775
775
  "X-Fern-Language": "JavaScript",
776
776
  "X-Fern-SDK-Name": "@airtop/sdk",
777
- "X-Fern-SDK-Version": "0.1.16",
778
- "User-Agent": "@airtop/sdk/0.1.16",
777
+ "X-Fern-SDK-Version": "0.1.16-beta0",
778
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
779
779
  "X-Fern-Runtime": core.RUNTIME.type,
780
780
  "X-Fern-Runtime-Version": core.RUNTIME.version,
781
781
  },
@@ -836,8 +836,8 @@ class Windows {
836
836
  Authorization: yield this._getAuthorizationHeader(),
837
837
  "X-Fern-Language": "JavaScript",
838
838
  "X-Fern-SDK-Name": "@airtop/sdk",
839
- "X-Fern-SDK-Version": "0.1.16",
840
- "User-Agent": "@airtop/sdk/0.1.16",
839
+ "X-Fern-SDK-Version": "0.1.16-beta0",
840
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
841
841
  "X-Fern-Runtime": core.RUNTIME.type,
842
842
  "X-Fern-Runtime-Version": core.RUNTIME.version,
843
843
  },
@@ -900,8 +900,8 @@ class Windows {
900
900
  Authorization: yield this._getAuthorizationHeader(),
901
901
  "X-Fern-Language": "JavaScript",
902
902
  "X-Fern-SDK-Name": "@airtop/sdk",
903
- "X-Fern-SDK-Version": "0.1.16",
904
- "User-Agent": "@airtop/sdk/0.1.16",
903
+ "X-Fern-SDK-Version": "0.1.16-beta0",
904
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
905
905
  "X-Fern-Runtime": core.RUNTIME.type,
906
906
  "X-Fern-Runtime-Version": core.RUNTIME.version,
907
907
  },
@@ -963,8 +963,8 @@ class Windows {
963
963
  Authorization: yield this._getAuthorizationHeader(),
964
964
  "X-Fern-Language": "JavaScript",
965
965
  "X-Fern-SDK-Name": "@airtop/sdk",
966
- "X-Fern-SDK-Version": "0.1.16",
967
- "User-Agent": "@airtop/sdk/0.1.16",
966
+ "X-Fern-SDK-Version": "0.1.16-beta0",
967
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
968
968
  "X-Fern-Runtime": core.RUNTIME.type,
969
969
  "X-Fern-Runtime-Version": core.RUNTIME.version,
970
970
  },
@@ -1024,8 +1024,8 @@ class Windows {
1024
1024
  Authorization: yield this._getAuthorizationHeader(),
1025
1025
  "X-Fern-Language": "JavaScript",
1026
1026
  "X-Fern-SDK-Name": "@airtop/sdk",
1027
- "X-Fern-SDK-Version": "0.1.16",
1028
- "User-Agent": "@airtop/sdk/0.1.16",
1027
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1028
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1029
1029
  "X-Fern-Runtime": core.RUNTIME.type,
1030
1030
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1031
1031
  },
@@ -1091,8 +1091,8 @@ class Windows {
1091
1091
  Authorization: yield this._getAuthorizationHeader(),
1092
1092
  "X-Fern-Language": "JavaScript",
1093
1093
  "X-Fern-SDK-Name": "@airtop/sdk",
1094
- "X-Fern-SDK-Version": "0.1.16",
1095
- "User-Agent": "@airtop/sdk/0.1.16",
1094
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1095
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1096
1096
  "X-Fern-Runtime": core.RUNTIME.type,
1097
1097
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1098
1098
  },
@@ -1156,8 +1156,8 @@ class Windows {
1156
1156
  Authorization: yield this._getAuthorizationHeader(),
1157
1157
  "X-Fern-Language": "JavaScript",
1158
1158
  "X-Fern-SDK-Name": "@airtop/sdk",
1159
- "X-Fern-SDK-Version": "0.1.16",
1160
- "User-Agent": "@airtop/sdk/0.1.16",
1159
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1160
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1161
1161
  "X-Fern-Runtime": core.RUNTIME.type,
1162
1162
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1163
1163
  },
@@ -1223,8 +1223,8 @@ class Windows {
1223
1223
  Authorization: yield this._getAuthorizationHeader(),
1224
1224
  "X-Fern-Language": "JavaScript",
1225
1225
  "X-Fern-SDK-Name": "@airtop/sdk",
1226
- "X-Fern-SDK-Version": "0.1.16",
1227
- "User-Agent": "@airtop/sdk/0.1.16",
1226
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1227
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1228
1228
  "X-Fern-Runtime": core.RUNTIME.type,
1229
1229
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1230
1230
  },
@@ -1288,8 +1288,8 @@ class Windows {
1288
1288
  Authorization: yield this._getAuthorizationHeader(),
1289
1289
  "X-Fern-Language": "JavaScript",
1290
1290
  "X-Fern-SDK-Name": "@airtop/sdk",
1291
- "X-Fern-SDK-Version": "0.1.16",
1292
- "User-Agent": "@airtop/sdk/0.1.16",
1291
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1292
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1293
1293
  "X-Fern-Runtime": core.RUNTIME.type,
1294
1294
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1295
1295
  },
@@ -1351,8 +1351,8 @@ class Windows {
1351
1351
  Authorization: yield this._getAuthorizationHeader(),
1352
1352
  "X-Fern-Language": "JavaScript",
1353
1353
  "X-Fern-SDK-Name": "@airtop/sdk",
1354
- "X-Fern-SDK-Version": "0.1.16",
1355
- "User-Agent": "@airtop/sdk/0.1.16",
1354
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1355
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1356
1356
  "X-Fern-Runtime": core.RUNTIME.type,
1357
1357
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1358
1358
  },
@@ -1416,8 +1416,8 @@ class Windows {
1416
1416
  Authorization: yield this._getAuthorizationHeader(),
1417
1417
  "X-Fern-Language": "JavaScript",
1418
1418
  "X-Fern-SDK-Name": "@airtop/sdk",
1419
- "X-Fern-SDK-Version": "0.1.16",
1420
- "User-Agent": "@airtop/sdk/0.1.16",
1419
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1420
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1421
1421
  "X-Fern-Runtime": core.RUNTIME.type,
1422
1422
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1423
1423
  },
@@ -1483,8 +1483,8 @@ class Windows {
1483
1483
  Authorization: yield this._getAuthorizationHeader(),
1484
1484
  "X-Fern-Language": "JavaScript",
1485
1485
  "X-Fern-SDK-Name": "@airtop/sdk",
1486
- "X-Fern-SDK-Version": "0.1.16",
1487
- "User-Agent": "@airtop/sdk/0.1.16",
1486
+ "X-Fern-SDK-Version": "0.1.16-beta0",
1487
+ "User-Agent": "@airtop/sdk/0.1.16-beta0",
1488
1488
  "X-Fern-Runtime": core.RUNTIME.type,
1489
1489
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1490
1490
  },
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ExtensionConfigurationOutput {
5
+ /** The date and time the configuration was created. Might be null for old configurations */
6
+ createdAt?: Date;
7
+ /** The ids of the extensions in configuration. */
8
+ extensionIds?: string[];
9
+ /** Name of the extension configuration. */
10
+ name: string;
11
+ /** The date and time the configuration was last updated. Might be null for configurations not updated recently */
12
+ updatedAt?: Date;
13
+ }
@@ -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 });
@@ -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;
@@ -5,7 +5,9 @@ import * as Airtop from "../index";
5
5
  export interface SessionConfigV1 {
6
6
  /** Deprecated: Use profileName instead. */
7
7
  baseProfileId?: string;
8
- /** - */
8
+ /** Name of an extension configuration to load into the session. */
9
+ extensionConfigurationName?: string;
10
+ /** Google Web Store extension IDs to be loaded into the session. */
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
+ };
@@ -13,6 +13,7 @@ export * from "./ErrorBody";
13
13
  export * from "./ErrorDetail";
14
14
  export * from "./ErrorMessage";
15
15
  export * from "./ErrorModel";
16
+ export * from "./ExtensionConfigurationOutput";
16
17
  export * from "./ExternalSessionAiResponseMetadataStatus";
17
18
  export * from "./ExternalSessionAiResponseMetadata";
18
19
  export * from "./ExternalSessionAiResponseMetadataUsage";
@@ -53,6 +54,7 @@ export * from "./StatusMessage";
53
54
  export * from "./SummaryConfig";
54
55
  export * from "./SummaryExperimentalConfig";
55
56
  export * from "./VisualAnalysisConfigPartitionDirection";
57
+ export * from "./VisualAnalysisConfigResultSelectionStrategy";
56
58
  export * from "./VisualAnalysisConfigScope";
57
59
  export * from "./VisualAnalysisConfig";
58
60
  export * from "./Window";
@@ -29,6 +29,7 @@ __exportStar(require("./ErrorBody"), exports);
29
29
  __exportStar(require("./ErrorDetail"), exports);
30
30
  __exportStar(require("./ErrorMessage"), exports);
31
31
  __exportStar(require("./ErrorModel"), exports);
32
+ __exportStar(require("./ExtensionConfigurationOutput"), exports);
32
33
  __exportStar(require("./ExternalSessionAiResponseMetadataStatus"), exports);
33
34
  __exportStar(require("./ExternalSessionAiResponseMetadata"), exports);
34
35
  __exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
@@ -69,6 +70,7 @@ __exportStar(require("./StatusMessage"), exports);
69
70
  __exportStar(require("./SummaryConfig"), exports);
70
71
  __exportStar(require("./SummaryExperimentalConfig"), exports);
71
72
  __exportStar(require("./VisualAnalysisConfigPartitionDirection"), exports);
73
+ __exportStar(require("./VisualAnalysisConfigResultSelectionStrategy"), exports);
72
74
  __exportStar(require("./VisualAnalysisConfigScope"), exports);
73
75
  __exportStar(require("./VisualAnalysisConfig"), exports);
74
76
  __exportStar(require("./Window"), exports);
package/dist/Client.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Windows } from "./api/resources/windows/client/Client";
7
+ import { ExtensionConfigurations } from "./api/resources/extensionConfigurations/client/Client";
7
8
  import { Profiles } from "./api/resources/profiles/client/Client";
8
9
  import { Requests } from "./api/resources/requests/client/Client";
9
10
  import { Sessions } from "./api/resources/sessions/client/Client";
@@ -27,6 +28,8 @@ export declare class AirtopClient {
27
28
  constructor(_options: AirtopClient.Options);
28
29
  protected _windows: Windows | undefined;
29
30
  get windows(): Windows;
31
+ protected _extensionConfigurations: ExtensionConfigurations | undefined;
32
+ get extensionConfigurations(): ExtensionConfigurations;
30
33
  protected _profiles: Profiles | undefined;
31
34
  get profiles(): Profiles;
32
35
  protected _requests: Requests | undefined;
package/dist/Client.js CHANGED
@@ -5,9 +5,10 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AirtopClient = void 0;
7
7
  const Client_1 = require("./api/resources/windows/client/Client");
8
- const Client_2 = require("./api/resources/profiles/client/Client");
9
- const Client_3 = require("./api/resources/requests/client/Client");
10
- const Client_4 = require("./api/resources/sessions/client/Client");
8
+ const Client_2 = require("./api/resources/extensionConfigurations/client/Client");
9
+ const Client_3 = require("./api/resources/profiles/client/Client");
10
+ const Client_4 = require("./api/resources/requests/client/Client");
11
+ const Client_5 = require("./api/resources/sessions/client/Client");
11
12
  class AirtopClient {
12
13
  constructor(_options) {
13
14
  this._options = _options;
@@ -16,17 +17,21 @@ class AirtopClient {
16
17
  var _a;
17
18
  return ((_a = this._windows) !== null && _a !== void 0 ? _a : (this._windows = new Client_1.Windows(this._options)));
18
19
  }
20
+ get extensionConfigurations() {
21
+ var _a;
22
+ return ((_a = this._extensionConfigurations) !== null && _a !== void 0 ? _a : (this._extensionConfigurations = new Client_2.ExtensionConfigurations(this._options)));
23
+ }
19
24
  get profiles() {
20
25
  var _a;
21
- return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_2.Profiles(this._options)));
26
+ return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_3.Profiles(this._options)));
22
27
  }
23
28
  get requests() {
24
29
  var _a;
25
- return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_3.Requests(this._options)));
30
+ return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_4.Requests(this._options)));
26
31
  }
27
32
  get sessions() {
28
33
  var _a;
29
- return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_4.Sessions(this._options)));
34
+ return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_5.Sessions(this._options)));
30
35
  }
31
36
  }
32
37
  exports.AirtopClient = AirtopClient;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Airtop from "../../../index";
7
+ export declare namespace ExtensionConfigurations {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.AirtopEnvironment | string>;
10
+ apiKey: core.Supplier<core.BearerToken>;
11
+ fetcher?: core.FetchFunction;
12
+ }
13
+ interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
15
+ timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
17
+ maxRetries?: number;
18
+ /** A hook to abort the request. */
19
+ abortSignal?: AbortSignal;
20
+ }
21
+ }
22
+ export declare class ExtensionConfigurations {
23
+ protected readonly _options: ExtensionConfigurations.Options;
24
+ constructor(_options: ExtensionConfigurations.Options);
25
+ /**
26
+ * Delete extension configurations matching by name
27
+ *
28
+ * @param {Airtop.ExtensionConfigurationDeleteRequest} request
29
+ * @param {ExtensionConfigurations.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @example
32
+ * await client.extensionConfigurations.extensionConfigurationDelete()
33
+ */
34
+ extensionConfigurationDelete(request?: Airtop.ExtensionConfigurationDeleteRequest, requestOptions?: ExtensionConfigurations.RequestOptions): Promise<void>;
35
+ /**
36
+ * Get an extension configuration by name
37
+ *
38
+ * @param {string} name - Name of the extension configuration to get
39
+ * @param {ExtensionConfigurations.RequestOptions} requestOptions - Request-specific configuration.
40
+ *
41
+ * @throws {@link Airtop.NotFoundError}
42
+ * @throws {@link Airtop.UnprocessableEntityError}
43
+ * @throws {@link Airtop.InternalServerError}
44
+ *
45
+ * @example
46
+ * await client.extensionConfigurations.extensionConfigurationGetInfo("my-configuration")
47
+ */
48
+ extensionConfigurationGetInfo(name: string, requestOptions?: ExtensionConfigurations.RequestOptions): Promise<Airtop.ExtensionConfigurationOutput>;
49
+ protected _getAuthorizationHeader(): Promise<string>;
50
+ }