@airtop/sdk 0.1.43 → 0.1.45

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 +2 -2
  2. package/api/resources/automations/client/Client.js +4 -4
  3. package/api/resources/files/client/Client.js +5 -5
  4. package/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +2 -2
  5. package/api/resources/files/types/CreateFileRestInputV1FileType.js +1 -1
  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 +8 -8
  10. package/api/resources/sessions/types/index.d.ts +3 -3
  11. package/api/resources/sessions/types/index.js +3 -3
  12. package/api/resources/windows/client/Client.d.ts +10 -0
  13. package/api/resources/windows/client/Client.js +74 -22
  14. package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -1
  15. package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -1
  16. package/api/types/CreateFileV1FileType.d.ts +2 -2
  17. package/api/types/CreateFileV1FileType.js +1 -1
  18. package/api/types/ExternalSessionWithConnectionInfo.d.ts +2 -0
  19. package/api/types/GetFileV1FileType.d.ts +2 -2
  20. package/api/types/GetFileV1FileType.js +1 -1
  21. package/api/types/PageQueryConfig.d.ts +2 -0
  22. package/api/types/ScreenshotConfig.d.ts +7 -2
  23. package/api/types/ScreenshotConfigFormat.d.ts +11 -0
  24. package/api/types/ScreenshotConfigFormat.js +10 -0
  25. package/api/types/ScreenshotConfigScope.d.ts +13 -0
  26. package/api/types/ScreenshotConfigScope.js +12 -0
  27. package/api/types/ScreenshotMetadata.d.ts +15 -0
  28. package/api/types/ScreenshotMetadataFormat.d.ts +11 -0
  29. package/api/types/ScreenshotMetadataFormat.js +10 -0
  30. package/api/types/ScreenshotScrollPosition.d.ts +9 -0
  31. package/api/types/ScreenshotScrollPosition.js +5 -0
  32. package/api/types/ScreenshotViewportDimensions.d.ts +9 -0
  33. package/api/types/ScreenshotViewportDimensions.js +5 -0
  34. package/api/types/SessionConfigV1.d.ts +2 -0
  35. package/api/types/VibeCodingConfig.d.ts +11 -0
  36. package/api/types/VibeCodingConfig.js +5 -0
  37. package/api/types/WindowId.d.ts +4 -0
  38. package/api/types/WindowsResponse.d.ts +10 -0
  39. package/api/types/WindowsResponse.js +5 -0
  40. package/api/types/WindowsWithMeta.d.ts +8 -0
  41. package/api/types/WindowsWithMeta.js +5 -0
  42. package/api/types/index.d.ts +8 -0
  43. package/api/types/index.js +8 -0
  44. package/dist/api/resources/automations/client/Client.js +4 -4
  45. package/dist/api/resources/files/client/Client.js +5 -5
  46. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +2 -2
  47. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.js +1 -1
  48. package/dist/api/resources/profiles/client/Client.js +1 -1
  49. package/dist/api/resources/requests/client/Client.js +1 -1
  50. package/dist/api/resources/sessions/client/Client.js +6 -6
  51. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +8 -8
  52. package/dist/api/resources/sessions/types/index.d.ts +3 -3
  53. package/dist/api/resources/sessions/types/index.js +3 -3
  54. package/dist/api/resources/windows/client/Client.d.ts +10 -0
  55. package/dist/api/resources/windows/client/Client.js +74 -22
  56. package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -1
  57. package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -1
  58. package/dist/api/types/CreateFileV1FileType.d.ts +2 -2
  59. package/dist/api/types/CreateFileV1FileType.js +1 -1
  60. package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +2 -0
  61. package/dist/api/types/GetFileV1FileType.d.ts +2 -2
  62. package/dist/api/types/GetFileV1FileType.js +1 -1
  63. package/dist/api/types/PageQueryConfig.d.ts +2 -0
  64. package/dist/api/types/ScreenshotConfig.d.ts +7 -2
  65. package/dist/api/types/ScreenshotConfigFormat.d.ts +11 -0
  66. package/dist/api/types/ScreenshotConfigFormat.js +10 -0
  67. package/dist/api/types/ScreenshotConfigScope.d.ts +13 -0
  68. package/dist/api/types/ScreenshotConfigScope.js +12 -0
  69. package/dist/api/types/ScreenshotMetadata.d.ts +15 -0
  70. package/dist/api/types/ScreenshotMetadataFormat.d.ts +11 -0
  71. package/dist/api/types/ScreenshotMetadataFormat.js +10 -0
  72. package/dist/api/types/ScreenshotScrollPosition.d.ts +9 -0
  73. package/dist/api/types/ScreenshotScrollPosition.js +5 -0
  74. package/dist/api/types/ScreenshotViewportDimensions.d.ts +9 -0
  75. package/dist/api/types/ScreenshotViewportDimensions.js +5 -0
  76. package/dist/api/types/SessionConfigV1.d.ts +2 -0
  77. package/dist/api/types/VibeCodingConfig.d.ts +11 -0
  78. package/dist/api/types/VibeCodingConfig.js +5 -0
  79. package/dist/api/types/WindowId.d.ts +4 -0
  80. package/dist/api/types/WindowsResponse.d.ts +10 -0
  81. package/dist/api/types/WindowsResponse.js +5 -0
  82. package/dist/api/types/WindowsWithMeta.d.ts +8 -0
  83. package/dist/api/types/WindowsWithMeta.js +5 -0
  84. package/dist/api/types/index.d.ts +8 -0
  85. package/dist/api/types/index.js +8 -0
  86. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +1 -1
  87. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.js +1 -1
  88. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +11 -11
  89. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +6 -6
  90. package/dist/serialization/resources/sessions/types/index.d.ts +3 -3
  91. package/dist/serialization/resources/sessions/types/index.js +3 -3
  92. package/dist/serialization/types/CreateFileV1FileType.d.ts +1 -1
  93. package/dist/serialization/types/CreateFileV1FileType.js +1 -1
  94. package/dist/serialization/types/ExternalSessionWithConnectionInfo.d.ts +1 -0
  95. package/dist/serialization/types/ExternalSessionWithConnectionInfo.js +1 -0
  96. package/dist/serialization/types/GetFileV1FileType.d.ts +1 -1
  97. package/dist/serialization/types/GetFileV1FileType.js +1 -1
  98. package/dist/serialization/types/PageQueryConfig.d.ts +2 -0
  99. package/dist/serialization/types/PageQueryConfig.js +2 -0
  100. package/dist/serialization/types/ScreenshotConfig.d.ts +6 -1
  101. package/dist/serialization/types/ScreenshotConfig.js +6 -1
  102. package/dist/serialization/types/ScreenshotConfigFormat.d.ts +10 -0
  103. package/dist/serialization/types/ScreenshotConfigFormat.js +41 -0
  104. package/dist/serialization/types/ScreenshotConfigScope.d.ts +10 -0
  105. package/dist/serialization/types/ScreenshotConfigScope.js +41 -0
  106. package/dist/serialization/types/ScreenshotMetadata.d.ts +10 -0
  107. package/dist/serialization/types/ScreenshotMetadata.js +10 -0
  108. package/dist/serialization/types/ScreenshotMetadataFormat.d.ts +10 -0
  109. package/dist/serialization/types/ScreenshotMetadataFormat.js +41 -0
  110. package/dist/serialization/types/ScreenshotScrollPosition.d.ts +13 -0
  111. package/dist/serialization/types/ScreenshotScrollPosition.js +44 -0
  112. package/dist/serialization/types/ScreenshotViewportDimensions.d.ts +13 -0
  113. package/dist/serialization/types/ScreenshotViewportDimensions.js +44 -0
  114. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  115. package/dist/serialization/types/SessionConfigV1.js +1 -0
  116. package/dist/serialization/types/VibeCodingConfig.d.ts +14 -0
  117. package/dist/serialization/types/VibeCodingConfig.js +45 -0
  118. package/dist/serialization/types/WindowId.d.ts +2 -0
  119. package/dist/serialization/types/WindowId.js +2 -0
  120. package/dist/serialization/types/WindowsResponse.d.ts +18 -0
  121. package/dist/serialization/types/WindowsResponse.js +49 -0
  122. package/dist/serialization/types/WindowsWithMeta.d.ts +13 -0
  123. package/dist/serialization/types/WindowsWithMeta.js +44 -0
  124. package/dist/serialization/types/index.d.ts +8 -0
  125. package/dist/serialization/types/index.js +8 -0
  126. package/dist/version.d.ts +1 -1
  127. package/dist/version.js +1 -1
  128. package/package.json +2 -2
  129. package/reference.md +63 -0
  130. package/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +1 -1
  131. package/serialization/resources/files/types/CreateFileRestInputV1FileType.js +1 -1
  132. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +11 -11
  133. package/serialization/resources/sessions/types/SessionsEventsResponse.js +6 -6
  134. package/serialization/resources/sessions/types/index.d.ts +3 -3
  135. package/serialization/resources/sessions/types/index.js +3 -3
  136. package/serialization/types/CreateFileV1FileType.d.ts +1 -1
  137. package/serialization/types/CreateFileV1FileType.js +1 -1
  138. package/serialization/types/ExternalSessionWithConnectionInfo.d.ts +1 -0
  139. package/serialization/types/ExternalSessionWithConnectionInfo.js +1 -0
  140. package/serialization/types/GetFileV1FileType.d.ts +1 -1
  141. package/serialization/types/GetFileV1FileType.js +1 -1
  142. package/serialization/types/PageQueryConfig.d.ts +2 -0
  143. package/serialization/types/PageQueryConfig.js +2 -0
  144. package/serialization/types/ScreenshotConfig.d.ts +6 -1
  145. package/serialization/types/ScreenshotConfig.js +6 -1
  146. package/serialization/types/ScreenshotConfigFormat.d.ts +10 -0
  147. package/serialization/types/ScreenshotConfigFormat.js +41 -0
  148. package/serialization/types/ScreenshotConfigScope.d.ts +10 -0
  149. package/serialization/types/ScreenshotConfigScope.js +41 -0
  150. package/serialization/types/ScreenshotMetadata.d.ts +10 -0
  151. package/serialization/types/ScreenshotMetadata.js +10 -0
  152. package/serialization/types/ScreenshotMetadataFormat.d.ts +10 -0
  153. package/serialization/types/ScreenshotMetadataFormat.js +41 -0
  154. package/serialization/types/ScreenshotScrollPosition.d.ts +13 -0
  155. package/serialization/types/ScreenshotScrollPosition.js +44 -0
  156. package/serialization/types/ScreenshotViewportDimensions.d.ts +13 -0
  157. package/serialization/types/ScreenshotViewportDimensions.js +44 -0
  158. package/serialization/types/SessionConfigV1.d.ts +1 -0
  159. package/serialization/types/SessionConfigV1.js +1 -0
  160. package/serialization/types/VibeCodingConfig.d.ts +14 -0
  161. package/serialization/types/VibeCodingConfig.js +45 -0
  162. package/serialization/types/WindowId.d.ts +2 -0
  163. package/serialization/types/WindowId.js +2 -0
  164. package/serialization/types/WindowsResponse.d.ts +18 -0
  165. package/serialization/types/WindowsResponse.js +49 -0
  166. package/serialization/types/WindowsWithMeta.d.ts +13 -0
  167. package/serialization/types/WindowsWithMeta.js +44 -0
  168. package/serialization/types/index.d.ts +8 -0
  169. package/serialization/types/index.js +8 -0
  170. package/version.d.ts +1 -1
  171. package/version.js +1 -1
