@airtop/sdk 0.1.9 → 0.1.12

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 (146) 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/SessionTypeHandlerRequestBody.d.ts +2 -0
  19. package/api/types/BrowserWaitNavigationConfig.d.ts +10 -0
  20. package/api/types/BrowserWaitNavigationConfig.js +5 -0
  21. package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +13 -0
  22. package/api/types/BrowserWaitNavigationConfigWaitUntil.js +12 -0
  23. package/api/types/ClickConfig.d.ts +2 -0
  24. package/api/types/ErrorBody.d.ts +9 -0
  25. package/api/types/ErrorBody.js +5 -0
  26. package/api/types/ExternalProfileV1.d.ts +3 -1
  27. package/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
  28. package/api/types/SessionConfigV1.d.ts +4 -2
  29. package/api/types/SessionEventMessage.d.ts +17 -0
  30. package/api/types/SessionEventMessage.js +5 -0
  31. package/api/types/StatusMessage.d.ts +2 -0
  32. package/api/types/WindowEventMessage.d.ts +19 -0
  33. package/api/types/WindowEventMessage.js +5 -0
  34. package/api/types/index.d.ts +5 -0
  35. package/api/types/index.js +5 -0
  36. package/dist/api/resources/profiles/client/Client.js +22 -6
  37. package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +5 -1
  38. package/dist/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +5 -1
  39. package/dist/api/resources/sessions/client/Client.d.ts +2 -2
  40. package/dist/api/resources/sessions/client/Client.js +23 -14
  41. package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +13 -0
  42. package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.js +5 -0
  43. package/dist/api/resources/sessions/client/requests/index.d.ts +1 -0
  44. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -1
  45. package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +11 -0
  46. package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +5 -0
  47. package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +11 -0
  48. package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +5 -0
  49. package/dist/api/resources/sessions/types/index.d.ts +2 -0
  50. package/dist/api/resources/sessions/types/index.js +2 -0
  51. package/dist/api/resources/windows/client/Client.js +24 -24
  52. package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +2 -0
  53. package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +2 -0
  54. package/dist/api/types/BrowserWaitNavigationConfig.d.ts +10 -0
  55. package/dist/api/types/BrowserWaitNavigationConfig.js +5 -0
  56. package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +13 -0
  57. package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.js +12 -0
  58. package/dist/api/types/ClickConfig.d.ts +2 -0
  59. package/dist/api/types/ErrorBody.d.ts +9 -0
  60. package/dist/api/types/ErrorBody.js +5 -0
  61. package/dist/api/types/ExternalProfileV1.d.ts +3 -1
  62. package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +1 -1
  63. package/dist/api/types/SessionConfigV1.d.ts +4 -2
  64. package/dist/api/types/SessionEventMessage.d.ts +17 -0
  65. package/dist/api/types/SessionEventMessage.js +5 -0
  66. package/dist/api/types/StatusMessage.d.ts +2 -0
  67. package/dist/api/types/WindowEventMessage.d.ts +19 -0
  68. package/dist/api/types/WindowEventMessage.js +5 -0
  69. package/dist/api/types/index.d.ts +5 -0
  70. package/dist/api/types/index.js +5 -0
  71. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -1
  72. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -0
  73. package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +15 -0
  74. package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +36 -0
  75. package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +15 -0
  76. package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +36 -0
  77. package/dist/serialization/resources/sessions/types/index.d.ts +2 -0
  78. package/dist/serialization/resources/sessions/types/index.js +2 -0
  79. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +1 -0
  80. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +1 -0
  81. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +1 -0
  82. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +1 -0
  83. package/dist/serialization/types/BrowserWaitNavigationConfig.d.ts +14 -0
  84. package/dist/serialization/types/BrowserWaitNavigationConfig.js +35 -0
  85. package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +10 -0
  86. package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +31 -0
  87. package/dist/serialization/types/ClickConfig.d.ts +2 -0
  88. package/dist/serialization/types/ClickConfig.js +2 -0
  89. package/dist/serialization/types/ErrorBody.d.ts +13 -0
  90. package/dist/serialization/types/ErrorBody.js +34 -0
  91. package/dist/serialization/types/ExternalProfileV1.d.ts +1 -0
  92. package/dist/serialization/types/ExternalProfileV1.js +1 -0
  93. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  94. package/dist/serialization/types/SessionConfigV1.js +1 -0
  95. package/dist/serialization/types/SessionEventMessage.d.ts +18 -0
  96. package/dist/serialization/types/SessionEventMessage.js +39 -0
  97. package/dist/serialization/types/StatusMessage.d.ts +1 -0
  98. package/dist/serialization/types/StatusMessage.js +1 -0
  99. package/dist/serialization/types/WindowEventMessage.d.ts +19 -0
  100. package/dist/serialization/types/WindowEventMessage.js +40 -0
  101. package/dist/serialization/types/index.d.ts +5 -0
  102. package/dist/serialization/types/index.js +5 -0
  103. package/dist/utils/batch-operate/SessionQueue.d.ts +1 -1
  104. package/dist/utils/batch-operate/WindowQueue.d.ts +1 -1
  105. package/dist/utils/batch-operate/batch-util.d.ts +1 -1
  106. package/dist/utils/batch-operate/types.d.ts +1 -1
  107. package/dist/wrapper/AirtopSessions.js +1 -1
  108. package/package.json +1 -1
  109. package/reference.md +1 -1
  110. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -1
  111. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -0
  112. package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +15 -0
  113. package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +36 -0
  114. package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +15 -0
  115. package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +36 -0
  116. package/serialization/resources/sessions/types/index.d.ts +2 -0
  117. package/serialization/resources/sessions/types/index.js +2 -0
  118. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +1 -0
  119. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +1 -0
  120. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +1 -0
  121. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +1 -0
  122. package/serialization/types/BrowserWaitNavigationConfig.d.ts +14 -0
  123. package/serialization/types/BrowserWaitNavigationConfig.js +35 -0
  124. package/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +10 -0
  125. package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +31 -0
  126. package/serialization/types/ClickConfig.d.ts +2 -0
  127. package/serialization/types/ClickConfig.js +2 -0
  128. package/serialization/types/ErrorBody.d.ts +13 -0
  129. package/serialization/types/ErrorBody.js +34 -0
  130. package/serialization/types/ExternalProfileV1.d.ts +1 -0
  131. package/serialization/types/ExternalProfileV1.js +1 -0
  132. package/serialization/types/SessionConfigV1.d.ts +1 -0
  133. package/serialization/types/SessionConfigV1.js +1 -0
  134. package/serialization/types/SessionEventMessage.d.ts +18 -0
  135. package/serialization/types/SessionEventMessage.js +39 -0
  136. package/serialization/types/StatusMessage.d.ts +1 -0
  137. package/serialization/types/StatusMessage.js +1 -0
  138. package/serialization/types/WindowEventMessage.d.ts +19 -0
  139. package/serialization/types/WindowEventMessage.js +40 -0
  140. package/serialization/types/index.d.ts +5 -0
  141. package/serialization/types/index.js +5 -0
  142. package/utils/batch-operate/SessionQueue.d.ts +1 -1
  143. package/utils/batch-operate/WindowQueue.d.ts +1 -1
  144. package/utils/batch-operate/batch-util.d.ts +1 -1
  145. package/utils/batch-operate/types.d.ts +1 -1
  146. package/wrapper/AirtopSessions.js +1 -1
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface SessionEventMessage {
6
+ /** Error message */
7
+ error?: Airtop.ErrorBody;
8
+ /** Event name */
9
+ event: string;
10
+ eventData?: unknown;
11
+ /** Event ID */
12
+ eventId?: number;
13
+ /** Date and Time of the event */
14
+ eventTime: Date;
15
+ /** ID of the session */
16
+ id: string;
17
+ }
@@ -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 });
@@ -5,6 +5,8 @@ import * as Airtop from "../index";
5
5
  export interface StatusMessage {
6
6
  /** Event name */
7
7
  event: string;
8
+ /** Event ID */
9
+ eventId?: number;
8
10
  /** Date and Time of the event */
9
11
  eventTime: Date;
10
12
  /** ID of the session */
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface WindowEventMessage {
6
+ /** Error message */
7
+ error?: Airtop.ErrorBody;
8
+ /** Event name */
9
+ event: string;
10
+ eventData?: unknown;
11
+ /** Event ID */
12
+ eventId?: number;
13
+ /** Date and Time of the event */
14
+ eventTime: Date;
15
+ /** ID of the session */
16
+ id: string;
17
+ /** Window ID */
18
+ windowId: string;
19
+ }
@@ -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 });
@@ -1,8 +1,11 @@
1
1
  export * from "./AiPromptResponse";
