@airtop/sdk 0.1.2 → 0.1.4

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 (144) hide show
  1. package/Client.d.ts +2 -2
  2. package/Client.js +1 -1
  3. package/api/errors/InternalServerError.d.ts +1 -1
  4. package/api/errors/NotFoundError.d.ts +1 -1
  5. package/api/errors/UnprocessableEntityError.d.ts +1 -1
  6. package/api/resources/profiles/client/Client.d.ts +3 -3
  7. package/api/resources/profiles/client/Client.js +6 -10
  8. package/api/resources/sessions/client/Client.d.ts +3 -3
  9. package/api/resources/sessions/client/Client.js +21 -25
  10. package/api/resources/windows/client/Client.d.ts +7 -7
  11. package/api/resources/windows/client/Client.js +24 -24
  12. package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +3 -1
  13. package/api/resources/windows/client/requests/{PromptContentRequest.d.ts → SessionContentPromptHandlerRequestBody.d.ts} +1 -4
  14. package/api/resources/windows/client/requests/{SummarizeContentRequest.d.ts → SessionSummaryHandlerRequestBody.d.ts} +1 -4
  15. package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +3 -1
  16. package/api/resources/windows/client/requests/index.d.ts +2 -2
  17. package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +3 -2
  18. package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -0
  19. package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +3 -2
  20. package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -0
  21. package/api/types/CustomProxy.d.ts +14 -0
  22. package/api/types/ErrorDetail.d.ts +10 -0
  23. package/api/types/ErrorModel.d.ts +18 -0
  24. package/api/types/Proxy.d.ts +11 -0
  25. package/api/types/SessionConfigV1.d.ts +3 -0
  26. package/api/types/SessionConfigV1Proxy.d.ts +14 -0
  27. package/api/types/SessionConfigV1Proxy.js +5 -0
  28. package/api/types/SessionConfigV1ProxyItem.d.ts +12 -0
  29. package/api/types/SessionConfigV1ProxyItem.js +5 -0
  30. package/api/types/index.d.ts +6 -1
  31. package/api/types/index.js +6 -1
  32. package/dist/Client.d.ts +2 -2
  33. package/dist/Client.js +1 -1
  34. package/dist/api/errors/InternalServerError.d.ts +1 -1
  35. package/dist/api/errors/NotFoundError.d.ts +1 -1
  36. package/dist/api/errors/UnprocessableEntityError.d.ts +1 -1
  37. package/dist/api/resources/profiles/client/Client.d.ts +3 -3
  38. package/dist/api/resources/profiles/client/Client.js +6 -10
  39. package/dist/api/resources/sessions/client/Client.d.ts +3 -3
  40. package/dist/api/resources/sessions/client/Client.js +21 -25
  41. package/dist/api/resources/windows/client/Client.d.ts +7 -7
  42. package/dist/api/resources/windows/client/Client.js +24 -24
  43. package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +3 -1
  44. package/dist/api/resources/windows/client/requests/{PromptContentRequest.d.ts → SessionContentPromptHandlerRequestBody.d.ts} +1 -4
  45. package/dist/api/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.js +5 -0
  46. package/dist/api/resources/windows/client/requests/{SummarizeContentRequest.d.ts → SessionSummaryHandlerRequestBody.d.ts} +1 -4
  47. package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +5 -0
  48. package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +3 -1
  49. package/dist/api/resources/windows/client/requests/index.d.ts +2 -2
  50. package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +3 -2
  51. package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -0
  52. package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +3 -2
  53. package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -0
  54. package/dist/api/types/CustomProxy.d.ts +14 -0
  55. package/dist/api/types/CustomProxy.js +5 -0
  56. package/dist/api/types/ErrorDetail.d.ts +10 -0
  57. package/dist/api/types/ErrorDetail.js +5 -0
  58. package/dist/api/types/ErrorModel.d.ts +18 -0
  59. package/dist/api/types/ErrorModel.js +5 -0
  60. package/dist/api/types/Proxy.d.ts +11 -0
  61. package/dist/api/types/Proxy.js +5 -0
  62. package/dist/api/types/SessionConfigV1.d.ts +3 -0
  63. package/dist/api/types/SessionConfigV1Proxy.d.ts +14 -0
  64. package/dist/api/types/SessionConfigV1Proxy.js +5 -0
  65. package/dist/api/types/SessionConfigV1ProxyItem.d.ts +12 -0
  66. package/dist/api/types/SessionConfigV1ProxyItem.js +5 -0
  67. package/dist/api/types/index.d.ts +6 -1
  68. package/dist/api/types/index.js +6 -1
  69. package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -0
  70. package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +1 -0
  71. package/dist/serialization/resources/windows/client/requests/{PromptContentRequest.d.ts → SessionContentPromptHandlerRequestBody.d.ts} +2 -4
  72. package/dist/serialization/resources/windows/client/requests/{PromptContentRequest.js → SessionContentPromptHandlerRequestBody.js} +2 -4
  73. package/dist/serialization/resources/windows/client/requests/{SummarizeContentRequest.d.ts → SessionSummaryHandlerRequestBody.d.ts} +2 -4
  74. package/dist/serialization/resources/windows/client/requests/{SummarizeContentRequest.js → SessionSummaryHandlerRequestBody.js} +2 -4
  75. package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -0
  76. package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +1 -0
  77. package/dist/serialization/resources/windows/client/requests/index.d.ts +2 -2
  78. package/dist/serialization/resources/windows/client/requests/index.js +5 -5
  79. package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
  80. package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -1
  81. package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
  82. package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -1
  83. package/dist/serialization/types/CustomProxy.d.ts +11 -0
  84. package/dist/serialization/types/CustomProxy.js +32 -0
  85. package/dist/serialization/types/ErrorDetail.d.ts +14 -0
  86. package/{serialization/types/ErrorEnvelope.js → dist/serialization/types/ErrorDetail.js} +5 -9
  87. package/dist/serialization/types/ErrorModel.d.ts +18 -0
  88. package/dist/serialization/types/{ErrorEnvelope.js → ErrorModel.js} +9 -9
  89. package/dist/serialization/types/Proxy.d.ts +14 -0
  90. package/dist/serialization/types/Proxy.js +35 -0
  91. package/dist/serialization/types/SessionConfigV1.d.ts +2 -0
  92. package/dist/serialization/types/SessionConfigV1.js +2 -0
  93. package/dist/serialization/types/SessionConfigV1Proxy.d.ts +12 -0
  94. package/dist/serialization/types/SessionConfigV1Proxy.js +33 -0
  95. package/dist/serialization/types/SessionConfigV1ProxyItem.d.ts +14 -0
  96. package/dist/serialization/types/SessionConfigV1ProxyItem.js +35 -0
  97. package/dist/serialization/types/index.d.ts +6 -1
  98. package/dist/serialization/types/index.js +6 -1
  99. package/dist/wrapper/AirtopClient.d.ts +1 -1
  100. package/dist/wrapper/AirtopWindows.d.ts +2 -2
  101. package/package.json +3 -2
  102. package/reference.md +2 -2
  103. package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -0
  104. package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +1 -0
  105. package/serialization/resources/windows/client/requests/{PromptContentRequest.d.ts → SessionContentPromptHandlerRequestBody.d.ts} +2 -4
  106. package/serialization/resources/windows/client/requests/{PromptContentRequest.js → SessionContentPromptHandlerRequestBody.js} +2 -4
  107. package/serialization/resources/windows/client/requests/{SummarizeContentRequest.d.ts → SessionSummaryHandlerRequestBody.d.ts} +2 -4
  108. package/serialization/resources/windows/client/requests/{SummarizeContentRequest.js → SessionSummaryHandlerRequestBody.js} +2 -4
  109. package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -0
  110. package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +1 -0
  111. package/serialization/resources/windows/client/requests/index.d.ts +2 -2
  112. package/serialization/resources/windows/client/requests/index.js +5 -5
  113. package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
  114. package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -1
  115. package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
  116. package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -1
  117. package/serialization/types/CustomProxy.d.ts +11 -0
  118. package/serialization/types/CustomProxy.js +32 -0
  119. package/serialization/types/ErrorDetail.d.ts +14 -0
  120. package/serialization/types/ErrorDetail.js +35 -0
  121. package/serialization/types/ErrorModel.d.ts +18 -0
  122. package/serialization/types/ErrorModel.js +39 -0
  123. package/serialization/types/Proxy.d.ts +14 -0
  124. package/serialization/types/Proxy.js +35 -0
  125. package/serialization/types/SessionConfigV1.d.ts +2 -0
  126. package/serialization/types/SessionConfigV1.js +2 -0
  127. package/serialization/types/SessionConfigV1Proxy.d.ts +12 -0
  128. package/serialization/types/SessionConfigV1Proxy.js +33 -0
  129. package/serialization/types/SessionConfigV1ProxyItem.d.ts +14 -0
  130. package/serialization/types/SessionConfigV1ProxyItem.js +35 -0
  131. package/serialization/types/index.d.ts +6 -1
  132. package/serialization/types/index.js +6 -1
  133. package/wrapper/AirtopClient.d.ts +1 -1
  134. package/wrapper/AirtopWindows.d.ts +2 -2
  135. package/api/types/ErrorEnvelope.d.ts +0 -12
  136. package/dist/api/types/ErrorEnvelope.d.ts +0 -12
  137. package/dist/serialization/types/ErrorEnvelope.d.ts +0 -18
  138. package/serialization/types/ErrorEnvelope.d.ts +0 -18
  139. /package/api/resources/windows/client/requests/{PromptContentRequest.js → SessionContentPromptHandlerRequestBody.js} +0 -0
  140. /package/api/resources/windows/client/requests/{SummarizeContentRequest.js → SessionSummaryHandlerRequestBody.js} +0 -0
  141. /package/api/types/{ErrorEnvelope.js → CustomProxy.js} +0 -0
  142. /package/{dist/api/resources/windows/client/requests/PromptContentRequest.js → api/types/ErrorDetail.js} +0 -0
  143. /package/{dist/api/resources/windows/client/requests/SummarizeContentRequest.js → api/types/ErrorModel.js} +0 -0
  144. /package/{dist/api/types/ErrorEnvelope.js → api/types/Proxy.js} +0 -0
