@airtop/sdk 0.1.16 → 0.1.18

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 (34) hide show
  1. package/api/resources/profiles/client/Client.js +2 -2
  2. package/api/resources/sessions/client/Client.d.ts +2 -2
  3. package/api/resources/sessions/client/Client.js +17 -17
  4. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  5. package/api/resources/sessions/types/index.d.ts +1 -1
  6. package/api/resources/sessions/types/index.js +1 -1
  7. package/api/resources/windows/client/Client.js +26 -26
  8. package/api/types/SessionConfigV1.d.ts +0 -4
  9. package/dist/api/resources/profiles/client/Client.js +2 -2
  10. package/dist/api/resources/sessions/client/Client.d.ts +2 -2
  11. package/dist/api/resources/sessions/client/Client.js +17 -17
  12. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  13. package/dist/api/resources/sessions/types/index.d.ts +1 -1
  14. package/dist/api/resources/sessions/types/index.js +1 -1
  15. package/dist/api/resources/windows/client/Client.js +26 -26
  16. package/dist/api/types/SessionConfigV1.d.ts +0 -4
  17. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  18. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  19. package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
  20. package/dist/serialization/resources/sessions/types/index.js +1 -1
  21. package/dist/serialization/types/SessionConfigV1.d.ts +0 -2
  22. package/dist/serialization/types/SessionConfigV1.js +0 -2
  23. package/dist/wrapper/AirtopWindows.d.ts +12 -0
  24. package/dist/wrapper/AirtopWindows.js +19 -0
  25. package/package.json +1 -1
  26. package/reference.md +2 -2
  27. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  28. package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  29. package/serialization/resources/sessions/types/index.d.ts +1 -1
  30. package/serialization/resources/sessions/types/index.js +1 -1
  31. package/serialization/types/SessionConfigV1.d.ts +0 -2
  32. package/serialization/types/SessionConfigV1.js +0 -2
  33. package/wrapper/AirtopWindows.d.ts +12 -0
  34. package/wrapper/AirtopWindows.js +19 -0