2
2
  export * from "./AiResponseEnvelope";
3
+ export * from "./BrowserWaitNavigationConfigWaitUntil";
4
+ export * from "./BrowserWaitNavigationConfig";
3
5
  export * from "./ClickConfig";
4
6
  export * from "./ClientProvidedResponseMetadata";
5
7
  export * from "./EnvelopeDefaultMeta";
8
+ export * from "./ErrorBody";
6
9
  export * from "./ErrorDetail";
7
10
  export * from "./ErrorMessage";
8
11
  export * from "./ErrorModel";
@@ -29,6 +32,7 @@ export * from "./CustomProxy";
29
32
  export * from "./SessionConfigV1ProxyItem";
30
33
  export * from "./SessionConfigV1Proxy";
31
34
  export * from "./SessionConfigV1";
35
+ export * from "./SessionEventMessage";
32
36
  export * from "./SessionPageQueryHandlerRequestBody";
33
37
  export * from "./SessionResponse";
34
38
  export * from "./SessionsResponse";
@@ -41,6 +45,7 @@ export * from "./VisualAnalysisConfigPartitionDirection";
41
45
  export * from "./VisualAnalysisConfigScope";
42
46
  export * from "./VisualAnalysisConfig";
43
47
  export * from "./Window";
48
+ export * from "./WindowEventMessage";
44
49
  export * from "./WindowId";
