@airtop/sdk 0.1.37-beta2 → 0.1.38

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 (157) hide show
  1. package/README.md +10 -9
  2. package/api/errors/index.d.ts +2 -2
  3. package/api/errors/index.js +2 -2
  4. package/api/resources/automations/client/Client.js +4 -4
  5. package/api/resources/files/client/Client.js +4 -4
  6. package/api/resources/profiles/client/Client.js +1 -1
  7. package/api/resources/requests/client/Client.js +1 -1
  8. package/api/resources/sessions/client/Client.js +6 -6
  9. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -4
  10. package/api/resources/sessions/types/SessionsEventsResponseCaptchaEvent.d.ts +11 -0
  11. package/api/resources/sessions/types/index.d.ts +2 -1
  12. package/api/resources/sessions/types/index.js +2 -1
  13. package/api/resources/windows/client/Client.d.ts +0 -126
  14. package/api/resources/windows/client/Client.js +21 -577
  15. package/api/resources/windows/client/requests/index.d.ts +0 -10
  16. package/api/types/CaptchaEventMessage.d.ts +24 -0
  17. package/api/types/CaptchaEventMessageStatus.d.ts +12 -0
  18. package/api/types/CaptchaEventMessageStatus.js +11 -0
  19. package/api/types/index.d.ts +2 -1
  20. package/api/types/index.js +2 -1
  21. package/dist/api/errors/index.d.ts +2 -2
  22. package/dist/api/errors/index.js +2 -2
  23. package/dist/api/resources/automations/client/Client.js +4 -4
  24. package/dist/api/resources/files/client/Client.js +4 -4
  25. package/dist/api/resources/profiles/client/Client.js +1 -1
  26. package/dist/api/resources/requests/client/Client.js +1 -1
  27. package/dist/api/resources/sessions/client/Client.js +6 -6
  28. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -4
  29. package/dist/api/resources/sessions/types/SessionsEventsResponseCaptchaEvent.d.ts +11 -0
  30. package/dist/api/resources/sessions/types/index.d.ts +2 -1
  31. package/dist/api/resources/sessions/types/index.js +2 -1
  32. package/dist/api/resources/windows/client/Client.d.ts +0 -126
  33. package/dist/api/resources/windows/client/Client.js +21 -577
  34. package/dist/api/resources/windows/client/requests/index.d.ts +0 -10
  35. package/dist/api/types/CaptchaEventMessage.d.ts +24 -0
  36. package/dist/api/types/CaptchaEventMessageStatus.d.ts +12 -0
  37. package/dist/api/types/CaptchaEventMessageStatus.js +11 -0
  38. package/dist/api/types/index.d.ts +2 -1
  39. package/dist/api/types/index.js +2 -1
  40. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -5
  41. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -2
  42. package/dist/serialization/resources/sessions/types/SessionsEventsResponseCaptchaEvent.d.ts +15 -0
  43. package/dist/serialization/resources/{windows/client/requests/OperatorPromptV1Body.js → sessions/types/SessionsEventsResponseCaptchaEvent.js} +7 -9
  44. package/dist/serialization/resources/sessions/types/index.d.ts +2 -1
  45. package/dist/serialization/resources/sessions/types/index.js +2 -1
  46. package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -10
  47. package/dist/serialization/resources/windows/client/requests/index.js +1 -21
  48. package/dist/serialization/types/CaptchaEventMessage.d.ts +21 -0
  49. package/dist/serialization/types/CaptchaEventMessage.js +52 -0
  50. package/dist/serialization/types/CaptchaEventMessageStatus.d.ts +10 -0
  51. package/dist/serialization/types/{AsyncOperatorPromptResponseEnvelope.js → CaptchaEventMessageStatus.js} +2 -7
  52. package/dist/serialization/types/index.d.ts +2 -1
  53. package/dist/serialization/types/index.js +2 -1
  54. package/dist/version.d.ts +1 -1
  55. package/dist/version.js +1 -1
  56. package/package.json +1 -1
  57. package/reference.md +24 -766
  58. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -5
  59. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -2
  60. package/serialization/resources/sessions/types/SessionsEventsResponseCaptchaEvent.d.ts +15 -0
  61. package/serialization/resources/{windows/client/requests/OperatorPromptV1Body.js → sessions/types/SessionsEventsResponseCaptchaEvent.js} +7 -9
  62. package/serialization/resources/sessions/types/index.d.ts +2 -1
  63. package/serialization/resources/sessions/types/index.js +2 -1
  64. package/serialization/resources/windows/client/requests/index.d.ts +0 -10
  65. package/serialization/resources/windows/client/requests/index.js +1 -21
  66. package/serialization/types/CaptchaEventMessage.d.ts +21 -0
  67. package/serialization/types/CaptchaEventMessage.js +52 -0
  68. package/serialization/types/CaptchaEventMessageStatus.d.ts +10 -0
  69. package/serialization/types/{AsyncOperatorPromptResponseEnvelope.js → CaptchaEventMessageStatus.js} +2 -7
  70. package/serialization/types/index.d.ts +2 -1
  71. package/serialization/types/index.js +2 -1
  72. package/version.d.ts +1 -1
  73. package/version.js +1 -1
  74. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  75. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  76. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  77. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  78. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  79. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  80. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  81. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  82. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  83. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  84. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  85. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  86. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  87. package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  88. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -25
  89. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +0 -5
  90. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -9
  91. package/api/types/AsyncOperatorPromptResponseEnvelope.js +0 -5
  92. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  93. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  94. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  95. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  96. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  97. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  98. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  99. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  100. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  101. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  102. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  103. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  104. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  105. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  106. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  107. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  108. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  109. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  110. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -25
  111. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +0 -5
  112. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -9
  113. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +0 -5
  114. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  115. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  116. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  117. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  118. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  119. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  120. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  121. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  122. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  123. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  124. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  125. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  126. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  127. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  128. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  129. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  130. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  131. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  132. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -17
  133. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -15
  134. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  135. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  136. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  137. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  138. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  139. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  140. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  141. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  142. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  143. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  144. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  145. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  146. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  147. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  148. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  149. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  150. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  151. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  152. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -17
  153. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -15
  154. /package/api/resources/{windows/client/requests/AsyncClickRequest.js → sessions/types/SessionsEventsResponseCaptchaEvent.js} +0 -0
  155. /package/api/{resources/windows/client/requests/AsyncHoverRequest.js → types/CaptchaEventMessage.js} +0 -0
  156. /package/{api/resources/windows/client/requests/AsyncMonitorRequest.js → dist/api/resources/sessions/types/SessionsEventsResponseCaptchaEvent.js} +0 -0
  157. /package/{api/resources/windows/client/requests/AsyncPageQueryRequest.js → dist/api/types/CaptchaEventMessage.js} +0 -0
