@airtop/sdk 0.1.41 → 0.1.42-beta0
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/README.md +9 -10
- package/api/resources/automations/client/Client.js +4 -4
- package/api/resources/files/client/Client.js +5 -5
- package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +1 -1
- package/api/resources/profiles/client/Client.js +1 -1
- package/api/resources/requests/client/Client.js +1 -1
- package/api/resources/sessions/client/Client.js +6 -6
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/api/resources/sessions/types/index.d.ts +1 -1
- package/api/resources/sessions/types/index.js +1 -1
- package/api/resources/windows/client/Client.d.ts +233 -5
- package/api/resources/windows/client/Client.js +1173 -214
- package/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/ActRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
- package/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +33 -0
- package/api/resources/windows/client/requests/AsyncFileInputRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
- package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
- package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
- package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
- package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
- package/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
- package/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/ExtractRequest.js +5 -0
- package/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/FindManyRequest.js +5 -0
- package/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/FindOneRequest.js +5 -0
- package/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
- package/api/resources/windows/client/requests/LlmRequest.js +5 -0
- package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
- package/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
- package/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +4 -4
- package/api/resources/windows/client/requests/WaitForPageRequest.d.ts +23 -0
- package/api/resources/windows/client/requests/WaitForPageRequest.js +5 -0
- package/api/resources/windows/client/requests/index.d.ts +17 -0
- package/api/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +11 -0
- package/api/resources/windows/types/WaitForPageRequestTargetStatus.js +10 -0
- package/api/resources/windows/types/index.d.ts +1 -0
- package/api/resources/windows/types/index.js +1 -0
- package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
- package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
- package/api/types/FileEventData.d.ts +7 -0
- package/api/types/FileEventData.js +5 -0
- package/api/types/FileEventMessage.d.ts +2 -1
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/automations/client/Client.js +4 -4
- package/dist/api/resources/files/client/Client.js +5 -5
- package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +1 -1
- package/dist/api/resources/profiles/client/Client.js +1 -1
- package/dist/api/resources/requests/client/Client.js +1 -1
- package/dist/api/resources/sessions/client/Client.js +6 -6
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
- package/dist/api/resources/sessions/types/index.d.ts +1 -1
- package/dist/api/resources/sessions/types/index.js +1 -1
- package/dist/api/resources/windows/client/Client.d.ts +233 -5
- package/dist/api/resources/windows/client/Client.js +1173 -214
- package/dist/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/ActRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +33 -0
- package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
- package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/ExtractRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/FindManyRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/FindOneRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/LlmRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
- package/dist/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +4 -4
- package/dist/api/resources/windows/client/requests/WaitForPageRequest.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/WaitForPageRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/index.d.ts +17 -0
- package/dist/api/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +11 -0
- package/dist/api/resources/windows/types/WaitForPageRequestTargetStatus.js +10 -0
- package/dist/api/resources/windows/types/index.d.ts +1 -0
- package/dist/api/resources/windows/types/index.js +1 -0
- package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
- package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
- package/dist/api/types/FileEventData.d.ts +7 -0
- package/dist/api/types/FileEventData.js +5 -0
- package/dist/api/types/FileEventMessage.d.ts +2 -1
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
- package/dist/serialization/resources/sessions/types/index.js +1 -1
- package/dist/serialization/resources/windows/client/requests/ActRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/ActRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
- package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +23 -0
- package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +54 -0
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
- package/dist/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
- package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
- package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +2 -1
- package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +2 -1
- package/dist/serialization/resources/windows/client/requests/WaitForPageRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/WaitForPageRequest.js +49 -0
- package/dist/serialization/resources/windows/client/requests/index.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/index.js +35 -1
- package/dist/serialization/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +10 -0
- package/dist/serialization/resources/windows/types/WaitForPageRequestTargetStatus.js +41 -0
- package/dist/serialization/resources/windows/types/index.d.ts +1 -0
- package/dist/serialization/resources/windows/types/index.js +1 -0
- package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
- package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
- package/dist/serialization/types/FileEventData.d.ts +13 -0
- package/dist/serialization/types/FileEventData.js +44 -0
- package/dist/serialization/types/FileEventMessage.d.ts +2 -1
- package/dist/serialization/types/FileEventMessage.js +2 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/utils/upload.js +12 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AirtopSessions.js +12 -5
- package/package.json +1 -1
- package/reference.md +1457 -144
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
- package/serialization/resources/sessions/types/index.d.ts +1 -1
- package/serialization/resources/sessions/types/index.js +1 -1
- package/serialization/resources/windows/client/requests/ActRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/ActRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
- package/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +23 -0
- package/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +54 -0
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
- package/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
- package/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
- package/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
- package/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
- package/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
- package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
- package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
- package/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +2 -1
- package/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +2 -1
- package/serialization/resources/windows/client/requests/WaitForPageRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/WaitForPageRequest.js +49 -0
- package/serialization/resources/windows/client/requests/index.d.ts +17 -0
- package/serialization/resources/windows/client/requests/index.js +35 -1
- package/serialization/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +10 -0
- package/serialization/resources/windows/types/WaitForPageRequestTargetStatus.js +41 -0
- package/serialization/resources/windows/types/index.d.ts +1 -0
- package/serialization/resources/windows/types/index.js +1 -0
- package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
- package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
- package/serialization/types/FileEventData.d.ts +13 -0
- package/serialization/types/FileEventData.js +44 -0
- package/serialization/types/FileEventMessage.d.ts +2 -1
- package/serialization/types/FileEventMessage.js +2 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/utils/upload.js +12 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AirtopSessions.js +12 -5
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../index";
|
5
|
+
import * as Airtop from "../../../../../api/index";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
import { AsyncConfig } from "../../../../types/AsyncConfig";
|
8
|
+
export declare const LlmRequest: core.serialization.Schema<serializers.LlmRequest.Raw, Airtop.LlmRequest>;
|
9
|
+
export declare namespace LlmRequest {
|
10
|
+
interface Raw {
|
11
|
+
async?: AsyncConfig.Raw | null;
|
12
|
+
clientRequestId?: string | null;
|
13
|
+
costThresholdCredits?: number | null;
|
14
|
+
prompt: string;
|
15
|
+
timeThresholdSeconds?: number | null;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,48 @@
|
|
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 () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.LlmRequest = void 0;
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
41
|
+
const AsyncConfig_1 = require("../../../../types/AsyncConfig");
|
42
|
+
exports.LlmRequest = core.serialization.object({
|
43
|
+
async: AsyncConfig_1.AsyncConfig.optional(),
|
44
|
+
clientRequestId: core.serialization.string().optional(),
|
45
|
+
costThresholdCredits: core.serialization.number().optional(),
|
46
|
+
prompt: core.serialization.string(),
|
47
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
48
|
+
});
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../index";
|
5
|
+
import * as Airtop from "../../../../../api/index";
|
6
|
+
import * as core from "../../../../../core";
|
7
|
+
import { AsyncConfig } from "../../../../types/AsyncConfig";
|
8
|
+
export declare const OperatorPromptV1Body: core.serialization.Schema<serializers.OperatorPromptV1Body.Raw, Airtop.OperatorPromptV1Body>;
|
9
|
+
export declare namespace OperatorPromptV1Body {
|
10
|
+
interface Raw {
|
11
|
+
async?: AsyncConfig.Raw | null;
|
12
|
+
clientRequestId?: string | null;
|
13
|
+
costThresholdCredits?: number | null;
|
14
|
+
prompt: string;
|
15
|
+
timeThresholdSeconds?: number | null;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,48 @@
|
|
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 () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.OperatorPromptV1Body = void 0;
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
41
|
+
const AsyncConfig_1 = require("../../../../types/AsyncConfig");
|
42
|
+
exports.OperatorPromptV1Body = core.serialization.object({
|
43
|
+
async: AsyncConfig_1.AsyncConfig.optional(),
|
44
|
+
clientRequestId: core.serialization.string().optional(),
|
45
|
+
costThresholdCredits: core.serialization.number().optional(),
|
46
|
+
prompt: core.serialization.string(),
|
47
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
48
|
+
});
|
package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts
CHANGED
@@ -11,9 +11,10 @@ export declare namespace SessionFileInputHandlerRequestBody {
|
|
11
11
|
clientRequestId?: string | null;
|
12
12
|
configuration?: MicroInteractionConfigWithExperimental.Raw | null;
|
13
13
|
costThresholdCredits?: number | null;
|
14
|
-
elementDescription
|
14
|
+
elementDescription?: string | null;
|
15
15
|
fileId?: string | null;
|
16
16
|
fileName?: string | null;
|
17
|
+
includeHiddenElements?: boolean | null;
|
17
18
|
timeThresholdSeconds?: number | null;
|
18
19
|
waitForNavigation?: boolean | null;
|
19
20
|
}
|
package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js
CHANGED
@@ -43,9 +43,10 @@ exports.SessionFileInputHandlerRequestBody = core.serialization.object({
|
|
43
43
|
clientRequestId: core.serialization.string().optional(),
|
44
44
|
configuration: MicroInteractionConfigWithExperimental_1.MicroInteractionConfigWithExperimental.optional(),
|
45
45
|
costThresholdCredits: core.serialization.number().optional(),
|
46
|
-
elementDescription: core.serialization.string(),
|
46
|
+
elementDescription: core.serialization.string().optional(),
|
47
47
|
fileId: core.serialization.string().optional(),
|
48
48
|
fileName: core.serialization.string().optional(),
|
49
|
+
includeHiddenElements: core.serialization.boolean().optional(),
|
49
50
|
timeThresholdSeconds: core.serialization.number().optional(),
|
50
51
|
waitForNavigation: core.serialization.boolean().optional(),
|
51
52
|
});
|
@@ -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 { AsyncConfig } from "../../../../types/AsyncConfig";
|
8
|
+
import { WaitForPageRequestTargetStatus } from "../../types/WaitForPageRequestTargetStatus";
|
9
|
+
export declare const WaitForPageRequest: core.serialization.Schema<serializers.WaitForPageRequest.Raw, Airtop.WaitForPageRequest>;
|
10
|
+
export declare namespace WaitForPageRequest {
|
11
|
+
interface Raw {
|
12
|
+
async?: AsyncConfig.Raw | null;
|
13
|
+
clientRequestId?: string | null;
|
14
|
+
costThresholdCredits?: number | null;
|
15
|
+
targetStatus?: WaitForPageRequestTargetStatus.Raw | null;
|
16
|
+
timeThresholdSeconds?: number | null;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,49 @@
|
|
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 () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.WaitForPageRequest = void 0;
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
41
|
+
const AsyncConfig_1 = require("../../../../types/AsyncConfig");
|
42
|
+
const WaitForPageRequestTargetStatus_1 = require("../../types/WaitForPageRequestTargetStatus");
|
43
|
+
exports.WaitForPageRequest = core.serialization.object({
|
44
|
+
async: AsyncConfig_1.AsyncConfig.optional(),
|
45
|
+
clientRequestId: core.serialization.string().optional(),
|
46
|
+
costThresholdCredits: core.serialization.number().optional(),
|
47
|
+
targetStatus: WaitForPageRequestTargetStatus_1.WaitForPageRequestTargetStatus.optional(),
|
48
|
+
timeThresholdSeconds: core.serialization.number().optional(),
|
49
|
+
});
|
@@ -1,7 +1,17 @@
|
|
1
|
+
export { AsyncClickRequest } from "./AsyncClickRequest";
|
1
2
|
export { AsyncCreateAutomationRequest } from "./AsyncCreateAutomationRequest";
|
2
3
|
export { AsyncCreateFormFillerRequest } from "./AsyncCreateFormFillerRequest";
|
3
4
|
export { AsyncExecuteAutomationRequest } from "./AsyncExecuteAutomationRequest";
|
5
|
+
export { AsyncFileInputRequest } from "./AsyncFileInputRequest";
|
4
6
|
export { AsyncFillFormRequest } from "./AsyncFillFormRequest";
|
7
|
+
export { AsyncHoverRequest } from "./AsyncHoverRequest";
|
8
|
+
export { AsyncMonitorRequest } from "./AsyncMonitorRequest";
|
9
|
+
export { AsyncPageQueryRequest } from "./AsyncPageQueryRequest";
|
10
|
+
export { AsyncPaginatedExtractionRequest } from "./AsyncPaginatedExtractionRequest";
|
11
|
+
export { AsyncPromptContentRequest } from "./AsyncPromptContentRequest";
|
12
|
+
export { AsyncScreenshotRequest } from "./AsyncScreenshotRequest";
|
13
|
+
export { AsyncSummarizeContentRequest } from "./AsyncSummarizeContentRequest";
|
14
|
+
export { AsyncTypeRequest } from "./AsyncTypeRequest";
|
5
15
|
export { CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
|
6
16
|
export { WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
|
7
17
|
export { SessionClickHandlerRequestBody } from "./SessionClickHandlerRequestBody";
|
@@ -10,9 +20,16 @@ export { SessionFileInputHandlerRequestBody } from "./SessionFileInputHandlerReq
|
|
10
20
|
export { FillFormRequest } from "./FillFormRequest";
|
11
21
|
export { SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
|
12
22
|
export { SessionMonitorHandlerRequestBody } from "./SessionMonitorHandlerRequestBody";
|
23
|
+
export { OperatorPromptV1Body } from "./OperatorPromptV1Body";
|
13
24
|
export { SessionPaginatedExtractionHandlerRequestBody } from "./SessionPaginatedExtractionHandlerRequestBody";
|
14
25
|
export { ScrapeContentRequest } from "./ScrapeContentRequest";
|
15
26
|
export { SessionScreenshotHandlerRequestBody } from "./SessionScreenshotHandlerRequestBody";
|
16
27
|
export { SessionScrollHandlerRequestBody } from "./SessionScrollHandlerRequestBody";
|
17
28
|
export { SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
|
18
29
|
export { SessionTypeHandlerRequestBody } from "./SessionTypeHandlerRequestBody";
|
30
|
+
export { ActRequest } from "./ActRequest";
|
31
|
+
export { ExtractRequest } from "./ExtractRequest";
|
32
|
+
export { FindManyRequest } from "./FindManyRequest";
|
33
|
+
export { FindOneRequest } from "./FindOneRequest";
|
34
|
+
export { LlmRequest } from "./LlmRequest";
|
35
|
+
export { WaitForPageRequest } from "./WaitForPageRequest";
|
@@ -1,14 +1,34 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScrollHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.SessionMonitorHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.FillFormRequest = exports.SessionFileInputHandlerRequestBody = exports.CreateFormFillerRequest = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = exports.AsyncFillFormRequest = exports.AsyncExecuteAutomationRequest = exports.AsyncCreateFormFillerRequest = exports.AsyncCreateAutomationRequest = void 0;
|
3
|
+
exports.WaitForPageRequest = exports.LlmRequest = exports.FindOneRequest = exports.FindManyRequest = exports.ExtractRequest = exports.ActRequest = exports.SessionTypeHandlerRequestBody = exports.SessionSummaryHandlerRequestBody = exports.SessionScrollHandlerRequestBody = exports.SessionScreenshotHandlerRequestBody = exports.ScrapeContentRequest = exports.SessionPaginatedExtractionHandlerRequestBody = exports.OperatorPromptV1Body = exports.SessionMonitorHandlerRequestBody = exports.SessionHoverHandlerRequestBody = exports.FillFormRequest = exports.SessionFileInputHandlerRequestBody = exports.CreateFormFillerRequest = exports.SessionClickHandlerRequestBody = exports.WindowLoadUrlV1Body = exports.CreateWindowInputV1Body = exports.AsyncTypeRequest = exports.AsyncSummarizeContentRequest = exports.AsyncScreenshotRequest = exports.AsyncPromptContentRequest = exports.AsyncPaginatedExtractionRequest = exports.AsyncPageQueryRequest = exports.AsyncMonitorRequest = exports.AsyncHoverRequest = exports.AsyncFillFormRequest = exports.AsyncFileInputRequest = exports.AsyncExecuteAutomationRequest = exports.AsyncCreateFormFillerRequest = exports.AsyncCreateAutomationRequest = exports.AsyncClickRequest = void 0;
|
4
|
+
var AsyncClickRequest_1 = require("./AsyncClickRequest");
|
5
|
+
Object.defineProperty(exports, "AsyncClickRequest", { enumerable: true, get: function () { return AsyncClickRequest_1.AsyncClickRequest; } });
|
4
6
|
var AsyncCreateAutomationRequest_1 = require("./AsyncCreateAutomationRequest");
|
5
7
|
Object.defineProperty(exports, "AsyncCreateAutomationRequest", { enumerable: true, get: function () { return AsyncCreateAutomationRequest_1.AsyncCreateAutomationRequest; } });
|
6
8
|
var AsyncCreateFormFillerRequest_1 = require("./AsyncCreateFormFillerRequest");
|
7
9
|
Object.defineProperty(exports, "AsyncCreateFormFillerRequest", { enumerable: true, get: function () { return AsyncCreateFormFillerRequest_1.AsyncCreateFormFillerRequest; } });
|
8
10
|
var AsyncExecuteAutomationRequest_1 = require("./AsyncExecuteAutomationRequest");
|
9
11
|
Object.defineProperty(exports, "AsyncExecuteAutomationRequest", { enumerable: true, get: function () { return AsyncExecuteAutomationRequest_1.AsyncExecuteAutomationRequest; } });
|
12
|
+
var AsyncFileInputRequest_1 = require("./AsyncFileInputRequest");
|
13
|
+
Object.defineProperty(exports, "AsyncFileInputRequest", { enumerable: true, get: function () { return AsyncFileInputRequest_1.AsyncFileInputRequest; } });
|
10
14
|
var AsyncFillFormRequest_1 = require("./AsyncFillFormRequest");
|
11
15
|
Object.defineProperty(exports, "AsyncFillFormRequest", { enumerable: true, get: function () { return AsyncFillFormRequest_1.AsyncFillFormRequest; } });
|
16
|
+
var AsyncHoverRequest_1 = require("./AsyncHoverRequest");
|
17
|
+
Object.defineProperty(exports, "AsyncHoverRequest", { enumerable: true, get: function () { return AsyncHoverRequest_1.AsyncHoverRequest; } });
|
18
|
+
var AsyncMonitorRequest_1 = require("./AsyncMonitorRequest");
|
19
|
+
Object.defineProperty(exports, "AsyncMonitorRequest", { enumerable: true, get: function () { return AsyncMonitorRequest_1.AsyncMonitorRequest; } });
|
20
|
+
var AsyncPageQueryRequest_1 = require("./AsyncPageQueryRequest");
|
21
|
+
Object.defineProperty(exports, "AsyncPageQueryRequest", { enumerable: true, get: function () { return AsyncPageQueryRequest_1.AsyncPageQueryRequest; } });
|
22
|
+
var AsyncPaginatedExtractionRequest_1 = require("./AsyncPaginatedExtractionRequest");
|
23
|
+
Object.defineProperty(exports, "AsyncPaginatedExtractionRequest", { enumerable: true, get: function () { return AsyncPaginatedExtractionRequest_1.AsyncPaginatedExtractionRequest; } });
|
24
|
+
var AsyncPromptContentRequest_1 = require("./AsyncPromptContentRequest");
|
25
|
+
Object.defineProperty(exports, "AsyncPromptContentRequest", { enumerable: true, get: function () { return AsyncPromptContentRequest_1.AsyncPromptContentRequest; } });
|
26
|
+
var AsyncScreenshotRequest_1 = require("./AsyncScreenshotRequest");
|
27
|
+
Object.defineProperty(exports, "AsyncScreenshotRequest", { enumerable: true, get: function () { return AsyncScreenshotRequest_1.AsyncScreenshotRequest; } });
|
28
|
+
var AsyncSummarizeContentRequest_1 = require("./AsyncSummarizeContentRequest");
|
29
|
+
Object.defineProperty(exports, "AsyncSummarizeContentRequest", { enumerable: true, get: function () { return AsyncSummarizeContentRequest_1.AsyncSummarizeContentRequest; } });
|
30
|
+
var AsyncTypeRequest_1 = require("./AsyncTypeRequest");
|
31
|
+
Object.defineProperty(exports, "AsyncTypeRequest", { enumerable: true, get: function () { return AsyncTypeRequest_1.AsyncTypeRequest; } });
|
12
32
|
var CreateWindowInputV1Body_1 = require("./CreateWindowInputV1Body");
|
13
33
|
Object.defineProperty(exports, "CreateWindowInputV1Body", { enumerable: true, get: function () { return CreateWindowInputV1Body_1.CreateWindowInputV1Body; } });
|
14
34
|
var WindowLoadUrlV1Body_1 = require("./WindowLoadUrlV1Body");
|
@@ -25,6 +45,8 @@ var SessionHoverHandlerRequestBody_1 = require("./SessionHoverHandlerRequestBody
|
|
25
45
|
Object.defineProperty(exports, "SessionHoverHandlerRequestBody", { enumerable: true, get: function () { return SessionHoverHandlerRequestBody_1.SessionHoverHandlerRequestBody; } });
|
26
46
|
var SessionMonitorHandlerRequestBody_1 = require("./SessionMonitorHandlerRequestBody");
|
27
47
|
Object.defineProperty(exports, "SessionMonitorHandlerRequestBody", { enumerable: true, get: function () { return SessionMonitorHandlerRequestBody_1.SessionMonitorHandlerRequestBody; } });
|
48
|
+
var OperatorPromptV1Body_1 = require("./OperatorPromptV1Body");
|
49
|
+
Object.defineProperty(exports, "OperatorPromptV1Body", { enumerable: true, get: function () { return OperatorPromptV1Body_1.OperatorPromptV1Body; } });
|
28
50
|
var SessionPaginatedExtractionHandlerRequestBody_1 = require("./SessionPaginatedExtractionHandlerRequestBody");
|
29
51
|
Object.defineProperty(exports, "SessionPaginatedExtractionHandlerRequestBody", { enumerable: true, get: function () { return SessionPaginatedExtractionHandlerRequestBody_1.SessionPaginatedExtractionHandlerRequestBody; } });
|
30
52
|
var ScrapeContentRequest_1 = require("./ScrapeContentRequest");
|
@@ -37,3 +59,15 @@ var SessionSummaryHandlerRequestBody_1 = require("./SessionSummaryHandlerRequest
|
|
37
59
|
Object.defineProperty(exports, "SessionSummaryHandlerRequestBody", { enumerable: true, get: function () { return SessionSummaryHandlerRequestBody_1.SessionSummaryHandlerRequestBody; } });
|
38
60
|
var SessionTypeHandlerRequestBody_1 = require("./SessionTypeHandlerRequestBody");
|
39
61
|
Object.defineProperty(exports, "SessionTypeHandlerRequestBody", { enumerable: true, get: function () { return SessionTypeHandlerRequestBody_1.SessionTypeHandlerRequestBody; } });
|
62
|
+
var ActRequest_1 = require("./ActRequest");
|
63
|
+
Object.defineProperty(exports, "ActRequest", { enumerable: true, get: function () { return ActRequest_1.ActRequest; } });
|
64
|
+
var ExtractRequest_1 = require("./ExtractRequest");
|
65
|
+
Object.defineProperty(exports, "ExtractRequest", { enumerable: true, get: function () { return ExtractRequest_1.ExtractRequest; } });
|
66
|
+
var FindManyRequest_1 = require("./FindManyRequest");
|
67
|
+
Object.defineProperty(exports, "FindManyRequest", { enumerable: true, get: function () { return FindManyRequest_1.FindManyRequest; } });
|
68
|
+
var FindOneRequest_1 = require("./FindOneRequest");
|
69
|
+
Object.defineProperty(exports, "FindOneRequest", { enumerable: true, get: function () { return FindOneRequest_1.FindOneRequest; } });
|
70
|
+
var LlmRequest_1 = require("./LlmRequest");
|
71
|
+
Object.defineProperty(exports, "LlmRequest", { enumerable: true, get: function () { return LlmRequest_1.LlmRequest; } });
|
72
|
+
var WaitForPageRequest_1 = require("./WaitForPageRequest");
|
73
|
+
Object.defineProperty(exports, "WaitForPageRequest", { enumerable: true, get: function () { return WaitForPageRequest_1.WaitForPageRequest; } });
|
@@ -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 WaitForPageRequestTargetStatus: core.serialization.Schema<serializers.WaitForPageRequestTargetStatus.Raw, Airtop.WaitForPageRequestTargetStatus>;
|
8
|
+
export declare namespace WaitForPageRequestTargetStatus {
|
9
|
+
type Raw = "domcontentloaded" | "load";
|
10
|
+
}
|
@@ -0,0 +1,41 @@
|
|
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 () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.WaitForPageRequestTargetStatus = void 0;
|
40
|
+
const core = __importStar(require("../../../../core"));
|
41
|
+
exports.WaitForPageRequestTargetStatus = core.serialization.enum_(["domcontentloaded", "load"]);
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./CreateWindowInputV1BodyWaitUntil"), exports);
|
18
18
|
__exportStar(require("./WindowLoadUrlV1BodyWaitUntil"), exports);
|
19
|
+
__exportStar(require("./WaitForPageRequestTargetStatus"), 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 { Issue } from "./Issue";
|
8
|
+
export declare const AsyncOperatorPromptResponseEnvelope: core.serialization.ObjectSchema<serializers.AsyncOperatorPromptResponseEnvelope.Raw, Airtop.AsyncOperatorPromptResponseEnvelope>;
|
9
|
+
export declare namespace AsyncOperatorPromptResponseEnvelope {
|
10
|
+
interface Raw {
|
11
|
+
errors?: Issue.Raw[] | null;
|
12
|
+
requestId: string;
|
13
|
+
warnings?: Issue.Raw[] | null;
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,46 @@
|
|
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 () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.AsyncOperatorPromptResponseEnvelope = void 0;
|
40
|
+
const core = __importStar(require("../../core"));
|
41
|
+
const Issue_1 = require("./Issue");
|
42
|
+
exports.AsyncOperatorPromptResponseEnvelope = core.serialization.object({
|
43
|
+
errors: core.serialization.list(Issue_1.Issue).optional(),
|
44
|
+
requestId: core.serialization.string(),
|
45
|
+
warnings: core.serialization.list(Issue_1.Issue).optional(),
|
46
|
+
});
|
@@ -0,0 +1,13 @@
|
|
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 FileEventData: core.serialization.ObjectSchema<serializers.FileEventData.Raw, Airtop.FileEventData>;
|
8
|
+
export declare namespace FileEventData {
|
9
|
+
interface Raw {
|
10
|
+
error: string;
|
11
|
+
filePath: string;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,44 @@
|
|
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 () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
39
|
+
exports.FileEventData = void 0;
|
40
|
+
const core = __importStar(require("../../core"));
|
41
|
+
exports.FileEventData = core.serialization.object({
|
42
|
+
error: core.serialization.string(),
|
43
|
+
filePath: core.serialization.string(),
|
44
|
+
});
|
@@ -4,13 +4,14 @@
|
|
4
4
|
import * as serializers from "../index";
|
5
5
|
import * as Airtop from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
|
+
import { FileEventData } from "./FileEventData";
|
7
8
|
import { FileEventMessageStatus } from "./FileEventMessageStatus";
|
8
9
|
export declare const FileEventMessage: core.serialization.ObjectSchema<serializers.FileEventMessage.Raw, Airtop.FileEventMessage>;
|
9
10
|
export declare namespace FileEventMessage {
|
10
11
|
interface Raw {
|
11
12
|
downloadUrl: string;
|
12
13
|
event: string;
|
13
|
-
eventData?:
|
14
|
+
eventData?: FileEventData.Raw | null;
|
14
15
|
eventTime: string;
|
15
16
|
fileId: string;
|
16
17
|
status: FileEventMessageStatus.Raw;
|
@@ -38,11 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
39
39
|
exports.FileEventMessage = void 0;
|
40
40
|
const core = __importStar(require("../../core"));
|
41
|
+
const FileEventData_1 = require("./FileEventData");
|
41
42
|
const FileEventMessageStatus_1 = require("./FileEventMessageStatus");
|
42
43
|
exports.FileEventMessage = core.serialization.object({
|
43
44
|
downloadUrl: core.serialization.string(),
|
44
45
|
event: core.serialization.string(),
|
45
|
-
eventData:
|
46
|
+
eventData: FileEventData_1.FileEventData.optional(),
|
46
47
|
eventTime: core.serialization.date(),
|
47
48
|
fileId: core.serialization.string(),
|
48
49
|
status: FileEventMessageStatus_1.FileEventMessageStatus,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export * from "./AiPromptResponse";
|
2
2
|
export * from "./AiResponseEnvelope";
|
3
3
|
export * from "./AsyncConfig";
|
4
|
+
export * from "./AsyncOperatorPromptResponseEnvelope";
|
4
5
|
export * from "./AsyncSessionAiResponseEnvelope";
|
5
6
|
export * from "./AutomationOutput";
|
6
7
|
export * from "./BrowserWaitNavigationConfigWaitUntil";
|
@@ -28,6 +29,7 @@ export * from "./ExternalSessionAiResponseMetadata";
|
|
28
29
|
export * from "./ExternalSessionAiResponseMetadataUsage";
|
29
30
|
export * from "./ExternalSessionConfig";
|
30
31
|
export * from "./ExternalSessionWithConnectionInfo";
|
32
|
+
export * from "./FileEventData";
|
31
33
|
export * from "./FileEventMessageStatus";
|
32
34
|
export * from "./FileEventMessage";
|
33
35
|
export * from "./FilesResponse";
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AiPromptResponse"), exports);
|
18
18
|
__exportStar(require("./AiResponseEnvelope"), exports);
|
19
19
|
__exportStar(require("./AsyncConfig"), exports);
|
20
|
+
__exportStar(require("./AsyncOperatorPromptResponseEnvelope"), exports);
|
20
21
|
__exportStar(require("./AsyncSessionAiResponseEnvelope"), exports);
|
21
22
|
__exportStar(require("./AutomationOutput"), exports);
|
22
23
|
__exportStar(require("./BrowserWaitNavigationConfigWaitUntil"), exports);
|
@@ -44,6 +45,7 @@ __exportStar(require("./ExternalSessionAiResponseMetadata"), exports);
|
|
44
45
|
__exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
|
45
46
|
__exportStar(require("./ExternalSessionConfig"), exports);
|
46
47
|
__exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
|
48
|
+
__exportStar(require("./FileEventData"), exports);
|
47
49
|
__exportStar(require("./FileEventMessageStatus"), exports);
|
48
50
|
__exportStar(require("./FileEventMessage"), exports);
|
49
51
|
__exportStar(require("./FilesResponse"), exports);
|
package/dist/utils/upload.js
CHANGED
@@ -8,16 +8,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
15
|
exports.uploadFileAndSelectInput = uploadFileAndSelectInput;
|
16
|
+
const path_1 = __importDefault(require("path"));
|
13
17
|
function uploadFileAndSelectInput(_a) {
|
14
18
|
return __awaiter(this, arguments, void 0, function* ({ client, sessionId, windowId, configuration, }) {
|
19
|
+
var _b;
|
15
20
|
const windowInfo = yield client.windows.getWindowInfo(sessionId, windowId);
|
16
21
|
if (!windowInfo) {
|
17
22
|
throw new Error('window not found');
|
18
23
|
}
|
19
24
|
client.log(`starting file upload: sessionId: ${sessionId}, windowId: ${windowId}, uploadFilePath: ${configuration.uploadFilePath}`);
|
20
|
-
const fileUploadResponse = yield client.files.upload(configuration.uploadFilePath
|
25
|
+
const fileUploadResponse = yield client.files.upload(configuration.uploadFilePath, {
|
26
|
+
fileName: (_b = configuration.fileName) !== null && _b !== void 0 ? _b : path_1.default.basename(configuration.uploadFilePath),
|
27
|
+
});
|
21
28
|
if (fileUploadResponse.errors && fileUploadResponse.errors.length > 0) {
|
22
29
|
client.log(`file upload failed: ${JSON.stringify(fileUploadResponse.errors)}`);
|
23
30
|
throw new Error('file upload failed');
|
@@ -28,7 +35,7 @@ function uploadFileAndSelectInput(_a) {
|
|
28
35
|
sessionIds: [sessionId],
|
29
36
|
});
|
30
37
|
client.log('file pushed to session');
|
31
|
-
client.log(
|
38
|
+
client.log(`waiting for file upload to become available ${fileId}`);
|
32
39
|
const waitResult = yield client.sessions.waitForUploadAvailable(sessionId, fileId);
|
33
40
|
if (waitResult) {
|
34
41
|
client.log('file upload available');
|
@@ -37,12 +44,10 @@ function uploadFileAndSelectInput(_a) {
|
|
37
44
|
client.log('file upload not available within timeout');
|
38
45
|
throw new Error('file upload not available within timeout');
|
39
46
|
}
|
40
|
-
client.log(
|
41
|
-
const fileInputResponse = yield client.windows.fileInput(sessionId, windowId, {
|
42
|
-
fileId: fileId,
|
43
|
-
elementDescription: configuration.elementDescription,
|
44
|
-
});
|
47
|
+
client.log(`executing file input interaction ${JSON.stringify(configuration)}`);
|
48
|
+
const fileInputResponse = yield client.windows.fileInput(sessionId, windowId, Object.assign({ fileId: fileId }, configuration));
|
45
49
|
if (fileInputResponse.errors && fileInputResponse.errors.length > 0) {
|
50
|
+
client.log(`file input failed: ${JSON.stringify(fileInputResponse.errors)}`);
|
46
51
|
throw new Error('file input failed');
|
47
52
|
}
|
48
53
|
client.log('file upload and file input interaction complete');
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
1
|
+
export declare const SDK_VERSION = "0.1.42-beta0";
|