@@ -75,7 +75,7 @@ class Windows {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  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/async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-automation`),
77
77
  method: "POST",
78
- 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),
78
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  body: serializers.AsyncCreateAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -130,7 +130,7 @@ class Windows {
130
130
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
131
131
  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/async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-form-filler`),
132
132
  method: "POST",
133
- 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),
133
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
134
134
  contentType: "application/json",
135
135
  requestType: "json",
136
136
  body: serializers.AsyncCreateFormFillerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -187,7 +187,7 @@ class Windows {
187
187
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
188
  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/async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/execute-automation`),
189
189
  method: "POST",
190
- 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),
190
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
191
  contentType: "application/json",
192
192
  requestType: "json",
193
193
  body: serializers.AsyncExecuteAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -244,7 +244,7 @@ class Windows {
244
244
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
245
245
  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/async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/fill-form`),
246
246
  method: "POST",
247
- 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),
247
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
248
  contentType: "application/json",
249
249
  requestType: "json",
250
250
  body: serializers.AsyncFillFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -282,6 +282,58 @@ class Windows {
282
282
  }
283
283
  });
284
284
  }
285
+ /**
286
+ * Lists all browser windows in a session.
287
+ *
288
+ * @param {string} sessionId - ID of the session to list windows for.
289
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
290
+ *
291
+ * @example
292
+ * await client.windows.list("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
293
+ */
294
+ list(sessionId, requestOptions) {
295
+ return __awaiter(this, void 0, void 0, function* () {
296
+ var _a, _b, _c;
297
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
298
+ 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)}/windows`),
299
+ method: "GET",
300
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
+ contentType: "application/json",
302
+ requestType: "json",
303
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
304
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
305
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
306
+ });
307
+ if (_response.ok) {
308
+ return serializers.WindowsResponse.parseOrThrow(_response.body, {
309
+ unrecognizedObjectKeys: "passthrough",
310
+ allowUnrecognizedUnionMembers: true,
311
+ allowUnrecognizedEnumValues: true,
312
+ skipValidation: true,
313
+ breadcrumbsPrefix: ["response"],
314
+ });
315
+ }
316
+ if (_response.error.reason === "status-code") {
317
+ throw new errors.AirtopError({
318
+ statusCode: _response.error.statusCode,
319
+ body: _response.error.body,
320
+ });
321
+ }
322
+ switch (_response.error.reason) {
323
+ case "non-json":
324
+ throw new errors.AirtopError({
325
+ statusCode: _response.error.statusCode,
326
+ body: _response.error.rawBody,
327
+ });
328
+ case "timeout":
329
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling GET /v1/sessions/{sessionId}/windows.");
330
+ case "unknown":
331
+ throw new errors.AirtopError({
332
+ message: _response.error.errorMessage,
333
+ });
334
+ }
335
+ });
336
+ }
285
337
  /**
286
338
  * Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
287
339
  *
@@ -298,7 +350,7 @@ class Windows {
298
350
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
299
351
  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)}/windows`),
