@airtop/sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/profiles/client/Client.js +4 -4
- package/api/resources/sessions/client/Client.js +10 -10
- package/api/resources/windows/client/Client.d.ts +30 -0
- package/api/resources/windows/client/Client.js +191 -9
- package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +16 -0
- package/api/resources/windows/client/requests/CreateWindowInputV1Body.js +5 -0
- package/api/resources/windows/client/requests/PromptContentRequest.d.ts +3 -0
- package/api/resources/windows/client/requests/SummarizeContentRequest.d.ts +3 -0
- package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +16 -0
- package/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +5 -0
- package/api/resources/windows/client/requests/index.d.ts +2 -0
- package/api/resources/windows/index.d.ts +1 -0
- package/api/resources/windows/index.js +1 -0
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +11 -0
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +10 -0
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +11 -0
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +10 -0
- package/api/resources/windows/types/index.d.ts +2 -0
- package/api/resources/windows/types/index.js +18 -0
- package/api/types/EmptyResponse.d.ts +10 -0
- package/api/types/EmptyResponse.js +5 -0
- package/api/types/EmptyResponseJson.d.ts +7 -0
- package/api/types/EmptyResponseJson.js +5 -0
- package/api/types/EnvelopeStatusDefaultMeta.d.ts +8 -0
- package/api/types/EnvelopeStatusDefaultMeta.js +5 -0
- package/api/types/EnvelopeStatusDefaultMetaStatus.d.ts +9 -0
- package/api/types/EnvelopeStatusDefaultMetaStatus.js +11 -0
- package/api/types/PromptContentConfig.d.ts +8 -0
- package/api/types/PromptContentConfig.js +5 -0
- package/api/types/PromptContentExperimentalConfig.d.ts +7 -0
- package/api/types/PromptContentExperimentalConfig.js +5 -0
- package/api/types/SummaryConfig.d.ts +7 -0
- package/api/types/SummaryConfig.js +5 -0
- package/api/types/SummaryExperimentalConfig.d.ts +7 -0
- package/api/types/SummaryExperimentalConfig.js +5 -0
- package/api/types/WindowId.d.ts +9 -0
- package/api/types/WindowId.js +5 -0
- package/api/types/WindowIdResponse.d.ts +10 -0
- package/api/types/WindowIdResponse.js +5 -0
- package/api/types/index.d.ts +10 -0
- package/api/types/index.js +10 -0
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/profiles/client/Client.js +4 -4
- package/dist/api/resources/sessions/client/Client.js +10 -10
- package/dist/api/resources/windows/client/Client.d.ts +30 -0
- package/dist/api/resources/windows/client/Client.js +191 -9
- package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +16 -0
- package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.js +5 -0
- package/dist/api/resources/windows/client/requests/PromptContentRequest.d.ts +3 -0
- package/dist/api/resources/windows/client/requests/SummarizeContentRequest.d.ts +3 -0
- package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +16 -0
- package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +5 -0
- package/dist/api/resources/windows/client/requests/index.d.ts +2 -0
- package/dist/api/resources/windows/index.d.ts +1 -0
- package/dist/api/resources/windows/index.js +1 -0
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +11 -0
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +10 -0
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +11 -0
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +10 -0
- package/dist/api/resources/windows/types/index.d.ts +2 -0
- package/dist/api/resources/windows/types/index.js +18 -0
- package/dist/api/types/EmptyResponse.d.ts +10 -0
- package/dist/api/types/EmptyResponse.js +5 -0
- package/dist/api/types/EmptyResponseJson.d.ts +7 -0
- package/dist/api/types/EmptyResponseJson.js +5 -0
- package/dist/api/types/EnvelopeStatusDefaultMeta.d.ts +8 -0
- package/dist/api/types/EnvelopeStatusDefaultMeta.js +5 -0
- package/dist/api/types/EnvelopeStatusDefaultMetaStatus.d.ts +9 -0
- package/dist/api/types/EnvelopeStatusDefaultMetaStatus.js +11 -0
- package/dist/api/types/PromptContentConfig.d.ts +8 -0
- package/dist/api/types/PromptContentConfig.js +5 -0
- package/dist/api/types/PromptContentExperimentalConfig.d.ts +7 -0
- package/dist/api/types/PromptContentExperimentalConfig.js +5 -0
- package/dist/api/types/SummaryConfig.d.ts +7 -0
- package/dist/api/types/SummaryConfig.js +5 -0
- package/dist/api/types/SummaryExperimentalConfig.d.ts +7 -0
- package/dist/api/types/SummaryExperimentalConfig.js +5 -0
- package/dist/api/types/WindowId.d.ts +9 -0
- package/dist/api/types/WindowId.js +5 -0
- package/dist/api/types/WindowIdResponse.d.ts +10 -0
- package/dist/api/types/WindowIdResponse.js +5 -0
- package/dist/api/types/index.d.ts +10 -0
- package/dist/api/types/index.js +10 -0
- package/dist/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +15 -0
- package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +36 -0
- package/dist/serialization/resources/windows/client/requests/PromptContentRequest.d.ts +2 -0
- package/dist/serialization/resources/windows/client/requests/PromptContentRequest.js +2 -0
- package/dist/serialization/resources/windows/client/requests/SummarizeContentRequest.d.ts +2 -0
- package/dist/serialization/resources/windows/client/requests/SummarizeContentRequest.js +2 -0
- package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +14 -0
- package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +35 -0
- package/dist/serialization/resources/windows/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/windows/client/requests/index.js +5 -1
- package/dist/serialization/resources/windows/index.d.ts +1 -0
- package/dist/serialization/resources/windows/index.js +1 -0
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +10 -0
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +31 -0
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +10 -0
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +31 -0
- package/dist/serialization/resources/windows/types/index.d.ts +2 -0
- package/dist/serialization/resources/windows/types/index.js +18 -0
- package/dist/serialization/types/EmptyResponse.d.ts +18 -0
- package/dist/serialization/types/EmptyResponse.js +39 -0
- package/dist/serialization/types/EmptyResponseJson.d.ts +12 -0
- package/dist/serialization/types/EmptyResponseJson.js +33 -0
- package/dist/serialization/types/EnvelopeStatusDefaultMeta.d.ts +14 -0
- package/dist/serialization/types/EnvelopeStatusDefaultMeta.js +35 -0
- package/dist/serialization/types/EnvelopeStatusDefaultMetaStatus.d.ts +10 -0
- package/dist/serialization/types/EnvelopeStatusDefaultMetaStatus.js +31 -0
- package/dist/serialization/types/PromptContentConfig.d.ts +13 -0
- package/dist/serialization/types/PromptContentConfig.js +34 -0
- package/dist/serialization/types/PromptContentExperimentalConfig.d.ts +12 -0
- package/dist/serialization/types/PromptContentExperimentalConfig.js +33 -0
- package/dist/serialization/types/SummaryConfig.d.ts +13 -0
- package/dist/serialization/types/SummaryConfig.js +34 -0
- package/dist/serialization/types/SummaryExperimentalConfig.d.ts +12 -0
- package/dist/serialization/types/SummaryExperimentalConfig.js +33 -0
- package/dist/serialization/types/WindowId.d.ts +13 -0
- package/dist/serialization/types/WindowId.js +34 -0
- package/dist/serialization/types/WindowIdResponse.d.ts +18 -0
- package/dist/serialization/types/WindowIdResponse.js +39 -0
- package/dist/serialization/types/index.d.ts +10 -0
- package/dist/serialization/types/index.js +10 -0
- package/dist/wrapper/AirtopWindows.d.ts +3 -0
- package/dist/wrapper/AirtopWindows.js +15 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +178 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +15 -0
- package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +36 -0
- package/serialization/resources/windows/client/requests/PromptContentRequest.d.ts +2 -0
- package/serialization/resources/windows/client/requests/PromptContentRequest.js +2 -0
- package/serialization/resources/windows/client/requests/SummarizeContentRequest.d.ts +2 -0
- package/serialization/resources/windows/client/requests/SummarizeContentRequest.js +2 -0
- package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +14 -0
- package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +35 -0
- package/serialization/resources/windows/client/requests/index.d.ts +2 -0
- package/serialization/resources/windows/client/requests/index.js +5 -1
- package/serialization/resources/windows/index.d.ts +1 -0
- package/serialization/resources/windows/index.js +1 -0
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +10 -0
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +31 -0
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +10 -0
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +31 -0
- package/serialization/resources/windows/types/index.d.ts +2 -0
- package/serialization/resources/windows/types/index.js +18 -0
- package/serialization/types/EmptyResponse.d.ts +18 -0
- package/serialization/types/EmptyResponse.js +39 -0
- package/serialization/types/EmptyResponseJson.d.ts +12 -0
- package/serialization/types/EmptyResponseJson.js +33 -0
- package/serialization/types/EnvelopeStatusDefaultMeta.d.ts +14 -0
- package/serialization/types/EnvelopeStatusDefaultMeta.js +35 -0
- package/serialization/types/EnvelopeStatusDefaultMetaStatus.d.ts +10 -0
- package/serialization/types/EnvelopeStatusDefaultMetaStatus.js +31 -0
- package/serialization/types/PromptContentConfig.d.ts +13 -0
- package/serialization/types/PromptContentConfig.js +34 -0
- package/serialization/types/PromptContentExperimentalConfig.d.ts +12 -0
- package/serialization/types/PromptContentExperimentalConfig.js +33 -0
- package/serialization/types/SummaryConfig.d.ts +13 -0
- package/serialization/types/SummaryConfig.js +34 -0
- package/serialization/types/SummaryExperimentalConfig.d.ts +12 -0
- package/serialization/types/SummaryExperimentalConfig.js +33 -0
- package/serialization/types/WindowId.d.ts +13 -0
- package/serialization/types/WindowId.js +34 -0
- package/serialization/types/WindowIdResponse.d.ts +18 -0
- package/serialization/types/WindowIdResponse.js +39 -0
- package/serialization/types/index.d.ts +10 -0
- package/serialization/types/index.js +10 -0
- package/wrapper/AirtopWindows.d.ts +3 -0
- package/wrapper/AirtopWindows.js +15 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../../../../index";
|
5
|
+
/**
|
6
|
+
* @example
|
7
|
+
* {
|
8
|
+
* url: "https://www.airtop.ai"
|
9
|
+
* }
|
10
|
+
*/
|
11
|
+
export interface WindowLoadUrlV1Body {
|
12
|
+
/** Url to navigate to */
|
13
|
+
url: string;
|
14
|
+
/** Wait until the specified loading event occurs. Defaults to 'load', which waits until the page has loaded */
|
15
|
+
waitUntil?: Airtop.WindowLoadUrlV1BodyWaitUntil;
|
16
|
+
}
|
@@ -1,4 +1,6 @@
|
|
1
|
+
export { type CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
|
1
2
|
export { type GetWindowInfoRequest } from "./GetWindowInfoRequest";
|
3
|
+
export { type WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
|
2
4
|
export { type PromptContentRequest } from "./PromptContentRequest";
|
3
5
|
export { type ScrapeContentRequest } from "./ScrapeContentRequest";
|
4
6
|
export { type SummarizeContentRequest } from "./SummarizeContentRequest";
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./types"), exports);
|
17
18
|
__exportStar(require("./client"), exports);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Wait until the specified loading event occurs. Defaults to 'load', which waits until the page has loaded
|
6
|
+
*/
|
7
|
+
export declare type CreateWindowInputV1BodyWaitUntil = "load" | "domContentLoaded";
|
8
|
+
export declare const CreateWindowInputV1BodyWaitUntil: {
|
9
|
+
readonly Load: "load";
|
10
|
+
readonly DomContentLoaded: "domContentLoaded";
|
11
|
+
};
|
@@ -0,0 +1,10 @@
|
|
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
|
+
exports.CreateWindowInputV1BodyWaitUntil = void 0;
|
7
|
+
exports.CreateWindowInputV1BodyWaitUntil = {
|
8
|
+
Load: "load",
|
9
|
+
DomContentLoaded: "domContentLoaded",
|
10
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Wait until the specified loading event occurs. Defaults to 'load', which waits until the page has loaded
|
6
|
+
*/
|
7
|
+
export declare type WindowLoadUrlV1BodyWaitUntil = "load" | "domContentLoaded";
|
8
|
+
export declare const WindowLoadUrlV1BodyWaitUntil: {
|
9
|
+
readonly Load: "load";
|
10
|
+
readonly DomContentLoaded: "domContentLoaded";
|
11
|
+
};
|
@@ -0,0 +1,10 @@
|
|
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
|
+
exports.WindowLoadUrlV1BodyWaitUntil = void 0;
|
7
|
+
exports.WindowLoadUrlV1BodyWaitUntil = {
|
8
|
+
Load: "load",
|
9
|
+
DomContentLoaded: "domContentLoaded",
|
10
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./CreateWindowInputV1BodyWaitUntil"), exports);
|
18
|
+
__exportStar(require("./WindowLoadUrlV1BodyWaitUntil"), exports);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface EmptyResponse {
|
6
|
+
data: Airtop.EmptyResponseJson;
|
7
|
+
errors?: Airtop.Issue[];
|
8
|
+
meta: Airtop.EnvelopeStatusDefaultMeta;
|
9
|
+
warnings?: Airtop.Issue[];
|
10
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type EnvelopeStatusDefaultMetaStatus = "success" | " failure" | " timeout";
|
5
|
+
export declare const EnvelopeStatusDefaultMetaStatus: {
|
6
|
+
readonly Success: "success";
|
7
|
+
readonly Failure: " failure";
|
8
|
+
readonly Timeout: " timeout";
|
9
|
+
};
|
@@ -0,0 +1,11 @@
|
|
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
|
+
exports.EnvelopeStatusDefaultMetaStatus = void 0;
|
7
|
+
exports.EnvelopeStatusDefaultMetaStatus = {
|
8
|
+
Success: "success",
|
9
|
+
Failure: " failure",
|
10
|
+
Timeout: " timeout",
|
11
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface PromptContentConfig {
|
6
|
+
/** Experimental configuration options. These may be subject to change and are not guaranteed to be stable across versions. */
|
7
|
+
experimental?: Airtop.PromptContentExperimentalConfig;
|
8
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface PromptContentExperimentalConfig {
|
5
|
+
/** If set to 'enabled', Airtop AI will also analyze the web page visually when fulfilling the request. Note that this can add to both the execution time and cost of the operation. If the page is too large, the context window can be exceeded and the request will fail. If set to 'auto' or 'disabled', no visual analysis will be conducted. If 'followPaginationLinks' is set to true, visual analysis will be conducted unless 'includeVisualAnalysis' is explicitly set to 'disabled'. */
|
6
|
+
includeVisualAnalysis?: string;
|
7
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface SummaryExperimentalConfig {
|
5
|
+
/** If set to 'enabled', Airtop AI will also analyze the web page visually when fulfilling the request. Note that this can add to both the execution time and cost of the operation. If the page is too large, the context window can be exceeded and the request will fail. If set to 'auto' or 'disabled', no visual analysis will be conducted. */
|
6
|
+
includeVisualAnalysis?: string;
|
7
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface WindowIdResponse {
|
6
|
+
data: Airtop.WindowId;
|
7
|
+
errors?: Airtop.Issue[];
|
8
|
+
meta: Airtop.EnvelopeDefaultMeta;
|
9
|
+
warnings?: Airtop.Issue[];
|
10
|
+
}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
export * from "./AiPromptResponse";
|
2
2
|
export * from "./AiResponseEnvelope";
|
3
3
|
export * from "./ClientProvidedResponseMetadata";
|
4
|
+
export * from "./EmptyResponse";
|
5
|
+
export * from "./EmptyResponseJson";
|
4
6
|
export * from "./EnvelopeDefaultMeta";
|
7
|
+
export * from "./EnvelopeStatusDefaultMetaStatus";
|
8
|
+
export * from "./EnvelopeStatusDefaultMeta";
|
5
9
|
export * from "./ErrorEnvelope";
|
6
10
|
export * from "./ErrorMessage";
|
7
11
|
export * from "./ExternalProfileV1";
|
@@ -13,6 +17,8 @@ export * from "./ExternalSessionWithConnectionInfo";
|
|
13
17
|
export * from "./Issue";
|
14
18
|
export * from "./Pagination";
|
15
19
|
export * from "./ProfilesResponse";
|
20
|
+
export * from "./PromptContentConfig";
|
21
|
+
export * from "./PromptContentExperimentalConfig";
|
16
22
|
export * from "./ScrapeResponse";
|
17
23
|
export * from "./ScrapeResponseContent";
|
18
24
|
export * from "./ScrapeResponseEnvelope";
|
@@ -23,5 +29,9 @@ export * from "./SessionsResponse";
|
|
23
29
|
export * from "./SessionsWithPagination";
|
24
30
|
export * from "./StatusMessageStatus";
|
25
31
|
export * from "./StatusMessage";
|
32
|
+
export * from "./SummaryConfig";
|
33
|
+
export * from "./SummaryExperimentalConfig";
|
26
34
|
export * from "./Window";
|
35
|
+
export * from "./WindowId";
|
36
|
+
export * from "./WindowIdResponse";
|
27
37
|
export * from "./WindowResponse";
|
package/dist/api/types/index.js
CHANGED
@@ -17,7 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AiPromptResponse"), exports);
|
18
18
|
__exportStar(require("./AiResponseEnvelope"), exports);
|
19
19
|
__exportStar(require("./ClientProvidedResponseMetadata"), exports);
|
20
|
+
__exportStar(require("./EmptyResponse"), exports);
|
21
|
+
__exportStar(require("./EmptyResponseJson"), exports);
|
20
22
|
__exportStar(require("./EnvelopeDefaultMeta"), exports);
|
23
|
+
__exportStar(require("./EnvelopeStatusDefaultMetaStatus"), exports);
|
24
|
+
__exportStar(require("./EnvelopeStatusDefaultMeta"), exports);
|
21
25
|
__exportStar(require("./ErrorEnvelope"), exports);
|
22
26
|
__exportStar(require("./ErrorMessage"), exports);
|
23
27
|
__exportStar(require("./ExternalProfileV1"), exports);
|
@@ -29,6 +33,8 @@ __exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
|
|
29
33
|
__exportStar(require("./Issue"), exports);
|
30
34
|
__exportStar(require("./Pagination"), exports);
|
31
35
|
__exportStar(require("./ProfilesResponse"), exports);
|
36
|
+
__exportStar(require("./PromptContentConfig"), exports);
|
37
|
+
__exportStar(require("./PromptContentExperimentalConfig"), exports);
|
32
38
|
__exportStar(require("./ScrapeResponse"), exports);
|
33
39
|
__exportStar(require("./ScrapeResponseContent"), exports);
|
34
40
|
__exportStar(require("./ScrapeResponseEnvelope"), exports);
|
@@ -39,5 +45,9 @@ __exportStar(require("./SessionsResponse"), exports);
|
|
39
45
|
__exportStar(require("./SessionsWithPagination"), exports);
|
40
46
|
__exportStar(require("./StatusMessageStatus"), exports);
|
41
47
|
__exportStar(require("./StatusMessage"), exports);
|
48
|
+
__exportStar(require("./SummaryConfig"), exports);
|
49
|
+
__exportStar(require("./SummaryExperimentalConfig"), exports);
|
42
50
|
__exportStar(require("./Window"), exports);
|
51
|
+
__exportStar(require("./WindowId"), exports);
|
52
|
+
__exportStar(require("./WindowIdResponse"), exports);
|
43
53
|
__exportStar(require("./WindowResponse"), exports);
|
package/dist/index.js
CHANGED
@@ -35,3 +35,4 @@ var AirtopClient_1 = require("./wrapper/AirtopClient");
|
|
35
35
|
Object.defineProperty(exports, "AirtopClient", { enumerable: true, get: function () { return AirtopClient_1.AirtopClient; } });
|
36
36
|
var types_1 = require("./live-view/types");
|
37
37
|
Object.defineProperty(exports, "LiveViewEventName", { enumerable: true, get: function () { return types_1.LiveViewEventName; } });
|
38
|
+
console.log('loading airtop sdk');
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export * as sessions from "./sessions";
|
2
2
|
export * from "./sessions/types";
|
3
|
-
export * from "./sessions/client/requests";
|
4
3
|
export * as windows from "./windows";
|
4
|
+
export * from "./windows/types";
|
5
|
+
export * from "./sessions/client/requests";
|
5
6
|
export * from "./windows/client/requests";
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.windows = exports.sessions = void 0;
|
30
30
|
exports.sessions = __importStar(require("./sessions"));
|
31
31
|
__exportStar(require("./sessions/types"), exports);
|
32
|
-
__exportStar(require("./sessions/client/requests"), exports);
|
33
32
|
exports.windows = __importStar(require("./windows"));
|
33
|
+
__exportStar(require("./windows/types"), exports);
|
34
|
+
__exportStar(require("./sessions/client/requests"), exports);
|
34
35
|
__exportStar(require("./windows/client/requests"), exports);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../index";
|
5
|
+
import * as Airtop from "../../../../../api/index";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
import { CreateWindowInputV1BodyWaitUntil } from "../../types/CreateWindowInputV1BodyWaitUntil";
|
8
|
+
export declare const CreateWindowInputV1Body: core.serialization.Schema<serializers.CreateWindowInputV1Body.Raw, Airtop.CreateWindowInputV1Body>;
|
9
|
+
export declare namespace CreateWindowInputV1Body {
|
10
|
+
interface Raw {
|
11
|
+
screenResolution?: string | null;
|
12
|
+
url?: string | null;
|
13
|
+
waitUntil?: CreateWindowInputV1BodyWaitUntil.Raw | null;
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.CreateWindowInputV1Body = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const CreateWindowInputV1BodyWaitUntil_1 = require("../../types/CreateWindowInputV1BodyWaitUntil");
|
32
|
+
exports.CreateWindowInputV1Body = core.serialization.object({
|
33
|
+
screenResolution: core.serialization.string().optional(),
|
34
|
+
url: core.serialization.string().optional(),
|
35
|
+
waitUntil: CreateWindowInputV1BodyWaitUntil_1.CreateWindowInputV1BodyWaitUntil.optional(),
|
36
|
+
});
|
@@ -4,10 +4,12 @@
|
|
4
4
|
import * as serializers from "../../../../index";
|
5
5
|
import * as Airtop from "../../../../../api/index";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
+
import { PromptContentConfig } from "../../../../types/PromptContentConfig";
|
7
8
|
export declare const PromptContentRequest: core.serialization.Schema<serializers.PromptContentRequest.Raw, Airtop.PromptContentRequest>;
|
8
9
|
export declare namespace PromptContentRequest {
|
9
10
|
interface Raw {
|
10
11
|
clientRequestId?: string | null;
|
12
|
+
configuration?: PromptContentConfig.Raw | null;
|
11
13
|
costThresholdCredits?: number | null;
|
12
14
|
followPaginationLinks?: boolean | null;
|
13
15
|
prompt: string;
|
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.PromptContentRequest = void 0;
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
31
|
+
const PromptContentConfig_1 = require("../../../../types/PromptContentConfig");
|
31
32
|
exports.PromptContentRequest = core.serialization.object({
|
32
33
|
clientRequestId: core.serialization.string().optional(),
|
34
|
+
configuration: PromptContentConfig_1.PromptContentConfig.optional(),
|
33
35
|
costThresholdCredits: core.serialization.number().optional(),
|
34
36
|
followPaginationLinks: core.serialization.boolean().optional(),
|
35
37
|
prompt: core.serialization.string(),
|
@@ -4,10 +4,12 @@
|
|
4
4
|
import * as serializers from "../../../../index";
|
5
5
|
import * as Airtop from "../../../../../api/index";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
+
import { SummaryConfig } from "../../../../types/SummaryConfig";
|
7
8
|
export declare const SummarizeContentRequest: core.serialization.Schema<serializers.SummarizeContentRequest.Raw, Airtop.SummarizeContentRequest>;
|
8
9
|
export declare namespace SummarizeContentRequest {
|
9
10
|
interface Raw {
|
10
11
|
clientRequestId?: string | null;
|
12
|
+
configuration?: SummaryConfig.Raw | null;
|
11
13
|
costThresholdCredits?: number | null;
|
12
14
|
prompt?: string | null;
|
13
15
|
timeThresholdSeconds?: number | null;
|
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.SummarizeContentRequest = void 0;
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
31
|
+
const SummaryConfig_1 = require("../../../../types/SummaryConfig");
|
31
32
|
exports.SummarizeContentRequest = core.serialization.object({
|
32
33
|
clientRequestId: core.serialization.string().optional(),
|
34
|
+
configuration: SummaryConfig_1.SummaryConfig.optional(),
|
33
35
|
costThresholdCredits: core.serialization.number().optional(),
|
34
36
|
prompt: core.serialization.string().optional(),
|
35
37
|
timeThresholdSeconds: core.serialization.number().optional(),
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../index";
|
5
|
+
import * as Airtop from "../../../../../api/index";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
import { WindowLoadUrlV1BodyWaitUntil } from "../../types/WindowLoadUrlV1BodyWaitUntil";
|
8
|
+
export declare const WindowLoadUrlV1Body: core.serialization.Schema<serializers.WindowLoadUrlV1Body.Raw, Airtop.WindowLoadUrlV1Body>;
|
9
|
+
export declare namespace WindowLoadUrlV1Body {
|
10
|
+
interface Raw {
|
11
|
+
url: string;
|
12
|
+
waitUntil?: WindowLoadUrlV1BodyWaitUntil.Raw | null;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.WindowLoadUrlV1Body = void 0;
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const WindowLoadUrlV1BodyWaitUntil_1 = require("../../types/WindowLoadUrlV1BodyWaitUntil");
|
32
|
+
exports.WindowLoadUrlV1Body = core.serialization.object({
|
33
|
+
url: core.serialization.string(),
|
34
|
+
waitUntil: WindowLoadUrlV1BodyWaitUntil_1.WindowLoadUrlV1BodyWaitUntil.optional(),
|
35
|
+
});
|
@@ -1,3 +1,5 @@
|
|
1
|
+
export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
|
2
|
+
export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
|
1
3
|
export { PromptContentRequest } from "./PromptContentRequest";
|
2
4
|
export { ScrapeContentRequest } from "./ScrapeContentRequest";
|
3
5
|
export { SummarizeContentRequest } from "./SummarizeContentRequest";
|
@@ -1,6 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SummarizeContentRequest = exports.ScrapeContentRequest = exports.PromptContentRequest = void 0;
|
3
|
+
exports.SummarizeContentRequest = exports.ScrapeContentRequest = exports.PromptContentRequest = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = void 0;
|
4
|
+
var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
|
5
|
+
Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
|
6
|
+
var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
|
7
|
+
Object.defineProperty(exports, "WindowLoadUrlV1Body", { enumerable: true, get: function () { return WindowLoadUrlV1Body_1.WindowLoadUrlV1Body; } });
|
4
8
|
var PromptContentRequest_1 = require("./PromptContentRequest");
|
5
9
|
Object.defineProperty(exports, "PromptContentRequest", { enumerable: true, get: function () { return PromptContentRequest_1.PromptContentRequest; } });
|
6
10
|
var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./types"), exports);
|
17
18
|
__exportStar(require("./client"), exports);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../index";
|
5
|
+
import * as Airtop from "../../../../api/index";
|
6
|
+
import * as core from "../../../../core";
|
7
|
+
export declare const CreateWindowInputV1BodyWaitUntil: core.serialization.Schema<serializers.CreateWindowInputV1BodyWaitUntil.Raw, Airtop.CreateWindowInputV1BodyWaitUntil>;
|
8
|
+
export declare namespace CreateWindowInputV1BodyWaitUntil {
|
9
|
+
type Raw = "load" | "domContentLoaded";
|
10
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.CreateWindowInputV1BodyWaitUntil = void 0;
|
30
|
+
const core = __importStar(require("../../../../core"));
|
31
|
+
exports.CreateWindowInputV1BodyWaitUntil = core.serialization.enum_(["load", "domContentLoaded"]);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../index";
|
5
|
+
import * as Airtop from "../../../../api/index";
|
6
|
+
import * as core from "../../../../core";
|
7
|
+
export declare const WindowLoadUrlV1BodyWaitUntil: core.serialization.Schema<serializers.WindowLoadUrlV1BodyWaitUntil.Raw, Airtop.WindowLoadUrlV1BodyWaitUntil>;
|
8
|
+
export declare namespace WindowLoadUrlV1BodyWaitUntil {
|
9
|
+
type Raw = "load" | "domContentLoaded";
|
10
|
+
}
|