@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
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.VibeCodingConfig = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.VibeCodingConfig = core.serialization.object({
42
+ agentVersion: core.serialization.number().optional(),
43
+ enabled: core.serialization.boolean().optional(),
44
+ sourceViceS3Id: core.serialization.number().optional(),
45
+ });
@@ -8,6 +8,8 @@ export declare const WindowId: core.serialization.ObjectSchema<serializers.Windo
8
8
  export declare namespace WindowId {
9
9
  interface Raw {
10
10
  targetId: string;
11
+ title?: string | null;
12
+ url?: string | null;
11
13
  windowId: string;
12
14
  }
13
15
  }
@@ -40,5 +40,7 @@ exports.WindowId = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.WindowId = core.serialization.object({
42
42
  targetId: core.serialization.string(),
43
+ title: core.serialization.string().optional(),
44
+ url: core.serialization.string().optional(),
43
45
  windowId: core.serialization.string(),
44
46
  });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Airtop from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { WindowsWithMeta } from "./WindowsWithMeta";
8
+ import { Issue } from "./Issue";
9
+ import { EnvelopeDefaultMeta } from "./EnvelopeDefaultMeta";
10
+ export declare const WindowsResponse: core.serialization.ObjectSchema<serializers.WindowsResponse.Raw, Airtop.WindowsResponse>;
11
+ export declare namespace WindowsResponse {
12
+ interface Raw {
13
+ data: WindowsWithMeta.Raw;
14
+ errors?: Issue.Raw[] | null;
15
+ meta: EnvelopeDefaultMeta.Raw;
16
+ warnings?: Issue.Raw[] | null;
17
+ }
18
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.WindowsResponse = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const WindowsWithMeta_1 = require("./WindowsWithMeta");
42
+ const Issue_1 = require("./Issue");
43
+ const EnvelopeDefaultMeta_1 = require("./EnvelopeDefaultMeta");
44
+ exports.WindowsResponse = core.serialization.object({
45
+ data: WindowsWithMeta_1.WindowsWithMeta,
46
+ errors: core.serialization.list(Issue_1.Issue).optional(),
47
+ meta: EnvelopeDefaultMeta_1.EnvelopeDefaultMeta,
48
+ warnings: core.serialization.list(Issue_1.Issue).optional(),
49
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Airtop from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { WindowId } from "./WindowId";
8
+ export declare const WindowsWithMeta: core.serialization.ObjectSchema<serializers.WindowsWithMeta.Raw, Airtop.WindowsWithMeta>;
9
+ export declare namespace WindowsWithMeta {
10
+ interface Raw {
11
+ windows?: WindowId.Raw[] | null;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.WindowsWithMeta = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const WindowId_1 = require("./WindowId");
42
+ exports.WindowsWithMeta = core.serialization.object({
43
+ windows: core.serialization.list(WindowId_1.WindowId).optional(),
44
+ });
@@ -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";
@@ -86,3 +92,5 @@ export * from "./WindowEventMessage";
86
92
  export * from "./WindowId";
87
93
  export * from "./WindowIdResponse";
88
94
  export * from "./WindowResponse";
95
+ export * from "./WindowsResponse";
96
+ export * from "./WindowsWithMeta";
@@ -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);
@@ -102,3 +108,5 @@ __exportStar(require("./WindowEventMessage"), exports);
102
108
  __exportStar(require("./WindowId"), exports);
103
109
  __exportStar(require("./WindowIdResponse"), exports);
104
110
  __exportStar(require("./WindowResponse"), exports);
111
+ __exportStar(require("./WindowsResponse"), exports);
112
+ __exportStar(require("./WindowsWithMeta"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.43";
1
+ export declare const SDK_VERSION = "0.1.45";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.43";
4
+ exports.SDK_VERSION = "0.1.45";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",
@@ -11,7 +11,7 @@
11
11
  "prepack": "cp -rv dist/. .",
12
12
  "test": "jest",
13
13
  "prepublish": "yarn build",
14
- "biome:lint": "biome lint --diagnostic-level=error --no-errors-on-unmatched src",
14
+ "biome:lint": "biome lint --no-errors-on-unmatched src",
15
15
  "biome:fix": "biome format --write && biome lint --write",
16
16
  "biome:format": "biome format --no-errors-on-unmatched --files-ignore-unknown=true",
17
17
  "compile-nobase": "tsc --project config/tsconfig-nobase.json"
package/reference.md CHANGED
@@ -332,6 +332,69 @@ await client.windows.asyncFillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334
332
332
  </dl>
333
333
  </details>
334
334
 
335
+ <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">list</a>(sessionId) -> Airtop.WindowsResponse</code></summary>
336
+ <dl>
337
+ <dd>
338
+
339
+ #### 📝 Description
340
+
341
+ <dl>
342
+ <dd>
343
+
344
+ <dl>
345
+ <dd>
346
+
347
+ Lists all browser windows in a session.
348
+
349
+ </dd>
350
+ </dl>
351
+ </dd>
352
+ </dl>
353
+
354
+ #### 🔌 Usage
355
+
356
+ <dl>
357
+ <dd>
358
+
359
+ <dl>
360
+ <dd>
361
+
362
+ ```typescript
363
+ await client.windows.list("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
364
+ ```
365
+
366
+ </dd>
367
+ </dl>
368
+ </dd>
369
+ </dl>
370
+
371
+ #### ⚙️ Parameters
372
+
373
+ <dl>
374
+ <dd>
375
+
376
+ <dl>
377
+ <dd>
378
+
379
+ **sessionId:** `string` — ID of the session to list windows for.
380
+
381
+ </dd>
382
+ </dl>
383
+
384
+ <dl>
385
+ <dd>
386
+
387
+ **requestOptions:** `Windows.RequestOptions`
388
+
389
+ </dd>
390
+ </dl>
391
+ </dd>
392
+ </dl>
393
+
394
+ </dd>
395
+ </dl>
396
+ </details>
397
+
335
398
  <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">create</a>(sessionId, { ...params }) -> Airtop.WindowIdResponse</code></summary>
336
399
  <dl>
337
400
  <dd>
@@ -6,5 +6,5 @@ import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const CreateFileRestInputV1FileType: core.serialization.Schema<serializers.CreateFileRestInputV1FileType.Raw, Airtop.CreateFileRestInputV1FileType>;
8
8
  export declare namespace CreateFileRestInputV1FileType {
9
- type Raw = "browser_download" | "screenshot" | "video" | "customer_upload";
9
+ type Raw = "browser_download" | "screenshot" | "recording" | "customer_upload";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateFileRestInputV1FileType = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- exports.CreateFileRestInputV1FileType = core.serialization.enum_(["browser_download", "screenshot", "video", "customer_upload"]);
41
+ exports.CreateFileRestInputV1FileType = core.serialization.enum_(["browser_download", "screenshot", "recording", "customer_upload"]);
@@ -4,30 +4,30 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
8
- import { SessionsEventsResponseFileEvent } from "./SessionsEventsResponseFileEvent";
9
7
  import { SessionsEventsResponseCaptchaEvent } from "./SessionsEventsResponseCaptchaEvent";
10
- import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
11
8
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
9
+ import { SessionsEventsResponseFileEvent } from "./SessionsEventsResponseFileEvent";
10
+ import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
11
+ import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
12
12
  import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
13
13
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
14
14
  export declare namespace SessionsEventsResponse {
15
- type Raw = SessionsEventsResponse.SessionEvent | SessionsEventsResponse.FileEvent | SessionsEventsResponse.CaptchaEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent;
16
- interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
17
- event: "sessionEvent";
15
+ type Raw = SessionsEventsResponse.CaptchaEvent | SessionsEventsResponse.Error | SessionsEventsResponse.FileEvent | SessionsEventsResponse.SessionEvent | SessionsEventsResponse.Status | SessionsEventsResponse.WindowEvent;
16
+ interface CaptchaEvent extends SessionsEventsResponseCaptchaEvent.Raw {
17
+ event: "captchaEvent";
18
+ }
19
+ interface Error extends SessionsEventsResponseError.Raw {
20
+ event: "error";
18
21
  }
19
22
  interface FileEvent extends SessionsEventsResponseFileEvent.Raw {
20
23
  event: "fileEvent";
21
24
  }
22
- interface CaptchaEvent extends SessionsEventsResponseCaptchaEvent.Raw {
23
- event: "captchaEvent";
25
+ interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
26
+ event: "sessionEvent";
24
27
  }
25
28
  interface Status extends SessionsEventsResponseStatus.Raw {
26
29
  event: "status";
27
30
  }
28
- interface Error extends SessionsEventsResponseError.Raw {
29
- event: "error";
30
- }
31
31
  interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
32
32
  event: "windowEvent";
33
33
  }
@@ -38,19 +38,19 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.SessionsEventsResponse = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
42
- const SessionsEventsResponseFileEvent_1 = require("./SessionsEventsResponseFileEvent");
43
41
  const SessionsEventsResponseCaptchaEvent_1 = require("./SessionsEventsResponseCaptchaEvent");
44
- const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
45
42
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
43
+ const SessionsEventsResponseFileEvent_1 = require("./SessionsEventsResponseFileEvent");
44
+ const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
45
+ const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
46
46
  const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
47
47
  exports.SessionsEventsResponse = core.serialization
48
48
  .union("event", {
49
- sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
50
- fileEvent: SessionsEventsResponseFileEvent_1.SessionsEventsResponseFileEvent,
51
49
  captchaEvent: SessionsEventsResponseCaptchaEvent_1.SessionsEventsResponseCaptchaEvent,
52
- status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
53
50
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
51
+ fileEvent: SessionsEventsResponseFileEvent_1.SessionsEventsResponseFileEvent,
52
+ sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
53
+ status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
54
54
  windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
55
55
  })
56
56
  .transform({
@@ -1,8 +1,8 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseSessionEvent";
3
- export * from "./SessionsEventsResponseFileEvent";
4
2
  export * from "./SessionsEventsResponseCaptchaEvent";
5
- export * from "./SessionsEventsResponseStatus";
6
3
  export * from "./SessionsEventsResponseError";
4
+ export * from "./SessionsEventsResponseFileEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
6
+ export * from "./SessionsEventsResponseStatus";
7
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("./SessionsEventsResponseSessionEvent"), exports);
19
- __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
20
18
  __exportStar(require("./SessionsEventsResponseCaptchaEvent"), exports);
21
- __exportStar(require("./SessionsEventsResponseStatus"), exports);
22
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
20
+ __exportStar(require("./SessionsEventsResponseFileEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
+ __exportStar(require("./SessionsEventsResponseStatus"), exports);
23
23
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
24
24
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -6,5 +6,5 @@ import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CreateFileV1FileType: core.serialization.Schema<serializers.CreateFileV1FileType.Raw, Airtop.CreateFileV1FileType>;
8
8
  export declare namespace CreateFileV1FileType {
9
- type Raw = "browser_download" | "screenshot" | "video" | "customer_upload";
9
+ type Raw = "browser_download" | "screenshot" | "recording" | "customer_upload";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateFileV1FileType = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CreateFileV1FileType = core.serialization.enum_(["browser_download", "screenshot", "video", "customer_upload"]);
41
+ exports.CreateFileV1FileType = core.serialization.enum_(["browser_download", "screenshot", "recording", "customer_upload"]);
@@ -18,5 +18,6 @@ export declare namespace ExternalSessionWithConnectionInfo {
18
18
  lastActivity?: string | null;
19
19
  profileId?: string | null;
20
20
  status: string;
21
+ viceUrl?: string | null;
21
22
  }
22
23
  }
@@ -50,4 +50,5 @@ exports.ExternalSessionWithConnectionInfo = core.serialization.object({
50
50
  lastActivity: core.serialization.date().optional(),
51
51
  profileId: core.serialization.string().optional(),
52
52
  status: core.serialization.string(),
53
+ viceUrl: core.serialization.string().optional(),
53
54
  });
@@ -6,5 +6,5 @@ import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const GetFileV1FileType: core.serialization.Schema<serializers.GetFileV1FileType.Raw, Airtop.GetFileV1FileType>;
8
8
  export declare namespace GetFileV1FileType {
9
- type Raw = "browser_download" | "screenshot" | "video" | "customer_upload";
9
+ type Raw = "browser_download" | "screenshot" | "recording" | "customer_upload";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.GetFileV1FileType = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.GetFileV1FileType = core.serialization.enum_(["browser_download", "screenshot", "video", "customer_upload"]);
41
+ exports.GetFileV1FileType = core.serialization.enum_(["browser_download", "screenshot", "recording", "customer_upload"]);
@@ -6,11 +6,13 @@ import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { PageQueryExperimentalConfig } from "./PageQueryExperimentalConfig";
8
8
  import { ScrapeConfig } from "./ScrapeConfig";
9
+ import { VisualAnalysisConfig } from "./VisualAnalysisConfig";
9
10
  export declare const PageQueryConfig: core.serialization.ObjectSchema<serializers.PageQueryConfig.Raw, Airtop.PageQueryConfig>;
10
11
  export declare namespace PageQueryConfig {
11
12
  interface Raw {
12
13
  experimental?: PageQueryExperimentalConfig.Raw | null;
13
14
  outputSchema?: string | null;
14
15
  scrape?: ScrapeConfig.Raw | null;
16
+ visualAnalysis?: VisualAnalysisConfig.Raw | null;
15
17
  }
16
18
  }
@@ -40,8 +40,10 @@ exports.PageQueryConfig = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const PageQueryExperimentalConfig_1 = require("./PageQueryExperimentalConfig");
42
42
  const ScrapeConfig_1 = require("./ScrapeConfig");
43
+ const VisualAnalysisConfig_1 = require("./VisualAnalysisConfig");
43
44
  exports.PageQueryConfig = core.serialization.object({
44
45
  experimental: PageQueryExperimentalConfig_1.PageQueryExperimentalConfig.optional(),
45
46
  outputSchema: core.serialization.string().optional(),
46
47
  scrape: ScrapeConfig_1.ScrapeConfig.optional(),
48
+ visualAnalysis: VisualAnalysisConfig_1.VisualAnalysisConfig.optional(),
47
49
  });
@@ -4,12 +4,17 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ScreenshotConfigFormat } from "./ScreenshotConfigFormat";
8
+ import { ScreenshotConfigScope } from "./ScreenshotConfigScope";
9
+ import { VisualAnalysisConfig } from "./VisualAnalysisConfig";
7
10
  export declare const ScreenshotConfig: core.serialization.ObjectSchema<serializers.ScreenshotConfig.Raw, Airtop.ScreenshotConfig>;
8
11
  export declare namespace ScreenshotConfig {
9
12
  interface Raw {
13
+ format?: ScreenshotConfigFormat.Raw | null;
10
14
  maxHeight?: number | null;
11
15
  maxWidth?: number | null;
12
16
  quality?: number | null;
13
- scope?: "viewport" | null;
17
+ scope?: ScreenshotConfigScope.Raw | null;
18
+ visualAnalysis?: VisualAnalysisConfig.Raw | null;
14
19
  }
15
20
  }
@@ -38,9 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ScreenshotConfig = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ScreenshotConfigFormat_1 = require("./ScreenshotConfigFormat");
42
+ const ScreenshotConfigScope_1 = require("./ScreenshotConfigScope");
43
+ const VisualAnalysisConfig_1 = require("./VisualAnalysisConfig");
41
44
  exports.ScreenshotConfig = core.serialization.object({
45
+ format: ScreenshotConfigFormat_1.ScreenshotConfigFormat.optional(),
42
46
  maxHeight: core.serialization.number().optional(),
43
47
  maxWidth: core.serialization.number().optional(),
44
48
  quality: core.serialization.number().optional(),
45
- scope: core.serialization.stringLiteral("viewport").optional(),
49
+ scope: ScreenshotConfigScope_1.ScreenshotConfigScope.optional(),
50
+ visualAnalysis: VisualAnalysisConfig_1.VisualAnalysisConfig.optional(),
46
51
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Airtop from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ScreenshotConfigFormat: core.serialization.Schema<serializers.ScreenshotConfigFormat.Raw, Airtop.ScreenshotConfigFormat>;
8
+ export declare namespace ScreenshotConfigFormat {
9
+ type Raw = "base64" | "url";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ScreenshotConfigFormat = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ScreenshotConfigFormat = core.serialization.enum_(["base64", "url"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Airtop from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ScreenshotConfigScope: core.serialization.Schema<serializers.ScreenshotConfigScope.Raw, Airtop.ScreenshotConfigScope>;
8
+ export declare namespace ScreenshotConfigScope {
9
+ type Raw = "viewport" | "page" | "scan" | "auto";
10
+ }