300
352
  method: "POST",
301
- 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),
353
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
354
  contentType: "application/json",
303
355
  requestType: "json",
304
356
  body: serializers.CreateWindowInputV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -366,7 +418,7 @@ class Windows {
366
418
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
367
419
  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)}/windows/${encodeURIComponent(windowId)}`),
368
420
  method: "GET",
369
- 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),
421
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
370
422
  contentType: "application/json",
371
423
  queryParameters: _queryParams,
372
424
  requestType: "json",
@@ -423,7 +475,7 @@ class Windows {
423
475
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
424
476
  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)}/windows/${encodeURIComponent(windowId)}`),
425
477
  method: "POST",
426
- 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),
478
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
427
479
  contentType: "application/json",
428
480
  requestType: "json",
429
481
  body: serializers.WindowLoadUrlV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -477,7 +529,7 @@ class Windows {
477
529
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
478
530
  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)}/windows/${encodeURIComponent(windowId)}`),
479
531
  method: "DELETE",
480
- 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),
532
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
481
533
  contentType: "application/json",
482
534
  requestType: "json",
483
535
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -533,7 +585,7 @@ class Windows {
533
585
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
534
586
  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)}/windows/${encodeURIComponent(windowId)}/click`),
535
587
  method: "POST",
536
- 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),
588
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
537
589
  contentType: "application/json",
