@airtop/sdk 0.1.44 → 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 (146) hide show
  1. package/README.md +1 -1
  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 +9 -9
  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.js +23 -23
  13. package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -1
  14. package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -1
  15. package/api/types/CreateFileV1FileType.d.ts +2 -2
  16. package/api/types/CreateFileV1FileType.js +1 -1
  17. package/api/types/ExternalSessionWithConnectionInfo.d.ts +2 -0
  18. package/api/types/GetFileV1FileType.d.ts +2 -2
  19. package/api/types/GetFileV1FileType.js +1 -1
  20. package/api/types/PageQueryConfig.d.ts +2 -0
  21. package/api/types/ScreenshotConfig.d.ts +7 -2
  22. package/api/types/ScreenshotConfigFormat.d.ts +11 -0
  23. package/api/types/ScreenshotConfigFormat.js +10 -0
  24. package/api/types/ScreenshotConfigScope.d.ts +13 -0
  25. package/api/types/ScreenshotConfigScope.js +12 -0
  26. package/api/types/ScreenshotMetadata.d.ts +15 -0
  27. package/api/types/ScreenshotMetadataFormat.d.ts +11 -0
  28. package/api/types/ScreenshotMetadataFormat.js +10 -0
  29. package/api/types/ScreenshotScrollPosition.d.ts +9 -0
  30. package/api/types/ScreenshotScrollPosition.js +5 -0
  31. package/api/types/ScreenshotViewportDimensions.d.ts +9 -0
  32. package/api/types/ScreenshotViewportDimensions.js +5 -0
  33. package/api/types/SessionConfigV1.d.ts +2 -0
  34. package/api/types/VibeCodingConfig.d.ts +11 -0
  35. package/api/types/VibeCodingConfig.js +5 -0
  36. package/api/types/index.d.ts +6 -0
  37. package/api/types/index.js +6 -0
  38. package/dist/api/resources/automations/client/Client.js +4 -4
  39. package/dist/api/resources/files/client/Client.js +5 -5
  40. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +2 -2
  41. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.js +1 -1
  42. package/dist/api/resources/profiles/client/Client.js +1 -1
  43. package/dist/api/resources/requests/client/Client.js +1 -1
  44. package/dist/api/resources/sessions/client/Client.js +6 -6
  45. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
  46. package/dist/api/resources/sessions/types/index.d.ts +3 -3
  47. package/dist/api/resources/sessions/types/index.js +3 -3
  48. package/dist/api/resources/windows/client/Client.js +23 -23
  49. package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -1
  50. package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -1
  51. package/dist/api/types/CreateFileV1FileType.d.ts +2 -2
  52. package/dist/api/types/CreateFileV1FileType.js +1 -1
  53. package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +2 -0
  54. package/dist/api/types/GetFileV1FileType.d.ts +2 -2
  55. package/dist/api/types/GetFileV1FileType.js +1 -1
  56. package/dist/api/types/PageQueryConfig.d.ts +2 -0
  57. package/dist/api/types/ScreenshotConfig.d.ts +7 -2
  58. package/dist/api/types/ScreenshotConfigFormat.d.ts +11 -0
  59. package/dist/api/types/ScreenshotConfigFormat.js +10 -0
  60. package/dist/api/types/ScreenshotConfigScope.d.ts +13 -0
  61. package/dist/api/types/ScreenshotConfigScope.js +12 -0
  62. package/dist/api/types/ScreenshotMetadata.d.ts +15 -0
  63. package/dist/api/types/ScreenshotMetadataFormat.d.ts +11 -0
  64. package/dist/api/types/ScreenshotMetadataFormat.js +10 -0
  65. package/dist/api/types/ScreenshotScrollPosition.d.ts +9 -0
  66. package/dist/api/types/ScreenshotScrollPosition.js +5 -0
  67. package/dist/api/types/ScreenshotViewportDimensions.d.ts +9 -0
  68. package/dist/api/types/ScreenshotViewportDimensions.js +5 -0
  69. package/dist/api/types/SessionConfigV1.d.ts +2 -0
  70. package/dist/api/types/VibeCodingConfig.d.ts +11 -0
  71. package/dist/api/types/VibeCodingConfig.js +5 -0
  72. package/dist/api/types/index.d.ts +6 -0
  73. package/dist/api/types/index.js +6 -0
  74. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +1 -1
  75. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.js +1 -1
  76. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +12 -12
  77. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +6 -6
  78. package/dist/serialization/resources/sessions/types/index.d.ts +3 -3
  79. package/dist/serialization/resources/sessions/types/index.js +3 -3
  80. package/dist/serialization/types/CreateFileV1FileType.d.ts +1 -1
  81. package/dist/serialization/types/CreateFileV1FileType.js +1 -1
  82. package/dist/serialization/types/ExternalSessionWithConnectionInfo.d.ts +1 -0
  83. package/dist/serialization/types/ExternalSessionWithConnectionInfo.js +1 -0
  84. package/dist/serialization/types/GetFileV1FileType.d.ts +1 -1
  85. package/dist/serialization/types/GetFileV1FileType.js +1 -1
  86. package/dist/serialization/types/PageQueryConfig.d.ts +2 -0
  87. package/dist/serialization/types/PageQueryConfig.js +2 -0
  88. package/dist/serialization/types/ScreenshotConfig.d.ts +6 -1
  89. package/dist/serialization/types/ScreenshotConfig.js +6 -1
  90. package/dist/serialization/types/ScreenshotConfigFormat.d.ts +10 -0
  91. package/dist/serialization/types/ScreenshotConfigFormat.js +41 -0
  92. package/dist/serialization/types/ScreenshotConfigScope.d.ts +10 -0
  93. package/dist/serialization/types/ScreenshotConfigScope.js +41 -0
  94. package/dist/serialization/types/ScreenshotMetadata.d.ts +10 -0
  95. package/dist/serialization/types/ScreenshotMetadata.js +10 -0
  96. package/dist/serialization/types/ScreenshotMetadataFormat.d.ts +10 -0
  97. package/dist/serialization/types/ScreenshotMetadataFormat.js +41 -0
  98. package/dist/serialization/types/ScreenshotScrollPosition.d.ts +13 -0
  99. package/dist/serialization/types/ScreenshotScrollPosition.js +44 -0
  100. package/dist/serialization/types/ScreenshotViewportDimensions.d.ts +13 -0
  101. package/dist/serialization/types/ScreenshotViewportDimensions.js +44 -0
  102. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  103. package/dist/serialization/types/SessionConfigV1.js +1 -0
  104. package/dist/serialization/types/VibeCodingConfig.d.ts +14 -0
  105. package/dist/serialization/types/VibeCodingConfig.js +45 -0
  106. package/dist/serialization/types/index.d.ts +6 -0
  107. package/dist/serialization/types/index.js +6 -0
  108. package/dist/version.d.ts +1 -1
  109. package/dist/version.js +1 -1
  110. package/package.json +2 -2
  111. package/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +1 -1
  112. package/serialization/resources/files/types/CreateFileRestInputV1FileType.js +1 -1
  113. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +12 -12
  114. package/serialization/resources/sessions/types/SessionsEventsResponse.js +6 -6
  115. package/serialization/resources/sessions/types/index.d.ts +3 -3
  116. package/serialization/resources/sessions/types/index.js +3 -3
  117. package/serialization/types/CreateFileV1FileType.d.ts +1 -1
  118. package/serialization/types/CreateFileV1FileType.js +1 -1
  119. package/serialization/types/ExternalSessionWithConnectionInfo.d.ts +1 -0
  120. package/serialization/types/ExternalSessionWithConnectionInfo.js +1 -0
  121. package/serialization/types/GetFileV1FileType.d.ts +1 -1
  122. package/serialization/types/GetFileV1FileType.js +1 -1
  123. package/serialization/types/PageQueryConfig.d.ts +2 -0
  124. package/serialization/types/PageQueryConfig.js +2 -0
  125. package/serialization/types/ScreenshotConfig.d.ts +6 -1
  126. package/serialization/types/ScreenshotConfig.js +6 -1
  127. package/serialization/types/ScreenshotConfigFormat.d.ts +10 -0
  128. package/serialization/types/ScreenshotConfigFormat.js +41 -0
  129. package/serialization/types/ScreenshotConfigScope.d.ts +10 -0
  130. package/serialization/types/ScreenshotConfigScope.js +41 -0
  131. package/serialization/types/ScreenshotMetadata.d.ts +10 -0
  132. package/serialization/types/ScreenshotMetadata.js +10 -0
  133. package/serialization/types/ScreenshotMetadataFormat.d.ts +10 -0
  134. package/serialization/types/ScreenshotMetadataFormat.js +41 -0
  135. package/serialization/types/ScreenshotScrollPosition.d.ts +13 -0
  136. package/serialization/types/ScreenshotScrollPosition.js +44 -0
  137. package/serialization/types/ScreenshotViewportDimensions.d.ts +13 -0
  138. package/serialization/types/ScreenshotViewportDimensions.js +44 -0
  139. package/serialization/types/SessionConfigV1.d.ts +1 -0
  140. package/serialization/types/SessionConfigV1.js +1 -0
  141. package/serialization/types/VibeCodingConfig.d.ts +14 -0
  142. package/serialization/types/VibeCodingConfig.js +45 -0
  143. package/serialization/types/index.d.ts +6 -0
  144. package/serialization/types/index.js +6 -0
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
@@ -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 });
@@ -57,9 +57,14 @@ export * from "./ScrapeResponse";
57
57
  export * from "./ScrapeResponseContent";
