@airtop/sdk 0.1.11 → 0.1.13

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 (160) hide show
  1. package/api/resources/profiles/client/Client.js +22 -6
  2. package/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +5 -1
  3. package/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +5 -1
  4. package/api/resources/sessions/client/Client.d.ts +2 -2
  5. package/api/resources/sessions/client/Client.js +23 -14
  6. package/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +13 -0
  7. package/api/resources/sessions/client/requests/SessionsEventsRequest.js +5 -0
  8. package/api/resources/sessions/client/requests/index.d.ts +1 -0
  9. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -1
  10. package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +11 -0
  11. package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +5 -0
  12. package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +11 -0
  13. package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +5 -0
  14. package/api/resources/sessions/types/index.d.ts +2 -0
  15. package/api/resources/sessions/types/index.js +2 -0
  16. package/api/resources/windows/client/Client.js +24 -24
  17. package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +2 -0
  18. package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +1 -1
  19. package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +3 -1
  20. package/api/types/BrowserWaitNavigationConfig.d.ts +10 -0
  21. package/api/types/BrowserWaitNavigationConfig.js +5 -0
  22. package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +13 -0
  23. package/api/types/BrowserWaitNavigationConfigWaitUntil.js +12 -0
  24. package/api/types/ClickConfig.d.ts +4 -0
  25. package/api/types/ClickConfigClickType.d.ts +12 -0
  26. package/api/types/ClickConfigClickType.js +11 -0
  27. package/api/types/ErrorBody.d.ts +9 -0
  28. package/api/types/ErrorBody.js +5 -0
  29. package/api/types/ExternalProfileV1.d.ts +3 -1
  30. package/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
  31. package/api/types/MicroInteractionConfig.d.ts +10 -0
  32. package/api/types/MicroInteractionConfig.js +5 -0
  33. package/api/types/SessionConfigV1.d.ts +4 -2
  34. package/api/types/SessionEventMessage.d.ts +17 -0
  35. package/api/types/SessionEventMessage.js +5 -0
  36. package/api/types/StatusMessage.d.ts +2 -0
  37. package/api/types/WindowEventMessage.d.ts +19 -0
  38. package/api/types/WindowEventMessage.js +5 -0
  39. package/api/types/index.d.ts +7 -0
  40. package/api/types/index.js +7 -0
  41. package/dist/api/resources/profiles/client/Client.js +22 -6
  42. package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +5 -1
  43. package/dist/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +5 -1
  44. package/dist/api/resources/sessions/client/Client.d.ts +2 -2
  45. package/dist/api/resources/sessions/client/Client.js +23 -14
  46. package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +13 -0
  47. package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.js +5 -0
  48. package/dist/api/resources/sessions/client/requests/index.d.ts +1 -0
  49. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -1
  50. package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +11 -0
  51. package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +5 -0
  52. package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +11 -0
  53. package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +5 -0
  54. package/dist/api/resources/sessions/types/index.d.ts +2 -0
  55. package/dist/api/resources/sessions/types/index.js +2 -0
  56. package/dist/api/resources/windows/client/Client.js +24 -24
  57. package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +2 -0
  58. package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +1 -1
  59. package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +3 -1
  60. package/dist/api/types/BrowserWaitNavigationConfig.d.ts +10 -0
  61. package/dist/api/types/BrowserWaitNavigationConfig.js +5 -0
  62. package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +13 -0
  63. package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.js +12 -0
  64. package/dist/api/types/ClickConfig.d.ts +4 -0
  65. package/dist/api/types/ClickConfigClickType.d.ts +12 -0
  66. package/dist/api/types/ClickConfigClickType.js +11 -0
  67. package/dist/api/types/ErrorBody.d.ts +9 -0
  68. package/dist/api/types/ErrorBody.js +5 -0
  69. package/dist/api/types/ExternalProfileV1.d.ts +3 -1
  70. package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
  71. package/dist/api/types/MicroInteractionConfig.d.ts +10 -0
  72. package/dist/api/types/MicroInteractionConfig.js +5 -0
  73. package/dist/api/types/SessionConfigV1.d.ts +4 -2
  74. package/dist/api/types/SessionEventMessage.d.ts +17 -0
  75. package/dist/api/types/SessionEventMessage.js +5 -0
  76. package/dist/api/types/StatusMessage.d.ts +2 -0
  77. package/dist/api/types/WindowEventMessage.d.ts +19 -0
  78. package/dist/api/types/WindowEventMessage.js +5 -0
  79. package/dist/api/types/index.d.ts +7 -0
  80. package/dist/api/types/index.js +7 -0
  81. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -1
  82. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -0
  83. package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +15 -0
  84. package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +36 -0
  85. package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +15 -0
  86. package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +36 -0
  87. package/dist/serialization/resources/sessions/types/index.d.ts +2 -0
  88. package/dist/serialization/resources/sessions/types/index.js +2 -0
  89. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +1 -0
  90. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +1 -0
  91. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +2 -2
  92. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +2 -2
  93. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +3 -2
  94. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +3 -2
  95. package/dist/serialization/types/BrowserWaitNavigationConfig.d.ts +14 -0
  96. package/dist/serialization/types/BrowserWaitNavigationConfig.js +35 -0
  97. package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +10 -0
  98. package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +31 -0
  99. package/dist/serialization/types/ClickConfig.d.ts +4 -0
  100. package/dist/serialization/types/ClickConfig.js +4 -0
  101. package/dist/serialization/types/ClickConfigClickType.d.ts +10 -0
  102. package/dist/serialization/types/ClickConfigClickType.js +31 -0
  103. package/dist/serialization/types/ErrorBody.d.ts +13 -0
  104. package/dist/serialization/types/ErrorBody.js +34 -0
  105. package/dist/serialization/types/ExternalProfileV1.d.ts +1 -0
  106. package/dist/serialization/types/ExternalProfileV1.js +1 -0
  107. package/dist/serialization/types/MicroInteractionConfig.d.ts +15 -0
  108. package/dist/serialization/types/MicroInteractionConfig.js +36 -0
  109. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  110. package/dist/serialization/types/SessionConfigV1.js +1 -0
  111. package/dist/serialization/types/SessionEventMessage.d.ts +18 -0
  112. package/dist/serialization/types/SessionEventMessage.js +39 -0
  113. package/dist/serialization/types/StatusMessage.d.ts +1 -0
  114. package/dist/serialization/types/StatusMessage.js +1 -0
  115. package/dist/serialization/types/WindowEventMessage.d.ts +19 -0
  116. package/dist/serialization/types/WindowEventMessage.js +40 -0
  117. package/dist/serialization/types/index.d.ts +7 -0
  118. package/dist/serialization/types/index.js +7 -0
  119. package/dist/wrapper/AirtopSessions.js +1 -1
  120. package/package.json +1 -1
  121. package/reference.md +1 -1
  122. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -1
  123. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -0
  124. package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +15 -0
  125. package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +36 -0
  126. package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +15 -0
  127. package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +36 -0
  128. package/serialization/resources/sessions/types/index.d.ts +2 -0
  129. package/serialization/resources/sessions/types/index.js +2 -0
  130. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +1 -0
  131. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +1 -0
  132. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +2 -2
  133. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +2 -2
  134. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +3 -2
  135. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +3 -2
  136. package/serialization/types/BrowserWaitNavigationConfig.d.ts +14 -0
  137. package/serialization/types/BrowserWaitNavigationConfig.js +35 -0
  138. package/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +10 -0
  139. package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +31 -0
  140. package/serialization/types/ClickConfig.d.ts +4 -0
  141. package/serialization/types/ClickConfig.js +4 -0
  142. package/serialization/types/ClickConfigClickType.d.ts +10 -0
  143. package/serialization/types/ClickConfigClickType.js +31 -0
  144. package/serialization/types/ErrorBody.d.ts +13 -0
  145. package/serialization/types/ErrorBody.js +34 -0
  146. package/serialization/types/ExternalProfileV1.d.ts +1 -0
  147. package/serialization/types/ExternalProfileV1.js +1 -0
  148. package/serialization/types/MicroInteractionConfig.d.ts +15 -0
  149. package/serialization/types/MicroInteractionConfig.js +36 -0
  150. package/serialization/types/SessionConfigV1.d.ts +1 -0
  151. package/serialization/types/SessionConfigV1.js +1 -0
  152. package/serialization/types/SessionEventMessage.d.ts +18 -0
  153. package/serialization/types/SessionEventMessage.js +39 -0
  154. package/serialization/types/StatusMessage.d.ts +1 -0
  155. package/serialization/types/StatusMessage.js +1 -0
  156. package/serialization/types/WindowEventMessage.d.ts +19 -0
  157. package/serialization/types/WindowEventMessage.js +40 -0
  158. package/serialization/types/index.d.ts +7 -0
  159. package/serialization/types/index.js +7 -0
  160. package/wrapper/AirtopSessions.js +1 -1
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
18
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
19
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
20
+ __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
20
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -13,5 +13,6 @@ export declare namespace SessionClickHandlerRequestBody {
13
13
  costThresholdCredits?: number | null;
14
14
  elementDescription: string;
15
15
  timeThresholdSeconds?: number | null;
16
+ waitForNavigation?: boolean | null;
16
17
  }