538
590
  requestType: "json",
539
591
  body: serializers.SessionClickHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -588,7 +640,7 @@ class Windows {
588
640
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
589
641
  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)}/windows/${encodeURIComponent(windowId)}/create-form-filler`),
590
642
  method: "POST",
591
- 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),
643
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
592
644
  contentType: "application/json",
593
645
  requestType: "json",
594
646
  body: serializers.CreateFormFillerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -649,7 +701,7 @@ class Windows {
649
701
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
650
702
  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)}/windows/${encodeURIComponent(windowId)}/file-input`),
651
703
  method: "POST",
652
- 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),
704
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
653
705
  contentType: "application/json",
654
706
  requestType: "json",
655
707
  body: serializers.SessionFileInputHandlerRequestBody.jsonOrThrow(request, {
@@ -708,7 +760,7 @@ class Windows {
708
760
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
709
761
  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)}/windows/${encodeURIComponent(windowId)}/fill-form`),
710
762
  method: "POST",
711
- 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),
763
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
712
764
  contentType: "application/json",
713
765
  requestType: "json",
714
766
  body: serializers.FillFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -765,7 +817,7 @@ class Windows {
765
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
766
818
  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)}/windows/${encodeURIComponent(windowId)}/hover`),
767
819
  method: "POST",