58
58
  export * from "./ScrapeResponseEnvelope";
59
59
  export * from "./ScrapeResponseOutput";
60
+ export * from "./ScreenshotConfigFormat";
61
+ export * from "./ScreenshotConfigScope";
60
62
  export * from "./ScreenshotConfig";
63
+ export * from "./ScreenshotMetadataFormat";
61
64
  export * from "./ScreenshotMetadata";
62
65
  export * from "./ScreenshotRequestConfig";
66
+ export * from "./ScreenshotScrollPosition";
67
+ export * from "./ScreenshotViewportDimensions";
63
68
  export * from "./ScrollByConfig";
64
69
  export * from "./ScrollToEdgeConfig";
65
70
  export * from "./AirtopProxyConfiguration";
@@ -77,6 +82,7 @@ export * from "./StatusMessageStatus";
77
82
  export * from "./StatusMessage";
78
83
  export * from "./SummaryConfig";
79
84
  export * from "./SummaryExperimentalConfig";
85
+ export * from "./VibeCodingConfig";
80
86
  export * from "./VisualAnalysisConfigPartitionDirection";
81
87
  export * from "./VisualAnalysisConfigResultSelectionStrategy";
82
88
  export * from "./VisualAnalysisConfigScope";
@@ -73,9 +73,14 @@ __exportStar(require("./ScrapeResponse"), exports);
73
73
  __exportStar(require("./ScrapeResponseContent"), exports);
