@airtop/sdk 0.1.4 → 0.1.6

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 (118) hide show
  1. package/api/resources/profiles/client/Client.js +4 -4
  2. package/api/resources/sessions/client/Client.d.ts +2 -2
  3. package/api/resources/sessions/client/Client.js +12 -12
  4. package/api/resources/windows/client/Client.d.ts +52 -2
  5. package/api/resources/windows/client/Client.js +272 -16
  6. package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +25 -0
  7. package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +23 -0
  8. package/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +3 -0
  9. package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +29 -0
  10. package/api/resources/windows/client/requests/index.d.ts +3 -1
  11. package/api/types/ClickConfig.d.ts +4 -0
  12. package/api/types/CustomProxy.d.ts +1 -1
  13. package/api/types/PageQueryConfig.d.ts +7 -0
  14. package/api/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +1 -1
  15. package/api/types/SessionConfigV1Proxy.d.ts +4 -1
  16. package/api/{resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → types/SessionPageQueryHandlerRequestBody.d.ts} +6 -9
  17. package/api/types/SessionPageQueryHandlerRequestBody.js +5 -0
  18. package/api/types/SummaryConfig.d.ts +2 -2
  19. package/api/types/index.d.ts +4 -2
  20. package/api/types/index.js +4 -2
  21. package/dist/api/resources/profiles/client/Client.js +4 -4
  22. package/dist/api/resources/sessions/client/Client.d.ts +2 -2
  23. package/dist/api/resources/sessions/client/Client.js +12 -12
  24. package/dist/api/resources/windows/client/Client.d.ts +52 -2
  25. package/dist/api/resources/windows/client/Client.js +272 -16
  26. package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +25 -0
  27. package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +5 -0
  28. package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +23 -0
  29. package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +5 -0
  30. package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +3 -0
  31. package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +29 -0
  32. package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +5 -0
  33. package/dist/api/resources/windows/client/requests/index.d.ts +3 -1
  34. package/dist/api/types/ClickConfig.d.ts +4 -0
  35. package/dist/api/types/ClickConfig.js +5 -0
  36. package/dist/api/types/CustomProxy.d.ts +1 -1
  37. package/dist/api/types/PageQueryConfig.d.ts +7 -0
  38. package/dist/api/types/PageQueryConfig.js +5 -0
  39. package/dist/api/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +1 -1
  40. package/dist/api/types/PageQueryExperimentalConfig.js +5 -0
  41. package/dist/api/types/SessionConfigV1Proxy.d.ts +4 -1
  42. package/dist/api/{resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → types/SessionPageQueryHandlerRequestBody.d.ts} +6 -9
  43. package/dist/api/types/SessionPageQueryHandlerRequestBody.js +5 -0
  44. package/dist/api/types/SummaryConfig.d.ts +2 -2
  45. package/dist/api/types/index.d.ts +4 -2
  46. package/dist/api/types/index.js +4 -2
  47. package/{serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts} +5 -4
  48. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +38 -0
  49. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +17 -0
  50. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +38 -0
  51. package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +2 -0
  52. package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +2 -0
  53. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +19 -0
  54. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +40 -0
  55. package/dist/serialization/resources/windows/client/requests/index.d.ts +3 -1
  56. package/dist/serialization/resources/windows/client/requests/index.js +7 -3
  57. package/dist/serialization/types/ClickConfig.d.ts +10 -0
  58. package/dist/serialization/types/ClickConfig.js +31 -0
  59. package/dist/serialization/types/PageQueryConfig.d.ts +12 -0
  60. package/dist/serialization/types/{PromptContentConfig.js → PageQueryConfig.js} +3 -4
  61. package/dist/serialization/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +2 -2
  62. package/dist/serialization/types/{PromptContentExperimentalConfig.js → PageQueryExperimentalConfig.js} +2 -2
  63. package/dist/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
  64. package/dist/serialization/types/SessionConfigV1Proxy.js +5 -1
  65. package/dist/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +18 -0
  66. package/{serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.js → dist/serialization/types/SessionPageQueryHandlerRequestBody.js} +5 -3
  67. package/dist/serialization/types/SummaryConfig.d.ts +1 -2
  68. package/dist/serialization/types/SummaryConfig.js +1 -2
  69. package/dist/serialization/types/index.d.ts +4 -2
  70. package/dist/serialization/types/index.js +4 -2
  71. package/dist/wrapper/AirtopClient.d.ts +6 -5
  72. package/dist/wrapper/AirtopClient.js +11 -10
  73. package/dist/wrapper/AirtopSessions.d.ts +11 -11
  74. package/dist/wrapper/AirtopSessions.js +16 -17
  75. package/dist/wrapper/AirtopWindows.d.ts +62 -14
  76. package/dist/wrapper/AirtopWindows.js +73 -31
  77. package/package.json +1 -1
  78. package/reference.md +295 -3
  79. package/{dist/serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts} +5 -4
  80. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +38 -0
  81. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +17 -0
  82. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +38 -0
  83. package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +2 -0
  84. package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +2 -0
  85. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +19 -0
  86. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +40 -0
  87. package/serialization/resources/windows/client/requests/index.d.ts +3 -1
  88. package/serialization/resources/windows/client/requests/index.js +7 -3
  89. package/serialization/types/ClickConfig.d.ts +10 -0
  90. package/serialization/types/ClickConfig.js +31 -0
  91. package/serialization/types/PageQueryConfig.d.ts +12 -0
  92. package/serialization/types/{PromptContentConfig.js → PageQueryConfig.js} +3 -4
  93. package/serialization/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +2 -2
  94. package/serialization/types/{PromptContentExperimentalConfig.js → PageQueryExperimentalConfig.js} +2 -2
  95. package/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
  96. package/serialization/types/SessionConfigV1Proxy.js +5 -1
  97. package/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +18 -0
  98. package/{dist/serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.js → serialization/types/SessionPageQueryHandlerRequestBody.js} +5 -3
  99. package/serialization/types/SummaryConfig.d.ts +1 -2
  100. package/serialization/types/SummaryConfig.js +1 -2
  101. package/serialization/types/index.d.ts +4 -2
  102. package/serialization/types/index.js +4 -2
  103. package/wrapper/AirtopClient.d.ts +6 -5
  104. package/wrapper/AirtopClient.js +11 -10
  105. package/wrapper/AirtopSessions.d.ts +11 -11
  106. package/wrapper/AirtopSessions.js +16 -17
  107. package/wrapper/AirtopWindows.d.ts +62 -14
  108. package/wrapper/AirtopWindows.js +73 -31
  109. package/api/types/PromptContentConfig.d.ts +0 -8
  110. package/dist/api/types/PromptContentConfig.d.ts +0 -8
  111. package/dist/serialization/types/PromptContentConfig.d.ts +0 -13
  112. package/serialization/types/PromptContentConfig.d.ts +0 -13
  113. /package/api/resources/windows/client/requests/{SessionContentPromptHandlerRequestBody.js → SessionClickHandlerRequestBody.js} +0 -0
  114. /package/api/{types/PromptContentConfig.js → resources/windows/client/requests/SessionHoverHandlerRequestBody.js} +0 -0
  115. /package/api/{types/PromptContentExperimentalConfig.js → resources/windows/client/requests/SessionTypeHandlerRequestBody.js} +0 -0
  116. /package/{dist/api/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.js → api/types/ClickConfig.js} +0 -0
  117. /package/{dist/api/types/PromptContentConfig.js → api/types/PageQueryConfig.js} +0 -0
  118. /package/{dist/api/types/PromptContentExperimentalConfig.js → api/types/PageQueryExperimentalConfig.js} +0 -0
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiPromptResponse"), exports);
18
18
  __exportStar(require("./AiResponseEnvelope"), exports);