768
- 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),
820
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
769
821
  contentType: "application/json",
770
822
  requestType: "json",
771
823
  body: serializers.SessionHoverHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -820,7 +872,7 @@ class Windows {
820
872
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
821
873
  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)}/windows/${encodeURIComponent(windowId)}/monitor`),
822
874
  method: "POST",
823
- 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),
875
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
824
876
  contentType: "application/json",
825
877
  requestType: "json",
826
878
  body: serializers.SessionMonitorHandlerRequestBody.jsonOrThrow(request, {
@@ -879,7 +931,7 @@ class Windows {
879
931
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
880
932
  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)}/windows/${encodeURIComponent(windowId)}/page-query`),
881
933
  method: "POST",
882
- 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),
934
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
883
935
  contentType: "application/json",
884
936
  requestType: "json",
885
937
  body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
@@ -938,7 +990,7 @@ class Windows {
938
990
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
939
991
  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)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
940
992
  method: "POST",
941
- 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),
993
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
942
994
  contentType: "application/json",
943
995
  requestType: "json",
944
996
  body: serializers.SessionPaginatedExtractionHandlerRequestBody.jsonOrThrow(request, {
@@ -997,7 +1049,7 @@ class Windows {
997
1049
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
998
1050
  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)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
999
1051
  method: "POST",
1000
- 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),
1052
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1001
1053
  contentType: "application/json",
1002
1054
  requestType: "json",
1003
1055
  body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
@@ -1054,7 +1106,7 @@ class Windows {
1054
1106
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1055
1107
  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)}/windows/${encodeURIComponent(windowId)}/scrape-content`),
1056
1108
  method: "POST",
1057
- 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),
1109
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1058
1110
  contentType: "application/json",
1059
1111
  requestType: "json",
1060
1112
  body: serializers.ScrapeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1109,7 +1161,7 @@ class Windows {
1109
1161
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1110
1162
  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)}/windows/${encodeURIComponent(windowId)}/screenshot`),
1111
1163
  method: "POST",
