@airtop/sdk 0.1.37 → 0.1.38-beta0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/README.md +9 -10
  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/SessionsEventsResponseCaptchaEvent.js +5 -0
  12. package/api/resources/sessions/types/index.d.ts +2 -1
  13. package/api/resources/sessions/types/index.js +2 -1
  14. package/api/resources/windows/client/Client.d.ts +126 -0
  15. package/api/resources/windows/client/Client.js +577 -21
  16. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  17. package/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  18. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  19. package/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  20. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  21. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  22. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  23. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  24. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  25. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  26. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  27. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  28. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  29. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  30. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  31. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  32. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  33. package/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  34. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  35. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  36. package/api/resources/windows/client/requests/index.d.ts +10 -0
  37. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  38. package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  39. package/api/types/CaptchaEventMessage.d.ts +24 -0
  40. package/api/types/CaptchaEventMessage.js +5 -0
  41. package/api/types/CaptchaEventMessageStatus.d.ts +12 -0
  42. package/api/types/CaptchaEventMessageStatus.js +11 -0
  43. package/api/types/SessionConfigV1.d.ts +2 -0
  44. package/api/types/index.d.ts +3 -0
  45. package/api/types/index.js +3 -0
  46. package/dist/api/errors/index.d.ts +2 -2
  47. package/dist/api/errors/index.js +2 -2
  48. package/dist/api/resources/automations/client/Client.js +4 -4
  49. package/dist/api/resources/files/client/Client.js +4 -4
  50. package/dist/api/resources/profiles/client/Client.js +1 -1
  51. package/dist/api/resources/requests/client/Client.js +1 -1
  52. package/dist/api/resources/sessions/client/Client.js +6 -6
  53. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -4
  54. package/dist/api/resources/sessions/types/SessionsEventsResponseCaptchaEvent.d.ts +11 -0
  55. package/dist/api/resources/sessions/types/SessionsEventsResponseCaptchaEvent.js +5 -0
  56. package/dist/api/resources/sessions/types/index.d.ts +2 -1
  57. package/dist/api/resources/sessions/types/index.js +2 -1
  58. package/dist/api/resources/windows/client/Client.d.ts +126 -0
  59. package/dist/api/resources/windows/client/Client.js +577 -21
  60. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  61. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  62. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  63. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  64. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  65. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  66. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  67. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  68. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  69. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  70. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  71. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  72. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  73. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  74. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  75. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  76. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  77. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  78. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  79. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  80. package/dist/api/resources/windows/client/requests/index.d.ts +10 -0
  81. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  82. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  83. package/dist/api/types/CaptchaEventMessage.d.ts +24 -0
  84. package/dist/api/types/CaptchaEventMessage.js +5 -0
  85. package/dist/api/types/CaptchaEventMessageStatus.d.ts +12 -0
  86. package/dist/api/types/CaptchaEventMessageStatus.js +11 -0
  87. package/dist/api/types/SessionConfigV1.d.ts +2 -0
  88. package/dist/api/types/index.d.ts +3 -0
  89. package/dist/api/types/index.js +3 -0
  90. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -5
  91. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -2
  92. package/dist/serialization/resources/sessions/types/SessionsEventsResponseCaptchaEvent.d.ts +15 -0
  93. package/dist/serialization/resources/sessions/types/SessionsEventsResponseCaptchaEvent.js +46 -0
  94. package/dist/serialization/resources/sessions/types/index.d.ts +2 -1
  95. package/dist/serialization/resources/sessions/types/index.js +2 -1
  96. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  97. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  98. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  99. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  100. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  101. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  102. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  103. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  104. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  105. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  106. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  107. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  108. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  109. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  110. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  111. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  112. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  113. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  114. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  115. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  116. package/dist/serialization/resources/windows/client/requests/index.d.ts +10 -0
  117. package/dist/serialization/resources/windows/client/requests/index.js +21 -1
  118. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  119. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  120. package/dist/serialization/types/CaptchaEventMessage.d.ts +21 -0
  121. package/dist/serialization/types/CaptchaEventMessage.js +52 -0
  122. package/dist/serialization/types/CaptchaEventMessageStatus.d.ts +10 -0
  123. package/dist/serialization/types/CaptchaEventMessageStatus.js +41 -0
  124. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  125. package/dist/serialization/types/SessionConfigV1.js +1 -0
  126. package/dist/serialization/types/index.d.ts +3 -0
  127. package/dist/serialization/types/index.js +3 -0
  128. package/dist/version.d.ts +1 -1
  129. package/dist/version.js +1 -1
  130. package/package.json +1 -1
  131. package/reference.md +765 -23
  132. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -5
  133. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -2
  134. package/serialization/resources/sessions/types/SessionsEventsResponseCaptchaEvent.d.ts +15 -0
  135. package/serialization/resources/sessions/types/SessionsEventsResponseCaptchaEvent.js +46 -0
  136. package/serialization/resources/sessions/types/index.d.ts +2 -1
  137. package/serialization/resources/sessions/types/index.js +2 -1
  138. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  139. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  140. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  141. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  142. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  143. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  144. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  145. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  146. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  147. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  148. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  149. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  150. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  151. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  152. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  153. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  154. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  155. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  156. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  157. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  158. package/serialization/resources/windows/client/requests/index.d.ts +10 -0
  159. package/serialization/resources/windows/client/requests/index.js +21 -1
  160. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  161. package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  162. package/serialization/types/CaptchaEventMessage.d.ts +21 -0
  163. package/serialization/types/CaptchaEventMessage.js +52 -0
  164. package/serialization/types/CaptchaEventMessageStatus.d.ts +10 -0
  165. package/serialization/types/CaptchaEventMessageStatus.js +41 -0
  166. package/serialization/types/SessionConfigV1.d.ts +1 -0
  167. package/serialization/types/SessionConfigV1.js +1 -0
  168. package/serialization/types/index.d.ts +3 -0
  169. package/serialization/types/index.js +3 -0
  170. package/version.d.ts +1 -1
  171. package/version.js +1 -1
