@airtop/sdk 0.1.36 → 1.0.0-alpha2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -140
- package/dist/index.cjs +1195 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1028 -0
- package/dist/index.d.ts +1028 -7
- package/dist/index.js +1193 -49
- package/dist/index.js.map +1 -0
- package/package.json +71 -71
- package/Client.d.ts +0 -43
- package/Client.js +0 -37
- package/api/errors/ForbiddenError.d.ts +0 -8
- package/api/errors/ForbiddenError.js +0 -51
- package/api/errors/InternalServerError.d.ts +0 -8
- package/api/errors/InternalServerError.js +0 -51
- package/api/errors/NotFoundError.d.ts +0 -8
- package/api/errors/NotFoundError.js +0 -51
- package/api/errors/UnauthorizedError.d.ts +0 -8
- package/api/errors/UnauthorizedError.js +0 -51
- package/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/api/errors/UnprocessableEntityError.js +0 -51
- package/api/errors/index.d.ts +0 -5
- package/api/errors/index.js +0 -21
- package/api/index.d.ts +0 -3
- package/api/index.js +0 -19
- package/api/resources/automations/client/Client.d.ts +0 -91
- package/api/resources/automations/client/Client.js +0 -429
- package/api/resources/automations/client/index.d.ts +0 -1
- package/api/resources/automations/client/index.js +0 -17
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
- package/api/resources/automations/client/requests/index.d.ts +0 -1
- package/api/resources/automations/client/requests/index.js +0 -2
- package/api/resources/automations/index.d.ts +0 -1
- package/api/resources/automations/index.js +0 -17
- package/api/resources/index.d.ts +0 -11
- package/api/resources/index.js +0 -50
- package/api/resources/profiles/client/Client.d.ts +0 -40
- package/api/resources/profiles/client/Client.js +0 -131
- package/api/resources/profiles/client/index.d.ts +0 -1
- package/api/resources/profiles/client/index.js +0 -17
- package/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +0 -17
- package/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +0 -5
- package/api/resources/profiles/client/requests/index.d.ts +0 -1
- package/api/resources/profiles/client/requests/index.js +0 -2
- package/api/resources/profiles/index.d.ts +0 -1
- package/api/resources/profiles/index.js +0 -17
- package/api/resources/requests/client/Client.d.ts +0 -38
- package/api/resources/requests/client/Client.js +0 -117
- package/api/resources/requests/client/index.d.ts +0 -1
- package/api/resources/requests/client/index.js +0 -2
- package/api/resources/requests/index.d.ts +0 -1
- package/api/resources/requests/index.js +0 -17
- package/api/resources/sessions/client/Client.d.ts +0 -92
- package/api/resources/sessions/client/Client.js +0 -494
- package/api/resources/sessions/client/index.d.ts +0 -1
- package/api/resources/sessions/client/index.js +0 -17
- package/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -12
- package/api/resources/sessions/client/requests/SessionRestInputV1.js +0 -5
- package/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +0 -20
- package/api/resources/sessions/client/requests/SessionsEventsRequest.js +0 -5
- package/api/resources/sessions/client/requests/SessionsListRequest.d.ts +0 -29
- package/api/resources/sessions/client/requests/SessionsListRequest.js +0 -5
- package/api/resources/sessions/client/requests/index.d.ts +0 -3
- package/api/resources/sessions/client/requests/index.js +0 -2
- package/api/resources/sessions/index.d.ts +0 -2
- package/api/resources/sessions/index.js +0 -18
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -22
- package/api/resources/sessions/types/SessionsEventsResponse.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseError.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseStatus.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -5
- package/api/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -16
- package/api/resources/sessions/types/SessionsListRequestStatus.js +0 -15
- package/api/resources/sessions/types/index.d.ts +0 -6
- package/api/resources/sessions/types/index.js +0 -22
- package/api/resources/windows/client/Client.d.ts +0 -302
- package/api/resources/windows/client/Client.js +0 -1264
- package/api/resources/windows/client/index.d.ts +0 -1
- package/api/resources/windows/client/index.js +0 -17
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncFillFormRequest.js +0 -5
- package/api/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/CreateFormFillerRequest.js +0 -5
- package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -18
- package/api/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -5
- package/api/resources/windows/client/requests/FillFormRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/FillFormRequest.js +0 -5
- package/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/GetWindowInfoRequest.js +0 -5
- package/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -18
- package/api/resources/windows/client/requests/ScrapeContentRequest.js +0 -5
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -27
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -25
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -25
- package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -25
- package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -21
- package/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -29
- package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -23
- package/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -35
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -18
- package/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -5
- package/api/resources/windows/client/requests/index.d.ts +0 -18
- package/api/resources/windows/client/requests/index.js +0 -2
- package/api/resources/windows/index.d.ts +0 -2
- package/api/resources/windows/index.js +0 -18
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -13
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -12
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -13
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -12
- package/api/resources/windows/types/index.d.ts +0 -2
- package/api/resources/windows/types/index.js +0 -18
- package/api/types/AiPromptResponse.d.ts +0 -10
- package/api/types/AiPromptResponse.js +0 -5
- package/api/types/AiResponseEnvelope.d.ts +0 -6
- package/api/types/AiResponseEnvelope.js +0 -5
- package/api/types/AirtopProxyConfiguration.d.ts +0 -9
- package/api/types/AirtopProxyConfiguration.js +0 -5
- package/api/types/AsyncConfig.d.ts +0 -7
- package/api/types/AsyncConfig.js +0 -5
- package/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
- package/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
- package/api/types/AutomationOutput.d.ts +0 -10
- package/api/types/AutomationOutput.js +0 -5
- package/api/types/BrowserWaitNavigationConfig.d.ts +0 -10
- package/api/types/BrowserWaitNavigationConfig.js +0 -5
- package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -13
- package/api/types/BrowserWaitNavigationConfigWaitUntil.js +0 -12
- package/api/types/ClickConfig.d.ts +0 -14
- package/api/types/ClickConfig.js +0 -5
- package/api/types/ClickConfigClickType.d.ts +0 -12
- package/api/types/ClickConfigClickType.js +0 -11
- package/api/types/ClientProvidedResponseMetadata.d.ts +0 -6
- package/api/types/ClientProvidedResponseMetadata.js +0 -5
- package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
- package/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
- package/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
- package/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
- package/api/types/EnvelopeDefaultMeta.d.ts +0 -6
- package/api/types/EnvelopeDefaultMeta.js +0 -5
- package/api/types/ErrorBody.d.ts +0 -9
- package/api/types/ErrorBody.js +0 -5
- package/api/types/ErrorDetail.d.ts +0 -10
- package/api/types/ErrorDetail.js +0 -5
- package/api/types/ErrorMessage.d.ts +0 -11
- package/api/types/ErrorMessage.js +0 -5
- package/api/types/ErrorModel.d.ts +0 -18
- package/api/types/ErrorModel.js +0 -5
- package/api/types/ExternalSessionAiResponseMetadata.d.ts +0 -13
- package/api/types/ExternalSessionAiResponseMetadata.js +0 -5
- package/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -12
- package/api/types/ExternalSessionAiResponseMetadataStatus.js +0 -11
- package/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -9
- package/api/types/ExternalSessionAiResponseMetadataUsage.js +0 -5
- package/api/types/ExternalSessionConfig.d.ts +0 -11
- package/api/types/ExternalSessionConfig.js +0 -5
- package/api/types/ExternalSessionWithConnectionInfo.d.ts +0 -26
- package/api/types/ExternalSessionWithConnectionInfo.js +0 -5
- package/api/types/IntervalMonitorConfig.d.ts +0 -9
- package/api/types/IntervalMonitorConfig.js +0 -5
- package/api/types/Issue.d.ts +0 -13
- package/api/types/Issue.js +0 -5
- package/api/types/ListAutomationsOutput.d.ts +0 -7
- package/api/types/ListAutomationsOutput.js +0 -5
- package/api/types/MicroInteractionConfig.d.ts +0 -10
- package/api/types/MicroInteractionConfig.js +0 -5
- package/api/types/MicroInteractionConfigWithExperimental.d.ts +0 -12
- package/api/types/MicroInteractionConfigWithExperimental.js +0 -5
- package/api/types/MicroInteractionExperimentalConfig.d.ts +0 -7
- package/api/types/MicroInteractionExperimentalConfig.js +0 -5
- package/api/types/MonitorConfig.d.ts +0 -10
- package/api/types/MonitorConfig.js +0 -5
- package/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -12
- package/api/types/MonitorConfigIncludeVisualAnalysis.js +0 -11
- package/api/types/OperationOutcome.d.ts +0 -7
- package/api/types/OperationOutcome.js +0 -5
- package/api/types/OperationOutcomeResponse.d.ts +0 -10
- package/api/types/OperationOutcomeResponse.js +0 -5
- package/api/types/PageQueryConfig.d.ts +0 -12
- package/api/types/PageQueryConfig.js +0 -5
- package/api/types/PageQueryExperimentalConfig.d.ts +0 -7
- package/api/types/PageQueryExperimentalConfig.js +0 -5
- package/api/types/PaginatedExtractionConfig.d.ts +0 -16
- package/api/types/PaginatedExtractionConfig.js +0 -5
- package/api/types/PaginatedExtractionExperimentalConfig.d.ts +0 -7
- package/api/types/PaginatedExtractionExperimentalConfig.js +0 -5
- package/api/types/Pagination.d.ts +0 -21
- package/api/types/Pagination.js +0 -5
- package/api/types/Proxy.d.ts +0 -14
- package/api/types/Proxy.js +0 -5
- package/api/types/ProxyConfigurationKind.d.ts +0 -9
- package/api/types/ProxyConfigurationKind.js +0 -5
- package/api/types/ProxyCredentials.d.ts +0 -11
- package/api/types/ProxyCredentials.js +0 -5
- package/api/types/RequestStatusResponse.d.ts +0 -8
- package/api/types/RequestStatusResponse.js +0 -5
- package/api/types/ScrapeConfig.d.ts +0 -7
- package/api/types/ScrapeConfig.js +0 -5
- package/api/types/ScrapeResponse.d.ts +0 -10
- package/api/types/ScrapeResponse.js +0 -5
- package/api/types/ScrapeResponseContent.d.ts +0 -9
- package/api/types/ScrapeResponseContent.js +0 -5
- package/api/types/ScrapeResponseEnvelope.d.ts +0 -8
- package/api/types/ScrapeResponseEnvelope.js +0 -5
- package/api/types/ScrapeResponseOutput.d.ts +0 -12
- package/api/types/ScrapeResponseOutput.js +0 -5
- package/api/types/ScreenshotConfig.d.ts +0 -13
- package/api/types/ScreenshotConfig.js +0 -5
- package/api/types/ScreenshotMetadata.d.ts +0 -7
- package/api/types/ScreenshotMetadata.js +0 -5
- package/api/types/ScreenshotRequestConfig.d.ts +0 -8
- package/api/types/ScreenshotRequestConfig.js +0 -5
- package/api/types/ScrollByConfig.d.ts +0 -9
- package/api/types/ScrollByConfig.js +0 -5
- package/api/types/ScrollToEdgeConfig.d.ts +0 -9
- package/api/types/ScrollToEdgeConfig.js +0 -5
- package/api/types/SessionConfigV1.d.ts +0 -18
- package/api/types/SessionConfigV1.js +0 -5
- package/api/types/SessionConfigV1Proxy.d.ts +0 -17
- package/api/types/SessionConfigV1Proxy.js +0 -5
- package/api/types/SessionEventMessage.d.ts +0 -17
- package/api/types/SessionEventMessage.js +0 -5
- package/api/types/SessionPageQueryHandlerRequestBody.d.ts +0 -21
- package/api/types/SessionPageQueryHandlerRequestBody.js +0 -5
- package/api/types/SessionResponse.d.ts +0 -10
- package/api/types/SessionResponse.js +0 -5
- package/api/types/SessionsResponse.d.ts +0 -10
- package/api/types/SessionsResponse.js +0 -5
- package/api/types/SessionsWithPagination.d.ts +0 -10
- package/api/types/SessionsWithPagination.js +0 -5
- package/api/types/StatusMessage.d.ts +0 -16
- package/api/types/StatusMessage.js +0 -5
- package/api/types/StatusMessageStatus.d.ts +0 -15
- package/api/types/StatusMessageStatus.js +0 -14
- package/api/types/SummaryConfig.d.ts +0 -9
- package/api/types/SummaryConfig.js +0 -5
- package/api/types/SummaryExperimentalConfig.d.ts +0 -7
- package/api/types/SummaryExperimentalConfig.js +0 -5
- package/api/types/VisualAnalysisConfig.d.ts +0 -18
- package/api/types/VisualAnalysisConfig.js +0 -5
- package/api/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -12
- package/api/types/VisualAnalysisConfigPartitionDirection.js +0 -11
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -12
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -11
- package/api/types/VisualAnalysisConfigScope.d.ts +0 -13
- package/api/types/VisualAnalysisConfigScope.js +0 -12
- package/api/types/Window.d.ts +0 -11
- package/api/types/Window.js +0 -5
- package/api/types/WindowEventMessage.d.ts +0 -19
- package/api/types/WindowEventMessage.js +0 -5
- package/api/types/WindowId.d.ts +0 -9
- package/api/types/WindowId.js +0 -5
- package/api/types/WindowIdResponse.d.ts +0 -10
- package/api/types/WindowIdResponse.js +0 -5
- package/api/types/WindowResponse.d.ts +0 -10
- package/api/types/WindowResponse.js +0 -5
- package/api/types/index.d.ts +0 -72
- package/api/types/index.js +0 -88
- package/biome.json +0 -69
- package/config/tsconfig-nobase.json +0 -16
- package/core/auth/BasicAuth.d.ts +0 -8
- package/core/auth/BasicAuth.js +0 -26
- package/core/auth/BearerToken.d.ts +0 -5
- package/core/auth/BearerToken.js +0 -15
- package/core/auth/index.d.ts +0 -2
- package/core/auth/index.js +0 -7
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/APIResponse.js +0 -2
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -100
- package/core/fetcher/Supplier.d.ts +0 -4
- package/core/fetcher/Supplier.js +0 -22
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getHeader.d.ts +0 -1
- package/core/fetcher/getHeader.js +0 -11
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/signals.d.ts +0 -11
- package/core/fetcher/signals.js +0 -36
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/index.d.ts +0 -5
- package/core/index.js +0 -44
- package/core/json.d.ts +0 -15
- package/core/json.js +0 -24
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -103
- package/core/schemas/Schema.d.ts +0 -87
- package/core/schemas/Schema.js +0 -24
- package/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/core/schemas/builders/bigint/bigint.js +0 -53
- package/core/schemas/builders/bigint/index.d.ts +0 -1
- package/core/schemas/builders/bigint/index.js +0 -5
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -62
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -38
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -14
- package/core/schemas/builders/index.js +0 -30
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -24
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -54
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -261
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -15
- package/core/schemas/builders/object/types.d.ts +0 -31
- package/core/schemas/builders/object/types.js +0 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/object-like/types.js +0 -2
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -93
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/record/types.js +0 -2
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -43
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -9
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/types.js +0 -2
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -129
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/MaybePromise.js +0 -2
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -6
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -13
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -17
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -6
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -15
- package/core/streaming-fetcher/Stream.d.ts +0 -47
- package/core/streaming-fetcher/Stream.js +0 -169
- package/core/streaming-fetcher/index.d.ts +0 -1
- package/core/streaming-fetcher/index.js +0 -5
- package/dist/Client.d.ts +0 -43
- package/dist/Client.js +0 -37
- package/dist/api/errors/ForbiddenError.d.ts +0 -8
- package/dist/api/errors/ForbiddenError.js +0 -51
- package/dist/api/errors/InternalServerError.d.ts +0 -8
- package/dist/api/errors/InternalServerError.js +0 -51
- package/dist/api/errors/NotFoundError.d.ts +0 -8
- package/dist/api/errors/NotFoundError.js +0 -51
- package/dist/api/errors/UnauthorizedError.d.ts +0 -8
- package/dist/api/errors/UnauthorizedError.js +0 -51
- package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/dist/api/errors/UnprocessableEntityError.js +0 -51
- package/dist/api/errors/index.d.ts +0 -5
- package/dist/api/errors/index.js +0 -21
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -19
- package/dist/api/resources/automations/client/Client.d.ts +0 -91
- package/dist/api/resources/automations/client/Client.js +0 -429
- package/dist/api/resources/automations/client/index.d.ts +0 -1
- package/dist/api/resources/automations/client/index.js +0 -17
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
- package/dist/api/resources/automations/client/requests/index.d.ts +0 -1
- package/dist/api/resources/automations/client/requests/index.js +0 -2
- package/dist/api/resources/automations/index.d.ts +0 -1
- package/dist/api/resources/automations/index.js +0 -17
- package/dist/api/resources/index.d.ts +0 -11
- package/dist/api/resources/index.js +0 -50
- package/dist/api/resources/profiles/client/Client.d.ts +0 -40
- package/dist/api/resources/profiles/client/Client.js +0 -131
- package/dist/api/resources/profiles/client/index.d.ts +0 -1
- package/dist/api/resources/profiles/client/index.js +0 -17
- package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +0 -17
- package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +0 -5
- package/dist/api/resources/profiles/client/requests/index.d.ts +0 -1
- package/dist/api/resources/profiles/client/requests/index.js +0 -2
- package/dist/api/resources/profiles/index.d.ts +0 -1
- package/dist/api/resources/profiles/index.js +0 -17
- package/dist/api/resources/requests/client/Client.d.ts +0 -38
- package/dist/api/resources/requests/client/Client.js +0 -117
- package/dist/api/resources/requests/client/index.d.ts +0 -1
- package/dist/api/resources/requests/client/index.js +0 -2
- package/dist/api/resources/requests/index.d.ts +0 -1
- package/dist/api/resources/requests/index.js +0 -17
- package/dist/api/resources/sessions/client/Client.d.ts +0 -92
- package/dist/api/resources/sessions/client/Client.js +0 -494
- package/dist/api/resources/sessions/client/index.d.ts +0 -1
- package/dist/api/resources/sessions/client/index.js +0 -17
- package/dist/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -12
- package/dist/api/resources/sessions/client/requests/SessionRestInputV1.js +0 -5
- package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +0 -20
- package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.js +0 -5
- package/dist/api/resources/sessions/client/requests/SessionsListRequest.d.ts +0 -29
- package/dist/api/resources/sessions/client/requests/SessionsListRequest.js +0 -5
- package/dist/api/resources/sessions/client/requests/index.d.ts +0 -3
- package/dist/api/resources/sessions/client/requests/index.js +0 -2
- package/dist/api/resources/sessions/index.d.ts +0 -2
- package/dist/api/resources/sessions/index.js +0 -18
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -22
- package/dist/api/resources/sessions/types/SessionsEventsResponse.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseError.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -5
- package/dist/api/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -16
- package/dist/api/resources/sessions/types/SessionsListRequestStatus.js +0 -15
- package/dist/api/resources/sessions/types/index.d.ts +0 -6
- package/dist/api/resources/sessions/types/index.js +0 -22
- package/dist/api/resources/windows/client/Client.d.ts +0 -302
- package/dist/api/resources/windows/client/Client.js +0 -1264
- package/dist/api/resources/windows/client/index.d.ts +0 -1
- package/dist/api/resources/windows/client/index.js +0 -17
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncFillFormRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/CreateFormFillerRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -5
- package/dist/api/resources/windows/client/requests/FillFormRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/FillFormRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/GetWindowInfoRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/ScrapeContentRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -25
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -25
- package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -25
- package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -21
- package/dist/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -29
- package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -35
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -5
- package/dist/api/resources/windows/client/requests/index.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/index.js +0 -2
- package/dist/api/resources/windows/index.d.ts +0 -2
- package/dist/api/resources/windows/index.js +0 -18
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -13
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -12
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -13
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -12
- package/dist/api/resources/windows/types/index.d.ts +0 -2
- package/dist/api/resources/windows/types/index.js +0 -18
- package/dist/api/types/AiPromptResponse.d.ts +0 -10
- package/dist/api/types/AiPromptResponse.js +0 -5
- package/dist/api/types/AiResponseEnvelope.d.ts +0 -6
- package/dist/api/types/AiResponseEnvelope.js +0 -5
- package/dist/api/types/AirtopProxyConfiguration.d.ts +0 -9
- package/dist/api/types/AirtopProxyConfiguration.js +0 -5
- package/dist/api/types/AsyncConfig.d.ts +0 -7
- package/dist/api/types/AsyncConfig.js +0 -5
- package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
- package/dist/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
- package/dist/api/types/AutomationOutput.d.ts +0 -10
- package/dist/api/types/AutomationOutput.js +0 -5
- package/dist/api/types/BrowserWaitNavigationConfig.d.ts +0 -10
- package/dist/api/types/BrowserWaitNavigationConfig.js +0 -5
- package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -13
- package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.js +0 -12
- package/dist/api/types/ClickConfig.d.ts +0 -14
- package/dist/api/types/ClickConfig.js +0 -5
- package/dist/api/types/ClickConfigClickType.d.ts +0 -12
- package/dist/api/types/ClickConfigClickType.js +0 -11
- package/dist/api/types/ClientProvidedResponseMetadata.d.ts +0 -6
- package/dist/api/types/ClientProvidedResponseMetadata.js +0 -5
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
- package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
- package/dist/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
- package/dist/api/types/EnvelopeDefaultMeta.d.ts +0 -6
- package/dist/api/types/EnvelopeDefaultMeta.js +0 -5
- package/dist/api/types/ErrorBody.d.ts +0 -9
- package/dist/api/types/ErrorBody.js +0 -5
- package/dist/api/types/ErrorDetail.d.ts +0 -10
- package/dist/api/types/ErrorDetail.js +0 -5
- package/dist/api/types/ErrorMessage.d.ts +0 -11
- package/dist/api/types/ErrorMessage.js +0 -5
- package/dist/api/types/ErrorModel.d.ts +0 -18
- package/dist/api/types/ErrorModel.js +0 -5
- package/dist/api/types/ExternalSessionAiResponseMetadata.d.ts +0 -13
- package/dist/api/types/ExternalSessionAiResponseMetadata.js +0 -5
- package/dist/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -12
- package/dist/api/types/ExternalSessionAiResponseMetadataStatus.js +0 -11
- package/dist/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -9
- package/dist/api/types/ExternalSessionAiResponseMetadataUsage.js +0 -5
- package/dist/api/types/ExternalSessionConfig.d.ts +0 -11
- package/dist/api/types/ExternalSessionConfig.js +0 -5
- package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +0 -26
- package/dist/api/types/ExternalSessionWithConnectionInfo.js +0 -5
- package/dist/api/types/IntervalMonitorConfig.d.ts +0 -9
- package/dist/api/types/IntervalMonitorConfig.js +0 -5
- package/dist/api/types/Issue.d.ts +0 -13
- package/dist/api/types/Issue.js +0 -5
- package/dist/api/types/ListAutomationsOutput.d.ts +0 -7
- package/dist/api/types/ListAutomationsOutput.js +0 -5
- package/dist/api/types/MicroInteractionConfig.d.ts +0 -10
- package/dist/api/types/MicroInteractionConfig.js +0 -5
- package/dist/api/types/MicroInteractionConfigWithExperimental.d.ts +0 -12
- package/dist/api/types/MicroInteractionConfigWithExperimental.js +0 -5
- package/dist/api/types/MicroInteractionExperimentalConfig.d.ts +0 -7
- package/dist/api/types/MicroInteractionExperimentalConfig.js +0 -5
- package/dist/api/types/MonitorConfig.d.ts +0 -10
- package/dist/api/types/MonitorConfig.js +0 -5
- package/dist/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -12
- package/dist/api/types/MonitorConfigIncludeVisualAnalysis.js +0 -11
- package/dist/api/types/OperationOutcome.d.ts +0 -7
- package/dist/api/types/OperationOutcome.js +0 -5
- package/dist/api/types/OperationOutcomeResponse.d.ts +0 -10
- package/dist/api/types/OperationOutcomeResponse.js +0 -5
- package/dist/api/types/PageQueryConfig.d.ts +0 -12
- package/dist/api/types/PageQueryConfig.js +0 -5
- package/dist/api/types/PageQueryExperimentalConfig.d.ts +0 -7
- package/dist/api/types/PageQueryExperimentalConfig.js +0 -5
- package/dist/api/types/PaginatedExtractionConfig.d.ts +0 -16
- package/dist/api/types/PaginatedExtractionConfig.js +0 -5
- package/dist/api/types/PaginatedExtractionExperimentalConfig.d.ts +0 -7
- package/dist/api/types/PaginatedExtractionExperimentalConfig.js +0 -5
- package/dist/api/types/Pagination.d.ts +0 -21
- package/dist/api/types/Pagination.js +0 -5
- package/dist/api/types/Proxy.d.ts +0 -14
- package/dist/api/types/Proxy.js +0 -5
- package/dist/api/types/ProxyConfigurationKind.d.ts +0 -9
- package/dist/api/types/ProxyConfigurationKind.js +0 -5
- package/dist/api/types/ProxyCredentials.d.ts +0 -11
- package/dist/api/types/ProxyCredentials.js +0 -5
- package/dist/api/types/RequestStatusResponse.d.ts +0 -8
- package/dist/api/types/RequestStatusResponse.js +0 -5
- package/dist/api/types/ScrapeConfig.d.ts +0 -7
- package/dist/api/types/ScrapeConfig.js +0 -5
- package/dist/api/types/ScrapeResponse.d.ts +0 -10
- package/dist/api/types/ScrapeResponse.js +0 -5
- package/dist/api/types/ScrapeResponseContent.d.ts +0 -9
- package/dist/api/types/ScrapeResponseContent.js +0 -5
- package/dist/api/types/ScrapeResponseEnvelope.d.ts +0 -8
- package/dist/api/types/ScrapeResponseEnvelope.js +0 -5
- package/dist/api/types/ScrapeResponseOutput.d.ts +0 -12
- package/dist/api/types/ScrapeResponseOutput.js +0 -5
- package/dist/api/types/ScreenshotConfig.d.ts +0 -13
- package/dist/api/types/ScreenshotConfig.js +0 -5
- package/dist/api/types/ScreenshotMetadata.d.ts +0 -7
- package/dist/api/types/ScreenshotMetadata.js +0 -5
- package/dist/api/types/ScreenshotRequestConfig.d.ts +0 -8
- package/dist/api/types/ScreenshotRequestConfig.js +0 -5
- package/dist/api/types/ScrollByConfig.d.ts +0 -9
- package/dist/api/types/ScrollByConfig.js +0 -5
- package/dist/api/types/ScrollToEdgeConfig.d.ts +0 -9
- package/dist/api/types/ScrollToEdgeConfig.js +0 -5
- package/dist/api/types/SessionConfigV1.d.ts +0 -18
- package/dist/api/types/SessionConfigV1.js +0 -5
- package/dist/api/types/SessionConfigV1Proxy.d.ts +0 -17
- package/dist/api/types/SessionConfigV1Proxy.js +0 -5
- package/dist/api/types/SessionEventMessage.d.ts +0 -17
- package/dist/api/types/SessionEventMessage.js +0 -5
- package/dist/api/types/SessionPageQueryHandlerRequestBody.d.ts +0 -21
- package/dist/api/types/SessionPageQueryHandlerRequestBody.js +0 -5
- package/dist/api/types/SessionResponse.d.ts +0 -10
- package/dist/api/types/SessionResponse.js +0 -5
- package/dist/api/types/SessionsResponse.d.ts +0 -10
- package/dist/api/types/SessionsResponse.js +0 -5
- package/dist/api/types/SessionsWithPagination.d.ts +0 -10
- package/dist/api/types/SessionsWithPagination.js +0 -5
- package/dist/api/types/StatusMessage.d.ts +0 -16
- package/dist/api/types/StatusMessage.js +0 -5
- package/dist/api/types/StatusMessageStatus.d.ts +0 -15
- package/dist/api/types/StatusMessageStatus.js +0 -14
- package/dist/api/types/SummaryConfig.d.ts +0 -9
- package/dist/api/types/SummaryConfig.js +0 -5
- package/dist/api/types/SummaryExperimentalConfig.d.ts +0 -7
- package/dist/api/types/SummaryExperimentalConfig.js +0 -5
- package/dist/api/types/VisualAnalysisConfig.d.ts +0 -18
- package/dist/api/types/VisualAnalysisConfig.js +0 -5
- package/dist/api/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -12
- package/dist/api/types/VisualAnalysisConfigPartitionDirection.js +0 -11
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -12
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -11
- package/dist/api/types/VisualAnalysisConfigScope.d.ts +0 -13
- package/dist/api/types/VisualAnalysisConfigScope.js +0 -12
- package/dist/api/types/Window.d.ts +0 -11
- package/dist/api/types/Window.js +0 -5
- package/dist/api/types/WindowEventMessage.d.ts +0 -19
- package/dist/api/types/WindowEventMessage.js +0 -5
- package/dist/api/types/WindowId.d.ts +0 -9
- package/dist/api/types/WindowId.js +0 -5
- package/dist/api/types/WindowIdResponse.d.ts +0 -10
- package/dist/api/types/WindowIdResponse.js +0 -5
- package/dist/api/types/WindowResponse.d.ts +0 -10
- package/dist/api/types/WindowResponse.js +0 -5
- package/dist/api/types/index.d.ts +0 -72
- package/dist/api/types/index.js +0 -88
- package/dist/core/auth/BasicAuth.d.ts +0 -8
- package/dist/core/auth/BasicAuth.js +0 -26
- package/dist/core/auth/BearerToken.d.ts +0 -5
- package/dist/core/auth/BearerToken.js +0 -15
- package/dist/core/auth/index.d.ts +0 -2
- package/dist/core/auth/index.js +0 -7
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -100
- package/dist/core/fetcher/Supplier.d.ts +0 -4
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getHeader.d.ts +0 -1
- package/dist/core/fetcher/getHeader.js +0 -11
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.d.ts +0 -11
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.js +0 -44
- package/dist/core/json.d.ts +0 -15
- package/dist/core/json.js +0 -24
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -103
- package/dist/core/schemas/Schema.d.ts +0 -87
- package/dist/core/schemas/Schema.js +0 -24
- package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/dist/core/schemas/builders/bigint/bigint.js +0 -53
- package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
- package/dist/core/schemas/builders/bigint/index.js +0 -5
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -62
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -38
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -14
- package/dist/core/schemas/builders/index.js +0 -30
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -24
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -54
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -261
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -15
- package/dist/core/schemas/builders/object/types.d.ts +0 -31
- package/dist/core/schemas/builders/object/types.js +0 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/object-like/types.js +0 -2
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -93
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/record/types.js +0 -2
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -43
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -9
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/types.js +0 -2
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -129
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/MaybePromise.js +0 -2
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -6
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -13
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -17
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -6
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -15
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -47
- package/dist/core/streaming-fetcher/Stream.js +0 -169
- package/dist/core/streaming-fetcher/index.d.ts +0 -1
- package/dist/core/streaming-fetcher/index.js +0 -5
- package/dist/environments.d.ts +0 -7
- package/dist/environments.js +0 -9
- package/dist/errors/AirtopError.d.ts +0 -12
- package/dist/errors/AirtopError.js +0 -33
- package/dist/errors/AirtopTimeoutError.d.ts +0 -6
- package/dist/errors/AirtopTimeoutError.js +0 -13
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/live-view/types.d.ts +0 -24
- package/dist/live-view/types.js +0 -16
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -18
- package/dist/serialization/resources/automations/client/index.d.ts +0 -1
- package/dist/serialization/resources/automations/client/index.js +0 -17
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -45
- package/dist/serialization/resources/automations/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/automations/client/requests/index.js +0 -5
- package/dist/serialization/resources/automations/index.d.ts +0 -1
- package/dist/serialization/resources/automations/index.js +0 -17
- package/dist/serialization/resources/index.d.ts +0 -8
- package/dist/serialization/resources/index.js +0 -47
- package/dist/serialization/resources/sessions/client/index.d.ts +0 -1
- package/dist/serialization/resources/sessions/client/index.js +0 -17
- package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -13
- package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -44
- package/dist/serialization/resources/sessions/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/sessions/client/requests/index.js +0 -5
- package/dist/serialization/resources/sessions/index.d.ts +0 -2
- package/dist/serialization/resources/sessions/index.js +0 -18
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -26
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -55
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -10
- package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.js +0 -41
- package/dist/serialization/resources/sessions/types/index.d.ts +0 -6
- package/dist/serialization/resources/sessions/types/index.js +0 -22
- package/dist/serialization/resources/windows/client/index.d.ts +0 -1
- package/dist/serialization/resources/windows/client/index.js +0 -17
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncFillFormRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/CreateFormFillerRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -16
- package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -47
- package/dist/serialization/resources/windows/client/requests/FillFormRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/FillFormRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -14
- package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.js +0 -45
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -49
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -16
- package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -47
- package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -22
- package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -53
- package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -22
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -53
- package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -15
- package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -46
- package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/index.js +0 -37
- package/dist/serialization/resources/windows/index.d.ts +0 -2
- package/dist/serialization/resources/windows/index.js +0 -18
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -10
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -41
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -10
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -41
- package/dist/serialization/resources/windows/types/index.d.ts +0 -2
- package/dist/serialization/resources/windows/types/index.js +0 -18
- package/dist/serialization/types/AiPromptResponse.d.ts +0 -18
- package/dist/serialization/types/AiPromptResponse.js +0 -49
- package/dist/serialization/types/AiResponseEnvelope.d.ts +0 -12
- package/dist/serialization/types/AiResponseEnvelope.js +0 -43
- package/dist/serialization/types/AirtopProxyConfiguration.d.ts +0 -13
- package/dist/serialization/types/AirtopProxyConfiguration.js +0 -44
- package/dist/serialization/types/AsyncConfig.d.ts +0 -12
- package/dist/serialization/types/AsyncConfig.js +0 -43
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -46
- package/dist/serialization/types/AutomationOutput.d.ts +0 -16
- package/dist/serialization/types/AutomationOutput.js +0 -47
- package/dist/serialization/types/BrowserWaitNavigationConfig.d.ts +0 -14
- package/dist/serialization/types/BrowserWaitNavigationConfig.js +0 -45
- package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -10
- package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +0 -41
- package/dist/serialization/types/ClickConfig.d.ts +0 -19
- package/dist/serialization/types/ClickConfig.js +0 -50
- package/dist/serialization/types/ClickConfigClickType.d.ts +0 -10
- package/dist/serialization/types/ClickConfigClickType.js +0 -41
- package/dist/serialization/types/ClientProvidedResponseMetadata.d.ts +0 -12
- package/dist/serialization/types/ClientProvidedResponseMetadata.js +0 -43
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -41
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -41
- package/dist/serialization/types/EnvelopeDefaultMeta.d.ts +0 -12
- package/dist/serialization/types/EnvelopeDefaultMeta.js +0 -43
- package/dist/serialization/types/ErrorBody.d.ts +0 -13
- package/dist/serialization/types/ErrorBody.js +0 -44
- package/dist/serialization/types/ErrorDetail.d.ts +0 -14
- package/dist/serialization/types/ErrorDetail.js +0 -45
- package/dist/serialization/types/ErrorMessage.d.ts +0 -14
- package/dist/serialization/types/ErrorMessage.js +0 -45
- package/dist/serialization/types/ErrorModel.d.ts +0 -18
- package/dist/serialization/types/ErrorModel.js +0 -49
- package/dist/serialization/types/ExternalSessionAiResponseMetadata.d.ts +0 -20
- package/dist/serialization/types/ExternalSessionAiResponseMetadata.js +0 -51
- package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -10
- package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.js +0 -41
- package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -13
- package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.js +0 -44
- package/dist/serialization/types/ExternalSessionConfig.d.ts +0 -14
- package/dist/serialization/types/ExternalSessionConfig.js +0 -45
- package/dist/serialization/types/ExternalSessionWithConnectionInfo.d.ts +0 -22
- package/dist/serialization/types/ExternalSessionWithConnectionInfo.js +0 -53
- package/dist/serialization/types/IntervalMonitorConfig.d.ts +0 -13
- package/dist/serialization/types/IntervalMonitorConfig.js +0 -44
- package/dist/serialization/types/Issue.d.ts +0 -15
- package/dist/serialization/types/Issue.js +0 -46
- package/dist/serialization/types/ListAutomationsOutput.d.ts +0 -13
- package/dist/serialization/types/ListAutomationsOutput.js +0 -44
- package/dist/serialization/types/MicroInteractionConfig.d.ts +0 -15
- package/dist/serialization/types/MicroInteractionConfig.js +0 -46
- package/dist/serialization/types/MicroInteractionConfigWithExperimental.d.ts +0 -17
- package/dist/serialization/types/MicroInteractionConfigWithExperimental.js +0 -48
- package/dist/serialization/types/MicroInteractionExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/MicroInteractionExperimentalConfig.js +0 -43
- package/dist/serialization/types/MonitorConfig.d.ts +0 -15
- package/dist/serialization/types/MonitorConfig.js +0 -46
- package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -10
- package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.js +0 -41
- package/dist/serialization/types/OperationOutcome.d.ts +0 -12
- package/dist/serialization/types/OperationOutcome.js +0 -43
- package/dist/serialization/types/OperationOutcomeResponse.d.ts +0 -18
- package/dist/serialization/types/OperationOutcomeResponse.js +0 -49
- package/dist/serialization/types/PageQueryConfig.d.ts +0 -16
- package/dist/serialization/types/PageQueryConfig.js +0 -47
- package/dist/serialization/types/PageQueryExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/PageQueryExperimentalConfig.js +0 -43
- package/dist/serialization/types/PaginatedExtractionConfig.d.ts +0 -18
- package/dist/serialization/types/PaginatedExtractionConfig.js +0 -49
- package/dist/serialization/types/PaginatedExtractionExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/PaginatedExtractionExperimentalConfig.js +0 -43
- package/dist/serialization/types/Pagination.d.ts +0 -19
- package/dist/serialization/types/Pagination.js +0 -50
- package/dist/serialization/types/Proxy.d.ts +0 -12
- package/dist/serialization/types/Proxy.js +0 -43
- package/dist/serialization/types/ProxyConfigurationKind.d.ts +0 -14
- package/dist/serialization/types/ProxyConfigurationKind.js +0 -45
- package/dist/serialization/types/ProxyCredentials.d.ts +0 -14
- package/dist/serialization/types/ProxyCredentials.js +0 -45
- package/dist/serialization/types/RequestStatusResponse.d.ts +0 -13
- package/dist/serialization/types/RequestStatusResponse.js +0 -44
- package/dist/serialization/types/ScrapeConfig.d.ts +0 -12
- package/dist/serialization/types/ScrapeConfig.js +0 -43
- package/dist/serialization/types/ScrapeResponse.d.ts +0 -18
- package/dist/serialization/types/ScrapeResponse.js +0 -49
- package/dist/serialization/types/ScrapeResponseContent.d.ts +0 -13
- package/dist/serialization/types/ScrapeResponseContent.js +0 -44
- package/dist/serialization/types/ScrapeResponseEnvelope.d.ts +0 -13
- package/dist/serialization/types/ScrapeResponseEnvelope.js +0 -44
- package/dist/serialization/types/ScrapeResponseOutput.d.ts +0 -15
- package/dist/serialization/types/ScrapeResponseOutput.js +0 -46
- package/dist/serialization/types/ScreenshotConfig.d.ts +0 -15
- package/dist/serialization/types/ScreenshotConfig.js +0 -46
- package/dist/serialization/types/ScreenshotMetadata.d.ts +0 -12
- package/dist/serialization/types/ScreenshotMetadata.js +0 -43
- package/dist/serialization/types/ScreenshotRequestConfig.d.ts +0 -13
- package/dist/serialization/types/ScreenshotRequestConfig.js +0 -44
- package/dist/serialization/types/ScrollByConfig.d.ts +0 -13
- package/dist/serialization/types/ScrollByConfig.js +0 -44
- package/dist/serialization/types/ScrollToEdgeConfig.d.ts +0 -13
- package/dist/serialization/types/ScrollToEdgeConfig.js +0 -44
- package/dist/serialization/types/SessionConfigV1.d.ts +0 -18
- package/dist/serialization/types/SessionConfigV1.js +0 -49
- package/dist/serialization/types/SessionConfigV1Proxy.d.ts +0 -12
- package/dist/serialization/types/SessionConfigV1Proxy.js +0 -47
- package/dist/serialization/types/SessionEventMessage.d.ts +0 -18
- package/dist/serialization/types/SessionEventMessage.js +0 -49
- package/dist/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +0 -18
- package/dist/serialization/types/SessionPageQueryHandlerRequestBody.js +0 -49
- package/dist/serialization/types/SessionResponse.d.ts +0 -18
- package/dist/serialization/types/SessionResponse.js +0 -49
- package/dist/serialization/types/SessionsResponse.d.ts +0 -18
- package/dist/serialization/types/SessionsResponse.js +0 -49
- package/dist/serialization/types/SessionsWithPagination.d.ts +0 -15
- package/dist/serialization/types/SessionsWithPagination.js +0 -46
- package/dist/serialization/types/StatusMessage.d.ts +0 -17
- package/dist/serialization/types/StatusMessage.js +0 -48
- package/dist/serialization/types/StatusMessageStatus.d.ts +0 -10
- package/dist/serialization/types/StatusMessageStatus.js +0 -41
- package/dist/serialization/types/SummaryConfig.d.ts +0 -14
- package/dist/serialization/types/SummaryConfig.js +0 -45
- package/dist/serialization/types/SummaryExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/SummaryExperimentalConfig.js +0 -43
- package/dist/serialization/types/VisualAnalysisConfig.d.ts +0 -20
- package/dist/serialization/types/VisualAnalysisConfig.js +0 -51
- package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -10
- package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.js +0 -41
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -10
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -41
- package/dist/serialization/types/VisualAnalysisConfigScope.d.ts +0 -10
- package/dist/serialization/types/VisualAnalysisConfigScope.js +0 -41
- package/dist/serialization/types/Window.d.ts +0 -14
- package/dist/serialization/types/Window.js +0 -45
- package/dist/serialization/types/WindowEventMessage.d.ts +0 -19
- package/dist/serialization/types/WindowEventMessage.js +0 -50
- package/dist/serialization/types/WindowId.d.ts +0 -13
- package/dist/serialization/types/WindowId.js +0 -44
- package/dist/serialization/types/WindowIdResponse.d.ts +0 -18
- package/dist/serialization/types/WindowIdResponse.js +0 -49
- package/dist/serialization/types/WindowResponse.d.ts +0 -18
- package/dist/serialization/types/WindowResponse.js +0 -49
- package/dist/serialization/types/index.d.ts +0 -72
- package/dist/serialization/types/index.js +0 -88
- package/dist/utils/batch-operate/SessionQueue.d.ts +0 -45
- package/dist/utils/batch-operate/SessionQueue.js +0 -222
- package/dist/utils/batch-operate/WindowQueue.d.ts +0 -24
- package/dist/utils/batch-operate/WindowQueue.js +0 -213
- package/dist/utils/batch-operate/batch-util.d.ts +0 -3
- package/dist/utils/batch-operate/batch-util.js +0 -49
- package/dist/utils/batch-operate/helpers.d.ts +0 -2
- package/dist/utils/batch-operate/helpers.js +0 -19
- package/dist/utils/batch-operate/types.d.ts +0 -29
- package/dist/utils/batch-operate/types.js +0 -2
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.js +0 -19
- package/dist/utils/process-screenshots.d.ts +0 -9
- package/dist/utils/process-screenshots.js +0 -58
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/wrapper/AirtopClient.d.ts +0 -29
- package/dist/wrapper/AirtopClient.js +0 -104
- package/dist/wrapper/AirtopRequests.d.ts +0 -18
- package/dist/wrapper/AirtopRequests.js +0 -48
- package/dist/wrapper/AirtopSessions.d.ts +0 -24
- package/dist/wrapper/AirtopSessions.js +0 -96
- package/dist/wrapper/AirtopWindows.d.ts +0 -180
- package/dist/wrapper/AirtopWindows.js +0 -333
- package/environments.d.ts +0 -7
- package/environments.js +0 -9
- package/errors/AirtopError.d.ts +0 -12
- package/errors/AirtopError.js +0 -33
- package/errors/AirtopTimeoutError.d.ts +0 -6
- package/errors/AirtopTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/index.d.ts +0 -7
- package/index.js +0 -51
- package/jest.config.mjs +0 -8
- package/lefthook.yml +0 -23
- package/live-view/types.d.ts +0 -24
- package/live-view/types.js +0 -16
- package/reference.md +0 -2409
- package/scripts/rename-to-esm-files.js +0 -115
- package/serialization/index.d.ts +0 -2
- package/serialization/index.js +0 -18
- package/serialization/resources/automations/client/index.d.ts +0 -1
- package/serialization/resources/automations/client/index.js +0 -17
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -45
- package/serialization/resources/automations/client/requests/index.d.ts +0 -1
- package/serialization/resources/automations/client/requests/index.js +0 -5
- package/serialization/resources/automations/index.d.ts +0 -1
- package/serialization/resources/automations/index.js +0 -17
- package/serialization/resources/index.d.ts +0 -8
- package/serialization/resources/index.js +0 -47
- package/serialization/resources/sessions/client/index.d.ts +0 -1
- package/serialization/resources/sessions/client/index.js +0 -17
- package/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -13
- package/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -44
- package/serialization/resources/sessions/client/requests/index.d.ts +0 -1
- package/serialization/resources/sessions/client/requests/index.js +0 -5
- package/serialization/resources/sessions/index.d.ts +0 -2
- package/serialization/resources/sessions/index.js +0 -18
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -26
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -55
- package/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -46
- package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -46
- package/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -46
- package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -46
- package/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -10
- package/serialization/resources/sessions/types/SessionsListRequestStatus.js +0 -41
- package/serialization/resources/sessions/types/index.d.ts +0 -6
- package/serialization/resources/sessions/types/index.js +0 -22
- package/serialization/resources/windows/client/index.d.ts +0 -1
- package/serialization/resources/windows/client/index.js +0 -17
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -49
- package/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -49
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -49
- package/serialization/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncFillFormRequest.js +0 -49
- package/serialization/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/CreateFormFillerRequest.js +0 -49
- package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -16
- package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -47
- package/serialization/resources/windows/client/requests/FillFormRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/FillFormRequest.js +0 -49
- package/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -14
- package/serialization/resources/windows/client/requests/ScrapeContentRequest.js +0 -45
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -18
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -49
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -16
- package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -47
- package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -22
- package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -53
- package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -22
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -53
- package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -15
- package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -46
- package/serialization/resources/windows/client/requests/index.d.ts +0 -17
- package/serialization/resources/windows/client/requests/index.js +0 -37
- package/serialization/resources/windows/index.d.ts +0 -2
- package/serialization/resources/windows/index.js +0 -18
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -10
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -41
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -10
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -41
- package/serialization/resources/windows/types/index.d.ts +0 -2
- package/serialization/resources/windows/types/index.js +0 -18
- package/serialization/types/AiPromptResponse.d.ts +0 -18
- package/serialization/types/AiPromptResponse.js +0 -49
- package/serialization/types/AiResponseEnvelope.d.ts +0 -12
- package/serialization/types/AiResponseEnvelope.js +0 -43
- package/serialization/types/AirtopProxyConfiguration.d.ts +0 -13
- package/serialization/types/AirtopProxyConfiguration.js +0 -44
- package/serialization/types/AsyncConfig.d.ts +0 -12
- package/serialization/types/AsyncConfig.js +0 -43
- package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
- package/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -46
- package/serialization/types/AutomationOutput.d.ts +0 -16
- package/serialization/types/AutomationOutput.js +0 -47
- package/serialization/types/BrowserWaitNavigationConfig.d.ts +0 -14
- package/serialization/types/BrowserWaitNavigationConfig.js +0 -45
- package/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -10
- package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +0 -41
- package/serialization/types/ClickConfig.d.ts +0 -19
- package/serialization/types/ClickConfig.js +0 -50
- package/serialization/types/ClickConfigClickType.d.ts +0 -10
- package/serialization/types/ClickConfigClickType.js +0 -41
- package/serialization/types/ClientProvidedResponseMetadata.d.ts +0 -12
- package/serialization/types/ClientProvidedResponseMetadata.js +0 -43
- package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
- package/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -41
- package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
- package/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -41
- package/serialization/types/EnvelopeDefaultMeta.d.ts +0 -12
- package/serialization/types/EnvelopeDefaultMeta.js +0 -43
- package/serialization/types/ErrorBody.d.ts +0 -13
- package/serialization/types/ErrorBody.js +0 -44
- package/serialization/types/ErrorDetail.d.ts +0 -14
- package/serialization/types/ErrorDetail.js +0 -45
- package/serialization/types/ErrorMessage.d.ts +0 -14
- package/serialization/types/ErrorMessage.js +0 -45
- package/serialization/types/ErrorModel.d.ts +0 -18
- package/serialization/types/ErrorModel.js +0 -49
- package/serialization/types/ExternalSessionAiResponseMetadata.d.ts +0 -20
- package/serialization/types/ExternalSessionAiResponseMetadata.js +0 -51
- package/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -10
- package/serialization/types/ExternalSessionAiResponseMetadataStatus.js +0 -41
- package/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -13
- package/serialization/types/ExternalSessionAiResponseMetadataUsage.js +0 -44
- package/serialization/types/ExternalSessionConfig.d.ts +0 -14
- package/serialization/types/ExternalSessionConfig.js +0 -45
- package/serialization/types/ExternalSessionWithConnectionInfo.d.ts +0 -22
- package/serialization/types/ExternalSessionWithConnectionInfo.js +0 -53
- package/serialization/types/IntervalMonitorConfig.d.ts +0 -13
- package/serialization/types/IntervalMonitorConfig.js +0 -44
- package/serialization/types/Issue.d.ts +0 -15
- package/serialization/types/Issue.js +0 -46
- package/serialization/types/ListAutomationsOutput.d.ts +0 -13
- package/serialization/types/ListAutomationsOutput.js +0 -44
- package/serialization/types/MicroInteractionConfig.d.ts +0 -15
- package/serialization/types/MicroInteractionConfig.js +0 -46
- package/serialization/types/MicroInteractionConfigWithExperimental.d.ts +0 -17
- package/serialization/types/MicroInteractionConfigWithExperimental.js +0 -48
- package/serialization/types/MicroInteractionExperimentalConfig.d.ts +0 -12
- package/serialization/types/MicroInteractionExperimentalConfig.js +0 -43
- package/serialization/types/MonitorConfig.d.ts +0 -15
- package/serialization/types/MonitorConfig.js +0 -46
- package/serialization/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -10
- package/serialization/types/MonitorConfigIncludeVisualAnalysis.js +0 -41
- package/serialization/types/OperationOutcome.d.ts +0 -12
- package/serialization/types/OperationOutcome.js +0 -43
- package/serialization/types/OperationOutcomeResponse.d.ts +0 -18
- package/serialization/types/OperationOutcomeResponse.js +0 -49
- package/serialization/types/PageQueryConfig.d.ts +0 -16
- package/serialization/types/PageQueryConfig.js +0 -47
- package/serialization/types/PageQueryExperimentalConfig.d.ts +0 -12
- package/serialization/types/PageQueryExperimentalConfig.js +0 -43
- package/serialization/types/PaginatedExtractionConfig.d.ts +0 -18
- package/serialization/types/PaginatedExtractionConfig.js +0 -49
- package/serialization/types/PaginatedExtractionExperimentalConfig.d.ts +0 -12
- package/serialization/types/PaginatedExtractionExperimentalConfig.js +0 -43
- package/serialization/types/Pagination.d.ts +0 -19
- package/serialization/types/Pagination.js +0 -50
- package/serialization/types/Proxy.d.ts +0 -12
- package/serialization/types/Proxy.js +0 -43
- package/serialization/types/ProxyConfigurationKind.d.ts +0 -14
- package/serialization/types/ProxyConfigurationKind.js +0 -45
- package/serialization/types/ProxyCredentials.d.ts +0 -14
- package/serialization/types/ProxyCredentials.js +0 -45
- package/serialization/types/RequestStatusResponse.d.ts +0 -13
- package/serialization/types/RequestStatusResponse.js +0 -44
- package/serialization/types/ScrapeConfig.d.ts +0 -12
- package/serialization/types/ScrapeConfig.js +0 -43
- package/serialization/types/ScrapeResponse.d.ts +0 -18
- package/serialization/types/ScrapeResponse.js +0 -49
- package/serialization/types/ScrapeResponseContent.d.ts +0 -13
- package/serialization/types/ScrapeResponseContent.js +0 -44
- package/serialization/types/ScrapeResponseEnvelope.d.ts +0 -13
- package/serialization/types/ScrapeResponseEnvelope.js +0 -44
- package/serialization/types/ScrapeResponseOutput.d.ts +0 -15
- package/serialization/types/ScrapeResponseOutput.js +0 -46
- package/serialization/types/ScreenshotConfig.d.ts +0 -15
- package/serialization/types/ScreenshotConfig.js +0 -46
- package/serialization/types/ScreenshotMetadata.d.ts +0 -12
- package/serialization/types/ScreenshotMetadata.js +0 -43
- package/serialization/types/ScreenshotRequestConfig.d.ts +0 -13
- package/serialization/types/ScreenshotRequestConfig.js +0 -44
- package/serialization/types/ScrollByConfig.d.ts +0 -13
- package/serialization/types/ScrollByConfig.js +0 -44
- package/serialization/types/ScrollToEdgeConfig.d.ts +0 -13
- package/serialization/types/ScrollToEdgeConfig.js +0 -44
- package/serialization/types/SessionConfigV1.d.ts +0 -18
- package/serialization/types/SessionConfigV1.js +0 -49
- package/serialization/types/SessionConfigV1Proxy.d.ts +0 -12
- package/serialization/types/SessionConfigV1Proxy.js +0 -47
- package/serialization/types/SessionEventMessage.d.ts +0 -18
- package/serialization/types/SessionEventMessage.js +0 -49
- package/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +0 -18
- package/serialization/types/SessionPageQueryHandlerRequestBody.js +0 -49
- package/serialization/types/SessionResponse.d.ts +0 -18
- package/serialization/types/SessionResponse.js +0 -49
- package/serialization/types/SessionsResponse.d.ts +0 -18
- package/serialization/types/SessionsResponse.js +0 -49
- package/serialization/types/SessionsWithPagination.d.ts +0 -15
- package/serialization/types/SessionsWithPagination.js +0 -46
- package/serialization/types/StatusMessage.d.ts +0 -17
- package/serialization/types/StatusMessage.js +0 -48
- package/serialization/types/StatusMessageStatus.d.ts +0 -10
- package/serialization/types/StatusMessageStatus.js +0 -41
- package/serialization/types/SummaryConfig.d.ts +0 -14
- package/serialization/types/SummaryConfig.js +0 -45
- package/serialization/types/SummaryExperimentalConfig.d.ts +0 -12
- package/serialization/types/SummaryExperimentalConfig.js +0 -43
- package/serialization/types/VisualAnalysisConfig.d.ts +0 -20
- package/serialization/types/VisualAnalysisConfig.js +0 -51
- package/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -10
- package/serialization/types/VisualAnalysisConfigPartitionDirection.js +0 -41
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -10
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -41
- package/serialization/types/VisualAnalysisConfigScope.d.ts +0 -10
- package/serialization/types/VisualAnalysisConfigScope.js +0 -41
- package/serialization/types/Window.d.ts +0 -14
- package/serialization/types/Window.js +0 -45
- package/serialization/types/WindowEventMessage.d.ts +0 -19
- package/serialization/types/WindowEventMessage.js +0 -50
- package/serialization/types/WindowId.d.ts +0 -13
- package/serialization/types/WindowId.js +0 -44
- package/serialization/types/WindowIdResponse.d.ts +0 -18
- package/serialization/types/WindowIdResponse.js +0 -49
- package/serialization/types/WindowResponse.d.ts +0 -18
- package/serialization/types/WindowResponse.js +0 -49
- package/serialization/types/index.d.ts +0 -72
- package/serialization/types/index.js +0 -88
- package/utils/batch-operate/SessionQueue.d.ts +0 -45
- package/utils/batch-operate/SessionQueue.js +0 -222
- package/utils/batch-operate/WindowQueue.d.ts +0 -24
- package/utils/batch-operate/WindowQueue.js +0 -213
- package/utils/batch-operate/batch-util.d.ts +0 -3
- package/utils/batch-operate/batch-util.js +0 -49
- package/utils/batch-operate/helpers.d.ts +0 -2
- package/utils/batch-operate/helpers.js +0 -19
- package/utils/batch-operate/types.d.ts +0 -29
- package/utils/batch-operate/types.js +0 -2
- package/utils/index.d.ts +0 -3
- package/utils/index.js +0 -19
- package/utils/process-screenshots.d.ts +0 -9
- package/utils/process-screenshots.js +0 -58
- package/version.d.ts +0 -1
- package/version.js +0 -4
- package/wrapper/AirtopClient.d.ts +0 -29
- package/wrapper/AirtopClient.js +0 -104
- package/wrapper/AirtopRequests.d.ts +0 -18
- package/wrapper/AirtopRequests.js +0 -48
- package/wrapper/AirtopSessions.d.ts +0 -24
- package/wrapper/AirtopSessions.js +0 -96
- package/wrapper/AirtopWindows.d.ts +0 -180
- package/wrapper/AirtopWindows.js +0 -333
@@ -1,1264 +0,0 @@
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
39
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
43
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
45
|
-
});
|
46
|
-
};
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
49
|
-
};
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
51
|
-
exports.Windows = void 0;
|
52
|
-
const environments = __importStar(require("../../../../environments"));
|
53
|
-
const core = __importStar(require("../../../../core"));
|
54
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
56
|
-
const errors = __importStar(require("../../../../errors/index"));
|
57
|
-
class Windows {
|
58
|
-
constructor(_options) {
|
59
|
-
this._options = _options;
|
60
|
-
}
|
61
|
-
/**
|
62
|
-
* Create an automation of a browser window asynchronously
|
63
|
-
*
|
64
|
-
* @param {string} sessionId - The session id for the window.
|
65
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
66
|
-
* @param {Airtop.AsyncCreateAutomationRequest} request
|
67
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
68
|
-
*
|
69
|
-
* @example
|
70
|
-
* await client.windows.asyncCreateAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
71
|
-
*/
|
72
|
-
asyncCreateAutomation(sessionId_1, windowId_1) {
|
73
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
74
|
-
var _a, _b, _c;
|
75
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
76
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-automation`),
|
77
|
-
method: "POST",
|
78
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
79
|
-
contentType: "application/json",
|
80
|
-
requestType: "json",
|
81
|
-
body: serializers.AsyncCreateAutomationRequest.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("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/create-automation.");
|
109
|
-
case "unknown":
|
110
|
-
throw new errors.AirtopError({
|
111
|
-
message: _response.error.errorMessage,
|
112
|
-
});
|
113
|
-
}
|
114
|
-
});
|
115
|
-
}
|
116
|
-
/**
|
117
|
-
* Create a form filler automation 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.AsyncCreateFormFillerRequest} request
|
122
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
123
|
-
*
|
124
|
-
* @example
|
125
|
-
* await client.windows.asyncCreateFormFiller("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
126
|
-
*/
|
127
|
-
asyncCreateFormFiller(sessionId_1, windowId_1) {
|
128
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
129
|
-
var _a, _b, _c;
|
130
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
131
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-form-filler`),
|
132
|
-
method: "POST",
|
133
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
134
|
-
contentType: "application/json",
|
135
|
-
requestType: "json",
|
136
|
-
body: serializers.AsyncCreateFormFillerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
137
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
138
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
139
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
140
|
-
});
|
141
|
-
if (_response.ok) {
|
142
|
-
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
143
|
-
unrecognizedObjectKeys: "passthrough",
|
144
|
-
allowUnrecognizedUnionMembers: true,
|
145
|
-
allowUnrecognizedEnumValues: true,
|
146
|
-
skipValidation: true,
|
147
|
-
breadcrumbsPrefix: ["response"],
|
148
|
-
});
|
149
|
-
}
|
150
|
-
if (_response.error.reason === "status-code") {
|
151
|
-
throw new errors.AirtopError({
|
152
|
-
statusCode: _response.error.statusCode,
|
153
|
-
body: _response.error.body,
|
154
|
-
});
|
155
|
-
}
|
156
|
-
switch (_response.error.reason) {
|
157
|
-
case "non-json":
|
158
|
-
throw new errors.AirtopError({
|
159
|
-
statusCode: _response.error.statusCode,
|
160
|
-
body: _response.error.rawBody,
|
161
|
-
});
|
162
|
-
case "timeout":
|
163
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/create-form-filler.");
|
164
|
-
case "unknown":
|
165
|
-
throw new errors.AirtopError({
|
166
|
-
message: _response.error.errorMessage,
|
167
|
-
});
|
168
|
-
}
|
169
|
-
});
|
170
|
-
}
|
171
|
-
/**
|
172
|
-
* Execute an automation of a browser window asynchronously
|
173
|
-
*
|
174
|
-
* @param {string} sessionId - The session id for the window.
|
175
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
176
|
-
* @param {Airtop.AsyncExecuteAutomationRequest} request
|
177
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
178
|
-
*
|
179
|
-
* @example
|
180
|
-
* await client.windows.asyncExecuteAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
181
|
-
* automationId: "automationId"
|
182
|
-
* })
|
183
|
-
*/
|
184
|
-
asyncExecuteAutomation(sessionId, windowId, request, requestOptions) {
|
185
|
-
return __awaiter(this, void 0, void 0, function* () {
|
186
|
-
var _a, _b, _c;
|
187
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
188
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/execute-automation`),
|
189
|
-
method: "POST",
|
190
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
191
|
-
contentType: "application/json",
|
192
|
-
requestType: "json",
|
193
|
-
body: serializers.AsyncExecuteAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
194
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
195
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
196
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
197
|
-
});
|
198
|
-
if (_response.ok) {
|
199
|
-
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
200
|
-
unrecognizedObjectKeys: "passthrough",
|
201
|
-
allowUnrecognizedUnionMembers: true,
|
202
|
-
allowUnrecognizedEnumValues: true,
|
203
|
-
skipValidation: true,
|
204
|
-
breadcrumbsPrefix: ["response"],
|
205
|
-
});
|
206
|
-
}
|
207
|
-
if (_response.error.reason === "status-code") {
|
208
|
-
throw new errors.AirtopError({
|
209
|
-
statusCode: _response.error.statusCode,
|
210
|
-
body: _response.error.body,
|
211
|
-
});
|
212
|
-
}
|
213
|
-
switch (_response.error.reason) {
|
214
|
-
case "non-json":
|
215
|
-
throw new errors.AirtopError({
|
216
|
-
statusCode: _response.error.statusCode,
|
217
|
-
body: _response.error.rawBody,
|
218
|
-
});
|
219
|
-
case "timeout":
|
220
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/execute-automation.");
|
221
|
-
case "unknown":
|
222
|
-
throw new errors.AirtopError({
|
223
|
-
message: _response.error.errorMessage,
|
224
|
-
});
|
225
|
-
}
|
226
|
-
});
|
227
|
-
}
|
228
|
-
/**
|
229
|
-
* Fill a form of a browser window asynchronously using a form-filler automation
|
230
|
-
*
|
231
|
-
* @param {string} sessionId - The session id for the window.
|
232
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
233
|
-
* @param {Airtop.AsyncFillFormRequest} request
|
234
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
235
|
-
*
|
236
|
-
* @example
|
237
|
-
* await client.windows.asyncFillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
238
|
-
* automationId: "automationId"
|
239
|
-
* })
|
240
|
-
*/
|
241
|
-
asyncFillForm(sessionId, windowId, request, requestOptions) {
|
242
|
-
return __awaiter(this, void 0, void 0, function* () {
|
243
|
-
var _a, _b, _c;
|
244
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
245
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/fill-form`),
|
246
|
-
method: "POST",
|
247
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
248
|
-
contentType: "application/json",
|
249
|
-
requestType: "json",
|
250
|
-
body: serializers.AsyncFillFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
251
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
252
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
253
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
254
|
-
});
|
255
|
-
if (_response.ok) {
|
256
|
-
return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
|
257
|
-
unrecognizedObjectKeys: "passthrough",
|
258
|
-
allowUnrecognizedUnionMembers: true,
|
259
|
-
allowUnrecognizedEnumValues: true,
|
260
|
-
skipValidation: true,
|
261
|
-
breadcrumbsPrefix: ["response"],
|
262
|
-
});
|
263
|
-
}
|
264
|
-
if (_response.error.reason === "status-code") {
|
265
|
-
throw new errors.AirtopError({
|
266
|
-
statusCode: _response.error.statusCode,
|
267
|
-
body: _response.error.body,
|
268
|
-
});
|
269
|
-
}
|
270
|
-
switch (_response.error.reason) {
|
271
|
-
case "non-json":
|
272
|
-
throw new errors.AirtopError({
|
273
|
-
statusCode: _response.error.statusCode,
|
274
|
-
body: _response.error.rawBody,
|
275
|
-
});
|
276
|
-
case "timeout":
|
277
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/fill-form.");
|
278
|
-
case "unknown":
|
279
|
-
throw new errors.AirtopError({
|
280
|
-
message: _response.error.errorMessage,
|
281
|
-
});
|
282
|
-
}
|
283
|
-
});
|
284
|
-
}
|
285
|
-
/**
|
286
|
-
* Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
|
287
|
-
*
|
288
|
-
* @param {string} sessionId - ID of the session that owns the window.
|
289
|
-
* @param {Airtop.CreateWindowInputV1Body} request
|
290
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
291
|
-
*
|
292
|
-
* @example
|
293
|
-
* await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
|
294
|
-
*/
|
295
|
-
create(sessionId_1) {
|
296
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
|
297
|
-
var _a, _b, _c;
|
298
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
299
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows`),
|
300
|
-
method: "POST",
|
301
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
302
|
-
contentType: "application/json",
|
303
|
-
requestType: "json",
|
304
|
-
body: serializers.CreateWindowInputV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
305
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
306
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
307
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
308
|
-
});
|
309
|
-
if (_response.ok) {
|
310
|
-
return serializers.WindowIdResponse.parseOrThrow(_response.body, {
|
311
|
-
unrecognizedObjectKeys: "passthrough",
|
312
|
-
allowUnrecognizedUnionMembers: true,
|
313
|
-
allowUnrecognizedEnumValues: true,
|
314
|
-
skipValidation: true,
|
315
|
-
breadcrumbsPrefix: ["response"],
|
316
|
-
});
|
317
|
-
}
|
318
|
-
if (_response.error.reason === "status-code") {
|
319
|
-
throw new errors.AirtopError({
|
320
|
-
statusCode: _response.error.statusCode,
|
321
|
-
body: _response.error.body,
|
322
|
-
});
|
323
|
-
}
|
324
|
-
switch (_response.error.reason) {
|
325
|
-
case "non-json":
|
326
|
-
throw new errors.AirtopError({
|
327
|
-
statusCode: _response.error.statusCode,
|
328
|
-
body: _response.error.rawBody,
|
329
|
-
});
|
330
|
-
case "timeout":
|
331
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows.");
|
332
|
-
case "unknown":
|
333
|
-
throw new errors.AirtopError({
|
334
|
-
message: _response.error.errorMessage,
|
335
|
-
});
|
336
|
-
}
|
337
|
-
});
|
338
|
-
}
|
339
|
-
/**
|
340
|
-
* Get information about a browser window in a session, including the live view url.
|
341
|
-
*
|
342
|
-
* @param {string} sessionId - ID of the session that owns the window.
|
343
|
-
* @param {string} windowId - ID of the browser window, which can either be a normal AirTop windowId or a [CDP TargetId](https://chromedevtools.github.io/devtools-protocol/tot/Target/#type-TargetID) from a browser automation library like Puppeteer (typically associated with the page or main frame). Our SDKs will handle retrieving a TargetId for you from various popular browser automation libraries, but we also have details in our guides on how to do it manually.
|
344
|
-
* @param {Airtop.GetWindowInfoRequest} request
|
345
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
346
|
-
*
|
347
|
-
* @example
|
348
|
-
* await client.windows.getWindowInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
|
349
|
-
* screenResolution: "1280x720"
|
350
|
-
* })
|
351
|
-
*/
|
352
|
-
getWindowInfo(sessionId_1, windowId_1) {
|
353
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
354
|
-
var _a, _b, _c;
|
355
|
-
const { includeNavigationBar, disableResize, screenResolution } = request;
|
356
|
-
const _queryParams = {};
|
357
|
-
if (includeNavigationBar != null) {
|
358
|
-
_queryParams["includeNavigationBar"] = includeNavigationBar.toString();
|
359
|
-
}
|
360
|
-
if (disableResize != null) {
|
361
|
-
_queryParams["disableResize"] = disableResize.toString();
|
362
|
-
}
|
363
|
-
if (screenResolution != null) {
|
364
|
-
_queryParams["screenResolution"] = screenResolution;
|
365
|
-
}
|
366
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
367
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
|
368
|
-
method: "GET",
|
369
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
370
|
-
contentType: "application/json",
|
371
|
-
queryParameters: _queryParams,
|
372
|
-
requestType: "json",
|
373
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
374
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
375
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
376
|
-
});
|
377
|
-
if (_response.ok) {
|
378
|
-
return serializers.WindowResponse.parseOrThrow(_response.body, {
|
379
|
-
unrecognizedObjectKeys: "passthrough",
|
380
|
-
allowUnrecognizedUnionMembers: true,
|
381
|
-
allowUnrecognizedEnumValues: true,
|
382
|
-
skipValidation: true,
|
383
|
-
breadcrumbsPrefix: ["response"],
|
384
|
-
});
|
385
|
-
}
|
386
|
-
if (_response.error.reason === "status-code") {
|
387
|
-
throw new errors.AirtopError({
|
388
|
-
statusCode: _response.error.statusCode,
|
389
|
-
body: _response.error.body,
|
390
|
-
});
|
391
|
-
}
|
392
|
-
switch (_response.error.reason) {
|
393
|
-
case "non-json":
|
394
|
-
throw new errors.AirtopError({
|
395
|
-
statusCode: _response.error.statusCode,
|
396
|
-
body: _response.error.rawBody,
|
397
|
-
});
|
398
|
-
case "timeout":
|
399
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling GET /sessions/{sessionId}/windows/{windowId}.");
|
400
|
-
case "unknown":
|
401
|
-
throw new errors.AirtopError({
|
402
|
-
message: _response.error.errorMessage,
|
403
|
-
});
|
404
|
-
}
|
405
|
-
});
|
406
|
-
}
|
407
|
-
/**
|
408
|
-
* Loads a specified url on a given window
|
409
|
-
*
|
410
|
-
* @param {string} sessionId - ID of the session that owns the window.
|
411
|
-
* @param {string} windowId - Airtop window ID of the browser window.
|
412
|
-
* @param {Airtop.WindowLoadUrlV1Body} request
|
413
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
414
|
-
*
|
415
|
-
* @example
|
416
|
-
* await client.windows.loadUrl("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
|
417
|
-
* url: "https://www.airtop.ai"
|
418
|
-
* })
|
419
|
-
*/
|
420
|
-
loadUrl(sessionId, windowId, request, requestOptions) {
|
421
|
-
return __awaiter(this, void 0, void 0, function* () {
|
422
|
-
var _a, _b, _c;
|
423
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
424
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
|
425
|
-
method: "POST",
|
426
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
427
|
-
contentType: "application/json",
|
428
|
-
requestType: "json",
|
429
|
-
body: serializers.WindowLoadUrlV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
430
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
431
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
432
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
433
|
-
});
|
434
|
-
if (_response.ok) {
|
435
|
-
return serializers.OperationOutcomeResponse.parseOrThrow(_response.body, {
|
436
|
-
unrecognizedObjectKeys: "passthrough",
|
437
|
-
allowUnrecognizedUnionMembers: true,
|
438
|
-
allowUnrecognizedEnumValues: true,
|
439
|
-
skipValidation: true,
|
440
|
-
breadcrumbsPrefix: ["response"],
|
441
|
-
});
|
442
|
-
}
|
443
|
-
if (_response.error.reason === "status-code") {
|
444
|
-
throw new errors.AirtopError({
|
445
|
-
statusCode: _response.error.statusCode,
|
446
|
-
body: _response.error.body,
|
447
|
-
});
|
448
|
-
}
|
449
|
-
switch (_response.error.reason) {
|
450
|
-
case "non-json":
|
451
|
-
throw new errors.AirtopError({
|
452
|
-
statusCode: _response.error.statusCode,
|
453
|
-
body: _response.error.rawBody,
|
454
|
-
});
|
455
|
-
case "timeout":
|
456
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}.");
|
457
|
-
case "unknown":
|
458
|
-
throw new errors.AirtopError({
|
459
|
-
message: _response.error.errorMessage,
|
460
|
-
});
|
461
|
-
}
|
462
|
-
});
|
463
|
-
}
|
464
|
-
/**
|
465
|
-
* Closes a browser window in a session
|
466
|
-
*
|
467
|
-
* @param {string} sessionId - ID of the session that owns the window.
|
468
|
-
* @param {string} windowId - Airtop window ID of the browser window.
|
469
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
470
|
-
*
|
471
|
-
* @example
|
472
|
-
* await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430")
|
473
|
-
*/
|
474
|
-
close(sessionId, windowId, requestOptions) {
|
475
|
-
return __awaiter(this, void 0, void 0, function* () {
|
476
|
-
var _a, _b, _c;
|
477
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
478
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
|
479
|
-
method: "DELETE",
|
480
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
481
|
-
contentType: "application/json",
|
482
|
-
requestType: "json",
|
483
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
484
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
485
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
486
|
-
});
|
487
|
-
if (_response.ok) {
|
488
|
-
return serializers.WindowIdResponse.parseOrThrow(_response.body, {
|
489
|
-
unrecognizedObjectKeys: "passthrough",
|
490
|
-
allowUnrecognizedUnionMembers: true,
|
491
|
-
allowUnrecognizedEnumValues: true,
|
492
|
-
skipValidation: true,
|
493
|
-
breadcrumbsPrefix: ["response"],
|
494
|
-
});
|
495
|
-
}
|
496
|
-
if (_response.error.reason === "status-code") {
|
497
|
-
throw new errors.AirtopError({
|
498
|
-
statusCode: _response.error.statusCode,
|
499
|
-
body: _response.error.body,
|
500
|
-
});
|
501
|
-
}
|
502
|
-
switch (_response.error.reason) {
|
503
|
-
case "non-json":
|
504
|
-
throw new errors.AirtopError({
|
505
|
-
statusCode: _response.error.statusCode,
|
506
|
-
body: _response.error.rawBody,
|
507
|
-
});
|
508
|
-
case "timeout":
|
509
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling DELETE /sessions/{sessionId}/windows/{windowId}.");
|
510
|
-
case "unknown":
|
511
|
-
throw new errors.AirtopError({
|
512
|
-
message: _response.error.errorMessage,
|
513
|
-
});
|
514
|
-
}
|
515
|
-
});
|
516
|
-
}
|
517
|
-
/**
|
518
|
-
* Execute a click interaction in a specific browser window
|
519
|
-
*
|
520
|
-
* @param {string} sessionId - The session id for the window.
|
521
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
522
|
-
* @param {Airtop.SessionClickHandlerRequestBody} request
|
523
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
524
|
-
*
|
525
|
-
* @example
|
526
|
-
* await client.windows.click("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
527
|
-
* elementDescription: "The login button"
|
528
|
-
* })
|
529
|
-
*/
|
530
|
-
click(sessionId, windowId, request, requestOptions) {
|
531
|
-
return __awaiter(this, void 0, void 0, function* () {
|
532
|
-
var _a, _b, _c;
|
533
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
534
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/click`),
|
535
|
-
method: "POST",
|
536
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
537
|
-
contentType: "application/json",
|
538
|
-
requestType: "json",
|
539
|
-
body: serializers.SessionClickHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
540
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
541
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
542
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
543
|
-
});
|
544
|
-
if (_response.ok) {
|
545
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
546
|
-
unrecognizedObjectKeys: "passthrough",
|
547
|
-
allowUnrecognizedUnionMembers: true,
|
548
|
-
allowUnrecognizedEnumValues: true,
|
549
|
-
skipValidation: true,
|
550
|
-
breadcrumbsPrefix: ["response"],
|
551
|
-
});
|
552
|
-
}
|
553
|
-
if (_response.error.reason === "status-code") {
|
554
|
-
throw new errors.AirtopError({
|
555
|
-
statusCode: _response.error.statusCode,
|
556
|
-
body: _response.error.body,
|
557
|
-
});
|
558
|
-
}
|
559
|
-
switch (_response.error.reason) {
|
560
|
-
case "non-json":
|
561
|
-
throw new errors.AirtopError({
|
562
|
-
statusCode: _response.error.statusCode,
|
563
|
-
body: _response.error.rawBody,
|
564
|
-
});
|
565
|
-
case "timeout":
|
566
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/click.");
|
567
|
-
case "unknown":
|
568
|
-
throw new errors.AirtopError({
|
569
|
-
message: _response.error.errorMessage,
|
570
|
-
});
|
571
|
-
}
|
572
|
-
});
|
573
|
-
}
|
574
|
-
/**
|
575
|
-
* Create a form-filler automation synchronously for the form loaded in the browser window
|
576
|
-
*
|
577
|
-
* @param {string} sessionId - The session id for the window.
|
578
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
579
|
-
* @param {Airtop.CreateFormFillerRequest} request
|
580
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
581
|
-
*
|
582
|
-
* @example
|
583
|
-
* await client.windows.createFormFiller("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
584
|
-
*/
|
585
|
-
createFormFiller(sessionId_1, windowId_1) {
|
586
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
587
|
-
var _a, _b, _c;
|
588
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
589
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-form-filler`),
|
590
|
-
method: "POST",
|
591
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
592
|
-
contentType: "application/json",
|
593
|
-
requestType: "json",
|
594
|
-
body: serializers.CreateFormFillerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
595
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
596
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
597
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
598
|
-
});
|
599
|
-
if (_response.ok) {
|
600
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
601
|
-
unrecognizedObjectKeys: "passthrough",
|
602
|
-
allowUnrecognizedUnionMembers: true,
|
603
|
-
allowUnrecognizedEnumValues: true,
|
604
|
-
skipValidation: true,
|
605
|
-
breadcrumbsPrefix: ["response"],
|
606
|
-
});
|
607
|
-
}
|
608
|
-
if (_response.error.reason === "status-code") {
|
609
|
-
throw new errors.AirtopError({
|
610
|
-
statusCode: _response.error.statusCode,
|
611
|
-
body: _response.error.body,
|
612
|
-
});
|
613
|
-
}
|
614
|
-
switch (_response.error.reason) {
|
615
|
-
case "non-json":
|
616
|
-
throw new errors.AirtopError({
|
617
|
-
statusCode: _response.error.statusCode,
|
618
|
-
body: _response.error.rawBody,
|
619
|
-
});
|
620
|
-
case "timeout":
|
621
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/create-form-filler.");
|
622
|
-
case "unknown":
|
623
|
-
throw new errors.AirtopError({
|
624
|
-
message: _response.error.errorMessage,
|
625
|
-
});
|
626
|
-
}
|
627
|
-
});
|
628
|
-
}
|
629
|
-
/**
|
630
|
-
* Fill a form of a browser window synchronously using a form-filler automation
|
631
|
-
*
|
632
|
-
* @param {string} sessionId - The session id for the window.
|
633
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
634
|
-
* @param {Airtop.FillFormRequest} request
|
635
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
636
|
-
*
|
637
|
-
* @example
|
638
|
-
* await client.windows.fillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
639
|
-
* automationId: "automationId"
|
640
|
-
* })
|
641
|
-
*/
|
642
|
-
fillForm(sessionId, windowId, request, requestOptions) {
|
643
|
-
return __awaiter(this, void 0, void 0, function* () {
|
644
|
-
var _a, _b, _c;
|
645
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
646
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/fill-form`),
|
647
|
-
method: "POST",
|
648
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
649
|
-
contentType: "application/json",
|
650
|
-
requestType: "json",
|
651
|
-
body: serializers.FillFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
652
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
653
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
654
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
655
|
-
});
|
656
|
-
if (_response.ok) {
|
657
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
658
|
-
unrecognizedObjectKeys: "passthrough",
|
659
|
-
allowUnrecognizedUnionMembers: true,
|
660
|
-
allowUnrecognizedEnumValues: true,
|
661
|
-
skipValidation: true,
|
662
|
-
breadcrumbsPrefix: ["response"],
|
663
|
-
});
|
664
|
-
}
|
665
|
-
if (_response.error.reason === "status-code") {
|
666
|
-
throw new errors.AirtopError({
|
667
|
-
statusCode: _response.error.statusCode,
|
668
|
-
body: _response.error.body,
|
669
|
-
});
|
670
|
-
}
|
671
|
-
switch (_response.error.reason) {
|
672
|
-
case "non-json":
|
673
|
-
throw new errors.AirtopError({
|
674
|
-
statusCode: _response.error.statusCode,
|
675
|
-
body: _response.error.rawBody,
|
676
|
-
});
|
677
|
-
case "timeout":
|
678
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/fill-form.");
|
679
|
-
case "unknown":
|
680
|
-
throw new errors.AirtopError({
|
681
|
-
message: _response.error.errorMessage,
|
682
|
-
});
|
683
|
-
}
|
684
|
-
});
|
685
|
-
}
|
686
|
-
/**
|
687
|
-
* Execute a hover interaction in a specific browser window
|
688
|
-
*
|
689
|
-
* @param {string} sessionId - The session id for the window.
|
690
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
691
|
-
* @param {Airtop.SessionHoverHandlerRequestBody} request
|
692
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
693
|
-
*
|
694
|
-
* @example
|
695
|
-
* await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
696
|
-
* elementDescription: "The search box input in the top right corner"
|
697
|
-
* })
|
698
|
-
*/
|
699
|
-
hover(sessionId, windowId, request, requestOptions) {
|
700
|
-
return __awaiter(this, void 0, void 0, function* () {
|
701
|
-
var _a, _b, _c;
|
702
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
703
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/hover`),
|
704
|
-
method: "POST",
|
705
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
706
|
-
contentType: "application/json",
|
707
|
-
requestType: "json",
|
708
|
-
body: serializers.SessionHoverHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
709
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
710
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
711
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
712
|
-
});
|
713
|
-
if (_response.ok) {
|
714
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
715
|
-
unrecognizedObjectKeys: "passthrough",
|
716
|
-
allowUnrecognizedUnionMembers: true,
|
717
|
-
allowUnrecognizedEnumValues: true,
|
718
|
-
skipValidation: true,
|
719
|
-
breadcrumbsPrefix: ["response"],
|
720
|
-
});
|
721
|
-
}
|
722
|
-
if (_response.error.reason === "status-code") {
|
723
|
-
throw new errors.AirtopError({
|
724
|
-
statusCode: _response.error.statusCode,
|
725
|
-
body: _response.error.body,
|
726
|
-
});
|
727
|
-
}
|
728
|
-
switch (_response.error.reason) {
|
729
|
-
case "non-json":
|
730
|
-
throw new errors.AirtopError({
|
731
|
-
statusCode: _response.error.statusCode,
|
732
|
-
body: _response.error.rawBody,
|
733
|
-
});
|
734
|
-
case "timeout":
|
735
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/hover.");
|
736
|
-
case "unknown":
|
737
|
-
throw new errors.AirtopError({
|
738
|
-
message: _response.error.errorMessage,
|
739
|
-
});
|
740
|
-
}
|
741
|
-
});
|
742
|
-
}
|
743
|
-
/**
|
744
|
-
* @param {string} sessionId - The session id for the window.
|
745
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
746
|
-
* @param {Airtop.SessionMonitorHandlerRequestBody} request
|
747
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
748
|
-
*
|
749
|
-
* @example
|
750
|
-
* await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
751
|
-
* condition: "Determine if the user appears to be signed in to the website"
|
752
|
-
* })
|
753
|
-
*/
|
754
|
-
monitor(sessionId, windowId, request, requestOptions) {
|
755
|
-
return __awaiter(this, void 0, void 0, function* () {
|
756
|
-
var _a, _b, _c;
|
757
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
758
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/monitor`),
|
759
|
-
method: "POST",
|
760
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
761
|
-
contentType: "application/json",
|
762
|
-
requestType: "json",
|
763
|
-
body: serializers.SessionMonitorHandlerRequestBody.jsonOrThrow(request, {
|
764
|
-
unrecognizedObjectKeys: "strip",
|
765
|
-
}),
|
766
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
767
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
768
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
769
|
-
});
|
770
|
-
if (_response.ok) {
|
771
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
772
|
-
unrecognizedObjectKeys: "passthrough",
|
773
|
-
allowUnrecognizedUnionMembers: true,
|
774
|
-
allowUnrecognizedEnumValues: true,
|
775
|
-
skipValidation: true,
|
776
|
-
breadcrumbsPrefix: ["response"],
|
777
|
-
});
|
778
|
-
}
|
779
|
-
if (_response.error.reason === "status-code") {
|
780
|
-
throw new errors.AirtopError({
|
781
|
-
statusCode: _response.error.statusCode,
|
782
|
-
body: _response.error.body,
|
783
|
-
});
|
784
|
-
}
|
785
|
-
switch (_response.error.reason) {
|
786
|
-
case "non-json":
|
787
|
-
throw new errors.AirtopError({
|
788
|
-
statusCode: _response.error.statusCode,
|
789
|
-
body: _response.error.rawBody,
|
790
|
-
});
|
791
|
-
case "timeout":
|
792
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/monitor.");
|
793
|
-
case "unknown":
|
794
|
-
throw new errors.AirtopError({
|
795
|
-
message: _response.error.errorMessage,
|
796
|
-
});
|
797
|
-
}
|
798
|
-
});
|
799
|
-
}
|
800
|
-
/**
|
801
|
-
* Submit a prompt that queries the content of a specific browser window. You may extract content from the page, or ask a question about the page and allow the AI to answer it (ex. Is the user logged in?).
|
802
|
-
*
|
803
|
-
* @param {string} sessionId - The session id for the window.
|
804
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
805
|
-
* @param {Airtop.SessionPageQueryHandlerRequestBody} request
|
806
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
807
|
-
*
|
808
|
-
* @example
|
809
|
-
* await client.windows.pageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
810
|
-
* prompt: "What is the main idea of this page?"
|
811
|
-
* })
|
812
|
-
*/
|
813
|
-
pageQuery(sessionId, windowId, request, requestOptions) {
|
814
|
-
return __awaiter(this, void 0, void 0, function* () {
|
815
|
-
var _a, _b, _c;
|
816
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
817
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/page-query`),
|
818
|
-
method: "POST",
|
819
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
820
|
-
contentType: "application/json",
|
821
|
-
requestType: "json",
|
822
|
-
body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
|
823
|
-
unrecognizedObjectKeys: "strip",
|
824
|
-
}),
|
825
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
826
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
827
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
828
|
-
});
|
829
|
-
if (_response.ok) {
|
830
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
831
|
-
unrecognizedObjectKeys: "passthrough",
|
832
|
-
allowUnrecognizedUnionMembers: true,
|
833
|
-
allowUnrecognizedEnumValues: true,
|
834
|
-
skipValidation: true,
|
835
|
-
breadcrumbsPrefix: ["response"],
|
836
|
-
});
|
837
|
-
}
|
838
|
-
if (_response.error.reason === "status-code") {
|
839
|
-
throw new errors.AirtopError({
|
840
|
-
statusCode: _response.error.statusCode,
|
841
|
-
body: _response.error.body,
|
842
|
-
});
|
843
|
-
}
|
844
|
-
switch (_response.error.reason) {
|
845
|
-
case "non-json":
|
846
|
-
throw new errors.AirtopError({
|
847
|
-
statusCode: _response.error.statusCode,
|
848
|
-
body: _response.error.rawBody,
|
849
|
-
});
|
850
|
-
case "timeout":
|
851
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/page-query.");
|
852
|
-
case "unknown":
|
853
|
-
throw new errors.AirtopError({
|
854
|
-
message: _response.error.errorMessage,
|
855
|
-
});
|
856
|
-
}
|
857
|
-
});
|
858
|
-
}
|
859
|
-
/**
|
860
|
-
* Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
|
861
|
-
*
|
862
|
-
* @param {string} sessionId - The session id for the window.
|
863
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
864
|
-
* @param {Airtop.SessionPaginatedExtractionHandlerRequestBody} request
|
865
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
866
|
-
*
|
867
|
-
* @example
|
868
|
-
* await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
869
|
-
* 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."
|
870
|
-
* })
|
871
|
-
*/
|
872
|
-
paginatedExtraction(sessionId, windowId, request, requestOptions) {
|
873
|
-
return __awaiter(this, void 0, void 0, function* () {
|
874
|
-
var _a, _b, _c;
|
875
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
876
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
|
877
|
-
method: "POST",
|
878
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
879
|
-
contentType: "application/json",
|
880
|
-
requestType: "json",
|
881
|
-
body: serializers.SessionPaginatedExtractionHandlerRequestBody.jsonOrThrow(request, {
|
882
|
-
unrecognizedObjectKeys: "strip",
|
883
|
-
}),
|
884
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
885
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
886
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
887
|
-
});
|
888
|
-
if (_response.ok) {
|
889
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
890
|
-
unrecognizedObjectKeys: "passthrough",
|
891
|
-
allowUnrecognizedUnionMembers: true,
|
892
|
-
allowUnrecognizedEnumValues: true,
|
893
|
-
skipValidation: true,
|
894
|
-
breadcrumbsPrefix: ["response"],
|
895
|
-
});
|
896
|
-
}
|
897
|
-
if (_response.error.reason === "status-code") {
|
898
|
-
throw new errors.AirtopError({
|
899
|
-
statusCode: _response.error.statusCode,
|
900
|
-
body: _response.error.body,
|
901
|
-
});
|
902
|
-
}
|
903
|
-
switch (_response.error.reason) {
|
904
|
-
case "non-json":
|
905
|
-
throw new errors.AirtopError({
|
906
|
-
statusCode: _response.error.statusCode,
|
907
|
-
body: _response.error.rawBody,
|
908
|
-
});
|
909
|
-
case "timeout":
|
910
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/paginated-extraction.");
|
911
|
-
case "unknown":
|
912
|
-
throw new errors.AirtopError({
|
913
|
-
message: _response.error.errorMessage,
|
914
|
-
});
|
915
|
-
}
|
916
|
-
});
|
917
|
-
}
|
918
|
-
/**
|
919
|
-
* This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
|
920
|
-
*
|
921
|
-
* @param {string} sessionId - The session id for the window.
|
922
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
923
|
-
* @param {Airtop.SessionPageQueryHandlerRequestBody} request
|
924
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
925
|
-
*
|
926
|
-
* @example
|
927
|
-
* await client.windows.promptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
928
|
-
* prompt: "What is the main idea of this page?"
|
929
|
-
* })
|
930
|
-
*/
|
931
|
-
promptContent(sessionId, windowId, request, requestOptions) {
|
932
|
-
return __awaiter(this, void 0, void 0, function* () {
|
933
|
-
var _a, _b, _c;
|
934
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
935
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
|
936
|
-
method: "POST",
|
937
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
938
|
-
contentType: "application/json",
|
939
|
-
requestType: "json",
|
940
|
-
body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
|
941
|
-
unrecognizedObjectKeys: "strip",
|
942
|
-
}),
|
943
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
944
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
945
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
946
|
-
});
|
947
|
-
if (_response.ok) {
|
948
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
949
|
-
unrecognizedObjectKeys: "passthrough",
|
950
|
-
allowUnrecognizedUnionMembers: true,
|
951
|
-
allowUnrecognizedEnumValues: true,
|
952
|
-
skipValidation: true,
|
953
|
-
breadcrumbsPrefix: ["response"],
|
954
|
-
});
|
955
|
-
}
|
956
|
-
if (_response.error.reason === "status-code") {
|
957
|
-
throw new errors.AirtopError({
|
958
|
-
statusCode: _response.error.statusCode,
|
959
|
-
body: _response.error.body,
|
960
|
-
});
|
961
|
-
}
|
962
|
-
switch (_response.error.reason) {
|
963
|
-
case "non-json":
|
964
|
-
throw new errors.AirtopError({
|
965
|
-
statusCode: _response.error.statusCode,
|
966
|
-
body: _response.error.rawBody,
|
967
|
-
});
|
968
|
-
case "timeout":
|
969
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/prompt-content.");
|
970
|
-
case "unknown":
|
971
|
-
throw new errors.AirtopError({
|
972
|
-
message: _response.error.errorMessage,
|
973
|
-
});
|
974
|
-
}
|
975
|
-
});
|
976
|
-
}
|
977
|
-
/**
|
978
|
-
* Scrape a window and return the content as markdown
|
979
|
-
*
|
980
|
-
* @param {string} sessionId - The session id for the window.
|
981
|
-
* @param {string} windowId - The Airtop window id of the browser window to scrape.
|
982
|
-
* @param {Airtop.ScrapeContentRequest} request
|
983
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
984
|
-
*
|
985
|
-
* @example
|
986
|
-
* await client.windows.scrapeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
987
|
-
*/
|
988
|
-
scrapeContent(sessionId_1, windowId_1) {
|
989
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
990
|
-
var _a, _b, _c;
|
991
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
992
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scrape-content`),
|
993
|
-
method: "POST",
|
994
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
995
|
-
contentType: "application/json",
|
996
|
-
requestType: "json",
|
997
|
-
body: serializers.ScrapeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
998
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
999
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1000
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1001
|
-
});
|
1002
|
-
if (_response.ok) {
|
1003
|
-
return serializers.ScrapeResponse.parseOrThrow(_response.body, {
|
1004
|
-
unrecognizedObjectKeys: "passthrough",
|
1005
|
-
allowUnrecognizedUnionMembers: true,
|
1006
|
-
allowUnrecognizedEnumValues: true,
|
1007
|
-
skipValidation: true,
|
1008
|
-
breadcrumbsPrefix: ["response"],
|
1009
|
-
});
|
1010
|
-
}
|
1011
|
-
if (_response.error.reason === "status-code") {
|
1012
|
-
throw new errors.AirtopError({
|
1013
|
-
statusCode: _response.error.statusCode,
|
1014
|
-
body: _response.error.body,
|
1015
|
-
});
|
1016
|
-
}
|
1017
|
-
switch (_response.error.reason) {
|
1018
|
-
case "non-json":
|
1019
|
-
throw new errors.AirtopError({
|
1020
|
-
statusCode: _response.error.statusCode,
|
1021
|
-
body: _response.error.rawBody,
|
1022
|
-
});
|
1023
|
-
case "timeout":
|
1024
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scrape-content.");
|
1025
|
-
case "unknown":
|
1026
|
-
throw new errors.AirtopError({
|
1027
|
-
message: _response.error.errorMessage,
|
1028
|
-
});
|
1029
|
-
}
|
1030
|
-
});
|
1031
|
-
}
|
1032
|
-
/**
|
1033
|
-
* Take a screenshot of a browser window
|
1034
|
-
*
|
1035
|
-
* @param {string} sessionId - The session id for the window.
|
1036
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
1037
|
-
* @param {Airtop.SessionScreenshotHandlerRequestBody} request
|
1038
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
1039
|
-
*
|
1040
|
-
* @example
|
1041
|
-
* await client.windows.screenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
1042
|
-
*/
|
1043
|
-
screenshot(sessionId_1, windowId_1) {
|
1044
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
1045
|
-
var _a, _b, _c;
|
1046
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1047
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/screenshot`),
|
1048
|
-
method: "POST",
|
1049
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1050
|
-
contentType: "application/json",
|
1051
|
-
requestType: "json",
|
1052
|
-
body: serializers.SessionScreenshotHandlerRequestBody.jsonOrThrow(request, {
|
1053
|
-
unrecognizedObjectKeys: "strip",
|
1054
|
-
}),
|
1055
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1056
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1057
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1058
|
-
});
|
1059
|
-
if (_response.ok) {
|
1060
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
1061
|
-
unrecognizedObjectKeys: "passthrough",
|
1062
|
-
allowUnrecognizedUnionMembers: true,
|
1063
|
-
allowUnrecognizedEnumValues: true,
|
1064
|
-
skipValidation: true,
|
1065
|
-
breadcrumbsPrefix: ["response"],
|
1066
|
-
});
|
1067
|
-
}
|
1068
|
-
if (_response.error.reason === "status-code") {
|
1069
|
-
throw new errors.AirtopError({
|
1070
|
-
statusCode: _response.error.statusCode,
|
1071
|
-
body: _response.error.body,
|
1072
|
-
});
|
1073
|
-
}
|
1074
|
-
switch (_response.error.reason) {
|
1075
|
-
case "non-json":
|
1076
|
-
throw new errors.AirtopError({
|
1077
|
-
statusCode: _response.error.statusCode,
|
1078
|
-
body: _response.error.rawBody,
|
1079
|
-
});
|
1080
|
-
case "timeout":
|
1081
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/screenshot.");
|
1082
|
-
case "unknown":
|
1083
|
-
throw new errors.AirtopError({
|
1084
|
-
message: _response.error.errorMessage,
|
1085
|
-
});
|
1086
|
-
}
|
1087
|
-
});
|
1088
|
-
}
|
1089
|
-
/**
|
1090
|
-
* Execute a scroll interaction in a specific browser window
|
1091
|
-
*
|
1092
|
-
* @param {string} sessionId - The session id for the window.
|
1093
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
1094
|
-
* @param {Airtop.SessionScrollHandlerRequestBody} request
|
1095
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
1096
|
-
*
|
1097
|
-
* @example
|
1098
|
-
* await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
1099
|
-
*/
|
1100
|
-
scroll(sessionId_1, windowId_1) {
|
1101
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
1102
|
-
var _a, _b, _c;
|
1103
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1104
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scroll`),
|
1105
|
-
method: "POST",
|
1106
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1107
|
-
contentType: "application/json",
|
1108
|
-
requestType: "json",
|
1109
|
-
body: serializers.SessionScrollHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
1110
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1111
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1112
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1113
|
-
});
|
1114
|
-
if (_response.ok) {
|
1115
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
1116
|
-
unrecognizedObjectKeys: "passthrough",
|
1117
|
-
allowUnrecognizedUnionMembers: true,
|
1118
|
-
allowUnrecognizedEnumValues: true,
|
1119
|
-
skipValidation: true,
|
1120
|
-
breadcrumbsPrefix: ["response"],
|
1121
|
-
});
|
1122
|
-
}
|
1123
|
-
if (_response.error.reason === "status-code") {
|
1124
|
-
throw new errors.AirtopError({
|
1125
|
-
statusCode: _response.error.statusCode,
|
1126
|
-
body: _response.error.body,
|
1127
|
-
});
|
1128
|
-
}
|
1129
|
-
switch (_response.error.reason) {
|
1130
|
-
case "non-json":
|
1131
|
-
throw new errors.AirtopError({
|
1132
|
-
statusCode: _response.error.statusCode,
|
1133
|
-
body: _response.error.rawBody,
|
1134
|
-
});
|
1135
|
-
case "timeout":
|
1136
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scroll.");
|
1137
|
-
case "unknown":
|
1138
|
-
throw new errors.AirtopError({
|
1139
|
-
message: _response.error.errorMessage,
|
1140
|
-
});
|
1141
|
-
}
|
1142
|
-
});
|
1143
|
-
}
|
1144
|
-
/**
|
1145
|
-
* This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
|
1146
|
-
*
|
1147
|
-
* @param {string} sessionId - The session id for the window.
|
1148
|
-
* @param {string} windowId - The Airtop window id of the browser window to summarize.
|
1149
|
-
* @param {Airtop.SessionSummaryHandlerRequestBody} request
|
1150
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
1151
|
-
*
|
1152
|
-
* @example
|
1153
|
-
* await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
1154
|
-
*/
|
1155
|
-
summarizeContent(sessionId_1, windowId_1) {
|
1156
|
-
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
1157
|
-
var _a, _b, _c;
|
1158
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1159
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
|
1160
|
-
method: "POST",
|
1161
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1162
|
-
contentType: "application/json",
|
1163
|
-
requestType: "json",
|
1164
|
-
body: serializers.SessionSummaryHandlerRequestBody.jsonOrThrow(request, {
|
1165
|
-
unrecognizedObjectKeys: "strip",
|
1166
|
-
}),
|
1167
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1168
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1169
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1170
|
-
});
|
1171
|
-
if (_response.ok) {
|
1172
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
1173
|
-
unrecognizedObjectKeys: "passthrough",
|
1174
|
-
allowUnrecognizedUnionMembers: true,
|
1175
|
-
allowUnrecognizedEnumValues: true,
|
1176
|
-
skipValidation: true,
|
1177
|
-
breadcrumbsPrefix: ["response"],
|
1178
|
-
});
|
1179
|
-
}
|
1180
|
-
if (_response.error.reason === "status-code") {
|
1181
|
-
throw new errors.AirtopError({
|
1182
|
-
statusCode: _response.error.statusCode,
|
1183
|
-
body: _response.error.body,
|
1184
|
-
});
|
1185
|
-
}
|
1186
|
-
switch (_response.error.reason) {
|
1187
|
-
case "non-json":
|
1188
|
-
throw new errors.AirtopError({
|
1189
|
-
statusCode: _response.error.statusCode,
|
1190
|
-
body: _response.error.rawBody,
|
1191
|
-
});
|
1192
|
-
case "timeout":
|
1193
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/summarize-content.");
|
1194
|
-
case "unknown":
|
1195
|
-
throw new errors.AirtopError({
|
1196
|
-
message: _response.error.errorMessage,
|
1197
|
-
});
|
1198
|
-
}
|
1199
|
-
});
|
1200
|
-
}
|
1201
|
-
/**
|
1202
|
-
* Execute a type interaction in a specific browser window
|
1203
|
-
*
|
1204
|
-
* @param {string} sessionId - The session id for the window.
|
1205
|
-
* @param {string} windowId - The Airtop window id of the browser window.
|
1206
|
-
* @param {Airtop.SessionTypeHandlerRequestBody} request
|
1207
|
-
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
1208
|
-
*
|
1209
|
-
* @example
|
1210
|
-
* await client.windows.type("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
1211
|
-
* text: "Example text"
|
1212
|
-
* })
|
1213
|
-
*/
|
1214
|
-
type(sessionId, windowId, request, requestOptions) {
|
1215
|
-
return __awaiter(this, void 0, void 0, function* () {
|
1216
|
-
var _a, _b, _c;
|
1217
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1218
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/type`),
|
1219
|
-
method: "POST",
|
1220
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1221
|
-
contentType: "application/json",
|
1222
|
-
requestType: "json",
|
1223
|
-
body: serializers.SessionTypeHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
1224
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1225
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1226
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1227
|
-
});
|
1228
|
-
if (_response.ok) {
|
1229
|
-
return serializers.AiPromptResponse.parseOrThrow(_response.body, {
|
1230
|
-
unrecognizedObjectKeys: "passthrough",
|
1231
|
-
allowUnrecognizedUnionMembers: true,
|
1232
|
-
allowUnrecognizedEnumValues: true,
|
1233
|
-
skipValidation: true,
|
1234
|
-
breadcrumbsPrefix: ["response"],
|
1235
|
-
});
|
1236
|
-
}
|
1237
|
-
if (_response.error.reason === "status-code") {
|
1238
|
-
throw new errors.AirtopError({
|
1239
|
-
statusCode: _response.error.statusCode,
|
1240
|
-
body: _response.error.body,
|
1241
|
-
});
|
1242
|
-
}
|
1243
|
-
switch (_response.error.reason) {
|
1244
|
-
case "non-json":
|
1245
|
-
throw new errors.AirtopError({
|
1246
|
-
statusCode: _response.error.statusCode,
|
1247
|
-
body: _response.error.rawBody,
|
1248
|
-
});
|
1249
|
-
case "timeout":
|
1250
|
-
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/type.");
|
1251
|
-
case "unknown":
|
1252
|
-
throw new errors.AirtopError({
|
1253
|
-
message: _response.error.errorMessage,
|
1254
|
-
});
|
1255
|
-
}
|
1256
|
-
});
|
1257
|
-
}
|
1258
|
-
_getAuthorizationHeader() {
|
1259
|
-
return __awaiter(this, void 0, void 0, function* () {
|
1260
|
-
return `Bearer ${yield core.Supplier.get(this._options.apiKey)}`;
|
1261
|
-
});
|
1262
|
-
}
|
1263
|
-
}
|
1264
|
-
exports.Windows = Windows;
|