1112
- 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),
1164
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1113
1165
  contentType: "application/json",
1114
1166
  requestType: "json",
1115
1167
  body: serializers.SessionScreenshotHandlerRequestBody.jsonOrThrow(request, {
@@ -1166,7 +1218,7 @@ class Windows {
1166
1218
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1167
1219
  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)}/windows/${encodeURIComponent(windowId)}/scroll`),
1168
1220
  method: "POST",
1169
- 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),
1221
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1170
1222
  contentType: "application/json",
1171
1223
  requestType: "json",
1172
1224
  body: serializers.SessionScrollHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1221,7 +1273,7 @@ class Windows {
1221
1273
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1222
1274
  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)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
1223
1275
  method: "POST",
1224
- 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),
1276
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1225
1277
  contentType: "application/json",
1226
1278
  requestType: "json",
1227
1279
  body: serializers.SessionSummaryHandlerRequestBody.jsonOrThrow(request, {
@@ -1280,7 +1332,7 @@ class Windows {
1280
1332
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1281
1333
  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)}/windows/${encodeURIComponent(windowId)}/type`),
1282
1334
  method: "POST",
1283
- 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),
1335
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@airtop/sdk/0.1.45", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1284
1336
  contentType: "application/json",
1285
1337
  requestType: "json",
1286
1338
  body: serializers.SessionTypeHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -13,6 +13,6 @@ export interface CreateWindowInputV1Body {
13
13
  url?: string;
14
14
  /** Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, 'complete' will wait until the page and all it's iframes have loaded it's dom and assets. 'noWait' will not wait for any loading event and will return immediately. */
15
15
  waitUntil?: Airtop.CreateWindowInputV1BodyWaitUntil;
16
- /** Maximum time in seconds to wait for the specified loading event to occur before timing out. */
16
+ /** Maximum time in seconds to wait for the specified loading event to occur. If the timeout is reached, the operation will still succeed but return a warning indicating the page may still be loading resources. */
17
17
  waitUntilTimeoutSeconds?: number;
18
18
  }
@@ -13,6 +13,6 @@ export interface WindowLoadUrlV1Body {
13
13
  url: string;
14
14
  /** Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, 'complete' will wait until the page and all it's iframes have loaded it's dom and assets. 'noWait' will not wait for any loading event and will return immediately. */
15
15
  waitUntil?: Airtop.WindowLoadUrlV1BodyWaitUntil;
16
- /** Maximum time in seconds to wait for the specified loading event to occur before timing out. */
16
+ /** Maximum time in seconds to wait for the specified loading event to occur. If the timeout is reached, the operation will still succeed but return a warning indicating the page may still be loading resources. */
17
17
  waitUntilTimeoutSeconds?: number;
18
18
  }
@@ -4,10 +4,10 @@
4
4
  /**
5
5
  * Type of the file
6
6
  */
7
- export type CreateFileV1FileType = "browser_download" | "screenshot" | "video" | "customer_upload";
7
+ export type CreateFileV1FileType = "browser_download" | "screenshot" | "recording" | "customer_upload";
8
8
  export declare const CreateFileV1FileType: {
9
9
  readonly BrowserDownload: "browser_download";
10
10
  readonly Screenshot: "screenshot";
11
- readonly Video: "video";
11
+ readonly Recording: "recording";
12
12
  readonly CustomerUpload: "customer_upload";
13
13
  };
@@ -7,6 +7,6 @@ exports.CreateFileV1FileType = void 0;
7
7
  exports.CreateFileV1FileType = {
8
8
  BrowserDownload: "browser_download",
9
9
  Screenshot: "screenshot",
10
- Video: "video",
10
+ Recording: "recording",
11
11
  CustomerUpload: "customer_upload",
12
12
  };