@@ -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.Proxy = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Proxy = core.serialization.object({
32
+ password: core.serialization.string().optional(),
33
+ url: core.serialization.string(),
34
+ username: core.serialization.string().optional(),
35
+ });
@@ -4,11 +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 { SessionConfigV1Proxy } from "./SessionConfigV1Proxy";
7
8
  export declare const SessionConfigV1: core.serialization.ObjectSchema<serializers.SessionConfigV1.Raw, Airtop.SessionConfigV1>;
8
9
  export declare namespace SessionConfigV1 {
9
10
  interface Raw {
10
11
  baseProfileId?: string | null;
11
12
  persistProfile?: boolean | null;
13
+ proxy?: SessionConfigV1Proxy.Raw | null;
12
14
  timeoutMinutes?: number | null;
13
15
  }
14
16
  }
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SessionConfigV1 = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const SessionConfigV1Proxy_1 = require("./SessionConfigV1Proxy");
31
32
  exports.SessionConfigV1 = core.serialization.object({
32
33
  baseProfileId: core.serialization.string().optional(),
33
34
  persistProfile: core.serialization.boolean().optional(),
35
+ proxy: SessionConfigV1Proxy_1.SessionConfigV1Proxy.optional(),
34
36
  timeoutMinutes: core.serialization.number().optional(),
35
37
  });
