@airtop/sdk 0.1.37-beta1 → 0.1.37

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 (141) hide show
  1. package/README.md +10 -9
  2. package/api/resources/automations/client/Client.js +4 -4
  3. package/api/resources/files/client/Client.js +4 -4
  4. package/api/resources/profiles/client/Client.js +1 -1
  5. package/api/resources/requests/client/Client.js +1 -1
  6. package/api/resources/sessions/client/Client.js +6 -6
  7. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
  8. package/api/resources/sessions/types/index.d.ts +2 -2
  9. package/api/resources/sessions/types/index.js +2 -2
  10. package/api/resources/windows/client/Client.d.ts +0 -126
  11. package/api/resources/windows/client/Client.js +21 -577
  12. package/api/resources/windows/client/requests/index.d.ts +0 -10
  13. package/api/types/index.d.ts +0 -1
  14. package/api/types/index.js +0 -1
  15. package/dist/api/resources/automations/client/Client.js +4 -4
  16. package/dist/api/resources/files/client/Client.js +4 -4
  17. package/dist/api/resources/profiles/client/Client.js +1 -1
  18. package/dist/api/resources/requests/client/Client.js +1 -1
  19. package/dist/api/resources/sessions/client/Client.js +6 -6
  20. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
  21. package/dist/api/resources/sessions/types/index.d.ts +2 -2
  22. package/dist/api/resources/sessions/types/index.js +2 -2
  23. package/dist/api/resources/windows/client/Client.d.ts +0 -126
  24. package/dist/api/resources/windows/client/Client.js +21 -577
  25. package/dist/api/resources/windows/client/requests/index.d.ts +0 -10
  26. package/dist/api/types/index.d.ts +0 -1
  27. package/dist/api/types/index.js +0 -1
  28. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
  29. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
  30. package/dist/serialization/resources/sessions/types/index.d.ts +2 -2
  31. package/dist/serialization/resources/sessions/types/index.js +2 -2
  32. package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -10
  33. package/dist/serialization/resources/windows/client/requests/index.js +1 -21
  34. package/dist/serialization/types/index.d.ts +0 -1
  35. package/dist/serialization/types/index.js +0 -1
  36. package/dist/version.d.ts +1 -1
  37. package/dist/version.js +1 -1
  38. package/dist/wrapper/AirtopSessions.d.ts +21 -22
  39. package/dist/wrapper/AirtopSessions.js +40 -25
  40. package/package.json +1 -1
  41. package/reference.md +24 -766
  42. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
  43. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
  44. package/serialization/resources/sessions/types/index.d.ts +2 -2
  45. package/serialization/resources/sessions/types/index.js +2 -2
  46. package/serialization/resources/windows/client/requests/index.d.ts +0 -10
  47. package/serialization/resources/windows/client/requests/index.js +1 -21
  48. package/serialization/types/index.d.ts +0 -1
  49. package/serialization/types/index.js +0 -1
  50. package/version.d.ts +1 -1
  51. package/version.js +1 -1
  52. package/wrapper/AirtopSessions.d.ts +21 -22
  53. package/wrapper/AirtopSessions.js +40 -25
  54. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  55. package/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  56. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  57. package/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  58. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  59. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  60. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  61. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  62. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  63. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  64. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  65. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  66. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  67. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  68. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  69. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  70. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  71. package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  72. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -25
  73. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +0 -5
  74. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -9
  75. package/api/types/AsyncOperatorPromptResponseEnvelope.js +0 -5
  76. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  77. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  78. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  79. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  80. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  81. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  82. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  83. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  84. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  85. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  86. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  87. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  88. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  89. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  90. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  91. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  92. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  93. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  94. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -25
  95. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +0 -5
  96. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -9
  97. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +0 -5
  98. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  99. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  100. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  101. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  102. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  103. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  104. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  105. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  106. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  107. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  108. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  109. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  110. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  111. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  112. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  113. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  114. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  115. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  116. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -17
  117. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +0 -48
  118. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -15
  119. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +0 -46
  120. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  121. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  122. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  123. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  124. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  125. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  126. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  127. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  128. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  129. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  130. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  131. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  132. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  133. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  134. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  135. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  136. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  137. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  138. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -17
  139. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +0 -48
  140. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -15
  141. package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +0 -46