45
50
  export * from "./WindowIdResponse";
46
51
  export * from "./WindowResponse";
@@ -16,9 +16,12 @@ 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);
19
21
  __exportStar(require("./ClickConfig"), exports);
20
22
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
21
23
  __exportStar(require("./EnvelopeDefaultMeta"), exports);
24
+ __exportStar(require("./ErrorBody"), exports);
22
25
  __exportStar(require("./ErrorDetail"), exports);
23
26
  __exportStar(require("./ErrorMessage"), exports);
24
27
  __exportStar(require("./ErrorModel"), exports);
@@ -45,6 +48,7 @@ __exportStar(require("./CustomProxy"), exports);
45
48
  __exportStar(require("./SessionConfigV1ProxyItem"), exports);
46
49
  __exportStar(require("./SessionConfigV1Proxy"), exports);
47
50
  __exportStar(require("./SessionConfigV1"), exports);
51
+ __exportStar(require("./SessionEventMessage"), exports);
48
52
  __exportStar(require("./SessionPageQueryHandlerRequestBody"), exports);
49
53
  __exportStar(require("./SessionResponse"), exports);
50
54
  __exportStar(require("./SessionsResponse"), exports);
@@ -57,6 +61,7 @@ __exportStar(require("./VisualAnalysisConfigPartitionDirection"), exports);
57
61
  __exportStar(require("./VisualAnalysisConfigScope"), exports);
58
62
  __exportStar(require("./VisualAnalysisConfig"), exports);
59
63
  __exportStar(require("./Window"), exports);
64
+ __exportStar(require("./WindowEventMessage"), exports);
60
65
  __exportStar(require("./WindowId"), exports);
61
66
  __exportStar(require("./WindowIdResponse"), exports);
62
67
  __exportStar(require("./WindowResponse"), exports);
@@ -6,13 +6,21 @@ import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
8
8
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
9
+ import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
10
+ import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
9
11
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
10
12
  export declare namespace SessionsEventsResponse {
11
- type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error;
13
+ type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent;
12
14
  interface Status extends SessionsEventsResponseStatus.Raw {
13
15
  event: "status";
14
16
  }
15
17
  interface Error extends SessionsEventsResponseError.Raw {
16
18
  event: "error";
17
19
  }
20
+ interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
21
+ event: "windowEvent";
22
+ }
23
+ interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
24
+ event: "sessionEvent";
25
+ }
18
26
  }
