@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
@@ -1,17 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Airtop from "../../../../index";
5
4
  /**
6
5
  * @example
7
6
  * {
8
7
  * prompt: "What is the main idea of this page?"
9
8
  * }
10
9
  */
11
- export interface PromptContentRequest {
10
+ export interface SessionContentPromptHandlerRequestBody {
12
11
  clientRequestId?: string;
13
- /** Request configuration */
14
- configuration?: Airtop.PromptContentConfig;
15
12
  /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
16
13
  costThresholdCredits?: number;
17
14
  /** Make a best effort attempt to load more content items than are originally displayed on the page, e.g. by following pagination links, clicking controls to load more content, utilizing infinite scrolling, etc. This can be quite a bit more costly, but may be necessary for sites that require additional interaction to show the needed results. You can provide constraints in your prompt (e.g. on the total number of pages or results to consider). */
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Airtop from "../../../../index";
5
4
  /**
6
5
  * @example
7
6
  * {}
8
7
  */
9
- export interface SummarizeContentRequest {
8
+ export interface SessionSummaryHandlerRequestBody {
10
9
  clientRequestId?: string;
11
- /** Request configuration */
12
- configuration?: Airtop.SummaryConfig;
13
10
  /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
14
11
  costThresholdCredits?: number;
15
12
  /** An optional prompt providing the Airtop AI model with additional direction or constraints about the summary (such as desired length). */
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,8 @@ import * as Airtop from "../../../../index";
11
11
  export interface WindowLoadUrlV1Body {
12
12
  /** Url to navigate to */
13
13
  url: string;
14
- /** Wait until the specified loading event occurs. Defaults to 'load', which waits until the page has loaded */
14
+ /** Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, and 'complete' will wait until the page and all it's iframes have loaded it's dom and assets. */
15
15
  waitUntil?: Airtop.WindowLoadUrlV1BodyWaitUntil;
16
+ /** Maximum time in seconds to wait for the specified loading event to occur before timing out. */
17
+ waitUntilTimeoutSeconds?: number;
16
18
  }
@@ -1,6 +1,6 @@
1
1
  export { type CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
2
2
  export { type GetWindowInfoRequest } from "./GetWindowInfoRequest";
3
3
  export { type WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
4
- export { type PromptContentRequest } from "./PromptContentRequest";
4
+ export { type SessionContentPromptHandlerRequestBody } from "./SessionContentPromptHandlerRequestBody";
5
5
  export { type ScrapeContentRequest } from "./ScrapeContentRequest";
6
- export { type SummarizeContentRequest } from "./SummarizeContentRequest";
6
+ export { type SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
@@ -2,10 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * Wait until the specified loading event occurs. Defaults to 'load', which waits until the page has loaded
5
+ * Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, and 'complete' will wait until the page and all it's iframes have loaded it's dom and assets.
6
6
  */
7
- export declare type CreateWindowInputV1BodyWaitUntil = "load" | "domContentLoaded";
7
+ export declare type CreateWindowInputV1BodyWaitUntil = "load" | "domContentLoaded" | "complete";
8
8
  export declare const CreateWindowInputV1BodyWaitUntil: {
9
9
  readonly Load: "load";
10
10
  readonly DomContentLoaded: "domContentLoaded";
11
+ readonly Complete: "complete";
11
12
  };
@@ -7,4 +7,5 @@ exports.CreateWindowInputV1BodyWaitUntil = void 0;
7
7
  exports.CreateWindowInputV1BodyWaitUntil = {
8
8
  Load: "load",
9
9
  DomContentLoaded: "domContentLoaded",
10
+ Complete: "complete",
10
11
  };
@@ -2,10 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * Wait until the specified loading event occurs. Defaults to 'load', which waits until the page has loaded
5
+ * Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, and 'complete' will wait until the page and all it's iframes have loaded it's dom and assets.
6
6
  */
7
- export declare type WindowLoadUrlV1BodyWaitUntil = "load" | "domContentLoaded";
7
+ export declare type WindowLoadUrlV1BodyWaitUntil = "load" | "domContentLoaded" | "complete";
8
8
  export declare const WindowLoadUrlV1BodyWaitUntil: {
9
9
  readonly Load: "load";
10
10
  readonly DomContentLoaded: "domContentLoaded";
11
+ readonly Complete: "complete";
11
12
  };
@@ -7,4 +7,5 @@ exports.WindowLoadUrlV1BodyWaitUntil = void 0;
7
7
  exports.WindowLoadUrlV1BodyWaitUntil = {
8
8
  Load: "load",
9
9
  DomContentLoaded: "domContentLoaded",
10
+ Complete: "complete",
10
11
  };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ /**
6
+ * Configuration for a single custom proxy.
7
+ */
8
+ export declare type CustomProxy =
9
+ /**
10
+ * Url of the proxy. */
11
+ string
12
+ /**
13
+ * Proxy object with url of the proxy as a parameter. Takes optional username and password. */
14
+ | Airtop.Proxy;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ErrorDetail {
5
+ /** Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id' */
6
+ location?: string;
7
+ /** Error message text */
8
+ message?: string;
9
+ value?: unknown;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ export interface ErrorModel {
6
+ /** A human-readable explanation specific to this occurrence of the problem. */
7
+ detail?: string;
8
+ /** Optional list of individual error details */
9
+ errors?: Airtop.ErrorDetail[];
10
+ /** A URI reference that identifies the specific occurrence of the problem. */
11
+ instance?: string;
12
+ /** HTTP status code */
13
+ status?: number;
14
+ /** A short, human-readable summary of the problem type. This value should not change between occurrences of the error. */
15
+ title?: string;
16
+ /** A URI reference to human-readable documentation for the error. */
17
+ type?: string;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Proxy object with url of the proxy as a parameter. Takes optional username and password.
6
+ */
7
+ export interface Proxy {
8
+ password?: string;
9
+ url: string;
10
+ username?: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Airtop from "../index";
4
5
  export interface SessionConfigV1 {
5
6
  /** Id of a profile to load into the session. */
6
7
  baseProfileId?: string;
7
8
  /** Persist the profile. */
8
9
  persistProfile?: boolean;
10
+ /** Proxy configuration. */
11
+ proxy?: Airtop.SessionConfigV1Proxy;
9
12
  /** Max length of session in minutes, after which it will terminate if not already deleted. */
10
13
  timeoutMinutes?: number;
11
14
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ /**
6
+ * Proxy configuration.
7
+ */
8
+ export declare type SessionConfigV1Proxy =
9
+ /**
10
+ * Configuration for a single custom proxy. */
11
+ Airtop.CustomProxy
12
+ /**
13
+ * Array of proxy configurations. Includes a domain pattern and a proxy configuration to assign proxies to specific domains. */
14
+ | Airtop.SessionConfigV1ProxyItem[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../index";
5
+ /**
6
+ * You can set multiple proxies. You associate each proxy with a domain pattern. If the domain matches the pattern, the proxy is used. Pattern can contain '?' to match any single character, and '_' to match any sequence of characters. For example, '_.example.com' will match 'www.example.com' and 'sub.example.com'
7
+ */
8
+ export interface SessionConfigV1ProxyItem {
9
+ domainPattern: string;
10
+ /** Configuration for a single custom proxy. */
11
+ relay: Airtop.CustomProxy;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -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
+ }
@@ -26,14 +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.ErrorEnvelope = void 0;
29
+ exports.ErrorDetail = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const Issue_1 = require("./Issue");
32
- exports.ErrorEnvelope = core.serialization.object({
33
- httpStatus: core.serialization.property("HttpStatus", core.serialization.number()),
34
- message: core.serialization.property("Message", core.serialization.string()),
35
- data: core.serialization.unknown(),
36
- errors: core.serialization.list(Issue_1.Issue).optional(),
37
- meta: core.serialization.unknown(),
38
- warnings: core.serialization.list(Issue_1.Issue).optional(),
31
+ exports.ErrorDetail = core.serialization.object({
32
+ location: core.serialization.string().optional(),
33
+ message: core.serialization.string().optional(),
34
+ value: core.serialization.unknown().optional(),
39
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
+ }
@@ -26,14 +26,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ErrorEnvelope = void 0;
29
+ exports.ErrorModel = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const Issue_1 = require("./Issue");
32
- exports.ErrorEnvelope = core.serialization.object({
33
- httpStatus: core.serialization.property("HttpStatus", core.serialization.number()),
34
- message: core.serialization.property("Message", core.serialization.string()),
35
- data: core.serialization.unknown(),
36
- errors: core.serialization.list(Issue_1.Issue).optional(),
37
- meta: core.serialization.unknown(),
38
- warnings: core.serialization.list(Issue_1.Issue).optional(),
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
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
+ }