@@ -4,20 +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 { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
8
- import { SessionsEventsResponseFileEvent } from "./SessionsEventsResponseFileEvent";
9
7
  import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
10
8
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
11
9
  import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
10
+ import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
11
+ import { SessionsEventsResponseFileEvent } from "./SessionsEventsResponseFileEvent";
12
12
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
13
13
  export declare namespace SessionsEventsResponse {
14
- type Raw = SessionsEventsResponse.SessionEvent | SessionsEventsResponse.FileEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent;
15
- interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
16
- event: "sessionEvent";
17
- }
18
- interface FileEvent extends SessionsEventsResponseFileEvent.Raw {
19
- event: "fileEvent";
20
- }
14
+ type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent | SessionsEventsResponse.FileEvent;
21
15
  interface Status extends SessionsEventsResponseStatus.Raw {
22
16
  event: "status";
23
17
  }
@@ -27,4 +21,10 @@ export declare namespace SessionsEventsResponse {
27
21
  interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
28
22
  event: "windowEvent";
29
23
  }
24
+ interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
25
+ event: "sessionEvent";
26
+ }
27
+ interface FileEvent extends SessionsEventsResponseFileEvent.Raw {
28
+ event: "fileEvent";
29
+ }
30
30
  }
@@ -38,18 +38,18 @@ 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 SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
42
- const SessionsEventsResponseFileEvent_1 = require("./SessionsEventsResponseFileEvent");
43
41
  const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
44
42
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
45
43
  const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
44
+ const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
45
+ const SessionsEventsResponseFileEvent_1 = require("./SessionsEventsResponseFileEvent");
46
46
  exports.SessionsEventsResponse = core.serialization
47
47
  .union("event", {
48
- sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
49
- fileEvent: SessionsEventsResponseFileEvent_1.SessionsEventsResponseFileEvent,
50
48
  status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
51
49
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
52
50
  windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
51
+ sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
52
+ fileEvent: SessionsEventsResponseFileEvent_1.SessionsEventsResponseFileEvent,
53
53
  })
