@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
package/dist/index.cjs
ADDED
@@ -0,0 +1,1195 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var __getOwnPropNames = Object.getOwnPropertyNames;
|
2
|
+
var __commonJS = (cb, mod) => function __require() {
|
3
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
4
|
+
};
|
5
|
+
|
6
|
+
// package.json
|
7
|
+
var require_package = __commonJS({
|
8
|
+
"package.json"(exports, module) {
|
9
|
+
module.exports = {
|
10
|
+
name: "@airtop/sdk",
|
11
|
+
description: "Airtop SDK for TypeScript",
|
12
|
+
version: "1.0.0-alpha2.1",
|
13
|
+
type: "module",
|
14
|
+
main: "./dist/index.cjs",
|
15
|
+
module: "./dist/index.js",
|
16
|
+
exports: {
|
17
|
+
import: {
|
18
|
+
types: "./dist/index.d.ts",
|
19
|
+
import: "./dist/index.js"
|
20
|
+
},
|
21
|
+
require: {
|
22
|
+
types: "./dist/index.d.cts",
|
23
|
+
require: "./dist/index.cjs"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
types: "./dist/index.d.ts",
|
27
|
+
license: "MIT",
|
28
|
+
repository: "airtop-ai/airtop-sdk.git",
|
29
|
+
author: "Theo Gravity <theo@airtop.ai>",
|
30
|
+
keywords: [
|
31
|
+
"airtop",
|
32
|
+
"browser automation",
|
33
|
+
"ai",
|
34
|
+
"playwright",
|
35
|
+
"puppeteer",
|
36
|
+
"selenium",
|
37
|
+
"web scraping",
|
38
|
+
"agentic"
|
39
|
+
],
|
40
|
+
scripts: {
|
41
|
+
"build:second-stage": "tsup src/index.ts",
|
42
|
+
"test:e2e": "vitest --run",
|
43
|
+
"build:dev": "node_modules/.bin/hash-runner",
|
44
|
+
clean: "rm -rf .turbo node_modules dist",
|
45
|
+
lint: "biome check --write --unsafe src && biome format src --write && biome lint src --fix",
|
46
|
+
"verify-types": "tsc --noEmit"
|
47
|
+
},
|
48
|
+
dependencies: {
|
49
|
+
"@airtop/json-schema-adapter": "workspace:*",
|
50
|
+
"@airtop/core": "0.1.0-alpha.17",
|
51
|
+
"date-fns": "4.1.0",
|
52
|
+
loglayer: "6.3.3",
|
53
|
+
"serialize-error": "12.0.0",
|
54
|
+
uuid: "11.1.0"
|
55
|
+
},
|
56
|
+
devDependencies: {
|
57
|
+
"@biomejs/biome": "1.9.4",
|
58
|
+
"@dotenvx/dotenvx": "1.39.0",
|
59
|
+
"@internal/tsconfig": "workspace:*",
|
60
|
+
"deep-utility-types": "1.3.1",
|
61
|
+
"env-var": "7.5.0",
|
62
|
+
"hash-runner": "2.0.1",
|
63
|
+
nanoid: "5.1.5",
|
64
|
+
tsup: "8.4.0",
|
65
|
+
typescript: "5.8.2",
|
66
|
+
"utility-types": "3.11.0",
|
67
|
+
uuid: "11.1.0",
|
68
|
+
vitest: "3.1.1",
|
69
|
+
zod: "*"
|
70
|
+
},
|
71
|
+
bugs: "https://github.com/airtop-ai/airtop-sdk/issues",
|
72
|
+
engines: {
|
73
|
+
node: ">=18"
|
74
|
+
},
|
75
|
+
files: [
|
76
|
+
"dist"
|
77
|
+
],
|
78
|
+
homepage: "https://airtop.ai",
|
79
|
+
optionalDependencies: {
|
80
|
+
"@airtop/json-schema-adapter-zod": "workspace:*"
|
81
|
+
},
|
82
|
+
packageManager: "pnpm@10.5.0"
|
83
|
+
};
|
84
|
+
}
|
85
|
+
});
|
86
|
+
|
87
|
+
// src/AirtopBase.ts
|
88
|
+
var _datefns = require('date-fns');
|
89
|
+
var AirtopBase = class {
|
90
|
+
/**
|
91
|
+
* Logger instance for the SDK
|
92
|
+
* @internal
|
93
|
+
**/
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Airtop Core SDK client instance
|
97
|
+
* @internal
|
98
|
+
**/
|
99
|
+
|
100
|
+
/**
|
101
|
+
* JSON schema adapter for output conversion
|
102
|
+
* @internal
|
103
|
+
**/
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Creates a new instance of AirtopBase
|
107
|
+
* @param config - Configuration options for the SDK
|
108
|
+
*/
|
109
|
+
constructor(config) {
|
110
|
+
this.log = config.log.withPrefix("[Airtop]");
|
111
|
+
this.client = config.client;
|
112
|
+
this.outputJsonAdapter = config.outputSchemaAdapter;
|
113
|
+
}
|
114
|
+
/**
|
115
|
+
* Returns the API key used by the SDK
|
116
|
+
* @returns API key string
|
117
|
+
*/
|
118
|
+
getApiKey() {
|
119
|
+
return this.client.apiKey;
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* Sets the base URL for the Airtop API.
|
123
|
+
* @param airtopUrl - The base URL for the Airtop API
|
124
|
+
*/
|
125
|
+
setAirtopUrl(airtopUrl) {
|
126
|
+
this.client.baseURL = airtopUrl;
|
127
|
+
}
|
128
|
+
/**
|
129
|
+
* Sets the API key for authentication.
|
130
|
+
* @param apiKey - The API key to use for authentication
|
131
|
+
*/
|
132
|
+
setApiKey(apiKey) {
|
133
|
+
this.client.apiKey = apiKey;
|
134
|
+
}
|
135
|
+
/**
|
136
|
+
* Returns the LogLayer logger instance used by the SDK
|
137
|
+
* @returns Logger instance
|
138
|
+
* @see {@link https://loglayer.dev | LogLayer Documentation}
|
139
|
+
*/
|
140
|
+
getLogger() {
|
141
|
+
return this.log;
|
142
|
+
}
|
143
|
+
/**
|
144
|
+
* Converts input data to JSON schema format
|
145
|
+
* @param input - Data to be converted (schema input, string, or object)
|
146
|
+
* @returns JSON string representation of the input
|
147
|
+
* @internal
|
148
|
+
*/
|
149
|
+
convertToJsonSchema(input) {
|
150
|
+
if (input && _optionalChain([this, 'access', _ => _.outputJsonAdapter, 'optionalAccess', _2 => _2.shouldRunConversion, 'call', _3 => _3(input)])) {
|
151
|
+
return JSON.stringify(this.outputJsonAdapter.toJsonSchema(input));
|
152
|
+
}
|
153
|
+
if (typeof input === "object") {
|
154
|
+
return JSON.stringify(input);
|
155
|
+
}
|
156
|
+
return input;
|
157
|
+
}
|
158
|
+
/**
|
159
|
+
* Returns the common configuration used by the SDK
|
160
|
+
* @returns Common configuration object
|
161
|
+
* @internal
|
162
|
+
*/
|
163
|
+
getCommonConfig() {
|
164
|
+
return {
|
165
|
+
client: this.client,
|
166
|
+
log: this.log
|
167
|
+
};
|
168
|
+
}
|
169
|
+
/**
|
170
|
+
* Translates the request options to ones used by the Core SDK
|
171
|
+
* @param options - Request options to be resolved
|
172
|
+
* @returns Resolved request options with defaults
|
173
|
+
* @internal
|
174
|
+
*/
|
175
|
+
resolveRequestOptions(options = {}) {
|
176
|
+
return {
|
177
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, options.timeoutInSeconds || 60),
|
178
|
+
maxRetries: options.maxRetries || 0,
|
179
|
+
signal: options.abortSignal
|
180
|
+
};
|
181
|
+
}
|
182
|
+
};
|
183
|
+
|
184
|
+
// src/AirtopClient.ts
|
185
|
+
var _core = require('@airtop/core');
|
186
|
+
var _minutesToMilliseconds = require('date-fns/minutesToMilliseconds');
|
187
|
+
var _loglayer = require('loglayer');
|
188
|
+
var _serializeerror = require('serialize-error');
|
189
|
+
|
190
|
+
// src/logger-utils.ts
|
191
|
+
var processLogMessage = (log, logLevel, ...args) => {
|
192
|
+
if (logLevel === "off") {
|
193
|
+
return;
|
194
|
+
}
|
195
|
+
const data = {};
|
196
|
+
let hasData = false;
|
197
|
+
let error = null;
|
198
|
+
const messages = [];
|
199
|
+
for (const arg of args) {
|
200
|
+
if (arg instanceof Error) {
|
201
|
+
error = arg;
|
202
|
+
continue;
|
203
|
+
}
|
204
|
+
if (typeof arg === "object" && arg !== null) {
|
205
|
+
Object.assign(data, arg);
|
206
|
+
hasData = true;
|
207
|
+
continue;
|
208
|
+
}
|
209
|
+
if (typeof arg === "string") {
|
210
|
+
messages.push(arg);
|
211
|
+
}
|
212
|
+
}
|
213
|
+
let finalMessage = messages.join(" ").trim();
|
214
|
+
if (finalMessage === "\u2A2F" && error) {
|
215
|
+
finalMessage = _optionalChain([error, 'optionalAccess', _4 => _4.message]) || "";
|
216
|
+
}
|
217
|
+
if (error && hasData && messages.length > 0) {
|
218
|
+
log.withError(error).withMetadata(data)[logLevel](finalMessage);
|
219
|
+
} else if (error && messages.length > 0) {
|
220
|
+
log.withError(error)[logLevel](finalMessage);
|
221
|
+
} else if (hasData && messages.length > 0) {
|
222
|
+
log.withMetadata(data)[logLevel](finalMessage);
|
223
|
+
} else if (error && hasData && messages.length === 0) {
|
224
|
+
log.withError(error).withMetadata(data)[logLevel]("");
|
225
|
+
} else if (error && messages.length === 0) {
|
226
|
+
log.errorOnly(error);
|
227
|
+
} else if (hasData && messages.length === 0) {
|
228
|
+
log.metadataOnly(data);
|
229
|
+
} else {
|
230
|
+
log[logLevel](finalMessage);
|
231
|
+
}
|
232
|
+
};
|
233
|
+
|
234
|
+
// src/session/AirtopSessionClient.ts
|
235
|
+
|
236
|
+
|
237
|
+
// src/window/AirtopWindowClient.ts
|
238
|
+
|
239
|
+
|
240
|
+
// src/window/AirtopWindowScreenshot.ts
|
241
|
+
function extractMimeAndBase64(dataUrl) {
|
242
|
+
const match = dataUrl.match(/^data:(image\/\w+);base64,(.+)$/);
|
243
|
+
if (match) {
|
244
|
+
return { mimeType: match[1], base64Data: match[2] };
|
245
|
+
}
|
246
|
+
return {
|
247
|
+
mimeType: "image/jpeg",
|
248
|
+
base64Data: dataUrl.replace(/^data:image\/jpeg;base64,/, "")
|
249
|
+
};
|
250
|
+
}
|
251
|
+
var AirtopWindowScreenshot = class {
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Creates a new AirtopWindowScreenshot instance.
|
258
|
+
* @param screenshotData - Initial screenshot data and configuration
|
259
|
+
*/
|
260
|
+
constructor(screenshotData) {
|
261
|
+
this.meta = screenshotData.meta;
|
262
|
+
this.data = screenshotData.data;
|
263
|
+
this.warnings = screenshotData.warnings;
|
264
|
+
this.errors = screenshotData.errors;
|
265
|
+
}
|
266
|
+
/**
|
267
|
+
* Processes the screenshots and returns them as JPG images.
|
268
|
+
*/
|
269
|
+
screenshotsAsJpg() {
|
270
|
+
const screenshots = this.meta.screenshots;
|
271
|
+
if (!screenshots) {
|
272
|
+
return [];
|
273
|
+
}
|
274
|
+
return screenshots.map((screenshot, index) => {
|
275
|
+
if (!screenshot.dataUrl) {
|
276
|
+
return {
|
277
|
+
index,
|
278
|
+
error: new Error("Screenshot data URL not found"),
|
279
|
+
success: false
|
280
|
+
};
|
281
|
+
}
|
282
|
+
try {
|
283
|
+
const { mimeType, base64Data } = extractMimeAndBase64(screenshot.dataUrl);
|
284
|
+
const binaryData = Buffer.from(base64Data, "base64");
|
285
|
+
return {
|
286
|
+
index,
|
287
|
+
binaryData,
|
288
|
+
mimeType,
|
289
|
+
success: true
|
290
|
+
};
|
291
|
+
} catch (err) {
|
292
|
+
return {
|
293
|
+
index,
|
294
|
+
error: err instanceof Error ? err : new Error(String(err)),
|
295
|
+
success: false
|
296
|
+
};
|
297
|
+
}
|
298
|
+
});
|
299
|
+
}
|
300
|
+
/**
|
301
|
+
* Returns response data as a JSON object.
|
302
|
+
*/
|
303
|
+
toJSON() {
|
304
|
+
return {
|
305
|
+
data: this.data,
|
306
|
+
meta: this.meta,
|
307
|
+
warnings: this.warnings,
|
308
|
+
errors: this.errors
|
309
|
+
};
|
310
|
+
}
|
311
|
+
};
|
312
|
+
|
313
|
+
// src/window/AirtopWindowClient.ts
|
314
|
+
var AirtopWindowClient = class extends AirtopBase {
|
315
|
+
/**
|
316
|
+
* The browser session id
|
317
|
+
* @internal
|
318
|
+
*/
|
319
|
+
|
320
|
+
/**
|
321
|
+
* The window id
|
322
|
+
* @internal
|
323
|
+
*/
|
324
|
+
|
325
|
+
/**
|
326
|
+
* Creates a new AirtopWindow instance.
|
327
|
+
* @param config - Common configuration options for the window
|
328
|
+
* @param sessionId - Browser session id
|
329
|
+
* @param windowId - Browser window id
|
330
|
+
*/
|
331
|
+
constructor(config, sessionId, windowId) {
|
332
|
+
super(config);
|
333
|
+
this.log = this.log.child().withContext({
|
334
|
+
sessionId,
|
335
|
+
windowId
|
336
|
+
});
|
337
|
+
this.windowId = windowId;
|
338
|
+
this.sessionId = sessionId;
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* Gets the window ID.
|
342
|
+
*/
|
343
|
+
getWindowId() {
|
344
|
+
return this.windowId;
|
345
|
+
}
|
346
|
+
/**
|
347
|
+
* Gets the browser session id associated with the window.
|
348
|
+
*/
|
349
|
+
getSessionId() {
|
350
|
+
return this.sessionId;
|
351
|
+
}
|
352
|
+
/**
|
353
|
+
* Retrieves a window from a specific session.
|
354
|
+
* @param config - Configuration options for the window
|
355
|
+
* @param requestOptions - Request options
|
356
|
+
* @returns AirtopWindow<AirtopWindowGetInfoResponse> instance
|
357
|
+
*/
|
358
|
+
async getWindowInfo(config, requestOptions = {}) {
|
359
|
+
const results = await this.client.windows.get(
|
360
|
+
this.windowId,
|
361
|
+
{
|
362
|
+
sessionId: this.sessionId,
|
363
|
+
...config
|
364
|
+
},
|
365
|
+
this.resolveRequestOptions(requestOptions)
|
366
|
+
);
|
367
|
+
return new AirtopWindow(this.getCommonConfig(), this.sessionId, results);
|
368
|
+
}
|
369
|
+
/**
|
370
|
+
* Simulates a click on an element in the window.
|
371
|
+
* @param elementDescription - Description or selector of the element to click
|
372
|
+
* @param config - Additional configuration options for the click action
|
373
|
+
* @param requestOptions - Request options
|
374
|
+
* @returns Promise resolving to the click operation result
|
375
|
+
*/
|
376
|
+
async click(elementDescription, config, requestOptions = {}) {
|
377
|
+
this.log.withMetadata({
|
378
|
+
elementDescription
|
379
|
+
}).info("Clicking on element");
|
380
|
+
return this.client.windows.click(
|
381
|
+
this.getWindowId(),
|
382
|
+
{
|
383
|
+
...config,
|
384
|
+
elementDescription,
|
385
|
+
sessionId: this.sessionId
|
386
|
+
},
|
387
|
+
{
|
388
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
389
|
+
...this.resolveRequestOptions(requestOptions)
|
390
|
+
}
|
391
|
+
);
|
392
|
+
}
|
393
|
+
/**
|
394
|
+
* Closes the window.
|
395
|
+
* @returns Promise resolving when the window is closed
|
396
|
+
*/
|
397
|
+
async close() {
|
398
|
+
this.log.info("Closing window");
|
399
|
+
return this.client.windows.close(this.getWindowId(), {
|
400
|
+
sessionId: this.sessionId
|
401
|
+
});
|
402
|
+
}
|
403
|
+
/**
|
404
|
+
* Simulates hovering over an element in the window.
|
405
|
+
* @param elementDescription - Description or selector of the element to hover over
|
406
|
+
* @param config - Additional configuration options for the hover action
|
407
|
+
* @param requestOptions - Request options
|
408
|
+
* @returns Promise resolving to the hover operation result
|
409
|
+
*/
|
410
|
+
async hover(elementDescription, config, requestOptions = {}) {
|
411
|
+
this.log.withMetadata(config).info("Hovering over window");
|
412
|
+
return this.client.windows.hover(
|
413
|
+
this.getWindowId(),
|
414
|
+
{
|
415
|
+
elementDescription,
|
416
|
+
sessionId: this.sessionId,
|
417
|
+
...config || {}
|
418
|
+
},
|
419
|
+
{
|
420
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
421
|
+
...this.resolveRequestOptions(requestOptions)
|
422
|
+
}
|
423
|
+
);
|
424
|
+
}
|
425
|
+
/**
|
426
|
+
* Loads a URL in the window.
|
427
|
+
* @param url - The URL to load
|
428
|
+
* @param config - Additional configuration options for loading the URL
|
429
|
+
* @param requestOptions - Request options
|
430
|
+
* @returns Promise resolving when the URL is loaded
|
431
|
+
*/
|
432
|
+
async loadUrl(url, config, requestOptions = {}) {
|
433
|
+
this.log.withMetadata({
|
434
|
+
url
|
435
|
+
}).info("Loading a URL");
|
436
|
+
return this.client.windows.loadURL(
|
437
|
+
this.getWindowId(),
|
438
|
+
{
|
439
|
+
sessionId: this.sessionId,
|
440
|
+
url,
|
441
|
+
...config
|
442
|
+
},
|
443
|
+
{
|
444
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
445
|
+
...this.resolveRequestOptions(requestOptions)
|
446
|
+
}
|
447
|
+
);
|
448
|
+
}
|
449
|
+
/**
|
450
|
+
* Monitors the window for changes or events.
|
451
|
+
* @param condition - A natural language description of the condition to monitor for in the browser window
|
452
|
+
* @param config - Configuration options for monitoring
|
453
|
+
* @param requestOptions - Request options
|
454
|
+
* @returns Promise resolving to the monitoring operation result
|
455
|
+
*/
|
456
|
+
async monitor(condition, config, requestOptions = {}) {
|
457
|
+
this.log.withMetadata().info("Monitoring window");
|
458
|
+
return this.client.windows.monitor(
|
459
|
+
this.getWindowId(),
|
460
|
+
{
|
461
|
+
condition,
|
462
|
+
sessionId: this.sessionId,
|
463
|
+
...config || {}
|
464
|
+
},
|
465
|
+
{
|
466
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
467
|
+
...this.resolveRequestOptions(requestOptions)
|
468
|
+
}
|
469
|
+
);
|
470
|
+
}
|
471
|
+
/**
|
472
|
+
* Performs a natural language query on the page content.
|
473
|
+
* @param prompt - The natural language query prompt
|
474
|
+
* @param config - Configuration options for the query
|
475
|
+
* @param requestOptions - Request options
|
476
|
+
* @returns Promise resolving to the query results
|
477
|
+
*/
|
478
|
+
async pageQuery(prompt, config, requestOptions = {}) {
|
479
|
+
this.log.withMetadata({
|
480
|
+
prompt
|
481
|
+
}).info("Performing a page query");
|
482
|
+
const newConfig = config;
|
483
|
+
if (_optionalChain([config, 'optionalAccess', _5 => _5.configuration, 'access', _6 => _6.outputSchema])) {
|
484
|
+
newConfig.configuration.outputSchema = this.convertToJsonSchema(config.configuration.outputSchema);
|
485
|
+
}
|
486
|
+
return this.client.windows.pageQuery(
|
487
|
+
this.getWindowId(),
|
488
|
+
{
|
489
|
+
sessionId: this.sessionId,
|
490
|
+
prompt,
|
491
|
+
...newConfig || {}
|
492
|
+
},
|
493
|
+
{
|
494
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
495
|
+
...this.resolveRequestOptions(requestOptions)
|
496
|
+
}
|
497
|
+
);
|
498
|
+
}
|
499
|
+
/**
|
500
|
+
* Performs paginated data extraction from the window content.
|
501
|
+
* @param prompt - The extraction prompt
|
502
|
+
* @param config - Configuration options for the extraction
|
503
|
+
* @param requestOptions - Request options
|
504
|
+
* @returns Promise resolving to the extracted data
|
505
|
+
*/
|
506
|
+
async paginatedExtraction(prompt, config, requestOptions = {}) {
|
507
|
+
this.log.withMetadata({
|
508
|
+
prompt
|
509
|
+
}).info("Performing a paginated extraction");
|
510
|
+
const newConfig = config;
|
511
|
+
if (_optionalChain([config, 'optionalAccess', _7 => _7.configuration, 'access', _8 => _8.outputSchema])) {
|
512
|
+
newConfig.configuration.outputSchema = this.convertToJsonSchema(config.configuration.outputSchema);
|
513
|
+
}
|
514
|
+
return this.client.windows.paginatedExtraction(
|
515
|
+
this.getWindowId(),
|
516
|
+
{
|
517
|
+
prompt,
|
518
|
+
sessionId: this.sessionId,
|
519
|
+
...newConfig || {}
|
520
|
+
},
|
521
|
+
{
|
522
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
523
|
+
...this.resolveRequestOptions(requestOptions)
|
524
|
+
}
|
525
|
+
);
|
526
|
+
}
|
527
|
+
/**
|
528
|
+
* Scrapes content from the window.
|
529
|
+
* @param config - Configuration options for scraping
|
530
|
+
* @param requestOptions - Request options
|
531
|
+
* @returns Promise resolving to the scraped content
|
532
|
+
*/
|
533
|
+
async scrape(config, requestOptions = {}) {
|
534
|
+
this.log.info("Scraping window");
|
535
|
+
return this.client.windows.scrape(
|
536
|
+
this.getWindowId(),
|
537
|
+
{
|
538
|
+
sessionId: this.sessionId,
|
539
|
+
...config || {}
|
540
|
+
},
|
541
|
+
{
|
542
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
543
|
+
...this.resolveRequestOptions(requestOptions)
|
544
|
+
}
|
545
|
+
);
|
546
|
+
}
|
547
|
+
/**
|
548
|
+
* Takes a screenshot of the window.
|
549
|
+
* @param config - Configuration options for the screenshot
|
550
|
+
* @param requestOptions - Request options
|
551
|
+
* @returns Promise resolving to the screenshot data
|
552
|
+
*/
|
553
|
+
async screenshot(config, requestOptions = {}) {
|
554
|
+
this.log.info("Screenshotting window");
|
555
|
+
const resp = await this.client.windows.screenshot(
|
556
|
+
this.getWindowId(),
|
557
|
+
{
|
558
|
+
sessionId: this.sessionId,
|
559
|
+
...config || {}
|
560
|
+
},
|
561
|
+
{
|
562
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
563
|
+
...this.resolveRequestOptions(requestOptions)
|
564
|
+
}
|
565
|
+
);
|
566
|
+
return new AirtopWindowScreenshot(resp);
|
567
|
+
}
|
568
|
+
/**
|
569
|
+
* Scrolls the window content.
|
570
|
+
* @param config - Configuration options for scrolling
|
571
|
+
* @param requestOptions - Request options
|
572
|
+
* @returns Promise resolving when the scroll operation is complete
|
573
|
+
*/
|
574
|
+
async scroll(config, requestOptions = {}) {
|
575
|
+
this.log.info("Scrolling window");
|
576
|
+
return this.client.windows.scroll(
|
577
|
+
this.getWindowId(),
|
578
|
+
{
|
579
|
+
sessionId: this.sessionId,
|
580
|
+
...config || {}
|
581
|
+
},
|
582
|
+
{
|
583
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
584
|
+
...this.resolveRequestOptions(requestOptions)
|
585
|
+
}
|
586
|
+
);
|
587
|
+
}
|
588
|
+
/**
|
589
|
+
* Types text into the window.
|
590
|
+
* @param text - The text to type
|
591
|
+
* @param config - Configuration options for typing
|
592
|
+
* @param requestOptions - Request options
|
593
|
+
* @returns Promise resolving when the text has been typed
|
594
|
+
*/
|
595
|
+
async type(text, config, requestOptions = {}) {
|
596
|
+
this.log.withMetadata({
|
597
|
+
text
|
598
|
+
}).info("Typing text");
|
599
|
+
return this.client.windows.type(
|
600
|
+
this.getWindowId(),
|
601
|
+
{
|
602
|
+
sessionId: this.sessionId,
|
603
|
+
text,
|
604
|
+
...config || {}
|
605
|
+
},
|
606
|
+
{
|
607
|
+
timeout: _datefns.secondsToMilliseconds.call(void 0, 600),
|
608
|
+
...this.resolveRequestOptions(requestOptions)
|
609
|
+
}
|
610
|
+
);
|
611
|
+
}
|
612
|
+
};
|
613
|
+
|
614
|
+
// src/window/AirtopWindow.ts
|
615
|
+
var AirtopWindow = class extends AirtopWindowClient {
|
616
|
+
/**
|
617
|
+
* The window data containing window-specific information.
|
618
|
+
*/
|
619
|
+
|
620
|
+
/**
|
621
|
+
* The metadata associated with the window.
|
622
|
+
*/
|
623
|
+
|
624
|
+
/**
|
625
|
+
* Warnings associated with the creation of the window.
|
626
|
+
* These are non-fatal issues that occurred during window creation.
|
627
|
+
*/
|
628
|
+
|
629
|
+
/**
|
630
|
+
* Errors that occurred during window creation or operation.
|
631
|
+
* These are fatal issues that prevented window creation.
|
632
|
+
*/
|
633
|
+
|
634
|
+
/**
|
635
|
+
* Creates a new AirtopWindow instance.
|
636
|
+
* @param config - Common configuration options for the window
|
637
|
+
* @param sessionId - Browser session id
|
638
|
+
* @param windowData - Initial window data and configuration
|
639
|
+
*/
|
640
|
+
constructor(config, sessionId, windowData) {
|
641
|
+
super(config, sessionId, windowData.data.windowId);
|
642
|
+
this.meta = windowData.meta;
|
643
|
+
this.data = windowData.data;
|
644
|
+
this.warnings = windowData.warnings;
|
645
|
+
this.errors = windowData.errors;
|
646
|
+
}
|
647
|
+
/**
|
648
|
+
* Returns response data as a JSON object.
|
649
|
+
*/
|
650
|
+
toJSON() {
|
651
|
+
return {
|
652
|
+
data: this.data,
|
653
|
+
meta: this.meta,
|
654
|
+
warnings: this.warnings,
|
655
|
+
errors: this.errors
|
656
|
+
};
|
657
|
+
}
|
658
|
+
};
|
659
|
+
|
660
|
+
// src/session/AirtopSessionClient.ts
|
661
|
+
var AirtopSessionClient = class extends AirtopBase {
|
662
|
+
/**
|
663
|
+
* The browser session id
|
664
|
+
* @internal
|
665
|
+
*/
|
666
|
+
|
667
|
+
/**
|
668
|
+
* Creates a new AirtopSession instance.
|
669
|
+
* @param config - Common configuration options for the session
|
670
|
+
* @param sessionId - Browser session id
|
671
|
+
*/
|
672
|
+
constructor(config, sessionId) {
|
673
|
+
super(config);
|
674
|
+
this.log = this.log.child().withContext({
|
675
|
+
sessionId
|
676
|
+
});
|
677
|
+
this.sessionId = sessionId;
|
678
|
+
}
|
679
|
+
/**
|
680
|
+
* Returns the browser session ID.
|
681
|
+
*/
|
682
|
+
getSessionId() {
|
683
|
+
return this.sessionId;
|
684
|
+
}
|
685
|
+
/**
|
686
|
+
* Gets the state of the session using the attached session id.
|
687
|
+
* @param requestOptions - Request options
|
688
|
+
* @returns AirtopSession instance or null if not found
|
689
|
+
*/
|
690
|
+
async getSessionInfo(requestOptions = {}) {
|
691
|
+
try {
|
692
|
+
const results = await this.client.sessions.get(this.sessionId, this.resolveRequestOptions(requestOptions));
|
693
|
+
return new AirtopSession(this.getCommonConfig(), {
|
694
|
+
data: results.data,
|
695
|
+
meta: results.meta,
|
696
|
+
warnings: results.warnings,
|
697
|
+
errors: results.errors
|
698
|
+
});
|
699
|
+
} catch (e) {
|
700
|
+
if (e instanceof _core.NotFoundError) {
|
701
|
+
return null;
|
702
|
+
}
|
703
|
+
throw e;
|
704
|
+
}
|
705
|
+
}
|
706
|
+
/**
|
707
|
+
* Configures the session to save a profile when it terminates.
|
708
|
+
* @param profileName - Name of the profile to save
|
709
|
+
* @param requestOptions - Request options
|
710
|
+
*/
|
711
|
+
async saveProfileOnTermination(profileName, requestOptions = {}) {
|
712
|
+
this.log.withMetadata({
|
713
|
+
profileName
|
714
|
+
}).info("Saving profile on termination");
|
715
|
+
await this.client.sessions.saveProfileOnTermination(
|
716
|
+
profileName,
|
717
|
+
{
|
718
|
+
sessionId: this.sessionId
|
719
|
+
},
|
720
|
+
this.resolveRequestOptions(requestOptions)
|
721
|
+
);
|
722
|
+
}
|
723
|
+
/**
|
724
|
+
* Waits for the session to be in a ready state.
|
725
|
+
* @returns The event indicating the session is ready
|
726
|
+
*/
|
727
|
+
async waitForSessionReady() {
|
728
|
+
this.log.info("Waiting for session to be ready");
|
729
|
+
const sessionEvents = await this.client.sessions.getEvents(this.sessionId);
|
730
|
+
for await (const event of sessionEvents) {
|
731
|
+
this.log.withMetadata({
|
732
|
+
event
|
733
|
+
}).info("status message received");
|
734
|
+
const e = event;
|
735
|
+
if (e.event === "status" && e.status === "running") {
|
736
|
+
return event;
|
737
|
+
}
|
738
|
+
}
|
739
|
+
}
|
740
|
+
/**
|
741
|
+
* Terminates the current session.
|
742
|
+
* If the session is already terminated, this method will log a message and return.
|
743
|
+
*/
|
744
|
+
async terminateSession() {
|
745
|
+
this.log.info("Terminating session");
|
746
|
+
await this.client.sessions.terminate(this.sessionId);
|
747
|
+
}
|
748
|
+
/**
|
749
|
+
* Creates a new window in the current session.
|
750
|
+
* @param url - The URL to load in the new window
|
751
|
+
* @param requestOptions - Request options
|
752
|
+
* @returns A new AirtopWindow<AirtopWindowCreateResponse> instance
|
753
|
+
*/
|
754
|
+
async createWindow(url, requestOptions = {}) {
|
755
|
+
this.log.info("Creating window");
|
756
|
+
const results = await this.client.windows.create(
|
757
|
+
this.sessionId,
|
758
|
+
{
|
759
|
+
url
|
760
|
+
},
|
761
|
+
this.resolveRequestOptions(requestOptions)
|
762
|
+
);
|
763
|
+
return new AirtopWindow(this.getCommonConfig(), this.sessionId, results);
|
764
|
+
}
|
765
|
+
/**
|
766
|
+
* Returns a window client instance for making window-based requests for a given window id.
|
767
|
+
*
|
768
|
+
* @param windowId - The session ID to attach to the AirtopWindowClient instance
|
769
|
+
**/
|
770
|
+
withWindowId(windowId) {
|
771
|
+
return new AirtopWindowClient(this.getCommonConfig(), this.sessionId, windowId);
|
772
|
+
}
|
773
|
+
/**
|
774
|
+
* Creates a new file in the current session.
|
775
|
+
* @param fileName - The name of the file to create
|
776
|
+
* @param config - Additional configuration options for creating the file
|
777
|
+
* @param requestOptions - Request options
|
778
|
+
*/
|
779
|
+
createFile(fileName, config = {}, requestOptions = {}) {
|
780
|
+
this.log.info("Creating file");
|
781
|
+
return this.client.files.createFile(
|
782
|
+
{
|
783
|
+
...config,
|
784
|
+
fileName,
|
785
|
+
sessionId: this.sessionId
|
786
|
+
},
|
787
|
+
this.resolveRequestOptions(requestOptions)
|
788
|
+
);
|
789
|
+
}
|
790
|
+
};
|
791
|
+
|
792
|
+
// src/session/AirtopSession.ts
|
793
|
+
var AirtopSession = class extends AirtopSessionClient {
|
794
|
+
/**
|
795
|
+
* The session data containing connection and state information.
|
796
|
+
* Includes details about the browser session and its configuration.
|
797
|
+
*/
|
798
|
+
|
799
|
+
/**
|
800
|
+
* The metadata associated with the session.
|
801
|
+
* Contains information about the request that created the session.
|
802
|
+
*/
|
803
|
+
|
804
|
+
/**
|
805
|
+
* Warnings that occurred during session creation or operation.
|
806
|
+
* These are non-fatal issues that didn't prevent session creation.
|
807
|
+
*/
|
808
|
+
|
809
|
+
/**
|
810
|
+
* Errors that occurred during session creation or operation.
|
811
|
+
* These are fatal issues that prevented session creation.
|
812
|
+
*/
|
813
|
+
|
814
|
+
/**
|
815
|
+
* Creates a new AirtopSession instance.
|
816
|
+
* @param config - Common configuration options for the session
|
817
|
+
* @param sessionData - Browser session data
|
818
|
+
*/
|
819
|
+
constructor(config, sessionData) {
|
820
|
+
super(config, sessionData.data.id);
|
821
|
+
this.meta = sessionData.meta;
|
822
|
+
this.data = sessionData.data;
|
823
|
+
this.warnings = sessionData.warnings;
|
824
|
+
this.errors = sessionData.errors;
|
825
|
+
}
|
826
|
+
/**
|
827
|
+
* Returns response data as a JSON object.
|
828
|
+
*/
|
829
|
+
toJSON() {
|
830
|
+
return {
|
831
|
+
data: this.data,
|
832
|
+
meta: this.meta,
|
833
|
+
warnings: this.warnings,
|
834
|
+
errors: this.errors
|
835
|
+
};
|
836
|
+
}
|
837
|
+
};
|
838
|
+
|
839
|
+
// src/AirtopClient.ts
|
840
|
+
var version = require_package().version;
|
841
|
+
var AirtopClient = class extends AirtopBase {
|
842
|
+
/**
|
843
|
+
* Creates a new instance of the Airtop SDK.
|
844
|
+
* @param config - Configuration options for the Airtop SDK
|
845
|
+
*/
|
846
|
+
constructor(config) {
|
847
|
+
super({
|
848
|
+
logLevel: _optionalChain([config, 'optionalAccess', _9 => _9.logLevel]),
|
849
|
+
client: new (0, _core.Airtop)({
|
850
|
+
maxRetries: 0,
|
851
|
+
timeout: _minutesToMilliseconds.minutesToMilliseconds.call(void 0, 1),
|
852
|
+
apiKey: config.apiKey,
|
853
|
+
baseURL: _optionalChain([config, 'optionalAccess', _10 => _10.airtopUrl]),
|
854
|
+
logLevel: _optionalChain([config, 'optionalAccess', _11 => _11.logLevel]) || "off",
|
855
|
+
defaultHeaders: {
|
856
|
+
"x-airtop-sdk-source": "typescript",
|
857
|
+
"x-airtop-sdk-version": version
|
858
|
+
}
|
859
|
+
}),
|
860
|
+
log: _optionalChain([config, 'optionalAccess', _12 => _12.logger]) || new (0, _loglayer.LogLayer)({
|
861
|
+
errorSerializer: _serializeerror.serializeError,
|
862
|
+
transport: new (0, _loglayer.ConsoleTransport)({
|
863
|
+
logger: console,
|
864
|
+
messageField: "message",
|
865
|
+
enabled: config.logLevel !== "off",
|
866
|
+
level: config.logLevel === "off" ? "error" : config.logLevel || "error"
|
867
|
+
}),
|
868
|
+
contextFieldName: "context",
|
869
|
+
metadataFieldName: "metadata"
|
870
|
+
}),
|
871
|
+
outputSchemaAdapter: config.outputSchemaAdapter
|
872
|
+
});
|
873
|
+
this.log.withPrefix("[Airtop SDK]");
|
874
|
+
this.client.logLevel = config.logLevel;
|
875
|
+
this.client.logger = {
|
876
|
+
debug: (message, ...rest) => {
|
877
|
+
processLogMessage(this.log, "debug", message, rest);
|
878
|
+
},
|
879
|
+
error: (message, ...rest) => {
|
880
|
+
processLogMessage(this.log, "error", message, rest);
|
881
|
+
},
|
882
|
+
info: (message, ...rest) => {
|
883
|
+
processLogMessage(this.log, "info", message, rest);
|
884
|
+
},
|
885
|
+
warn: (message, ...rest) => {
|
886
|
+
processLogMessage(this.log, "warn", message, rest);
|
887
|
+
}
|
888
|
+
};
|
889
|
+
}
|
890
|
+
/**
|
891
|
+
* Creates a new Airtop session.
|
892
|
+
* @param config - Configuration options for the session
|
893
|
+
* @param options - Request options
|
894
|
+
* @returns A new AirtopSession instance
|
895
|
+
*/
|
896
|
+
async createSession(config, options = {}) {
|
897
|
+
const skipWaitSessionReady = _nullishCoalesce(config.skipWaitSessionReady, () => ( false));
|
898
|
+
delete config.skipWaitSessionReady;
|
899
|
+
const sessionResponse = await this.client.sessions.create(
|
900
|
+
{
|
901
|
+
configuration: config
|
902
|
+
},
|
903
|
+
options
|
904
|
+
);
|
905
|
+
const session = new AirtopSession(this.getCommonConfig(), sessionResponse);
|
906
|
+
if (skipWaitSessionReady) {
|
907
|
+
return session;
|
908
|
+
}
|
909
|
+
await session.waitForSessionReady();
|
910
|
+
return session;
|
911
|
+
}
|
912
|
+
/**
|
913
|
+
* Retrieves multiple sessions by their IDs.
|
914
|
+
* @param sessionIds - Array of session IDs to retrieve
|
915
|
+
* @param config - Configuration options for the request
|
916
|
+
* @param requestOptions - Request options
|
917
|
+
* @returns Object containing pagination info and array of AirtopSession instances
|
918
|
+
*/
|
919
|
+
async getSessions(sessionIds, config, requestOptions = {}) {
|
920
|
+
const sessions = await this.client.sessions.list(
|
921
|
+
{
|
922
|
+
sessionIds,
|
923
|
+
limit: config.limit,
|
924
|
+
offset: config.offset,
|
925
|
+
status: config.status
|
926
|
+
},
|
927
|
+
this.resolveRequestOptions(requestOptions)
|
928
|
+
);
|
929
|
+
return {
|
930
|
+
pagination: sessions.data.pagination,
|
931
|
+
sessions: sessions.data.sessions.map(
|
932
|
+
(session) => new AirtopSession(this.getCommonConfig(), {
|
933
|
+
data: session
|
934
|
+
})
|
935
|
+
),
|
936
|
+
errors: sessions.errors,
|
937
|
+
meta: sessions.meta,
|
938
|
+
warnings: sessions.warnings
|
939
|
+
};
|
940
|
+
}
|
941
|
+
/**
|
942
|
+
* Removes one or more profiles.
|
943
|
+
* @param profileNames - Name(s) of the profile(s) to remove
|
944
|
+
* @param requestOptions - Request options
|
945
|
+
*/
|
946
|
+
async removeProfile(profileNames, requestOptions = {}) {
|
947
|
+
await this.client.profile.delete(
|
948
|
+
{
|
949
|
+
profileNames: Array.isArray(profileNames) ? profileNames : [profileNames]
|
950
|
+
},
|
951
|
+
this.resolveRequestOptions(requestOptions)
|
952
|
+
);
|
953
|
+
}
|
954
|
+
/**
|
955
|
+
* Retrieves a profile by name.
|
956
|
+
* @param profileName - Name of the profile to retrieve
|
957
|
+
* @param requestOptions - Request options
|
958
|
+
* @returns The profile
|
959
|
+
*/
|
960
|
+
async getProfile(profileName, requestOptions = {}) {
|
961
|
+
return this.client.profile.get(profileName, this.resolveRequestOptions(requestOptions));
|
962
|
+
}
|
963
|
+
/**
|
964
|
+
* Renames a profile.
|
965
|
+
* @param sourceName - Current name of the profile
|
966
|
+
* @param targetName - New name for the profile
|
967
|
+
* @param requestOptions - Request options
|
968
|
+
*/
|
969
|
+
async renameProfile(sourceName, targetName, requestOptions = {}) {
|
970
|
+
return this.client.profile.rename(
|
971
|
+
{
|
972
|
+
source: sourceName,
|
973
|
+
target: targetName
|
974
|
+
},
|
975
|
+
this.resolveRequestOptions(requestOptions)
|
976
|
+
);
|
977
|
+
}
|
978
|
+
/**
|
979
|
+
* Returns a session client instance for making session-based requests for a given session id.
|
980
|
+
*
|
981
|
+
* @param sessionId - The session ID to attach to the AirtopSessionClient instance
|
982
|
+
**/
|
983
|
+
withSessionId(sessionId) {
|
984
|
+
return new AirtopSessionClient(this.getCommonConfig(), sessionId);
|
985
|
+
}
|
986
|
+
/**
|
987
|
+
* Retrieves the status of a request.
|
988
|
+
* @param requestId - ID of the request to check
|
989
|
+
* @param requestOptions - Request options
|
990
|
+
* @returns Status of the request
|
991
|
+
*/
|
992
|
+
async getRequestStatus(requestId, requestOptions = {}) {
|
993
|
+
this.log.withMetadata({
|
994
|
+
requestId
|
995
|
+
}).info("Getting request status");
|
996
|
+
return this.client.requests.getRequestStatus(requestId, this.resolveRequestOptions(requestOptions));
|
997
|
+
}
|
998
|
+
/**
|
999
|
+
* Gets a file by ID.
|
1000
|
+
* @param fileId
|
1001
|
+
* @param requestOptions
|
1002
|
+
*/
|
1003
|
+
async getFile(fileId, requestOptions = {}) {
|
1004
|
+
return this.client.files.get(fileId, this.resolveRequestOptions(requestOptions));
|
1005
|
+
}
|
1006
|
+
/**
|
1007
|
+
* Lists files filtered by session IDs.
|
1008
|
+
* @param sessionIds - Array of session IDs to retrieve files for
|
1009
|
+
* @param config - Configuration options for the request
|
1010
|
+
* @param requestOptions - Request options
|
1011
|
+
* @returns Object containing pagination info and array of AirtopSession instances
|
1012
|
+
*/
|
1013
|
+
async listFiles(sessionIds, config, requestOptions = {}) {
|
1014
|
+
return this.client.files.list(
|
1015
|
+
{
|
1016
|
+
sessionIds,
|
1017
|
+
limit: config.limit,
|
1018
|
+
offset: config.offset
|
1019
|
+
},
|
1020
|
+
this.resolveRequestOptions(requestOptions)
|
1021
|
+
);
|
1022
|
+
}
|
1023
|
+
/**
|
1024
|
+
* Removes a file by ID.
|
1025
|
+
* @param fileId - ID of the file to remove
|
1026
|
+
* @param requestOptions - Request options
|
1027
|
+
*/
|
1028
|
+
async removeFile(fileId, requestOptions = {}) {
|
1029
|
+
return this.client.files.delete(fileId, this.resolveRequestOptions(requestOptions));
|
1030
|
+
}
|
1031
|
+
/**
|
1032
|
+
* List all automations
|
1033
|
+
* @param requestOptions - Request options
|
1034
|
+
*/
|
1035
|
+
listAutomations(requestOptions = {}) {
|
1036
|
+
return this.client.automations.list(this.resolveRequestOptions(requestOptions));
|
1037
|
+
}
|
1038
|
+
/**
|
1039
|
+
* Update the description of a specific automation
|
1040
|
+
* @param body - Request body
|
1041
|
+
* @param requestOptions - Request options
|
1042
|
+
*/
|
1043
|
+
updateAutomationDescription(body, requestOptions = {}) {
|
1044
|
+
return this.client.automations.updateDescription(body, this.resolveRequestOptions(requestOptions));
|
1045
|
+
}
|
1046
|
+
/**
|
1047
|
+
* Delete a specific automation
|
1048
|
+
* @param automationID - ID of the automation to delete
|
1049
|
+
* @param requestOptions - Request options
|
1050
|
+
*/
|
1051
|
+
removeAutomation(automationID, requestOptions = {}) {
|
1052
|
+
return this.client.automations.delete(automationID, this.resolveRequestOptions(requestOptions));
|
1053
|
+
}
|
1054
|
+
};
|
1055
|
+
|
1056
|
+
// src/plugin/AirtopPlugin.types.ts
|
1057
|
+
var AirtopPluginAugmentationType = /* @__PURE__ */ ((AirtopPluginAugmentationType2) => {
|
1058
|
+
AirtopPluginAugmentationType2["AirtopClient"] = "AirtopClient";
|
1059
|
+
AirtopPluginAugmentationType2["AirtopWindowClient"] = "AirtopWindowClient";
|
1060
|
+
AirtopPluginAugmentationType2["AirtopWindow"] = "AirtopWindow";
|
1061
|
+
AirtopPluginAugmentationType2["AirtopSessionClient"] = "AirtopSessionClient";
|
1062
|
+
AirtopPluginAugmentationType2["AirtopSession"] = "AirtopSession";
|
1063
|
+
AirtopPluginAugmentationType2["AirtopWindowScreenshot"] = "AirtopWindowScreenshot";
|
1064
|
+
return AirtopPluginAugmentationType2;
|
1065
|
+
})(AirtopPluginAugmentationType || {});
|
1066
|
+
|
1067
|
+
// src/plugin/AirtopPlugin.ts
|
1068
|
+
function registerAirtopPlugin(plugin) {
|
1069
|
+
for (const pluginToAdd of plugin.pluginsToAdd) {
|
1070
|
+
switch (pluginToAdd.augmentationType) {
|
1071
|
+
case "AirtopClient" /* AirtopClient */:
|
1072
|
+
pluginToAdd.augment(AirtopClient.prototype);
|
1073
|
+
break;
|
1074
|
+
case "AirtopSessionClient" /* AirtopSessionClient */:
|
1075
|
+
pluginToAdd.augment(AirtopSessionClient.prototype);
|
1076
|
+
break;
|
1077
|
+
case "AirtopSession" /* AirtopSession */:
|
1078
|
+
pluginToAdd.augment(AirtopSession.prototype);
|
1079
|
+
break;
|
1080
|
+
case "AirtopWindowClient" /* AirtopWindowClient */:
|
1081
|
+
pluginToAdd.augment(AirtopWindowClient.prototype);
|
1082
|
+
break;
|
1083
|
+
case "AirtopWindow" /* AirtopWindow */:
|
1084
|
+
pluginToAdd.augment(AirtopWindow.prototype);
|
1085
|
+
break;
|
1086
|
+
case "AirtopWindowScreenshot" /* AirtopWindowScreenshot */:
|
1087
|
+
pluginToAdd.augment(AirtopWindowScreenshot.prototype);
|
1088
|
+
break;
|
1089
|
+
}
|
1090
|
+
}
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
// src/AirtopMocks.ts
|
1094
|
+
|
1095
|
+
|
1096
|
+
var _uuid = require('uuid');
|
1097
|
+
function createNoOpClient(client) {
|
1098
|
+
return new Proxy(client, {
|
1099
|
+
get(target, prop) {
|
1100
|
+
const value = Reflect.get(target, prop);
|
1101
|
+
if (typeof value === "function") {
|
1102
|
+
return async () => ({
|
1103
|
+
data: {},
|
1104
|
+
meta: {},
|
1105
|
+
warnings: [],
|
1106
|
+
errors: []
|
1107
|
+
});
|
1108
|
+
}
|
1109
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
1110
|
+
return createNoOpClient(value);
|
1111
|
+
}
|
1112
|
+
return value;
|
1113
|
+
}
|
1114
|
+
});
|
1115
|
+
}
|
1116
|
+
function generateCommonAirtopConfigMock() {
|
1117
|
+
const client = new (0, _core.Airtop)({
|
1118
|
+
apiKey: "test-api-key"
|
1119
|
+
});
|
1120
|
+
return {
|
1121
|
+
log: new (0, _loglayer.MockLogLayer)(),
|
1122
|
+
client: createNoOpClient(client)
|
1123
|
+
};
|
1124
|
+
}
|
1125
|
+
var AirtopMocks = class {
|
1126
|
+
/**
|
1127
|
+
* Creates an AirtopBase instance (the class used as the base for other Airtop classes) with a mock client and logger.
|
1128
|
+
*/
|
1129
|
+
static getAirtopBaseMock(config = {}) {
|
1130
|
+
return new AirtopBase({
|
1131
|
+
...generateCommonAirtopConfigMock(),
|
1132
|
+
...config
|
1133
|
+
});
|
1134
|
+
}
|
1135
|
+
/**
|
1136
|
+
* Creates an Airtop instance with a mock client and data.
|
1137
|
+
*/
|
1138
|
+
static getAirtopClientMock(config = {}) {
|
1139
|
+
const client = new AirtopClient({
|
1140
|
+
apiKey: "test-api-key",
|
1141
|
+
...config
|
1142
|
+
});
|
1143
|
+
const mocks = generateCommonAirtopConfigMock();
|
1144
|
+
client["log"] = mocks.log;
|
1145
|
+
client["client"] = mocks.client;
|
1146
|
+
return client;
|
1147
|
+
}
|
1148
|
+
/**
|
1149
|
+
* Creates an AirtopSession instance with a mock client and data.
|
1150
|
+
*/
|
1151
|
+
static getAirtopSessionMock(responseData = {}) {
|
1152
|
+
return new AirtopSession(generateCommonAirtopConfigMock(), {
|
1153
|
+
data: {
|
1154
|
+
id: _uuid.v4.call(void 0, ),
|
1155
|
+
configuration: {},
|
1156
|
+
chromedriverUrl: "http://localhost:9515",
|
1157
|
+
status: "active"
|
1158
|
+
},
|
1159
|
+
meta: {},
|
1160
|
+
warnings: [],
|
1161
|
+
...responseData
|
1162
|
+
});
|
1163
|
+
}
|
1164
|
+
/**
|
1165
|
+
* Creates an AirtopWindow instance with a mock client and data.
|
1166
|
+
*/
|
1167
|
+
static getAirtopWindowMock({
|
1168
|
+
sessionId,
|
1169
|
+
windowData
|
1170
|
+
} = {}) {
|
1171
|
+
return new AirtopWindow(generateCommonAirtopConfigMock(), sessionId || _uuid.v4.call(void 0, ), {
|
1172
|
+
data: {
|
1173
|
+
targetId: _uuid.v4.call(void 0, ),
|
1174
|
+
windowId: _uuid.v4.call(void 0, ),
|
1175
|
+
liveViewUrl: "http://localhost:4567"
|
1176
|
+
},
|
1177
|
+
meta: {},
|
1178
|
+
warnings: [],
|
1179
|
+
...windowData || {}
|
1180
|
+
});
|
1181
|
+
}
|
1182
|
+
};
|
1183
|
+
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
|
1194
|
+
exports.AirtopBase = AirtopBase; exports.AirtopClient = AirtopClient; exports.AirtopMocks = AirtopMocks; exports.AirtopPluginAugmentationType = AirtopPluginAugmentationType; exports.AirtopSession = AirtopSession; exports.AirtopSessionClient = AirtopSessionClient; exports.AirtopWindow = AirtopWindow; exports.AirtopWindowClient = AirtopWindowClient; exports.AirtopWindowScreenshot = AirtopWindowScreenshot; exports.registerAirtopPlugin = registerAirtopPlugin;
|
1195
|
+
//# sourceMappingURL=index.cjs.map
|