17
18
  }
@@ -35,4 +35,5 @@ exports.SessionClickHandlerRequestBody = core.serialization.object({
35
35
  costThresholdCredits: core.serialization.number().optional(),
36
36
  elementDescription: core.serialization.string(),
37
37
  timeThresholdSeconds: core.serialization.number().optional(),
38
+ waitForNavigation: core.serialization.boolean().optional(),
38
39
  });
@@ -4,12 +4,12 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Airtop from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { ClickConfig } from "../../../../types/ClickConfig";
7
+ import { MicroInteractionConfig } from "../../../../types/MicroInteractionConfig";
8
8
  export declare const SessionHoverHandlerRequestBody: core.serialization.Schema<serializers.SessionHoverHandlerRequestBody.Raw, Airtop.SessionHoverHandlerRequestBody>;
9
9
  export declare namespace SessionHoverHandlerRequestBody {
10
10
  interface Raw {
11
11
  clientRequestId?: string | null;
12
- configuration?: ClickConfig.Raw | null;
12
+ configuration?: MicroInteractionConfig.Raw | null;
13
13
  costThresholdCredits?: number | null;
14
14
  elementDescription?: string | null;
15
15
  timeThresholdSeconds?: number | null;
@@ -28,10 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SessionHoverHandlerRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const ClickConfig_1 = require("../../../../types/ClickConfig");
31
+ const MicroInteractionConfig_1 = require("../../../../types/MicroInteractionConfig");
32
32
  exports.SessionHoverHandlerRequestBody = core.serialization.object({
33
33
  clientRequestId: core.serialization.string().optional(),
34
- configuration: ClickConfig_1.ClickConfig.optional(),
34
+ configuration: MicroInteractionConfig_1.MicroInteractionConfig.optional(),
35
35
  costThresholdCredits: core.serialization.number().optional(),
36
36
  elementDescription: core.serialization.string().optional(),
37
37
  timeThresholdSeconds: core.serialization.number().optional(),
@@ -4,16 +4,17 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Airtop from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { ClickConfig } from "../../../../types/ClickConfig";
7
+ import { MicroInteractionConfig } from "../../../../types/MicroInteractionConfig";
8
8
  export declare const SessionTypeHandlerRequestBody: core.serialization.Schema<serializers.SessionTypeHandlerRequestBody.Raw, Airtop.SessionTypeHandlerRequestBody>;
9
9
  export declare namespace SessionTypeHandlerRequestBody {
10
10
  interface Raw {
11
11
  clientRequestId?: string | null;
12
- configuration?: ClickConfig.Raw | null;
12
+ configuration?: MicroInteractionConfig.Raw | null;
13
13
  costThresholdCredits?: number | null;
14
14
  elementDescription?: string | null;
15
15
  pressEnterKey?: boolean | null;
16
16
  text: string;
17
17
  timeThresholdSeconds?: number | null;
18
+ waitForNavigation?: boolean | null;
18
19
  }
19
20
  }
@@ -28,13 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SessionTypeHandlerRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const ClickConfig_1 = require("../../../../types/ClickConfig");
31
+ const MicroInteractionConfig_1 = require("../../../../types/MicroInteractionConfig");
32
32
  exports.SessionTypeHandlerRequestBody = core.serialization.object({
33
33
  clientRequestId: core.serialization.string().optional(),
34
- configuration: ClickConfig_1.ClickConfig.optional(),
34
+ configuration: MicroInteractionConfig_1.MicroInteractionConfig.optional(),
35
35
  costThresholdCredits: core.serialization.number().optional(),
36
36
  elementDescription: core.serialization.string().optional(),
37
37
  pressEnterKey: core.serialization.boolean().optional(),
38
38
  text: core.serialization.string(),
39
39
  timeThresholdSeconds: core.serialization.number().optional(),
40
+ waitForNavigation: core.serialization.boolean().optional(),
40
41
  });
@@ -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 { BrowserWaitNavigationConfigWaitUntil } from "./BrowserWaitNavigationConfigWaitUntil";
8
+ export declare const BrowserWaitNavigationConfig: core.serialization.ObjectSchema<serializers.BrowserWaitNavigationConfig.Raw, Airtop.BrowserWaitNavigationConfig>;
9
+ export declare namespace BrowserWaitNavigationConfig {
10
+ interface Raw {
11
+ timeoutSeconds?: number | null;
12
+ waitUntil?: BrowserWaitNavigationConfigWaitUntil.Raw | 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.BrowserWaitNavigationConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const BrowserWaitNavigationConfigWaitUntil_1 = require("./BrowserWaitNavigationConfigWaitUntil");
32
+ exports.BrowserWaitNavigationConfig = core.serialization.object({
33
+ timeoutSeconds: core.serialization.number().optional(),
34
+ waitUntil: BrowserWaitNavigationConfigWaitUntil_1.BrowserWaitNavigationConfigWaitUntil.optional(),
35
+ });
@@ -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 BrowserWaitNavigationConfigWaitUntil: core.serialization.Schema<serializers.BrowserWaitNavigationConfigWaitUntil.Raw, Airtop.BrowserWaitNavigationConfigWaitUntil>;
8
+ export declare namespace BrowserWaitNavigationConfigWaitUntil {
9
+ type Raw = "load" | "domcontentloaded" | "networkidle0" | "networkidle2";
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.BrowserWaitNavigationConfigWaitUntil = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.BrowserWaitNavigationConfigWaitUntil = core.serialization.enum_(["load", "domcontentloaded", "networkidle0", "networkidle2"]);
@@ -4,10 +4,14 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ClickConfigClickType } from "./ClickConfigClickType";
7
8
  import { VisualAnalysisConfig } from "./VisualAnalysisConfig";
9
+ import { BrowserWaitNavigationConfig } from "./BrowserWaitNavigationConfig";
8
10
  export declare const ClickConfig: core.serialization.ObjectSchema<serializers.ClickConfig.Raw, Airtop.ClickConfig>;
9
11
  export declare namespace ClickConfig {
10
12
  interface Raw {
13
+ clickType?: ClickConfigClickType.Raw | null;
11
14
  visualAnalysis?: VisualAnalysisConfig.Raw | null;
15
+ waitForNavigationConfig?: BrowserWaitNavigationConfig.Raw | null;
12
16
  }
13
17
  }
@@ -28,7 +28,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClickConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const ClickConfigClickType_1 = require("./ClickConfigClickType");
31
32
  const VisualAnalysisConfig_1 = require("./VisualAnalysisConfig");
33
+ const BrowserWaitNavigationConfig_1 = require("./BrowserWaitNavigationConfig");
32
34
  exports.ClickConfig = core.serialization.object({
35
+ clickType: ClickConfigClickType_1.ClickConfigClickType.optional(),
33
36
  visualAnalysis: VisualAnalysisConfig_1.VisualAnalysisConfig.optional(),
37
+ waitForNavigationConfig: BrowserWaitNavigationConfig_1.BrowserWaitNavigationConfig.optional(),
34
38
  });
@@ -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 ClickConfigClickType: core.serialization.Schema<serializers.ClickConfigClickType.Raw, Airtop.ClickConfigClickType>;
8
+ export declare namespace ClickConfigClickType {
9
+ type Raw = "click" | "doubleClick" | "rightClick";
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.ClickConfigClickType = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ClickConfigClickType = core.serialization.enum_(["click", "doubleClick", "rightClick"]);
@@ -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 ErrorBody: core.serialization.ObjectSchema<serializers.ErrorBody.Raw, Airtop.ErrorBody>;
8
+ export declare namespace ErrorBody {
9
+ interface Raw {
10
+ code: string;
11
+ message: string;
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.ErrorBody = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ErrorBody = core.serialization.object({
32
+ code: core.serialization.string(),
33
+ message: core.serialization.string(),
34
+ });
@@ -8,6 +8,7 @@ export declare const ExternalProfileV1: core.serialization.ObjectSchema<serializ
8
8
  export declare namespace ExternalProfileV1 {
9
9
  interface Raw {
10
10
  profileId: string;
11
+ profileName: string;
11
12
  status?: string | null;
12
13
  }
13
14
  }
@@ -30,5 +30,6 @@ exports.ExternalProfileV1 = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ExternalProfileV1 = core.serialization.object({
32
32
  profileId: core.serialization.string(),
33
+ profileName: core.serialization.string(),
33
34
  status: core.serialization.string().optional(),
34
35
  });
@@ -0,0 +1,15 @@
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 { VisualAnalysisConfig } from "./VisualAnalysisConfig";
8
+ import { BrowserWaitNavigationConfig } from "./BrowserWaitNavigationConfig";
9
+ export declare const MicroInteractionConfig: core.serialization.ObjectSchema<serializers.MicroInteractionConfig.Raw, Airtop.MicroInteractionConfig>;
10
+ export declare namespace MicroInteractionConfig {
11
+ interface Raw {
12
+ visualAnalysis?: VisualAnalysisConfig.Raw | null;
13
+ waitForNavigationConfig?: BrowserWaitNavigationConfig.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.MicroInteractionConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const VisualAnalysisConfig_1 = require("./VisualAnalysisConfig");
32
+ const BrowserWaitNavigationConfig_1 = require("./BrowserWaitNavigationConfig");
33
+ exports.MicroInteractionConfig = core.serialization.object({
34
+ visualAnalysis: VisualAnalysisConfig_1.VisualAnalysisConfig.optional(),
35
+ waitForNavigationConfig: BrowserWaitNavigationConfig_1.BrowserWaitNavigationConfig.optional(),
36
+ });
@@ -11,6 +11,7 @@ export declare namespace SessionConfigV1 {
11
11
  baseProfileId?: string | null;
12
12
  extensionIds?: string[] | null;
13
13
  persistProfile?: boolean | null;
14
+ profileName?: string | null;
14
15
  proxy?: SessionConfigV1Proxy.Raw | null;
15
16
  timeoutMinutes?: number | null;
16
17
  }
@@ -33,6 +33,7 @@ exports.SessionConfigV1 = core.serialization.object({
33
33
  baseProfileId: core.serialization.string().optional(),
34
34
  extensionIds: core.serialization.list(core.serialization.string()).optional(),
35
35
  persistProfile: core.serialization.boolean().optional(),
36
+ profileName: core.serialization.string().optional(),
36
37
  proxy: SessionConfigV1Proxy_1.SessionConfigV1Proxy.optional(),
37
38
  timeoutMinutes: core.serialization.number().optional(),
38
39
  });
@@ -0,0 +1,18 @@
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 { ErrorBody } from "./ErrorBody";
8
+ export declare const SessionEventMessage: core.serialization.ObjectSchema<serializers.SessionEventMessage.Raw, Airtop.SessionEventMessage>;
9
+ export declare namespace SessionEventMessage {
10
+ interface Raw {
11
+ error?: ErrorBody.Raw | null;
12
+ event: string;
13
+ eventData?: unknown | null;
14
+ eventId?: number | null;
15
+ eventTime: string;
16
+ id: string;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
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.SessionEventMessage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ErrorBody_1 = require("./ErrorBody");
32
+ exports.SessionEventMessage = core.serialization.object({
33
+ error: ErrorBody_1.ErrorBody.optional(),
34
+ event: core.serialization.string(),
35
+ eventData: core.serialization.unknown().optional(),
36
+ eventId: core.serialization.number().optional(),
37
+ eventTime: core.serialization.date(),
38
+ id: core.serialization.string(),
39
+ });
@@ -9,6 +9,7 @@ export declare const StatusMessage: core.serialization.ObjectSchema<serializers.
9
9
  export declare namespace StatusMessage {
10
10
  interface Raw {
11
11
  event: string;
12
+ eventId?: number | null;
12
13
  eventTime: string;
13
14
  id: string;
14
15
  status: StatusMessageStatus.Raw;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  const StatusMessageStatus_1 = require("./StatusMessageStatus");
32
32
  exports.StatusMessage = core.serialization.object({
33
33
  event: core.serialization.string(),
34
+ eventId: core.serialization.number().optional(),
34
35
  eventTime: core.serialization.date(),
35
36
  id: core.serialization.string(),
36
37
  status: StatusMessageStatus_1.StatusMessageStatus,
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Airtop from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ErrorBody } from "./ErrorBody";
8
+ export declare const WindowEventMessage: core.serialization.ObjectSchema<serializers.WindowEventMessage.Raw, Airtop.WindowEventMessage>;
9
+ export declare namespace WindowEventMessage {
10
+ interface Raw {
11
+ error?: ErrorBody.Raw | null;
12
+ event: string;
13
+ eventData?: unknown | null;
14
+ eventId?: number | null;
15
+ eventTime: string;
16
+ id: string;
17
+ windowId: string;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WindowEventMessage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ErrorBody_1 = require("./ErrorBody");
32
+ exports.WindowEventMessage = core.serialization.object({
33
+ error: ErrorBody_1.ErrorBody.optional(),
34
+ event: core.serialization.string(),
35
+ eventData: core.serialization.unknown().optional(),
36
+ eventId: core.serialization.number().optional(),
37
+ eventTime: core.serialization.date(),
38
+ id: core.serialization.string(),
39
+ windowId: core.serialization.string(),
40
+ });
@@ -1,8 +1,12 @@
1
1
  export * from "./AiPromptResponse";
2
2
  export * from "./AiResponseEnvelope";
3
+ export * from "./BrowserWaitNavigationConfigWaitUntil";
4
+ export * from "./BrowserWaitNavigationConfig";
5
+ export * from "./ClickConfigClickType";
3
6
  export * from "./ClickConfig";
4
7
  export * from "./ClientProvidedResponseMetadata";
5
8
  export * from "./EnvelopeDefaultMeta";
9
+ export * from "./ErrorBody";
6
10
  export * from "./ErrorDetail";
7
11
  export * from "./ErrorMessage";
8
12
  export * from "./ErrorModel";
@@ -13,6 +17,7 @@ export * from "./ExternalSessionAiResponseMetadataUsage";
13
17
  export * from "./ExternalSessionConfig";
14
18
  export * from "./ExternalSessionWithConnectionInfo";
15
19
  export * from "./Issue";
20
+ export * from "./MicroInteractionConfig";
16
21
  export * from "./OperationOutcome";
17
22
  export * from "./OperationOutcomeResponse";
18
23
  export * from "./PageQueryConfig";
@@ -29,6 +34,7 @@ export * from "./CustomProxy";
29
34
  export * from "./SessionConfigV1ProxyItem";
30
35
  export * from "./SessionConfigV1Proxy";
31
36
  export * from "./SessionConfigV1";
37
+ export * from "./SessionEventMessage";
32
38
  export * from "./SessionPageQueryHandlerRequestBody";
33
39
  export * from "./SessionResponse";
34
40
  export * from "./SessionsResponse";
@@ -41,6 +47,7 @@ export * from "./VisualAnalysisConfigPartitionDirection";
41
47
  export * from "./VisualAnalysisConfigScope";
42
48
  export * from "./VisualAnalysisConfig";
43
49
  export * from "./Window";
50
+ export * from "./WindowEventMessage";
44
51
  export * from "./WindowId";
45
52
  export * from "./WindowIdResponse";
46
53
  export * from "./WindowResponse";
@@ -16,9 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiPromptResponse"), exports);
18
18
  __exportStar(require("./AiResponseEnvelope"), exports);
19
+ __exportStar(require("./BrowserWaitNavigationConfigWaitUntil"), exports);
20
+ __exportStar(require("./BrowserWaitNavigationConfig"), exports);
21
+ __exportStar(require("./ClickConfigClickType"), exports);
19
22
  __exportStar(require("./ClickConfig"), exports);
20
23
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
21
24
  __exportStar(require("./EnvelopeDefaultMeta"), exports);
25
+ __exportStar(require("./ErrorBody"), exports);
22
26
  __exportStar(require("./ErrorDetail"), exports);
23
27
  __exportStar(require("./ErrorMessage"), exports);
24
28
  __exportStar(require("./ErrorModel"), exports);
@@ -29,6 +33,7 @@ __exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
29
33
  __exportStar(require("./ExternalSessionConfig"), exports);
30
34
  __exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
31
35
  __exportStar(require("./Issue"), exports);
36
+ __exportStar(require("./MicroInteractionConfig"), exports);
32
37
  __exportStar(require("./OperationOutcome"), exports);
33
38
  __exportStar(require("./OperationOutcomeResponse"), exports);
34
39
  __exportStar(require("./PageQueryConfig"), exports);
@@ -45,6 +50,7 @@ __exportStar(require("./CustomProxy"), exports);
45
50
  __exportStar(require("./SessionConfigV1ProxyItem"), exports);
46
51
  __exportStar(require("./SessionConfigV1Proxy"), exports);
47
52
  __exportStar(require("./SessionConfigV1"), exports);
53
+ __exportStar(require("./SessionEventMessage"), exports);
48
54
  __exportStar(require("./SessionPageQueryHandlerRequestBody"), exports);
49
55
  __exportStar(require("./SessionResponse"), exports);
50
56
  __exportStar(require("./SessionsResponse"), exports);
@@ -57,6 +63,7 @@ __exportStar(require("./VisualAnalysisConfigPartitionDirection"), exports);
57
63
  __exportStar(require("./VisualAnalysisConfigScope"), exports);
58
64
  __exportStar(require("./VisualAnalysisConfig"), exports);
59
65
  __exportStar(require("./Window"), exports);
66
+ __exportStar(require("./WindowEventMessage"), exports);
60
67
  __exportStar(require("./WindowId"), exports);
61
68
  __exportStar(require("./WindowIdResponse"), exports);
62
69
  __exportStar(require("./WindowResponse"), exports);
@@ -69,7 +69,7 @@ class AirtopSessions extends Client_1.Sessions {
69
69
  waitForSessionReady(id, requestOptions) {
70
70
  var e_1, _a;
71
71
  return __awaiter(this, void 0, void 0, function* () {
72
- const sessionEvents = yield this.events(id, Object.assign({ timeoutInSeconds: 60 }, (requestOptions || {})));
72
+ const sessionEvents = yield this.events(id, {}, Object.assign({ timeoutInSeconds: 60 }, (requestOptions || {})));
73
73
  try {
74
74
  for (var sessionEvents_1 = __asyncValues(sessionEvents), sessionEvents_1_1; sessionEvents_1_1 = yield sessionEvents_1.next(), !sessionEvents_1_1.done;) {
75
75
  const event = sessionEvents_1_1.value;