@@ -1,16 +1,7 @@
1
- export { type AsyncClickRequest } from "./AsyncClickRequest";
2
1
  export { type AsyncCreateAutomationRequest } from "./AsyncCreateAutomationRequest";
3
2
  export { type AsyncCreateFormFillerRequest } from "./AsyncCreateFormFillerRequest";
4
3
  export { type AsyncExecuteAutomationRequest } from "./AsyncExecuteAutomationRequest";
5
4
  export { type AsyncFillFormRequest } from "./AsyncFillFormRequest";
6
- export { type AsyncHoverRequest } from "./AsyncHoverRequest";
7
- export { type AsyncMonitorRequest } from "./AsyncMonitorRequest";
8
- export { type AsyncPageQueryRequest } from "./AsyncPageQueryRequest";
9
- export { type AsyncPaginatedExtractionRequest } from "./AsyncPaginatedExtractionRequest";
10
- export { type AsyncPromptContentRequest } from "./AsyncPromptContentRequest";
11
- export { type AsyncScreenshotRequest } from "./AsyncScreenshotRequest";
12
- export { type AsyncSummarizeContentRequest } from "./AsyncSummarizeContentRequest";
13
- export { type AsyncTypeRequest } from "./AsyncTypeRequest";
14
5
  export { type CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
15
6
  export { type GetWindowInfoRequest } from "./GetWindowInfoRequest";
16
7
  export { type WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
@@ -19,7 +10,6 @@ export { type CreateFormFillerRequest } from "./CreateFormFillerRequest";
19
10
  export { type FillFormRequest } from "./FillFormRequest";
20
11
  export { type SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
21
12
  export { type SessionMonitorHandlerRequestBody } from "./SessionMonitorHandlerRequestBody";
22
- export { type OperatorPromptV1Body } from "./OperatorPromptV1Body";
23
13
  export { type SessionPaginatedExtractionHandlerRequestBody } from "./SessionPaginatedExtractionHandlerRequestBody";
24
14
  export { type ScrapeContentRequest } from "./ScrapeContentRequest";
25
15
  export { type SessionScreenshotHandlerRequestBody } from "./SessionScreenshotHandlerRequestBody";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface CaptchaEventMessage {
6
+ /** Time taken to solve the CAPTCHA (in milliseconds). */
7
+ duration: number;
8
+ /** Event name */
9
+ event: string;
10
+ /** Date and Time of the event */
11
+ eventTime: Date;
12
+ /** CAPTCHA job ID */
13
+ id: string;
14
+ /** Retry count */
15
+ retryCount: number;
16
+ /** CAPTCHA solving status */
17
+ status: Airtop.CaptchaEventMessageStatus;
18
+ /** CAPTCHA type */
19
+ type: string;
20
+ /** URL of the page containing the CAPTCHA challenge. */
21
+ url: string;
22
+ /** Window ID */
23
+ windowId: string;
24
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * CAPTCHA solving status
6
+ */
7
+ export type CaptchaEventMessageStatus = "processing" | "completed" | "failed";
8
+ export declare const CaptchaEventMessageStatus: {
9
+ readonly Processing: "processing";
10
+ readonly Completed: "completed";
11
+ readonly Failed: "failed";
12
+ };
@@ -0,0 +1,11 @@
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.CaptchaEventMessageStatus = void 0;
7
+ exports.CaptchaEventMessageStatus = {
8
+ Processing: "processing",
9
+ Completed: "completed",
10
+ Failed: "failed",
11
+ };
@@ -1,11 +1,12 @@
1
1
  export * from "./AiPromptResponse";
2
2
  export * from "./AiResponseEnvelope";
3
3
  export * from "./AsyncConfig";
4
- export * from "./AsyncOperatorPromptResponseEnvelope";
5
4
  export * from "./AsyncSessionAiResponseEnvelope";
6
5
  export * from "./AutomationOutput";
7
6
  export * from "./BrowserWaitNavigationConfigWaitUntil";
8
7
  export * from "./BrowserWaitNavigationConfig";
8
+ export * from "./CaptchaEventMessageStatus";
9
+ export * from "./CaptchaEventMessage";
9
10
  export * from "./ClickConfigClickType";
10
11
  export * from "./ClickConfig";
11
12
  export * from "./ClientProvidedResponseMetadata";
@@ -17,11 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiPromptResponse"), exports);
18
18
  __exportStar(require("./AiResponseEnvelope"), exports);
19
19
  __exportStar(require("./AsyncConfig"), exports);
20
- __exportStar(require("./AsyncOperatorPromptResponseEnvelope"), exports);
21
20
  __exportStar(require("./AsyncSessionAiResponseEnvelope"), exports);
22
21
  __exportStar(require("./AutomationOutput"), exports);
23
22
  __exportStar(require("./BrowserWaitNavigationConfigWaitUntil"), exports);
24
23
  __exportStar(require("./BrowserWaitNavigationConfig"), exports);
24
+ __exportStar(require("./CaptchaEventMessageStatus"), exports);
25
+ __exportStar(require("./CaptchaEventMessage"), exports);
25
26
  __exportStar(require("./ClickConfigClickType"), exports);
26
27
  __exportStar(require("./ClickConfig"), exports);
27
28
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
@@ -4,27 +4,31 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
8
7
  import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
9
8
  import { SessionsEventsResponseFileEvent } from "./SessionsEventsResponseFileEvent";
9
+ import { SessionsEventsResponseCaptchaEvent } from "./SessionsEventsResponseCaptchaEvent";
10
10
  import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
11
11
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
12
+ import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
12
13
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
13
14
  export declare namespace SessionsEventsResponse {
14
- type Raw = SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent | SessionsEventsResponse.FileEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error;
15
- interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
16
- event: "windowEvent";
17
- }
15
+ type Raw = SessionsEventsResponse.SessionEvent | SessionsEventsResponse.FileEvent | SessionsEventsResponse.CaptchaEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent;
18
16
  interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
19
17
  event: "sessionEvent";
20
18
  }
21
19
  interface FileEvent extends SessionsEventsResponseFileEvent.Raw {
22
20
  event: "fileEvent";
23
21
  }
22
+ interface CaptchaEvent extends SessionsEventsResponseCaptchaEvent.Raw {
23
+ event: "captchaEvent";
24
+ }
24
25
  interface Status extends SessionsEventsResponseStatus.Raw {
25
26
  event: "status";
26
27
  }
27
28
  interface Error extends SessionsEventsResponseError.Raw {
28
29
  event: "error";
29
30
  }
31
+ interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
32
+ event: "windowEvent";
33
+ }
30
34
  }
@@ -38,18 +38,20 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.SessionsEventsResponse = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
42
41
  const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
43
42
  const SessionsEventsResponseFileEvent_1 = require("./SessionsEventsResponseFileEvent");
43
+ const SessionsEventsResponseCaptchaEvent_1 = require("./SessionsEventsResponseCaptchaEvent");
44
44
  const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
45
45
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
46
+ const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
46
47
  exports.SessionsEventsResponse = core.serialization
47
48
  .union("event", {
48
- windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
49
49
  sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
50
50
  fileEvent: SessionsEventsResponseFileEvent_1.SessionsEventsResponseFileEvent,
51
+ captchaEvent: SessionsEventsResponseCaptchaEvent_1.SessionsEventsResponseCaptchaEvent,
51
52
  status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
52
53
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
54
+ windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
53
55
  })
54
56
  .transform({
55
57
  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 { CaptchaEventMessage } from "../../../types/CaptchaEventMessage";
8
+ export declare const SessionsEventsResponseCaptchaEvent: core.serialization.ObjectSchema<serializers.SessionsEventsResponseCaptchaEvent.Raw, Airtop.SessionsEventsResponseCaptchaEvent>;
9
+ export declare namespace SessionsEventsResponseCaptchaEvent {
10
+ interface Raw {
11
+ data: CaptchaEventMessage.Raw;
12
+ id?: number | null;
13
+ retry?: number | null;
14
+ }
15
+ }
@@ -36,13 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.OperatorPromptV1Body = void 0;
40
- const core = __importStar(require("../../../../../core"));
41
- const AsyncConfig_1 = require("../../../../types/AsyncConfig");
42
- exports.OperatorPromptV1Body = core.serialization.object({
43
- async: AsyncConfig_1.AsyncConfig.optional(),
44
- clientRequestId: core.serialization.string().optional(),
45
- costThresholdCredits: core.serialization.number().optional(),
46
- prompt: core.serialization.string(),
47
- timeThresholdSeconds: core.serialization.number().optional(),
39
+ exports.SessionsEventsResponseCaptchaEvent = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const CaptchaEventMessage_1 = require("../../../types/CaptchaEventMessage");
42
+ exports.SessionsEventsResponseCaptchaEvent = core.serialization.object({
43
+ data: CaptchaEventMessage_1.CaptchaEventMessage,
44
+ id: core.serialization.number().optional(),
45
+ retry: core.serialization.number().optional(),
48
46
  });
@@ -1,7 +1,8 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseWindowEvent";
3
2
  export * from "./SessionsEventsResponseSessionEvent";
4
3
  export * from "./SessionsEventsResponseFileEvent";
4
+ export * from "./SessionsEventsResponseCaptchaEvent";
5
5
  export * from "./SessionsEventsResponseStatus";
6
6
  export * from "./SessionsEventsResponseError";
7
+ export * from "./SessionsEventsResponseWindowEvent";
7
8
  export * from "./SessionsEventsResponse";
@@ -15,9 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
- __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
19
18
  __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
20
19
  __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
20
+ __exportStar(require("./SessionsEventsResponseCaptchaEvent"), exports);
21
21
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
22
22
  __exportStar(require("./SessionsEventsResponseError"), exports);
23
+ __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
23
24
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -1,16 +1,7 @@
1
- export { AsyncClickRequest } from "./AsyncClickRequest";
2
1
  export { AsyncCreateAutomationRequest } from "./AsyncCreateAutomationRequest";
3
2
  export { AsyncCreateFormFillerRequest } from "./AsyncCreateFormFillerRequest";
4
3
  export { AsyncExecuteAutomationRequest } from "./AsyncExecuteAutomationRequest";
5
4
  export { AsyncFillFormRequest } from "./AsyncFillFormRequest";
6
- export { AsyncHoverRequest } from "./AsyncHoverRequest";
7
- export { AsyncMonitorRequest } from "./AsyncMonitorRequest";
8
- export { AsyncPageQueryRequest } from "./AsyncPageQueryRequest";
9
- export { AsyncPaginatedExtractionRequest } from "./AsyncPaginatedExtractionRequest";
10
- export { AsyncPromptContentRequest } from "./AsyncPromptContentRequest";
11
- export { AsyncScreenshotRequest } from "./AsyncScreenshotRequest";
12
- export { AsyncSummarizeContentRequest } from "./AsyncSummarizeContentRequest";
13
- export { AsyncTypeRequest } from "./AsyncTypeRequest";
14
5
  export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
15
6
  export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
16
7
  export { SessionClickHandlerRequestBody } from "./SessionClickHandlerRequestBody";
@@ -18,7 +9,6 @@ export { CreateFormFillerRequest } from "./CreateFormFillerRequest";
18
9
  export { FillFormRequest } from "./FillFormRequest";
19
10
  export { SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
20
11
  export { SessionMonitorHandlerRequestBody } from "./SessionMonitorHandlerRequestBody";
21
- export { OperatorPromptV1Body } from "./OperatorPromptV1Body";
22
12
  export { SessionPaginatedExtractionHandlerRequestBody } from "./SessionPaginatedExtractionHandlerRequestBody";
23
13
  export { ScrapeContentRequest } from "./ScrapeContentRequest";
24
14
  export { SessionScreenshotHandlerRequestBody } from "./SessionScreenshotHandlerRequestBody";
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScrollHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.OperatorPromptV1Body = exports.SessionMonitorHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.FillFormRequest = exports.CreateFormFillerRequest = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = exports.AsyncTypeRequest = exports.AsyncSummarizeContentRequest = exports.AsyncScreenshotRequest = exports.AsyncPromptContentRequest = exports.AsyncPaginatedExtractionRequest = exports.AsyncPageQueryRequest = exports.AsyncMonitorRequest = exports.AsyncHoverRequest = exports.AsyncFillFormRequest = exports.AsyncExecuteAutomationRequest = exports.AsyncCreateFormFillerRequest = exports.AsyncCreateAutomationRequest = exports.AsyncClickRequest = void 0;
4
- var AsyncClickRequest_1 = require("./AsyncClickRequest");
5
- Object.defineProperty(exports, "AsyncClickRequest", { enumerable: true, get: function () { return AsyncClickRequest_1.AsyncClickRequest; } });
3
+ exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScrollHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.SessionMonitorHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.FillFormRequest = exports.CreateFormFillerRequest = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = exports.AsyncFillFormRequest = exports.AsyncExecuteAutomationRequest = exports.AsyncCreateFormFillerRequest = exports.AsyncCreateAutomationRequest = void 0;
6
4
  var AsyncCreateAutomationRequest_1 = require("./AsyncCreateAutomationRequest");
7
5
  Object.defineProperty(exports, "AsyncCreateAutomationRequest", { enumerable: true, get: function () { return AsyncCreateAutomationRequest_1.AsyncCreateAutomationRequest; } });
8
6
  var AsyncCreateFormFillerRequest_1 = require("./AsyncCreateFormFillerRequest");
@@ -11,22 +9,6 @@ var AsyncExecuteAutomationRequest_1 = require("./AsyncExecuteAutomationRequest")
11
9
  Object.defineProperty(exports, "AsyncExecuteAutomationRequest", { enumerable: true, get: function () { return AsyncExecuteAutomationRequest_1.AsyncExecuteAutomationRequest; } });
12
10
  var AsyncFillFormRequest_1 = require("./AsyncFillFormRequest");
13
11
  Object.defineProperty(exports, "AsyncFillFormRequest", { enumerable: true, get: function () { return AsyncFillFormRequest_1.AsyncFillFormRequest; } });
14
- var AsyncHoverRequest_1 = require("./AsyncHoverRequest");
15
- Object.defineProperty(exports, "AsyncHoverRequest", { enumerable: true, get: function () { return AsyncHoverRequest_1.AsyncHoverRequest; } });
16
- var AsyncMonitorRequest_1 = require("./AsyncMonitorRequest");
17
- Object.defineProperty(exports, "AsyncMonitorRequest", { enumerable: true, get: function () { return AsyncMonitorRequest_1.AsyncMonitorRequest; } });
18
- var AsyncPageQueryRequest_1 = require("./AsyncPageQueryRequest");
19
- Object.defineProperty(exports, "AsyncPageQueryRequest", { enumerable: true, get: function () { return AsyncPageQueryRequest_1.AsyncPageQueryRequest; } });
20
- var AsyncPaginatedExtractionRequest_1 = require("./AsyncPaginatedExtractionRequest");
21
- Object.defineProperty(exports, "AsyncPaginatedExtractionRequest", { enumerable: true, get: function () { return AsyncPaginatedExtractionRequest_1.AsyncPaginatedExtractionRequest; } });
22
- var AsyncPromptContentRequest_1 = require("./AsyncPromptContentRequest");
23
- Object.defineProperty(exports, "AsyncPromptContentRequest", { enumerable: true, get: function () { return AsyncPromptContentRequest_1.AsyncPromptContentRequest; } });
24
- var AsyncScreenshotRequest_1 = require("./AsyncScreenshotRequest");
25
- Object.defineProperty(exports, "AsyncScreenshotRequest", { enumerable: true, get: function () { return AsyncScreenshotRequest_1.AsyncScreenshotRequest; } });
26
- var AsyncSummarizeContentRequest_1 = require("./AsyncSummarizeContentRequest");
27
- Object.defineProperty(exports, "AsyncSummarizeContentRequest", { enumerable: true, get: function () { return AsyncSummarizeContentRequest_1.AsyncSummarizeContentRequest; } });
28
- var AsyncTypeRequest_1 = require("./AsyncTypeRequest");
29
- Object.defineProperty(exports, "AsyncTypeRequest", { enumerable: true, get: function () { return AsyncTypeRequest_1.AsyncTypeRequest; } });
30
12
  var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
31
13
  Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
32
14
  var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
@@ -41,8 +23,6 @@ var SessionHoverHandlerRequestBody_1 = require("./SessionHoverHandlerRequestBody
41
23
  Object.defineProperty(exports, "SessionHoverHandlerRequestBody", { enumerable: true, get: function () { return SessionHoverHandlerRequestBody_1.SessionHoverHandlerRequestBody; } });
42
24
  var SessionMonitorHandlerRequestBody_1 = require("./SessionMonitorHandlerRequestBody");
43
25
  Object.defineProperty(exports, "SessionMonitorHandlerRequestBody", { enumerable: true, get: function () { return SessionMonitorHandlerRequestBody_1.SessionMonitorHandlerRequestBody; } });
44
- var OperatorPromptV1Body_1 = require("./OperatorPromptV1Body");
45
- Object.defineProperty(exports, "OperatorPromptV1Body", { enumerable: true, get: function () { return OperatorPromptV1Body_1.OperatorPromptV1Body; } });
46
26
  var SessionPaginatedExtractionHandlerRequestBody_1 = require("./SessionPaginatedExtractionHandlerRequestBody");
47
27
  Object.defineProperty(exports, "SessionPaginatedExtractionHandlerRequestBody", { enumerable: true, get: function () { return SessionPaginatedExtractionHandlerRequestBody_1.SessionPaginatedExtractionHandlerRequestBody; } });
48
28
  var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
@@ -0,0 +1,21 @@
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 { CaptchaEventMessageStatus } from "./CaptchaEventMessageStatus";
8
+ export declare const CaptchaEventMessage: core.serialization.ObjectSchema<serializers.CaptchaEventMessage.Raw, Airtop.CaptchaEventMessage>;
9
+ export declare namespace CaptchaEventMessage {
10
+ interface Raw {
11
+ duration: number;
12
+ event: string;
13
+ eventTime: string;
14
+ id: string;
15
+ retryCount: number;
16
+ status: CaptchaEventMessageStatus.Raw;
17
+ type: string;
18
+ url: string;
19
+ windowId: string;
20
+ }
21
+ }
@@ -0,0 +1,52 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CaptchaEventMessage = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const CaptchaEventMessageStatus_1 = require("./CaptchaEventMessageStatus");
42
+ exports.CaptchaEventMessage = core.serialization.object({
43
+ duration: core.serialization.number(),
44
+ event: core.serialization.string(),
45
+ eventTime: core.serialization.date(),
46
+ id: core.serialization.string(),
47
+ retryCount: core.serialization.number(),
48
+ status: CaptchaEventMessageStatus_1.CaptchaEventMessageStatus,
49
+ type: core.serialization.string(),
50
+ url: core.serialization.string(),
51
+ windowId: core.serialization.string(),
52
+ });
@@ -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 CaptchaEventMessageStatus: core.serialization.Schema<serializers.CaptchaEventMessageStatus.Raw, Airtop.CaptchaEventMessageStatus>;
8
+ export declare namespace CaptchaEventMessageStatus {
9
+ type Raw = "processing" | "completed" | "failed";
10
+ }
@@ -36,11 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.AsyncOperatorPromptResponseEnvelope = void 0;
39
+ exports.CaptchaEventMessageStatus = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- const Issue_1 = require("./Issue");
42
- exports.AsyncOperatorPromptResponseEnvelope = core.serialization.object({
43
- errors: core.serialization.list(Issue_1.Issue).optional(),
44
- requestId: core.serialization.string(),
45
- warnings: core.serialization.list(Issue_1.Issue).optional(),
46
- });
41
+ exports.CaptchaEventMessageStatus = core.serialization.enum_(["processing", "completed", "failed"]);
@@ -1,11 +1,12 @@
1
1
  export * from "./AiPromptResponse";
2
2
  export * from "./AiResponseEnvelope";
3
3
  export * from "./AsyncConfig";
4
- export * from "./AsyncOperatorPromptResponseEnvelope";
5
4
  export * from "./AsyncSessionAiResponseEnvelope";
6
5
  export * from "./AutomationOutput";
7
6
  export * from "./BrowserWaitNavigationConfigWaitUntil";
8
7
  export * from "./BrowserWaitNavigationConfig";
8
+ export * from "./CaptchaEventMessageStatus";
9
+ export * from "./CaptchaEventMessage";
9
10
  export * from "./ClickConfigClickType";
10
11
  export * from "./ClickConfig";
11
12
  export * from "./ClientProvidedResponseMetadata";
@@ -17,11 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiPromptResponse"), exports);
18
18
  __exportStar(require("./AiResponseEnvelope"), exports);
19
19
  __exportStar(require("./AsyncConfig"), exports);
20
- __exportStar(require("./AsyncOperatorPromptResponseEnvelope"), exports);
21
20
  __exportStar(require("./AsyncSessionAiResponseEnvelope"), exports);
22
21
  __exportStar(require("./AutomationOutput"), exports);
23
22
  __exportStar(require("./BrowserWaitNavigationConfigWaitUntil"), exports);
24
23
  __exportStar(require("./BrowserWaitNavigationConfig"), exports);
24
+ __exportStar(require("./CaptchaEventMessageStatus"), exports);
25
+ __exportStar(require("./CaptchaEventMessage"), exports);
25
26
  __exportStar(require("./ClickConfigClickType"), exports);
26
27
  __exportStar(require("./ClickConfig"), exports);
27
28
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.37-beta2";
1
+ export declare const SDK_VERSION = "0.1.38";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.37-beta2";
4
+ exports.SDK_VERSION = "0.1.38";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.37-beta2",
3
+ "version": "0.1.38",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",