19
+ __exportStar(require("./ClickConfig"), exports);
19
20
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
20
21
  __exportStar(require("./EmptyResponse"), exports);
21
22
  __exportStar(require("./EmptyResponseJson"), exports);
@@ -32,10 +33,10 @@ __exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
32
33
  __exportStar(require("./ExternalSessionConfig"), exports);
33
34
  __exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
34
35
  __exportStar(require("./Issue"), exports);
36
+ __exportStar(require("./PageQueryConfig"), exports);
37
+ __exportStar(require("./PageQueryExperimentalConfig"), exports);
35
38
  __exportStar(require("./Pagination"), exports);
36
39
  __exportStar(require("./ProfilesResponse"), exports);
37
- __exportStar(require("./PromptContentConfig"), exports);
38
- __exportStar(require("./PromptContentExperimentalConfig"), exports);
39
40
  __exportStar(require("./ScrapeResponse"), exports);
40
41
  __exportStar(require("./ScrapeResponseContent"), exports);
41
42
  __exportStar(require("./ScrapeResponseEnvelope"), exports);
@@ -45,6 +46,7 @@ __exportStar(require("./CustomProxy"), exports);
45
46
  __exportStar(require("./SessionConfigV1ProxyItem"), exports);
46
47
  __exportStar(require("./SessionConfigV1Proxy"), exports);
