@airtop/sdk 0.1.0 → 0.1.1

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 (178) hide show
  1. package/api/resources/index.d.ts +2 -1
  2. package/api/resources/index.js +3 -2
  3. package/api/resources/profiles/client/Client.js +4 -4
  4. package/api/resources/sessions/client/Client.js +10 -10
  5. package/api/resources/windows/client/Client.d.ts +30 -0
  6. package/api/resources/windows/client/Client.js +191 -9
  7. package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +16 -0
  8. package/api/resources/windows/client/requests/CreateWindowInputV1Body.js +5 -0
  9. package/api/resources/windows/client/requests/PromptContentRequest.d.ts +3 -0
  10. package/api/resources/windows/client/requests/SummarizeContentRequest.d.ts +3 -0
  11. package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +16 -0
  12. package/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +5 -0
  13. package/api/resources/windows/client/requests/index.d.ts +2 -0
  14. package/api/resources/windows/index.d.ts +1 -0
  15. package/api/resources/windows/index.js +1 -0
  16. package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +11 -0
  17. package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +10 -0
  18. package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +11 -0
  19. package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +10 -0
  20. package/api/resources/windows/types/index.d.ts +2 -0
  21. package/api/resources/windows/types/index.js +18 -0
  22. package/api/types/EmptyResponse.d.ts +10 -0
  23. package/api/types/EmptyResponse.js +5 -0
  24. package/api/types/EmptyResponseJson.d.ts +7 -0
  25. package/api/types/EmptyResponseJson.js +5 -0
  26. package/api/types/EnvelopeStatusDefaultMeta.d.ts +8 -0
  27. package/api/types/EnvelopeStatusDefaultMeta.js +5 -0
  28. package/api/types/EnvelopeStatusDefaultMetaStatus.d.ts +9 -0
  29. package/api/types/EnvelopeStatusDefaultMetaStatus.js +11 -0
  30. package/api/types/PromptContentConfig.d.ts +8 -0
  31. package/api/types/PromptContentConfig.js +5 -0
  32. package/api/types/PromptContentExperimentalConfig.d.ts +7 -0
  33. package/api/types/PromptContentExperimentalConfig.js +5 -0
  34. package/api/types/SummaryConfig.d.ts +7 -0
  35. package/api/types/SummaryConfig.js +5 -0
  36. package/api/types/SummaryExperimentalConfig.d.ts +7 -0
  37. package/api/types/SummaryExperimentalConfig.js +5 -0
  38. package/api/types/WindowId.d.ts +9 -0
  39. package/api/types/WindowId.js +5 -0
  40. package/api/types/WindowIdResponse.d.ts +10 -0
  41. package/api/types/WindowIdResponse.js +5 -0
  42. package/api/types/index.d.ts +10 -0
  43. package/api/types/index.js +10 -0
  44. package/dist/api/resources/index.d.ts +2 -1
  45. package/dist/api/resources/index.js +3 -2
  46. package/dist/api/resources/profiles/client/Client.js +4 -4
  47. package/dist/api/resources/sessions/client/Client.js +10 -10
  48. package/dist/api/resources/windows/client/Client.d.ts +30 -0
  49. package/dist/api/resources/windows/client/Client.js +191 -9
  50. package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +16 -0
  51. package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.js +5 -0
  52. package/dist/api/resources/windows/client/requests/PromptContentRequest.d.ts +3 -0
  53. package/dist/api/resources/windows/client/requests/SummarizeContentRequest.d.ts +3 -0
  54. package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +16 -0
  55. package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +5 -0
  56. package/dist/api/resources/windows/client/requests/index.d.ts +2 -0
  57. package/dist/api/resources/windows/index.d.ts +1 -0
  58. package/dist/api/resources/windows/index.js +1 -0
  59. package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +11 -0
  60. package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +10 -0
  61. package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +11 -0
  62. package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +10 -0
  63. package/dist/api/resources/windows/types/index.d.ts +2 -0
  64. package/dist/api/resources/windows/types/index.js +18 -0
  65. package/dist/api/types/EmptyResponse.d.ts +10 -0
  66. package/dist/api/types/EmptyResponse.js +5 -0
  67. package/dist/api/types/EmptyResponseJson.d.ts +7 -0
  68. package/dist/api/types/EmptyResponseJson.js +5 -0
  69. package/dist/api/types/EnvelopeStatusDefaultMeta.d.ts +8 -0
  70. package/dist/api/types/EnvelopeStatusDefaultMeta.js +5 -0
  71. package/dist/api/types/EnvelopeStatusDefaultMetaStatus.d.ts +9 -0
  72. package/dist/api/types/EnvelopeStatusDefaultMetaStatus.js +11 -0
  73. package/dist/api/types/PromptContentConfig.d.ts +8 -0
  74. package/dist/api/types/PromptContentConfig.js +5 -0
  75. package/dist/api/types/PromptContentExperimentalConfig.d.ts +7 -0
  76. package/dist/api/types/PromptContentExperimentalConfig.js +5 -0
  77. package/dist/api/types/SummaryConfig.d.ts +7 -0
  78. package/dist/api/types/SummaryConfig.js +5 -0
  79. package/dist/api/types/SummaryExperimentalConfig.d.ts +7 -0
  80. package/dist/api/types/SummaryExperimentalConfig.js +5 -0
  81. package/dist/api/types/WindowId.d.ts +9 -0
  82. package/dist/api/types/WindowId.js +5 -0
  83. package/dist/api/types/WindowIdResponse.d.ts +10 -0
  84. package/dist/api/types/WindowIdResponse.js +5 -0
  85. package/dist/api/types/index.d.ts +10 -0
  86. package/dist/api/types/index.js +10 -0
  87. package/dist/index.js +1 -0
  88. package/dist/serialization/resources/index.d.ts +2 -1
  89. package/dist/serialization/resources/index.js +2 -1
  90. package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +15 -0
  91. package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +36 -0
  92. package/dist/serialization/resources/windows/client/requests/PromptContentRequest.d.ts +2 -0
  93. package/dist/serialization/resources/windows/client/requests/PromptContentRequest.js +2 -0
  94. package/dist/serialization/resources/windows/client/requests/SummarizeContentRequest.d.ts +2 -0
  95. package/dist/serialization/resources/windows/client/requests/SummarizeContentRequest.js +2 -0
  96. package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +14 -0
  97. package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +35 -0
  98. package/dist/serialization/resources/windows/client/requests/index.d.ts +2 -0
  99. package/dist/serialization/resources/windows/client/requests/index.js +5 -1
  100. package/dist/serialization/resources/windows/index.d.ts +1 -0
  101. package/dist/serialization/resources/windows/index.js +1 -0
  102. package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +10 -0
  103. package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +31 -0
  104. package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +10 -0
  105. package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +31 -0
  106. package/dist/serialization/resources/windows/types/index.d.ts +2 -0
  107. package/dist/serialization/resources/windows/types/index.js +18 -0
  108. package/dist/serialization/types/EmptyResponse.d.ts +18 -0
  109. package/dist/serialization/types/EmptyResponse.js +39 -0
  110. package/dist/serialization/types/EmptyResponseJson.d.ts +12 -0
  111. package/dist/serialization/types/EmptyResponseJson.js +33 -0
  112. package/dist/serialization/types/EnvelopeStatusDefaultMeta.d.ts +14 -0
  113. package/dist/serialization/types/EnvelopeStatusDefaultMeta.js +35 -0
  114. package/dist/serialization/types/EnvelopeStatusDefaultMetaStatus.d.ts +10 -0
  115. package/dist/serialization/types/EnvelopeStatusDefaultMetaStatus.js +31 -0
  116. package/dist/serialization/types/PromptContentConfig.d.ts +13 -0
  117. package/dist/serialization/types/PromptContentConfig.js +34 -0
  118. package/dist/serialization/types/PromptContentExperimentalConfig.d.ts +12 -0
  119. package/dist/serialization/types/PromptContentExperimentalConfig.js +33 -0
  120. package/dist/serialization/types/SummaryConfig.d.ts +13 -0
  121. package/dist/serialization/types/SummaryConfig.js +34 -0
  122. package/dist/serialization/types/SummaryExperimentalConfig.d.ts +12 -0
  123. package/dist/serialization/types/SummaryExperimentalConfig.js +33 -0
  124. package/dist/serialization/types/WindowId.d.ts +13 -0
  125. package/dist/serialization/types/WindowId.js +34 -0
  126. package/dist/serialization/types/WindowIdResponse.d.ts +18 -0
  127. package/dist/serialization/types/WindowIdResponse.js +39 -0
  128. package/dist/serialization/types/index.d.ts +10 -0
  129. package/dist/serialization/types/index.js +10 -0
  130. package/dist/wrapper/AirtopWindows.d.ts +3 -0
  131. package/dist/wrapper/AirtopWindows.js +15 -0
  132. package/index.js +1 -0
  133. package/package.json +1 -1
  134. package/reference.md +178 -0
  135. package/serialization/resources/index.d.ts +2 -1
  136. package/serialization/resources/index.js +2 -1
  137. package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +15 -0
  138. package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +36 -0
  139. package/serialization/resources/windows/client/requests/PromptContentRequest.d.ts +2 -0
  140. package/serialization/resources/windows/client/requests/PromptContentRequest.js +2 -0
  141. package/serialization/resources/windows/client/requests/SummarizeContentRequest.d.ts +2 -0
  142. package/serialization/resources/windows/client/requests/SummarizeContentRequest.js +2 -0
  143. package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +14 -0
  144. package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +35 -0
  145. package/serialization/resources/windows/client/requests/index.d.ts +2 -0
  146. package/serialization/resources/windows/client/requests/index.js +5 -1
  147. package/serialization/resources/windows/index.d.ts +1 -0
  148. package/serialization/resources/windows/index.js +1 -0
  149. package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +10 -0
  150. package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +31 -0
  151. package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +10 -0
  152. package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +31 -0
  153. package/serialization/resources/windows/types/index.d.ts +2 -0
  154. package/serialization/resources/windows/types/index.js +18 -0
  155. package/serialization/types/EmptyResponse.d.ts +18 -0
  156. package/serialization/types/EmptyResponse.js +39 -0
  157. package/serialization/types/EmptyResponseJson.d.ts +12 -0
  158. package/serialization/types/EmptyResponseJson.js +33 -0
  159. package/serialization/types/EnvelopeStatusDefaultMeta.d.ts +14 -0
  160. package/serialization/types/EnvelopeStatusDefaultMeta.js +35 -0
  161. package/serialization/types/EnvelopeStatusDefaultMetaStatus.d.ts +10 -0
  162. package/serialization/types/EnvelopeStatusDefaultMetaStatus.js +31 -0
  163. package/serialization/types/PromptContentConfig.d.ts +13 -0
  164. package/serialization/types/PromptContentConfig.js +34 -0
  165. package/serialization/types/PromptContentExperimentalConfig.d.ts +12 -0
  166. package/serialization/types/PromptContentExperimentalConfig.js +33 -0
  167. package/serialization/types/SummaryConfig.d.ts +13 -0
  168. package/serialization/types/SummaryConfig.js +34 -0
  169. package/serialization/types/SummaryExperimentalConfig.d.ts +12 -0
  170. package/serialization/types/SummaryExperimentalConfig.js +33 -0
  171. package/serialization/types/WindowId.d.ts +13 -0
  172. package/serialization/types/WindowId.js +34 -0
  173. package/serialization/types/WindowIdResponse.d.ts +18 -0
  174. package/serialization/types/WindowIdResponse.js +39 -0
  175. package/serialization/types/index.d.ts +10 -0
  176. package/serialization/types/index.js +10 -0
  177. package/wrapper/AirtopWindows.d.ts +3 -0
  178. package/wrapper/AirtopWindows.js +15 -0
