@airtop/sdk 0.1.34-beta0 → 0.1.35-beta0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +12 -8
- package/Client.js +3 -3
- package/README.md +27 -11
- package/api/errors/ForbiddenError.js +17 -7
- package/api/errors/InternalServerError.js +17 -7
- package/api/errors/NotFoundError.js +17 -7
- package/api/errors/UnauthorizedError.js +17 -7
- package/api/errors/UnprocessableEntityError.js +17 -7
- package/api/resources/automations/client/Client.d.ts +4 -0
- package/api/resources/automations/client/Client.js +33 -55
- package/api/resources/files/client/Client.d.ts +69 -0
- package/api/resources/files/client/Client.js +286 -0
- package/api/resources/files/client/index.d.ts +1 -0
- package/api/resources/files/client/index.js +17 -0
- package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +20 -0
- package/api/resources/files/client/requests/FilesListRequest.d.ts +24 -0
- package/api/resources/files/client/requests/index.d.ts +2 -0
- package/{dist/api/resources/extensionConfigurations → api/resources/files}/index.d.ts +1 -0
- package/{dist/api/resources/extensionConfigurations → api/resources/files}/index.js +1 -0
- package/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +13 -0
- package/api/resources/files/types/CreateFileRestInputV1FileType.js +12 -0
- package/api/resources/files/types/index.d.ts +1 -0
- package/api/resources/files/types/index.js +17 -0
- package/api/resources/index.d.ts +3 -1
- package/api/resources/index.js +21 -9
- package/api/resources/profiles/client/Client.d.ts +4 -0
- package/api/resources/profiles/client/Client.js +23 -21
- package/api/resources/requests/client/Client.d.ts +4 -0
- package/api/resources/requests/client/Client.js +21 -19
- package/api/resources/sessions/client/Client.d.ts +7 -2
- package/api/resources/sessions/client/Client.js +58 -101
- package/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +7 -0
- package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
- package/api/resources/sessions/types/SessionsListRequestStatus.d.ts +1 -1
- package/api/resources/sessions/types/index.d.ts +2 -2
- package/api/resources/sessions/types/index.js +2 -2
- package/api/resources/windows/client/Client.d.ts +4 -0
- package/api/resources/windows/client/Client.js +139 -337
- package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +1 -1
- package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +1 -1
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
- package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +1 -1
- package/api/types/ClickConfigClickType.d.ts +1 -1
- package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +1 -1
- package/api/types/CreateFileV1.d.ts +24 -0
- package/api/types/CreateFileV1.js +5 -0
- package/api/types/CreateFileV1FileType.d.ts +13 -0
- package/api/types/CreateFileV1FileType.js +12 -0
- package/api/types/DeleteAutomationOutputWrapperBody.d.ts +1 -1
- package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +10 -0
- package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +5 -0
- package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +10 -0
- package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +5 -0
- package/api/types/ExternalFile.d.ts +33 -0
- package/api/types/ExternalFile.js +5 -0
- package/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +1 -1
- package/api/types/FilesResponse.d.ts +10 -0
- package/api/types/FilesResponse.js +5 -0
- package/api/types/FilesWithPagination.d.ts +10 -0
- package/api/types/FilesWithPagination.js +5 -0
- package/api/types/GetFileV1.d.ts +24 -0
- package/api/types/GetFileV1.js +5 -0
- package/api/types/GetFileV1FileType.d.ts +13 -0
- package/api/types/GetFileV1FileType.js +12 -0
- package/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +1 -1
- package/api/types/Proxy.d.ts +1 -1
- package/api/types/SessionConfigV1Proxy.d.ts +1 -1
- package/api/types/StatusMessageStatus.d.ts +1 -1
- package/api/types/VisualAnalysisConfigPartitionDirection.d.ts +1 -1
- package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
- package/api/types/VisualAnalysisConfigScope.d.ts +1 -1
- package/api/types/index.d.ts +20 -1
- package/api/types/index.js +20 -1
- package/biome.json +3 -0
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +3 -3
- package/core/fetcher/Fetcher.js +6 -5
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +4 -2
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +17 -9
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -2
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -2
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +19 -10
- package/core/index.js +17 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +8 -5
- package/core/schemas/Schema.js +3 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +53 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +31 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +16 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/core/streaming-fetcher/Stream.d.ts +0 -1
- package/core/streaming-fetcher/Stream.js +20 -21
- package/dist/Client.d.ts +12 -8
- package/dist/Client.js +3 -3
- package/dist/api/errors/ForbiddenError.js +17 -7
- package/dist/api/errors/InternalServerError.js +17 -7
- package/dist/api/errors/NotFoundError.js +17 -7
- package/dist/api/errors/UnauthorizedError.js +17 -7
- package/dist/api/errors/UnprocessableEntityError.js +17 -7
- package/dist/api/resources/automations/client/Client.d.ts +4 -0
- package/dist/api/resources/automations/client/Client.js +33 -55
- package/dist/api/resources/files/client/Client.d.ts +69 -0
- package/dist/api/resources/files/client/Client.js +286 -0
- package/dist/api/resources/files/client/index.d.ts +1 -0
- package/dist/api/resources/files/client/index.js +17 -0
- package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +20 -0
- package/dist/api/resources/files/client/requests/CreateFileRestInputV1.js +5 -0
- package/dist/api/resources/files/client/requests/FilesListRequest.d.ts +24 -0
- package/dist/api/resources/files/client/requests/FilesListRequest.js +5 -0
- package/dist/api/resources/files/client/requests/index.d.ts +2 -0
- package/{api/resources/extensionConfigurations → dist/api/resources/files}/index.d.ts +1 -0
- package/{api/resources/extensionConfigurations → dist/api/resources/files}/index.js +1 -0
- package/dist/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +13 -0
- package/dist/api/resources/files/types/CreateFileRestInputV1FileType.js +12 -0
- package/dist/api/resources/files/types/index.d.ts +1 -0
- package/dist/api/resources/files/types/index.js +17 -0
- package/dist/api/resources/index.d.ts +3 -1
- package/dist/api/resources/index.js +21 -9
- package/dist/api/resources/profiles/client/Client.d.ts +4 -0
- package/dist/api/resources/profiles/client/Client.js +23 -21
- package/dist/api/resources/requests/client/Client.d.ts +4 -0
- package/dist/api/resources/requests/client/Client.js +21 -19
- package/dist/api/resources/sessions/client/Client.d.ts +7 -2
- package/dist/api/resources/sessions/client/Client.js +58 -101
- package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +7 -0
- package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
- package/dist/api/resources/sessions/types/SessionsListRequestStatus.d.ts +1 -1
- package/dist/api/resources/sessions/types/index.d.ts +2 -2
- package/dist/api/resources/sessions/types/index.js +2 -2
- package/dist/api/resources/windows/client/Client.d.ts +4 -0
- package/dist/api/resources/windows/client/Client.js +139 -337
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +1 -1
- package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +1 -1
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
- package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +1 -1
- package/dist/api/types/ClickConfigClickType.d.ts +1 -1
- package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +1 -1
- package/dist/api/types/CreateFileV1.d.ts +24 -0
- package/dist/api/types/CreateFileV1.js +5 -0
- package/dist/api/types/CreateFileV1FileType.d.ts +13 -0
- package/dist/api/types/CreateFileV1FileType.js +12 -0
- package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +1 -1
- package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +10 -0
- package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +5 -0
- package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +10 -0
- package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +5 -0
- package/dist/api/types/ExternalFile.d.ts +33 -0
- package/dist/api/types/ExternalFile.js +5 -0
- package/dist/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +1 -1
- package/dist/api/types/FilesResponse.d.ts +10 -0
- package/dist/api/types/FilesResponse.js +5 -0
- package/dist/api/types/FilesWithPagination.d.ts +10 -0
- package/dist/api/types/FilesWithPagination.js +5 -0
- package/dist/api/types/GetFileV1.d.ts +24 -0
- package/dist/api/types/GetFileV1.js +5 -0
- package/dist/api/types/GetFileV1FileType.d.ts +13 -0
- package/dist/api/types/GetFileV1FileType.js +12 -0
- package/dist/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +1 -1
- package/dist/api/types/Proxy.d.ts +1 -1
- package/dist/api/types/SessionConfigV1Proxy.d.ts +1 -1
- package/dist/api/types/StatusMessageStatus.d.ts +1 -1
- package/dist/api/types/VisualAnalysisConfigPartitionDirection.d.ts +1 -1
- package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
- package/dist/api/types/VisualAnalysisConfigScope.d.ts +1 -1
- package/dist/api/types/index.d.ts +20 -1
- package/dist/api/types/index.js +20 -1
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +3 -3
- package/dist/core/fetcher/Fetcher.js +6 -5
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +4 -2
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +17 -9
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -2
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -2
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +19 -10
- package/dist/core/index.js +17 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +8 -5
- package/dist/core/schemas/Schema.js +3 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +53 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +31 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +16 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -1
- package/dist/core/streaming-fetcher/Stream.js +20 -21
- package/dist/environments.d.ts +1 -1
- package/dist/errors/AirtopError.js +2 -1
- package/dist/errors/AirtopTimeoutError.d.ts +1 -1
- package/dist/errors/AirtopTimeoutError.js +2 -2
- package/dist/index.js +17 -7
- package/dist/live-view/types.d.ts +1 -1
- package/dist/live-view/types.js +1 -1
- package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +17 -7
- package/dist/serialization/resources/files/client/index.d.ts +1 -0
- package/dist/serialization/resources/files/client/index.js +17 -0
- package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +16 -0
- package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.js +47 -0
- package/dist/serialization/resources/files/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/files/client/requests/index.js +5 -0
- package/dist/serialization/resources/files/index.d.ts +2 -0
- package/dist/serialization/resources/files/index.js +18 -0
- package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +10 -0
- package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.js +41 -0
- package/dist/serialization/resources/files/types/index.d.ts +1 -0
- package/dist/serialization/resources/files/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +21 -8
- package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.js +17 -7
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
- package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +21 -11
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +17 -7
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +17 -7
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +17 -7
- package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +17 -7
- package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.js +17 -7
- package/dist/serialization/resources/sessions/types/index.d.ts +2 -2
- package/dist/serialization/resources/sessions/types/index.js +2 -2
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +2 -2
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +19 -9
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +2 -2
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +19 -9
- package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +17 -7
- package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +17 -7
- package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +17 -7
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +17 -7
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +17 -7
- package/dist/serialization/types/AiPromptResponse.js +17 -7
- package/dist/serialization/types/AiResponseEnvelope.js +17 -7
- package/dist/serialization/types/AirtopProxyConfiguration.js +17 -7
- package/dist/serialization/types/AsyncConfig.js +17 -7
- package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +17 -7
- package/dist/serialization/types/AutomationOutput.js +17 -7
- package/dist/serialization/types/BrowserWaitNavigationConfig.js +17 -7
- package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +17 -7
- package/dist/serialization/types/ClickConfig.js +17 -7
- package/dist/serialization/types/ClickConfigClickType.js +17 -7
- package/dist/serialization/types/ClientProvidedResponseMetadata.js +17 -7
- package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +17 -7
- package/dist/serialization/types/CreateFileV1.d.ts +21 -0
- package/dist/serialization/types/CreateFileV1.js +52 -0
- package/dist/serialization/types/CreateFileV1FileType.d.ts +10 -0
- package/dist/serialization/types/CreateFileV1FileType.js +41 -0
- package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +17 -7
- package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +18 -0
- package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +49 -0
- package/dist/serialization/types/EnvelopeDefaultMeta.js +17 -7
- package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +18 -0
- package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +49 -0
- package/dist/serialization/types/ErrorBody.js +17 -7
- package/dist/serialization/types/ErrorDetail.js +17 -7
- package/dist/serialization/types/ErrorMessage.js +17 -7
- package/dist/serialization/types/ErrorModel.js +17 -7
- package/dist/serialization/types/ExternalFile.d.ts +25 -0
- package/dist/serialization/types/ExternalFile.js +56 -0
- package/dist/serialization/types/ExternalSessionAiResponseMetadata.js +17 -7
- package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.js +17 -7
- package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.js +17 -7
- package/dist/serialization/types/ExternalSessionConfig.js +17 -7
- package/dist/serialization/types/ExternalSessionWithConnectionInfo.js +17 -7
- package/dist/serialization/types/FilesResponse.d.ts +18 -0
- package/dist/serialization/types/FilesResponse.js +49 -0
- package/dist/serialization/types/FilesWithPagination.d.ts +15 -0
- package/dist/serialization/types/FilesWithPagination.js +46 -0
- package/dist/serialization/types/GetFileV1.d.ts +21 -0
- package/dist/serialization/types/GetFileV1.js +52 -0
- package/dist/serialization/types/GetFileV1FileType.d.ts +10 -0
- package/dist/serialization/types/{ExtensionConfigurationOutput.js → GetFileV1FileType.js} +19 -14
- package/dist/serialization/types/IntervalMonitorConfig.js +17 -7
- package/dist/serialization/types/Issue.js +17 -7
- package/dist/serialization/types/ListAutomationsOutput.js +17 -7
- package/dist/serialization/types/MicroInteractionConfig.js +17 -7
- package/dist/serialization/types/MicroInteractionConfigWithExperimental.js +17 -7
- package/dist/serialization/types/MicroInteractionExperimentalConfig.js +17 -7
- package/dist/serialization/types/MonitorConfig.js +17 -7
- package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.js +17 -7
- package/dist/serialization/types/OperationOutcome.js +17 -7
- package/dist/serialization/types/OperationOutcomeResponse.js +17 -7
- package/dist/serialization/types/PageQueryConfig.js +17 -7
- package/dist/serialization/types/PageQueryExperimentalConfig.js +17 -7
- package/dist/serialization/types/PaginatedExtractionConfig.js +17 -7
- package/dist/serialization/types/PaginatedExtractionExperimentalConfig.js +17 -7
- package/dist/serialization/types/Pagination.js +17 -7
- package/dist/serialization/types/Proxy.js +17 -7
- package/dist/serialization/types/ProxyConfigurationKind.js +17 -7
- package/dist/serialization/types/ProxyCredentials.js +17 -7
- package/dist/serialization/types/RequestStatusResponse.js +17 -7
- package/dist/serialization/types/ScrapeConfig.js +17 -7
- package/dist/serialization/types/ScrapeResponse.js +17 -7
- package/dist/serialization/types/ScrapeResponseContent.js +17 -7
- package/dist/serialization/types/ScrapeResponseEnvelope.js +17 -7
- package/dist/serialization/types/ScrapeResponseOutput.js +17 -7
- package/dist/serialization/types/ScreenshotConfig.js +17 -7
- package/dist/serialization/types/ScreenshotMetadata.js +17 -7
- package/dist/serialization/types/ScreenshotRequestConfig.js +17 -7
- package/dist/serialization/types/ScrollByConfig.js +17 -7
- package/dist/serialization/types/ScrollToEdgeConfig.js +17 -7
- package/dist/serialization/types/SessionConfigV1.js +17 -7
- package/dist/serialization/types/SessionConfigV1Proxy.js +17 -7
- package/dist/serialization/types/SessionEventMessage.js +17 -7
- package/dist/serialization/types/SessionPageQueryHandlerRequestBody.js +17 -7
- package/dist/serialization/types/SessionResponse.js +17 -7
- package/dist/serialization/types/SessionsResponse.js +17 -7
- package/dist/serialization/types/SessionsWithPagination.js +17 -7
- package/dist/serialization/types/StatusMessage.js +17 -7
- package/dist/serialization/types/StatusMessageStatus.js +17 -7
- package/dist/serialization/types/SummaryConfig.js +17 -7
- package/dist/serialization/types/SummaryExperimentalConfig.js +17 -7
- package/dist/serialization/types/VisualAnalysisConfig.js +17 -7
- package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.js +17 -7
- package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +17 -7
- package/dist/serialization/types/VisualAnalysisConfigScope.js +17 -7
- package/dist/serialization/types/Window.js +17 -7
- package/dist/serialization/types/WindowEventMessage.js +17 -7
- package/dist/serialization/types/WindowId.js +17 -7
- package/dist/serialization/types/WindowIdResponse.js +17 -7
- package/dist/serialization/types/WindowResponse.js +17 -7
- package/dist/serialization/types/index.d.ts +20 -1
- package/dist/serialization/types/index.js +20 -1
- package/dist/utils/batch-operate/SessionQueue.js +2 -2
- package/dist/utils/batch-operate/WindowQueue.js +2 -2
- package/dist/utils/batch-operate/batch-util.d.ts +1 -1
- package/dist/utils/batch-operate/types.d.ts +5 -5
- package/dist/utils/process-screenshots.d.ts +1 -2
- package/dist/utils/process-screenshots.js +1 -2
- package/dist/version.d.ts +1 -0
- package/dist/{api/resources/extensionConfigurations/client/requests/index.js → version.js} +2 -0
- package/dist/wrapper/AirtopClient.d.ts +5 -2
- package/dist/wrapper/AirtopClient.js +24 -8
- package/dist/wrapper/AirtopFiles.d.ts +38 -0
- package/dist/wrapper/AirtopFiles.js +151 -0
- package/dist/wrapper/AirtopRequests.js +2 -2
- package/dist/wrapper/AirtopSessions.js +7 -5
- package/dist/wrapper/AirtopWindows.js +22 -12
- package/environments.d.ts +1 -1
- package/errors/AirtopError.js +2 -1
- package/errors/AirtopTimeoutError.d.ts +1 -1
- package/errors/AirtopTimeoutError.js +2 -2
- package/index.js +17 -7
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/live-view/types.d.ts +1 -1
- package/live-view/types.js +1 -1
- package/package.json +16 -13
- package/reference.md +737 -46
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +17 -7
- package/serialization/resources/files/client/index.d.ts +1 -0
- package/serialization/resources/files/client/index.js +17 -0
- package/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +16 -0
- package/serialization/resources/files/client/requests/CreateFileRestInputV1.js +47 -0
- package/serialization/resources/files/client/requests/index.d.ts +1 -0
- package/serialization/resources/files/client/requests/index.js +5 -0
- package/serialization/resources/files/index.d.ts +2 -0
- package/serialization/resources/files/index.js +18 -0
- package/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +10 -0
- package/serialization/resources/files/types/CreateFileRestInputV1FileType.js +41 -0
- package/serialization/resources/files/types/index.d.ts +1 -0
- package/serialization/resources/files/types/index.js +17 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +21 -8
- package/serialization/resources/sessions/client/requests/SessionRestInputV1.js +17 -7
- package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
- package/serialization/resources/sessions/types/SessionsEventsResponse.js +21 -11
- package/serialization/resources/sessions/types/SessionsEventsResponseError.js +17 -7
- package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +17 -7
- package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +17 -7
- package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +17 -7
- package/serialization/resources/sessions/types/SessionsListRequestStatus.js +17 -7
- package/serialization/resources/sessions/types/index.d.ts +2 -2
- package/serialization/resources/sessions/types/index.js +2 -2
- package/serialization/resources/windows/client/requests/AsyncClickRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +2 -2
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +19 -9
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +17 -7
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +2 -2
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +19 -9
- package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +17 -7
- package/serialization/resources/windows/client/requests/ScrapeContentRequest.js +17 -7
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +17 -7
- package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +17 -7
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +17 -7
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +17 -7
- package/serialization/types/AiPromptResponse.js +17 -7
- package/serialization/types/AiResponseEnvelope.js +17 -7
- package/serialization/types/AirtopProxyConfiguration.js +17 -7
- package/serialization/types/AsyncConfig.js +17 -7
- package/serialization/types/AsyncSessionAiResponseEnvelope.js +17 -7
- package/serialization/types/AutomationOutput.js +17 -7
- package/serialization/types/BrowserWaitNavigationConfig.js +17 -7
- package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +17 -7
- package/serialization/types/ClickConfig.js +17 -7
- package/serialization/types/ClickConfigClickType.js +17 -7
- package/serialization/types/ClientProvidedResponseMetadata.js +17 -7
- package/serialization/types/CreateAutomationRequestBodyConfiguration.js +17 -7
- package/serialization/types/CreateFileV1.d.ts +21 -0
- package/serialization/types/CreateFileV1.js +52 -0
- package/serialization/types/CreateFileV1FileType.d.ts +10 -0
- package/serialization/types/CreateFileV1FileType.js +41 -0
- package/serialization/types/DeleteAutomationOutputWrapperBody.js +17 -7
- package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +18 -0
- package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +49 -0
- package/serialization/types/EnvelopeDefaultMeta.js +17 -7
- package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +18 -0
- package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +49 -0
- package/serialization/types/ErrorBody.js +17 -7
- package/serialization/types/ErrorDetail.js +17 -7
- package/serialization/types/ErrorMessage.js +17 -7
- package/serialization/types/ErrorModel.js +17 -7
- package/serialization/types/ExternalFile.d.ts +25 -0
- package/serialization/types/ExternalFile.js +56 -0
- package/serialization/types/ExternalSessionAiResponseMetadata.js +17 -7
- package/serialization/types/ExternalSessionAiResponseMetadataStatus.js +17 -7
- package/serialization/types/ExternalSessionAiResponseMetadataUsage.js +17 -7
- package/serialization/types/ExternalSessionConfig.js +17 -7
- package/serialization/types/ExternalSessionWithConnectionInfo.js +17 -7
- package/serialization/types/FilesResponse.d.ts +18 -0
- package/serialization/types/FilesResponse.js +49 -0
- package/serialization/types/FilesWithPagination.d.ts +15 -0
- package/serialization/types/FilesWithPagination.js +46 -0
- package/serialization/types/GetFileV1.d.ts +21 -0
- package/serialization/types/GetFileV1.js +52 -0
- package/serialization/types/GetFileV1FileType.d.ts +10 -0
- package/serialization/types/{ExtensionConfigurationOutput.js → GetFileV1FileType.js} +19 -14
- package/serialization/types/IntervalMonitorConfig.js +17 -7
- package/serialization/types/Issue.js +17 -7
- package/serialization/types/ListAutomationsOutput.js +17 -7
- package/serialization/types/MicroInteractionConfig.js +17 -7
- package/serialization/types/MicroInteractionConfigWithExperimental.js +17 -7
- package/serialization/types/MicroInteractionExperimentalConfig.js +17 -7
- package/serialization/types/MonitorConfig.js +17 -7
- package/serialization/types/MonitorConfigIncludeVisualAnalysis.js +17 -7
- package/serialization/types/OperationOutcome.js +17 -7
- package/serialization/types/OperationOutcomeResponse.js +17 -7
- package/serialization/types/PageQueryConfig.js +17 -7
- package/serialization/types/PageQueryExperimentalConfig.js +17 -7
- package/serialization/types/PaginatedExtractionConfig.js +17 -7
- package/serialization/types/PaginatedExtractionExperimentalConfig.js +17 -7
- package/serialization/types/Pagination.js +17 -7
- package/serialization/types/Proxy.js +17 -7
- package/serialization/types/ProxyConfigurationKind.js +17 -7
- package/serialization/types/ProxyCredentials.js +17 -7
- package/serialization/types/RequestStatusResponse.js +17 -7
- package/serialization/types/ScrapeConfig.js +17 -7
- package/serialization/types/ScrapeResponse.js +17 -7
- package/serialization/types/ScrapeResponseContent.js +17 -7
- package/serialization/types/ScrapeResponseEnvelope.js +17 -7
- package/serialization/types/ScrapeResponseOutput.js +17 -7
- package/serialization/types/ScreenshotConfig.js +17 -7
- package/serialization/types/ScreenshotMetadata.js +17 -7
- package/serialization/types/ScreenshotRequestConfig.js +17 -7
- package/serialization/types/ScrollByConfig.js +17 -7
- package/serialization/types/ScrollToEdgeConfig.js +17 -7
- package/serialization/types/SessionConfigV1.js +17 -7
- package/serialization/types/SessionConfigV1Proxy.js +17 -7
- package/serialization/types/SessionEventMessage.js +17 -7
- package/serialization/types/SessionPageQueryHandlerRequestBody.js +17 -7
- package/serialization/types/SessionResponse.js +17 -7
- package/serialization/types/SessionsResponse.js +17 -7
- package/serialization/types/SessionsWithPagination.js +17 -7
- package/serialization/types/StatusMessage.js +17 -7
- package/serialization/types/StatusMessageStatus.js +17 -7
- package/serialization/types/SummaryConfig.js +17 -7
- package/serialization/types/SummaryExperimentalConfig.js +17 -7
- package/serialization/types/VisualAnalysisConfig.js +17 -7
- package/serialization/types/VisualAnalysisConfigPartitionDirection.js +17 -7
- package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +17 -7
- package/serialization/types/VisualAnalysisConfigScope.js +17 -7
- package/serialization/types/Window.js +17 -7
- package/serialization/types/WindowEventMessage.js +17 -7
- package/serialization/types/WindowId.js +17 -7
- package/serialization/types/WindowIdResponse.js +17 -7
- package/serialization/types/WindowResponse.js +17 -7
- package/serialization/types/index.d.ts +20 -1
- package/serialization/types/index.js +20 -1
- package/utils/batch-operate/SessionQueue.js +2 -2
- package/utils/batch-operate/WindowQueue.js +2 -2
- package/utils/batch-operate/batch-util.d.ts +1 -1
- package/utils/batch-operate/types.d.ts +5 -5
- package/utils/process-screenshots.d.ts +1 -2
- package/utils/process-screenshots.js +1 -2
- package/version.d.ts +1 -0
- package/{dist/api/resources/extensionConfigurations/client/index.js → version.js} +2 -0
- package/wrapper/AirtopClient.d.ts +5 -2
- package/wrapper/AirtopClient.js +24 -8
- package/wrapper/AirtopFiles.d.ts +38 -0
- package/wrapper/AirtopFiles.js +151 -0
- package/wrapper/AirtopRequests.js +2 -2
- package/wrapper/AirtopSessions.js +7 -5
- package/wrapper/AirtopWindows.js +22 -12
- package/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
- package/api/resources/extensionConfigurations/client/Client.js +0 -149
- package/api/resources/extensionConfigurations/client/index.d.ts +0 -1
- package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
- package/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
- package/dist/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
- package/dist/api/resources/extensionConfigurations/client/Client.js +0 -149
- package/dist/api/resources/extensionConfigurations/client/index.d.ts +0 -1
- package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
- package/dist/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
- package/dist/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
- package/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
- /package/api/resources/{extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js → files/client/requests/CreateFileRestInputV1.js} +0 -0
- /package/{dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js → api/resources/files/client/requests/FilesListRequest.js} +0 -0
- /package/api/resources/{extensionConfigurations/client → files/client/requests}/index.js +0 -0
- /package/{api/resources/extensionConfigurations → dist/api/resources/files}/client/requests/index.js +0 -0
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
18
18
|
}) : function(o, v) {
|
19
19
|
o["default"] = v;
|
20
20
|
});
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
};
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
22
|
+
var ownKeys = function(o) {
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
24
|
+
var ar = [];
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
26
|
+
return ar;
|
27
|
+
};
|
28
|
+
return ownKeys(o);
|
29
|
+
};
|
30
|
+
return function (mod) {
|
31
|
+
if (mod && mod.__esModule) return mod;
|
32
|
+
var result = {};
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
34
|
+
__setModuleDefault(result, mod);
|
35
|
+
return result;
|
36
|
+
};
|
37
|
+
})();
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
@@ -62,20 +72,12 @@ class Windows {
|
|
62
72
|
* })
|
63
73
|
*/
|
64
74
|
asyncClick(sessionId, windowId, request, requestOptions) {
|
65
|
-
var _a, _b;
|
66
75
|
return __awaiter(this, void 0, void 0, function* () {
|
76
|
+
var _a, _b, _c;
|
67
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
68
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
78
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/click`),
|
69
79
|
method: "POST",
|
70
|
-
headers: {
|
71
|
-
Authorization: yield this._getAuthorizationHeader(),
|
72
|
-
"X-Fern-Language": "JavaScript",
|
73
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
74
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
75
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
76
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
77
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
78
|
-
},
|
80
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
79
81
|
contentType: "application/json",
|
80
82
|
requestType: "json",
|
81
83
|
body: serializers.AsyncClickRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -105,7 +107,7 @@ class Windows {
|
|
105
107
|
body: _response.error.rawBody,
|
106
108
|
});
|
107
109
|
case "timeout":
|
108
|
-
throw new errors.AirtopTimeoutError();
|
110
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/click.");
|
109
111
|
case "unknown":
|
110
112
|
throw new errors.AirtopError({
|
111
113
|
message: _response.error.errorMessage,
|
@@ -124,21 +126,13 @@ class Windows {
|
|
124
126
|
* @example
|
125
127
|
* await client.windows.asyncCreateAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
126
128
|
*/
|
127
|
-
asyncCreateAutomation(
|
128
|
-
|
129
|
-
|
129
|
+
asyncCreateAutomation(sessionId_1, windowId_1) {
|
130
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
131
|
+
var _a, _b, _c;
|
130
132
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
131
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
133
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-automation`),
|
132
134
|
method: "POST",
|
133
|
-
headers: {
|
134
|
-
Authorization: yield this._getAuthorizationHeader(),
|
135
|
-
"X-Fern-Language": "JavaScript",
|
136
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
137
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
138
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
139
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
140
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
141
|
-
},
|
135
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
142
136
|
contentType: "application/json",
|
143
137
|
requestType: "json",
|
144
138
|
body: serializers.AsyncCreateAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -168,7 +162,7 @@ class Windows {
|
|
168
162
|
body: _response.error.rawBody,
|
169
163
|
});
|
170
164
|
case "timeout":
|
171
|
-
throw new errors.AirtopTimeoutError();
|
165
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/create-automation.");
|
172
166
|
case "unknown":
|
173
167
|
throw new errors.AirtopError({
|
174
168
|
message: _response.error.errorMessage,
|
@@ -190,20 +184,12 @@ class Windows {
|
|
190
184
|
* })
|
191
185
|
*/
|
192
186
|
asyncExecuteAutomation(sessionId, windowId, request, requestOptions) {
|
193
|
-
var _a, _b;
|
194
187
|
return __awaiter(this, void 0, void 0, function* () {
|
188
|
+
var _a, _b, _c;
|
195
189
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
196
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
190
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/execute-automation`),
|
197
191
|
method: "POST",
|
198
|
-
headers: {
|
199
|
-
Authorization: yield this._getAuthorizationHeader(),
|
200
|
-
"X-Fern-Language": "JavaScript",
|
201
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
202
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
203
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
204
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
205
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
206
|
-
},
|
192
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
207
193
|
contentType: "application/json",
|
208
194
|
requestType: "json",
|
209
195
|
body: serializers.AsyncExecuteAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -233,7 +219,7 @@ class Windows {
|
|
233
219
|
body: _response.error.rawBody,
|
234
220
|
});
|
235
221
|
case "timeout":
|
236
|
-
throw new errors.AirtopTimeoutError();
|
222
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/execute-automation.");
|
237
223
|
case "unknown":
|
238
224
|
throw new errors.AirtopError({
|
239
225
|
message: _response.error.errorMessage,
|
@@ -253,20 +239,12 @@ class Windows {
|
|
253
239
|
* })
|
254
240
|
*/
|
255
241
|
asyncHover(sessionId, windowId, request, requestOptions) {
|
256
|
-
var _a, _b;
|
257
242
|
return __awaiter(this, void 0, void 0, function* () {
|
243
|
+
var _a, _b, _c;
|
258
244
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
259
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
245
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/hover`),
|
260
246
|
method: "POST",
|
261
|
-
headers: {
|
262
|
-
Authorization: yield this._getAuthorizationHeader(),
|
263
|
-
"X-Fern-Language": "JavaScript",
|
264
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
265
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
266
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
267
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
268
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
269
|
-
},
|
247
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
270
248
|
contentType: "application/json",
|
271
249
|
requestType: "json",
|
272
250
|
body: serializers.AsyncHoverRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -296,7 +274,7 @@ class Windows {
|
|
296
274
|
body: _response.error.rawBody,
|
297
275
|
});
|
298
276
|
case "timeout":
|
299
|
-
throw new errors.AirtopTimeoutError();
|
277
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/hover.");
|
300
278
|
case "unknown":
|
301
279
|
throw new errors.AirtopError({
|
302
280
|
message: _response.error.errorMessage,
|
@@ -316,20 +294,12 @@ class Windows {
|
|
316
294
|
* })
|
317
295
|
*/
|
318
296
|
asyncMonitor(sessionId, windowId, request, requestOptions) {
|
319
|
-
var _a, _b;
|
320
297
|
return __awaiter(this, void 0, void 0, function* () {
|
298
|
+
var _a, _b, _c;
|
321
299
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
322
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
300
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/monitor`),
|
323
301
|
method: "POST",
|
324
|
-
headers: {
|
325
|
-
Authorization: yield this._getAuthorizationHeader(),
|
326
|
-
"X-Fern-Language": "JavaScript",
|
327
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
328
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
329
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
330
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
331
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
332
|
-
},
|
302
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
333
303
|
contentType: "application/json",
|
334
304
|
requestType: "json",
|
335
305
|
body: serializers.AsyncMonitorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -359,7 +329,7 @@ class Windows {
|
|
359
329
|
body: _response.error.rawBody,
|
360
330
|
});
|
361
331
|
case "timeout":
|
362
|
-
throw new errors.AirtopTimeoutError();
|
332
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/monitor.");
|
363
333
|
case "unknown":
|
364
334
|
throw new errors.AirtopError({
|
365
335
|
message: _response.error.errorMessage,
|
@@ -379,20 +349,12 @@ class Windows {
|
|
379
349
|
* })
|
380
350
|
*/
|
381
351
|
asyncPageQuery(sessionId, windowId, request, requestOptions) {
|
382
|
-
var _a, _b;
|
383
352
|
return __awaiter(this, void 0, void 0, function* () {
|
353
|
+
var _a, _b, _c;
|
384
354
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
385
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
355
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/page-query`),
|
386
356
|
method: "POST",
|
387
|
-
headers: {
|
388
|
-
Authorization: yield this._getAuthorizationHeader(),
|
389
|
-
"X-Fern-Language": "JavaScript",
|
390
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
391
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
392
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
393
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
394
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
395
|
-
},
|
357
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
396
358
|
contentType: "application/json",
|
397
359
|
requestType: "json",
|
398
360
|
body: serializers.AsyncPageQueryRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -422,7 +384,7 @@ class Windows {
|
|
422
384
|
body: _response.error.rawBody,
|
423
385
|
});
|
424
386
|
case "timeout":
|
425
|
-
throw new errors.AirtopTimeoutError();
|
387
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/page-query.");
|
426
388
|
case "unknown":
|
427
389
|
throw new errors.AirtopError({
|
428
390
|
message: _response.error.errorMessage,
|
@@ -442,20 +404,12 @@ class Windows {
|
|
442
404
|
* })
|
443
405
|
*/
|
444
406
|
asyncPaginatedExtraction(sessionId, windowId, request, requestOptions) {
|
445
|
-
var _a, _b;
|
446
407
|
return __awaiter(this, void 0, void 0, function* () {
|
408
|
+
var _a, _b, _c;
|
447
409
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
448
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
410
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
|
449
411
|
method: "POST",
|
450
|
-
headers: {
|
451
|
-
Authorization: yield this._getAuthorizationHeader(),
|
452
|
-
"X-Fern-Language": "JavaScript",
|
453
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
454
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
455
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
456
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
457
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
458
|
-
},
|
412
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
459
413
|
contentType: "application/json",
|
460
414
|
requestType: "json",
|
461
415
|
body: serializers.AsyncPaginatedExtractionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -485,7 +439,7 @@ class Windows {
|
|
485
439
|
body: _response.error.rawBody,
|
486
440
|
});
|
487
441
|
case "timeout":
|
488
|
-
throw new errors.AirtopTimeoutError();
|
442
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/paginated-extraction.");
|
489
443
|
case "unknown":
|
490
444
|
throw new errors.AirtopError({
|
491
445
|
message: _response.error.errorMessage,
|
@@ -507,20 +461,12 @@ class Windows {
|
|
507
461
|
* })
|
508
462
|
*/
|
509
463
|
asyncPromptContent(sessionId, windowId, request, requestOptions) {
|
510
|
-
var _a, _b;
|
511
464
|
return __awaiter(this, void 0, void 0, function* () {
|
465
|
+
var _a, _b, _c;
|
512
466
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
513
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
467
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
|
514
468
|
method: "POST",
|
515
|
-
headers: {
|
516
|
-
Authorization: yield this._getAuthorizationHeader(),
|
517
|
-
"X-Fern-Language": "JavaScript",
|
518
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
519
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
520
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
521
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
522
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
523
|
-
},
|
469
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
524
470
|
contentType: "application/json",
|
525
471
|
requestType: "json",
|
526
472
|
body: serializers.AsyncPromptContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -550,7 +496,7 @@ class Windows {
|
|
550
496
|
body: _response.error.rawBody,
|
551
497
|
});
|
552
498
|
case "timeout":
|
553
|
-
throw new errors.AirtopTimeoutError();
|
499
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/prompt-content.");
|
554
500
|
case "unknown":
|
555
501
|
throw new errors.AirtopError({
|
556
502
|
message: _response.error.errorMessage,
|
@@ -569,21 +515,13 @@ class Windows {
|
|
569
515
|
* @example
|
570
516
|
* await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
571
517
|
*/
|
572
|
-
asyncScreenshot(
|
573
|
-
|
574
|
-
|
518
|
+
asyncScreenshot(sessionId_1, windowId_1) {
|
519
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
520
|
+
var _a, _b, _c;
|
575
521
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
576
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
522
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/screenshot`),
|
577
523
|
method: "POST",
|
578
|
-
headers: {
|
579
|
-
Authorization: yield this._getAuthorizationHeader(),
|
580
|
-
"X-Fern-Language": "JavaScript",
|
581
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
582
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
583
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
584
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
585
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
586
|
-
},
|
524
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
587
525
|
contentType: "application/json",
|
588
526
|
requestType: "json",
|
589
527
|
body: serializers.AsyncScreenshotRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -613,7 +551,7 @@ class Windows {
|
|
613
551
|
body: _response.error.rawBody,
|
614
552
|
});
|
615
553
|
case "timeout":
|
616
|
-
throw new errors.AirtopTimeoutError();
|
554
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/screenshot.");
|
617
555
|
case "unknown":
|
618
556
|
throw new errors.AirtopError({
|
619
557
|
message: _response.error.errorMessage,
|
@@ -632,21 +570,13 @@ class Windows {
|
|
632
570
|
* @example
|
633
571
|
* await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
634
572
|
*/
|
635
|
-
asyncSummarizeContent(
|
636
|
-
|
637
|
-
|
573
|
+
asyncSummarizeContent(sessionId_1, windowId_1) {
|
574
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
575
|
+
var _a, _b, _c;
|
638
576
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
639
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
577
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
|
640
578
|
method: "POST",
|
641
|
-
headers: {
|
642
|
-
Authorization: yield this._getAuthorizationHeader(),
|
643
|
-
"X-Fern-Language": "JavaScript",
|
644
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
645
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
646
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
647
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
648
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
649
|
-
},
|
579
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
650
580
|
contentType: "application/json",
|
651
581
|
requestType: "json",
|
652
582
|
body: serializers.AsyncSummarizeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -676,7 +606,7 @@ class Windows {
|
|
676
606
|
body: _response.error.rawBody,
|
677
607
|
});
|
678
608
|
case "timeout":
|
679
|
-
throw new errors.AirtopTimeoutError();
|
609
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/summarize-content.");
|
680
610
|
case "unknown":
|
681
611
|
throw new errors.AirtopError({
|
682
612
|
message: _response.error.errorMessage,
|
@@ -696,20 +626,12 @@ class Windows {
|
|
696
626
|
* })
|
697
627
|
*/
|
698
628
|
asyncType(sessionId, windowId, request, requestOptions) {
|
699
|
-
var _a, _b;
|
700
629
|
return __awaiter(this, void 0, void 0, function* () {
|
630
|
+
var _a, _b, _c;
|
701
631
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
702
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
632
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/type`),
|
703
633
|
method: "POST",
|
704
|
-
headers: {
|
705
|
-
Authorization: yield this._getAuthorizationHeader(),
|
706
|
-
"X-Fern-Language": "JavaScript",
|
707
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
708
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
709
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
710
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
711
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
712
|
-
},
|
634
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
713
635
|
contentType: "application/json",
|
714
636
|
requestType: "json",
|
715
637
|
body: serializers.AsyncTypeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -739,7 +661,7 @@ class Windows {
|
|
739
661
|
body: _response.error.rawBody,
|
740
662
|
});
|
741
663
|
case "timeout":
|
742
|
-
throw new errors.AirtopTimeoutError();
|
664
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/type.");
|
743
665
|
case "unknown":
|
744
666
|
throw new errors.AirtopError({
|
745
667
|
message: _response.error.errorMessage,
|
@@ -757,21 +679,13 @@ class Windows {
|
|
757
679
|
* @example
|
758
680
|
* await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
|
759
681
|
*/
|
760
|
-
create(
|
761
|
-
|
762
|
-
|
682
|
+
create(sessionId_1) {
|
683
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
|
684
|
+
var _a, _b, _c;
|
763
685
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
764
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
686
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows`),
|
765
687
|
method: "POST",
|
766
|
-
headers: {
|
767
|
-
Authorization: yield this._getAuthorizationHeader(),
|
768
|
-
"X-Fern-Language": "JavaScript",
|
769
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
770
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
771
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
772
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
773
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
774
|
-
},
|
688
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
775
689
|
contentType: "application/json",
|
776
690
|
requestType: "json",
|
777
691
|
body: serializers.CreateWindowInputV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -801,7 +715,7 @@ class Windows {
|
|
801
715
|
body: _response.error.rawBody,
|
802
716
|
});
|
803
717
|
case "timeout":
|
804
|
-
throw new errors.AirtopTimeoutError();
|
718
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows.");
|
805
719
|
case "unknown":
|
806
720
|
throw new errors.AirtopError({
|
807
721
|
message: _response.error.errorMessage,
|
@@ -822,9 +736,9 @@ class Windows {
|
|
822
736
|
* screenResolution: "1280x720"
|
823
737
|
* })
|
824
738
|
*/
|
825
|
-
getWindowInfo(
|
826
|
-
|
827
|
-
|
739
|
+
getWindowInfo(sessionId_1, windowId_1) {
|
740
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
741
|
+
var _a, _b, _c;
|
828
742
|
const { includeNavigationBar, disableResize, screenResolution } = request;
|
829
743
|
const _queryParams = {};
|
830
744
|
if (includeNavigationBar != null) {
|
@@ -837,17 +751,9 @@ class Windows {
|
|
837
751
|
_queryParams["screenResolution"] = screenResolution;
|
838
752
|
}
|
839
753
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
840
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
754
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
|
841
755
|
method: "GET",
|
842
|
-
headers: {
|
843
|
-
Authorization: yield this._getAuthorizationHeader(),
|
844
|
-
"X-Fern-Language": "JavaScript",
|
845
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
846
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
847
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
848
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
849
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
850
|
-
},
|
756
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
851
757
|
contentType: "application/json",
|
852
758
|
queryParameters: _queryParams,
|
853
759
|
requestType: "json",
|
@@ -877,7 +783,7 @@ class Windows {
|
|
877
783
|
body: _response.error.rawBody,
|
878
784
|
});
|
879
785
|
case "timeout":
|
880
|
-
throw new errors.AirtopTimeoutError();
|
786
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling GET /sessions/{sessionId}/windows/{windowId}.");
|
881
787
|
case "unknown":
|
882
788
|
throw new errors.AirtopError({
|
883
789
|
message: _response.error.errorMessage,
|
@@ -899,20 +805,12 @@ class Windows {
|
|
899
805
|
* })
|
900
806
|
*/
|
901
807
|
loadUrl(sessionId, windowId, request, requestOptions) {
|
902
|
-
var _a, _b;
|
903
808
|
return __awaiter(this, void 0, void 0, function* () {
|
809
|
+
var _a, _b, _c;
|
904
810
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
905
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
811
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
|
906
812
|
method: "POST",
|
907
|
-
headers: {
|
908
|
-
Authorization: yield this._getAuthorizationHeader(),
|
909
|
-
"X-Fern-Language": "JavaScript",
|
910
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
911
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
912
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
913
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
914
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
915
|
-
},
|
813
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
916
814
|
contentType: "application/json",
|
917
815
|
requestType: "json",
|
918
816
|
body: serializers.WindowLoadUrlV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -942,7 +840,7 @@ class Windows {
|
|
942
840
|
body: _response.error.rawBody,
|
943
841
|
});
|
944
842
|
case "timeout":
|
945
|
-
throw new errors.AirtopTimeoutError();
|
843
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}.");
|
946
844
|
case "unknown":
|
947
845
|
throw new errors.AirtopError({
|
948
846
|
message: _response.error.errorMessage,
|
@@ -961,20 +859,12 @@ class Windows {
|
|
961
859
|
* await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430")
|
962
860
|
*/
|
963
861
|
close(sessionId, windowId, requestOptions) {
|
964
|
-
var _a, _b;
|
965
862
|
return __awaiter(this, void 0, void 0, function* () {
|
863
|
+
var _a, _b, _c;
|
966
864
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
967
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
865
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
|
968
866
|
method: "DELETE",
|
969
|
-
headers: {
|
970
|
-
Authorization: yield this._getAuthorizationHeader(),
|
971
|
-
"X-Fern-Language": "JavaScript",
|
972
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
973
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
974
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
975
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
976
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
977
|
-
},
|
867
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
978
868
|
contentType: "application/json",
|
979
869
|
requestType: "json",
|
980
870
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1003,7 +893,7 @@ class Windows {
|
|
1003
893
|
body: _response.error.rawBody,
|
1004
894
|
});
|
1005
895
|
case "timeout":
|
1006
|
-
throw new errors.AirtopTimeoutError();
|
896
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling DELETE /sessions/{sessionId}/windows/{windowId}.");
|
1007
897
|
case "unknown":
|
1008
898
|
throw new errors.AirtopError({
|
1009
899
|
message: _response.error.errorMessage,
|
@@ -1025,20 +915,12 @@ class Windows {
|
|
1025
915
|
* })
|
1026
916
|
*/
|
1027
917
|
click(sessionId, windowId, request, requestOptions) {
|
1028
|
-
var _a, _b;
|
1029
918
|
return __awaiter(this, void 0, void 0, function* () {
|
919
|
+
var _a, _b, _c;
|
1030
920
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1031
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
921
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/click`),
|
1032
922
|
method: "POST",
|
1033
|
-
headers: {
|
1034
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1035
|
-
"X-Fern-Language": "JavaScript",
|
1036
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1037
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1038
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1039
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1040
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1041
|
-
},
|
923
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1042
924
|
contentType: "application/json",
|
1043
925
|
requestType: "json",
|
1044
926
|
body: serializers.SessionClickHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1068,7 +950,7 @@ class Windows {
|
|
1068
950
|
body: _response.error.rawBody,
|
1069
951
|
});
|
1070
952
|
case "timeout":
|
1071
|
-
throw new errors.AirtopTimeoutError();
|
953
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/click.");
|
1072
954
|
case "unknown":
|
1073
955
|
throw new errors.AirtopError({
|
1074
956
|
message: _response.error.errorMessage,
|
@@ -1090,20 +972,12 @@ class Windows {
|
|
1090
972
|
* })
|
1091
973
|
*/
|
1092
974
|
hover(sessionId, windowId, request, requestOptions) {
|
1093
|
-
var _a, _b;
|
1094
975
|
return __awaiter(this, void 0, void 0, function* () {
|
976
|
+
var _a, _b, _c;
|
1095
977
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1096
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
978
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/hover`),
|
1097
979
|
method: "POST",
|
1098
|
-
headers: {
|
1099
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1100
|
-
"X-Fern-Language": "JavaScript",
|
1101
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1102
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1103
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1104
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1105
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1106
|
-
},
|
980
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1107
981
|
contentType: "application/json",
|
1108
982
|
requestType: "json",
|
1109
983
|
body: serializers.SessionHoverHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1133,7 +1007,7 @@ class Windows {
|
|
1133
1007
|
body: _response.error.rawBody,
|
1134
1008
|
});
|
1135
1009
|
case "timeout":
|
1136
|
-
throw new errors.AirtopTimeoutError();
|
1010
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/hover.");
|
1137
1011
|
case "unknown":
|
1138
1012
|
throw new errors.AirtopError({
|
1139
1013
|
message: _response.error.errorMessage,
|
@@ -1153,20 +1027,12 @@ class Windows {
|
|
1153
1027
|
* })
|
1154
1028
|
*/
|
1155
1029
|
monitor(sessionId, windowId, request, requestOptions) {
|
1156
|
-
var _a, _b;
|
1157
1030
|
return __awaiter(this, void 0, void 0, function* () {
|
1031
|
+
var _a, _b, _c;
|
1158
1032
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1159
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1033
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/monitor`),
|
1160
1034
|
method: "POST",
|
1161
|
-
headers: {
|
1162
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1163
|
-
"X-Fern-Language": "JavaScript",
|
1164
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1165
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1166
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1167
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1168
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1169
|
-
},
|
1035
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1170
1036
|
contentType: "application/json",
|
1171
1037
|
requestType: "json",
|
1172
1038
|
body: serializers.SessionMonitorHandlerRequestBody.jsonOrThrow(request, {
|
@@ -1198,7 +1064,7 @@ class Windows {
|
|
1198
1064
|
body: _response.error.rawBody,
|
1199
1065
|
});
|
1200
1066
|
case "timeout":
|
1201
|
-
throw new errors.AirtopTimeoutError();
|
1067
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/monitor.");
|
1202
1068
|
case "unknown":
|
1203
1069
|
throw new errors.AirtopError({
|
1204
1070
|
message: _response.error.errorMessage,
|
@@ -1220,20 +1086,12 @@ class Windows {
|
|
1220
1086
|
* })
|
1221
1087
|
*/
|
1222
1088
|
pageQuery(sessionId, windowId, request, requestOptions) {
|
1223
|
-
var _a, _b;
|
1224
1089
|
return __awaiter(this, void 0, void 0, function* () {
|
1090
|
+
var _a, _b, _c;
|
1225
1091
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1226
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1092
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/page-query`),
|
1227
1093
|
method: "POST",
|
1228
|
-
headers: {
|
1229
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1230
|
-
"X-Fern-Language": "JavaScript",
|
1231
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1232
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1233
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1234
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1235
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1236
|
-
},
|
1094
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1237
1095
|
contentType: "application/json",
|
1238
1096
|
requestType: "json",
|
1239
1097
|
body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
|
@@ -1265,7 +1123,7 @@ class Windows {
|
|
1265
1123
|
body: _response.error.rawBody,
|
1266
1124
|
});
|
1267
1125
|
case "timeout":
|
1268
|
-
throw new errors.AirtopTimeoutError();
|
1126
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/page-query.");
|
1269
1127
|
case "unknown":
|
1270
1128
|
throw new errors.AirtopError({
|
1271
1129
|
message: _response.error.errorMessage,
|
@@ -1287,20 +1145,12 @@ class Windows {
|
|
1287
1145
|
* })
|
1288
1146
|
*/
|
1289
1147
|
paginatedExtraction(sessionId, windowId, request, requestOptions) {
|
1290
|
-
var _a, _b;
|
1291
1148
|
return __awaiter(this, void 0, void 0, function* () {
|
1149
|
+
var _a, _b, _c;
|
1292
1150
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1293
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1151
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
|
1294
1152
|
method: "POST",
|
1295
|
-
headers: {
|
1296
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1297
|
-
"X-Fern-Language": "JavaScript",
|
1298
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1299
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1300
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1301
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1302
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1303
|
-
},
|
1153
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1304
1154
|
contentType: "application/json",
|
1305
1155
|
requestType: "json",
|
1306
1156
|
body: serializers.SessionPaginatedExtractionHandlerRequestBody.jsonOrThrow(request, {
|
@@ -1332,7 +1182,7 @@ class Windows {
|
|
1332
1182
|
body: _response.error.rawBody,
|
1333
1183
|
});
|
1334
1184
|
case "timeout":
|
1335
|
-
throw new errors.AirtopTimeoutError();
|
1185
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/paginated-extraction.");
|
1336
1186
|
case "unknown":
|
1337
1187
|
throw new errors.AirtopError({
|
1338
1188
|
message: _response.error.errorMessage,
|
@@ -1354,20 +1204,12 @@ class Windows {
|
|
1354
1204
|
* })
|
1355
1205
|
*/
|
1356
1206
|
promptContent(sessionId, windowId, request, requestOptions) {
|
1357
|
-
var _a, _b;
|
1358
1207
|
return __awaiter(this, void 0, void 0, function* () {
|
1208
|
+
var _a, _b, _c;
|
1359
1209
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1360
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1210
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
|
1361
1211
|
method: "POST",
|
1362
|
-
headers: {
|
1363
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1364
|
-
"X-Fern-Language": "JavaScript",
|
1365
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1366
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1367
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1368
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1369
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1370
|
-
},
|
1212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1371
1213
|
contentType: "application/json",
|
1372
1214
|
requestType: "json",
|
1373
1215
|
body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
|
@@ -1399,7 +1241,7 @@ class Windows {
|
|
1399
1241
|
body: _response.error.rawBody,
|
1400
1242
|
});
|
1401
1243
|
case "timeout":
|
1402
|
-
throw new errors.AirtopTimeoutError();
|
1244
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/prompt-content.");
|
1403
1245
|
case "unknown":
|
1404
1246
|
throw new errors.AirtopError({
|
1405
1247
|
message: _response.error.errorMessage,
|
@@ -1418,21 +1260,13 @@ class Windows {
|
|
1418
1260
|
* @example
|
1419
1261
|
* await client.windows.scrapeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
1420
1262
|
*/
|
1421
|
-
scrapeContent(
|
1422
|
-
|
1423
|
-
|
1263
|
+
scrapeContent(sessionId_1, windowId_1) {
|
1264
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
1265
|
+
var _a, _b, _c;
|
1424
1266
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1425
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1267
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scrape-content`),
|
1426
1268
|
method: "POST",
|
1427
|
-
headers: {
|
1428
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1429
|
-
"X-Fern-Language": "JavaScript",
|
1430
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1431
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1432
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1433
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1434
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1435
|
-
},
|
1269
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1436
1270
|
contentType: "application/json",
|
1437
1271
|
requestType: "json",
|
1438
1272
|
body: serializers.ScrapeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1462,7 +1296,7 @@ class Windows {
|
|
1462
1296
|
body: _response.error.rawBody,
|
1463
1297
|
});
|
1464
1298
|
case "timeout":
|
1465
|
-
throw new errors.AirtopTimeoutError();
|
1299
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scrape-content.");
|
1466
1300
|
case "unknown":
|
1467
1301
|
throw new errors.AirtopError({
|
1468
1302
|
message: _response.error.errorMessage,
|
@@ -1481,21 +1315,13 @@ class Windows {
|
|
1481
1315
|
* @example
|
1482
1316
|
* await client.windows.screenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
1483
1317
|
*/
|
1484
|
-
screenshot(
|
1485
|
-
|
1486
|
-
|
1318
|
+
screenshot(sessionId_1, windowId_1) {
|
1319
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
1320
|
+
var _a, _b, _c;
|
1487
1321
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1488
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1322
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/screenshot`),
|
1489
1323
|
method: "POST",
|
1490
|
-
headers: {
|
1491
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1492
|
-
"X-Fern-Language": "JavaScript",
|
1493
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1494
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1495
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1496
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1497
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1498
|
-
},
|
1324
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1499
1325
|
contentType: "application/json",
|
1500
1326
|
requestType: "json",
|
1501
1327
|
body: serializers.SessionScreenshotHandlerRequestBody.jsonOrThrow(request, {
|
@@ -1527,7 +1353,7 @@ class Windows {
|
|
1527
1353
|
body: _response.error.rawBody,
|
1528
1354
|
});
|
1529
1355
|
case "timeout":
|
1530
|
-
throw new errors.AirtopTimeoutError();
|
1356
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/screenshot.");
|
1531
1357
|
case "unknown":
|
1532
1358
|
throw new errors.AirtopError({
|
1533
1359
|
message: _response.error.errorMessage,
|
@@ -1546,21 +1372,13 @@ class Windows {
|
|
1546
1372
|
* @example
|
1547
1373
|
* await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
1548
1374
|
*/
|
1549
|
-
scroll(
|
1550
|
-
|
1551
|
-
|
1375
|
+
scroll(sessionId_1, windowId_1) {
|
1376
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
1377
|
+
var _a, _b, _c;
|
1552
1378
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1553
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1379
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scroll`),
|
1554
1380
|
method: "POST",
|
1555
|
-
headers: {
|
1556
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1557
|
-
"X-Fern-Language": "JavaScript",
|
1558
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1559
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1560
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1561
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1562
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1563
|
-
},
|
1381
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1564
1382
|
contentType: "application/json",
|
1565
1383
|
requestType: "json",
|
1566
1384
|
body: serializers.SessionScrollHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1590,7 +1408,7 @@ class Windows {
|
|
1590
1408
|
body: _response.error.rawBody,
|
1591
1409
|
});
|
1592
1410
|
case "timeout":
|
1593
|
-
throw new errors.AirtopTimeoutError();
|
1411
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scroll.");
|
1594
1412
|
case "unknown":
|
1595
1413
|
throw new errors.AirtopError({
|
1596
1414
|
message: _response.error.errorMessage,
|
@@ -1609,21 +1427,13 @@ class Windows {
|
|
1609
1427
|
* @example
|
1610
1428
|
* await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
1611
1429
|
*/
|
1612
|
-
summarizeContent(
|
1613
|
-
|
1614
|
-
|
1430
|
+
summarizeContent(sessionId_1, windowId_1) {
|
1431
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
|
1432
|
+
var _a, _b, _c;
|
1615
1433
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1616
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1434
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
|
1617
1435
|
method: "POST",
|
1618
|
-
headers: {
|
1619
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1620
|
-
"X-Fern-Language": "JavaScript",
|
1621
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1622
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1623
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1624
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1625
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1626
|
-
},
|
1436
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1627
1437
|
contentType: "application/json",
|
1628
1438
|
requestType: "json",
|
1629
1439
|
body: serializers.SessionSummaryHandlerRequestBody.jsonOrThrow(request, {
|
@@ -1655,7 +1465,7 @@ class Windows {
|
|
1655
1465
|
body: _response.error.rawBody,
|
1656
1466
|
});
|
1657
1467
|
case "timeout":
|
1658
|
-
throw new errors.AirtopTimeoutError();
|
1468
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/summarize-content.");
|
1659
1469
|
case "unknown":
|
1660
1470
|
throw new errors.AirtopError({
|
1661
1471
|
message: _response.error.errorMessage,
|
@@ -1677,20 +1487,12 @@ class Windows {
|
|
1677
1487
|
* })
|
1678
1488
|
*/
|
1679
1489
|
type(sessionId, windowId, request, requestOptions) {
|
1680
|
-
var _a, _b;
|
1681
1490
|
return __awaiter(this, void 0, void 0, function* () {
|
1491
|
+
var _a, _b, _c;
|
1682
1492
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
1683
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
1493
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/type`),
|
1684
1494
|
method: "POST",
|
1685
|
-
headers: {
|
1686
|
-
Authorization: yield this._getAuthorizationHeader(),
|
1687
|
-
"X-Fern-Language": "JavaScript",
|
1688
|
-
"X-Fern-SDK-Name": "@airtop/sdk",
|
1689
|
-
"X-Fern-SDK-Version": "0.1.34-beta0",
|
1690
|
-
"User-Agent": "@airtop/sdk/0.1.34-beta0",
|
1691
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
1692
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
1693
|
-
},
|
1495
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
1694
1496
|
contentType: "application/json",
|
1695
1497
|
requestType: "json",
|
1696
1498
|
body: serializers.SessionTypeHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1720,7 +1522,7 @@ class Windows {
|
|
1720
1522
|
body: _response.error.rawBody,
|
1721
1523
|
});
|
1722
1524
|
case "timeout":
|
1723
|
-
throw new errors.AirtopTimeoutError();
|
1525
|
+
throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/type.");
|
1724
1526
|
case "unknown":
|
1725
1527
|
throw new errors.AirtopError({
|
1726
1528
|
message: _response.error.errorMessage,
|