@@ -23,4 +23,6 @@ export interface ExternalSessionWithConnectionInfo {
23
23
  profileId?: string;
24
24
  /** Session status. */
25
25
  status: string;
26
+ /** - */
27
+ viceUrl?: string;
26
28
  }
@@ -4,10 +4,10 @@
4
4
  /**
5
5
  * Type of the file
6
6
  */
7
- export type GetFileV1FileType = "browser_download" | "screenshot" | "video" | "customer_upload";
7
+ export type GetFileV1FileType = "browser_download" | "screenshot" | "recording" | "customer_upload";
8
8
  export declare const GetFileV1FileType: {
9
9
  readonly BrowserDownload: "browser_download";
10
10
  readonly Screenshot: "screenshot";
11
- readonly Video: "video";
11
+ readonly Recording: "recording";
12
12
  readonly CustomerUpload: "customer_upload";
13
13
  };
@@ -7,6 +7,6 @@ exports.GetFileV1FileType = void 0;
7
7
  exports.GetFileV1FileType = {
8
8
  BrowserDownload: "browser_download",
9
9
  Screenshot: "screenshot",
10
- Video: "video",
10
+ Recording: "recording",
11
11
  CustomerUpload: "customer_upload",
12
12
  };
@@ -9,4 +9,6 @@ export interface PageQueryConfig {
9
9
  outputSchema?: string;
10
10
  /** Optional configuration to customize and tweak how the web page is scraped. */
11
11
  scrape?: Airtop.ScrapeConfig;
12
+ /** Visual analysis configuration. When provided, enables advanced screenshot-based analysis instead of or in addition to DOM scraping. */
13
+ visualAnalysis?: Airtop.VisualAnalysisConfig;
12
14
  }