@@ -44,6 +44,21 @@ class AirtopWindows {
44
44
  this.apiKeySupplier = apiKeySupplier;
45
45
  this._windows = airtopClient.windows;
46
46
  }
47
+ create(sessionId, request, requestOptions) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ return this._windows.create(sessionId, request, requestOptions);
50
+ });
51
+ }
52
+ loadUrl(sessionId, windowId, request, requestOptions) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return this._windows.loadUrl(sessionId, windowId, request, requestOptions);
55
+ });
56
+ }
57
+ close(sessionId, windowId, requestOptions) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ return this._windows.close(sessionId, windowId, requestOptions);
60
+ });
61
+ }
47
62
  getWindowInfo(sessionId, windowId, request, requestOptions) {
48
63
  return __awaiter(this, void 0, void 0, function* () {
49
64
  return this._windows.getWindowInfo(sessionId, windowId, request, requestOptions);
package/index.js CHANGED
@@ -35,3 +35,4 @@ var AirtopClient_1 = require("./wrapper/AirtopClient");
35
35
  Object.defineProperty(exports, "AirtopClient", { enumerable: true, get: function () { return AirtopClient_1.AirtopClient; } });
36
36
  var types_1 = require("./live-view/types");
37
37
  Object.defineProperty(exports, "LiveViewEventName", { enumerable: true, get: function () { return types_1.LiveViewEventName; } });
38
+ console.log('loading airtop sdk');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -435,6 +435,62 @@ await client.sessions.events("string");
435
435
 
436
436
  ## Windows
437
437
 
438
+ <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">create</a>(sessionId, { ...params }) -> Airtop.WindowIdResponse</code></summary>
439
+ <dl>
440
+ <dd>
441
+
442
+ #### 🔌 Usage
443
+
444
+ <dl>
445
+ <dd>
446
+
447
+ <dl>
448
+ <dd>
449
+
450
+ ```typescript
451
+ await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
452
+ ```
453
+
454
+ </dd>
455
+ </dl>
456
+ </dd>
457
+ </dl>
458
+
459
+ #### ⚙️ Parameters
460
+
461
+ <dl>
462
+ <dd>
463
+
464
+ <dl>
465
+ <dd>
466
+
467
+ **sessionId:** `string` — ID of the session that owns the window.
468
+
469
+ </dd>
470
+ </dl>
471
+
472
+ <dl>
473
+ <dd>
474
+
475
+ **request:** `Airtop.CreateWindowInputV1Body`
476
+
477
+ </dd>
478
+ </dl>
479
+
480
+ <dl>
481
+ <dd>
482
+
483
+ **requestOptions:** `Windows.RequestOptions`
484
+
485
+ </dd>
486
+ </dl>
487
+ </dd>
488
+ </dl>
489
+
490
+ </dd>
491
+ </dl>
492
+ </details>
493
+
438
494
  <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">getWindowInfo</a>(sessionId, windowId, { ...params }) -> Airtop.WindowResponse</code></summary>
439
495
  <dl>
440
496
  <dd>
@@ -501,6 +557,128 @@ await client.windows.getWindowInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334
501
557
  </dl>
502
558
  </details>
503
559
 
560
+ <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">loadUrl</a>(sessionId, windowId, { ...params }) -> Airtop.EmptyResponse</code></summary>
561
+ <dl>
562
+ <dd>
563
+
564
+ #### 🔌 Usage
565
+
566
+ <dl>
567
+ <dd>
568
+
569
+ <dl>
570
+ <dd>
571
+
572
+ ```typescript
573
+ await client.windows.loadUrl("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
574
+ url: "https://www.airtop.ai",
575
+ });
576
+ ```
577
+
578
+ </dd>
579
+ </dl>
580
+ </dd>
581
+ </dl>
582
+
583
+ #### ⚙️ Parameters
584
+
585
+ <dl>
586
+ <dd>
587
+
588
+ <dl>
589
+ <dd>
590
+
591
+ **sessionId:** `string` — ID of the session that owns the window.
592
+
593
+ </dd>
594
+ </dl>
595
+
596
+ <dl>
597
+ <dd>
598
+
599
+ **windowId:** `string` — Airtop window ID of the browser window.
600
+
601
+ </dd>
602
+ </dl>
603
+
604
+ <dl>
605
+ <dd>
606
+
607
+ **request:** `Airtop.WindowLoadUrlV1Body`
608
+
609
+ </dd>
610
+ </dl>
611
+
612
+ <dl>
613
+ <dd>
614
+
615
+ **requestOptions:** `Windows.RequestOptions`
616
+
617
+ </dd>
618
+ </dl>
619
+ </dd>
620
+ </dl>
621
+
622
+ </dd>
623
+ </dl>
624
+ </details>
625
+
626
+ <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">close</a>(sessionId, windowId) -> Airtop.WindowIdResponse</code></summary>
627
+ <dl>
628
+ <dd>
629
+
630
+ #### 🔌 Usage
631
+
632
+ <dl>
633
+ <dd>
634
+
635
+ <dl>
636
+ <dd>
637
+
638
+ ```typescript
639
+ await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430");
640
+ ```
641
+
642
+ </dd>
643
+ </dl>
644
+ </dd>
645
+ </dl>
646
+
647
+ #### ⚙️ Parameters
648
+
649
+ <dl>
650
+ <dd>
651
+
652
+ <dl>
653
+ <dd>
654
+
655
+ **sessionId:** `string` — ID of the session that owns the window.
656
+
657
+ </dd>
658
+ </dl>
659
+
660
+ <dl>
661
+ <dd>
662
+
663
+ **windowId:** `string` — Airtop window ID of the browser window.
664
+
665
+ </dd>
666
+ </dl>
667
+
668
+ <dl>
669
+ <dd>
670
+
671
+ **requestOptions:** `Windows.RequestOptions`
672
+
673
+ </dd>
674
+ </dl>
675
+ </dd>
676
+ </dl>
677
+
678
+ </dd>
679
+ </dl>
680
+ </details>
681
+
504
682
  <details><summary><code>client.windows.<a href="/src/api/resources/windows/client/Client.ts">promptContent</a>(sessionId, windowId, { ...params }) -> Airtop.AiPromptResponse</code></summary>
505
683
  <dl>
506
684
  <dd>
@@ -1,5 +1,6 @@
1
1
  export * as sessions from "./sessions";
2
2
  export * from "./sessions/types";
3
- export * from "./sessions/client/requests";
4
3
  export * as windows from "./windows";
4
+ export * from "./windows/types";
5
+ export * from "./sessions/client/requests";
5
6
  export * from "./windows/client/requests";
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.windows = exports.sessions = void 0;
30
30
  exports.sessions = __importStar(require("./sessions"));
31
31
  __exportStar(require("./sessions/types"), exports);
32
- __exportStar(require("./sessions/client/requests"), exports);
33
32
  exports.windows = __importStar(require("./windows"));
33
+ __exportStar(require("./windows/types"), exports);
34
+ __exportStar(require("./sessions/client/requests"), exports);
34
35
  __exportStar(require("./windows/client/requests"), exports);
@@ -0,0 +1,15 @@
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 { CreateWindowInputV1BodyWaitUntil } from "../../types/CreateWindowInputV1BodyWaitUntil";
8
+ export declare const CreateWindowInputV1Body: core.serialization.Schema<serializers.CreateWindowInputV1Body.Raw, Airtop.CreateWindowInputV1Body>;
9
+ export declare namespace CreateWindowInputV1Body {
10
+ interface Raw {
11
+ screenResolution?: string | null;
12
+ url?: string | null;
13
+ waitUntil?: CreateWindowInputV1BodyWaitUntil.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CreateWindowInputV1Body = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const CreateWindowInputV1BodyWaitUntil_1 = require("../../types/CreateWindowInputV1BodyWaitUntil");
32
+ exports.CreateWindowInputV1Body = core.serialization.object({
33
+ screenResolution: core.serialization.string().optional(),
34
+ url: core.serialization.string().optional(),
35
+ waitUntil: CreateWindowInputV1BodyWaitUntil_1.CreateWindowInputV1BodyWaitUntil.optional(),
36
+ });
@@ -4,10 +4,12 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Airtop from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { PromptContentConfig } from "../../../../types/PromptContentConfig";
7
8
  export declare const PromptContentRequest: core.serialization.Schema<serializers.PromptContentRequest.Raw, Airtop.PromptContentRequest>;
8
9
  export declare namespace PromptContentRequest {
9
10
  interface Raw {
10
11
  clientRequestId?: string | null;
12
+ configuration?: PromptContentConfig.Raw | null;
11
13
  costThresholdCredits?: number | null;
12
14
  followPaginationLinks?: boolean | null;
13
15
  prompt: string;
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PromptContentRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const PromptContentConfig_1 = require("../../../../types/PromptContentConfig");
31
32
  exports.PromptContentRequest = core.serialization.object({
32
33
  clientRequestId: core.serialization.string().optional(),
34
+ configuration: PromptContentConfig_1.PromptContentConfig.optional(),
33
35
  costThresholdCredits: core.serialization.number().optional(),
34
36
  followPaginationLinks: core.serialization.boolean().optional(),
35
37
  prompt: core.serialization.string(),
@@ -4,10 +4,12 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Airtop from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { SummaryConfig } from "../../../../types/SummaryConfig";
7
8
  export declare const SummarizeContentRequest: core.serialization.Schema<serializers.SummarizeContentRequest.Raw, Airtop.SummarizeContentRequest>;
8
9
  export declare namespace SummarizeContentRequest {
9
10
  interface Raw {
10
11
  clientRequestId?: string | null;
12
+ configuration?: SummaryConfig.Raw | null;
11
13
  costThresholdCredits?: number | null;
12
14
  prompt?: string | null;
13
15
  timeThresholdSeconds?: number | null;
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SummarizeContentRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const SummaryConfig_1 = require("../../../../types/SummaryConfig");
31
32
  exports.SummarizeContentRequest = core.serialization.object({
32
33
  clientRequestId: core.serialization.string().optional(),
34
+ configuration: SummaryConfig_1.SummaryConfig.optional(),
33
35
  costThresholdCredits: core.serialization.number().optional(),
34
36
  prompt: core.serialization.string().optional(),
35
37
  timeThresholdSeconds: core.serialization.number().optional(),
@@ -0,0 +1,14 @@
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 { WindowLoadUrlV1BodyWaitUntil } from "../../types/WindowLoadUrlV1BodyWaitUntil";
8
+ export declare const WindowLoadUrlV1Body: core.serialization.Schema<serializers.WindowLoadUrlV1Body.Raw, Airtop.WindowLoadUrlV1Body>;
9
+ export declare namespace WindowLoadUrlV1Body {
10
+ interface Raw {
11
+ url: string;
12
+ waitUntil?: WindowLoadUrlV1BodyWaitUntil.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WindowLoadUrlV1Body = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const WindowLoadUrlV1BodyWaitUntil_1 = require("../../types/WindowLoadUrlV1BodyWaitUntil");
32
+ exports.WindowLoadUrlV1Body = core.serialization.object({
33
+ url: core.serialization.string(),
34
+ waitUntil: WindowLoadUrlV1BodyWaitUntil_1.WindowLoadUrlV1BodyWaitUntil.optional(),
35
+ });
@@ -1,3 +1,5 @@
1
+ export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
2
+ export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
1
3
  export { PromptContentRequest } from "./PromptContentRequest";
2
4
  export { ScrapeContentRequest } from "./ScrapeContentRequest";
3
5
  export { SummarizeContentRequest } from "./SummarizeContentRequest";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SummarizeContentRequest = exports.ScrapeContentRequest = exports.PromptContentRequest = void 0;
3
+ exports.SummarizeContentRequest = exports.ScrapeContentRequest = exports.PromptContentRequest = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
4
+ var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
5
+ Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
6
+ var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
7
+ Object.defineProperty(exports, "WindowLoadUrlV1Body", { enumerable: true, get: function () { return WindowLoadUrlV1Body_1.WindowLoadUrlV1Body; } });
4
8
  var PromptContentRequest_1 = require("./PromptContentRequest");
5
9
  Object.defineProperty(exports, "PromptContentRequest", { enumerable: true, get: function () { return PromptContentRequest_1.PromptContentRequest; } });
6
10
  var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -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 CreateWindowInputV1BodyWaitUntil: core.serialization.Schema<serializers.CreateWindowInputV1BodyWaitUntil.Raw, Airtop.CreateWindowInputV1BodyWaitUntil>;
8
+ export declare namespace CreateWindowInputV1BodyWaitUntil {
9
+ type Raw = "load" | "domContentLoaded";
10
+ }
@@ -0,0 +1,31 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CreateWindowInputV1BodyWaitUntil = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.CreateWindowInputV1BodyWaitUntil = core.serialization.enum_(["load", "domContentLoaded"]);
@@ -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 WindowLoadUrlV1BodyWaitUntil: core.serialization.Schema<serializers.WindowLoadUrlV1BodyWaitUntil.Raw, Airtop.WindowLoadUrlV1BodyWaitUntil>;
8
+ export declare namespace WindowLoadUrlV1BodyWaitUntil {
9
+ type Raw = "load" | "domContentLoaded";
10
+ }
@@ -0,0 +1,31 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WindowLoadUrlV1BodyWaitUntil = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.WindowLoadUrlV1BodyWaitUntil = core.serialization.enum_(["load", "domContentLoaded"]);
@@ -0,0 +1,2 @@
1
+ export * from "./CreateWindowInputV1BodyWaitUntil";
2
+ export * from "./WindowLoadUrlV1BodyWaitUntil";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateWindowInputV1BodyWaitUntil"), exports);
18
+ __exportStar(require("./WindowLoadUrlV1BodyWaitUntil"), exports);
@@ -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 { EmptyResponseJson } from "./EmptyResponseJson";
8
+ import { Issue } from "./Issue";
9
+ import { EnvelopeStatusDefaultMeta } from "./EnvelopeStatusDefaultMeta";
10
+ export declare const EmptyResponse: core.serialization.ObjectSchema<serializers.EmptyResponse.Raw, Airtop.EmptyResponse>;
11
+ export declare namespace EmptyResponse {
12
+ interface Raw {
13
+ data: EmptyResponseJson.Raw;
14
+ errors?: Issue.Raw[] | null;
15
+ meta: EnvelopeStatusDefaultMeta.Raw;
16
+ warnings?: Issue.Raw[] | null;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.EmptyResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const EmptyResponseJson_1 = require("./EmptyResponseJson");
32
+ const Issue_1 = require("./Issue");
33
+ const EnvelopeStatusDefaultMeta_1 = require("./EnvelopeStatusDefaultMeta");
34
+ exports.EmptyResponse = core.serialization.object({
35
+ data: EmptyResponseJson_1.EmptyResponseJson,
36
+ errors: core.serialization.list(Issue_1.Issue).optional(),
37
+ meta: EnvelopeStatusDefaultMeta_1.EnvelopeStatusDefaultMeta,
38
+ warnings: core.serialization.list(Issue_1.Issue).optional(),
39
+ });
@@ -0,0 +1,12 @@
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 EmptyResponseJson: core.serialization.ObjectSchema<serializers.EmptyResponseJson.Raw, Airtop.EmptyResponseJson>;
8
+ export declare namespace EmptyResponseJson {
9
+ interface Raw {
10
+ success: boolean;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.EmptyResponseJson = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.EmptyResponseJson = core.serialization.object({
32
+ success: core.serialization.boolean(),
33
+ });