74
74
  __exportStar(require("./ScrapeResponseEnvelope"), exports);
75
75
  __exportStar(require("./ScrapeResponseOutput"), exports);
76
+ __exportStar(require("./ScreenshotConfigFormat"), exports);
77
+ __exportStar(require("./ScreenshotConfigScope"), exports);
76
78
  __exportStar(require("./ScreenshotConfig"), exports);
79
+ __exportStar(require("./ScreenshotMetadataFormat"), exports);
77
80
  __exportStar(require("./ScreenshotMetadata"), exports);
78
81
  __exportStar(require("./ScreenshotRequestConfig"), exports);
82
+ __exportStar(require("./ScreenshotScrollPosition"), exports);
83
+ __exportStar(require("./ScreenshotViewportDimensions"), exports);
79
84
  __exportStar(require("./ScrollByConfig"), exports);
80
85
  __exportStar(require("./ScrollToEdgeConfig"), exports);
81
86
  __exportStar(require("./AirtopProxyConfiguration"), exports);
@@ -93,6 +98,7 @@ __exportStar(require("./StatusMessageStatus"), exports);
93
98
  __exportStar(require("./StatusMessage"), exports);
94
99
  __exportStar(require("./SummaryConfig"), exports);
95
100
  __exportStar(require("./SummaryExperimentalConfig"), exports);