47
48
  __exportStar(require("./SessionConfigV1"), exports);
49
+ __exportStar(require("./SessionPageQueryHandlerRequestBody"), exports);
48
50
  __exportStar(require("./SessionResponse"), exports);
49
51
  __exportStar(require("./SessionsResponse"), exports);
50
52
  __exportStar(require("./SessionsWithPagination"), exports);
@@ -4,13 +4,14 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Airtop from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- export declare const SessionContentPromptHandlerRequestBody: core.serialization.Schema<serializers.SessionContentPromptHandlerRequestBody.Raw, Airtop.SessionContentPromptHandlerRequestBody>;
8
- export declare namespace SessionContentPromptHandlerRequestBody {
7
+ import { ClickConfig } from "../../../../types/ClickConfig";
8
+ export declare const SessionClickHandlerRequestBody: core.serialization.Schema<serializers.SessionClickHandlerRequestBody.Raw, Airtop.SessionClickHandlerRequestBody>;
9
+ export declare namespace SessionClickHandlerRequestBody {
9
10
  interface Raw {
10
11
  clientRequestId?: string | null;
12
+ configuration?: ClickConfig.Raw | null;
11
13
  costThresholdCredits?: number | null;
12
- followPaginationLinks?: boolean | null;
13
- prompt: string;
14
+ elementDescription: string;
14
15
  timeThresholdSeconds?: number | null;
15
16
  }
16
17
  }
@@ -0,0 +1,38 @@
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.SessionClickHandlerRequestBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const ClickConfig_1 = require("../../../../types/ClickConfig");
32
+ exports.SessionClickHandlerRequestBody = core.serialization.object({
33
+ clientRequestId: core.serialization.string().optional(),
34
+ configuration: ClickConfig_1.ClickConfig.optional(),
35
+ costThresholdCredits: core.serialization.number().optional(),
36
+ elementDescription: core.serialization.string(),
37
+ timeThresholdSeconds: core.serialization.number().optional(),
38
+ });
@@ -0,0 +1,17 @@
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 { ClickConfig } from "../../../../types/ClickConfig";
8
+ export declare const SessionHoverHandlerRequestBody: core.serialization.Schema<serializers.SessionHoverHandlerRequestBody.Raw, Airtop.SessionHoverHandlerRequestBody>;
9
+ export declare namespace SessionHoverHandlerRequestBody {
10
+ interface Raw {
11
+ clientRequestId?: string | null;
12
+ configuration?: ClickConfig.Raw | null;
13
+ costThresholdCredits?: number | null;
14
+ elementDescription?: string | null;
15
+ timeThresholdSeconds?: number | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
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.SessionHoverHandlerRequestBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const ClickConfig_1 = require("../../../../types/ClickConfig");
32
+ exports.SessionHoverHandlerRequestBody = core.serialization.object({
33
+ clientRequestId: core.serialization.string().optional(),
34
+ configuration: ClickConfig_1.ClickConfig.optional(),
35
+ costThresholdCredits: core.serialization.number().optional(),
36
+ elementDescription: core.serialization.string().optional(),
37
+ timeThresholdSeconds: core.serialization.number().optional(),
38
+ });
@@ -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 SessionSummaryHandlerRequestBody: core.serialization.Schema<serializers.SessionSummaryHandlerRequestBody.Raw, Airtop.SessionSummaryHandlerRequestBody>;
8
9
  export declare namespace SessionSummaryHandlerRequestBody {
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.SessionSummaryHandlerRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const SummaryConfig_1 = require("../../../../types/SummaryConfig");
31
32
  exports.SessionSummaryHandlerRequestBody = 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,19 @@
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 { ClickConfig } from "../../../../types/ClickConfig";
8
+ export declare const SessionTypeHandlerRequestBody: core.serialization.Schema<serializers.SessionTypeHandlerRequestBody.Raw, Airtop.SessionTypeHandlerRequestBody>;
9
+ export declare namespace SessionTypeHandlerRequestBody {
10
+ interface Raw {
11
+ clientRequestId?: string | null;
12
+ configuration?: ClickConfig.Raw | null;
13
+ costThresholdCredits?: number | null;
14
+ elementDescription?: string | null;
15
+ pressEnterKey?: boolean | null;
16
+ text: string;
17
+ timeThresholdSeconds?: number | null;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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.SessionTypeHandlerRequestBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const ClickConfig_1 = require("../../../../types/ClickConfig");
32
+ exports.SessionTypeHandlerRequestBody = core.serialization.object({
33
+ clientRequestId: core.serialization.string().optional(),
34
+ configuration: ClickConfig_1.ClickConfig.optional(),
35
+ costThresholdCredits: core.serialization.number().optional(),
36
+ elementDescription: core.serialization.string().optional(),
37
+ pressEnterKey: core.serialization.boolean().optional(),
38
+ text: core.serialization.string(),
39
+ timeThresholdSeconds: core.serialization.number().optional(),
40
+ });
@@ -1,5 +1,7 @@
1
1
  export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
2
2
  export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
3
- export { SessionContentPromptHandlerRequestBody } from "./SessionContentPromptHandlerRequestBody";
3
+ export { SessionClickHandlerRequestBody } from "./SessionClickHandlerRequestBody";
4
+ export { SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
4
5
  export { ScrapeContentRequest } from "./ScrapeContentRequest";
5
6
  export { SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
7
+ export { SessionTypeHandlerRequestBody } from "./SessionTypeHandlerRequestBody";
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionSummaryHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionContentPromptHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
3
+ exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionHoverHandlerRequestBody = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
4
4
  var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
5
5
  Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
6
6
  var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
7
7
  Object.defineProperty(exports, "WindowLoadUrlV1Body", { enumerable: true, get: function () { return WindowLoadUrlV1Body_1.WindowLoadUrlV1Body; } });
8
- var SessionContentPromptHandlerRequestBody_1 = require("./SessionContentPromptHandlerRequestBody");
9
- Object.defineProperty(exports, "SessionContentPromptHandlerRequestBody", { enumerable: true, get: function () { return SessionContentPromptHandlerRequestBody_1.SessionContentPromptHandlerRequestBody; } });
8
+ var SessionClickHandlerRequestBody_1 = require("./SessionClickHandlerRequestBody");
9
+ Object.defineProperty(exports, "SessionClickHandlerRequestBody", { enumerable: true, get: function () { return SessionClickHandlerRequestBody_1.SessionClickHandlerRequestBody; } });
10
+ var SessionHoverHandlerRequestBody_1 = require("./SessionHoverHandlerRequestBody");
11
+ Object.defineProperty(exports, "SessionHoverHandlerRequestBody", { enumerable: true, get: function () { return SessionHoverHandlerRequestBody_1.SessionHoverHandlerRequestBody; } });
10
12
  var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
11
13
  Object.defineProperty(exports, "ScrapeContentRequest", { enumerable: true, get: function () { return ScrapeContentRequest_1.ScrapeContentRequest; } });
12
14
  var SessionSummaryHandlerRequestBody_1 = require("./SessionSummaryHandlerRequestBody");
13
15
  Object.defineProperty(exports, "SessionSummaryHandlerRequestBody", { enumerable: true, get: function () { return SessionSummaryHandlerRequestBody_1.SessionSummaryHandlerRequestBody; } });
16
+ var SessionTypeHandlerRequestBody_1 = require("./SessionTypeHandlerRequestBody");
17
+ Object.defineProperty(exports, "SessionTypeHandlerRequestBody", { enumerable: true, get: function () { return SessionTypeHandlerRequestBody_1.SessionTypeHandlerRequestBody; } });
@@ -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 ClickConfig: core.serialization.Schema<serializers.ClickConfig.Raw, Airtop.ClickConfig>;
8
+ export declare namespace ClickConfig {
9
+ type Raw = Record<string, unknown>;
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.ClickConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ClickConfig = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -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 PageQueryConfig: core.serialization.ObjectSchema<serializers.PageQueryConfig.Raw, Airtop.PageQueryConfig>;
8
+ export declare namespace PageQueryConfig {
9
+ interface Raw {
10
+ outputSchema?: string | null;
11
+ }
12
+ }
@@ -26,9 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PromptContentConfig = void 0;
29
+ exports.PageQueryConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const PromptContentExperimentalConfig_1 = require("./PromptContentExperimentalConfig");
32
- exports.PromptContentConfig = core.serialization.object({
33
- experimental: PromptContentExperimentalConfig_1.PromptContentExperimentalConfig.optional(),
31
+ exports.PageQueryConfig = core.serialization.object({
32
+ outputSchema: core.serialization.string().optional(),
34
33
  });
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
- export declare const PromptContentExperimentalConfig: core.serialization.ObjectSchema<serializers.PromptContentExperimentalConfig.Raw, Airtop.PromptContentExperimentalConfig>;
8
- export declare namespace PromptContentExperimentalConfig {
7
+ export declare const PageQueryExperimentalConfig: core.serialization.ObjectSchema<serializers.PageQueryExperimentalConfig.Raw, Airtop.PageQueryExperimentalConfig>;
8
+ export declare namespace PageQueryExperimentalConfig {
9
9
  interface Raw {
10
10
  includeVisualAnalysis?: string | null;
11
11
  }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PromptContentExperimentalConfig = void 0;
29
+ exports.PageQueryExperimentalConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.PromptContentExperimentalConfig = core.serialization.object({
31
+ exports.PageQueryExperimentalConfig = core.serialization.object({
32
32
  includeVisualAnalysis: core.serialization.string().optional(),
33
33
  });
@@ -8,5 +8,5 @@ import { CustomProxy } from "./CustomProxy";
8
8
  import { SessionConfigV1ProxyItem } from "./SessionConfigV1ProxyItem";
9
9
  export declare const SessionConfigV1Proxy: core.serialization.Schema<serializers.SessionConfigV1Proxy.Raw, Airtop.SessionConfigV1Proxy>;
10
10
  export declare namespace SessionConfigV1Proxy {
11
- type Raw = CustomProxy.Raw | SessionConfigV1ProxyItem.Raw[];
11
+ type Raw = boolean | CustomProxy.Raw | SessionConfigV1ProxyItem.Raw[];
12
12
  }
@@ -30,4 +30,8 @@ exports.SessionConfigV1Proxy = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const CustomProxy_1 = require("./CustomProxy");
32
32
  const SessionConfigV1ProxyItem_1 = require("./SessionConfigV1ProxyItem");
33
- exports.SessionConfigV1Proxy = core.serialization.undiscriminatedUnion([CustomProxy_1.CustomProxy, core.serialization.list(SessionConfigV1ProxyItem_1.SessionConfigV1ProxyItem)]);
33
+ exports.SessionConfigV1Proxy = core.serialization.undiscriminatedUnion([
34
+ core.serialization.boolean(),
35
+ CustomProxy_1.CustomProxy,
36
+ core.serialization.list(SessionConfigV1ProxyItem_1.SessionConfigV1ProxyItem),
37
+ ]);
@@ -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 { PageQueryConfig } from "./PageQueryConfig";
8
+ export declare const SessionPageQueryHandlerRequestBody: core.serialization.ObjectSchema<serializers.SessionPageQueryHandlerRequestBody.Raw, Airtop.SessionPageQueryHandlerRequestBody>;
9
+ export declare namespace SessionPageQueryHandlerRequestBody {
10
+ interface Raw {
11
+ clientRequestId?: string | null;
12
+ configuration?: PageQueryConfig.Raw | null;
13
+ costThresholdCredits?: number | null;
14
+ followPaginationLinks?: boolean | null;
15
+ prompt: string;
16
+ timeThresholdSeconds?: number | null;
17
+ }
18
+ }
@@ -26,10 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SessionContentPromptHandlerRequestBody = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- exports.SessionContentPromptHandlerRequestBody = core.serialization.object({
29
+ exports.SessionPageQueryHandlerRequestBody = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const PageQueryConfig_1 = require("./PageQueryConfig");
32
+ exports.SessionPageQueryHandlerRequestBody = core.serialization.object({
32
33
  clientRequestId: core.serialization.string().optional(),
34
+ configuration: PageQueryConfig_1.PageQueryConfig.optional(),
33
35
  costThresholdCredits: core.serialization.number().optional(),
34
36
  followPaginationLinks: core.serialization.boolean().optional(),
35
37
  prompt: core.serialization.string(),
@@ -4,10 +4,9 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Airtop from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { SummaryExperimentalConfig } from "./SummaryExperimentalConfig";
8
7
  export declare const SummaryConfig: core.serialization.ObjectSchema<serializers.SummaryConfig.Raw, Airtop.SummaryConfig>;
9
8
  export declare namespace SummaryConfig {
10
9
  interface Raw {
11
- experimental?: SummaryExperimentalConfig.Raw | null;
10
+ outputSchema?: string | null;
12
11
  }
13
12
  }
@@ -28,7 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SummaryConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const SummaryExperimentalConfig_1 = require("./SummaryExperimentalConfig");
32
31
  exports.SummaryConfig = core.serialization.object({
33
- experimental: SummaryExperimentalConfig_1.SummaryExperimentalConfig.optional(),
32
+ outputSchema: core.serialization.string().optional(),
34
33
  });
@@ -1,5 +1,6 @@
1
1
  export * from "./AiPromptResponse";
2
2
  export * from "./AiResponseEnvelope";
3
+ export * from "./ClickConfig";
3
4
  export * from "./ClientProvidedResponseMetadata";
4
5
  export * from "./EmptyResponse";
5
6
  export * from "./EmptyResponseJson";
@@ -16,10 +17,10 @@ export * from "./ExternalSessionAiResponseMetadataUsage";
16
17
  export * from "./ExternalSessionConfig";
17
18
  export * from "./ExternalSessionWithConnectionInfo";
18
19
  export * from "./Issue";
20
+ export * from "./PageQueryConfig";
21
+ export * from "./PageQueryExperimentalConfig";
19
22
  export * from "./Pagination";
20
23
  export * from "./ProfilesResponse";
21
- export * from "./PromptContentConfig";
22
- export * from "./PromptContentExperimentalConfig";
23
24
  export * from "./ScrapeResponse";
24
25
  export * from "./ScrapeResponseContent";
25
26
  export * from "./ScrapeResponseEnvelope";
@@ -29,6 +30,7 @@ export * from "./CustomProxy";
29
30
  export * from "./SessionConfigV1ProxyItem";
30
31
  export * from "./SessionConfigV1Proxy";
31
32
  export * from "./SessionConfigV1";
33
+ export * from "./SessionPageQueryHandlerRequestBody";
32
34
  export * from "./SessionResponse";
33
35
  export * from "./SessionsResponse";
34
36
  export * from "./SessionsWithPagination";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiPromptResponse"), exports);
18
18
  __exportStar(require("./AiResponseEnvelope"), exports);
19
+ __exportStar(require("./ClickConfig"), exports);
19
20
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
20
21
  __exportStar(require("./EmptyResponse"), exports);
21
22
  __exportStar(require("./EmptyResponseJson"), exports);
@@ -32,10 +33,10 @@ __exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
32
33
  __exportStar(require("./ExternalSessionConfig"), exports);
33
34
  __exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
34
35
  __exportStar(require("./Issue"), exports);
36
+ __exportStar(require("./PageQueryConfig"), exports);
37
+ __exportStar(require("./PageQueryExperimentalConfig"), exports);
35
38
  __exportStar(require("./Pagination"), exports);
36
39
  __exportStar(require("./ProfilesResponse"), exports);
37
- __exportStar(require("./PromptContentConfig"), exports);
38
- __exportStar(require("./PromptContentExperimentalConfig"), exports);
39
40
  __exportStar(require("./ScrapeResponse"), exports);
40
41
  __exportStar(require("./ScrapeResponseContent"), exports);
41
42
  __exportStar(require("./ScrapeResponseEnvelope"), exports);
@@ -45,6 +46,7 @@ __exportStar(require("./CustomProxy"), exports);
45
46
  __exportStar(require("./SessionConfigV1ProxyItem"), exports);
46
47
  __exportStar(require("./SessionConfigV1Proxy"), exports);
47
48
  __exportStar(require("./SessionConfigV1"), exports);
49
+ __exportStar(require("./SessionPageQueryHandlerRequestBody"), exports);
48
50
  __exportStar(require("./SessionResponse"), exports);
49
51
  __exportStar(require("./SessionsResponse"), exports);
50
52
  __exportStar(require("./SessionsWithPagination"), exports);
@@ -1,17 +1,18 @@
1
1
  import { AirtopClient as FernClient } from '../Client';
2
- import { AirtopWindows } from './AirtopWindows';
3
2
  import { AirtopSessions } from './AirtopSessions';
3
+ import { AirtopWindows } from './AirtopWindows';
4
4
  declare type AugmentedOptions = FernClient.Options & {
5
5
  debug?: boolean;
6
6
  };
7
7
  export declare class AirtopClient {
8
+ private _options;
8
9
  debug: boolean;
9
10
  private _client;
10
- private _windowsWrapper;
11
- private _sessionsWrapper;
12
- constructor(options: AugmentedOptions);
13
- get windows(): AirtopWindows;
11
+ private _windows;
12
+ private _sessions;
13
+ constructor(_options: AugmentedOptions);
14
14
  get sessions(): AirtopSessions;
15
+ get windows(): AirtopWindows;
15
16
  get profiles(): import("../api/resources/profiles/client/Client").Profiles;
16
17
  log(message: string): void;
17
18
  error(err: any): void;
@@ -2,20 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AirtopClient = void 0;
4
4
  const Client_1 = require("../Client"); // alias the Fern generated client
5
- const AirtopWindows_1 = require("./AirtopWindows");
6
5
  const AirtopSessions_1 = require("./AirtopSessions");
6
+ const AirtopWindows_1 = require("./AirtopWindows");
7
7
  class AirtopClient {
8
- constructor(options) {
9
- this._client = new Client_1.AirtopClient(options);
10
- this.debug = (options === null || options === void 0 ? void 0 : options.debug) || false;
11
- this._windowsWrapper = new AirtopWindows_1.AirtopWindows(this._client, options === null || options === void 0 ? void 0 : options.apiKey);
12
- this._sessionsWrapper = new AirtopSessions_1.AirtopSessions(this._client, options === null || options === void 0 ? void 0 : options.debug);
13
- }
14
- get windows() {
15
- return this._windowsWrapper;
8
+ constructor(_options) {
9
+ this._options = _options;
10
+ this._client = new Client_1.AirtopClient(_options);
11
+ this.debug = (_options === null || _options === void 0 ? void 0 : _options.debug) || false;
16
12
  }
17
13
  get sessions() {
18
- return this._sessionsWrapper;
14
+ var _a;
15
+ return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new AirtopSessions_1.AirtopSessions(this._options, this.debug)));
16
+ }
17
+ get windows() {
18
+ var _a;
19
+ return ((_a = this._windows) !== null && _a !== void 0 ? _a : (this._windows = new AirtopWindows_1.AirtopWindows(this._options, this._options.apiKey)));
19
20
  }
20
21
  get profiles() {
21
22
  return this._client.profiles;
@@ -1,7 +1,5 @@
1
- import { AirtopClient as FernClient } from '../Client';
2
1
  import * as Airtop from '../api';
3
- import * as core from '../core';
4
- import { Sessions as SessionsNamespace } from '../api/resources/sessions/client/Client';
2
+ import { Sessions as SessionsClass, Sessions as SessionsNamespace } from '../api/resources/sessions/client/Client';
5
3
  export interface AirtopSessionConfigV1 extends Airtop.SessionConfigV1 {
6
4
  skipWaitSessionReady?: boolean;
7
5
  }
@@ -9,16 +7,18 @@ export interface AirtopSessionRestInputV1 {
9
7
  /** Session configuration */
10
8
  configuration?: AirtopSessionConfigV1;
11
9
  }
12
- export declare class AirtopSessions {
13
- private airtopClient;
10
+ export declare class AirtopSessions extends SessionsClass {
11
+ readonly _options: SessionsNamespace.Options;
14
12
  private debug;
15
- private _sessions;
16
- constructor(airtopClient: FernClient, debug?: boolean);
13
+ constructor(_options: SessionsNamespace.Options, debug?: boolean);
17
14
  log(message: any): void;
18
- list(request?: Airtop.SessionsListRequest, requestOptions?: SessionsNamespace.RequestOptions): Promise<Airtop.SessionsResponse>;
15
+ /**
16
+ * @param {Airtop.SessionRestInputV1} request
17
+ * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @example
20
+ * await client.sessions.create()
21
+ */
19
22
  create(request?: AirtopSessionRestInputV1, requestOptions?: SessionsNamespace.RequestOptions): Promise<Airtop.SessionResponse>;
20
23
  waitForSessionReady(id: string, requestOptions?: SessionsNamespace.RequestOptions): Promise<Airtop.SessionsEventsResponse | null>;
21
- getInfo(id: string, requestOptions?: SessionsNamespace.RequestOptions): Promise<Airtop.SessionResponse>;
22
- terminate(id: string, requestOptions?: SessionsNamespace.RequestOptions): Promise<void>;
23
- events(id: string, requestOptions?: SessionsNamespace.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
24
24
  }