@@ -1,13 +1,18 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Airtop from "../index";
4
5
  export interface ScreenshotConfig {
6
+ /** Format of the screenshot response. 'base64' returns the image as base64-encoded data. 'url' uploads the screenshot to asset storage and returns a signed download URL. Defaults to 'base64' for viewport scope, 'url' for other scopes. */
7
+ format?: Airtop.ScreenshotConfigFormat;
5
8
  /** Maximum height of the screenshot in pixels. The screenshot will be scaled down to fit within this height if necessary, preserving the aspect ratio. */
6
9
  maxHeight?: number;
7
10
  /** Maximum width of the screenshot in pixels. The screenshot will be scaled down to fit within this width if necessary, preserving the aspect ratio. */
8
11
  maxWidth?: number;
9
12
  /** JPEG quality (1-100). Note that this option is still in development and may not work as expected. */
10
13
  quality?: number;
11
- /** Whether to capture the current viewport or whole page. Only viewport is currently supported. */
12
- scope?: "viewport";
14
+ /** [Deprecated] Whether to capture the current viewport or whole page. Use visualAnalysis.scope instead. Only viewport is currently supported when used directly. */
15
+ scope?: Airtop.ScreenshotConfigScope;
16
+ /** Visual analysis configuration. When provided, the scope setting here takes precedence over the top-level scope field. */
17
+ visualAnalysis?: Airtop.VisualAnalysisConfig;
13
18
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Format of the screenshot response. 'base64' returns the image as base64-encoded data. 'url' uploads the screenshot to asset storage and returns a signed download URL. Defaults to 'base64' for viewport scope, 'url' for other scopes.
6
+ */
7
+ export type ScreenshotConfigFormat = "base64" | "url";
8
+ export declare const ScreenshotConfigFormat: {
9
+ readonly Base64: "base64";
10
+ readonly Url: "url";
11
+ };
@@ -0,0 +1,10 @@
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.ScreenshotConfigFormat = void 0;
7
+ exports.ScreenshotConfigFormat = {
8
+ Base64: "base64",
9
+ Url: "url",
10
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * [Deprecated] Whether to capture the current viewport or whole page. Use visualAnalysis.scope instead. Only viewport is currently supported when used directly.
6
+ */
7
+ export type ScreenshotConfigScope = "viewport" | "page" | "scan" | "auto";
8
+ export declare const ScreenshotConfigScope: {
9
+ readonly Viewport: "viewport";
10
+ readonly Page: "page";
11
+ readonly Scan: "scan";
12
+ readonly Auto: "auto";
13
+ };
@@ -0,0 +1,12 @@
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.ScreenshotConfigScope = void 0;
7
+ exports.ScreenshotConfigScope = {
8
+ Viewport: "viewport",
9
+ Page: "page",
10
+ Scan: "scan",
11
+ Auto: "auto",
12
+ };
@@ -1,7 +1,22 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Airtop from "../index";
4
5
  export interface ScreenshotMetadata {
5
6
  /** Base64 encoded data URL of screenshot image data */
6
7
  dataUrl?: string;
8
+ /** Unique identifier for the uploaded file */
9
+ fileId?: string;
10
+ /** Name of the screenshot file */
11
+ fileName?: string;
12
+ /** Format of the screenshot data */
13
+ format?: Airtop.ScreenshotMetadataFormat;
14
+ /** Scroll position where the screenshot was taken */
15
+ scrollPosition?: Airtop.ScreenshotScrollPosition;
16
+ /** Signed URL for downloading the screenshot (when format is 'url') */
17
+ signedDownloadUrl?: string;
18
+ /** Expiration time for the signed URL in ISO format */
19
+ urlExpiry?: string;
20
+ /** Viewport dimensions of the screenshot */
21
+ viewportDimensions?: Airtop.ScreenshotViewportDimensions;
7
22
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Format of the screenshot data
6
+ */
7
+ export type ScreenshotMetadataFormat = "base64" | "url";
8
+ export declare const ScreenshotMetadataFormat: {
9
+ readonly Base64: "base64";
10
+ readonly Url: "url";
11
+ };
@@ -0,0 +1,10 @@
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.ScreenshotMetadataFormat = void 0;
7
+ exports.ScreenshotMetadataFormat = {
8
+ Base64: "base64",
9
+ Url: "url",
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ScreenshotScrollPosition {
5
+ /** Horizontal scroll position in pixels */
6
+ left: number;
7
+ /** Vertical scroll position in pixels */
8
+ top: number;
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ScreenshotViewportDimensions {
5
+ /** Height of the viewport in pixels */
6
+ height: number;
7
+ /** Width of the viewport in pixels */
8
+ width: number;
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 });
@@ -13,6 +13,8 @@ export interface SessionConfigV1 {
13
13
  profileName?: string;
14
14
  /** Proxy configuration. */
15
15
  proxy?: Airtop.SessionConfigV1Proxy;
16
+ /** Enable session recording. */
17
+ record?: boolean;
16
18
  /** Automatically solve captcha challenges. */
17
19
  solveCaptcha?: boolean;
18
20
  /** 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. */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VibeCodingConfig {
5
+ /** - */
6
+ agentVersion?: number;
7
+ /** - */
8
+ enabled?: boolean;
9
+ /** - */
10
+ sourceViceS3Id?: number;
11
+ }
@@ -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 });
@@ -4,6 +4,10 @@
4
4
  export interface WindowId {
5
5
  /** CDP Window target ID */
6
6
  targetId: string;
7
+ /** Current title of the browser window */
8
+ title?: string;
9
+ /** Current URL of the browser window */
10
+ url?: string;
7
11
  /** Airtop window ID of the browser window */
8
12
  windowId: string;
9
13
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface WindowsResponse {
6
+ data: Airtop.WindowsWithMeta;
7
+ errors?: Airtop.Issue[];
8
+ meta: Airtop.EnvelopeDefaultMeta;
9
+ warnings?: Airtop.Issue[];
10
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface WindowsWithMeta {
6
+ /** List of windows in the session. */
7
+ windows?: Airtop.WindowId[];
8
+ }
@@ -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 });