@airtop/sdk 0.1.36 → 1.0.0-alpha2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -140
- package/dist/index.cjs +1195 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1028 -0
- package/dist/index.d.ts +1028 -7
- package/dist/index.js +1193 -49
- package/dist/index.js.map +1 -0
- package/package.json +71 -71
- package/Client.d.ts +0 -43
- package/Client.js +0 -37
- package/api/errors/ForbiddenError.d.ts +0 -8
- package/api/errors/ForbiddenError.js +0 -51
- package/api/errors/InternalServerError.d.ts +0 -8
- package/api/errors/InternalServerError.js +0 -51
- package/api/errors/NotFoundError.d.ts +0 -8
- package/api/errors/NotFoundError.js +0 -51
- package/api/errors/UnauthorizedError.d.ts +0 -8
- package/api/errors/UnauthorizedError.js +0 -51
- package/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/api/errors/UnprocessableEntityError.js +0 -51
- package/api/errors/index.d.ts +0 -5
- package/api/errors/index.js +0 -21
- package/api/index.d.ts +0 -3
- package/api/index.js +0 -19
- package/api/resources/automations/client/Client.d.ts +0 -91
- package/api/resources/automations/client/Client.js +0 -429
- package/api/resources/automations/client/index.d.ts +0 -1
- package/api/resources/automations/client/index.js +0 -17
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
- package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
- package/api/resources/automations/client/requests/index.d.ts +0 -1
- package/api/resources/automations/client/requests/index.js +0 -2
- package/api/resources/automations/index.d.ts +0 -1
- package/api/resources/automations/index.js +0 -17
- package/api/resources/index.d.ts +0 -11
- package/api/resources/index.js +0 -50
- package/api/resources/profiles/client/Client.d.ts +0 -40
- package/api/resources/profiles/client/Client.js +0 -131
- package/api/resources/profiles/client/index.d.ts +0 -1
- package/api/resources/profiles/client/index.js +0 -17
- package/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +0 -17
- package/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +0 -5
- package/api/resources/profiles/client/requests/index.d.ts +0 -1
- package/api/resources/profiles/client/requests/index.js +0 -2
- package/api/resources/profiles/index.d.ts +0 -1
- package/api/resources/profiles/index.js +0 -17
- package/api/resources/requests/client/Client.d.ts +0 -38
- package/api/resources/requests/client/Client.js +0 -117
- package/api/resources/requests/client/index.d.ts +0 -1
- package/api/resources/requests/client/index.js +0 -2
- package/api/resources/requests/index.d.ts +0 -1
- package/api/resources/requests/index.js +0 -17
- package/api/resources/sessions/client/Client.d.ts +0 -92
- package/api/resources/sessions/client/Client.js +0 -494
- package/api/resources/sessions/client/index.d.ts +0 -1
- package/api/resources/sessions/client/index.js +0 -17
- package/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -12
- package/api/resources/sessions/client/requests/SessionRestInputV1.js +0 -5
- package/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +0 -20
- package/api/resources/sessions/client/requests/SessionsEventsRequest.js +0 -5
- package/api/resources/sessions/client/requests/SessionsListRequest.d.ts +0 -29
- package/api/resources/sessions/client/requests/SessionsListRequest.js +0 -5
- package/api/resources/sessions/client/requests/index.d.ts +0 -3
- package/api/resources/sessions/client/requests/index.js +0 -2
- package/api/resources/sessions/index.d.ts +0 -2
- package/api/resources/sessions/index.js +0 -18
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -22
- package/api/resources/sessions/types/SessionsEventsResponse.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseError.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseStatus.js +0 -5
- package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -11
- package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -5
- package/api/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -16
- package/api/resources/sessions/types/SessionsListRequestStatus.js +0 -15
- package/api/resources/sessions/types/index.d.ts +0 -6
- package/api/resources/sessions/types/index.js +0 -22
- package/api/resources/windows/client/Client.d.ts +0 -302
- package/api/resources/windows/client/Client.js +0 -1264
- package/api/resources/windows/client/index.d.ts +0 -1
- package/api/resources/windows/client/index.js +0 -17
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
- package/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/AsyncFillFormRequest.js +0 -5
- package/api/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/CreateFormFillerRequest.js +0 -5
- package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -18
- package/api/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -5
- package/api/resources/windows/client/requests/FillFormRequest.d.ts +0 -27
- package/api/resources/windows/client/requests/FillFormRequest.js +0 -5
- package/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +0 -23
- package/api/resources/windows/client/requests/GetWindowInfoRequest.js +0 -5
- package/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -18
- package/api/resources/windows/client/requests/ScrapeContentRequest.js +0 -5
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -27
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -25
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -25
- package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -25
- package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -21
- package/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -29
- package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -23
- package/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -35
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -5
- package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -18
- package/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -5
- package/api/resources/windows/client/requests/index.d.ts +0 -18
- package/api/resources/windows/client/requests/index.js +0 -2
- package/api/resources/windows/index.d.ts +0 -2
- package/api/resources/windows/index.js +0 -18
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -13
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -12
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -13
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -12
- package/api/resources/windows/types/index.d.ts +0 -2
- package/api/resources/windows/types/index.js +0 -18
- package/api/types/AiPromptResponse.d.ts +0 -10
- package/api/types/AiPromptResponse.js +0 -5
- package/api/types/AiResponseEnvelope.d.ts +0 -6
- package/api/types/AiResponseEnvelope.js +0 -5
- package/api/types/AirtopProxyConfiguration.d.ts +0 -9
- package/api/types/AirtopProxyConfiguration.js +0 -5
- package/api/types/AsyncConfig.d.ts +0 -7
- package/api/types/AsyncConfig.js +0 -5
- package/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
- package/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
- package/api/types/AutomationOutput.d.ts +0 -10
- package/api/types/AutomationOutput.js +0 -5
- package/api/types/BrowserWaitNavigationConfig.d.ts +0 -10
- package/api/types/BrowserWaitNavigationConfig.js +0 -5
- package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -13
- package/api/types/BrowserWaitNavigationConfigWaitUntil.js +0 -12
- package/api/types/ClickConfig.d.ts +0 -14
- package/api/types/ClickConfig.js +0 -5
- package/api/types/ClickConfigClickType.d.ts +0 -12
- package/api/types/ClickConfigClickType.js +0 -11
- package/api/types/ClientProvidedResponseMetadata.d.ts +0 -6
- package/api/types/ClientProvidedResponseMetadata.js +0 -5
- package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
- package/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
- package/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
- package/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
- package/api/types/EnvelopeDefaultMeta.d.ts +0 -6
- package/api/types/EnvelopeDefaultMeta.js +0 -5
- package/api/types/ErrorBody.d.ts +0 -9
- package/api/types/ErrorBody.js +0 -5
- package/api/types/ErrorDetail.d.ts +0 -10
- package/api/types/ErrorDetail.js +0 -5
- package/api/types/ErrorMessage.d.ts +0 -11
- package/api/types/ErrorMessage.js +0 -5
- package/api/types/ErrorModel.d.ts +0 -18
- package/api/types/ErrorModel.js +0 -5
- package/api/types/ExternalSessionAiResponseMetadata.d.ts +0 -13
- package/api/types/ExternalSessionAiResponseMetadata.js +0 -5
- package/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -12
- package/api/types/ExternalSessionAiResponseMetadataStatus.js +0 -11
- package/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -9
- package/api/types/ExternalSessionAiResponseMetadataUsage.js +0 -5
- package/api/types/ExternalSessionConfig.d.ts +0 -11
- package/api/types/ExternalSessionConfig.js +0 -5
- package/api/types/ExternalSessionWithConnectionInfo.d.ts +0 -26
- package/api/types/ExternalSessionWithConnectionInfo.js +0 -5
- package/api/types/IntervalMonitorConfig.d.ts +0 -9
- package/api/types/IntervalMonitorConfig.js +0 -5
- package/api/types/Issue.d.ts +0 -13
- package/api/types/Issue.js +0 -5
- package/api/types/ListAutomationsOutput.d.ts +0 -7
- package/api/types/ListAutomationsOutput.js +0 -5
- package/api/types/MicroInteractionConfig.d.ts +0 -10
- package/api/types/MicroInteractionConfig.js +0 -5
- package/api/types/MicroInteractionConfigWithExperimental.d.ts +0 -12
- package/api/types/MicroInteractionConfigWithExperimental.js +0 -5
- package/api/types/MicroInteractionExperimentalConfig.d.ts +0 -7
- package/api/types/MicroInteractionExperimentalConfig.js +0 -5
- package/api/types/MonitorConfig.d.ts +0 -10
- package/api/types/MonitorConfig.js +0 -5
- package/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -12
- package/api/types/MonitorConfigIncludeVisualAnalysis.js +0 -11
- package/api/types/OperationOutcome.d.ts +0 -7
- package/api/types/OperationOutcome.js +0 -5
- package/api/types/OperationOutcomeResponse.d.ts +0 -10
- package/api/types/OperationOutcomeResponse.js +0 -5
- package/api/types/PageQueryConfig.d.ts +0 -12
- package/api/types/PageQueryConfig.js +0 -5
- package/api/types/PageQueryExperimentalConfig.d.ts +0 -7
- package/api/types/PageQueryExperimentalConfig.js +0 -5
- package/api/types/PaginatedExtractionConfig.d.ts +0 -16
- package/api/types/PaginatedExtractionConfig.js +0 -5
- package/api/types/PaginatedExtractionExperimentalConfig.d.ts +0 -7
- package/api/types/PaginatedExtractionExperimentalConfig.js +0 -5
- package/api/types/Pagination.d.ts +0 -21
- package/api/types/Pagination.js +0 -5
- package/api/types/Proxy.d.ts +0 -14
- package/api/types/Proxy.js +0 -5
- package/api/types/ProxyConfigurationKind.d.ts +0 -9
- package/api/types/ProxyConfigurationKind.js +0 -5
- package/api/types/ProxyCredentials.d.ts +0 -11
- package/api/types/ProxyCredentials.js +0 -5
- package/api/types/RequestStatusResponse.d.ts +0 -8
- package/api/types/RequestStatusResponse.js +0 -5
- package/api/types/ScrapeConfig.d.ts +0 -7
- package/api/types/ScrapeConfig.js +0 -5
- package/api/types/ScrapeResponse.d.ts +0 -10
- package/api/types/ScrapeResponse.js +0 -5
- package/api/types/ScrapeResponseContent.d.ts +0 -9
- package/api/types/ScrapeResponseContent.js +0 -5
- package/api/types/ScrapeResponseEnvelope.d.ts +0 -8
- package/api/types/ScrapeResponseEnvelope.js +0 -5
- package/api/types/ScrapeResponseOutput.d.ts +0 -12
- package/api/types/ScrapeResponseOutput.js +0 -5
- package/api/types/ScreenshotConfig.d.ts +0 -13
- package/api/types/ScreenshotConfig.js +0 -5
- package/api/types/ScreenshotMetadata.d.ts +0 -7
- package/api/types/ScreenshotMetadata.js +0 -5
- package/api/types/ScreenshotRequestConfig.d.ts +0 -8
- package/api/types/ScreenshotRequestConfig.js +0 -5
- package/api/types/ScrollByConfig.d.ts +0 -9
- package/api/types/ScrollByConfig.js +0 -5
- package/api/types/ScrollToEdgeConfig.d.ts +0 -9
- package/api/types/ScrollToEdgeConfig.js +0 -5
- package/api/types/SessionConfigV1.d.ts +0 -18
- package/api/types/SessionConfigV1.js +0 -5
- package/api/types/SessionConfigV1Proxy.d.ts +0 -17
- package/api/types/SessionConfigV1Proxy.js +0 -5
- package/api/types/SessionEventMessage.d.ts +0 -17
- package/api/types/SessionEventMessage.js +0 -5
- package/api/types/SessionPageQueryHandlerRequestBody.d.ts +0 -21
- package/api/types/SessionPageQueryHandlerRequestBody.js +0 -5
- package/api/types/SessionResponse.d.ts +0 -10
- package/api/types/SessionResponse.js +0 -5
- package/api/types/SessionsResponse.d.ts +0 -10
- package/api/types/SessionsResponse.js +0 -5
- package/api/types/SessionsWithPagination.d.ts +0 -10
- package/api/types/SessionsWithPagination.js +0 -5
- package/api/types/StatusMessage.d.ts +0 -16
- package/api/types/StatusMessage.js +0 -5
- package/api/types/StatusMessageStatus.d.ts +0 -15
- package/api/types/StatusMessageStatus.js +0 -14
- package/api/types/SummaryConfig.d.ts +0 -9
- package/api/types/SummaryConfig.js +0 -5
- package/api/types/SummaryExperimentalConfig.d.ts +0 -7
- package/api/types/SummaryExperimentalConfig.js +0 -5
- package/api/types/VisualAnalysisConfig.d.ts +0 -18
- package/api/types/VisualAnalysisConfig.js +0 -5
- package/api/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -12
- package/api/types/VisualAnalysisConfigPartitionDirection.js +0 -11
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -12
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -11
- package/api/types/VisualAnalysisConfigScope.d.ts +0 -13
- package/api/types/VisualAnalysisConfigScope.js +0 -12
- package/api/types/Window.d.ts +0 -11
- package/api/types/Window.js +0 -5
- package/api/types/WindowEventMessage.d.ts +0 -19
- package/api/types/WindowEventMessage.js +0 -5
- package/api/types/WindowId.d.ts +0 -9
- package/api/types/WindowId.js +0 -5
- package/api/types/WindowIdResponse.d.ts +0 -10
- package/api/types/WindowIdResponse.js +0 -5
- package/api/types/WindowResponse.d.ts +0 -10
- package/api/types/WindowResponse.js +0 -5
- package/api/types/index.d.ts +0 -72
- package/api/types/index.js +0 -88
- package/biome.json +0 -69
- package/config/tsconfig-nobase.json +0 -16
- package/core/auth/BasicAuth.d.ts +0 -8
- package/core/auth/BasicAuth.js +0 -26
- package/core/auth/BearerToken.d.ts +0 -5
- package/core/auth/BearerToken.js +0 -15
- package/core/auth/index.d.ts +0 -2
- package/core/auth/index.js +0 -7
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/APIResponse.js +0 -2
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -100
- package/core/fetcher/Supplier.d.ts +0 -4
- package/core/fetcher/Supplier.js +0 -22
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getHeader.d.ts +0 -1
- package/core/fetcher/getHeader.js +0 -11
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/signals.d.ts +0 -11
- package/core/fetcher/signals.js +0 -36
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/index.d.ts +0 -5
- package/core/index.js +0 -44
- package/core/json.d.ts +0 -15
- package/core/json.js +0 -24
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -103
- package/core/schemas/Schema.d.ts +0 -87
- package/core/schemas/Schema.js +0 -24
- package/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/core/schemas/builders/bigint/bigint.js +0 -53
- package/core/schemas/builders/bigint/index.d.ts +0 -1
- package/core/schemas/builders/bigint/index.js +0 -5
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -62
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -38
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -14
- package/core/schemas/builders/index.js +0 -30
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -24
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -54
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -261
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -15
- package/core/schemas/builders/object/types.d.ts +0 -31
- package/core/schemas/builders/object/types.js +0 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/object-like/types.js +0 -2
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -93
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/record/types.js +0 -2
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -43
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -9
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/types.js +0 -2
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -129
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/MaybePromise.js +0 -2
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -6
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -13
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -17
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -6
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -15
- package/core/streaming-fetcher/Stream.d.ts +0 -47
- package/core/streaming-fetcher/Stream.js +0 -169
- package/core/streaming-fetcher/index.d.ts +0 -1
- package/core/streaming-fetcher/index.js +0 -5
- package/dist/Client.d.ts +0 -43
- package/dist/Client.js +0 -37
- package/dist/api/errors/ForbiddenError.d.ts +0 -8
- package/dist/api/errors/ForbiddenError.js +0 -51
- package/dist/api/errors/InternalServerError.d.ts +0 -8
- package/dist/api/errors/InternalServerError.js +0 -51
- package/dist/api/errors/NotFoundError.d.ts +0 -8
- package/dist/api/errors/NotFoundError.js +0 -51
- package/dist/api/errors/UnauthorizedError.d.ts +0 -8
- package/dist/api/errors/UnauthorizedError.js +0 -51
- package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/dist/api/errors/UnprocessableEntityError.js +0 -51
- package/dist/api/errors/index.d.ts +0 -5
- package/dist/api/errors/index.js +0 -21
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -19
- package/dist/api/resources/automations/client/Client.d.ts +0 -91
- package/dist/api/resources/automations/client/Client.js +0 -429
- package/dist/api/resources/automations/client/index.d.ts +0 -1
- package/dist/api/resources/automations/client/index.js +0 -17
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
- package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
- package/dist/api/resources/automations/client/requests/index.d.ts +0 -1
- package/dist/api/resources/automations/client/requests/index.js +0 -2
- package/dist/api/resources/automations/index.d.ts +0 -1
- package/dist/api/resources/automations/index.js +0 -17
- package/dist/api/resources/index.d.ts +0 -11
- package/dist/api/resources/index.js +0 -50
- package/dist/api/resources/profiles/client/Client.d.ts +0 -40
- package/dist/api/resources/profiles/client/Client.js +0 -131
- package/dist/api/resources/profiles/client/index.d.ts +0 -1
- package/dist/api/resources/profiles/client/index.js +0 -17
- package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +0 -17
- package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +0 -5
- package/dist/api/resources/profiles/client/requests/index.d.ts +0 -1
- package/dist/api/resources/profiles/client/requests/index.js +0 -2
- package/dist/api/resources/profiles/index.d.ts +0 -1
- package/dist/api/resources/profiles/index.js +0 -17
- package/dist/api/resources/requests/client/Client.d.ts +0 -38
- package/dist/api/resources/requests/client/Client.js +0 -117
- package/dist/api/resources/requests/client/index.d.ts +0 -1
- package/dist/api/resources/requests/client/index.js +0 -2
- package/dist/api/resources/requests/index.d.ts +0 -1
- package/dist/api/resources/requests/index.js +0 -17
- package/dist/api/resources/sessions/client/Client.d.ts +0 -92
- package/dist/api/resources/sessions/client/Client.js +0 -494
- package/dist/api/resources/sessions/client/index.d.ts +0 -1
- package/dist/api/resources/sessions/client/index.js +0 -17
- package/dist/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -12
- package/dist/api/resources/sessions/client/requests/SessionRestInputV1.js +0 -5
- package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +0 -20
- package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.js +0 -5
- package/dist/api/resources/sessions/client/requests/SessionsListRequest.d.ts +0 -29
- package/dist/api/resources/sessions/client/requests/SessionsListRequest.js +0 -5
- package/dist/api/resources/sessions/client/requests/index.d.ts +0 -3
- package/dist/api/resources/sessions/client/requests/index.js +0 -2
- package/dist/api/resources/sessions/index.d.ts +0 -2
- package/dist/api/resources/sessions/index.js +0 -18
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -22
- package/dist/api/resources/sessions/types/SessionsEventsResponse.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseError.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.js +0 -5
- package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -11
- package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -5
- package/dist/api/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -16
- package/dist/api/resources/sessions/types/SessionsListRequestStatus.js +0 -15
- package/dist/api/resources/sessions/types/index.d.ts +0 -6
- package/dist/api/resources/sessions/types/index.js +0 -22
- package/dist/api/resources/windows/client/Client.d.ts +0 -302
- package/dist/api/resources/windows/client/Client.js +0 -1264
- package/dist/api/resources/windows/client/index.d.ts +0 -1
- package/dist/api/resources/windows/client/index.js +0 -17
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/AsyncFillFormRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/CreateFormFillerRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -5
- package/dist/api/resources/windows/client/requests/FillFormRequest.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/FillFormRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/GetWindowInfoRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/ScrapeContentRequest.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -27
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -25
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -25
- package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -25
- package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -21
- package/dist/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -29
- package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -23
- package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -35
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -5
- package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -5
- package/dist/api/resources/windows/client/requests/index.d.ts +0 -18
- package/dist/api/resources/windows/client/requests/index.js +0 -2
- package/dist/api/resources/windows/index.d.ts +0 -2
- package/dist/api/resources/windows/index.js +0 -18
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -13
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -12
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -13
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -12
- package/dist/api/resources/windows/types/index.d.ts +0 -2
- package/dist/api/resources/windows/types/index.js +0 -18
- package/dist/api/types/AiPromptResponse.d.ts +0 -10
- package/dist/api/types/AiPromptResponse.js +0 -5
- package/dist/api/types/AiResponseEnvelope.d.ts +0 -6
- package/dist/api/types/AiResponseEnvelope.js +0 -5
- package/dist/api/types/AirtopProxyConfiguration.d.ts +0 -9
- package/dist/api/types/AirtopProxyConfiguration.js +0 -5
- package/dist/api/types/AsyncConfig.d.ts +0 -7
- package/dist/api/types/AsyncConfig.js +0 -5
- package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
- package/dist/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
- package/dist/api/types/AutomationOutput.d.ts +0 -10
- package/dist/api/types/AutomationOutput.js +0 -5
- package/dist/api/types/BrowserWaitNavigationConfig.d.ts +0 -10
- package/dist/api/types/BrowserWaitNavigationConfig.js +0 -5
- package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -13
- package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.js +0 -12
- package/dist/api/types/ClickConfig.d.ts +0 -14
- package/dist/api/types/ClickConfig.js +0 -5
- package/dist/api/types/ClickConfigClickType.d.ts +0 -12
- package/dist/api/types/ClickConfigClickType.js +0 -11
- package/dist/api/types/ClientProvidedResponseMetadata.d.ts +0 -6
- package/dist/api/types/ClientProvidedResponseMetadata.js +0 -5
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
- package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
- package/dist/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
- package/dist/api/types/EnvelopeDefaultMeta.d.ts +0 -6
- package/dist/api/types/EnvelopeDefaultMeta.js +0 -5
- package/dist/api/types/ErrorBody.d.ts +0 -9
- package/dist/api/types/ErrorBody.js +0 -5
- package/dist/api/types/ErrorDetail.d.ts +0 -10
- package/dist/api/types/ErrorDetail.js +0 -5
- package/dist/api/types/ErrorMessage.d.ts +0 -11
- package/dist/api/types/ErrorMessage.js +0 -5
- package/dist/api/types/ErrorModel.d.ts +0 -18
- package/dist/api/types/ErrorModel.js +0 -5
- package/dist/api/types/ExternalSessionAiResponseMetadata.d.ts +0 -13
- package/dist/api/types/ExternalSessionAiResponseMetadata.js +0 -5
- package/dist/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -12
- package/dist/api/types/ExternalSessionAiResponseMetadataStatus.js +0 -11
- package/dist/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -9
- package/dist/api/types/ExternalSessionAiResponseMetadataUsage.js +0 -5
- package/dist/api/types/ExternalSessionConfig.d.ts +0 -11
- package/dist/api/types/ExternalSessionConfig.js +0 -5
- package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +0 -26
- package/dist/api/types/ExternalSessionWithConnectionInfo.js +0 -5
- package/dist/api/types/IntervalMonitorConfig.d.ts +0 -9
- package/dist/api/types/IntervalMonitorConfig.js +0 -5
- package/dist/api/types/Issue.d.ts +0 -13
- package/dist/api/types/Issue.js +0 -5
- package/dist/api/types/ListAutomationsOutput.d.ts +0 -7
- package/dist/api/types/ListAutomationsOutput.js +0 -5
- package/dist/api/types/MicroInteractionConfig.d.ts +0 -10
- package/dist/api/types/MicroInteractionConfig.js +0 -5
- package/dist/api/types/MicroInteractionConfigWithExperimental.d.ts +0 -12
- package/dist/api/types/MicroInteractionConfigWithExperimental.js +0 -5
- package/dist/api/types/MicroInteractionExperimentalConfig.d.ts +0 -7
- package/dist/api/types/MicroInteractionExperimentalConfig.js +0 -5
- package/dist/api/types/MonitorConfig.d.ts +0 -10
- package/dist/api/types/MonitorConfig.js +0 -5
- package/dist/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -12
- package/dist/api/types/MonitorConfigIncludeVisualAnalysis.js +0 -11
- package/dist/api/types/OperationOutcome.d.ts +0 -7
- package/dist/api/types/OperationOutcome.js +0 -5
- package/dist/api/types/OperationOutcomeResponse.d.ts +0 -10
- package/dist/api/types/OperationOutcomeResponse.js +0 -5
- package/dist/api/types/PageQueryConfig.d.ts +0 -12
- package/dist/api/types/PageQueryConfig.js +0 -5
- package/dist/api/types/PageQueryExperimentalConfig.d.ts +0 -7
- package/dist/api/types/PageQueryExperimentalConfig.js +0 -5
- package/dist/api/types/PaginatedExtractionConfig.d.ts +0 -16
- package/dist/api/types/PaginatedExtractionConfig.js +0 -5
- package/dist/api/types/PaginatedExtractionExperimentalConfig.d.ts +0 -7
- package/dist/api/types/PaginatedExtractionExperimentalConfig.js +0 -5
- package/dist/api/types/Pagination.d.ts +0 -21
- package/dist/api/types/Pagination.js +0 -5
- package/dist/api/types/Proxy.d.ts +0 -14
- package/dist/api/types/Proxy.js +0 -5
- package/dist/api/types/ProxyConfigurationKind.d.ts +0 -9
- package/dist/api/types/ProxyConfigurationKind.js +0 -5
- package/dist/api/types/ProxyCredentials.d.ts +0 -11
- package/dist/api/types/ProxyCredentials.js +0 -5
- package/dist/api/types/RequestStatusResponse.d.ts +0 -8
- package/dist/api/types/RequestStatusResponse.js +0 -5
- package/dist/api/types/ScrapeConfig.d.ts +0 -7
- package/dist/api/types/ScrapeConfig.js +0 -5
- package/dist/api/types/ScrapeResponse.d.ts +0 -10
- package/dist/api/types/ScrapeResponse.js +0 -5
- package/dist/api/types/ScrapeResponseContent.d.ts +0 -9
- package/dist/api/types/ScrapeResponseContent.js +0 -5
- package/dist/api/types/ScrapeResponseEnvelope.d.ts +0 -8
- package/dist/api/types/ScrapeResponseEnvelope.js +0 -5
- package/dist/api/types/ScrapeResponseOutput.d.ts +0 -12
- package/dist/api/types/ScrapeResponseOutput.js +0 -5
- package/dist/api/types/ScreenshotConfig.d.ts +0 -13
- package/dist/api/types/ScreenshotConfig.js +0 -5
- package/dist/api/types/ScreenshotMetadata.d.ts +0 -7
- package/dist/api/types/ScreenshotMetadata.js +0 -5
- package/dist/api/types/ScreenshotRequestConfig.d.ts +0 -8
- package/dist/api/types/ScreenshotRequestConfig.js +0 -5
- package/dist/api/types/ScrollByConfig.d.ts +0 -9
- package/dist/api/types/ScrollByConfig.js +0 -5
- package/dist/api/types/ScrollToEdgeConfig.d.ts +0 -9
- package/dist/api/types/ScrollToEdgeConfig.js +0 -5
- package/dist/api/types/SessionConfigV1.d.ts +0 -18
- package/dist/api/types/SessionConfigV1.js +0 -5
- package/dist/api/types/SessionConfigV1Proxy.d.ts +0 -17
- package/dist/api/types/SessionConfigV1Proxy.js +0 -5
- package/dist/api/types/SessionEventMessage.d.ts +0 -17
- package/dist/api/types/SessionEventMessage.js +0 -5
- package/dist/api/types/SessionPageQueryHandlerRequestBody.d.ts +0 -21
- package/dist/api/types/SessionPageQueryHandlerRequestBody.js +0 -5
- package/dist/api/types/SessionResponse.d.ts +0 -10
- package/dist/api/types/SessionResponse.js +0 -5
- package/dist/api/types/SessionsResponse.d.ts +0 -10
- package/dist/api/types/SessionsResponse.js +0 -5
- package/dist/api/types/SessionsWithPagination.d.ts +0 -10
- package/dist/api/types/SessionsWithPagination.js +0 -5
- package/dist/api/types/StatusMessage.d.ts +0 -16
- package/dist/api/types/StatusMessage.js +0 -5
- package/dist/api/types/StatusMessageStatus.d.ts +0 -15
- package/dist/api/types/StatusMessageStatus.js +0 -14
- package/dist/api/types/SummaryConfig.d.ts +0 -9
- package/dist/api/types/SummaryConfig.js +0 -5
- package/dist/api/types/SummaryExperimentalConfig.d.ts +0 -7
- package/dist/api/types/SummaryExperimentalConfig.js +0 -5
- package/dist/api/types/VisualAnalysisConfig.d.ts +0 -18
- package/dist/api/types/VisualAnalysisConfig.js +0 -5
- package/dist/api/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -12
- package/dist/api/types/VisualAnalysisConfigPartitionDirection.js +0 -11
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -12
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -11
- package/dist/api/types/VisualAnalysisConfigScope.d.ts +0 -13
- package/dist/api/types/VisualAnalysisConfigScope.js +0 -12
- package/dist/api/types/Window.d.ts +0 -11
- package/dist/api/types/Window.js +0 -5
- package/dist/api/types/WindowEventMessage.d.ts +0 -19
- package/dist/api/types/WindowEventMessage.js +0 -5
- package/dist/api/types/WindowId.d.ts +0 -9
- package/dist/api/types/WindowId.js +0 -5
- package/dist/api/types/WindowIdResponse.d.ts +0 -10
- package/dist/api/types/WindowIdResponse.js +0 -5
- package/dist/api/types/WindowResponse.d.ts +0 -10
- package/dist/api/types/WindowResponse.js +0 -5
- package/dist/api/types/index.d.ts +0 -72
- package/dist/api/types/index.js +0 -88
- package/dist/core/auth/BasicAuth.d.ts +0 -8
- package/dist/core/auth/BasicAuth.js +0 -26
- package/dist/core/auth/BearerToken.d.ts +0 -5
- package/dist/core/auth/BearerToken.js +0 -15
- package/dist/core/auth/index.d.ts +0 -2
- package/dist/core/auth/index.js +0 -7
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -100
- package/dist/core/fetcher/Supplier.d.ts +0 -4
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getHeader.d.ts +0 -1
- package/dist/core/fetcher/getHeader.js +0 -11
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.d.ts +0 -11
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.js +0 -44
- package/dist/core/json.d.ts +0 -15
- package/dist/core/json.js +0 -24
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -103
- package/dist/core/schemas/Schema.d.ts +0 -87
- package/dist/core/schemas/Schema.js +0 -24
- package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/dist/core/schemas/builders/bigint/bigint.js +0 -53
- package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
- package/dist/core/schemas/builders/bigint/index.js +0 -5
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -62
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -38
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -14
- package/dist/core/schemas/builders/index.js +0 -30
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -24
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -54
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -261
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -15
- package/dist/core/schemas/builders/object/types.d.ts +0 -31
- package/dist/core/schemas/builders/object/types.js +0 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/object-like/types.js +0 -2
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -93
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/record/types.js +0 -2
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -43
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -9
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/types.js +0 -2
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -129
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/MaybePromise.js +0 -2
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -6
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -13
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -17
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -6
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -15
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -47
- package/dist/core/streaming-fetcher/Stream.js +0 -169
- package/dist/core/streaming-fetcher/index.d.ts +0 -1
- package/dist/core/streaming-fetcher/index.js +0 -5
- package/dist/environments.d.ts +0 -7
- package/dist/environments.js +0 -9
- package/dist/errors/AirtopError.d.ts +0 -12
- package/dist/errors/AirtopError.js +0 -33
- package/dist/errors/AirtopTimeoutError.d.ts +0 -6
- package/dist/errors/AirtopTimeoutError.js +0 -13
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/live-view/types.d.ts +0 -24
- package/dist/live-view/types.js +0 -16
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -18
- package/dist/serialization/resources/automations/client/index.d.ts +0 -1
- package/dist/serialization/resources/automations/client/index.js +0 -17
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -45
- package/dist/serialization/resources/automations/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/automations/client/requests/index.js +0 -5
- package/dist/serialization/resources/automations/index.d.ts +0 -1
- package/dist/serialization/resources/automations/index.js +0 -17
- package/dist/serialization/resources/index.d.ts +0 -8
- package/dist/serialization/resources/index.js +0 -47
- package/dist/serialization/resources/sessions/client/index.d.ts +0 -1
- package/dist/serialization/resources/sessions/client/index.js +0 -17
- package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -13
- package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -44
- package/dist/serialization/resources/sessions/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/sessions/client/requests/index.js +0 -5
- package/dist/serialization/resources/sessions/index.d.ts +0 -2
- package/dist/serialization/resources/sessions/index.js +0 -18
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -26
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -55
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -15
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -46
- package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -10
- package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.js +0 -41
- package/dist/serialization/resources/sessions/types/index.d.ts +0 -6
- package/dist/serialization/resources/sessions/types/index.js +0 -22
- package/dist/serialization/resources/windows/client/index.d.ts +0 -1
- package/dist/serialization/resources/windows/client/index.js +0 -17
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/AsyncFillFormRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/CreateFormFillerRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -16
- package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -47
- package/dist/serialization/resources/windows/client/requests/FillFormRequest.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/FillFormRequest.js +0 -49
- package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -14
- package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.js +0 -45
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -18
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -49
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -16
- package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -47
- package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -22
- package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -53
- package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -48
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -22
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -53
- package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -15
- package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -46
- package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -17
- package/dist/serialization/resources/windows/client/requests/index.js +0 -37
- package/dist/serialization/resources/windows/index.d.ts +0 -2
- package/dist/serialization/resources/windows/index.js +0 -18
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -10
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -41
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -10
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -41
- package/dist/serialization/resources/windows/types/index.d.ts +0 -2
- package/dist/serialization/resources/windows/types/index.js +0 -18
- package/dist/serialization/types/AiPromptResponse.d.ts +0 -18
- package/dist/serialization/types/AiPromptResponse.js +0 -49
- package/dist/serialization/types/AiResponseEnvelope.d.ts +0 -12
- package/dist/serialization/types/AiResponseEnvelope.js +0 -43
- package/dist/serialization/types/AirtopProxyConfiguration.d.ts +0 -13
- package/dist/serialization/types/AirtopProxyConfiguration.js +0 -44
- package/dist/serialization/types/AsyncConfig.d.ts +0 -12
- package/dist/serialization/types/AsyncConfig.js +0 -43
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -46
- package/dist/serialization/types/AutomationOutput.d.ts +0 -16
- package/dist/serialization/types/AutomationOutput.js +0 -47
- package/dist/serialization/types/BrowserWaitNavigationConfig.d.ts +0 -14
- package/dist/serialization/types/BrowserWaitNavigationConfig.js +0 -45
- package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -10
- package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +0 -41
- package/dist/serialization/types/ClickConfig.d.ts +0 -19
- package/dist/serialization/types/ClickConfig.js +0 -50
- package/dist/serialization/types/ClickConfigClickType.d.ts +0 -10
- package/dist/serialization/types/ClickConfigClickType.js +0 -41
- package/dist/serialization/types/ClientProvidedResponseMetadata.d.ts +0 -12
- package/dist/serialization/types/ClientProvidedResponseMetadata.js +0 -43
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -41
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -41
- package/dist/serialization/types/EnvelopeDefaultMeta.d.ts +0 -12
- package/dist/serialization/types/EnvelopeDefaultMeta.js +0 -43
- package/dist/serialization/types/ErrorBody.d.ts +0 -13
- package/dist/serialization/types/ErrorBody.js +0 -44
- package/dist/serialization/types/ErrorDetail.d.ts +0 -14
- package/dist/serialization/types/ErrorDetail.js +0 -45
- package/dist/serialization/types/ErrorMessage.d.ts +0 -14
- package/dist/serialization/types/ErrorMessage.js +0 -45
- package/dist/serialization/types/ErrorModel.d.ts +0 -18
- package/dist/serialization/types/ErrorModel.js +0 -49
- package/dist/serialization/types/ExternalSessionAiResponseMetadata.d.ts +0 -20
- package/dist/serialization/types/ExternalSessionAiResponseMetadata.js +0 -51
- package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -10
- package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.js +0 -41
- package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -13
- package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.js +0 -44
- package/dist/serialization/types/ExternalSessionConfig.d.ts +0 -14
- package/dist/serialization/types/ExternalSessionConfig.js +0 -45
- package/dist/serialization/types/ExternalSessionWithConnectionInfo.d.ts +0 -22
- package/dist/serialization/types/ExternalSessionWithConnectionInfo.js +0 -53
- package/dist/serialization/types/IntervalMonitorConfig.d.ts +0 -13
- package/dist/serialization/types/IntervalMonitorConfig.js +0 -44
- package/dist/serialization/types/Issue.d.ts +0 -15
- package/dist/serialization/types/Issue.js +0 -46
- package/dist/serialization/types/ListAutomationsOutput.d.ts +0 -13
- package/dist/serialization/types/ListAutomationsOutput.js +0 -44
- package/dist/serialization/types/MicroInteractionConfig.d.ts +0 -15
- package/dist/serialization/types/MicroInteractionConfig.js +0 -46
- package/dist/serialization/types/MicroInteractionConfigWithExperimental.d.ts +0 -17
- package/dist/serialization/types/MicroInteractionConfigWithExperimental.js +0 -48
- package/dist/serialization/types/MicroInteractionExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/MicroInteractionExperimentalConfig.js +0 -43
- package/dist/serialization/types/MonitorConfig.d.ts +0 -15
- package/dist/serialization/types/MonitorConfig.js +0 -46
- package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -10
- package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.js +0 -41
- package/dist/serialization/types/OperationOutcome.d.ts +0 -12
- package/dist/serialization/types/OperationOutcome.js +0 -43
- package/dist/serialization/types/OperationOutcomeResponse.d.ts +0 -18
- package/dist/serialization/types/OperationOutcomeResponse.js +0 -49
- package/dist/serialization/types/PageQueryConfig.d.ts +0 -16
- package/dist/serialization/types/PageQueryConfig.js +0 -47
- package/dist/serialization/types/PageQueryExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/PageQueryExperimentalConfig.js +0 -43
- package/dist/serialization/types/PaginatedExtractionConfig.d.ts +0 -18
- package/dist/serialization/types/PaginatedExtractionConfig.js +0 -49
- package/dist/serialization/types/PaginatedExtractionExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/PaginatedExtractionExperimentalConfig.js +0 -43
- package/dist/serialization/types/Pagination.d.ts +0 -19
- package/dist/serialization/types/Pagination.js +0 -50
- package/dist/serialization/types/Proxy.d.ts +0 -12
- package/dist/serialization/types/Proxy.js +0 -43
- package/dist/serialization/types/ProxyConfigurationKind.d.ts +0 -14
- package/dist/serialization/types/ProxyConfigurationKind.js +0 -45
- package/dist/serialization/types/ProxyCredentials.d.ts +0 -14
- package/dist/serialization/types/ProxyCredentials.js +0 -45
- package/dist/serialization/types/RequestStatusResponse.d.ts +0 -13
- package/dist/serialization/types/RequestStatusResponse.js +0 -44
- package/dist/serialization/types/ScrapeConfig.d.ts +0 -12
- package/dist/serialization/types/ScrapeConfig.js +0 -43
- package/dist/serialization/types/ScrapeResponse.d.ts +0 -18
- package/dist/serialization/types/ScrapeResponse.js +0 -49
- package/dist/serialization/types/ScrapeResponseContent.d.ts +0 -13
- package/dist/serialization/types/ScrapeResponseContent.js +0 -44
- package/dist/serialization/types/ScrapeResponseEnvelope.d.ts +0 -13
- package/dist/serialization/types/ScrapeResponseEnvelope.js +0 -44
- package/dist/serialization/types/ScrapeResponseOutput.d.ts +0 -15
- package/dist/serialization/types/ScrapeResponseOutput.js +0 -46
- package/dist/serialization/types/ScreenshotConfig.d.ts +0 -15
- package/dist/serialization/types/ScreenshotConfig.js +0 -46
- package/dist/serialization/types/ScreenshotMetadata.d.ts +0 -12
- package/dist/serialization/types/ScreenshotMetadata.js +0 -43
- package/dist/serialization/types/ScreenshotRequestConfig.d.ts +0 -13
- package/dist/serialization/types/ScreenshotRequestConfig.js +0 -44
- package/dist/serialization/types/ScrollByConfig.d.ts +0 -13
- package/dist/serialization/types/ScrollByConfig.js +0 -44
- package/dist/serialization/types/ScrollToEdgeConfig.d.ts +0 -13
- package/dist/serialization/types/ScrollToEdgeConfig.js +0 -44
- package/dist/serialization/types/SessionConfigV1.d.ts +0 -18
- package/dist/serialization/types/SessionConfigV1.js +0 -49
- package/dist/serialization/types/SessionConfigV1Proxy.d.ts +0 -12
- package/dist/serialization/types/SessionConfigV1Proxy.js +0 -47
- package/dist/serialization/types/SessionEventMessage.d.ts +0 -18
- package/dist/serialization/types/SessionEventMessage.js +0 -49
- package/dist/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +0 -18
- package/dist/serialization/types/SessionPageQueryHandlerRequestBody.js +0 -49
- package/dist/serialization/types/SessionResponse.d.ts +0 -18
- package/dist/serialization/types/SessionResponse.js +0 -49
- package/dist/serialization/types/SessionsResponse.d.ts +0 -18
- package/dist/serialization/types/SessionsResponse.js +0 -49
- package/dist/serialization/types/SessionsWithPagination.d.ts +0 -15
- package/dist/serialization/types/SessionsWithPagination.js +0 -46
- package/dist/serialization/types/StatusMessage.d.ts +0 -17
- package/dist/serialization/types/StatusMessage.js +0 -48
- package/dist/serialization/types/StatusMessageStatus.d.ts +0 -10
- package/dist/serialization/types/StatusMessageStatus.js +0 -41
- package/dist/serialization/types/SummaryConfig.d.ts +0 -14
- package/dist/serialization/types/SummaryConfig.js +0 -45
- package/dist/serialization/types/SummaryExperimentalConfig.d.ts +0 -12
- package/dist/serialization/types/SummaryExperimentalConfig.js +0 -43
- package/dist/serialization/types/VisualAnalysisConfig.d.ts +0 -20
- package/dist/serialization/types/VisualAnalysisConfig.js +0 -51
- package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -10
- package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.js +0 -41
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -10
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -41
- package/dist/serialization/types/VisualAnalysisConfigScope.d.ts +0 -10
- package/dist/serialization/types/VisualAnalysisConfigScope.js +0 -41
- package/dist/serialization/types/Window.d.ts +0 -14
- package/dist/serialization/types/Window.js +0 -45
- package/dist/serialization/types/WindowEventMessage.d.ts +0 -19
- package/dist/serialization/types/WindowEventMessage.js +0 -50
- package/dist/serialization/types/WindowId.d.ts +0 -13
- package/dist/serialization/types/WindowId.js +0 -44
- package/dist/serialization/types/WindowIdResponse.d.ts +0 -18
- package/dist/serialization/types/WindowIdResponse.js +0 -49
- package/dist/serialization/types/WindowResponse.d.ts +0 -18
- package/dist/serialization/types/WindowResponse.js +0 -49
- package/dist/serialization/types/index.d.ts +0 -72
- package/dist/serialization/types/index.js +0 -88
- package/dist/utils/batch-operate/SessionQueue.d.ts +0 -45
- package/dist/utils/batch-operate/SessionQueue.js +0 -222
- package/dist/utils/batch-operate/WindowQueue.d.ts +0 -24
- package/dist/utils/batch-operate/WindowQueue.js +0 -213
- package/dist/utils/batch-operate/batch-util.d.ts +0 -3
- package/dist/utils/batch-operate/batch-util.js +0 -49
- package/dist/utils/batch-operate/helpers.d.ts +0 -2
- package/dist/utils/batch-operate/helpers.js +0 -19
- package/dist/utils/batch-operate/types.d.ts +0 -29
- package/dist/utils/batch-operate/types.js +0 -2
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.js +0 -19
- package/dist/utils/process-screenshots.d.ts +0 -9
- package/dist/utils/process-screenshots.js +0 -58
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/wrapper/AirtopClient.d.ts +0 -29
- package/dist/wrapper/AirtopClient.js +0 -104
- package/dist/wrapper/AirtopRequests.d.ts +0 -18
- package/dist/wrapper/AirtopRequests.js +0 -48
- package/dist/wrapper/AirtopSessions.d.ts +0 -24
- package/dist/wrapper/AirtopSessions.js +0 -96
- package/dist/wrapper/AirtopWindows.d.ts +0 -180
- package/dist/wrapper/AirtopWindows.js +0 -333
- package/environments.d.ts +0 -7
- package/environments.js +0 -9
- package/errors/AirtopError.d.ts +0 -12
- package/errors/AirtopError.js +0 -33
- package/errors/AirtopTimeoutError.d.ts +0 -6
- package/errors/AirtopTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/index.d.ts +0 -7
- package/index.js +0 -51
- package/jest.config.mjs +0 -8
- package/lefthook.yml +0 -23
- package/live-view/types.d.ts +0 -24
- package/live-view/types.js +0 -16
- package/reference.md +0 -2409
- package/scripts/rename-to-esm-files.js +0 -115
- package/serialization/index.d.ts +0 -2
- package/serialization/index.js +0 -18
- package/serialization/resources/automations/client/index.d.ts +0 -1
- package/serialization/resources/automations/client/index.js +0 -17
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -45
- package/serialization/resources/automations/client/requests/index.d.ts +0 -1
- package/serialization/resources/automations/client/requests/index.js +0 -5
- package/serialization/resources/automations/index.d.ts +0 -1
- package/serialization/resources/automations/index.js +0 -17
- package/serialization/resources/index.d.ts +0 -8
- package/serialization/resources/index.js +0 -47
- package/serialization/resources/sessions/client/index.d.ts +0 -1
- package/serialization/resources/sessions/client/index.js +0 -17
- package/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -13
- package/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -44
- package/serialization/resources/sessions/client/requests/index.d.ts +0 -1
- package/serialization/resources/sessions/client/requests/index.js +0 -5
- package/serialization/resources/sessions/index.d.ts +0 -2
- package/serialization/resources/sessions/index.js +0 -18
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -26
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -55
- package/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -46
- package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -46
- package/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -46
- package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -15
- package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -46
- package/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -10
- package/serialization/resources/sessions/types/SessionsListRequestStatus.js +0 -41
- package/serialization/resources/sessions/types/index.d.ts +0 -6
- package/serialization/resources/sessions/types/index.js +0 -22
- package/serialization/resources/windows/client/index.d.ts +0 -1
- package/serialization/resources/windows/client/index.js +0 -17
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -49
- package/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -49
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -49
- package/serialization/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/AsyncFillFormRequest.js +0 -49
- package/serialization/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/CreateFormFillerRequest.js +0 -49
- package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -16
- package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -47
- package/serialization/resources/windows/client/requests/FillFormRequest.d.ts +0 -18
- package/serialization/resources/windows/client/requests/FillFormRequest.js +0 -49
- package/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -14
- package/serialization/resources/windows/client/requests/ScrapeContentRequest.js +0 -45
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -18
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -49
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -16
- package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -47
- package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -22
- package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -53
- package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -17
- package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -48
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -22
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -53
- package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -15
- package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -46
- package/serialization/resources/windows/client/requests/index.d.ts +0 -17
- package/serialization/resources/windows/client/requests/index.js +0 -37
- package/serialization/resources/windows/index.d.ts +0 -2
- package/serialization/resources/windows/index.js +0 -18
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -10
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -41
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -10
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -41
- package/serialization/resources/windows/types/index.d.ts +0 -2
- package/serialization/resources/windows/types/index.js +0 -18
- package/serialization/types/AiPromptResponse.d.ts +0 -18
- package/serialization/types/AiPromptResponse.js +0 -49
- package/serialization/types/AiResponseEnvelope.d.ts +0 -12
- package/serialization/types/AiResponseEnvelope.js +0 -43
- package/serialization/types/AirtopProxyConfiguration.d.ts +0 -13
- package/serialization/types/AirtopProxyConfiguration.js +0 -44
- package/serialization/types/AsyncConfig.d.ts +0 -12
- package/serialization/types/AsyncConfig.js +0 -43
- package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
- package/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -46
- package/serialization/types/AutomationOutput.d.ts +0 -16
- package/serialization/types/AutomationOutput.js +0 -47
- package/serialization/types/BrowserWaitNavigationConfig.d.ts +0 -14
- package/serialization/types/BrowserWaitNavigationConfig.js +0 -45
- package/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -10
- package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +0 -41
- package/serialization/types/ClickConfig.d.ts +0 -19
- package/serialization/types/ClickConfig.js +0 -50
- package/serialization/types/ClickConfigClickType.d.ts +0 -10
- package/serialization/types/ClickConfigClickType.js +0 -41
- package/serialization/types/ClientProvidedResponseMetadata.d.ts +0 -12
- package/serialization/types/ClientProvidedResponseMetadata.js +0 -43
- package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
- package/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -41
- package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
- package/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -41
- package/serialization/types/EnvelopeDefaultMeta.d.ts +0 -12
- package/serialization/types/EnvelopeDefaultMeta.js +0 -43
- package/serialization/types/ErrorBody.d.ts +0 -13
- package/serialization/types/ErrorBody.js +0 -44
- package/serialization/types/ErrorDetail.d.ts +0 -14
- package/serialization/types/ErrorDetail.js +0 -45
- package/serialization/types/ErrorMessage.d.ts +0 -14
- package/serialization/types/ErrorMessage.js +0 -45
- package/serialization/types/ErrorModel.d.ts +0 -18
- package/serialization/types/ErrorModel.js +0 -49
- package/serialization/types/ExternalSessionAiResponseMetadata.d.ts +0 -20
- package/serialization/types/ExternalSessionAiResponseMetadata.js +0 -51
- package/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -10
- package/serialization/types/ExternalSessionAiResponseMetadataStatus.js +0 -41
- package/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -13
- package/serialization/types/ExternalSessionAiResponseMetadataUsage.js +0 -44
- package/serialization/types/ExternalSessionConfig.d.ts +0 -14
- package/serialization/types/ExternalSessionConfig.js +0 -45
- package/serialization/types/ExternalSessionWithConnectionInfo.d.ts +0 -22
- package/serialization/types/ExternalSessionWithConnectionInfo.js +0 -53
- package/serialization/types/IntervalMonitorConfig.d.ts +0 -13
- package/serialization/types/IntervalMonitorConfig.js +0 -44
- package/serialization/types/Issue.d.ts +0 -15
- package/serialization/types/Issue.js +0 -46
- package/serialization/types/ListAutomationsOutput.d.ts +0 -13
- package/serialization/types/ListAutomationsOutput.js +0 -44
- package/serialization/types/MicroInteractionConfig.d.ts +0 -15
- package/serialization/types/MicroInteractionConfig.js +0 -46
- package/serialization/types/MicroInteractionConfigWithExperimental.d.ts +0 -17
- package/serialization/types/MicroInteractionConfigWithExperimental.js +0 -48
- package/serialization/types/MicroInteractionExperimentalConfig.d.ts +0 -12
- package/serialization/types/MicroInteractionExperimentalConfig.js +0 -43
- package/serialization/types/MonitorConfig.d.ts +0 -15
- package/serialization/types/MonitorConfig.js +0 -46
- package/serialization/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -10
- package/serialization/types/MonitorConfigIncludeVisualAnalysis.js +0 -41
- package/serialization/types/OperationOutcome.d.ts +0 -12
- package/serialization/types/OperationOutcome.js +0 -43
- package/serialization/types/OperationOutcomeResponse.d.ts +0 -18
- package/serialization/types/OperationOutcomeResponse.js +0 -49
- package/serialization/types/PageQueryConfig.d.ts +0 -16
- package/serialization/types/PageQueryConfig.js +0 -47
- package/serialization/types/PageQueryExperimentalConfig.d.ts +0 -12
- package/serialization/types/PageQueryExperimentalConfig.js +0 -43
- package/serialization/types/PaginatedExtractionConfig.d.ts +0 -18
- package/serialization/types/PaginatedExtractionConfig.js +0 -49
- package/serialization/types/PaginatedExtractionExperimentalConfig.d.ts +0 -12
- package/serialization/types/PaginatedExtractionExperimentalConfig.js +0 -43
- package/serialization/types/Pagination.d.ts +0 -19
- package/serialization/types/Pagination.js +0 -50
- package/serialization/types/Proxy.d.ts +0 -12
- package/serialization/types/Proxy.js +0 -43
- package/serialization/types/ProxyConfigurationKind.d.ts +0 -14
- package/serialization/types/ProxyConfigurationKind.js +0 -45
- package/serialization/types/ProxyCredentials.d.ts +0 -14
- package/serialization/types/ProxyCredentials.js +0 -45
- package/serialization/types/RequestStatusResponse.d.ts +0 -13
- package/serialization/types/RequestStatusResponse.js +0 -44
- package/serialization/types/ScrapeConfig.d.ts +0 -12
- package/serialization/types/ScrapeConfig.js +0 -43
- package/serialization/types/ScrapeResponse.d.ts +0 -18
- package/serialization/types/ScrapeResponse.js +0 -49
- package/serialization/types/ScrapeResponseContent.d.ts +0 -13
- package/serialization/types/ScrapeResponseContent.js +0 -44
- package/serialization/types/ScrapeResponseEnvelope.d.ts +0 -13
- package/serialization/types/ScrapeResponseEnvelope.js +0 -44
- package/serialization/types/ScrapeResponseOutput.d.ts +0 -15
- package/serialization/types/ScrapeResponseOutput.js +0 -46
- package/serialization/types/ScreenshotConfig.d.ts +0 -15
- package/serialization/types/ScreenshotConfig.js +0 -46
- package/serialization/types/ScreenshotMetadata.d.ts +0 -12
- package/serialization/types/ScreenshotMetadata.js +0 -43
- package/serialization/types/ScreenshotRequestConfig.d.ts +0 -13
- package/serialization/types/ScreenshotRequestConfig.js +0 -44
- package/serialization/types/ScrollByConfig.d.ts +0 -13
- package/serialization/types/ScrollByConfig.js +0 -44
- package/serialization/types/ScrollToEdgeConfig.d.ts +0 -13
- package/serialization/types/ScrollToEdgeConfig.js +0 -44
- package/serialization/types/SessionConfigV1.d.ts +0 -18
- package/serialization/types/SessionConfigV1.js +0 -49
- package/serialization/types/SessionConfigV1Proxy.d.ts +0 -12
- package/serialization/types/SessionConfigV1Proxy.js +0 -47
- package/serialization/types/SessionEventMessage.d.ts +0 -18
- package/serialization/types/SessionEventMessage.js +0 -49
- package/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +0 -18
- package/serialization/types/SessionPageQueryHandlerRequestBody.js +0 -49
- package/serialization/types/SessionResponse.d.ts +0 -18
- package/serialization/types/SessionResponse.js +0 -49
- package/serialization/types/SessionsResponse.d.ts +0 -18
- package/serialization/types/SessionsResponse.js +0 -49
- package/serialization/types/SessionsWithPagination.d.ts +0 -15
- package/serialization/types/SessionsWithPagination.js +0 -46
- package/serialization/types/StatusMessage.d.ts +0 -17
- package/serialization/types/StatusMessage.js +0 -48
- package/serialization/types/StatusMessageStatus.d.ts +0 -10
- package/serialization/types/StatusMessageStatus.js +0 -41
- package/serialization/types/SummaryConfig.d.ts +0 -14
- package/serialization/types/SummaryConfig.js +0 -45
- package/serialization/types/SummaryExperimentalConfig.d.ts +0 -12
- package/serialization/types/SummaryExperimentalConfig.js +0 -43
- package/serialization/types/VisualAnalysisConfig.d.ts +0 -20
- package/serialization/types/VisualAnalysisConfig.js +0 -51
- package/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -10
- package/serialization/types/VisualAnalysisConfigPartitionDirection.js +0 -41
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -10
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -41
- package/serialization/types/VisualAnalysisConfigScope.d.ts +0 -10
- package/serialization/types/VisualAnalysisConfigScope.js +0 -41
- package/serialization/types/Window.d.ts +0 -14
- package/serialization/types/Window.js +0 -45
- package/serialization/types/WindowEventMessage.d.ts +0 -19
- package/serialization/types/WindowEventMessage.js +0 -50
- package/serialization/types/WindowId.d.ts +0 -13
- package/serialization/types/WindowId.js +0 -44
- package/serialization/types/WindowIdResponse.d.ts +0 -18
- package/serialization/types/WindowIdResponse.js +0 -49
- package/serialization/types/WindowResponse.d.ts +0 -18
- package/serialization/types/WindowResponse.js +0 -49
- package/serialization/types/index.d.ts +0 -72
- package/serialization/types/index.js +0 -88
- package/utils/batch-operate/SessionQueue.d.ts +0 -45
- package/utils/batch-operate/SessionQueue.js +0 -222
- package/utils/batch-operate/WindowQueue.d.ts +0 -24
- package/utils/batch-operate/WindowQueue.js +0 -213
- package/utils/batch-operate/batch-util.d.ts +0 -3
- package/utils/batch-operate/batch-util.js +0 -49
- package/utils/batch-operate/helpers.d.ts +0 -2
- package/utils/batch-operate/helpers.js +0 -19
- package/utils/batch-operate/types.d.ts +0 -29
- package/utils/batch-operate/types.js +0 -2
- package/utils/index.d.ts +0 -3
- package/utils/index.js +0 -19
- package/utils/process-screenshots.d.ts +0 -9
- package/utils/process-screenshots.js +0 -58
- package/version.d.ts +0 -1
- package/version.js +0 -4
- package/wrapper/AirtopClient.d.ts +0 -29
- package/wrapper/AirtopClient.js +0 -104
- package/wrapper/AirtopRequests.d.ts +0 -18
- package/wrapper/AirtopRequests.js +0 -48
- package/wrapper/AirtopSessions.d.ts +0 -24
- package/wrapper/AirtopSessions.js +0 -96
- package/wrapper/AirtopWindows.d.ts +0 -180
- package/wrapper/AirtopWindows.js +0 -333
@@ -1,247 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.Node18UniversalStreamWrapper = void 0;
|
13
|
-
class Node18UniversalStreamWrapper {
|
14
|
-
constructor(readableStream) {
|
15
|
-
this.readableStream = readableStream;
|
16
|
-
this.reader = this.readableStream.getReader();
|
17
|
-
this.events = {
|
18
|
-
data: [],
|
19
|
-
end: [],
|
20
|
-
error: [],
|
21
|
-
readable: [],
|
22
|
-
close: [],
|
23
|
-
pause: [],
|
24
|
-
resume: [],
|
25
|
-
};
|
26
|
-
this.paused = false;
|
27
|
-
this.resumeCallback = null;
|
28
|
-
this.encoding = null;
|
29
|
-
}
|
30
|
-
on(event, callback) {
|
31
|
-
var _a;
|
32
|
-
(_a = this.events[event]) === null || _a === void 0 ? void 0 : _a.push(callback);
|
33
|
-
}
|
34
|
-
off(event, callback) {
|
35
|
-
var _a;
|
36
|
-
this.events[event] = (_a = this.events[event]) === null || _a === void 0 ? void 0 : _a.filter((cb) => cb !== callback);
|
37
|
-
}
|
38
|
-
pipe(dest) {
|
39
|
-
this.on("data", (chunk) => __awaiter(this, void 0, void 0, function* () {
|
40
|
-
if (dest instanceof Node18UniversalStreamWrapper) {
|
41
|
-
dest._write(chunk);
|
42
|
-
}
|
43
|
-
else if (dest instanceof WritableStream) {
|
44
|
-
const writer = dest.getWriter();
|
45
|
-
writer.write(chunk).then(() => writer.releaseLock());
|
46
|
-
}
|
47
|
-
else {
|
48
|
-
dest.write(chunk);
|
49
|
-
}
|
50
|
-
}));
|
51
|
-
this.on("end", () => __awaiter(this, void 0, void 0, function* () {
|
52
|
-
if (dest instanceof Node18UniversalStreamWrapper) {
|
53
|
-
dest._end();
|
54
|
-
}
|
55
|
-
else if (dest instanceof WritableStream) {
|
56
|
-
const writer = dest.getWriter();
|
57
|
-
writer.close();
|
58
|
-
}
|
59
|
-
else {
|
60
|
-
dest.end();
|
61
|
-
}
|
62
|
-
}));
|
63
|
-
this.on("error", (error) => __awaiter(this, void 0, void 0, function* () {
|
64
|
-
if (dest instanceof Node18UniversalStreamWrapper) {
|
65
|
-
dest._error(error);
|
66
|
-
}
|
67
|
-
else if (dest instanceof WritableStream) {
|
68
|
-
const writer = dest.getWriter();
|
69
|
-
writer.abort(error);
|
70
|
-
}
|
71
|
-
else {
|
72
|
-
dest.destroy(error);
|
73
|
-
}
|
74
|
-
}));
|
75
|
-
this._startReading();
|
76
|
-
return dest;
|
77
|
-
}
|
78
|
-
pipeTo(dest) {
|
79
|
-
return this.pipe(dest);
|
80
|
-
}
|
81
|
-
unpipe(dest) {
|
82
|
-
this.off("data", (chunk) => __awaiter(this, void 0, void 0, function* () {
|
83
|
-
if (dest instanceof Node18UniversalStreamWrapper) {
|
84
|
-
dest._write(chunk);
|
85
|
-
}
|
86
|
-
else if (dest instanceof WritableStream) {
|
87
|
-
const writer = dest.getWriter();
|
88
|
-
writer.write(chunk).then(() => writer.releaseLock());
|
89
|
-
}
|
90
|
-
else {
|
91
|
-
dest.write(chunk);
|
92
|
-
}
|
93
|
-
}));
|
94
|
-
this.off("end", () => __awaiter(this, void 0, void 0, function* () {
|
95
|
-
if (dest instanceof Node18UniversalStreamWrapper) {
|
96
|
-
dest._end();
|
97
|
-
}
|
98
|
-
else if (dest instanceof WritableStream) {
|
99
|
-
const writer = dest.getWriter();
|
100
|
-
writer.close();
|
101
|
-
}
|
102
|
-
else {
|
103
|
-
dest.end();
|
104
|
-
}
|
105
|
-
}));
|
106
|
-
this.off("error", (error) => __awaiter(this, void 0, void 0, function* () {
|
107
|
-
if (dest instanceof Node18UniversalStreamWrapper) {
|
108
|
-
dest._error(error);
|
109
|
-
}
|
110
|
-
else if (dest instanceof WritableStream) {
|
111
|
-
const writer = dest.getWriter();
|
112
|
-
writer.abort(error);
|
113
|
-
}
|
114
|
-
else {
|
115
|
-
dest.destroy(error);
|
116
|
-
}
|
117
|
-
}));
|
118
|
-
}
|
119
|
-
destroy(error) {
|
120
|
-
this.reader
|
121
|
-
.cancel(error)
|
122
|
-
.then(() => {
|
123
|
-
this._emit("close");
|
124
|
-
})
|
125
|
-
.catch((err) => {
|
126
|
-
this._emit("error", err);
|
127
|
-
});
|
128
|
-
}
|
129
|
-
pause() {
|
130
|
-
this.paused = true;
|
131
|
-
this._emit("pause");
|
132
|
-
}
|
133
|
-
resume() {
|
134
|
-
if (this.paused) {
|
135
|
-
this.paused = false;
|
136
|
-
this._emit("resume");
|
137
|
-
if (this.resumeCallback) {
|
138
|
-
this.resumeCallback();
|
139
|
-
this.resumeCallback = null;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
|
-
get isPaused() {
|
144
|
-
return this.paused;
|
145
|
-
}
|
146
|
-
read() {
|
147
|
-
return __awaiter(this, void 0, void 0, function* () {
|
148
|
-
if (this.paused) {
|
149
|
-
yield new Promise((resolve) => {
|
150
|
-
this.resumeCallback = resolve;
|
151
|
-
});
|
152
|
-
}
|
153
|
-
const { done, value } = yield this.reader.read();
|
154
|
-
if (done) {
|
155
|
-
return undefined;
|
156
|
-
}
|
157
|
-
return value;
|
158
|
-
});
|
159
|
-
}
|
160
|
-
setEncoding(encoding) {
|
161
|
-
this.encoding = encoding;
|
162
|
-
}
|
163
|
-
text() {
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
165
|
-
const chunks = [];
|
166
|
-
while (true) {
|
167
|
-
const { done, value } = yield this.reader.read();
|
168
|
-
if (done) {
|
169
|
-
break;
|
170
|
-
}
|
171
|
-
if (value) {
|
172
|
-
chunks.push(value);
|
173
|
-
}
|
174
|
-
}
|
175
|
-
const decoder = new TextDecoder(this.encoding || "utf-8");
|
176
|
-
return decoder.decode(yield new Blob(chunks).arrayBuffer());
|
177
|
-
});
|
178
|
-
}
|
179
|
-
json() {
|
180
|
-
return __awaiter(this, void 0, void 0, function* () {
|
181
|
-
const text = yield this.text();
|
182
|
-
return JSON.parse(text);
|
183
|
-
});
|
184
|
-
}
|
185
|
-
_write(chunk) {
|
186
|
-
this._emit("data", chunk);
|
187
|
-
}
|
188
|
-
_end() {
|
189
|
-
this._emit("end");
|
190
|
-
}
|
191
|
-
_error(error) {
|
192
|
-
this._emit("error", error);
|
193
|
-
}
|
194
|
-
_emit(event, data) {
|
195
|
-
if (this.events[event]) {
|
196
|
-
for (const callback of this.events[event] || []) {
|
197
|
-
callback(data);
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
201
|
-
_startReading() {
|
202
|
-
return __awaiter(this, void 0, void 0, function* () {
|
203
|
-
try {
|
204
|
-
this._emit("readable");
|
205
|
-
while (true) {
|
206
|
-
if (this.paused) {
|
207
|
-
yield new Promise((resolve) => {
|
208
|
-
this.resumeCallback = resolve;
|
209
|
-
});
|
210
|
-
}
|
211
|
-
const { done, value } = yield this.reader.read();
|
212
|
-
if (done) {
|
213
|
-
this._emit("end");
|
214
|
-
this._emit("close");
|
215
|
-
break;
|
216
|
-
}
|
217
|
-
if (value) {
|
218
|
-
this._emit("data", value);
|
219
|
-
}
|
220
|
-
}
|
221
|
-
}
|
222
|
-
catch (error) {
|
223
|
-
this._emit("error", error);
|
224
|
-
}
|
225
|
-
});
|
226
|
-
}
|
227
|
-
[Symbol.asyncIterator]() {
|
228
|
-
return {
|
229
|
-
next: () => __awaiter(this, void 0, void 0, function* () {
|
230
|
-
if (this.paused) {
|
231
|
-
yield new Promise((resolve) => {
|
232
|
-
this.resumeCallback = resolve;
|
233
|
-
});
|
234
|
-
}
|
235
|
-
const { done, value } = yield this.reader.read();
|
236
|
-
if (done) {
|
237
|
-
return { done: true, value: undefined };
|
238
|
-
}
|
239
|
-
return { done: false, value };
|
240
|
-
}),
|
241
|
-
[Symbol.asyncIterator]() {
|
242
|
-
return this;
|
243
|
-
},
|
244
|
-
};
|
245
|
-
}
|
246
|
-
}
|
247
|
-
exports.Node18UniversalStreamWrapper = Node18UniversalStreamWrapper;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import type { Readable, Writable } from "readable-stream";
|
2
|
-
import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";
|
3
|
-
export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, Buffer> {
|
4
|
-
private readableStream;
|
5
|
-
private encoding;
|
6
|
-
constructor(readableStream: Readable);
|
7
|
-
on(event: string, callback: EventCallback): void;
|
8
|
-
off(event: string, callback: EventCallback): void;
|
9
|
-
pipe(dest: Writable): Writable;
|
10
|
-
pipeTo(dest: Writable): Writable;
|
11
|
-
unpipe(dest?: Writable): void;
|
12
|
-
destroy(error?: Error): void;
|
13
|
-
pause(): void;
|
14
|
-
resume(): void;
|
15
|
-
get isPaused(): boolean;
|
16
|
-
read(): Promise<Buffer | undefined>;
|
17
|
-
setEncoding(encoding?: string): void;
|
18
|
-
text(): Promise<string>;
|
19
|
-
json<T>(): Promise<T>;
|
20
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<Buffer>;
|
21
|
-
}
|
@@ -1,126 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
12
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
13
|
-
var m = o[Symbol.asyncIterator], i;
|
14
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
15
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
16
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
17
|
-
};
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
19
|
-
exports.NodePre18StreamWrapper = void 0;
|
20
|
-
class NodePre18StreamWrapper {
|
21
|
-
constructor(readableStream) {
|
22
|
-
this.readableStream = readableStream;
|
23
|
-
}
|
24
|
-
on(event, callback) {
|
25
|
-
this.readableStream.on(event, callback);
|
26
|
-
}
|
27
|
-
off(event, callback) {
|
28
|
-
this.readableStream.off(event, callback);
|
29
|
-
}
|
30
|
-
pipe(dest) {
|
31
|
-
this.readableStream.pipe(dest);
|
32
|
-
return dest;
|
33
|
-
}
|
34
|
-
pipeTo(dest) {
|
35
|
-
return this.pipe(dest);
|
36
|
-
}
|
37
|
-
unpipe(dest) {
|
38
|
-
if (dest) {
|
39
|
-
this.readableStream.unpipe(dest);
|
40
|
-
}
|
41
|
-
else {
|
42
|
-
this.readableStream.unpipe();
|
43
|
-
}
|
44
|
-
}
|
45
|
-
destroy(error) {
|
46
|
-
this.readableStream.destroy(error);
|
47
|
-
}
|
48
|
-
pause() {
|
49
|
-
this.readableStream.pause();
|
50
|
-
}
|
51
|
-
resume() {
|
52
|
-
this.readableStream.resume();
|
53
|
-
}
|
54
|
-
get isPaused() {
|
55
|
-
return this.readableStream.isPaused();
|
56
|
-
}
|
57
|
-
read() {
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
59
|
-
return new Promise((resolve, reject) => {
|
60
|
-
const chunk = this.readableStream.read();
|
61
|
-
if (chunk) {
|
62
|
-
resolve(chunk);
|
63
|
-
}
|
64
|
-
else {
|
65
|
-
this.readableStream.once("readable", () => {
|
66
|
-
const chunk = this.readableStream.read();
|
67
|
-
resolve(chunk);
|
68
|
-
});
|
69
|
-
this.readableStream.once("error", reject);
|
70
|
-
}
|
71
|
-
});
|
72
|
-
});
|
73
|
-
}
|
74
|
-
setEncoding(encoding) {
|
75
|
-
this.readableStream.setEncoding(encoding);
|
76
|
-
this.encoding = encoding;
|
77
|
-
}
|
78
|
-
text() {
|
79
|
-
return __awaiter(this, void 0, void 0, function* () {
|
80
|
-
var _a, e_1, _b, _c;
|
81
|
-
const chunks = [];
|
82
|
-
const encoder = new TextEncoder();
|
83
|
-
this.readableStream.setEncoding((this.encoding || "utf-8"));
|
84
|
-
try {
|
85
|
-
for (var _d = true, _e = __asyncValues(this.readableStream), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
86
|
-
_c = _f.value;
|
87
|
-
_d = false;
|
88
|
-
const chunk = _c;
|
89
|
-
chunks.push(encoder.encode(chunk));
|
90
|
-
}
|
91
|
-
}
|
92
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
93
|
-
finally {
|
94
|
-
try {
|
95
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
96
|
-
}
|
97
|
-
finally { if (e_1) throw e_1.error; }
|
98
|
-
}
|
99
|
-
const decoder = new TextDecoder(this.encoding || "utf-8");
|
100
|
-
return decoder.decode(Buffer.concat(chunks));
|
101
|
-
});
|
102
|
-
}
|
103
|
-
json() {
|
104
|
-
return __awaiter(this, void 0, void 0, function* () {
|
105
|
-
const text = yield this.text();
|
106
|
-
return JSON.parse(text);
|
107
|
-
});
|
108
|
-
}
|
109
|
-
[Symbol.asyncIterator]() {
|
110
|
-
const readableStream = this.readableStream;
|
111
|
-
const iterator = readableStream[Symbol.asyncIterator]();
|
112
|
-
// Create and return an async iterator that yields buffers
|
113
|
-
return {
|
114
|
-
next() {
|
115
|
-
return __awaiter(this, void 0, void 0, function* () {
|
116
|
-
const { value, done } = yield iterator.next();
|
117
|
-
return { value: value, done };
|
118
|
-
});
|
119
|
-
},
|
120
|
-
[Symbol.asyncIterator]() {
|
121
|
-
return this;
|
122
|
-
},
|
123
|
-
};
|
124
|
-
}
|
125
|
-
}
|
126
|
-
exports.NodePre18StreamWrapper = NodePre18StreamWrapper;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { StreamWrapper } from "./chooseStreamWrapper";
|
2
|
-
type EventCallback = (data?: any) => void;
|
3
|
-
export declare class UndiciStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array> implements StreamWrapper<UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>, ReadFormat> {
|
4
|
-
private readableStream;
|
5
|
-
private reader;
|
6
|
-
private events;
|
7
|
-
private paused;
|
8
|
-
private resumeCallback;
|
9
|
-
private encoding;
|
10
|
-
constructor(readableStream: ReadableStream<ReadFormat>);
|
11
|
-
on(event: string, callback: EventCallback): void;
|
12
|
-
off(event: string, callback: EventCallback): void;
|
13
|
-
pipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
|
14
|
-
pipeTo(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
|
15
|
-
unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream): void;
|
16
|
-
destroy(error?: Error): void;
|
17
|
-
pause(): void;
|
18
|
-
resume(): void;
|
19
|
-
get isPaused(): boolean;
|
20
|
-
read(): Promise<ReadFormat | undefined>;
|
21
|
-
setEncoding(encoding: string): void;
|
22
|
-
text(): Promise<string>;
|
23
|
-
json<T>(): Promise<T>;
|
24
|
-
private _write;
|
25
|
-
private _end;
|
26
|
-
private _error;
|
27
|
-
private _emit;
|
28
|
-
private _startReading;
|
29
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
|
30
|
-
}
|
31
|
-
export {};
|
@@ -1,229 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.UndiciStreamWrapper = void 0;
|
13
|
-
class UndiciStreamWrapper {
|
14
|
-
constructor(readableStream) {
|
15
|
-
this.readableStream = readableStream;
|
16
|
-
this.reader = this.readableStream.getReader();
|
17
|
-
this.events = {
|
18
|
-
data: [],
|
19
|
-
end: [],
|
20
|
-
error: [],
|
21
|
-
readable: [],
|
22
|
-
close: [],
|
23
|
-
pause: [],
|
24
|
-
resume: [],
|
25
|
-
};
|
26
|
-
this.paused = false;
|
27
|
-
this.resumeCallback = null;
|
28
|
-
this.encoding = null;
|
29
|
-
}
|
30
|
-
on(event, callback) {
|
31
|
-
var _a;
|
32
|
-
(_a = this.events[event]) === null || _a === void 0 ? void 0 : _a.push(callback);
|
33
|
-
}
|
34
|
-
off(event, callback) {
|
35
|
-
var _a;
|
36
|
-
this.events[event] = (_a = this.events[event]) === null || _a === void 0 ? void 0 : _a.filter((cb) => cb !== callback);
|
37
|
-
}
|
38
|
-
pipe(dest) {
|
39
|
-
this.on("data", (chunk) => {
|
40
|
-
if (dest instanceof UndiciStreamWrapper) {
|
41
|
-
dest._write(chunk);
|
42
|
-
}
|
43
|
-
else {
|
44
|
-
const writer = dest.getWriter();
|
45
|
-
writer.write(chunk).then(() => writer.releaseLock());
|
46
|
-
}
|
47
|
-
});
|
48
|
-
this.on("end", () => {
|
49
|
-
if (dest instanceof UndiciStreamWrapper) {
|
50
|
-
dest._end();
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
const writer = dest.getWriter();
|
54
|
-
writer.close();
|
55
|
-
}
|
56
|
-
});
|
57
|
-
this.on("error", (error) => {
|
58
|
-
if (dest instanceof UndiciStreamWrapper) {
|
59
|
-
dest._error(error);
|
60
|
-
}
|
61
|
-
else {
|
62
|
-
const writer = dest.getWriter();
|
63
|
-
writer.abort(error);
|
64
|
-
}
|
65
|
-
});
|
66
|
-
this._startReading();
|
67
|
-
return dest;
|
68
|
-
}
|
69
|
-
pipeTo(dest) {
|
70
|
-
return this.pipe(dest);
|
71
|
-
}
|
72
|
-
unpipe(dest) {
|
73
|
-
this.off("data", (chunk) => {
|
74
|
-
if (dest instanceof UndiciStreamWrapper) {
|
75
|
-
dest._write(chunk);
|
76
|
-
}
|
77
|
-
else {
|
78
|
-
const writer = dest.getWriter();
|
79
|
-
writer.write(chunk).then(() => writer.releaseLock());
|
80
|
-
}
|
81
|
-
});
|
82
|
-
this.off("end", () => {
|
83
|
-
if (dest instanceof UndiciStreamWrapper) {
|
84
|
-
dest._end();
|
85
|
-
}
|
86
|
-
else {
|
87
|
-
const writer = dest.getWriter();
|
88
|
-
writer.close();
|
89
|
-
}
|
90
|
-
});
|
91
|
-
this.off("error", (error) => {
|
92
|
-
if (dest instanceof UndiciStreamWrapper) {
|
93
|
-
dest._error(error);
|
94
|
-
}
|
95
|
-
else {
|
96
|
-
const writer = dest.getWriter();
|
97
|
-
writer.abort(error);
|
98
|
-
}
|
99
|
-
});
|
100
|
-
}
|
101
|
-
destroy(error) {
|
102
|
-
this.reader
|
103
|
-
.cancel(error)
|
104
|
-
.then(() => {
|
105
|
-
this._emit("close");
|
106
|
-
})
|
107
|
-
.catch((err) => {
|
108
|
-
this._emit("error", err);
|
109
|
-
});
|
110
|
-
}
|
111
|
-
pause() {
|
112
|
-
this.paused = true;
|
113
|
-
this._emit("pause");
|
114
|
-
}
|
115
|
-
resume() {
|
116
|
-
if (this.paused) {
|
117
|
-
this.paused = false;
|
118
|
-
this._emit("resume");
|
119
|
-
if (this.resumeCallback) {
|
120
|
-
this.resumeCallback();
|
121
|
-
this.resumeCallback = null;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
get isPaused() {
|
126
|
-
return this.paused;
|
127
|
-
}
|
128
|
-
read() {
|
129
|
-
return __awaiter(this, void 0, void 0, function* () {
|
130
|
-
if (this.paused) {
|
131
|
-
yield new Promise((resolve) => {
|
132
|
-
this.resumeCallback = resolve;
|
133
|
-
});
|
134
|
-
}
|
135
|
-
const { done, value } = yield this.reader.read();
|
136
|
-
if (done) {
|
137
|
-
return undefined;
|
138
|
-
}
|
139
|
-
return value;
|
140
|
-
});
|
141
|
-
}
|
142
|
-
setEncoding(encoding) {
|
143
|
-
this.encoding = encoding;
|
144
|
-
}
|
145
|
-
text() {
|
146
|
-
return __awaiter(this, void 0, void 0, function* () {
|
147
|
-
const chunks = [];
|
148
|
-
while (true) {
|
149
|
-
const { done, value } = yield this.reader.read();
|
150
|
-
if (done) {
|
151
|
-
break;
|
152
|
-
}
|
153
|
-
if (value) {
|
154
|
-
chunks.push(value);
|
155
|
-
}
|
156
|
-
}
|
157
|
-
const decoder = new TextDecoder(this.encoding || "utf-8");
|
158
|
-
return decoder.decode(yield new Blob(chunks).arrayBuffer());
|
159
|
-
});
|
160
|
-
}
|
161
|
-
json() {
|
162
|
-
return __awaiter(this, void 0, void 0, function* () {
|
163
|
-
const text = yield this.text();
|
164
|
-
return JSON.parse(text);
|
165
|
-
});
|
166
|
-
}
|
167
|
-
_write(chunk) {
|
168
|
-
this._emit("data", chunk);
|
169
|
-
}
|
170
|
-
_end() {
|
171
|
-
this._emit("end");
|
172
|
-
}
|
173
|
-
_error(error) {
|
174
|
-
this._emit("error", error);
|
175
|
-
}
|
176
|
-
_emit(event, data) {
|
177
|
-
if (this.events[event]) {
|
178
|
-
for (const callback of this.events[event] || []) {
|
179
|
-
callback(data);
|
180
|
-
}
|
181
|
-
}
|
182
|
-
}
|
183
|
-
_startReading() {
|
184
|
-
return __awaiter(this, void 0, void 0, function* () {
|
185
|
-
try {
|
186
|
-
this._emit("readable");
|
187
|
-
while (true) {
|
188
|
-
if (this.paused) {
|
189
|
-
yield new Promise((resolve) => {
|
190
|
-
this.resumeCallback = resolve;
|
191
|
-
});
|
192
|
-
}
|
193
|
-
const { done, value } = yield this.reader.read();
|
194
|
-
if (done) {
|
195
|
-
this._emit("end");
|
196
|
-
this._emit("close");
|
197
|
-
break;
|
198
|
-
}
|
199
|
-
if (value) {
|
200
|
-
this._emit("data", value);
|
201
|
-
}
|
202
|
-
}
|
203
|
-
}
|
204
|
-
catch (error) {
|
205
|
-
this._emit("error", error);
|
206
|
-
}
|
207
|
-
});
|
208
|
-
}
|
209
|
-
[Symbol.asyncIterator]() {
|
210
|
-
return {
|
211
|
-
next: () => __awaiter(this, void 0, void 0, function* () {
|
212
|
-
if (this.paused) {
|
213
|
-
yield new Promise((resolve) => {
|
214
|
-
this.resumeCallback = resolve;
|
215
|
-
});
|
216
|
-
}
|
217
|
-
const { done, value } = yield this.reader.read();
|
218
|
-
if (done) {
|
219
|
-
return { done: true, value: undefined };
|
220
|
-
}
|
221
|
-
return { done: false, value };
|
222
|
-
}),
|
223
|
-
[Symbol.asyncIterator]() {
|
224
|
-
return this;
|
225
|
-
},
|
226
|
-
};
|
227
|
-
}
|
228
|
-
}
|
229
|
-
exports.UndiciStreamWrapper = UndiciStreamWrapper;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export type EventCallback = (data?: any) => void;
|
2
|
-
export interface StreamWrapper<WritableStream, ReadFormat> {
|
3
|
-
setEncoding(encoding?: string): void;
|
4
|
-
on(event: string, callback: EventCallback): void;
|
5
|
-
off(event: string, callback: EventCallback): void;
|
6
|
-
pipe(dest: WritableStream): WritableStream;
|
7
|
-
pipeTo(dest: WritableStream): WritableStream;
|
8
|
-
unpipe(dest?: WritableStream): void;
|
9
|
-
destroy(error?: Error): void;
|
10
|
-
pause(): void;
|
11
|
-
resume(): void;
|
12
|
-
get isPaused(): boolean;
|
13
|
-
read(): Promise<ReadFormat | undefined>;
|
14
|
-
text(): Promise<string>;
|
15
|
-
json<T>(): Promise<T>;
|
16
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<ReadFormat>;
|
17
|
-
}
|
18
|
-
export declare function chooseStreamWrapper(responseBody: any): Promise<Promise<StreamWrapper<any, any>>>;
|