@airtop/sdk 0.1.32 → 0.1.33-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/Client.d.ts +6 -0
- package/Client.js +16 -6
- package/README.md +8 -6
- package/api/errors/ForbiddenError.d.ts +8 -0
- package/api/errors/ForbiddenError.js +41 -0
- package/api/errors/UnauthorizedError.d.ts +8 -0
- package/api/errors/UnauthorizedError.js +41 -0
- package/api/errors/index.d.ts +2 -0
- package/api/errors/index.js +2 -0
- package/api/resources/automations/client/Client.d.ts +87 -0
- package/api/resources/automations/client/Client.js +451 -0
- package/api/resources/automations/client/index.d.ts +1 -0
- package/api/resources/automations/client/index.js +17 -0
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +19 -0
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +5 -0
- package/api/resources/automations/client/requests/index.d.ts +1 -0
- package/api/resources/automations/client/requests/index.js +2 -0
- package/api/resources/automations/index.d.ts +1 -0
- package/api/resources/automations/index.js +17 -0
- package/api/resources/extensionConfigurations/client/Client.d.ts +40 -0
- package/api/resources/extensionConfigurations/client/Client.js +149 -0
- package/api/resources/extensionConfigurations/client/index.d.ts +1 -0
- package/api/resources/extensionConfigurations/client/index.js +2 -0
- package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +13 -0
- package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +5 -0
- package/api/resources/extensionConfigurations/client/requests/index.d.ts +1 -0
- package/api/resources/extensionConfigurations/client/requests/index.js +2 -0
- package/api/resources/extensionConfigurations/index.d.ts +1 -0
- package/api/resources/extensionConfigurations/index.js +17 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/profiles/client/Client.js +2 -2
- package/api/resources/requests/client/Client.js +2 -2
- package/api/resources/sessions/client/Client.d.ts +9 -0
- package/api/resources/sessions/client/Client.js +65 -12
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
- package/api/resources/sessions/types/index.d.ts +2 -2
- package/api/resources/sessions/types/index.js +2 -2
- package/api/resources/windows/client/Client.d.ts +138 -0
- package/api/resources/windows/client/Client.js +729 -30
- 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/AsyncCreateAutomationRequest.d.ts +23 -0
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.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/index.d.ts +11 -0
- package/api/types/AsyncConfig.d.ts +7 -0
- package/api/types/AsyncConfig.js +5 -0
- package/api/types/AsyncSessionAiResponseEnvelope.d.ts +9 -0
- package/api/types/AsyncSessionAiResponseEnvelope.js +5 -0
- package/api/types/AutomationOutput.d.ts +10 -0
- package/api/types/AutomationOutput.js +5 -0
- package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +4 -0
- package/api/types/CreateAutomationRequestBodyConfiguration.js +5 -0
- package/api/types/DeleteAutomationOutputWrapperBody.d.ts +4 -0
- package/api/types/DeleteAutomationOutputWrapperBody.js +5 -0
- package/api/types/ExtensionConfigurationOutput.d.ts +13 -0
- package/api/types/ExtensionConfigurationOutput.js +5 -0
- package/api/types/ListAutomationsOutput.d.ts +7 -0
- package/api/types/ListAutomationsOutput.js +5 -0
- package/api/types/SessionConfigV1.d.ts +2 -0
- package/api/types/index.d.ts +7 -0
- package/api/types/index.js +7 -0
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +16 -6
- package/dist/api/errors/ForbiddenError.d.ts +8 -0
- package/dist/api/errors/ForbiddenError.js +41 -0
- package/dist/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/api/errors/UnauthorizedError.js +41 -0
- package/dist/api/errors/index.d.ts +2 -0
- package/dist/api/errors/index.js +2 -0
- package/dist/api/resources/automations/client/Client.d.ts +87 -0
- package/dist/api/resources/automations/client/Client.js +451 -0
- package/dist/api/resources/automations/client/index.d.ts +1 -0
- package/dist/api/resources/automations/client/index.js +17 -0
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +19 -0
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +5 -0
- package/dist/api/resources/automations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/automations/client/requests/index.js +2 -0
- package/dist/api/resources/automations/index.d.ts +1 -0
- package/dist/api/resources/automations/index.js +17 -0
- package/dist/api/resources/extensionConfigurations/client/Client.d.ts +40 -0
- package/dist/api/resources/extensionConfigurations/client/Client.js +149 -0
- package/dist/api/resources/extensionConfigurations/client/index.d.ts +1 -0
- package/dist/api/resources/extensionConfigurations/client/index.js +2 -0
- package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +13 -0
- package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +5 -0
- package/dist/api/resources/extensionConfigurations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/extensionConfigurations/client/requests/index.js +2 -0
- package/dist/api/resources/extensionConfigurations/index.d.ts +1 -0
- package/dist/api/resources/extensionConfigurations/index.js +17 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/profiles/client/Client.js +2 -2
- package/dist/api/resources/requests/client/Client.js +2 -2
- package/dist/api/resources/sessions/client/Client.d.ts +9 -0
- package/dist/api/resources/sessions/client/Client.js +65 -12
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
- package/dist/api/resources/sessions/types/index.d.ts +2 -2
- package/dist/api/resources/sessions/types/index.js +2 -2
- package/dist/api/resources/windows/client/Client.d.ts +138 -0
- package/dist/api/resources/windows/client/Client.js +729 -30
- 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/AsyncCreateAutomationRequest.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.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/index.d.ts +11 -0
- package/dist/api/types/AsyncConfig.d.ts +7 -0
- package/dist/api/types/AsyncConfig.js +5 -0
- package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +9 -0
- package/dist/api/types/AsyncSessionAiResponseEnvelope.js +5 -0
- package/dist/api/types/AutomationOutput.d.ts +10 -0
- package/dist/api/types/AutomationOutput.js +5 -0
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +4 -0
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +5 -0
- package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +4 -0
- package/dist/api/types/DeleteAutomationOutputWrapperBody.js +5 -0
- package/dist/api/types/ExtensionConfigurationOutput.d.ts +13 -0
- package/dist/api/types/ExtensionConfigurationOutput.js +5 -0
- package/dist/api/types/ListAutomationsOutput.d.ts +7 -0
- package/dist/api/types/ListAutomationsOutput.js +5 -0
- package/dist/api/types/SessionConfigV1.d.ts +2 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/dist/serialization/resources/automations/client/index.d.ts +1 -0
- package/dist/serialization/resources/automations/client/index.js +17 -0
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +14 -0
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +35 -0
- package/dist/serialization/resources/automations/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/automations/client/requests/index.js +5 -0
- package/dist/serialization/resources/automations/index.d.ts +1 -0
- package/dist/serialization/resources/automations/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
- package/dist/serialization/resources/sessions/types/index.d.ts +2 -2
- package/dist/serialization/resources/sessions/types/index.js +2 -2
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +41 -0
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +39 -0
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +39 -0
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +40 -0
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +40 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +41 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +40 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +41 -0
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +39 -0
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +40 -0
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +45 -0
- package/dist/serialization/resources/windows/client/requests/index.d.ts +11 -0
- package/dist/serialization/resources/windows/client/requests/index.js +23 -1
- package/dist/serialization/types/AsyncConfig.d.ts +12 -0
- package/dist/serialization/types/AsyncConfig.js +33 -0
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +15 -0
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +36 -0
- package/dist/serialization/types/AutomationOutput.d.ts +16 -0
- package/dist/serialization/types/AutomationOutput.js +37 -0
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +10 -0
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +31 -0
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +10 -0
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +31 -0
- package/dist/serialization/types/ExtensionConfigurationOutput.d.ts +15 -0
- package/dist/serialization/types/ExtensionConfigurationOutput.js +36 -0
- package/dist/serialization/types/ListAutomationsOutput.d.ts +13 -0
- package/dist/serialization/types/ListAutomationsOutput.js +34 -0
- package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
- package/dist/serialization/types/SessionConfigV1.js +1 -0
- package/dist/serialization/types/index.d.ts +7 -0
- package/dist/serialization/types/index.js +7 -0
- package/dist/wrapper/AirtopClient.d.ts +1 -0
- package/dist/wrapper/AirtopClient.js +3 -0
- package/dist/wrapper/AirtopWindows.d.ts +1 -1
- package/package.json +3 -2
- package/reference.md +1299 -156
- package/serialization/resources/automations/client/index.d.ts +1 -0
- package/serialization/resources/automations/client/index.js +17 -0
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +14 -0
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +35 -0
- package/serialization/resources/automations/client/requests/index.d.ts +1 -0
- package/serialization/resources/automations/client/requests/index.js +5 -0
- package/serialization/resources/automations/index.d.ts +1 -0
- package/serialization/resources/automations/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
- package/serialization/resources/sessions/types/index.d.ts +2 -2
- package/serialization/resources/sessions/types/index.js +2 -2
- package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncClickRequest.js +41 -0
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +39 -0
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +39 -0
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +40 -0
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +40 -0
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +41 -0
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +40 -0
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +41 -0
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +39 -0
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +40 -0
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +45 -0
- package/serialization/resources/windows/client/requests/index.d.ts +11 -0
- package/serialization/resources/windows/client/requests/index.js +23 -1
- package/serialization/types/AsyncConfig.d.ts +12 -0
- package/serialization/types/AsyncConfig.js +33 -0
- package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +15 -0
- package/serialization/types/AsyncSessionAiResponseEnvelope.js +36 -0
- package/serialization/types/AutomationOutput.d.ts +16 -0
- package/serialization/types/AutomationOutput.js +37 -0
- package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +10 -0
- package/serialization/types/CreateAutomationRequestBodyConfiguration.js +31 -0
- package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +10 -0
- package/serialization/types/DeleteAutomationOutputWrapperBody.js +31 -0
- package/serialization/types/ExtensionConfigurationOutput.d.ts +15 -0
- package/serialization/types/ExtensionConfigurationOutput.js +36 -0
- package/serialization/types/ListAutomationsOutput.d.ts +13 -0
- package/serialization/types/ListAutomationsOutput.js +34 -0
- package/serialization/types/SessionConfigV1.d.ts +1 -0
- package/serialization/types/SessionConfigV1.js +1 -0
- package/serialization/types/index.d.ts +7 -0
- package/serialization/types/index.js +7 -0
- package/wrapper/AirtopClient.d.ts +1 -0
- package/wrapper/AirtopClient.js +3 -0
- package/wrapper/AirtopWindows.d.ts +1 -1
@@ -48,6 +48,705 @@ class Windows {
|
|
48
48
|
constructor(_options) {
|
49
49
|
this._options = _options;
|
50
50
|
}
|
51
|
+
/**
|
52
|
+
* Execute a click interaction in a specific browser window asynchronously
|
53
|
+
*
|
54
|
+
* @param {string} sessionId - The session id for the window.
|
55
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
56
|
+
* @param {Airtop.AsyncClickRequest} request
|
57
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
58
|
+
*
|
59
|
+
* @example
|
60
|
+
* await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
61
|
+
* elementDescription: "The login button"
|
62
|
+
* })
|
63
|
+
*/
|
64
|
+
asyncClick(sessionId, windowId, request, requestOptions) {
|
65
|
+
var _a, _b;
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
67
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
68
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/click`),
|
69
|
+
method: "POST",
|
70
|
+
headers: {
|
71
|
+
Authorization: yield this._getAuthorizationHeader(),
|
72
|
+
"X-Fern-Language": "JavaScript",
|
73
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
74
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
75
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
76
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
77
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
78
|
+
},
|
79
|
+
contentType: "application/json",
|
80
|
+
requestType: "json",
|
81
|
+
body: serializers.AsyncClickRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
82
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
83
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
85
|
+
});
|
86
|
+
if (_response.ok) {
|
87
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
90
|
+
allowUnrecognizedEnumValues: true,
|
91
|
+
skipValidation: true,
|
92
|
+
breadcrumbsPrefix: ["response"],
|
93
|
+
});
|
94
|
+
}
|
95
|
+
if (_response.error.reason === "status-code") {
|
96
|
+
throw new errors.AirtopError({
|
97
|
+
statusCode: _response.error.statusCode,
|
98
|
+
body: _response.error.body,
|
99
|
+
});
|
100
|
+
}
|
101
|
+
switch (_response.error.reason) {
|
102
|
+
case "non-json":
|
103
|
+
throw new errors.AirtopError({
|
104
|
+
statusCode: _response.error.statusCode,
|
105
|
+
body: _response.error.rawBody,
|
106
|
+
});
|
107
|
+
case "timeout":
|
108
|
+
throw new errors.AirtopTimeoutError();
|
109
|
+
case "unknown":
|
110
|
+
throw new errors.AirtopError({
|
111
|
+
message: _response.error.errorMessage,
|
112
|
+
});
|
113
|
+
}
|
114
|
+
});
|
115
|
+
}
|
116
|
+
/**
|
117
|
+
* Create an automation of a browser window asynchronously
|
118
|
+
*
|
119
|
+
* @param {string} sessionId - The session id for the window.
|
120
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
121
|
+
* @param {Airtop.AsyncCreateAutomationRequest} request
|
122
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
123
|
+
*
|
124
|
+
* @example
|
125
|
+
* await client.windows.asyncCreateAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
126
|
+
*/
|
127
|
+
asyncCreateAutomation(sessionId, windowId, request = {}, requestOptions) {
|
128
|
+
var _a, _b;
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
130
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
131
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-automation`),
|
132
|
+
method: "POST",
|
133
|
+
headers: {
|
134
|
+
Authorization: yield this._getAuthorizationHeader(),
|
135
|
+
"X-Fern-Language": "JavaScript",
|
136
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
137
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
138
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
139
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
140
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
141
|
+
},
|
142
|
+
contentType: "application/json",
|
143
|
+
requestType: "json",
|
144
|
+
body: serializers.AsyncCreateAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
145
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
146
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
147
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
148
|
+
});
|
149
|
+
if (_response.ok) {
|
150
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
151
|
+
unrecognizedObjectKeys: "passthrough",
|
152
|
+
allowUnrecognizedUnionMembers: true,
|
153
|
+
allowUnrecognizedEnumValues: true,
|
154
|
+
skipValidation: true,
|
155
|
+
breadcrumbsPrefix: ["response"],
|
156
|
+
});
|
157
|
+
}
|
158
|
+
if (_response.error.reason === "status-code") {
|
159
|
+
throw new errors.AirtopError({
|
160
|
+
statusCode: _response.error.statusCode,
|
161
|
+
body: _response.error.body,
|
162
|
+
});
|
163
|
+
}
|
164
|
+
switch (_response.error.reason) {
|
165
|
+
case "non-json":
|
166
|
+
throw new errors.AirtopError({
|
167
|
+
statusCode: _response.error.statusCode,
|
168
|
+
body: _response.error.rawBody,
|
169
|
+
});
|
170
|
+
case "timeout":
|
171
|
+
throw new errors.AirtopTimeoutError();
|
172
|
+
case "unknown":
|
173
|
+
throw new errors.AirtopError({
|
174
|
+
message: _response.error.errorMessage,
|
175
|
+
});
|
176
|
+
}
|
177
|
+
});
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Execute an automation of a browser window asynchronously
|
181
|
+
*
|
182
|
+
* @param {string} sessionId - The session id for the window.
|
183
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
184
|
+
* @param {Airtop.AsyncExecuteAutomationRequest} request
|
185
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
186
|
+
*
|
187
|
+
* @example
|
188
|
+
* await client.windows.asyncExecuteAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
189
|
+
* automationId: "automationId"
|
190
|
+
* })
|
191
|
+
*/
|
192
|
+
asyncExecuteAutomation(sessionId, windowId, request, requestOptions) {
|
193
|
+
var _a, _b;
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
195
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
196
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/execute-automation`),
|
197
|
+
method: "POST",
|
198
|
+
headers: {
|
199
|
+
Authorization: yield this._getAuthorizationHeader(),
|
200
|
+
"X-Fern-Language": "JavaScript",
|
201
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
202
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
203
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
204
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
205
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
206
|
+
},
|
207
|
+
contentType: "application/json",
|
208
|
+
requestType: "json",
|
209
|
+
body: serializers.AsyncExecuteAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
210
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
211
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
212
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
213
|
+
});
|
214
|
+
if (_response.ok) {
|
215
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
216
|
+
unrecognizedObjectKeys: "passthrough",
|
217
|
+
allowUnrecognizedUnionMembers: true,
|
218
|
+
allowUnrecognizedEnumValues: true,
|
219
|
+
skipValidation: true,
|
220
|
+
breadcrumbsPrefix: ["response"],
|
221
|
+
});
|
222
|
+
}
|
223
|
+
if (_response.error.reason === "status-code") {
|
224
|
+
throw new errors.AirtopError({
|
225
|
+
statusCode: _response.error.statusCode,
|
226
|
+
body: _response.error.body,
|
227
|
+
});
|
228
|
+
}
|
229
|
+
switch (_response.error.reason) {
|
230
|
+
case "non-json":
|
231
|
+
throw new errors.AirtopError({
|
232
|
+
statusCode: _response.error.statusCode,
|
233
|
+
body: _response.error.rawBody,
|
234
|
+
});
|
235
|
+
case "timeout":
|
236
|
+
throw new errors.AirtopTimeoutError();
|
237
|
+
case "unknown":
|
238
|
+
throw new errors.AirtopError({
|
239
|
+
message: _response.error.errorMessage,
|
240
|
+
});
|
241
|
+
}
|
242
|
+
});
|
243
|
+
}
|
244
|
+
/**
|
245
|
+
* @param {string} sessionId - The session id for the window.
|
246
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
247
|
+
* @param {Airtop.AsyncHoverRequest} request
|
248
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
249
|
+
*
|
250
|
+
* @example
|
251
|
+
* await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
252
|
+
* elementDescription: "The search box input in the top right corner"
|
253
|
+
* })
|
254
|
+
*/
|
255
|
+
asyncHover(sessionId, windowId, request, requestOptions) {
|
256
|
+
var _a, _b;
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
258
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
259
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/hover`),
|
260
|
+
method: "POST",
|
261
|
+
headers: {
|
262
|
+
Authorization: yield this._getAuthorizationHeader(),
|
263
|
+
"X-Fern-Language": "JavaScript",
|
264
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
265
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
266
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
267
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
268
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
269
|
+
},
|
270
|
+
contentType: "application/json",
|
271
|
+
requestType: "json",
|
272
|
+
body: serializers.AsyncHoverRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
273
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
274
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
275
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
276
|
+
});
|
277
|
+
if (_response.ok) {
|
278
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
279
|
+
unrecognizedObjectKeys: "passthrough",
|
280
|
+
allowUnrecognizedUnionMembers: true,
|
281
|
+
allowUnrecognizedEnumValues: true,
|
282
|
+
skipValidation: true,
|
283
|
+
breadcrumbsPrefix: ["response"],
|
284
|
+
});
|
285
|
+
}
|
286
|
+
if (_response.error.reason === "status-code") {
|
287
|
+
throw new errors.AirtopError({
|
288
|
+
statusCode: _response.error.statusCode,
|
289
|
+
body: _response.error.body,
|
290
|
+
});
|
291
|
+
}
|
292
|
+
switch (_response.error.reason) {
|
293
|
+
case "non-json":
|
294
|
+
throw new errors.AirtopError({
|
295
|
+
statusCode: _response.error.statusCode,
|
296
|
+
body: _response.error.rawBody,
|
297
|
+
});
|
298
|
+
case "timeout":
|
299
|
+
throw new errors.AirtopTimeoutError();
|
300
|
+
case "unknown":
|
301
|
+
throw new errors.AirtopError({
|
302
|
+
message: _response.error.errorMessage,
|
303
|
+
});
|
304
|
+
}
|
305
|
+
});
|
306
|
+
}
|
307
|
+
/**
|
308
|
+
* @param {string} sessionId - The session id for the window.
|
309
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
310
|
+
* @param {Airtop.AsyncMonitorRequest} request
|
311
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
312
|
+
*
|
313
|
+
* @example
|
314
|
+
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
315
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
316
|
+
* })
|
317
|
+
*/
|
318
|
+
asyncMonitor(sessionId, windowId, request, requestOptions) {
|
319
|
+
var _a, _b;
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
321
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
322
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/monitor`),
|
323
|
+
method: "POST",
|
324
|
+
headers: {
|
325
|
+
Authorization: yield this._getAuthorizationHeader(),
|
326
|
+
"X-Fern-Language": "JavaScript",
|
327
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
328
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
329
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
330
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
331
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
332
|
+
},
|
333
|
+
contentType: "application/json",
|
334
|
+
requestType: "json",
|
335
|
+
body: serializers.AsyncMonitorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
336
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
337
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
338
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
339
|
+
});
|
340
|
+
if (_response.ok) {
|
341
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
342
|
+
unrecognizedObjectKeys: "passthrough",
|
343
|
+
allowUnrecognizedUnionMembers: true,
|
344
|
+
allowUnrecognizedEnumValues: true,
|
345
|
+
skipValidation: true,
|
346
|
+
breadcrumbsPrefix: ["response"],
|
347
|
+
});
|
348
|
+
}
|
349
|
+
if (_response.error.reason === "status-code") {
|
350
|
+
throw new errors.AirtopError({
|
351
|
+
statusCode: _response.error.statusCode,
|
352
|
+
body: _response.error.body,
|
353
|
+
});
|
354
|
+
}
|
355
|
+
switch (_response.error.reason) {
|
356
|
+
case "non-json":
|
357
|
+
throw new errors.AirtopError({
|
358
|
+
statusCode: _response.error.statusCode,
|
359
|
+
body: _response.error.rawBody,
|
360
|
+
});
|
361
|
+
case "timeout":
|
362
|
+
throw new errors.AirtopTimeoutError();
|
363
|
+
case "unknown":
|
364
|
+
throw new errors.AirtopError({
|
365
|
+
message: _response.error.errorMessage,
|
366
|
+
});
|
367
|
+
}
|
368
|
+
});
|
369
|
+
}
|
370
|
+
/**
|
371
|
+
* @param {string} sessionId - The session id for the window.
|
372
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
373
|
+
* @param {Airtop.AsyncPageQueryRequest} request
|
374
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
375
|
+
*
|
376
|
+
* @example
|
377
|
+
* await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
378
|
+
* prompt: "What is the main idea of this page?"
|
379
|
+
* })
|
380
|
+
*/
|
381
|
+
asyncPageQuery(sessionId, windowId, request, requestOptions) {
|
382
|
+
var _a, _b;
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
384
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
385
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/page-query`),
|
386
|
+
method: "POST",
|
387
|
+
headers: {
|
388
|
+
Authorization: yield this._getAuthorizationHeader(),
|
389
|
+
"X-Fern-Language": "JavaScript",
|
390
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
391
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
392
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
393
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
394
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
395
|
+
},
|
396
|
+
contentType: "application/json",
|
397
|
+
requestType: "json",
|
398
|
+
body: serializers.AsyncPageQueryRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
399
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
400
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
401
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
402
|
+
});
|
403
|
+
if (_response.ok) {
|
404
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
405
|
+
unrecognizedObjectKeys: "passthrough",
|
406
|
+
allowUnrecognizedUnionMembers: true,
|
407
|
+
allowUnrecognizedEnumValues: true,
|
408
|
+
skipValidation: true,
|
409
|
+
breadcrumbsPrefix: ["response"],
|
410
|
+
});
|
411
|
+
}
|
412
|
+
if (_response.error.reason === "status-code") {
|
413
|
+
throw new errors.AirtopError({
|
414
|
+
statusCode: _response.error.statusCode,
|
415
|
+
body: _response.error.body,
|
416
|
+
});
|
417
|
+
}
|
418
|
+
switch (_response.error.reason) {
|
419
|
+
case "non-json":
|
420
|
+
throw new errors.AirtopError({
|
421
|
+
statusCode: _response.error.statusCode,
|
422
|
+
body: _response.error.rawBody,
|
423
|
+
});
|
424
|
+
case "timeout":
|
425
|
+
throw new errors.AirtopTimeoutError();
|
426
|
+
case "unknown":
|
427
|
+
throw new errors.AirtopError({
|
428
|
+
message: _response.error.errorMessage,
|
429
|
+
});
|
430
|
+
}
|
431
|
+
});
|
432
|
+
}
|
433
|
+
/**
|
434
|
+
* @param {string} sessionId - The session id for the window.
|
435
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
436
|
+
* @param {Airtop.AsyncPaginatedExtractionRequest} request
|
437
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
438
|
+
*
|
439
|
+
* @example
|
440
|
+
* await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
441
|
+
* prompt: "This site contains a list of results about <provide details about the list>. Navigate through 3 pages of results and return the title and <provide details about the data you want to extract> about each result in this list."
|
442
|
+
* })
|
443
|
+
*/
|
444
|
+
asyncPaginatedExtraction(sessionId, windowId, request, requestOptions) {
|
445
|
+
var _a, _b;
|
446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
447
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
448
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
|
449
|
+
method: "POST",
|
450
|
+
headers: {
|
451
|
+
Authorization: yield this._getAuthorizationHeader(),
|
452
|
+
"X-Fern-Language": "JavaScript",
|
453
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
454
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
455
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
456
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
457
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
458
|
+
},
|
459
|
+
contentType: "application/json",
|
460
|
+
requestType: "json",
|
461
|
+
body: serializers.AsyncPaginatedExtractionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
462
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
463
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
464
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
465
|
+
});
|
466
|
+
if (_response.ok) {
|
467
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
468
|
+
unrecognizedObjectKeys: "passthrough",
|
469
|
+
allowUnrecognizedUnionMembers: true,
|
470
|
+
allowUnrecognizedEnumValues: true,
|
471
|
+
skipValidation: true,
|
472
|
+
breadcrumbsPrefix: ["response"],
|
473
|
+
});
|
474
|
+
}
|
475
|
+
if (_response.error.reason === "status-code") {
|
476
|
+
throw new errors.AirtopError({
|
477
|
+
statusCode: _response.error.statusCode,
|
478
|
+
body: _response.error.body,
|
479
|
+
});
|
480
|
+
}
|
481
|
+
switch (_response.error.reason) {
|
482
|
+
case "non-json":
|
483
|
+
throw new errors.AirtopError({
|
484
|
+
statusCode: _response.error.statusCode,
|
485
|
+
body: _response.error.rawBody,
|
486
|
+
});
|
487
|
+
case "timeout":
|
488
|
+
throw new errors.AirtopTimeoutError();
|
489
|
+
case "unknown":
|
490
|
+
throw new errors.AirtopError({
|
491
|
+
message: _response.error.errorMessage,
|
492
|
+
});
|
493
|
+
}
|
494
|
+
});
|
495
|
+
}
|
496
|
+
/**
|
497
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
|
498
|
+
*
|
499
|
+
* @param {string} sessionId - The session id for the window.
|
500
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
501
|
+
* @param {Airtop.AsyncPromptContentRequest} request
|
502
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
503
|
+
*
|
504
|
+
* @example
|
505
|
+
* await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
506
|
+
* prompt: "What is the main idea of this page?"
|
507
|
+
* })
|
508
|
+
*/
|
509
|
+
asyncPromptContent(sessionId, windowId, request, requestOptions) {
|
510
|
+
var _a, _b;
|
511
|
+
return __awaiter(this, void 0, void 0, function* () {
|
512
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
513
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
|
514
|
+
method: "POST",
|
515
|
+
headers: {
|
516
|
+
Authorization: yield this._getAuthorizationHeader(),
|
517
|
+
"X-Fern-Language": "JavaScript",
|
518
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
519
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
520
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
521
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
522
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
523
|
+
},
|
524
|
+
contentType: "application/json",
|
525
|
+
requestType: "json",
|
526
|
+
body: serializers.AsyncPromptContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
527
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
528
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
529
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
530
|
+
});
|
531
|
+
if (_response.ok) {
|
532
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
533
|
+
unrecognizedObjectKeys: "passthrough",
|
534
|
+
allowUnrecognizedUnionMembers: true,
|
535
|
+
allowUnrecognizedEnumValues: true,
|
536
|
+
skipValidation: true,
|
537
|
+
breadcrumbsPrefix: ["response"],
|
538
|
+
});
|
539
|
+
}
|
540
|
+
if (_response.error.reason === "status-code") {
|
541
|
+
throw new errors.AirtopError({
|
542
|
+
statusCode: _response.error.statusCode,
|
543
|
+
body: _response.error.body,
|
544
|
+
});
|
545
|
+
}
|
546
|
+
switch (_response.error.reason) {
|
547
|
+
case "non-json":
|
548
|
+
throw new errors.AirtopError({
|
549
|
+
statusCode: _response.error.statusCode,
|
550
|
+
body: _response.error.rawBody,
|
551
|
+
});
|
552
|
+
case "timeout":
|
553
|
+
throw new errors.AirtopTimeoutError();
|
554
|
+
case "unknown":
|
555
|
+
throw new errors.AirtopError({
|
556
|
+
message: _response.error.errorMessage,
|
557
|
+
});
|
558
|
+
}
|
559
|
+
});
|
560
|
+
}
|
561
|
+
/**
|
562
|
+
* Take a screenshot of the current viewport of a browser window asynchronously
|
563
|
+
*
|
564
|
+
* @param {string} sessionId - The session id for the window.
|
565
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
566
|
+
* @param {Airtop.AsyncScreenshotRequest} request
|
567
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
568
|
+
*
|
569
|
+
* @example
|
570
|
+
* await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
571
|
+
*/
|
572
|
+
asyncScreenshot(sessionId, windowId, request = {}, requestOptions) {
|
573
|
+
var _a, _b;
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
575
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
576
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/screenshot`),
|
577
|
+
method: "POST",
|
578
|
+
headers: {
|
579
|
+
Authorization: yield this._getAuthorizationHeader(),
|
580
|
+
"X-Fern-Language": "JavaScript",
|
581
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
582
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
583
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
584
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
585
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
586
|
+
},
|
587
|
+
contentType: "application/json",
|
588
|
+
requestType: "json",
|
589
|
+
body: serializers.AsyncScreenshotRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
590
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
591
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
592
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
593
|
+
});
|
594
|
+
if (_response.ok) {
|
595
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
596
|
+
unrecognizedObjectKeys: "passthrough",
|
597
|
+
allowUnrecognizedUnionMembers: true,
|
598
|
+
allowUnrecognizedEnumValues: true,
|
599
|
+
skipValidation: true,
|
600
|
+
breadcrumbsPrefix: ["response"],
|
601
|
+
});
|
602
|
+
}
|
603
|
+
if (_response.error.reason === "status-code") {
|
604
|
+
throw new errors.AirtopError({
|
605
|
+
statusCode: _response.error.statusCode,
|
606
|
+
body: _response.error.body,
|
607
|
+
});
|
608
|
+
}
|
609
|
+
switch (_response.error.reason) {
|
610
|
+
case "non-json":
|
611
|
+
throw new errors.AirtopError({
|
612
|
+
statusCode: _response.error.statusCode,
|
613
|
+
body: _response.error.rawBody,
|
614
|
+
});
|
615
|
+
case "timeout":
|
616
|
+
throw new errors.AirtopTimeoutError();
|
617
|
+
case "unknown":
|
618
|
+
throw new errors.AirtopError({
|
619
|
+
message: _response.error.errorMessage,
|
620
|
+
});
|
621
|
+
}
|
622
|
+
});
|
623
|
+
}
|
624
|
+
/**
|
625
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
|
626
|
+
*
|
627
|
+
* @param {string} sessionId - The session id for the window.
|
628
|
+
* @param {string} windowId - The Airtop window id of the browser window to summarize.
|
629
|
+
* @param {Airtop.AsyncSummarizeContentRequest} request
|
630
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
631
|
+
*
|
632
|
+
* @example
|
633
|
+
* await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
634
|
+
*/
|
635
|
+
asyncSummarizeContent(sessionId, windowId, request = {}, requestOptions) {
|
636
|
+
var _a, _b;
|
637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
638
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
639
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
|
640
|
+
method: "POST",
|
641
|
+
headers: {
|
642
|
+
Authorization: yield this._getAuthorizationHeader(),
|
643
|
+
"X-Fern-Language": "JavaScript",
|
644
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
645
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
646
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
647
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
648
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
649
|
+
},
|
650
|
+
contentType: "application/json",
|
651
|
+
requestType: "json",
|
652
|
+
body: serializers.AsyncSummarizeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
653
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
654
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
655
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
656
|
+
});
|
657
|
+
if (_response.ok) {
|
658
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
659
|
+
unrecognizedObjectKeys: "passthrough",
|
660
|
+
allowUnrecognizedUnionMembers: true,
|
661
|
+
allowUnrecognizedEnumValues: true,
|
662
|
+
skipValidation: true,
|
663
|
+
breadcrumbsPrefix: ["response"],
|
664
|
+
});
|
665
|
+
}
|
666
|
+
if (_response.error.reason === "status-code") {
|
667
|
+
throw new errors.AirtopError({
|
668
|
+
statusCode: _response.error.statusCode,
|
669
|
+
body: _response.error.body,
|
670
|
+
});
|
671
|
+
}
|
672
|
+
switch (_response.error.reason) {
|
673
|
+
case "non-json":
|
674
|
+
throw new errors.AirtopError({
|
675
|
+
statusCode: _response.error.statusCode,
|
676
|
+
body: _response.error.rawBody,
|
677
|
+
});
|
678
|
+
case "timeout":
|
679
|
+
throw new errors.AirtopTimeoutError();
|
680
|
+
case "unknown":
|
681
|
+
throw new errors.AirtopError({
|
682
|
+
message: _response.error.errorMessage,
|
683
|
+
});
|
684
|
+
}
|
685
|
+
});
|
686
|
+
}
|
687
|
+
/**
|
688
|
+
* @param {string} sessionId - The session id for the window.
|
689
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
690
|
+
* @param {Airtop.AsyncTypeRequest} request
|
691
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
692
|
+
*
|
693
|
+
* @example
|
694
|
+
* await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
695
|
+
* text: "Example text"
|
696
|
+
* })
|
697
|
+
*/
|
698
|
+
asyncType(sessionId, windowId, request, requestOptions) {
|
699
|
+
var _a, _b;
|
700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
701
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
702
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/type`),
|
703
|
+
method: "POST",
|
704
|
+
headers: {
|
705
|
+
Authorization: yield this._getAuthorizationHeader(),
|
706
|
+
"X-Fern-Language": "JavaScript",
|
707
|
+
"X-Fern-SDK-Name": "@airtop/sdk",
|
708
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
709
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
710
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
711
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
712
|
+
},
|
713
|
+
contentType: "application/json",
|
714
|
+
requestType: "json",
|
715
|
+
body: serializers.AsyncTypeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
716
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
717
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
718
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
719
|
+
});
|
720
|
+
if (_response.ok) {
|
721
|
+
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
722
|
+
unrecognizedObjectKeys: "passthrough",
|
723
|
+
allowUnrecognizedUnionMembers: true,
|
724
|
+
allowUnrecognizedEnumValues: true,
|
725
|
+
skipValidation: true,
|
726
|
+
breadcrumbsPrefix: ["response"],
|
727
|
+
});
|
728
|
+
}
|
729
|
+
if (_response.error.reason === "status-code") {
|
730
|
+
throw new errors.AirtopError({
|
731
|
+
statusCode: _response.error.statusCode,
|
732
|
+
body: _response.error.body,
|
733
|
+
});
|
734
|
+
}
|
735
|
+
switch (_response.error.reason) {
|
736
|
+
case "non-json":
|
737
|
+
throw new errors.AirtopError({
|
738
|
+
statusCode: _response.error.statusCode,
|
739
|
+
body: _response.error.rawBody,
|
740
|
+
});
|
741
|
+
case "timeout":
|
742
|
+
throw new errors.AirtopTimeoutError();
|
743
|
+
case "unknown":
|
744
|
+
throw new errors.AirtopError({
|
745
|
+
message: _response.error.errorMessage,
|
746
|
+
});
|
747
|
+
}
|
748
|
+
});
|
749
|
+
}
|
51
750
|
/**
|
52
751
|
* Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
|
53
752
|
*
|
@@ -68,8 +767,8 @@ class Windows {
|
|
68
767
|
Authorization: yield this._getAuthorizationHeader(),
|
69
768
|
"X-Fern-Language": "JavaScript",
|
70
769
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
71
|
-
"X-Fern-SDK-Version": "0.1.
|
72
|
-
"User-Agent": "@airtop/sdk/0.1.
|
770
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
771
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
73
772
|
"X-Fern-Runtime": core.RUNTIME.type,
|
74
773
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
75
774
|
},
|
@@ -144,8 +843,8 @@ class Windows {
|
|
144
843
|
Authorization: yield this._getAuthorizationHeader(),
|
145
844
|
"X-Fern-Language": "JavaScript",
|
146
845
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
147
|
-
"X-Fern-SDK-Version": "0.1.
|
148
|
-
"User-Agent": "@airtop/sdk/0.1.
|
846
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
847
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
149
848
|
"X-Fern-Runtime": core.RUNTIME.type,
|
150
849
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
151
850
|
},
|
@@ -209,8 +908,8 @@ class Windows {
|
|
209
908
|
Authorization: yield this._getAuthorizationHeader(),
|
210
909
|
"X-Fern-Language": "JavaScript",
|
211
910
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
212
|
-
"X-Fern-SDK-Version": "0.1.
|
213
|
-
"User-Agent": "@airtop/sdk/0.1.
|
911
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
912
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
214
913
|
"X-Fern-Runtime": core.RUNTIME.type,
|
215
914
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
216
915
|
},
|
@@ -271,8 +970,8 @@ class Windows {
|
|
271
970
|
Authorization: yield this._getAuthorizationHeader(),
|
272
971
|
"X-Fern-Language": "JavaScript",
|
273
972
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
274
|
-
"X-Fern-SDK-Version": "0.1.
|
275
|
-
"User-Agent": "@airtop/sdk/0.1.
|
973
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
974
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
276
975
|
"X-Fern-Runtime": core.RUNTIME.type,
|
277
976
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
278
977
|
},
|
@@ -335,8 +1034,8 @@ class Windows {
|
|
335
1034
|
Authorization: yield this._getAuthorizationHeader(),
|
336
1035
|
"X-Fern-Language": "JavaScript",
|
337
1036
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
338
|
-
"X-Fern-SDK-Version": "0.1.
|
339
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1037
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1038
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
340
1039
|
"X-Fern-Runtime": core.RUNTIME.type,
|
341
1040
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
342
1041
|
},
|
@@ -400,8 +1099,8 @@ class Windows {
|
|
400
1099
|
Authorization: yield this._getAuthorizationHeader(),
|
401
1100
|
"X-Fern-Language": "JavaScript",
|
402
1101
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
403
|
-
"X-Fern-SDK-Version": "0.1.
|
404
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1102
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1103
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
405
1104
|
"X-Fern-Runtime": core.RUNTIME.type,
|
406
1105
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
407
1106
|
},
|
@@ -463,8 +1162,8 @@ class Windows {
|
|
463
1162
|
Authorization: yield this._getAuthorizationHeader(),
|
464
1163
|
"X-Fern-Language": "JavaScript",
|
465
1164
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
466
|
-
"X-Fern-SDK-Version": "0.1.
|
467
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1165
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1166
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
468
1167
|
"X-Fern-Runtime": core.RUNTIME.type,
|
469
1168
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
470
1169
|
},
|
@@ -530,8 +1229,8 @@ class Windows {
|
|
530
1229
|
Authorization: yield this._getAuthorizationHeader(),
|
531
1230
|
"X-Fern-Language": "JavaScript",
|
532
1231
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
533
|
-
"X-Fern-SDK-Version": "0.1.
|
534
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1232
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1233
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
535
1234
|
"X-Fern-Runtime": core.RUNTIME.type,
|
536
1235
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
537
1236
|
},
|
@@ -597,8 +1296,8 @@ class Windows {
|
|
597
1296
|
Authorization: yield this._getAuthorizationHeader(),
|
598
1297
|
"X-Fern-Language": "JavaScript",
|
599
1298
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
600
|
-
"X-Fern-SDK-Version": "0.1.
|
601
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1299
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1300
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
602
1301
|
"X-Fern-Runtime": core.RUNTIME.type,
|
603
1302
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
604
1303
|
},
|
@@ -664,8 +1363,8 @@ class Windows {
|
|
664
1363
|
Authorization: yield this._getAuthorizationHeader(),
|
665
1364
|
"X-Fern-Language": "JavaScript",
|
666
1365
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
667
|
-
"X-Fern-SDK-Version": "0.1.
|
668
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1366
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1367
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
669
1368
|
"X-Fern-Runtime": core.RUNTIME.type,
|
670
1369
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
671
1370
|
},
|
@@ -729,8 +1428,8 @@ class Windows {
|
|
729
1428
|
Authorization: yield this._getAuthorizationHeader(),
|
730
1429
|
"X-Fern-Language": "JavaScript",
|
731
1430
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
732
|
-
"X-Fern-SDK-Version": "0.1.
|
733
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1431
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1432
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
734
1433
|
"X-Fern-Runtime": core.RUNTIME.type,
|
735
1434
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
736
1435
|
},
|
@@ -792,8 +1491,8 @@ class Windows {
|
|
792
1491
|
Authorization: yield this._getAuthorizationHeader(),
|
793
1492
|
"X-Fern-Language": "JavaScript",
|
794
1493
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
795
|
-
"X-Fern-SDK-Version": "0.1.
|
796
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1494
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1495
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
797
1496
|
"X-Fern-Runtime": core.RUNTIME.type,
|
798
1497
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
799
1498
|
},
|
@@ -857,8 +1556,8 @@ class Windows {
|
|
857
1556
|
Authorization: yield this._getAuthorizationHeader(),
|
858
1557
|
"X-Fern-Language": "JavaScript",
|
859
1558
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
860
|
-
"X-Fern-SDK-Version": "0.1.
|
861
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1559
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1560
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
862
1561
|
"X-Fern-Runtime": core.RUNTIME.type,
|
863
1562
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
864
1563
|
},
|
@@ -920,8 +1619,8 @@ class Windows {
|
|
920
1619
|
Authorization: yield this._getAuthorizationHeader(),
|
921
1620
|
"X-Fern-Language": "JavaScript",
|
922
1621
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
923
|
-
"X-Fern-SDK-Version": "0.1.
|
924
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1622
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1623
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
925
1624
|
"X-Fern-Runtime": core.RUNTIME.type,
|
926
1625
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
927
1626
|
},
|
@@ -987,8 +1686,8 @@ class Windows {
|
|
987
1686
|
Authorization: yield this._getAuthorizationHeader(),
|
988
1687
|
"X-Fern-Language": "JavaScript",
|
989
1688
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
990
|
-
"X-Fern-SDK-Version": "0.1.
|
991
|
-
"User-Agent": "@airtop/sdk/0.1.
|
1689
|
+
"X-Fern-SDK-Version": "0.1.33-beta0",
|
1690
|
+
"User-Agent": "@airtop/sdk/0.1.33-beta0",
|
992
1691
|
"X-Fern-Runtime": core.RUNTIME.type,
|
993
1692
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
994
1693
|
},
|