54
54
  .transform({
55
55
  transform: (value) => value,
@@ -1,7 +1,7 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseSessionEvent";
3
- export * from "./SessionsEventsResponseFileEvent";
4
2
  export * from "./SessionsEventsResponseStatus";
5
3
  export * from "./SessionsEventsResponseError";
6
4
  export * from "./SessionsEventsResponseWindowEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
6
+ export * from "./SessionsEventsResponseFileEvent";
7
7
  export * from "./SessionsEventsResponse";
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
- __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
19
- __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
20
18
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
21
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
22
20
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
+ __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
23
23
  __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");
@@ -1,7 +1,6 @@
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";
@@ -17,7 +17,6 @@ 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);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.37-beta1";
1
+ export declare const SDK_VERSION = "0.1.37";
package/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-beta1";
4
+ exports.SDK_VERSION = "0.1.37";
@@ -31,34 +31,33 @@ export declare class AirtopSessions extends SessionsClass {
31
31
  /**
32
32
  * Waits for a file to be downloaded in a session and reach 'available' status.
33
33
  * Defaults to looking back 5 seconds in the event stream for the file to be available.
34
- * Use `includePriorEvents` and `lookbackSeconds` to control this behavior.
34
+ * Use `lookbackSeconds` to control this behavior.
35
35
  *
36
- * @param {Object} params - The parameters for the function
37
- * @param {string} params.sessionId - The ID of the session to monitor
38
- * @param {boolean} [params.includePriorEvents=true] - Whether to include prior events in the wait. Default `true`.
39
- * @param {number} [params.lookbackSeconds=5] - The number of seconds to look back for prior events. Default `5`.
36
+ * @param {string} sessionId - The ID of the session to monitor
37
+ * @param {Object} configuration - The optional configuration parameters for the function
38
+ * @param {number} [configuration.lookbackSeconds=5] - The number of seconds to look back for prior events. Default `5`. 0 means no lookback.
40
39
  * @param {Sessions.RequestOptions} [requestOptions] - Optional request configuration including timeout
41
40
  * @returns {Promise<{ id: string, downloadUrl: string } | null>} Object containing file's id and downloadUrl, or null if timed out
42
41
  */
43
42
  waitForDownload(sessionId: string, configuration?: {
44
- includePriorEvents?: boolean;
45
43
  lookbackSeconds?: number;
46
44
  }, requestOptions?: SessionsNamespace.RequestOptions): Promise<{
47
45
  id: string;
48
46
  downloadUrl: string;
49
47
  } | null>;
50
48
  /**
51
- * Waits for a file download to start in a session
49
+ * Waits for a file download to start in a session.
50
+ * Defaults to looking back 5 seconds in the event stream for the file to be available.
51
+ * Use `lookbackSeconds` to control this behavior.
52
52
  *
53
- * @param {Object} params - The parameters for the function
54
- * @param {string} params.sessionId - The ID of the session to monitor
55
- * @param {boolean} [params.includePriorEvents=false] - Whether to include prior events in the wait
53
+ * @param {string} sessionId - The ID of the session to monitor
54
+ * @param {Object} configuration - The optional configuration parameters for the function
55
+ * @param {number} [configuration.lookbackSeconds=5] - The number of seconds to look back for prior events. Default `5`. 0 means no lookback.
56
56
  * @param {Sessions.RequestOptions} [requestOptions] - Optional request configuration including timeout
57
57
  * @returns {Promise<{ id: string, downloadUrl: string } | null>} Object containing file's id and downloadUrl, or null if timed out
58
58
  */
59
- waitForDownloadStart({ sessionId, includePriorEvents }: {
60
- sessionId: string;
61
- includePriorEvents?: boolean;
59
+ waitForDownloadStart(sessionId: string, configuration?: {
60
+ lookbackSeconds?: number;
62
61
  }, requestOptions?: SessionsNamespace.RequestOptions): Promise<{
63
62
  id: string;
64
63
  downloadUrl: string;
@@ -66,18 +65,18 @@ export declare class AirtopSessions extends SessionsClass {
66
65
  /**
67
66
  * Downloads the next file from a session as soon as it starts to become available
68
67
  *
69
- * @param {Object} params - The parameters for the function
70
- * @param {string} params.sessionId - The ID of the session to download from
71
- * @param {string} params.destinationPath - The local path where the file should be saved
72
- * @param {function} [params.onProgress] - Optional callback to track download progress
73
- * @param {boolean} [params.includePriorEvents=false] - Whether to include prior events in the wait
68
+ * @param {string} sessionId - The ID of the session to download from
69
+ * @param {string} destinationPath - The local path where the file should be saved
70
+ * @param {Object} configuration - The optional configuration parameters for the function
71
+ * @param {function} [configuration.onProgress] - Optional callback to track download progress
72
+ * @param {number} [configuration.lookbackSeconds=5] - Optional number of seconds to look back for prior events. Default `5`. 0 means no lookback.
73
+ * @param {number} [configuration.timeoutSeconds=120] - Optional timeout in seconds. Default `120`.
74
74
  * @param {Sessions.RequestOptions} [requestOptions] - Optional request configuration including timeout
75
75
  * @throws Error if no file is available to download within the timeout period
76
76
  */
77
- downloadNextFile({ sessionId, destinationPath, onProgress, includePriorEvents, }: {
78
- sessionId: string;
79
- destinationPath: string;
77
+ downloadNextFile(sessionId: string, destinationPath: string, configuration?: {
80
78
  onProgress?: (downloadedBytes: number, totalBytes: number) => void;
81
- includePriorEvents?: boolean;
79
+ lookbackSeconds?: number;
80
+ timeoutSeconds?: number;
82
81
  }, requestOptions?: SessionsNamespace.RequestOptions): Promise<void>;
83
82
  }
@@ -154,28 +154,31 @@ class AirtopSessions extends Client_1.Sessions {
154
154
  /**
155
155
  * Waits for a file to be downloaded in a session and reach 'available' status.
156
156
  * Defaults to looking back 5 seconds in the event stream for the file to be available.
157
- * Use `includePriorEvents` and `lookbackSeconds` to control this behavior.
157
+ * Use `lookbackSeconds` to control this behavior.
158
158
  *
159
- * @param {Object} params - The parameters for the function
160
- * @param {string} params.sessionId - The ID of the session to monitor
161
- * @param {boolean} [params.includePriorEvents=true] - Whether to include prior events in the wait. Default `true`.
162
- * @param {number} [params.lookbackSeconds=5] - The number of seconds to look back for prior events. Default `5`.
159
+ * @param {string} sessionId - The ID of the session to monitor
160
+ * @param {Object} configuration - The optional configuration parameters for the function
161
+ * @param {number} [configuration.lookbackSeconds=5] - The number of seconds to look back for prior events. Default `5`. 0 means no lookback.
163
162
  * @param {Sessions.RequestOptions} [requestOptions] - Optional request configuration including timeout
164
163
  * @returns {Promise<{ id: string, downloadUrl: string } | null>} Object containing file's id and downloadUrl, or null if timed out
165
164
  */
166
165
  waitForDownload(sessionId, configuration, requestOptions) {
167
166
  return __awaiter(this, void 0, void 0, function* () {
168
- const { includePriorEvents = true, lookbackSeconds = 5 } = configuration || {};
167
+ const { lookbackSeconds = 5 } = configuration || {};
168
+ this.log(`waiting for file to be available on session: ${sessionId}`);
169
169
  const startTime = new Date();
170
170
  const timeoutSeconds = (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) || 120;
171
171
  // Create a promise that resolves to null after the timeout
172
172
  const timeoutPromise = new Promise((resolve) => {
173
- setTimeout(() => resolve(null), timeoutSeconds * 1000);
173
+ setTimeout(() => {
174
+ this.log(`waiting for file timed out after ${timeoutSeconds} seconds`);
175
+ resolve(null);
176
+ }, timeoutSeconds * 1000);
174
177
  });
175
178
  // Create a promise for the event processing
176
179
  const processEventsPromise = (() => __awaiter(this, void 0, void 0, function* () {
177
180
  var _a, e_2, _b, _c;
178
- const sessionEvents = yield this.events(sessionId, { all: includePriorEvents }, Object.assign({ timeoutInSeconds: timeoutSeconds }, (requestOptions || {})));
181
+ const sessionEvents = yield this.events(sessionId, { all: lookbackSeconds >= 0 }, Object.assign({ timeoutInSeconds: timeoutSeconds }, (requestOptions || {})));
179
182
  try {
180
183
  for (var _d = true, sessionEvents_2 = __asyncValues(sessionEvents), sessionEvents_2_1; sessionEvents_2_1 = yield sessionEvents_2.next(), _a = sessionEvents_2_1.done, !_a; _d = true) {
181
184
  _c = sessionEvents_2_1.value;
@@ -213,16 +216,20 @@ class AirtopSessions extends Client_1.Sessions {
213
216
  });
214
217
  }
215
218
  /**
216
- * Waits for a file download to start in a session
219
+ * Waits for a file download to start in a session.
220
+ * Defaults to looking back 5 seconds in the event stream for the file to be available.
221
+ * Use `lookbackSeconds` to control this behavior.
217
222
  *
218
- * @param {Object} params - The parameters for the function
219
- * @param {string} params.sessionId - The ID of the session to monitor
220
- * @param {boolean} [params.includePriorEvents=false] - Whether to include prior events in the wait
223
+ * @param {string} sessionId - The ID of the session to monitor
224
+ * @param {Object} configuration - The optional configuration parameters for the function
225
+ * @param {number} [configuration.lookbackSeconds=5] - The number of seconds to look back for prior events. Default `5`. 0 means no lookback.
221
226
  * @param {Sessions.RequestOptions} [requestOptions] - Optional request configuration including timeout
222
227
  * @returns {Promise<{ id: string, downloadUrl: string } | null>} Object containing file's id and downloadUrl, or null if timed out
223
228
  */
224
- waitForDownloadStart(_a, requestOptions_1) {
225
- return __awaiter(this, arguments, void 0, function* ({ sessionId, includePriorEvents = false }, requestOptions) {
229
+ waitForDownloadStart(sessionId, configuration, requestOptions) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ const { lookbackSeconds = 5 } = configuration || {};
232
+ const startTime = new Date();
226
233
  const timeoutSeconds = (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) || 60;
227
234
  // Create a promise that resolves to null after the timeout
228
235
  const timeoutPromise = new Promise((resolve) => {
@@ -231,7 +238,7 @@ class AirtopSessions extends Client_1.Sessions {
231
238
  // Create a promise for the event processing
232
239
  const processEventsPromise = (() => __awaiter(this, void 0, void 0, function* () {
233
240
  var _a, e_3, _b, _c;
234
- const sessionEvents = yield this.events(sessionId, { all: includePriorEvents }, Object.assign({ timeoutInSeconds: timeoutSeconds }, (requestOptions || {})));
241
+ const sessionEvents = yield this.events(sessionId, { all: lookbackSeconds >= 0 }, Object.assign({ timeoutInSeconds: timeoutSeconds }, (requestOptions || {})));
235
242
  try {
236
243
  for (var _d = true, sessionEvents_3 = __asyncValues(sessionEvents), sessionEvents_3_1; sessionEvents_3_1 = yield sessionEvents_3.next(), _a = sessionEvents_3_1.done, !_a; _d = true) {
237
244
  _c = sessionEvents_3_1.value;
@@ -241,6 +248,12 @@ class AirtopSessions extends Client_1.Sessions {
241
248
  if (e.event === 'file_status') {
242
249
  this.log(`file_status message received:\n${JSON.stringify(event, null, 2)}`);
243
250
  if (e.status === 'uploading') {
251
+ const eventTime = Date.parse(e.eventTime);
252
+ const thresholdTime = startTime.getTime() - lookbackSeconds * 1000;
253
+ if (eventTime < thresholdTime) {
254
+ this.log(`skipping file uploading event for ${e.fileId} because its timestamp is earlier than lookbackSeconds`);
255
+ continue;
256
+ }
244
257
  return {
245
258
  id: e.fileId,
246
259
  downloadUrl: e.downloadUrl,
@@ -265,18 +278,20 @@ class AirtopSessions extends Client_1.Sessions {
265
278
  /**
266
279
  * Downloads the next file from a session as soon as it starts to become available
267
280
  *
268
- * @param {Object} params - The parameters for the function
269
- * @param {string} params.sessionId - The ID of the session to download from
270
- * @param {string} params.destinationPath - The local path where the file should be saved
271
- * @param {function} [params.onProgress] - Optional callback to track download progress
272
- * @param {boolean} [params.includePriorEvents=false] - Whether to include prior events in the wait
281
+ * @param {string} sessionId - The ID of the session to download from
282
+ * @param {string} destinationPath - The local path where the file should be saved
283
+ * @param {Object} configuration - The optional configuration parameters for the function
284
+ * @param {function} [configuration.onProgress] - Optional callback to track download progress
285
+ * @param {number} [configuration.lookbackSeconds=5] - Optional number of seconds to look back for prior events. Default `5`. 0 means no lookback.
286
+ * @param {number} [configuration.timeoutSeconds=120] - Optional timeout in seconds. Default `120`.
273
287
  * @param {Sessions.RequestOptions} [requestOptions] - Optional request configuration including timeout
274
288
  * @throws Error if no file is available to download within the timeout period
275
289
  */
276
- downloadNextFile(_a, requestOptions_1) {
277
- return __awaiter(this, arguments, void 0, function* ({ sessionId, destinationPath, onProgress, includePriorEvents = false, }, requestOptions) {
278
- var _b;
279
- const nextFile = yield this.waitForDownload(sessionId, { includePriorEvents }, requestOptions);
290
+ downloadNextFile(sessionId, destinationPath, configuration, requestOptions) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ var _a;
293
+ const { onProgress = undefined, lookbackSeconds = 5, timeoutSeconds = 120 } = configuration || {};
294
+ const nextFile = yield this.waitForDownload(sessionId, { lookbackSeconds }, Object.assign({ timeoutInSeconds: timeoutSeconds }, (requestOptions || {})));
280
295
  if (!nextFile) {
281
296
  throw new Error('No file to download within timeout');
282
297
  }
@@ -284,7 +299,7 @@ class AirtopSessions extends Client_1.Sessions {
284
299
  if (!downloadResponse.ok) {
285
300
  throw new Error(`Failed to download file: ${downloadResponse.statusText}`);
286
301
  }
287
- const totalBytes = Number.parseInt((_b = downloadResponse.headers.get('content-length')) !== null && _b !== void 0 ? _b : '0', 10);
302
+ const totalBytes = Number.parseInt((_a = downloadResponse.headers.get('content-length')) !== null && _a !== void 0 ? _a : '0', 10);
288
303
  let downloadedBytes = 0;
289
304
  fs.mkdirSync(path.dirname(destinationPath), { recursive: true });
290
305
  const fileStream = fs.createWriteStream(destinationPath);
@@ -1,29 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Airtop from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * elementDescription: "The login button"
9
- * }
10
- */
11
- export interface AsyncClickRequest {
12
- /** Async configuration options. */
13
- async?: Airtop.AsyncConfig;
14
- clientRequestId?: string;
15
- /** Request configuration */
16
- configuration?: Airtop.ClickConfig;
17
- /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
18
- costThresholdCredits?: number;
19
- /** A natural language description of the element to click. */
20
- elementDescription: string;
21
- /**
22
- * A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
23
- *
24
- * This setting does not extend the maximum session duration provided at the time of session creation.
25
- */
26
- timeThresholdSeconds?: number;
27
- /** If true, Airtop AI will wait for the navigation to complete after clicking the element. */
28
- waitForNavigation?: boolean;
29
- }
@@ -1,5 +0,0 @@
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,27 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Airtop from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * elementDescription: "The search box input in the top right corner"
9
- * }
10
- */
11
- export interface AsyncHoverRequest {
12
- /** Async configuration options. */
13
- async?: Airtop.AsyncConfig;
14
- clientRequestId?: string;
15
- /** Request configuration */
16
- configuration?: Airtop.MicroInteractionConfigWithExperimental;
17
- /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
18
- costThresholdCredits?: number;
19
- /** A natural language description of where to hover (e.g. 'the search box', 'username field'). The interaction will be aborted if the target element cannot be found. */
20
- elementDescription: string;
21
- /**
22
- * A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
23
- *
24
- * This setting does not extend the maximum session duration provided at the time of session creation.
25
- */
26
- timeThresholdSeconds?: number;
27
- }
@@ -1,5 +0,0 @@
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,27 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Airtop from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * condition: "Determine if the user appears to be signed in to the website"
9
- * }
10
- */
11
- export interface AsyncMonitorRequest {
12
- /** Async configuration options. */
13
- async?: Airtop.AsyncConfig;
14
- clientRequestId?: string;
15
- /** A natural language description of the condition to monitor for in the browser window. */
16
- condition: string;
17
- /** Monitor configuration. If not specified, defaults to an interval monitor with a 5 second interval. */
18
- configuration?: Airtop.MonitorConfig;
19
- /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
20
- costThresholdCredits?: number;
21
- /**
22
- * A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
23
- *
24
- * This setting does not extend the maximum session duration provided at the time of session creation.
25
- */
26
- timeThresholdSeconds?: number;
27
- }
@@ -1,5 +0,0 @@
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,29 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Airtop from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * prompt: "What is the main idea of this page?"
9
- * }
10
- */
11
- export interface AsyncPageQueryRequest {
12
- /** Async configuration options. */
13
- async?: Airtop.AsyncConfig;
14
- clientRequestId?: string;
15
- /** Request configuration */
16
- configuration?: Airtop.PageQueryConfig;
17
- /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
18
- costThresholdCredits?: number;
19
- /** Make a best effort attempt to load more content items than are originally displayed on the page, e.g. by following pagination links, clicking controls to load more content, utilizing infinite scrolling, etc. This can be quite a bit more costly, but may be necessary for sites that require additional interaction to show the needed results. You can provide constraints in your prompt (e.g. on the total number of pages or results to consider). */
20
- followPaginationLinks?: boolean;
21
- /** The prompt to submit about the content in the browser window. */
22
- prompt: string;
23
- /**
24
- * A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
25
- *
26
- * This setting does not extend the maximum session duration provided at the time of session creation.
27
- */
28
- timeThresholdSeconds?: number;
29
- }
@@ -1,5 +0,0 @@
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,27 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Airtop from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * prompt: "This site contains a list of results about <provide details about the list>. Navigate through 3 pages of results and return the title and <provide details about the data you want to extract> about each result in this list."
9
- * }
10
- */
11
- export interface AsyncPaginatedExtractionRequest {
12
- /** Async configuration options. */
13
- async?: Airtop.AsyncConfig;
14
- clientRequestId?: string;
15
- /** Request configuration */
16
- configuration?: Airtop.PaginatedExtractionConfig;
17
- /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
18
- costThresholdCredits?: number;
19
- /** A prompt providing the Airtop AI model with additional direction or constraints about the page and the details you want to extract from the page. */
20
- prompt: string;
21
- /**
22
- * A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
23
- *
24
- * This setting does not extend the maximum session duration provided at the time of session creation.
25
- */
26
- timeThresholdSeconds?: number;
27
- }
@@ -1,5 +0,0 @@
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,29 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Airtop from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * prompt: "What is the main idea of this page?"
9
- * }
10
- */
11
- export interface AsyncPromptContentRequest {
12
- /** Async configuration options. */
13
- async?: Airtop.AsyncConfig;
14
- clientRequestId?: string;
15
- /** Request configuration */
16
- configuration?: Airtop.PageQueryConfig;
17
- /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
18
- costThresholdCredits?: number;
19
- /** Make a best effort attempt to load more content items than are originally displayed on the page, e.g. by following pagination links, clicking controls to load more content, utilizing infinite scrolling, etc. This can be quite a bit more costly, but may be necessary for sites that require additional interaction to show the needed results. You can provide constraints in your prompt (e.g. on the total number of pages or results to consider). */
20
- followPaginationLinks?: boolean;
21
- /** The prompt to submit about the content in the browser window. */
22
- prompt: string;
23
- /**
24
- * A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
25
- *
26
- * This setting does not extend the maximum session duration provided at the time of session creation.
27
- */
28
- timeThresholdSeconds?: number;
29
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });