@airtop/sdk 0.1.42-beta0 → 0.1.43

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 (209) 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 +5 -5
  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 -224
  11. package/api/resources/windows/client/Client.js +220 -1175
  12. package/api/resources/windows/client/requests/index.d.ts +0 -17
  13. package/api/resources/windows/types/index.d.ts +0 -1
  14. package/api/resources/windows/types/index.js +0 -1
  15. package/api/types/index.d.ts +0 -1
  16. package/api/types/index.js +0 -1
  17. package/dist/api/resources/automations/client/Client.js +4 -4
  18. package/dist/api/resources/files/client/Client.js +5 -5
  19. package/dist/api/resources/profiles/client/Client.js +1 -1
  20. package/dist/api/resources/requests/client/Client.js +1 -1
  21. package/dist/api/resources/sessions/client/Client.js +6 -6
  22. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
  23. package/dist/api/resources/sessions/types/index.d.ts +2 -2
  24. package/dist/api/resources/sessions/types/index.js +2 -2
  25. package/dist/api/resources/windows/client/Client.d.ts +0 -224
  26. package/dist/api/resources/windows/client/Client.js +220 -1175
  27. package/dist/api/resources/windows/client/requests/index.d.ts +0 -17
  28. package/dist/api/resources/windows/types/index.d.ts +0 -1
  29. package/dist/api/resources/windows/types/index.js +0 -1
  30. package/dist/api/types/index.d.ts +0 -1
  31. package/dist/api/types/index.js +0 -1
  32. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
  33. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
  34. package/dist/serialization/resources/sessions/types/index.d.ts +2 -2
  35. package/dist/serialization/resources/sessions/types/index.js +2 -2
  36. package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -17
  37. package/dist/serialization/resources/windows/client/requests/index.js +1 -35
  38. package/dist/serialization/resources/windows/types/index.d.ts +0 -1
  39. package/dist/serialization/resources/windows/types/index.js +0 -1
  40. package/dist/serialization/types/index.d.ts +0 -1
  41. package/dist/serialization/types/index.js +0 -1
  42. package/dist/version.d.ts +1 -1
  43. package/dist/version.js +1 -1
  44. package/package.json +1 -1
  45. package/reference.md +140 -1449
  46. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
  47. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
  48. package/serialization/resources/sessions/types/index.d.ts +2 -2
  49. package/serialization/resources/sessions/types/index.js +2 -2
  50. package/serialization/resources/windows/client/requests/index.d.ts +0 -17
  51. package/serialization/resources/windows/client/requests/index.js +1 -35
  52. package/serialization/resources/windows/types/index.d.ts +0 -1
  53. package/serialization/resources/windows/types/index.js +0 -1
  54. package/serialization/types/index.d.ts +0 -1
  55. package/serialization/types/index.js +0 -1
  56. package/version.d.ts +1 -1
  57. package/version.js +1 -1
  58. package/api/resources/windows/client/requests/ActRequest.d.ts +0 -30
  59. package/api/resources/windows/client/requests/ActRequest.js +0 -5
  60. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  61. package/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  62. package/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +0 -33
  63. package/api/resources/windows/client/requests/AsyncFileInputRequest.js +0 -5
  64. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  65. package/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  66. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  67. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  68. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  69. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  70. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  71. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  72. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  73. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  74. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  75. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  76. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  77. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  78. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  79. package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  80. package/api/resources/windows/client/requests/ExtractRequest.d.ts +0 -30
  81. package/api/resources/windows/client/requests/ExtractRequest.js +0 -5
  82. package/api/resources/windows/client/requests/FindManyRequest.d.ts +0 -30
  83. package/api/resources/windows/client/requests/FindManyRequest.js +0 -5
  84. package/api/resources/windows/client/requests/FindOneRequest.d.ts +0 -30
  85. package/api/resources/windows/client/requests/FindOneRequest.js +0 -5
  86. package/api/resources/windows/client/requests/LlmRequest.d.ts +0 -25
  87. package/api/resources/windows/client/requests/LlmRequest.js +0 -5
  88. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -25
  89. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +0 -5
  90. package/api/resources/windows/client/requests/WaitForPageRequest.d.ts +0 -23
  91. package/api/resources/windows/client/requests/WaitForPageRequest.js +0 -5
  92. package/api/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +0 -11
  93. package/api/resources/windows/types/WaitForPageRequestTargetStatus.js +0 -10
  94. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -9
  95. package/api/types/AsyncOperatorPromptResponseEnvelope.js +0 -5
  96. package/dist/api/resources/windows/client/requests/ActRequest.d.ts +0 -30
  97. package/dist/api/resources/windows/client/requests/ActRequest.js +0 -5
  98. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  99. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  100. package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +0 -33
  101. package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.js +0 -5
  102. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  103. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  104. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  105. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  106. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  107. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  108. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  109. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  110. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  111. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  112. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  113. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  114. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  115. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  116. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  117. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  118. package/dist/api/resources/windows/client/requests/ExtractRequest.d.ts +0 -30
  119. package/dist/api/resources/windows/client/requests/ExtractRequest.js +0 -5
  120. package/dist/api/resources/windows/client/requests/FindManyRequest.d.ts +0 -30
  121. package/dist/api/resources/windows/client/requests/FindManyRequest.js +0 -5
  122. package/dist/api/resources/windows/client/requests/FindOneRequest.d.ts +0 -30
  123. package/dist/api/resources/windows/client/requests/FindOneRequest.js +0 -5
  124. package/dist/api/resources/windows/client/requests/LlmRequest.d.ts +0 -25
  125. package/dist/api/resources/windows/client/requests/LlmRequest.js +0 -5
  126. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -25
  127. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +0 -5
  128. package/dist/api/resources/windows/client/requests/WaitForPageRequest.d.ts +0 -23
  129. package/dist/api/resources/windows/client/requests/WaitForPageRequest.js +0 -5
  130. package/dist/api/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +0 -11
  131. package/dist/api/resources/windows/types/WaitForPageRequestTargetStatus.js +0 -10
  132. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -9
  133. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +0 -5
  134. package/dist/serialization/resources/windows/client/requests/ActRequest.d.ts +0 -19
  135. package/dist/serialization/resources/windows/client/requests/ActRequest.js +0 -50
  136. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  137. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  138. package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +0 -23
  139. package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +0 -54
  140. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  141. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  142. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  143. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  144. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  145. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  146. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  147. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  148. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  149. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  150. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  151. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  152. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  153. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  154. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  155. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  156. package/dist/serialization/resources/windows/client/requests/ExtractRequest.d.ts +0 -19
  157. package/dist/serialization/resources/windows/client/requests/ExtractRequest.js +0 -50
  158. package/dist/serialization/resources/windows/client/requests/FindManyRequest.d.ts +0 -19
  159. package/dist/serialization/resources/windows/client/requests/FindManyRequest.js +0 -50
  160. package/dist/serialization/resources/windows/client/requests/FindOneRequest.d.ts +0 -19
  161. package/dist/serialization/resources/windows/client/requests/FindOneRequest.js +0 -50
  162. package/dist/serialization/resources/windows/client/requests/LlmRequest.d.ts +0 -17
  163. package/dist/serialization/resources/windows/client/requests/LlmRequest.js +0 -48
  164. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -17
  165. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +0 -48
  166. package/dist/serialization/resources/windows/client/requests/WaitForPageRequest.d.ts +0 -18
  167. package/dist/serialization/resources/windows/client/requests/WaitForPageRequest.js +0 -49
  168. package/dist/serialization/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +0 -10
  169. package/dist/serialization/resources/windows/types/WaitForPageRequestTargetStatus.js +0 -41
  170. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -15
  171. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +0 -46
  172. package/serialization/resources/windows/client/requests/ActRequest.d.ts +0 -19
  173. package/serialization/resources/windows/client/requests/ActRequest.js +0 -50
  174. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  175. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  176. package/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +0 -23
  177. package/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +0 -54
  178. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  179. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  180. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  181. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  182. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  183. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  184. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  185. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  186. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  187. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  188. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  189. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  190. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  191. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  192. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  193. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  194. package/serialization/resources/windows/client/requests/ExtractRequest.d.ts +0 -19
  195. package/serialization/resources/windows/client/requests/ExtractRequest.js +0 -50
  196. package/serialization/resources/windows/client/requests/FindManyRequest.d.ts +0 -19
  197. package/serialization/resources/windows/client/requests/FindManyRequest.js +0 -50
  198. package/serialization/resources/windows/client/requests/FindOneRequest.d.ts +0 -19
  199. package/serialization/resources/windows/client/requests/FindOneRequest.js +0 -50
  200. package/serialization/resources/windows/client/requests/LlmRequest.d.ts +0 -17
  201. package/serialization/resources/windows/client/requests/LlmRequest.js +0 -48
  202. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +0 -17
  203. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +0 -48
  204. package/serialization/resources/windows/client/requests/WaitForPageRequest.d.ts +0 -18
  205. package/serialization/resources/windows/client/requests/WaitForPageRequest.js +0 -49
  206. package/serialization/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +0 -10
  207. package/serialization/resources/windows/types/WaitForPageRequestTargetStatus.js +0 -41
  208. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +0 -15
  209. package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +0 -46
package/README.md CHANGED
@@ -23,9 +23,10 @@ Instantiate and use the client with the following:
23
23
  import { AirtopClient } from "@airtop/sdk";
24
24
 
25
25
  const client = new AirtopClient({ apiKey: "YOUR_API_KEY" });
26
- await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
27
- elementDescription: "The login button",
28
- });
26
+ await client.windows.asyncCreateAutomation(
27
+ "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
28
+ "0334da2a-91b0-42c5-6156-76a5eba87430",
29
+ );
29
30
  ```
30
31
 
31
32
  ## Request And Response Types
@@ -36,7 +37,7 @@ following namespace:
36
37
  ```typescript
37
38
  import { Airtop } from "@airtop/sdk";
38
39
 
39
- const request: Airtop.AsyncClickRequest = {
40
+ const request: Airtop.AsyncCreateAutomationRequest = {
40
41
  ...
41
42
  };
42
43
  ```
@@ -50,7 +51,7 @@ will be thrown.
50
51
  import { AirtopError } from "@airtop/sdk";
51
52
 
52
53
  try {
53
- await client.windows.asyncClick(...);
54
+ await client.windows.asyncCreateAutomation(...);
54
55
  } catch (err) {
55
56
  if (err instanceof AirtopError) {
56
57
  console.log(err.statusCode);
@@ -67,7 +68,7 @@ try {
67
68
  If you would like to send additional headers as part of the request, use the `headers` request option.
68
69
 
69
70
  ```typescript
70
- const response = await client.windows.asyncClick(..., {
71
+ const response = await client.windows.asyncCreateAutomation(..., {
71
72
  headers: {
72
73
  'X-Custom-Header': 'custom value'
73
74
  }
@@ -89,7 +90,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
89
90
  Use the `maxRetries` request option to configure this behavior.
90
91
 
91
92
  ```typescript
92
- const response = await client.windows.asyncClick(..., {
93
+ const response = await client.windows.asyncCreateAutomation(..., {
93
94
  maxRetries: 0 // override maxRetries at the request level
94
95
  });
95
96
  ```
@@ -99,7 +100,7 @@ const response = await client.windows.asyncClick(..., {
99
100
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
100
101
 
101
102
  ```typescript
102
- const response = await client.windows.asyncClick(..., {
103
+ const response = await client.windows.asyncCreateAutomation(..., {
103
104
  timeoutInSeconds: 30 // override timeout to 30s
104
105
  });
105
106
  ```
@@ -110,7 +111,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
110
111
 
111
112
  ```typescript
112
113
  const controller = new AbortController();
113
- const response = await client.windows.asyncClick(..., {
114
+ const response = await client.windows.asyncCreateAutomation(..., {
114
115
  abortSignal: controller.signal
115
116
  });
116
117
  controller.abort(); // aborts the request
@@ -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, "v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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, "v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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, `v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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, `v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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, "v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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, "v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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, `v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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, `v1/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.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "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.43", "User-Agent": "@airtop/sdk/0.1.43", "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,
@@ -293,7 +293,7 @@ class Files {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
294
294
  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, `v1/files/${encodeURIComponent(id)}/push`),
295
295
  method: "POST",
296
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
296
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
297
297
  contentType: "application/json",
298
298
  requestType: "json",
299
299
  body: serializers.PushFileBodyV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -90,7 +90,7 @@ class Profiles {
90
90
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
91
  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, "v1/profiles"),
92
92
  method: "DELETE",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -71,7 +71,7 @@ class Requests {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  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, `v1/requests/${encodeURIComponent(requestId)}/status`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -102,7 +102,7 @@ class Sessions {
102
102
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
103
103
  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, "v1/sessions"),
104
104
  method: "GET",
105
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
106
  contentType: "application/json",
107
107
  queryParameters: _queryParams,
108
108
  requestType: "json",
@@ -180,7 +180,7 @@ class Sessions {
180
180
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
181
181
  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, "v1/sessions"),
182
182
  method: "POST",
183
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
184
184
  contentType: "application/json",
185
185
  requestType: "json",
186
186
  body: serializers.SessionRestInputV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Sessions {
237
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
238
  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, `v1/sessions/${encodeURIComponent(id)}`),
239
239
  method: "GET",
240
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +316,7 @@ class Sessions {
316
316
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
317
317
  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, `v1/sessions/${encodeURIComponent(id)}`),
318
318
  method: "DELETE",
319
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
319
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -364,7 +364,7 @@ class Sessions {
364
364
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
365
365
  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, `v1/sessions/${encodeURIComponent(id)}/events`),
366
366
  method: "GET",
367
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
367
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
368
  contentType: "application/json",
369
369
  queryParameters: _queryParams,
370
370
  requestType: "json",
@@ -454,7 +454,7 @@ class Sessions {
454
454
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
455
455
  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, `v1/sessions/${encodeURIComponent(sessionId)}/save-profile-on-termination/${encodeURIComponent(profileName)}`),
456
456
  method: "PUT",
457
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.42-beta0", "User-Agent": "@airtop/sdk/0.1.42-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
457
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@airtop/sdk/0.1.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
458
458
  contentType: "application/json",
459
459
  requestType: "json",
460
460
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -5,8 +5,14 @@ import * as Airtop from "../../../index";
5
5
  /**
6
6
  * Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
7
7
  */
8
- export type SessionsEventsResponse = Airtop.SessionsEventsResponse.CaptchaEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.FileEvent;
8
+ export type SessionsEventsResponse = Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.FileEvent | Airtop.SessionsEventsResponse.CaptchaEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent;
9
9
  export declare namespace SessionsEventsResponse {
10
+ interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
11
+ event: "sessionEvent";
12
+ }
13
+ interface FileEvent extends Airtop.SessionsEventsResponseFileEvent {
14
+ event: "fileEvent";
15
+ }
10
16
  interface CaptchaEvent extends Airtop.SessionsEventsResponseCaptchaEvent {
11
17
  event: "captchaEvent";
12
18
  }
@@ -19,10 +25,4 @@ export declare namespace SessionsEventsResponse {
19
25
  interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
20
26
  event: "windowEvent";
21
27
  }
22
- interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
23
- event: "sessionEvent";
24
- }
25
- interface FileEvent extends Airtop.SessionsEventsResponseFileEvent {
26
- event: "fileEvent";
27
- }
28
28
  }
@@ -1,8 +1,8 @@
1
1
  export * from "./SessionsListRequestStatus";
2
+ export * from "./SessionsEventsResponseSessionEvent";
3
+ export * from "./SessionsEventsResponseFileEvent";
2
4
  export * from "./SessionsEventsResponseCaptchaEvent";
3
5
  export * from "./SessionsEventsResponseStatus";
4
6
  export * from "./SessionsEventsResponseError";
5
7
  export * from "./SessionsEventsResponseWindowEvent";
6
- export * from "./SessionsEventsResponseSessionEvent";
7
- export * from "./SessionsEventsResponseFileEvent";
8
8
  export * from "./SessionsEventsResponse";
@@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
19
+ __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
18
20
  __exportStar(require("./SessionsEventsResponseCaptchaEvent"), exports);
19
21
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
20
22
  __exportStar(require("./SessionsEventsResponseError"), exports);
21
23
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
22
- __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
23
- __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
24
24
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -26,20 +26,6 @@ export declare namespace Windows {
26
26
  export declare class Windows {
27
27
  protected readonly _options: Windows.Options;
28
28
  constructor(_options: Windows.Options);
29
- /**
30
- * Execute a click interaction in a specific browser window asynchronously
31
- *
32
- * @param {string} sessionId - The session id for the window.
33
- * @param {string} windowId - The Airtop window id of the browser window.
34
- * @param {Airtop.AsyncClickRequest} request
35
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
36
- *
37
- * @example
38
- * await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
39
- * elementDescription: "The login button"
40
- * })
41
- */
42
- asyncClick(sessionId: string, windowId: string, request: Airtop.AsyncClickRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
43
29
  /**
44
30
  * Create an automation of a browser window asynchronously
45
31
  *
@@ -78,18 +64,6 @@ export declare class Windows {
78
64
  * })
79
65
  */
80
66
  asyncExecuteAutomation(sessionId: string, windowId: string, request: Airtop.AsyncExecuteAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
81
- /**
82
- * Execute a file input interaction in a specific browser window asynchronously
83
- *
84
- * @param {string} sessionId - The session id for the window.
85
- * @param {string} windowId - The Airtop window id of the browser window.
86
- * @param {Airtop.AsyncFileInputRequest} request
87
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
88
- *
89
- * @example
90
- * await client.windows.asyncFileInput("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
91
- */
92
- asyncFileInput(sessionId: string, windowId: string, request?: Airtop.AsyncFileInputRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
93
67
  /**
94
68
  * Fill a form of a browser window asynchronously using a form-filler automation
95
69
  *
@@ -104,104 +78,6 @@ export declare class Windows {
104
78
  * })
105
79
  */
106
80
  asyncFillForm(sessionId: string, windowId: string, request: Airtop.AsyncFillFormRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
107
- /**
108
- * @param {string} sessionId - The session id for the window.
109
- * @param {string} windowId - The Airtop window id of the browser window.
110
- * @param {Airtop.AsyncHoverRequest} request
111
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
112
- *
113
- * @example
114
- * await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
115
- * elementDescription: "The search box input in the top right corner"
116
- * })
117
- */
118
- asyncHover(sessionId: string, windowId: string, request: Airtop.AsyncHoverRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
119
- /**
120
- * @param {string} sessionId - The session id for the window.
121
- * @param {string} windowId - The Airtop window id of the browser window.
122
- * @param {Airtop.AsyncMonitorRequest} request
123
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
124
- *
125
- * @example
126
- * await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
127
- * condition: "Determine if the user appears to be signed in to the website"
128
- * })
129
- */
130
- asyncMonitor(sessionId: string, windowId: string, request: Airtop.AsyncMonitorRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
131
- /**
132
- * @param {string} sessionId - The session id for the window.
133
- * @param {string} windowId - The Airtop window id of the browser window.
134
- * @param {Airtop.AsyncPageQueryRequest} request
135
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
136
- *
137
- * @example
138
- * await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
139
- * prompt: "What is the main idea of this page?"
140
- * })
141
- */
142
- asyncPageQuery(sessionId: string, windowId: string, request: Airtop.AsyncPageQueryRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
143
- /**
144
- * @param {string} sessionId - The session id for the window.
145
- * @param {string} windowId - The Airtop window id of the browser window.
146
- * @param {Airtop.AsyncPaginatedExtractionRequest} request
147
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
148
- *
149
- * @example
150
- * await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
151
- * 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."
152
- * })
153
- */
154
- asyncPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.AsyncPaginatedExtractionRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
155
- /**
156
- * This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
157
- *
158
- * @param {string} sessionId - The session id for the window.
159
- * @param {string} windowId - The Airtop window id of the browser window.
160
- * @param {Airtop.AsyncPromptContentRequest} request
161
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
162
- *
163
- * @example
164
- * await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
165
- * prompt: "What is the main idea of this page?"
166
- * })
167
- */
168
- asyncPromptContent(sessionId: string, windowId: string, request: Airtop.AsyncPromptContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
169
- /**
170
- * Take a screenshot of the current viewport of a browser window asynchronously
171
- *
172
- * @param {string} sessionId - The session id for the window.
173
- * @param {string} windowId - The Airtop window id of the browser window.
174
- * @param {Airtop.AsyncScreenshotRequest} request
175
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
176
- *
177
- * @example
178
- * await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
179
- */
180
- asyncScreenshot(sessionId: string, windowId: string, request?: Airtop.AsyncScreenshotRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
181
- /**
182
- * This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
183
- *
184
- * @param {string} sessionId - The session id for the window.
185
- * @param {string} windowId - The Airtop window id of the browser window to summarize.
186
- * @param {Airtop.AsyncSummarizeContentRequest} request
187
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
188
- *
189
- * @example
190
- * await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
191
- */
192
- asyncSummarizeContent(sessionId: string, windowId: string, request?: Airtop.AsyncSummarizeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
193
- /**
194
- * @param {string} sessionId - The session id for the window.
195
- * @param {string} windowId - The Airtop window id of the browser window.
196
- * @param {Airtop.AsyncTypeRequest} request
197
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
198
- *
199
- * @example
200
- * await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
201
- * text: "Example text"
202
- * })
203
- */
204
- asyncType(sessionId: string, windowId: string, request: Airtop.AsyncTypeRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
205
81
  /**
206
82
  * Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
207
83
  *
@@ -336,20 +212,6 @@ export declare class Windows {
336
212
  * })
337
213
  */
338
214
  monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
339
- /**
340
- * Prompt OpenAI Operator
341
- *
342
- * @param {string} sessionId - ID of the session that owns the window.
343
- * @param {string} windowId - Airtop window ID of the browser window.
344
- * @param {Airtop.OperatorPromptV1Body} request
345
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
346
- *
347
- * @example
348
- * await client.windows.operatorPrompt("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
349
- * prompt: "What is the latest news about OpenAI?"
350
- * })
351
- */
352
- operatorPrompt(sessionId: string, windowId: string, request: Airtop.OperatorPromptV1Body, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncOperatorPromptResponseEnvelope>;
353
215
  /**
354
216
  * Submit a prompt that queries the content of a specific browser window. You may extract content from the page, or ask a question about the page and allow the AI to answer it (ex. Is the user logged in?).
355
217
  *
@@ -454,91 +316,5 @@ export declare class Windows {
454
316
  * })
455
317
  */
456
318
  type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
457
- /**
458
- * Perform actions in a specific browser window based on a prompt
459
- *
460
- * @param {string} sessionId - The session id for the window.
461
- * @param {string} windowId - The Airtop window id of the browser window.
462
- * @param {Airtop.ActRequest} request
463
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
464
- *
465
- * @example
466
- * await client.windows.act("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
467
- * jobId: "123",
468
- * prompt: "Click the login button"
469
- * })
470
- */
471
- act(sessionId: string, windowId: string, request: Airtop.ActRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
472
- /**
473
- * Extract data from a specific browser window based on a prompt
474
- *
475
- * @param {string} sessionId - The session id for the window.
476
- * @param {string} windowId - The Airtop window id of the browser window.
477
- * @param {Airtop.ExtractRequest} request
478
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
479
- *
480
- * @example
481
- * await client.windows.extract("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
482
- * jobId: "123",
483
- * prompt: "Extract all product prices from this page"
484
- * })
485
- */
486
- extract(sessionId: string, windowId: string, request: Airtop.ExtractRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
487
- /**
488
- * Find multiple elements in a browser window based on a prompt
489
- *
490
- * @param {string} sessionId - The session id for the window.
491
- * @param {string} windowId - The Airtop window id of the browser window.
492
- * @param {Airtop.FindManyRequest} request
493
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
494
- *
495
- * @example
496
- * await client.windows.findMany("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
497
- * jobId: "123",
498
- * prompt: "Find all the news articles"
499
- * })
500
- */
501
- findMany(sessionId: string, windowId: string, request: Airtop.FindManyRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
502
- /**
503
- * Find a specific element in a browser window based on a prompt
504
- *
505
- * @param {string} sessionId - The session id for the window.
506
- * @param {string} windowId - The Airtop window id of the browser window.
507
- * @param {Airtop.FindOneRequest} request
508
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
509
- *
510
- * @example
511
- * await client.windows.findOne("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
512
- * jobId: "123",
513
- * prompt: "Find the login button"
514
- * })
515
- */
516
- findOne(sessionId: string, windowId: string, request: Airtop.FindOneRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
517
- /**
518
- * Send a prompt to an LLM with context from the browser window
519
- *
520
- * @param {string} sessionId - The session id for the window.
521
- * @param {string} windowId - The Airtop window id of the browser window.
522
- * @param {Airtop.LlmRequest} request
523
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
524
- *
525
- * @example
526
- * await client.windows.llm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
527
- * prompt: "Tell me about this webpage"
528
- * })
529
- */
530
- llm(sessionId: string, windowId: string, request: Airtop.LlmRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
531
- /**
532
- * Wait for a page to load
533
- *
534
- * @param {string} sessionId - The session id for the window.
535
- * @param {string} windowId - The Airtop window id of the browser window.
536
- * @param {Airtop.WaitForPageRequest} request
537
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
538
- *
539
- * @example
540
- * await client.windows.waitForPage("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
541
- */
542
- waitForPage(sessionId: string, windowId: string, request?: Airtop.WaitForPageRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
543
319
  protected _getAuthorizationHeader(): Promise<string>;
544
320
  }