@@ -84,8 +84,8 @@ class Profiles {
84
84
  Authorization: yield this._getAuthorizationHeader(),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "@airtop/sdk",
87
- "X-Fern-SDK-Version": "0.1.16",
88
- "User-Agent": "@airtop/sdk/0.1.16",
87
+ "X-Fern-SDK-Version": "0.1.18",
88
+ "User-Agent": "@airtop/sdk/0.1.18",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -81,9 +81,9 @@ export declare class Sessions {
81
81
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
82
82
  *
83
83
  * @example
84
- * await client.sessions.saveExtentionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
84
+ * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
85
85
  */
86
- saveExtentionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
86
+ saveExtensionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
87
87
  /**
88
88
  * @param {string} sessionId - ID of the session.
89
89
  * @param {string} profileName - Name under which to save the profile.
@@ -94,8 +94,8 @@ class Sessions {
94
94
  Authorization: yield this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "@airtop/sdk",
97
- "X-Fern-SDK-Version": "0.1.16",
98
- "User-Agent": "@airtop/sdk/0.1.16",
97
+ "X-Fern-SDK-Version": "0.1.18",
98
+ "User-Agent": "@airtop/sdk/0.1.18",
99
99
  "X-Fern-Runtime": core.RUNTIME.type,
100
100
  "X-Fern-Runtime-Version": core.RUNTIME.version,
101
101
  },
@@ -180,8 +180,8 @@ class Sessions {
180
180
  Authorization: yield this._getAuthorizationHeader(),
181
181
  "X-Fern-Language": "JavaScript",
182
182
  "X-Fern-SDK-Name": "@airtop/sdk",
183
- "X-Fern-SDK-Version": "0.1.16",
184
- "User-Agent": "@airtop/sdk/0.1.16",
183
+ "X-Fern-SDK-Version": "0.1.18",
184
+ "User-Agent": "@airtop/sdk/0.1.18",
185
185
  "X-Fern-Runtime": core.RUNTIME.type,
186
186
  "X-Fern-Runtime-Version": core.RUNTIME.version,
187
187
  },
@@ -245,8 +245,8 @@ class Sessions {
245
245
  Authorization: yield this._getAuthorizationHeader(),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "@airtop/sdk",
248
- "X-Fern-SDK-Version": "0.1.16",
249
- "User-Agent": "@airtop/sdk/0.1.16",
248
+ "X-Fern-SDK-Version": "0.1.18",
249
+ "User-Agent": "@airtop/sdk/0.1.18",
250
250
  "X-Fern-Runtime": core.RUNTIME.type,
251
251
  "X-Fern-Runtime-Version": core.RUNTIME.version,
252
252
  },
@@ -332,8 +332,8 @@ class Sessions {
332
332
  Authorization: yield this._getAuthorizationHeader(),
333
333
  "X-Fern-Language": "JavaScript",
334
334
  "X-Fern-SDK-Name": "@airtop/sdk",
335
- "X-Fern-SDK-Version": "0.1.16",
336
- "User-Agent": "@airtop/sdk/0.1.16",
335
+ "X-Fern-SDK-Version": "0.1.18",
336
+ "User-Agent": "@airtop/sdk/0.1.18",
337
337
  "X-Fern-Runtime": core.RUNTIME.type,
338
338
  "X-Fern-Runtime-Version": core.RUNTIME.version,
339
339
  },
@@ -388,8 +388,8 @@ class Sessions {
388
388
  Authorization: yield this._getAuthorizationHeader(),
389
389
  "X-Fern-Language": "JavaScript",
390
390
  "X-Fern-SDK-Name": "@airtop/sdk",
391
- "X-Fern-SDK-Version": "0.1.16",
392
- "User-Agent": "@airtop/sdk/0.1.16",
391
+ "X-Fern-SDK-Version": "0.1.18",
392
+ "User-Agent": "@airtop/sdk/0.1.18",
393
393
  "X-Fern-Runtime": core.RUNTIME.type,
394
394
  "X-Fern-Runtime-Version": core.RUNTIME.version,
395
395
  },
@@ -474,20 +474,20 @@ class Sessions {
474
474
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
475
475
  *
476
476
  * @example
477
- * await client.sessions.saveExtentionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
477
+ * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
478
478
  */
479
- saveExtentionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
479
+ saveExtensionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
480
480
  var _a, _b;
481
481
  return __awaiter(this, void 0, void 0, function* () {
482
482
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
483
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extention-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
483
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extension-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
484
484
  method: "PUT",
485
485
  headers: {
486
486
  Authorization: yield this._getAuthorizationHeader(),
487
487
  "X-Fern-Language": "JavaScript",
488
488
  "X-Fern-SDK-Name": "@airtop/sdk",
489
- "X-Fern-SDK-Version": "0.1.16",
490
- "User-Agent": "@airtop/sdk/0.1.16",
489
+ "X-Fern-SDK-Version": "0.1.18",
490
+ "User-Agent": "@airtop/sdk/0.1.18",
491
491
  "X-Fern-Runtime": core.RUNTIME.type,
492
492
  "X-Fern-Runtime-Version": core.RUNTIME.version,
493
493
  },
@@ -539,8 +539,8 @@ class Sessions {
539
539
  Authorization: yield this._getAuthorizationHeader(),
540
540
  "X-Fern-Language": "JavaScript",
541
541
  "X-Fern-SDK-Name": "@airtop/sdk",
542
- "X-Fern-SDK-Version": "0.1.16",
543
- "User-Agent": "@airtop/sdk/0.1.16",
542
+ "X-Fern-SDK-Version": "0.1.18",
543
+ "User-Agent": "@airtop/sdk/0.1.18",
544
544
  "X-Fern-Runtime": core.RUNTIME.type,
545
545
  "X-Fern-Runtime-Version": core.RUNTIME.version,
546
546
  },
@@ -5,11 +5,8 @@ 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 declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent;
8
+ export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
9
9
  export declare namespace SessionsEventsResponse {
10
- interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
11
- event: "sessionEvent";
12
- }
13
10
  interface Status extends Airtop.SessionsEventsResponseStatus {
14
11
  event: "status";
15
12
  }
@@ -19,4 +16,7 @@ export declare namespace SessionsEventsResponse {
19
16
  interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
20
17
  event: "windowEvent";
21
18
  }
19
+ interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
20
+ event: "sessionEvent";
21
+ }
22
22
  }
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseSessionEvent";
3
2
  export * from "./SessionsEventsResponseStatus";
4
3
  export * from "./SessionsEventsResponseError";
5
4
  export * from "./SessionsEventsResponseWindowEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ 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
18
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
20
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
21
20
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -68,8 +68,8 @@ class Windows {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "@airtop/sdk",
71
- "X-Fern-SDK-Version": "0.1.16",
72
- "User-Agent": "@airtop/sdk/0.1.16",
71
+ "X-Fern-SDK-Version": "0.1.18",
72
+ "User-Agent": "@airtop/sdk/0.1.18",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -144,8 +144,8 @@ class Windows {
144
144
  Authorization: yield this._getAuthorizationHeader(),
145
145
  "X-Fern-Language": "JavaScript",
146
146
  "X-Fern-SDK-Name": "@airtop/sdk",
147
- "X-Fern-SDK-Version": "0.1.16",
148
- "User-Agent": "@airtop/sdk/0.1.16",
147
+ "X-Fern-SDK-Version": "0.1.18",
148
+ "User-Agent": "@airtop/sdk/0.1.18",
149
149
  "X-Fern-Runtime": core.RUNTIME.type,
150
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
151
151
  },
@@ -209,8 +209,8 @@ class Windows {
209
209
  Authorization: yield this._getAuthorizationHeader(),
210
210
  "X-Fern-Language": "JavaScript",
211
211
  "X-Fern-SDK-Name": "@airtop/sdk",
212
- "X-Fern-SDK-Version": "0.1.16",
213
- "User-Agent": "@airtop/sdk/0.1.16",
212
+ "X-Fern-SDK-Version": "0.1.18",
213
+ "User-Agent": "@airtop/sdk/0.1.18",
214
214
  "X-Fern-Runtime": core.RUNTIME.type,
215
215
  "X-Fern-Runtime-Version": core.RUNTIME.version,
216
216
  },
@@ -271,8 +271,8 @@ class Windows {
271
271
  Authorization: yield this._getAuthorizationHeader(),
272
272
  "X-Fern-Language": "JavaScript",
273
273
  "X-Fern-SDK-Name": "@airtop/sdk",
274
- "X-Fern-SDK-Version": "0.1.16",
275
- "User-Agent": "@airtop/sdk/0.1.16",
274
+ "X-Fern-SDK-Version": "0.1.18",
275
+ "User-Agent": "@airtop/sdk/0.1.18",
276
276
  "X-Fern-Runtime": core.RUNTIME.type,
277
277
  "X-Fern-Runtime-Version": core.RUNTIME.version,
278
278
  },
@@ -335,8 +335,8 @@ class Windows {
335
335
  Authorization: yield this._getAuthorizationHeader(),
336
336
  "X-Fern-Language": "JavaScript",
337
337
  "X-Fern-SDK-Name": "@airtop/sdk",
338
- "X-Fern-SDK-Version": "0.1.16",
339
- "User-Agent": "@airtop/sdk/0.1.16",
338
+ "X-Fern-SDK-Version": "0.1.18",
339
+ "User-Agent": "@airtop/sdk/0.1.18",
340
340
  "X-Fern-Runtime": core.RUNTIME.type,
341
341
  "X-Fern-Runtime-Version": core.RUNTIME.version,
342
342
  },
@@ -398,8 +398,8 @@ class Windows {
398
398
  Authorization: yield this._getAuthorizationHeader(),
399
399
  "X-Fern-Language": "JavaScript",
400
400
  "X-Fern-SDK-Name": "@airtop/sdk",
401
- "X-Fern-SDK-Version": "0.1.16",
402
- "User-Agent": "@airtop/sdk/0.1.16",
401
+ "X-Fern-SDK-Version": "0.1.18",
402
+ "User-Agent": "@airtop/sdk/0.1.18",
403
403
  "X-Fern-Runtime": core.RUNTIME.type,
404
404
  "X-Fern-Runtime-Version": core.RUNTIME.version,
405
405
  },
@@ -463,8 +463,8 @@ class Windows {
463
463
  Authorization: yield this._getAuthorizationHeader(),
464
464
  "X-Fern-Language": "JavaScript",
465
465
  "X-Fern-SDK-Name": "@airtop/sdk",
466
- "X-Fern-SDK-Version": "0.1.16",
467
- "User-Agent": "@airtop/sdk/0.1.16",
466
+ "X-Fern-SDK-Version": "0.1.18",
467
+ "User-Agent": "@airtop/sdk/0.1.18",
468
468
  "X-Fern-Runtime": core.RUNTIME.type,
469
469
  "X-Fern-Runtime-Version": core.RUNTIME.version,
470
470
  },
@@ -528,8 +528,8 @@ class Windows {
528
528
  Authorization: yield this._getAuthorizationHeader(),
529
529
  "X-Fern-Language": "JavaScript",
530
530
  "X-Fern-SDK-Name": "@airtop/sdk",
531
- "X-Fern-SDK-Version": "0.1.16",
532
- "User-Agent": "@airtop/sdk/0.1.16",
531
+ "X-Fern-SDK-Version": "0.1.18",
532
+ "User-Agent": "@airtop/sdk/0.1.18",
533
533
  "X-Fern-Runtime": core.RUNTIME.type,
534
534
  "X-Fern-Runtime-Version": core.RUNTIME.version,
535
535
  },
@@ -595,8 +595,8 @@ class Windows {
595
595
  Authorization: yield this._getAuthorizationHeader(),
596
596
  "X-Fern-Language": "JavaScript",
597
597
  "X-Fern-SDK-Name": "@airtop/sdk",
598
- "X-Fern-SDK-Version": "0.1.16",
599
- "User-Agent": "@airtop/sdk/0.1.16",
598
+ "X-Fern-SDK-Version": "0.1.18",
599
+ "User-Agent": "@airtop/sdk/0.1.18",
600
600
  "X-Fern-Runtime": core.RUNTIME.type,
601
601
  "X-Fern-Runtime-Version": core.RUNTIME.version,
602
602
  },
@@ -660,8 +660,8 @@ class Windows {
660
660
  Authorization: yield this._getAuthorizationHeader(),
661
661
  "X-Fern-Language": "JavaScript",
662
662
  "X-Fern-SDK-Name": "@airtop/sdk",
663
- "X-Fern-SDK-Version": "0.1.16",
664
- "User-Agent": "@airtop/sdk/0.1.16",
663
+ "X-Fern-SDK-Version": "0.1.18",
664
+ "User-Agent": "@airtop/sdk/0.1.18",
665
665
  "X-Fern-Runtime": core.RUNTIME.type,
666
666
  "X-Fern-Runtime-Version": core.RUNTIME.version,
667
667
  },
@@ -723,8 +723,8 @@ class Windows {
723
723
  Authorization: yield this._getAuthorizationHeader(),
724
724
  "X-Fern-Language": "JavaScript",
725
725
  "X-Fern-SDK-Name": "@airtop/sdk",
726
- "X-Fern-SDK-Version": "0.1.16",
727
- "User-Agent": "@airtop/sdk/0.1.16",
726
+ "X-Fern-SDK-Version": "0.1.18",
727
+ "User-Agent": "@airtop/sdk/0.1.18",
728
728
  "X-Fern-Runtime": core.RUNTIME.type,
729
729
  "X-Fern-Runtime-Version": core.RUNTIME.version,
730
730
  },
@@ -788,8 +788,8 @@ class Windows {
788
788
  Authorization: yield this._getAuthorizationHeader(),
789
789
  "X-Fern-Language": "JavaScript",
790
790
  "X-Fern-SDK-Name": "@airtop/sdk",
791
- "X-Fern-SDK-Version": "0.1.16",
792
- "User-Agent": "@airtop/sdk/0.1.16",
791
+ "X-Fern-SDK-Version": "0.1.18",
792
+ "User-Agent": "@airtop/sdk/0.1.18",
793
793
  "X-Fern-Runtime": core.RUNTIME.type,
794
794
  "X-Fern-Runtime-Version": core.RUNTIME.version,
795
795
  },
@@ -855,8 +855,8 @@ class Windows {
855
855
  Authorization: yield this._getAuthorizationHeader(),
856
856
  "X-Fern-Language": "JavaScript",
857
857
  "X-Fern-SDK-Name": "@airtop/sdk",
858
- "X-Fern-SDK-Version": "0.1.16",
859
- "User-Agent": "@airtop/sdk/0.1.16",
858
+ "X-Fern-SDK-Version": "0.1.18",
859
+ "User-Agent": "@airtop/sdk/0.1.18",
860
860
  "X-Fern-Runtime": core.RUNTIME.type,
861
861
  "X-Fern-Runtime-Version": core.RUNTIME.version,
862
862
  },
@@ -5,10 +5,6 @@ import * as Airtop from "../index";
5
5
  export interface SessionConfigV1 {
6
6
  /** Deprecated: Use profileName instead. */
7
7
  baseProfileId?: string;
8
- /** - */
9
- extensionConfigurationName?: string;
10
- /** - */
11
- extensionIds?: string[];
12
8
  /** Deprecated: use Save Profile On Termination API instead. */
13
9
  persistProfile?: boolean;
14
10
  /** Name of a profile to load into the session. */
@@ -84,8 +84,8 @@ class Profiles {
84
84
  Authorization: yield this._getAuthorizationHeader(),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "@airtop/sdk",
87
- "X-Fern-SDK-Version": "0.1.16",
88
- "User-Agent": "@airtop/sdk/0.1.16",
87
+ "X-Fern-SDK-Version": "0.1.18",
88
+ "User-Agent": "@airtop/sdk/0.1.18",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -81,9 +81,9 @@ export declare class Sessions {
81
81
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
82
82
  *
83
83
  * @example
84
- * await client.sessions.saveExtentionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
84
+ * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
85
85
  */
86
- saveExtentionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
86
+ saveExtensionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
87
87
  /**
88
88
  * @param {string} sessionId - ID of the session.
89
89
  * @param {string} profileName - Name under which to save the profile.
@@ -94,8 +94,8 @@ class Sessions {
94
94
  Authorization: yield this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "@airtop/sdk",
97
- "X-Fern-SDK-Version": "0.1.16",
98
- "User-Agent": "@airtop/sdk/0.1.16",
97
+ "X-Fern-SDK-Version": "0.1.18",
98
+ "User-Agent": "@airtop/sdk/0.1.18",
99
99
  "X-Fern-Runtime": core.RUNTIME.type,
100
100
  "X-Fern-Runtime-Version": core.RUNTIME.version,
101
101
  },
@@ -180,8 +180,8 @@ class Sessions {
180
180
  Authorization: yield this._getAuthorizationHeader(),
181
181
  "X-Fern-Language": "JavaScript",
182
182
  "X-Fern-SDK-Name": "@airtop/sdk",
183
- "X-Fern-SDK-Version": "0.1.16",
184
- "User-Agent": "@airtop/sdk/0.1.16",
183
+ "X-Fern-SDK-Version": "0.1.18",
184
+ "User-Agent": "@airtop/sdk/0.1.18",
185
185
  "X-Fern-Runtime": core.RUNTIME.type,
186
186
  "X-Fern-Runtime-Version": core.RUNTIME.version,
187
187
  },
@@ -245,8 +245,8 @@ class Sessions {
245
245
  Authorization: yield this._getAuthorizationHeader(),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "@airtop/sdk",
248
- "X-Fern-SDK-Version": "0.1.16",
249
- "User-Agent": "@airtop/sdk/0.1.16",
248
+ "X-Fern-SDK-Version": "0.1.18",
249
+ "User-Agent": "@airtop/sdk/0.1.18",
250
250
  "X-Fern-Runtime": core.RUNTIME.type,
251
251
  "X-Fern-Runtime-Version": core.RUNTIME.version,
252
252
  },
@@ -332,8 +332,8 @@ class Sessions {
332
332
  Authorization: yield this._getAuthorizationHeader(),
333
333
  "X-Fern-Language": "JavaScript",
334
334
  "X-Fern-SDK-Name": "@airtop/sdk",
335
- "X-Fern-SDK-Version": "0.1.16",
336
- "User-Agent": "@airtop/sdk/0.1.16",
335
+ "X-Fern-SDK-Version": "0.1.18",
336
+ "User-Agent": "@airtop/sdk/0.1.18",
337
337
  "X-Fern-Runtime": core.RUNTIME.type,
338
338
  "X-Fern-Runtime-Version": core.RUNTIME.version,
339
339
  },
@@ -388,8 +388,8 @@ class Sessions {
388
388
  Authorization: yield this._getAuthorizationHeader(),
389
389
  "X-Fern-Language": "JavaScript",
390
390
  "X-Fern-SDK-Name": "@airtop/sdk",
391
- "X-Fern-SDK-Version": "0.1.16",
392
- "User-Agent": "@airtop/sdk/0.1.16",
391
+ "X-Fern-SDK-Version": "0.1.18",
392
+ "User-Agent": "@airtop/sdk/0.1.18",
393
393
  "X-Fern-Runtime": core.RUNTIME.type,
394
394
  "X-Fern-Runtime-Version": core.RUNTIME.version,
395
395
  },
@@ -474,20 +474,20 @@ class Sessions {
474
474
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
475
475
  *
476
476
  * @example
477
- * await client.sessions.saveExtentionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
477
+ * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
478
478
  */
479
- saveExtentionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
479
+ saveExtensionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
480
480
  var _a, _b;
481
481
  return __awaiter(this, void 0, void 0, function* () {
482
482
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
483
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extention-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
483
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extension-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
484
484
  method: "PUT",
485
485
  headers: {
486
486
  Authorization: yield this._getAuthorizationHeader(),
487
487
  "X-Fern-Language": "JavaScript",
488
488
  "X-Fern-SDK-Name": "@airtop/sdk",
489
- "X-Fern-SDK-Version": "0.1.16",
490
- "User-Agent": "@airtop/sdk/0.1.16",
489
+ "X-Fern-SDK-Version": "0.1.18",
490
+ "User-Agent": "@airtop/sdk/0.1.18",
491
491
  "X-Fern-Runtime": core.RUNTIME.type,
492
492
  "X-Fern-Runtime-Version": core.RUNTIME.version,
493
493
  },
@@ -539,8 +539,8 @@ class Sessions {
539
539
  Authorization: yield this._getAuthorizationHeader(),
540
540
  "X-Fern-Language": "JavaScript",
541
541
  "X-Fern-SDK-Name": "@airtop/sdk",
542
- "X-Fern-SDK-Version": "0.1.16",
543
- "User-Agent": "@airtop/sdk/0.1.16",
542
+ "X-Fern-SDK-Version": "0.1.18",
543
+ "User-Agent": "@airtop/sdk/0.1.18",
544
544
  "X-Fern-Runtime": core.RUNTIME.type,
545
545
  "X-Fern-Runtime-Version": core.RUNTIME.version,
546
546
  },
@@ -5,11 +5,8 @@ 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 declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent;
8
+ export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
9
9
  export declare namespace SessionsEventsResponse {
10
- interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
11
- event: "sessionEvent";
12
- }
13
10
  interface Status extends Airtop.SessionsEventsResponseStatus {
14
11
  event: "status";
15
12
  }
@@ -19,4 +16,7 @@ export declare namespace SessionsEventsResponse {
19
16
  interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
20
17
  event: "windowEvent";
21
18
  }
19
+ interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
20
+ event: "sessionEvent";
21
+ }
22
22
  }
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseSessionEvent";
3
2
  export * from "./SessionsEventsResponseStatus";
4
3
  export * from "./SessionsEventsResponseError";
5
4
  export * from "./SessionsEventsResponseWindowEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ 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
18
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
20
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
21
20
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -68,8 +68,8 @@ class Windows {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "@airtop/sdk",
71
- "X-Fern-SDK-Version": "0.1.16",
72
- "User-Agent": "@airtop/sdk/0.1.16",
71
+ "X-Fern-SDK-Version": "0.1.18",
72
+ "User-Agent": "@airtop/sdk/0.1.18",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -144,8 +144,8 @@ class Windows {
144
144
  Authorization: yield this._getAuthorizationHeader(),
145
145
  "X-Fern-Language": "JavaScript",
146
146
  "X-Fern-SDK-Name": "@airtop/sdk",
147
- "X-Fern-SDK-Version": "0.1.16",
148
- "User-Agent": "@airtop/sdk/0.1.16",
147
+ "X-Fern-SDK-Version": "0.1.18",
148
+ "User-Agent": "@airtop/sdk/0.1.18",
149
149
  "X-Fern-Runtime": core.RUNTIME.type,
150
150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
151
151
  },
@@ -209,8 +209,8 @@ class Windows {
209
209
  Authorization: yield this._getAuthorizationHeader(),
210
210
  "X-Fern-Language": "JavaScript",
211
211
  "X-Fern-SDK-Name": "@airtop/sdk",
212
- "X-Fern-SDK-Version": "0.1.16",
213
- "User-Agent": "@airtop/sdk/0.1.16",
212
+ "X-Fern-SDK-Version": "0.1.18",
213
+ "User-Agent": "@airtop/sdk/0.1.18",
214
214
  "X-Fern-Runtime": core.RUNTIME.type,
215
215
  "X-Fern-Runtime-Version": core.RUNTIME.version,
216
216
  },
@@ -271,8 +271,8 @@ class Windows {
271
271
  Authorization: yield this._getAuthorizationHeader(),
272
272
  "X-Fern-Language": "JavaScript",
273
273
  "X-Fern-SDK-Name": "@airtop/sdk",
274
- "X-Fern-SDK-Version": "0.1.16",
275
- "User-Agent": "@airtop/sdk/0.1.16",
274
+ "X-Fern-SDK-Version": "0.1.18",
275
+ "User-Agent": "@airtop/sdk/0.1.18",
276
276
  "X-Fern-Runtime": core.RUNTIME.type,
277
277
  "X-Fern-Runtime-Version": core.RUNTIME.version,
278
278
  },
@@ -335,8 +335,8 @@ class Windows {
335
335
  Authorization: yield this._getAuthorizationHeader(),
336
336
  "X-Fern-Language": "JavaScript",
337
337
  "X-Fern-SDK-Name": "@airtop/sdk",
338
- "X-Fern-SDK-Version": "0.1.16",
339
- "User-Agent": "@airtop/sdk/0.1.16",
338
+ "X-Fern-SDK-Version": "0.1.18",
339
+ "User-Agent": "@airtop/sdk/0.1.18",
340
340
  "X-Fern-Runtime": core.RUNTIME.type,
341
341
  "X-Fern-Runtime-Version": core.RUNTIME.version,
342
342
  },
@@ -398,8 +398,8 @@ class Windows {
398
398
  Authorization: yield this._getAuthorizationHeader(),
399
399
  "X-Fern-Language": "JavaScript",
400
400
  "X-Fern-SDK-Name": "@airtop/sdk",
401
- "X-Fern-SDK-Version": "0.1.16",
402
- "User-Agent": "@airtop/sdk/0.1.16",
401
+ "X-Fern-SDK-Version": "0.1.18",
402
+ "User-Agent": "@airtop/sdk/0.1.18",
403
403
  "X-Fern-Runtime": core.RUNTIME.type,
404
404
  "X-Fern-Runtime-Version": core.RUNTIME.version,
405
405
  },
@@ -463,8 +463,8 @@ class Windows {
463
463
  Authorization: yield this._getAuthorizationHeader(),
464
464
  "X-Fern-Language": "JavaScript",
465
465
  "X-Fern-SDK-Name": "@airtop/sdk",
466
- "X-Fern-SDK-Version": "0.1.16",
467
- "User-Agent": "@airtop/sdk/0.1.16",
466
+ "X-Fern-SDK-Version": "0.1.18",
467
+ "User-Agent": "@airtop/sdk/0.1.18",
468
468
  "X-Fern-Runtime": core.RUNTIME.type,
469
469
  "X-Fern-Runtime-Version": core.RUNTIME.version,
470
470
  },
@@ -528,8 +528,8 @@ class Windows {
528
528
  Authorization: yield this._getAuthorizationHeader(),
529
529
  "X-Fern-Language": "JavaScript",
530
530
  "X-Fern-SDK-Name": "@airtop/sdk",
531
- "X-Fern-SDK-Version": "0.1.16",
532
- "User-Agent": "@airtop/sdk/0.1.16",
531
+ "X-Fern-SDK-Version": "0.1.18",
532
+ "User-Agent": "@airtop/sdk/0.1.18",
533
533
  "X-Fern-Runtime": core.RUNTIME.type,
534
534
  "X-Fern-Runtime-Version": core.RUNTIME.version,
535
535
  },
@@ -595,8 +595,8 @@ class Windows {
595
595
  Authorization: yield this._getAuthorizationHeader(),
596
596
  "X-Fern-Language": "JavaScript",
597
597
  "X-Fern-SDK-Name": "@airtop/sdk",
598
- "X-Fern-SDK-Version": "0.1.16",
599
- "User-Agent": "@airtop/sdk/0.1.16",
598
+ "X-Fern-SDK-Version": "0.1.18",
599
+ "User-Agent": "@airtop/sdk/0.1.18",
600
600
  "X-Fern-Runtime": core.RUNTIME.type,
601
601
  "X-Fern-Runtime-Version": core.RUNTIME.version,
602
602
  },
@@ -660,8 +660,8 @@ class Windows {
660
660
  Authorization: yield this._getAuthorizationHeader(),
661
661
  "X-Fern-Language": "JavaScript",
662
662
  "X-Fern-SDK-Name": "@airtop/sdk",
663
- "X-Fern-SDK-Version": "0.1.16",
664
- "User-Agent": "@airtop/sdk/0.1.16",
663
+ "X-Fern-SDK-Version": "0.1.18",
664
+ "User-Agent": "@airtop/sdk/0.1.18",
665
665
  "X-Fern-Runtime": core.RUNTIME.type,
666
666
  "X-Fern-Runtime-Version": core.RUNTIME.version,
667
667
  },
@@ -723,8 +723,8 @@ class Windows {
723
723
  Authorization: yield this._getAuthorizationHeader(),
724
724
  "X-Fern-Language": "JavaScript",
725
725
  "X-Fern-SDK-Name": "@airtop/sdk",
726
- "X-Fern-SDK-Version": "0.1.16",
727
- "User-Agent": "@airtop/sdk/0.1.16",
726
+ "X-Fern-SDK-Version": "0.1.18",
727
+ "User-Agent": "@airtop/sdk/0.1.18",
728
728
  "X-Fern-Runtime": core.RUNTIME.type,
729
729
  "X-Fern-Runtime-Version": core.RUNTIME.version,
730
730
  },
@@ -788,8 +788,8 @@ class Windows {
788
788
  Authorization: yield this._getAuthorizationHeader(),
789
789
  "X-Fern-Language": "JavaScript",
790
790
  "X-Fern-SDK-Name": "@airtop/sdk",
791
- "X-Fern-SDK-Version": "0.1.16",
792
- "User-Agent": "@airtop/sdk/0.1.16",
791
+ "X-Fern-SDK-Version": "0.1.18",
792
+ "User-Agent": "@airtop/sdk/0.1.18",
793
793
  "X-Fern-Runtime": core.RUNTIME.type,
794
794
  "X-Fern-Runtime-Version": core.RUNTIME.version,
795
795
  },
@@ -855,8 +855,8 @@ class Windows {
855
855
  Authorization: yield this._getAuthorizationHeader(),
856
856
  "X-Fern-Language": "JavaScript",
857
857
  "X-Fern-SDK-Name": "@airtop/sdk",
858
- "X-Fern-SDK-Version": "0.1.16",
859
- "User-Agent": "@airtop/sdk/0.1.16",
858
+ "X-Fern-SDK-Version": "0.1.18",
859
+ "User-Agent": "@airtop/sdk/0.1.18",
860
860
  "X-Fern-Runtime": core.RUNTIME.type,
861
861
  "X-Fern-Runtime-Version": core.RUNTIME.version,
862
862
  },
@@ -5,10 +5,6 @@ import * as Airtop from "../index";
5
5
  export interface SessionConfigV1 {
6
6
  /** Deprecated: Use profileName instead. */
7
7
  baseProfileId?: string;
8
- /** - */
9
- extensionConfigurationName?: string;
10
- /** - */
11
- extensionIds?: string[];
12
8
  /** Deprecated: use Save Profile On Termination API instead. */
13
9
  persistProfile?: boolean;
14
10
  /** Name of a profile to load into the session. */
@@ -4,16 +4,13 @@
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
7
  import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
9
8
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
10
9
  import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
10
+ import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
11
11
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
12
12
  export declare namespace SessionsEventsResponse {
13
- type Raw = SessionsEventsResponse.SessionEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent;
14
- interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
15
- event: "sessionEvent";
16
- }
13
+ type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent;
17
14
  interface Status extends SessionsEventsResponseStatus.Raw {
18
15
  event: "status";
19
16
  }
@@ -23,4 +20,7 @@ export declare namespace SessionsEventsResponse {
23
20
  interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
24
21
  event: "windowEvent";
25
22
  }
23
+ interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
24
+ event: "sessionEvent";
25
+ }
26
26
  }
@@ -28,16 +28,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SessionsEventsResponse = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
32
31
  const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
33
32
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
34
33
  const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
34
+ const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
35
35
  exports.SessionsEventsResponse = core.serialization
36
36
  .union("event", {
37
- sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
38
37
  status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
39
38
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
40
39
  windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
40
+ sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
41
41
  })
42
42
  .transform({
43
43
  transform: (value) => value,
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseSessionEvent";
3
2
  export * from "./SessionsEventsResponseStatus";
4
3
  export * from "./SessionsEventsResponseError";
5
4
  export * from "./SessionsEventsResponseWindowEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ 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
18
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
20
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
21
20
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -9,8 +9,6 @@ export declare const SessionConfigV1: core.serialization.ObjectSchema<serializer
9
9
  export declare namespace SessionConfigV1 {
10
10
  interface Raw {
11
11
  baseProfileId?: string | null;
12
- extensionConfigurationName?: string | null;
13
- extensionIds?: string[] | null;
14
12
  persistProfile?: boolean | null;
15
13
  profileName?: string | null;
16
14
  proxy?: SessionConfigV1Proxy.Raw | null;
@@ -31,8 +31,6 @@ const core = __importStar(require("../../core"));
31
31
  const SessionConfigV1Proxy_1 = require("./SessionConfigV1Proxy");
32
32
  exports.SessionConfigV1 = core.serialization.object({
33
33
  baseProfileId: core.serialization.string().optional(),
34
- extensionConfigurationName: core.serialization.string().optional(),
35
- extensionIds: core.serialization.list(core.serialization.string()).optional(),
36
34
  persistProfile: core.serialization.boolean().optional(),
37
35
  profileName: core.serialization.string().optional(),
38
36
  proxy: SessionConfigV1Proxy_1.SessionConfigV1Proxy.optional(),
@@ -114,6 +114,18 @@ export declare class AirtopWindows extends WindowsClass {
114
114
  * })
115
115
  */
116
116
  type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
117
+ /**
118
+ * Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
119
+ *
120
+ * @param {string} sessionId - The session id for the window.
121
+ * @param {string} windowId - The Airtop window id of the browser window.
122
+ * @param {Airtop.SessionPaginatedExtractionHandlerRequestBody} request
123
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @example
126
+ * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
127
+ */
128
+ paginatedExtraction(sessionId: string, windowId: string, request?: Airtop.SessionPaginatedExtractionHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
117
129
  private executeSeleniumCDPCommand;
118
130
  getWindowInfoForSeleniumDriver(session: Airtop.ExternalSessionWithConnectionInfo, driver: seleniumWebdriver.WebDriver, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
119
131
  }
@@ -190,6 +190,25 @@ class AirtopWindows extends Client_1.Windows {
190
190
  return _super.type.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
191
191
  });
192
192
  }
193
+ /**
194
+ * Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
195
+ *
196
+ * @param {string} sessionId - The session id for the window.
197
+ * @param {string} windowId - The Airtop window id of the browser window.
198
+ * @param {Airtop.SessionPaginatedExtractionHandlerRequestBody} request
199
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
200
+ *
201
+ * @example
202
+ * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
203
+ */
204
+ paginatedExtraction(sessionId, windowId, request = {}, requestOptions) {
205
+ const _super = Object.create(null, {
206
+ paginatedExtraction: { get: () => super.paginatedExtraction }
207
+ });
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ return _super.paginatedExtraction.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
210
+ });
211
+ }
193
212
  executeSeleniumCDPCommand(driver, session, apiKey) {
194
213
  return __awaiter(this, void 0, void 0, function* () {
195
214
  // Get the current WebDriver session ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1335,7 +1335,7 @@ await client.sessions.terminate("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
1335
1335
  </dl>
1336
1336
  </details>
1337
1337
 
1338
- <details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">saveExtentionConfigurationOnTermination</a>(sessionId, extensionConfigurationName) -> void</code></summary>
1338
+ <details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">saveExtensionConfigurationOnTermination</a>(sessionId, extensionConfigurationName) -> void</code></summary>
1339
1339
  <dl>
1340
1340
  <dd>
1341
1341
 
@@ -1348,7 +1348,7 @@ await client.sessions.terminate("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
1348
1348
  <dd>
1349
1349
 
1350
1350
  ```typescript
1351
- await client.sessions.saveExtentionConfigurationOnTermination(
1351
+ await client.sessions.saveExtensionConfigurationOnTermination(
1352
1352
  "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
1353
1353
  "myExtensionConfiguration"
1354
1354
  );
@@ -4,16 +4,13 @@
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
7
  import { SessionsEventsResponseStatus } from "./SessionsEventsResponseStatus";
9
8
  import { SessionsEventsResponseError } from "./SessionsEventsResponseError";
10
9
  import { SessionsEventsResponseWindowEvent } from "./SessionsEventsResponseWindowEvent";
10
+ import { SessionsEventsResponseSessionEvent } from "./SessionsEventsResponseSessionEvent";
11
11
  export declare const SessionsEventsResponse: core.serialization.Schema<serializers.SessionsEventsResponse.Raw, Airtop.SessionsEventsResponse>;
12
12
  export declare namespace SessionsEventsResponse {
13
- type Raw = SessionsEventsResponse.SessionEvent | SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent;
14
- interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
15
- event: "sessionEvent";
16
- }
13
+ type Raw = SessionsEventsResponse.Status | SessionsEventsResponse.Error | SessionsEventsResponse.WindowEvent | SessionsEventsResponse.SessionEvent;
17
14
  interface Status extends SessionsEventsResponseStatus.Raw {
18
15
  event: "status";
19
16
  }
@@ -23,4 +20,7 @@ export declare namespace SessionsEventsResponse {
23
20
  interface WindowEvent extends SessionsEventsResponseWindowEvent.Raw {
24
21
  event: "windowEvent";
25
22
  }
23
+ interface SessionEvent extends SessionsEventsResponseSessionEvent.Raw {
24
+ event: "sessionEvent";
25
+ }
26
26
  }
@@ -28,16 +28,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SessionsEventsResponse = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
32
31
  const SessionsEventsResponseStatus_1 = require("./SessionsEventsResponseStatus");
33
32
  const SessionsEventsResponseError_1 = require("./SessionsEventsResponseError");
34
33
  const SessionsEventsResponseWindowEvent_1 = require("./SessionsEventsResponseWindowEvent");
34
+ const SessionsEventsResponseSessionEvent_1 = require("./SessionsEventsResponseSessionEvent");
35
35
  exports.SessionsEventsResponse = core.serialization
36
36
  .union("event", {
37
- sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
38
37
  status: SessionsEventsResponseStatus_1.SessionsEventsResponseStatus,
39
38
  error: SessionsEventsResponseError_1.SessionsEventsResponseError,
40
39
  windowEvent: SessionsEventsResponseWindowEvent_1.SessionsEventsResponseWindowEvent,
40
+ sessionEvent: SessionsEventsResponseSessionEvent_1.SessionsEventsResponseSessionEvent,
41
41
  })
42
42
  .transform({
43
43
  transform: (value) => value,
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseSessionEvent";
3
2
  export * from "./SessionsEventsResponseStatus";
4
3
  export * from "./SessionsEventsResponseError";
5
4
  export * from "./SessionsEventsResponseWindowEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ 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
18
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
20
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
21
20
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -9,8 +9,6 @@ export declare const SessionConfigV1: core.serialization.ObjectSchema<serializer
9
9
  export declare namespace SessionConfigV1 {
10
10
  interface Raw {
11
11
  baseProfileId?: string | null;
12
- extensionConfigurationName?: string | null;
13
- extensionIds?: string[] | null;
14
12
  persistProfile?: boolean | null;
15
13
  profileName?: string | null;
16
14
  proxy?: SessionConfigV1Proxy.Raw | null;
@@ -31,8 +31,6 @@ const core = __importStar(require("../../core"));
31
31
  const SessionConfigV1Proxy_1 = require("./SessionConfigV1Proxy");
32
32
  exports.SessionConfigV1 = core.serialization.object({
33
33
  baseProfileId: core.serialization.string().optional(),
34
- extensionConfigurationName: core.serialization.string().optional(),
35
- extensionIds: core.serialization.list(core.serialization.string()).optional(),
36
34
  persistProfile: core.serialization.boolean().optional(),
37
35
  profileName: core.serialization.string().optional(),
38
36
  proxy: SessionConfigV1Proxy_1.SessionConfigV1Proxy.optional(),
@@ -114,6 +114,18 @@ export declare class AirtopWindows extends WindowsClass {
114
114
  * })
115
115
  */
116
116
  type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
117
+ /**
118
+ * Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
119
+ *
120
+ * @param {string} sessionId - The session id for the window.
121
+ * @param {string} windowId - The Airtop window id of the browser window.
122
+ * @param {Airtop.SessionPaginatedExtractionHandlerRequestBody} request
123
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @example
126
+ * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
127
+ */
128
+ paginatedExtraction(sessionId: string, windowId: string, request?: Airtop.SessionPaginatedExtractionHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
117
129
  private executeSeleniumCDPCommand;
118
130
  getWindowInfoForSeleniumDriver(session: Airtop.ExternalSessionWithConnectionInfo, driver: seleniumWebdriver.WebDriver, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
119
131
  }
@@ -190,6 +190,25 @@ class AirtopWindows extends Client_1.Windows {
190
190
  return _super.type.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
191
191
  });
192
192
  }
193
+ /**
194
+ * Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
195
+ *
196
+ * @param {string} sessionId - The session id for the window.
197
+ * @param {string} windowId - The Airtop window id of the browser window.
198
+ * @param {Airtop.SessionPaginatedExtractionHandlerRequestBody} request
199
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
200
+ *
201
+ * @example
202
+ * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
203
+ */
204
+ paginatedExtraction(sessionId, windowId, request = {}, requestOptions) {
205
+ const _super = Object.create(null, {
206
+ paginatedExtraction: { get: () => super.paginatedExtraction }
207
+ });
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ return _super.paginatedExtraction.call(this, sessionId, windowId, request, Object.assign(Object.assign({ timeoutInSeconds: 600 }, requestOptions), { maxRetries: 0 }));
210
+ });
211
+ }
193
212
  executeSeleniumCDPCommand(driver, session, apiKey) {
194
213
  return __awaiter(this, void 0, void 0, function* () {
195
214
  // Get the current WebDriver session ID