@@ -30,10 +30,14 @@ exports.SessionsEventsResponse = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
32
32
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
33
+ const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
34
+ const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
33
35
  exports.SessionsEventsResponse = core.serialization
34
36
  .union("event", {
35
37
  status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
36
38
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
39
+ windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
40
+ sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
37
41
  })
38
42
  .transform({
39
43
  transform: (value) => value,
@@ -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 { SessionEventMessage } from "../../../types/SessionEventMessage";
8
+ export declare const SessionsEventsResponseSessionEvent: core.serialization.ObjectSchema<serializers.SessionsEventsResponseSessionEvent.Raw, Airtop.SessionsEventsResponseSessionEvent>;
9
+ export declare namespace SessionsEventsResponseSessionEvent {
10
+ interface Raw {
11
+ data: SessionEventMessage.Raw;
12
+ id?: number | null;
13
+ retry?: number | 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.SessionsEventsResponseSessionEvent = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const SessionEventMessage_1 = require("../../../types/SessionEventMessage");
32
+ exports.SessionsEventsResponseSessionEvent = core.serialization.object({
33
+ data: SessionEventMessage_1.SessionEventMessage,
34
+ id: core.serialization.number().optional(),
35
+ retry: core.serialization.number().optional(),
36
+ });
@@ -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 { WindowEventMessage } from "../../../types/WindowEventMessage";
8
+ export declare const SessionsEventsResponseWindowEvent: core.serialization.ObjectSchema<serializers.SessionsEventsResponseWindowEvent.Raw, Airtop.SessionsEventsResponseWindowEvent>;
9
+ export declare namespace SessionsEventsResponseWindowEvent {
10
+ interface Raw {
11
+ data: WindowEventMessage.Raw;
12
+ id?: number | null;
13
+ retry?: number | 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.SessionsEventsResponseWindowEvent = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const WindowEventMessage_1 = require("../../../types/WindowEventMessage");
32
+ exports.SessionsEventsResponseWindowEvent = core.serialization.object({
33
+ data: WindowEventMessage_1.WindowEventMessage,
34
+ id: core.serialization.number().optional(),
35
+ retry: core.serialization.number().optional(),
36
+ });
@@ -1,4 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
2
  export * from "./SessionsEventsResponseStatus";
3
3
  export * from "./SessionsEventsResponseError";
4
+ export * from "./SessionsEventsResponseWindowEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
4
6
  export * from "./SessionsEventsResponse";
@@ -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
  });
@@ -15,5 +15,6 @@ export declare namespace SessionTypeHandlerRequestBody {
15
15
  pressEnterKey?: boolean | null;
16
16
  text: string;
17
17
  timeThresholdSeconds?: number | null;
18
+ waitForNavigation?: boolean | null;
18
19
  }
19
20
  }
@@ -37,4 +37,5 @@ exports.SessionTypeHandlerRequestBody = core.serialization.object({
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"]);
@@ -5,9 +5,11 @@ import * as serializers from "../index";
5
5
  import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { VisualAnalysisConfig } from "./VisualAnalysisConfig";
8
+ import { BrowserWaitNavigationConfig } from "./BrowserWaitNavigationConfig";
8
9
  export declare const ClickConfig: core.serialization.ObjectSchema<serializers.ClickConfig.Raw, Airtop.ClickConfig>;
9
10
  export declare namespace ClickConfig {
10
11
  interface Raw {
11
12
  visualAnalysis?: VisualAnalysisConfig.Raw | null;
13
+ waitForNavigationConfig?: BrowserWaitNavigationConfig.Raw | null;
12
14
  }
13
15
  }
@@ -29,6 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClickConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VisualAnalysisConfig_1 = require("./VisualAnalysisConfig");
32
+ const BrowserWaitNavigationConfig_1 = require("./BrowserWaitNavigationConfig");
32
33
  exports.ClickConfig = core.serialization.object({
33
34
  visualAnalysis: VisualAnalysisConfig_1.VisualAnalysisConfig.optional(),
35
+ waitForNavigationConfig: BrowserWaitNavigationConfig_1.BrowserWaitNavigationConfig.optional(),
34
36
  });
@@ -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
  });
@@ -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
+ }