@@ -0,0 +1,29 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
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
+ */
9
+ export interface AsyncScreenshotRequest {
10
+ /** Async configuration options. */
11
+ async?: Airtop.AsyncConfig;
12
+ clientRequestId?: string;
13
+ /** Request configuration */
14
+ configuration?: Airtop.ScreenshotRequestConfig;
15
+ /** 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). */
16
+ costThresholdCredits?: number;
17
+ /**
18
+ * 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).
19
+ *
20
+ * This setting does not extend the maximum session duration provided at the time of session creation.
21
+ */
22
+ timeThresholdSeconds?: number;
23
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
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
+ */
9
+ export interface AsyncSummarizeContentRequest {
10
+ /** Async configuration options. */
11
+ async?: Airtop.AsyncConfig;
12
+ clientRequestId?: string;
13
+ /** Request configuration */
14
+ configuration?: Airtop.SummaryConfig;
15
+ /** 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). */
16
+ costThresholdCredits?: number;
17
+ /** An optional prompt providing the Airtop AI model with additional direction or constraints about the summary (such as desired length). */
18
+ prompt?: string;
19
+ /**
20
+ * 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).
21
+ *
22
+ * This setting does not extend the maximum session duration provided at the time of session creation.
23
+ */
24
+ timeThresholdSeconds?: number;
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
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
+ * text: "Example text"
9
+ * }
10
+ */
11
+ export interface AsyncTypeRequest {
12
+ /** Async configuration options. */
13
+ async?: Airtop.AsyncConfig;
14
+ /** If true, and an HTML input field is active, clears the input field before typing the text. */
15
+ clearInputField?: boolean;
16
+ clientRequestId?: string;
17
+ /** Request configuration */
18
+ configuration?: Airtop.MicroInteractionConfigWithExperimental;
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
+ /** A natural language description of where to type (e.g. 'the search box', 'username field'). The interaction will be aborted if the target element cannot be found. */
22
+ elementDescription?: string;
23
+ /** If true, simulates pressing the Enter key after typing the text. */
24
+ pressEnterKey?: boolean;
25
+ /** If true, simulates pressing the Tab key after typing the text. Note that the tab key will be pressed after the Enter key if both options are configured. */
26
+ pressTabKey?: boolean;
27
+ /** The text to type into the browser window. */
28
+ text: string;
29
+ /**
30
+ * 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).
31
+ *
32
+ * This setting does not extend the maximum session duration provided at the time of session creation.
33
+ */
34
+ timeThresholdSeconds?: number;
35
+ /** If true, Airtop AI will wait for the navigation to complete after clicking the element. */
36
+ waitForNavigation?: boolean;
37
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
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 latest news about OpenAI?"
9
+ * }
10
+ */
11
+ export interface OperatorPromptV1Body {
12
+ /** Async configuration options. */
13
+ async?: Airtop.AsyncConfig;
14
+ clientRequestId?: string;
15
+ /** 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). */
16
+ costThresholdCredits?: number;
17
+ /** prompt to ask operator */
18
+ prompt: string;
19
+ /**
20
+ * 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).
21
+ *
22
+ * This setting does not extend the maximum session duration provided at the time of session creation.
23
+ */
24
+ timeThresholdSeconds?: number;
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,16 @@
1
+ export { type AsyncClickRequest } from "./AsyncClickRequest";
1
2
  export { type AsyncCreateAutomationRequest } from "./AsyncCreateAutomationRequest";
2
3
  export { type AsyncCreateFormFillerRequest } from "./AsyncCreateFormFillerRequest";
3
4
  export { type AsyncExecuteAutomationRequest } from "./AsyncExecuteAutomationRequest";
4
5
  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";
5
14
  export { type CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
6
15
  export { type GetWindowInfoRequest } from "./GetWindowInfoRequest";
7
16
  export { type WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
@@ -10,6 +19,7 @@ export { type CreateFormFillerRequest } from "./CreateFormFillerRequest";
10
19
  export { type FillFormRequest } from "./FillFormRequest";
11
20
  export { type SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
12
21
  export { type SessionMonitorHandlerRequestBody } from "./SessionMonitorHandlerRequestBody";
22
+ export { type OperatorPromptV1Body } from "./OperatorPromptV1Body";
13
23
  export { type SessionPaginatedExtractionHandlerRequestBody } from "./SessionPaginatedExtractionHandlerRequestBody";
14
24
  export { type ScrapeContentRequest } from "./ScrapeContentRequest";
15
25
  export { type SessionScreenshotHandlerRequestBody } from "./SessionScreenshotHandlerRequestBody";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface AsyncOperatorPromptResponseEnvelope {
6
+ errors?: Airtop.Issue[];
7
+ requestId: string;
8
+ warnings?: Airtop.Issue[];
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -13,6 +13,8 @@ export interface SessionConfigV1 {
13
13
  profileName?: string;
14
14
  /** Proxy configuration. */
15
15
  proxy?: Airtop.SessionConfigV1Proxy;
16
+ /** Automatically solve captcha challenges. */
17
+ solveCaptcha?: boolean;
16
18
  /** Number of minutes of inactivity (idle timeout) after which the session will terminate. The idle timeout is reset when a user makes an incoming HTTP request, AI request, or new WebSocket connection to the session. Thus, when using drivers like Puppeteer, Selenium or Playwright, the timeout reset depends on the nature of the driver request. If not specified, defaults to 10 minutes. */
17
19
  timeoutMinutes?: number;
18
20
  }
@@ -1,10 +1,13 @@
1
1
  export * from "./AiPromptResponse";
2
2
  export * from "./AiResponseEnvelope";
3
3
  export * from "./AsyncConfig";
4
+ export * from "./AsyncOperatorPromptResponseEnvelope";
4
5
  export * from "./AsyncSessionAiResponseEnvelope";
5
6
  export * from "./AutomationOutput";
6
7
  export * from "./BrowserWaitNavigationConfigWaitUntil";
7
8
  export * from "./BrowserWaitNavigationConfig";
9
+ export * from "./CaptchaEventMessageStatus";
10
+ export * from "./CaptchaEventMessage";
8
11
  export * from "./ClickConfigClickType";
9
12
  export * from "./ClickConfig";
10
13
  export * from "./ClientProvidedResponseMetadata";
@@ -17,10 +17,13 @@ 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);
20
21
  __exportStar(require("./AsyncSessionAiResponseEnvelope"), exports);
21
22
  __exportStar(require("./AutomationOutput"), exports);
22
23
  __exportStar(require("./BrowserWaitNavigationConfigWaitUntil"), exports);
23
24
  __exportStar(require("./BrowserWaitNavigationConfig"), exports);
25
+ __exportStar(require("./CaptchaEventMessageStatus"), exports);
26
+ __exportStar(require("./CaptchaEventMessage"), exports);
24
27
  __exportStar(require("./ClickConfigClickType"), exports);
25
28
  __exportStar(require("./ClickConfig"), exports);
26
29
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
@@ -1,5 +1,5 @@
1
- export * from "./UnauthorizedError";
2
- export * from "./ForbiddenError";
3
1
  export * from "./NotFoundError";
4
2
  export * from "./UnprocessableEntityError";
5
3
  export * from "./InternalServerError";
4
+ export * from "./UnauthorizedError";
5
+ export * from "./ForbiddenError";
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./UnauthorizedError"), exports);
18
- __exportStar(require("./ForbiddenError"), exports);
19
17
  __exportStar(require("./NotFoundError"), exports);
20
18
  __exportStar(require("./UnprocessableEntityError"), exports);
21
19
  __exportStar(require("./InternalServerError"), exports);
20
+ __exportStar(require("./UnauthorizedError"), exports);
21
+ __exportStar(require("./ForbiddenError"), exports);
@@ -73,7 +73,7 @@ class Automations {
73
73
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
74
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "automations"),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -135,7 +135,7 @@ class Automations {
135
135
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
136
136
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "automations/description"),
137
137
  method: "PUT",
138
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
139
  contentType: "application/json",
140
140
  requestType: "json",
141
141
  body: serializers.UpdateAutomationDescriptionInputBody.jsonOrThrow(request, {
@@ -239,7 +239,7 @@ class Automations {
239
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
240
240
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `automations/${encodeURIComponent(automationId)}`),
241
241
  method: "GET",
242
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -340,7 +340,7 @@ class Automations {
340
340
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
341
341
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `automations/${encodeURIComponent(automationId)}`),
342
342
  method: "DELETE",
343
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
343
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
344
  contentType: "application/json",
345
345
  requestType: "json",
346
346
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -92,7 +92,7 @@ class Files {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "files"),
94
94
  method: "GET",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -145,7 +145,7 @@ class Files {
145
145
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
146
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "files"),
147
147
  method: "POST",
148
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
148
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.CreateFileRestInputV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -196,7 +196,7 @@ class Files {
196
196
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
197
197
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `files/${encodeURIComponent(id)}`),
198
198
  method: "GET",
199
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -246,7 +246,7 @@ class Files {
246
246
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
247
247
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `files/${encodeURIComponent(id)}`),
248
248
  method: "DELETE",
249
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@airtop/sdk/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.38-beta0", "User-Agent": "@airtop/sdk/0.1.38-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,