@@ -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
+ import { CustomProxy } from "./CustomProxy";
8
+ import { SessionConfigV1ProxyItem } from "./SessionConfigV1ProxyItem";
9
+ export declare const SessionConfigV1Proxy: core.serialization.Schema<serializers.SessionConfigV1Proxy.Raw, Airtop.SessionConfigV1Proxy>;
10
+ export declare namespace SessionConfigV1Proxy {
11
+ type Raw = CustomProxy.Raw | SessionConfigV1ProxyItem.Raw[];
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.SessionConfigV1Proxy = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const CustomProxy_1 = require("./CustomProxy");
32
+ const SessionConfigV1ProxyItem_1 = require("./SessionConfigV1ProxyItem");
33
+ exports.SessionConfigV1Proxy = core.serialization.undiscriminatedUnion([CustomProxy_1.CustomProxy, core.serialization.list(SessionConfigV1ProxyItem_1.SessionConfigV1ProxyItem)]);
@@ -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 { CustomProxy } from "./CustomProxy";
8
+ export declare const SessionConfigV1ProxyItem: core.serialization.ObjectSchema<serializers.SessionConfigV1ProxyItem.Raw, Airtop.SessionConfigV1ProxyItem>;
9
+ export declare namespace SessionConfigV1ProxyItem {
10
+ interface Raw {
11
+ domainPattern: string;
12
+ relay: CustomProxy.Raw;
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.SessionConfigV1ProxyItem = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const CustomProxy_1 = require("./CustomProxy");
32
+ exports.SessionConfigV1ProxyItem = core.serialization.object({
33
+ domainPattern: core.serialization.string(),
34
+ relay: CustomProxy_1.CustomProxy,
35
+ });
@@ -6,8 +6,9 @@ export * from "./EmptyResponseJson";
6
6
  export * from "./EnvelopeDefaultMeta";
7
7
  export * from "./EnvelopeStatusDefaultMetaStatus";
8
8
  export * from "./EnvelopeStatusDefaultMeta";
9
- export * from "./ErrorEnvelope";
9
+ export * from "./ErrorDetail";
10
10
  export * from "./ErrorMessage";
11
+ export * from "./ErrorModel";
11
12
  export * from "./ExternalProfileV1";
12
13
  export * from "./ExternalSessionAiResponseMetadataStatus";
13
14
  export * from "./ExternalSessionAiResponseMetadata";
@@ -23,6 +24,10 @@ export * from "./ScrapeResponse";
23
24
  export * from "./ScrapeResponseContent";
24
25
  export * from "./ScrapeResponseEnvelope";
25
26
  export * from "./ScrapeResponseOutput";
27
+ export * from "./Proxy";
28
+ export * from "./CustomProxy";
29
+ export * from "./SessionConfigV1ProxyItem";
30
+ export * from "./SessionConfigV1Proxy";
26
31
  export * from "./SessionConfigV1";
27
32
  export * from "./SessionResponse";
28
33
  export * from "./SessionsResponse";
@@ -22,8 +22,9 @@ __exportStar(require("./EmptyResponseJson"), exports);
22
22
  __exportStar(require("./EnvelopeDefaultMeta"), exports);
23
23
  __exportStar(require("./EnvelopeStatusDefaultMetaStatus"), exports);
24
24
  __exportStar(require("./EnvelopeStatusDefaultMeta"), exports);
25
- __exportStar(require("./ErrorEnvelope"), exports);
25
+ __exportStar(require("./ErrorDetail"), exports);
26
26
  __exportStar(require("./ErrorMessage"), exports);
27
+ __exportStar(require("./ErrorModel"), exports);
27
28
  __exportStar(require("./ExternalProfileV1"), exports);
28
29
  __exportStar(require("./ExternalSessionAiResponseMetadataStatus"), exports);
29
30
  __exportStar(require("./ExternalSessionAiResponseMetadata"), exports);
@@ -39,6 +40,10 @@ __exportStar(require("./ScrapeResponse"), exports);
39
40
  __exportStar(require("./ScrapeResponseContent"), exports);
40
41
  __exportStar(require("./ScrapeResponseEnvelope"), exports);
41
42
  __exportStar(require("./ScrapeResponseOutput"), exports);
43
+ __exportStar(require("./Proxy"), exports);
44
+ __exportStar(require("./CustomProxy"), exports);
45
+ __exportStar(require("./SessionConfigV1ProxyItem"), exports);
46
+ __exportStar(require("./SessionConfigV1Proxy"), exports);
42
47
  __exportStar(require("./SessionConfigV1"), exports);
43
48
  __exportStar(require("./SessionResponse"), exports);
44
49
  __exportStar(require("./SessionsResponse"), exports);
@@ -9,7 +9,7 @@ export declare class AirtopClient {
9
9
  private _client;
10
10
  private _windowsWrapper;
11
11
  private _sessionsWrapper;
12
- constructor(options?: AugmentedOptions);
12
+ constructor(options: AugmentedOptions);
13
13
  get windows(): AirtopWindows;
14
14
  get sessions(): AirtopSessions;
15
15
  get profiles(): import("../api/resources/profiles/client/Client").Profiles;
@@ -27,9 +27,9 @@ export declare class AirtopWindows {
27
27
  loadUrl(sessionId: string, windowId: string, request: Airtop.WindowLoadUrlV1Body, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.EmptyResponse>;
28
28
  close(sessionId: string, windowId: string, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowIdResponse>;
29
29
  getWindowInfo(sessionId: string, windowId: string, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
30
- promptContent(sessionId: string, windowId: string, request: Airtop.PromptContentRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
30
+ promptContent(sessionId: string, windowId: string, request: Airtop.SessionContentPromptHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
31
31
  scrapeContent(sessionId: string, windowId: string, request?: Airtop.ScrapeContentRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.ScrapeResponse>;
32
- summarizeContent(sessionId: string, windowId: string, request?: Airtop.SummarizeContentRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
32
+ summarizeContent(sessionId: string, windowId: string, request?: Airtop.SessionSummaryHandlerRequestBody, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.AiPromptResponse>;
33
33
  getWindowInfoForPuppeteerPage(session: Airtop.ExternalSessionWithConnectionInfo, page: puppeteer.Page, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
34
34
  getWindowInfoForPlaywrightPage(session: Airtop.ExternalSessionWithConnectionInfo, page: playwright.Page, request?: Airtop.GetWindowInfoRequest, requestOptions?: WindowsNamespace.RequestOptions): Promise<Airtop.WindowResponse>;
35
35
  private executeSeleniumCDPCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airtop/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airtop-ai/airtop-node-sdk",
6
6
  "main": "./index.js",
@@ -9,7 +9,8 @@
9
9
  "format": "prettier . --write --ignore-unknown",
10
10
  "build": "tsc",
11
11
  "prepack": "cp -rv dist/. .",
12
- "test": "jest"
12
+ "test": "jest",
13
+ "prepublish": "yarn build"
13
14
  },
14
15
  "dependencies": {
15
16
  "url-join": "4.0.1",
package/reference.md CHANGED
@@ -726,7 +726,7 @@ await client.windows.promptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334
726
726
  <dl>
727
727
  <dd>
728
728
 
729
- **request:** `Airtop.PromptContentRequest`
729
+ **request:** `Airtop.SessionContentPromptHandlerRequestBody`
730
730
 
731
731
  </dd>
732
732
  </dl>
@@ -854,7 +854,7 @@ await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0
854
854
  <dl>
855
855
  <dd>
856
856
 
857
- **request:** `Airtop.SummarizeContentRequest`
857
+ **request:** `Airtop.SessionSummaryHandlerRequestBody`
858
858
 
859
859
  </dd>
860
860
  </dl>
@@ -11,5 +11,6 @@ export declare namespace CreateWindowInputV1Body {
11
11
  screenResolution?: string | null;
12
12
  url?: string | null;
13
13
  waitUntil?: CreateWindowInputV1BodyWaitUntil.Raw | null;
14
+ waitUntilTimeoutSeconds?: number | null;
14
15
  }
15
16
  }
@@ -33,4 +33,5 @@ exports.CreateWindowInputV1Body = core.serialization.object({
33
33
  screenResolution: core.serialization.string().optional(),
34
34
  url: core.serialization.string().optional(),
35
35
  waitUntil: CreateWindowInputV1BodyWaitUntil_1.CreateWindowInputV1BodyWaitUntil.optional(),
36
+ waitUntilTimeoutSeconds: core.serialization.number().optional(),
36
37
  });
@@ -4,12 +4,10 @@
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";
8
- export declare const PromptContentRequest: core.serialization.Schema<serializers.PromptContentRequest.Raw, Airtop.PromptContentRequest>;
9
- export declare namespace PromptContentRequest {
7
+ export declare const SessionContentPromptHandlerRequestBody: core.serialization.Schema<serializers.SessionContentPromptHandlerRequestBody.Raw, Airtop.SessionContentPromptHandlerRequestBody>;
8
+ export declare namespace SessionContentPromptHandlerRequestBody {
10
9
  interface Raw {
11
10
  clientRequestId?: string | null;
12
- configuration?: PromptContentConfig.Raw | null;
13
11
  costThresholdCredits?: number | null;
14
12
  followPaginationLinks?: boolean | null;
15
13
  prompt: string;
@@ -26,12 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PromptContentRequest = void 0;
29
+ exports.SessionContentPromptHandlerRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const PromptContentConfig_1 = require("../../../../types/PromptContentConfig");
32
- exports.PromptContentRequest = core.serialization.object({
31
+ exports.SessionContentPromptHandlerRequestBody = core.serialization.object({
33
32
  clientRequestId: core.serialization.string().optional(),
34
- configuration: PromptContentConfig_1.PromptContentConfig.optional(),
35
33
  costThresholdCredits: core.serialization.number().optional(),
36
34
  followPaginationLinks: core.serialization.boolean().optional(),
37
35
  prompt: core.serialization.string(),
@@ -4,12 +4,10 @@
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";
8
- export declare const SummarizeContentRequest: core.serialization.Schema<serializers.SummarizeContentRequest.Raw, Airtop.SummarizeContentRequest>;
9
- export declare namespace SummarizeContentRequest {
7
+ export declare const SessionSummaryHandlerRequestBody: core.serialization.Schema<serializers.SessionSummaryHandlerRequestBody.Raw, Airtop.SessionSummaryHandlerRequestBody>;
8
+ export declare namespace SessionSummaryHandlerRequestBody {
10
9
  interface Raw {
11
10
  clientRequestId?: string | null;
12
- configuration?: SummaryConfig.Raw | null;
13
11
  costThresholdCredits?: number | null;
14
12
  prompt?: string | null;
15
13
  timeThresholdSeconds?: number | null;
@@ -26,12 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SummarizeContentRequest = void 0;
29
+ exports.SessionSummaryHandlerRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const SummaryConfig_1 = require("../../../../types/SummaryConfig");
32
- exports.SummarizeContentRequest = core.serialization.object({
31
+ exports.SessionSummaryHandlerRequestBody = core.serialization.object({
33
32
  clientRequestId: core.serialization.string().optional(),
34
- configuration: SummaryConfig_1.SummaryConfig.optional(),
35
33
  costThresholdCredits: core.serialization.number().optional(),
36
34
  prompt: core.serialization.string().optional(),
37
35
  timeThresholdSeconds: core.serialization.number().optional(),
@@ -10,5 +10,6 @@ export declare namespace WindowLoadUrlV1Body {
10
10
  interface Raw {
11
11
  url: string;
12
12
  waitUntil?: WindowLoadUrlV1BodyWaitUntil.Raw | null;
13
+ waitUntilTimeoutSeconds?: number | null;
13
14
  }
14
15
  }
@@ -32,4 +32,5 @@ const WindowLoadUrlV1BodyWaitUntil_1 = require("../../types/WindowLoadUrlV1BodyW
32
32
  exports.WindowLoadUrlV1Body = core.serialization.object({
33
33
  url: core.serialization.string(),
34
34
  waitUntil: WindowLoadUrlV1BodyWaitUntil_1.WindowLoadUrlV1BodyWaitUntil.optional(),
35
+ waitUntilTimeoutSeconds: core.serialization.number().optional(),
35
36
  });
@@ -1,5 +1,5 @@
1
1
  export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
2
2
  export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
3
- export { PromptContentRequest } from "./PromptContentRequest";
3
+ export { SessionContentPromptHandlerRequestBody } from "./SessionContentPromptHandlerRequestBody";
4
4
  export { ScrapeContentRequest } from "./ScrapeContentRequest";
5
- export { SummarizeContentRequest } from "./SummarizeContentRequest";
5
+ export { SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SummarizeContentRequest = exports.ScrapeContentRequest = exports.PromptContentRequest = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
3
+ exports.SessionSummaryHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionContentPromptHandlerRequestBody = 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 PromptContentRequest_1 = require("./PromptContentRequest");
9
- Object.defineProperty(exports, "PromptContentRequest", { enumerable: true, get: function () { return PromptContentRequest_1.PromptContentRequest; } });
8
+ var SessionContentPromptHandlerRequestBody_1 = require("./SessionContentPromptHandlerRequestBody");
9
+ Object.defineProperty(exports, "SessionContentPromptHandlerRequestBody", { enumerable: true, get: function () { return SessionContentPromptHandlerRequestBody_1.SessionContentPromptHandlerRequestBody; } });
10
10
  var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
11
11
  Object.defineProperty(exports, "ScrapeContentRequest", { enumerable: true, get: function () { return ScrapeContentRequest_1.ScrapeContentRequest; } });
12
- var SummarizeContentRequest_1 = require("./SummarizeContentRequest");
13
- Object.defineProperty(exports, "SummarizeContentRequest", { enumerable: true, get: function () { return SummarizeContentRequest_1.SummarizeContentRequest; } });
12
+ var SessionSummaryHandlerRequestBody_1 = require("./SessionSummaryHandlerRequestBody");
13
+ Object.defineProperty(exports, "SessionSummaryHandlerRequestBody", { enumerable: true, get: function () { return SessionSummaryHandlerRequestBody_1.SessionSummaryHandlerRequestBody; } });
@@ -6,5 +6,5 @@ import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const CreateWindowInputV1BodyWaitUntil: core.serialization.Schema<serializers.CreateWindowInputV1BodyWaitUntil.Raw, Airtop.CreateWindowInputV1BodyWaitUntil>;
8
8
  export declare namespace CreateWindowInputV1BodyWaitUntil {
9
- type Raw = "load" | "domContentLoaded";
9
+ type Raw = "load" | "domContentLoaded" | "complete";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateWindowInputV1BodyWaitUntil = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.CreateWindowInputV1BodyWaitUntil = core.serialization.enum_(["load", "domContentLoaded"]);
31
+ exports.CreateWindowInputV1BodyWaitUntil = core.serialization.enum_(["load", "domContentLoaded", "complete"]);
@@ -6,5 +6,5 @@ import * as Airtop from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const WindowLoadUrlV1BodyWaitUntil: core.serialization.Schema<serializers.WindowLoadUrlV1BodyWaitUntil.Raw, Airtop.WindowLoadUrlV1BodyWaitUntil>;
8
8
  export declare namespace WindowLoadUrlV1BodyWaitUntil {
9
- type Raw = "load" | "domContentLoaded";
9
+ type Raw = "load" | "domContentLoaded" | "complete";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.WindowLoadUrlV1BodyWaitUntil = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.WindowLoadUrlV1BodyWaitUntil = core.serialization.enum_(["load", "domContentLoaded"]);
31
+ exports.WindowLoadUrlV1BodyWaitUntil = core.serialization.enum_(["load", "domContentLoaded", "complete"]);
@@ -0,0 +1,11 @@
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 { Proxy } from "./Proxy";
8
+ export declare const CustomProxy: core.serialization.Schema<serializers.CustomProxy.Raw, Airtop.CustomProxy>;
9
+ export declare namespace CustomProxy {
10
+ type Raw = string | Proxy.Raw;
11
+ }
@@ -0,0 +1,32 @@
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.CustomProxy = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Proxy_1 = require("./Proxy");
32
+ exports.CustomProxy = core.serialization.undiscriminatedUnion([core.serialization.string(), Proxy_1.Proxy]);
@@ -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
+ export declare const ErrorDetail: core.serialization.ObjectSchema<serializers.ErrorDetail.Raw, Airtop.ErrorDetail>;
8
+ export declare namespace ErrorDetail {
9
+ interface Raw {
10
+ location?: string | null;
11
+ message?: string | null;
12
+ value?: unknown | 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.ErrorDetail = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ErrorDetail = core.serialization.object({
32
+ location: core.serialization.string().optional(),
33
+ message: core.serialization.string().optional(),
34
+ value: core.serialization.unknown().optional(),
35
+ });
@@ -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 { ErrorDetail } from "./ErrorDetail";
8
+ export declare const ErrorModel: core.serialization.ObjectSchema<serializers.ErrorModel.Raw, Airtop.ErrorModel>;
9
+ export declare namespace ErrorModel {
10
+ interface Raw {
11
+ detail?: string | null;
12
+ errors?: ErrorDetail.Raw[] | null;
13
+ instance?: string | null;
14
+ status?: number | null;
15
+ title?: string | null;
16
+ type?: string | 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.ErrorModel = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ErrorDetail_1 = require("./ErrorDetail");
32
+ exports.ErrorModel = core.serialization.object({
33
+ detail: core.serialization.string().optional(),
34
+ errors: core.serialization.list(ErrorDetail_1.ErrorDetail).optional(),
35
+ instance: core.serialization.string().optional(),
36
+ status: core.serialization.number().optional(),
37
+ title: core.serialization.string().optional(),
38
+ type: core.serialization.string().optional(),
39
+ });
@@ -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
+ export declare const Proxy: core.serialization.ObjectSchema<serializers.Proxy.Raw, Airtop.Proxy>;
8
+ export declare namespace Proxy {
9
+ interface Raw {
10
+ password?: string | null;
11
+ url: string;
12
+ username?: string | null;
13
+ }
14
+ }