101
+ __exportStar(require("./VibeCodingConfig"), exports);
96
102
  __exportStar(require("./VisualAnalysisConfigPartitionDirection"), exports);
97
103
  __exportStar(require("./VisualAnalysisConfigResultSelectionStrategy"), exports);
98
104
  __exportStar(require("./VisualAnalysisConfigScope"), exports);
@@ -73,7 +73,7 @@ class Automations {
73
73
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
74
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, "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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
297
297
  contentType: "application/json",
298
298
  requestType: "json",
299
299
  body: serializers.PushFileBodyV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -4,10 +4,10 @@
4
4
  /**
5
5
  * Type of the file
6
6
  */
7
- export type CreateFileRestInputV1FileType = "browser_download" | "screenshot" | "video" | "customer_upload";
7
+ export type CreateFileRestInputV1FileType = "browser_download" | "screenshot" | "recording" | "customer_upload";
8
8
  export declare const CreateFileRestInputV1FileType: {
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.CreateFileRestInputV1FileType = void 0;
7
7
  exports.CreateFileRestInputV1FileType = {
8
8
  BrowserDownload: "browser_download",
9
9
  Screenshot: "screenshot",
10
- Video: "video",
10
+ Recording: "recording",
11
11
  CustomerUpload: "customer_upload",
12
12
  };
@@ -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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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.44", "User-Agent": "@airtop/sdk/0.1.44", "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.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),
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,24 +5,24 @@ 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.FileEvent | Airtop.SessionsEventsResponse.CaptchaEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
8
+ export type SessionsEventsResponse = Airtop.SessionsEventsResponse.CaptchaEvent | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.FileEvent | Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.WindowEvent;
9
9
  export declare namespace SessionsEventsResponse {
10
- interface FileEvent extends Airtop.SessionsEventsResponseFileEvent {
11
- event: "fileEvent";
12
- }
13
10
  interface CaptchaEvent extends Airtop.SessionsEventsResponseCaptchaEvent {
14
11
  event: "captchaEvent";
15
12
  }
16
- interface Status extends Airtop.SessionsEventsResponseStatus {
17
- event: "status";
18
- }
19
13
  interface Error_ extends Airtop.SessionsEventsResponseError {
20
14
  event: "error";
21
15
  }
22
- interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
23
- event: "windowEvent";
16
+ interface FileEvent extends Airtop.SessionsEventsResponseFileEvent {
17
+ event: "fileEvent";
24
18
  }
25
19
  interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
26
20
  event: "sessionEvent";
27
21
  }
22
+ interface Status extends Airtop.SessionsEventsResponseStatus {
23
+ event: "status";
24
+ }
25
+ interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
26
+ event: "windowEvent";
27
+ }
28
28
  }
@@ -1,8 +1,8 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseFileEvent";
3
2
  export * from "./SessionsEventsResponseCaptchaEvent";
4
- export * from "./SessionsEventsResponseStatus";
5
3
  export * from "./SessionsEventsResponseError";
6
- export * from "./SessionsEventsResponseWindowEvent";
4
+ export * from "./SessionsEventsResponseFileEvent";
7
5
  export * from "./SessionsEventsResponseSessionEvent";
6
+ export * from "./SessionsEventsResponseStatus";
7
+ export * from "./SessionsEventsResponseWindowEvent";
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("./SessionsEventsResponseFileEvent"), exports);
19
18
  __exportStar(require("./SessionsEventsResponseCaptchaEvent"), exports);
20
- __exportStar(require("./SessionsEventsResponseStatus"), exports);
21
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
22
- __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
20
+ __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
23
21
  __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
+ __exportStar(require("./SessionsEventsResponseStatus"), exports);
23
+ __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
24
24
  __exportStar(require("./SessionsEventsResponse"), exports);