browser-use-sdk 1.2.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +130 -317
- package/dist/cjs/Client.d.ts +46 -0
- package/dist/cjs/Client.js +79 -0
- package/dist/cjs/api/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +8 -0
- package/dist/cjs/api/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +9 -0
- package/dist/cjs/api/errors/PaymentRequiredError.js +52 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +5 -0
- package/dist/cjs/api/errors/index.js +21 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/accounts/client/Client.js +123 -0
- package/dist/cjs/api/resources/accounts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/client/index.js +2 -0
- package/dist/cjs/api/resources/accounts/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/index.js +17 -0
- package/dist/cjs/api/resources/files/client/Client.d.ts +72 -0
- package/dist/cjs/api/resources/files/client/Client.js +210 -0
- package/dist/cjs/api/resources/files/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/files/client/index.js +17 -0
- package/dist/cjs/api/resources/files/client/requests/UploadFileRequest.d.ts +40 -0
- package/dist/cjs/api/resources/files/client/requests/UploadFileRequest.js +25 -0
- package/dist/cjs/api/resources/files/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/files/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/files/index.d.ts +1 -0
- package/dist/cjs/api/resources/files/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +9 -0
- package/dist/cjs/api/resources/index.js +48 -0
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +93 -0
- package/dist/cjs/api/resources/profiles/client/Client.js +319 -0
- package/dist/cjs/api/resources/profiles/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/client/index.js +17 -0
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.js +5 -0
- package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/profiles/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/index.js +17 -0
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +146 -0
- package/dist/cjs/api/resources/sessions/client/Client.js +573 -0
- package/dist/cjs/api/resources/sessions/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/sessions/client/index.js +17 -0
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +14 -0
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.js +5 -0
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.ts +13 -0
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.js +5 -0
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.d.ts +9 -0
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.js +5 -0
- package/dist/cjs/api/resources/sessions/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/sessions/index.d.ts +1 -0
- package/dist/cjs/api/resources/sessions/index.js +17 -0
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +113 -0
- package/dist/cjs/api/resources/tasks/client/Client.js +411 -0
- package/dist/cjs/api/resources/tasks/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tasks/client/index.js +17 -0
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +40 -0
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.js +5 -0
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.ts +16 -0
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.js +5 -0
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.d.ts +14 -0
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.js +5 -0
- package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/tasks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tasks/index.d.ts +1 -0
- package/dist/cjs/api/resources/tasks/index.js +17 -0
- package/dist/cjs/api/types/AccountNotFoundError.d.ts +9 -0
- package/dist/cjs/api/types/AccountNotFoundError.js +5 -0
- package/dist/cjs/api/types/AccountView.d.ts +18 -0
- package/dist/cjs/api/types/AccountView.js +5 -0
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/BadRequestErrorBody.js +5 -0
- package/dist/cjs/api/types/DownloadUrlGenerationError.d.ts +9 -0
- package/dist/cjs/api/types/DownloadUrlGenerationError.js +5 -0
- package/dist/cjs/api/types/FileView.d.ts +12 -0
- package/dist/cjs/api/types/FileView.js +5 -0
- package/dist/cjs/api/types/HttpValidationError.d.ts +7 -0
- package/dist/cjs/api/types/HttpValidationError.js +5 -0
- package/dist/cjs/api/types/InsufficientCreditsError.d.ts +9 -0
- package/dist/cjs/api/types/InsufficientCreditsError.js +5 -0
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +9 -0
- package/dist/cjs/api/types/InternalServerErrorBody.js +5 -0
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/NotFoundErrorBody.js +5 -0
- package/dist/cjs/api/types/OutputFileNotFoundError.d.ts +9 -0
- package/dist/cjs/api/types/OutputFileNotFoundError.js +5 -0
- package/dist/cjs/api/types/ProfileListResponse.d.ts +17 -0
- package/dist/cjs/api/types/ProfileListResponse.js +5 -0
- package/dist/cjs/api/types/ProfileNotFoundError.d.ts +9 -0
- package/dist/cjs/api/types/ProfileNotFoundError.js +5 -0
- package/dist/cjs/api/types/ProfileView.d.ts +18 -0
- package/dist/cjs/api/types/ProfileView.js +5 -0
- package/dist/cjs/api/types/ProxyCountryCode.d.ts +16 -0
- package/dist/cjs/api/types/ProxyCountryCode.js +18 -0
- package/dist/cjs/api/types/SessionHasRunningTaskError.d.ts +9 -0
- package/dist/cjs/api/types/SessionHasRunningTaskError.js +5 -0
- package/dist/cjs/api/types/SessionItemView.d.ts +19 -0
- package/dist/cjs/api/types/SessionItemView.js +5 -0
- package/dist/cjs/api/types/SessionListResponse.d.ts +17 -0
- package/dist/cjs/api/types/SessionListResponse.js +5 -0
- package/dist/cjs/api/types/SessionNotFoundError.d.ts +9 -0
- package/dist/cjs/api/types/SessionNotFoundError.js +5 -0
- package/dist/cjs/api/types/SessionStatus.d.ts +15 -0
- package/dist/cjs/api/types/SessionStatus.js +10 -0
- package/dist/cjs/api/types/SessionStoppedError.d.ts +9 -0
- package/dist/cjs/api/types/SessionStoppedError.js +5 -0
- package/dist/cjs/api/types/SessionUpdateAction.d.ts +10 -0
- package/dist/cjs/api/types/SessionUpdateAction.js +5 -0
- package/dist/cjs/api/types/SessionView.d.ts +23 -0
- package/dist/cjs/api/types/SessionView.js +5 -0
- package/dist/cjs/api/types/ShareNotFoundError.d.ts +9 -0
- package/dist/cjs/api/types/ShareNotFoundError.js +5 -0
- package/dist/cjs/api/types/ShareView.d.ts +16 -0
- package/dist/cjs/api/types/ShareView.js +5 -0
- package/dist/cjs/api/types/SupportedLlMs.d.ts +17 -0
- package/dist/cjs/api/types/SupportedLlMs.js +19 -0
- package/dist/cjs/api/types/TaskCreatedResponse.d.ts +10 -0
- package/dist/cjs/api/types/TaskCreatedResponse.js +5 -0
- package/dist/cjs/api/types/TaskItemView.d.ts +32 -0
- package/dist/cjs/api/types/TaskItemView.js +5 -0
- package/dist/cjs/api/types/TaskListResponse.d.ts +17 -0
- package/dist/cjs/api/types/TaskListResponse.js +5 -0
- package/dist/cjs/api/types/TaskLogFileResponse.d.ts +10 -0
- package/dist/cjs/api/types/TaskLogFileResponse.js +5 -0
- package/dist/cjs/api/types/TaskNotFoundError.d.ts +9 -0
- package/dist/cjs/api/types/TaskNotFoundError.js +5 -0
- package/dist/cjs/api/types/TaskOutputFileResponse.d.ts +14 -0
- package/dist/cjs/api/types/TaskOutputFileResponse.js +5 -0
- package/dist/cjs/api/types/TaskStatus.d.ts +19 -0
- package/dist/cjs/api/types/TaskStatus.js +12 -0
- package/dist/cjs/api/types/TaskStepView.d.ts +22 -0
- package/dist/cjs/api/types/TaskStepView.js +5 -0
- package/dist/cjs/api/types/TaskUpdateAction.d.ts +19 -0
- package/dist/cjs/api/types/TaskUpdateAction.js +12 -0
- package/dist/cjs/api/types/TaskView.d.ts +34 -0
- package/dist/cjs/api/types/TaskView.js +5 -0
- package/dist/cjs/api/types/UnsupportedContentTypeError.d.ts +9 -0
- package/dist/cjs/api/types/UnsupportedContentTypeError.js +5 -0
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +18 -0
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +5 -0
- package/dist/cjs/api/types/ValidationError.d.ts +14 -0
- package/dist/cjs/api/types/ValidationError.js +5 -0
- package/dist/cjs/api/types/index.d.ts +38 -0
- package/dist/cjs/api/types/index.js +54 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/cjs/core/fetcher/Fetcher.js +120 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
- package/dist/cjs/core/fetcher/index.d.ts +9 -0
- package/dist/cjs/core/fetcher/index.js +15 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
- package/dist/cjs/core/fetcher/signals.d.ts +11 -0
- package/dist/cjs/core/fetcher/signals.js +36 -0
- package/dist/cjs/core/headers.d.ts +3 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +3 -0
- package/dist/cjs/core/index.js +42 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/url/index.d.ts +2 -0
- package/dist/cjs/core/url/index.js +7 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +69 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/environments.d.ts +7 -0
- package/dist/cjs/environments.js +9 -0
- package/dist/cjs/errors/BrowserUseError.d.ts +15 -0
- package/dist/cjs/errors/BrowserUseError.js +30 -0
- package/dist/cjs/errors/BrowserUseTimeoutError.d.ts +6 -0
- package/dist/cjs/errors/BrowserUseTimeoutError.js +13 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/index.js +47 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/cjs/wrapper/BrowserUseClient.d.ts +6 -0
- package/dist/cjs/wrapper/BrowserUseClient.js +12 -0
- package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +15 -0
- package/dist/cjs/wrapper/api/BrowserUseTasks.js +89 -0
- package/dist/cjs/wrapper/lib/parse.d.ts +69 -0
- package/dist/cjs/wrapper/lib/parse.js +212 -0
- package/dist/cjs/wrapper/lib/types.d.ts +74 -0
- package/dist/cjs/wrapper/lib/types.js +13 -0
- package/dist/cjs/wrapper/lib/webhooks.d.ts +72 -0
- package/dist/cjs/wrapper/lib/webhooks.js +97 -0
- package/dist/esm/Client.d.mts +46 -0
- package/dist/esm/Client.mjs +42 -0
- package/dist/esm/api/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +8 -0
- package/dist/esm/api/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +9 -0
- package/dist/esm/api/errors/PaymentRequiredError.mjs +15 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +8 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +5 -0
- package/dist/esm/api/errors/index.mjs +5 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/accounts/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/accounts/client/Client.mjs +86 -0
- package/dist/esm/api/resources/accounts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/accounts/client/index.mjs +1 -0
- package/dist/esm/api/resources/accounts/index.d.mts +1 -0
- package/dist/esm/api/resources/accounts/index.mjs +1 -0
- package/dist/esm/api/resources/files/client/Client.d.mts +72 -0
- package/dist/esm/api/resources/files/client/Client.mjs +173 -0
- package/dist/esm/api/resources/files/client/index.d.mts +2 -0
- package/dist/esm/api/resources/files/client/index.mjs +1 -0
- package/dist/esm/api/resources/files/client/requests/UploadFileRequest.d.mts +40 -0
- package/dist/esm/api/resources/files/client/requests/UploadFileRequest.mjs +22 -0
- package/dist/esm/api/resources/files/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/files/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/files/index.d.mts +1 -0
- package/dist/esm/api/resources/files/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +9 -0
- package/dist/esm/api/resources/index.mjs +9 -0
- package/dist/esm/api/resources/profiles/client/Client.d.mts +93 -0
- package/dist/esm/api/resources/profiles/client/Client.mjs +282 -0
- package/dist/esm/api/resources/profiles/client/index.d.mts +2 -0
- package/dist/esm/api/resources/profiles/client/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.mjs +4 -0
- package/dist/esm/api/resources/profiles/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/profiles/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/index.mjs +1 -0
- package/dist/esm/api/resources/sessions/client/Client.d.mts +146 -0
- package/dist/esm/api/resources/sessions/client/Client.mjs +536 -0
- package/dist/esm/api/resources/sessions/client/index.d.mts +2 -0
- package/dist/esm/api/resources/sessions/client/index.mjs +1 -0
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +14 -0
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.mjs +4 -0
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.mts +13 -0
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.mjs +4 -0
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +9 -0
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.mjs +4 -0
- package/dist/esm/api/resources/sessions/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/sessions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/sessions/index.d.mts +1 -0
- package/dist/esm/api/resources/sessions/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/client/Client.d.mts +113 -0
- package/dist/esm/api/resources/tasks/client/Client.mjs +374 -0
- package/dist/esm/api/resources/tasks/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tasks/client/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +40 -0
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.mjs +4 -0
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.mts +16 -0
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.mjs +4 -0
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.d.mts +14 -0
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.mjs +4 -0
- package/dist/esm/api/resources/tasks/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/tasks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tasks/index.d.mts +1 -0
- package/dist/esm/api/resources/tasks/index.mjs +1 -0
- package/dist/esm/api/types/AccountNotFoundError.d.mts +9 -0
- package/dist/esm/api/types/AccountNotFoundError.mjs +4 -0
- package/dist/esm/api/types/AccountView.d.mts +18 -0
- package/dist/esm/api/types/AccountView.mjs +4 -0
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +5 -0
- package/dist/esm/api/types/BadRequestErrorBody.mjs +4 -0
- package/dist/esm/api/types/DownloadUrlGenerationError.d.mts +9 -0
- package/dist/esm/api/types/DownloadUrlGenerationError.mjs +4 -0
- package/dist/esm/api/types/FileView.d.mts +12 -0
- package/dist/esm/api/types/FileView.mjs +4 -0
- package/dist/esm/api/types/HttpValidationError.d.mts +7 -0
- package/dist/esm/api/types/HttpValidationError.mjs +4 -0
- package/dist/esm/api/types/InsufficientCreditsError.d.mts +9 -0
- package/dist/esm/api/types/InsufficientCreditsError.mjs +4 -0
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +9 -0
- package/dist/esm/api/types/InternalServerErrorBody.mjs +4 -0
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +5 -0
- package/dist/esm/api/types/NotFoundErrorBody.mjs +4 -0
- package/dist/esm/api/types/OutputFileNotFoundError.d.mts +9 -0
- package/dist/esm/api/types/OutputFileNotFoundError.mjs +4 -0
- package/dist/esm/api/types/ProfileListResponse.d.mts +17 -0
- package/dist/esm/api/types/ProfileListResponse.mjs +4 -0
- package/dist/esm/api/types/ProfileNotFoundError.d.mts +9 -0
- package/dist/esm/api/types/ProfileNotFoundError.mjs +4 -0
- package/dist/esm/api/types/ProfileView.d.mts +18 -0
- package/dist/esm/api/types/ProfileView.mjs +4 -0
- package/dist/esm/api/types/ProxyCountryCode.d.mts +16 -0
- package/dist/esm/api/types/ProxyCountryCode.mjs +15 -0
- package/dist/esm/api/types/SessionHasRunningTaskError.d.mts +9 -0
- package/dist/esm/api/types/SessionHasRunningTaskError.mjs +4 -0
- package/dist/esm/api/types/SessionItemView.d.mts +19 -0
- package/dist/esm/api/types/SessionItemView.mjs +4 -0
- package/dist/esm/api/types/SessionListResponse.d.mts +17 -0
- package/dist/esm/api/types/SessionListResponse.mjs +4 -0
- package/dist/esm/api/types/SessionNotFoundError.d.mts +9 -0
- package/dist/esm/api/types/SessionNotFoundError.mjs +4 -0
- package/dist/esm/api/types/SessionStatus.d.mts +15 -0
- package/dist/esm/api/types/SessionStatus.mjs +7 -0
- package/dist/esm/api/types/SessionStoppedError.d.mts +9 -0
- package/dist/esm/api/types/SessionStoppedError.mjs +4 -0
- package/dist/esm/api/types/SessionUpdateAction.d.mts +10 -0
- package/dist/esm/api/types/SessionUpdateAction.mjs +4 -0
- package/dist/esm/api/types/SessionView.d.mts +23 -0
- package/dist/esm/api/types/SessionView.mjs +4 -0
- package/dist/esm/api/types/ShareNotFoundError.d.mts +9 -0
- package/dist/esm/api/types/ShareNotFoundError.mjs +4 -0
- package/dist/esm/api/types/ShareView.d.mts +16 -0
- package/dist/esm/api/types/ShareView.mjs +4 -0
- package/dist/esm/api/types/SupportedLlMs.d.mts +17 -0
- package/dist/esm/api/types/SupportedLlMs.mjs +16 -0
- package/dist/esm/api/types/TaskCreatedResponse.d.mts +10 -0
- package/dist/esm/api/types/TaskCreatedResponse.mjs +4 -0
- package/dist/esm/api/types/TaskItemView.d.mts +32 -0
- package/dist/esm/api/types/TaskItemView.mjs +4 -0
- package/dist/esm/api/types/TaskListResponse.d.mts +17 -0
- package/dist/esm/api/types/TaskListResponse.mjs +4 -0
- package/dist/esm/api/types/TaskLogFileResponse.d.mts +10 -0
- package/dist/esm/api/types/TaskLogFileResponse.mjs +4 -0
- package/dist/esm/api/types/TaskNotFoundError.d.mts +9 -0
- package/dist/esm/api/types/TaskNotFoundError.mjs +4 -0
- package/dist/esm/api/types/TaskOutputFileResponse.d.mts +14 -0
- package/dist/esm/api/types/TaskOutputFileResponse.mjs +4 -0
- package/dist/esm/api/types/TaskStatus.d.mts +19 -0
- package/dist/esm/api/types/TaskStatus.mjs +9 -0
- package/dist/esm/api/types/TaskStepView.d.mts +22 -0
- package/dist/esm/api/types/TaskStepView.mjs +4 -0
- package/dist/esm/api/types/TaskUpdateAction.d.mts +19 -0
- package/dist/esm/api/types/TaskUpdateAction.mjs +9 -0
- package/dist/esm/api/types/TaskView.d.mts +34 -0
- package/dist/esm/api/types/TaskView.mjs +4 -0
- package/dist/esm/api/types/UnsupportedContentTypeError.d.mts +9 -0
- package/dist/esm/api/types/UnsupportedContentTypeError.mjs +4 -0
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +18 -0
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +4 -0
- package/dist/esm/api/types/ValidationError.d.mts +14 -0
- package/dist/esm/api/types/ValidationError.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +38 -0
- package/dist/esm/api/types/index.mjs +38 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
- package/dist/esm/core/fetcher/index.d.mts +9 -0
- package/dist/esm/core/fetcher/index.mjs +5 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
- package/dist/esm/core/fetcher/signals.d.mts +11 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/headers.d.mts +3 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +3 -0
- package/dist/esm/core/index.mjs +3 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/url/index.d.mts +2 -0
- package/dist/esm/core/url/index.mjs +2 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +66 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.d.mts +7 -0
- package/dist/esm/environments.mjs +6 -0
- package/dist/esm/errors/BrowserUseError.d.mts +15 -0
- package/dist/esm/errors/BrowserUseError.mjs +26 -0
- package/dist/esm/errors/BrowserUseTimeoutError.d.mts +6 -0
- package/dist/esm/errors/BrowserUseTimeoutError.mjs +9 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/index.d.mts +7 -0
- package/dist/esm/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/dist/esm/wrapper/BrowserUseClient.d.mts +6 -0
- package/dist/esm/wrapper/BrowserUseClient.mjs +8 -0
- package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +15 -0
- package/dist/esm/wrapper/api/BrowserUseTasks.mjs +52 -0
- package/dist/esm/wrapper/lib/parse.d.mts +69 -0
- package/dist/esm/wrapper/lib/parse.mjs +203 -0
- package/dist/esm/wrapper/lib/types.d.mts +74 -0
- package/dist/esm/wrapper/lib/types.mjs +9 -0
- package/dist/esm/wrapper/lib/webhooks.d.mts +72 -0
- package/dist/esm/wrapper/lib/webhooks.mjs +89 -0
- package/package.json +83 -158
- package/reference.md +1302 -0
- package/CHANGELOG.md +0 -157
- package/LICENSE +0 -201
- package/api-promise.d.mts +0 -2
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -2
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -2
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -192
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -192
- package/client.d.ts.map +0 -1
- package/client.js +0 -473
- package/client.js.map +0 -1
- package/client.mjs +0 -469
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -74
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -70
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -97
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -2
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -2
- package/error.d.ts.map +0 -1
- package/error.js +0 -6
- package/error.js.map +0 -1
- package/error.mjs +0 -2
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -6
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -6
- package/index.d.ts.map +0 -1
- package/index.js +0 -30
- package/index.js.map +0 -1
- package/index.mjs +0 -7
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -36
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -79
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -74
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -35
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -32
- package/internal/parse.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -75
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -75
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -10
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -4
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -3
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -20
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -20
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -92
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -85
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -85
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -38
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -33
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -18
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -86
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -80
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -19
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -15
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -112
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -94
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -7
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -7
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -11
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -8
- package/internal/utils.mjs.map +0 -1
- package/lib/bin/auth.d.mts +0 -10
- package/lib/bin/auth.d.mts.map +0 -1
- package/lib/bin/auth.d.ts +0 -10
- package/lib/bin/auth.d.ts.map +0 -1
- package/lib/bin/auth.js +0 -52
- package/lib/bin/auth.js.map +0 -1
- package/lib/bin/auth.mjs +0 -47
- package/lib/bin/auth.mjs.map +0 -1
- package/lib/bin/cli.d.mts +0 -3
- package/lib/bin/cli.d.mts.map +0 -1
- package/lib/bin/cli.d.ts +0 -3
- package/lib/bin/cli.d.ts.map +0 -1
- package/lib/bin/cli.js +0 -12
- package/lib/bin/cli.js.map +0 -1
- package/lib/bin/cli.mjs +0 -10
- package/lib/bin/cli.mjs.map +0 -1
- package/lib/bin/commands/listen.d.mts +0 -3
- package/lib/bin/commands/listen.d.mts.map +0 -1
- package/lib/bin/commands/listen.d.ts +0 -3
- package/lib/bin/commands/listen.d.ts.map +0 -1
- package/lib/bin/commands/listen.js +0 -143
- package/lib/bin/commands/listen.js.map +0 -1
- package/lib/bin/commands/listen.mjs +0 -140
- package/lib/bin/commands/listen.mjs.map +0 -1
- package/lib/nextjs/hooks/useBrowserUse.d.mts +0 -7
- package/lib/nextjs/hooks/useBrowserUse.d.mts.map +0 -1
- package/lib/nextjs/hooks/useBrowserUse.d.ts +0 -7
- package/lib/nextjs/hooks/useBrowserUse.d.ts.map +0 -1
- package/lib/nextjs/hooks/useBrowserUse.js +0 -30
- package/lib/nextjs/hooks/useBrowserUse.js.map +0 -1
- package/lib/nextjs/hooks/useBrowserUse.mjs +0 -27
- package/lib/nextjs/hooks/useBrowserUse.mjs.map +0 -1
- package/lib/nextjs/server/utils.d.mts +0 -26
- package/lib/nextjs/server/utils.d.mts.map +0 -1
- package/lib/nextjs/server/utils.d.ts +0 -26
- package/lib/nextjs/server/utils.d.ts.map +0 -1
- package/lib/nextjs/server/utils.js +0 -42
- package/lib/nextjs/server/utils.js.map +0 -1
- package/lib/nextjs/server/utils.mjs +0 -39
- package/lib/nextjs/server/utils.mjs.map +0 -1
- package/lib/parse.d.mts +0 -11
- package/lib/parse.d.mts.map +0 -1
- package/lib/parse.d.ts +0 -11
- package/lib/parse.d.ts.map +0 -1
- package/lib/parse.js +0 -32
- package/lib/parse.js.map +0 -1
- package/lib/parse.mjs +0 -27
- package/lib/parse.mjs.map +0 -1
- package/lib/stream.d.mts +0 -7
- package/lib/stream.d.mts.map +0 -1
- package/lib/stream.d.ts +0 -7
- package/lib/stream.d.ts.map +0 -1
- package/lib/stream.js +0 -16
- package/lib/stream.js.map +0 -1
- package/lib/stream.mjs +0 -12
- package/lib/stream.mjs.map +0 -1
- package/lib/types.d.mts +0 -75
- package/lib/types.d.mts.map +0 -1
- package/lib/types.d.ts +0 -75
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -14
- package/lib/types.js.map +0 -1
- package/lib/types.mjs +0 -10
- package/lib/types.mjs.map +0 -1
- package/lib/webhooks.d.mts +0 -73
- package/lib/webhooks.d.mts.map +0 -1
- package/lib/webhooks.d.ts +0 -73
- package/lib/webhooks.d.ts.map +0 -1
- package/lib/webhooks.js +0 -85
- package/lib/webhooks.js.map +0 -1
- package/lib/webhooks.mjs +0 -79
- package/lib/webhooks.mjs.map +0 -1
- package/resource.d.mts +0 -2
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -2
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -6
- package/resource.js.map +0 -1
- package/resource.mjs +0 -2
- package/resource.mjs.map +0 -1
- package/resources/agent-profiles.d.mts +0 -174
- package/resources/agent-profiles.d.mts.map +0 -1
- package/resources/agent-profiles.d.ts +0 -174
- package/resources/agent-profiles.d.ts.map +0 -1
- package/resources/agent-profiles.js +0 -125
- package/resources/agent-profiles.js.map +0 -1
- package/resources/agent-profiles.mjs +0 -121
- package/resources/agent-profiles.mjs.map +0 -1
- package/resources/browser-profiles.d.mts +0 -179
- package/resources/browser-profiles.d.mts.map +0 -1
- package/resources/browser-profiles.d.ts +0 -179
- package/resources/browser-profiles.d.ts.map +0 -1
- package/resources/browser-profiles.js +0 -126
- package/resources/browser-profiles.js.map +0 -1
- package/resources/browser-profiles.mjs +0 -122
- package/resources/browser-profiles.mjs.map +0 -1
- package/resources/index.d.mts +0 -6
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -6
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -15
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -7
- package/resources/index.mjs.map +0 -1
- package/resources/sessions/index.d.mts +0 -3
- package/resources/sessions/index.d.mts.map +0 -1
- package/resources/sessions/index.d.ts +0 -3
- package/resources/sessions/index.d.ts.map +0 -1
- package/resources/sessions/index.js +0 -9
- package/resources/sessions/index.js.map +0 -1
- package/resources/sessions/index.mjs +0 -4
- package/resources/sessions/index.mjs.map +0 -1
- package/resources/sessions/public-share.d.mts +0 -89
- package/resources/sessions/public-share.d.mts.map +0 -1
- package/resources/sessions/public-share.d.ts +0 -89
- package/resources/sessions/public-share.d.ts.map +0 -1
- package/resources/sessions/public-share.js +0 -86
- package/resources/sessions/public-share.js.map +0 -1
- package/resources/sessions/public-share.mjs +0 -82
- package/resources/sessions/public-share.mjs.map +0 -1
- package/resources/sessions/sessions.d.mts +0 -186
- package/resources/sessions/sessions.d.mts.map +0 -1
- package/resources/sessions/sessions.d.ts +0 -186
- package/resources/sessions/sessions.d.ts.map +0 -1
- package/resources/sessions/sessions.js +0 -113
- package/resources/sessions/sessions.js.map +0 -1
- package/resources/sessions/sessions.mjs +0 -108
- package/resources/sessions/sessions.mjs.map +0 -1
- package/resources/sessions.d.mts +0 -2
- package/resources/sessions.d.mts.map +0 -1
- package/resources/sessions.d.ts +0 -2
- package/resources/sessions.d.ts.map +0 -1
- package/resources/sessions.js +0 -6
- package/resources/sessions.js.map +0 -1
- package/resources/sessions.mjs +0 -3
- package/resources/sessions.mjs.map +0 -1
- package/resources/tasks.d.mts +0 -529
- package/resources/tasks.d.mts.map +0 -1
- package/resources/tasks.d.ts +0 -529
- package/resources/tasks.d.ts.map +0 -1
- package/resources/tasks.js +0 -238
- package/resources/tasks.js.map +0 -1
- package/resources/tasks.mjs +0 -234
- package/resources/tasks.mjs.map +0 -1
- package/resources/users/index.d.mts +0 -3
- package/resources/users/index.d.mts.map +0 -1
- package/resources/users/index.d.ts +0 -3
- package/resources/users/index.d.ts.map +0 -1
- package/resources/users/index.js +0 -9
- package/resources/users/index.js.map +0 -1
- package/resources/users/index.mjs +0 -4
- package/resources/users/index.mjs.map +0 -1
- package/resources/users/me/files.d.mts +0 -64
- package/resources/users/me/files.d.mts.map +0 -1
- package/resources/users/me/files.d.ts +0 -64
- package/resources/users/me/files.d.ts.map +0 -1
- package/resources/users/me/files.js +0 -43
- package/resources/users/me/files.js.map +0 -1
- package/resources/users/me/files.mjs +0 -39
- package/resources/users/me/files.mjs.map +0 -1
- package/resources/users/me/index.d.mts +0 -3
- package/resources/users/me/index.d.mts.map +0 -1
- package/resources/users/me/index.d.ts +0 -3
- package/resources/users/me/index.d.ts.map +0 -1
- package/resources/users/me/index.js +0 -9
- package/resources/users/me/index.js.map +0 -1
- package/resources/users/me/index.mjs +0 -4
- package/resources/users/me/index.mjs.map +0 -1
- package/resources/users/me/me.d.mts +0 -50
- package/resources/users/me/me.d.mts.map +0 -1
- package/resources/users/me/me.d.ts +0 -50
- package/resources/users/me/me.d.ts.map +0 -1
- package/resources/users/me/me.js +0 -41
- package/resources/users/me/me.js.map +0 -1
- package/resources/users/me/me.mjs +0 -36
- package/resources/users/me/me.mjs.map +0 -1
- package/resources/users/me.d.mts +0 -2
- package/resources/users/me.d.mts.map +0 -1
- package/resources/users/me.d.ts +0 -2
- package/resources/users/me.d.ts.map +0 -1
- package/resources/users/me.js +0 -6
- package/resources/users/me.js.map +0 -1
- package/resources/users/me.mjs +0 -3
- package/resources/users/me.mjs.map +0 -1
- package/resources/users/users.d.mts +0 -10
- package/resources/users/users.d.mts.map +0 -1
- package/resources/users/users.d.ts +0 -10
- package/resources/users/users.d.ts.map +0 -1
- package/resources/users/users.js +0 -17
- package/resources/users/users.js.map +0 -1
- package/resources/users/users.mjs +0 -12
- package/resources/users/users.mjs.map +0 -1
- package/resources/users.d.mts +0 -2
- package/resources/users.d.mts.map +0 -1
- package/resources/users.d.ts +0 -2
- package/resources/users.d.ts.map +0 -1
- package/resources/users.js +0 -6
- package/resources/users.js.map +0 -1
- package/resources/users.mjs +0 -3
- package/resources/users.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -5
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/client.ts +0 -824
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -92
- package/src/core/error.ts +0 -130
- package/src/core/resource.ts +0 -11
- package/src/core/uploads.ts +0 -2
- package/src/error.ts +0 -2
- package/src/index.ts +0 -22
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -93
- package/src/internal/detect-platform.ts +0 -196
- package/src/internal/errors.ts +0 -33
- package/src/internal/headers.ts +0 -97
- package/src/internal/parse.ts +0 -50
- package/src/internal/request-options.ts +0 -91
- package/src/internal/shim-types.ts +0 -26
- package/src/internal/shims.ts +0 -107
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -95
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -40
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -18
- package/src/internal/utils/log.ts +0 -127
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/sleep.ts +0 -3
- package/src/internal/utils/uuid.ts +0 -17
- package/src/internal/utils/values.ts +0 -105
- package/src/internal/utils.ts +0 -8
- package/src/lib/.keep +0 -4
- package/src/lib/bin/auth.ts +0 -63
- package/src/lib/bin/cli.ts +0 -11
- package/src/lib/bin/commands/listen.ts +0 -183
- package/src/lib/nextjs/hooks/useBrowserUse.ts +0 -37
- package/src/lib/nextjs/server/utils.ts +0 -69
- package/src/lib/parse.ts +0 -46
- package/src/lib/stream.ts +0 -14
- package/src/lib/types.ts +0 -73
- package/src/lib/webhooks.ts +0 -119
- package/src/resource.ts +0 -2
- package/src/resources/agent-profiles.ts +0 -245
- package/src/resources/browser-profiles.ts +0 -255
- package/src/resources/index.ts +0 -46
- package/src/resources/sessions/index.ts +0 -11
- package/src/resources/sessions/public-share.ts +0 -109
- package/src/resources/sessions/sessions.ts +0 -240
- package/src/resources/sessions.ts +0 -3
- package/src/resources/tasks.ts +0 -783
- package/src/resources/users/index.ts +0 -4
- package/src/resources/users/me/files.ts +0 -95
- package/src/resources/users/me/index.ts +0 -4
- package/src/resources/users/me/me.ts +0 -68
- package/src/resources/users/me.ts +0 -3
- package/src/resources/users/users.ts +0 -15
- package/src/resources/users.ts +0 -3
- package/src/resources.ts +0 -1
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -2
- package/src/version.ts +0 -1
- package/uploads.d.mts +0 -2
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -2
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -6
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -2
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
package/internal/utils/log.mjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { hasOwn } from "./values.mjs";
|
|
3
|
-
const levelNumbers = {
|
|
4
|
-
off: 0,
|
|
5
|
-
error: 200,
|
|
6
|
-
warn: 300,
|
|
7
|
-
info: 400,
|
|
8
|
-
debug: 500,
|
|
9
|
-
};
|
|
10
|
-
export const parseLogLevel = (maybeLevel, sourceName, client) => {
|
|
11
|
-
if (!maybeLevel) {
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
if (hasOwn(levelNumbers, maybeLevel)) {
|
|
15
|
-
return maybeLevel;
|
|
16
|
-
}
|
|
17
|
-
loggerFor(client).warn(`${sourceName} was set to ${JSON.stringify(maybeLevel)}, expected one of ${JSON.stringify(Object.keys(levelNumbers))}`);
|
|
18
|
-
return undefined;
|
|
19
|
-
};
|
|
20
|
-
function noop() { }
|
|
21
|
-
function makeLogFn(fnLevel, logger, logLevel) {
|
|
22
|
-
if (!logger || levelNumbers[fnLevel] > levelNumbers[logLevel]) {
|
|
23
|
-
return noop;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
// Don't wrap logger functions, we want the stacktrace intact!
|
|
27
|
-
return logger[fnLevel].bind(logger);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const noopLogger = {
|
|
31
|
-
error: noop,
|
|
32
|
-
warn: noop,
|
|
33
|
-
info: noop,
|
|
34
|
-
debug: noop,
|
|
35
|
-
};
|
|
36
|
-
let cachedLoggers = /* @__PURE__ */ new WeakMap();
|
|
37
|
-
export function loggerFor(client) {
|
|
38
|
-
const logger = client.logger;
|
|
39
|
-
const logLevel = client.logLevel ?? 'off';
|
|
40
|
-
if (!logger) {
|
|
41
|
-
return noopLogger;
|
|
42
|
-
}
|
|
43
|
-
const cachedLogger = cachedLoggers.get(logger);
|
|
44
|
-
if (cachedLogger && cachedLogger[0] === logLevel) {
|
|
45
|
-
return cachedLogger[1];
|
|
46
|
-
}
|
|
47
|
-
const levelLogger = {
|
|
48
|
-
error: makeLogFn('error', logger, logLevel),
|
|
49
|
-
warn: makeLogFn('warn', logger, logLevel),
|
|
50
|
-
info: makeLogFn('info', logger, logLevel),
|
|
51
|
-
debug: makeLogFn('debug', logger, logLevel),
|
|
52
|
-
};
|
|
53
|
-
cachedLoggers.set(logger, [logLevel, levelLogger]);
|
|
54
|
-
return levelLogger;
|
|
55
|
-
}
|
|
56
|
-
export const formatRequestDetails = (details) => {
|
|
57
|
-
if (details.options) {
|
|
58
|
-
details.options = { ...details.options };
|
|
59
|
-
delete details.options['headers']; // redundant + leaks internals
|
|
60
|
-
}
|
|
61
|
-
if (details.headers) {
|
|
62
|
-
details.headers = Object.fromEntries((details.headers instanceof Headers ? [...details.headers] : Object.entries(details.headers)).map(([name, value]) => [
|
|
63
|
-
name,
|
|
64
|
-
(name.toLowerCase() === 'x-browser-use-api-key' ||
|
|
65
|
-
name.toLowerCase() === 'authorization' ||
|
|
66
|
-
name.toLowerCase() === 'cookie' ||
|
|
67
|
-
name.toLowerCase() === 'set-cookie') ?
|
|
68
|
-
'***'
|
|
69
|
-
: value,
|
|
70
|
-
]));
|
|
71
|
-
}
|
|
72
|
-
if ('retryOfRequestLogID' in details) {
|
|
73
|
-
if (details.retryOfRequestLogID) {
|
|
74
|
-
details.retryOf = details.retryOfRequestLogID;
|
|
75
|
-
}
|
|
76
|
-
delete details.retryOfRequestLogID;
|
|
77
|
-
}
|
|
78
|
-
return details;
|
|
79
|
-
};
|
|
80
|
-
//# sourceMappingURL=log.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.mjs","sourceRoot":"","sources":["../../src/internal/utils/log.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE;AAajB,MAAM,YAAY,GAAG;IACnB,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,GAAG;IACV,IAAI,EAAE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C/F,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;YACjB,IAAI;YACJ,CACE,IAAI,CAAC,WAAW,EAAE,KAAK,uBAAuB;gBAC9C,IAAI,CAAC,WAAW,EAAE,KAAK,eAAe;gBACtC,IAAI,CAAC,WAAW,EAAE,KAAK,QAAQ;gBAC/B,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY,CACpC,CAAC,CAAC;gBACD,KAAK;gBACP,CAAC,CAAC,KAAK;SACR,CACF,CACF,CAAC;IACJ,CAAC;IACD,IAAI,qBAAqB,IAAI,OAAO,EAAE,CAAC;QACrC,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;YAChC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;QAChD,CAAC;QACD,OAAO,OAAO,CAAC,mBAAmB,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Percent-encode everything that isn't safe to have in a path without encoding safe chars.
|
|
3
|
-
*
|
|
4
|
-
* Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3:
|
|
5
|
-
* > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
6
|
-
* > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
|
|
7
|
-
* > pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
8
|
-
*/
|
|
9
|
-
export declare function encodeURIPath(str: string): string;
|
|
10
|
-
export declare const createPathTagFunction: (pathEncoder?: typeof encodeURIPath) => (statics: readonly string[], ...params: readonly unknown[]) => string;
|
|
11
|
-
/**
|
|
12
|
-
* URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced.
|
|
13
|
-
*/
|
|
14
|
-
export declare const path: (statics: readonly string[], ...params: readonly unknown[]) => string;
|
|
15
|
-
//# sourceMappingURL=path.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.mts","sourceRoot":"","sources":["../../src/internal/utils/path.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,UAExC;AAID,eAAO,MAAM,qBAAqB,GAAI,kCAA2B,MACjD,SAAS,SAAS,MAAM,EAAE,EAAE,GAAG,QAAQ,SAAS,OAAO,EAAE,KAAG,MAiEzE,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,IAAI,YAtEQ,SAAS,MAAM,EAAE,aAAa,SAAS,OAAO,EAAE,KAAG,MAsEJ,CAAC"}
|
package/internal/utils/path.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Percent-encode everything that isn't safe to have in a path without encoding safe chars.
|
|
3
|
-
*
|
|
4
|
-
* Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3:
|
|
5
|
-
* > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
6
|
-
* > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
|
|
7
|
-
* > pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
8
|
-
*/
|
|
9
|
-
export declare function encodeURIPath(str: string): string;
|
|
10
|
-
export declare const createPathTagFunction: (pathEncoder?: typeof encodeURIPath) => (statics: readonly string[], ...params: readonly unknown[]) => string;
|
|
11
|
-
/**
|
|
12
|
-
* URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced.
|
|
13
|
-
*/
|
|
14
|
-
export declare const path: (statics: readonly string[], ...params: readonly unknown[]) => string;
|
|
15
|
-
//# sourceMappingURL=path.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/internal/utils/path.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,UAExC;AAID,eAAO,MAAM,qBAAqB,GAAI,kCAA2B,MACjD,SAAS,SAAS,MAAM,EAAE,EAAE,GAAG,QAAQ,SAAS,OAAO,EAAE,KAAG,MAiEzE,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,IAAI,YAtEQ,SAAS,MAAM,EAAE,aAAa,SAAS,OAAO,EAAE,KAAG,MAsEJ,CAAC"}
|
package/internal/utils/path.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.path = exports.createPathTagFunction = void 0;
|
|
4
|
-
exports.encodeURIPath = encodeURIPath;
|
|
5
|
-
const error_1 = require("../../core/error.js");
|
|
6
|
-
/**
|
|
7
|
-
* Percent-encode everything that isn't safe to have in a path without encoding safe chars.
|
|
8
|
-
*
|
|
9
|
-
* Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3:
|
|
10
|
-
* > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
11
|
-
* > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
|
|
12
|
-
* > pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
13
|
-
*/
|
|
14
|
-
function encodeURIPath(str) {
|
|
15
|
-
return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
16
|
-
}
|
|
17
|
-
const EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
18
|
-
const createPathTagFunction = (pathEncoder = encodeURIPath) => function path(statics, ...params) {
|
|
19
|
-
// If there are no params, no processing is needed.
|
|
20
|
-
if (statics.length === 1)
|
|
21
|
-
return statics[0];
|
|
22
|
-
let postPath = false;
|
|
23
|
-
const invalidSegments = [];
|
|
24
|
-
const path = statics.reduce((previousValue, currentValue, index) => {
|
|
25
|
-
if (/[?#]/.test(currentValue)) {
|
|
26
|
-
postPath = true;
|
|
27
|
-
}
|
|
28
|
-
const value = params[index];
|
|
29
|
-
let encoded = (postPath ? encodeURIComponent : pathEncoder)('' + value);
|
|
30
|
-
if (index !== params.length &&
|
|
31
|
-
(value == null ||
|
|
32
|
-
(typeof value === 'object' &&
|
|
33
|
-
// handle values from other realms
|
|
34
|
-
value.toString ===
|
|
35
|
-
Object.getPrototypeOf(Object.getPrototypeOf(value.hasOwnProperty ?? EMPTY) ?? EMPTY)
|
|
36
|
-
?.toString))) {
|
|
37
|
-
encoded = value + '';
|
|
38
|
-
invalidSegments.push({
|
|
39
|
-
start: previousValue.length + currentValue.length,
|
|
40
|
-
length: encoded.length,
|
|
41
|
-
error: `Value of type ${Object.prototype.toString
|
|
42
|
-
.call(value)
|
|
43
|
-
.slice(8, -1)} is not a valid path parameter`,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
return previousValue + currentValue + (index === params.length ? '' : encoded);
|
|
47
|
-
}, '');
|
|
48
|
-
const pathOnly = path.split(/[?#]/, 1)[0];
|
|
49
|
-
const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
|
|
50
|
-
let match;
|
|
51
|
-
// Find all invalid segments
|
|
52
|
-
while ((match = invalidSegmentPattern.exec(pathOnly)) !== null) {
|
|
53
|
-
invalidSegments.push({
|
|
54
|
-
start: match.index,
|
|
55
|
-
length: match[0].length,
|
|
56
|
-
error: `Value "${match[0]}" can\'t be safely passed as a path parameter`,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
invalidSegments.sort((a, b) => a.start - b.start);
|
|
60
|
-
if (invalidSegments.length > 0) {
|
|
61
|
-
let lastEnd = 0;
|
|
62
|
-
const underline = invalidSegments.reduce((acc, segment) => {
|
|
63
|
-
const spaces = ' '.repeat(segment.start - lastEnd);
|
|
64
|
-
const arrows = '^'.repeat(segment.length);
|
|
65
|
-
lastEnd = segment.start + segment.length;
|
|
66
|
-
return acc + spaces + arrows;
|
|
67
|
-
}, '');
|
|
68
|
-
throw new error_1.BrowserUseError(`Path parameters result in path with invalid segments:\n${invalidSegments
|
|
69
|
-
.map((e) => e.error)
|
|
70
|
-
.join('\n')}\n${path}\n${underline}`);
|
|
71
|
-
}
|
|
72
|
-
return path;
|
|
73
|
-
};
|
|
74
|
-
exports.createPathTagFunction = createPathTagFunction;
|
|
75
|
-
/**
|
|
76
|
-
* URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced.
|
|
77
|
-
*/
|
|
78
|
-
exports.path = (0, exports.createPathTagFunction)(encodeURIPath);
|
|
79
|
-
//# sourceMappingURL=path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../src/internal/utils/path.ts"],"names":[],"mappings":";;;AAUA,sCAEC;AAZD,+CAAmD;AAEnD;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,GAAW;IACvC,OAAO,GAAG,CAAC,OAAO,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAE1E,MAAM,qBAAqB,GAAG,CAAC,WAAW,GAAG,aAAa,EAAE,EAAE,CACnE,SAAS,IAAI,CAAC,OAA0B,EAAE,GAAG,MAA0B;IACrE,mDAAmD;IACnD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC,CAAC,CAAE,CAAC;IAE7C,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,MAAM,eAAe,GAAG,EAAE,CAAC;IAC3B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE;QACjE,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YAC9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AAA,6BAAqB,EAAC,aAAa,CAAC,CAAC"}
|
package/internal/utils/path.mjs
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { BrowserUseError } from "../../core/error.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Percent-encode everything that isn't safe to have in a path without encoding safe chars.
|
|
4
|
-
*
|
|
5
|
-
* Taken from https://datatracker.ietf.org/doc/html/rfc3986#section-3.3:
|
|
6
|
-
* > unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
7
|
-
* > sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
|
|
8
|
-
* > pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
9
|
-
*/
|
|
10
|
-
export function encodeURIPath(str) {
|
|
11
|
-
return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
12
|
-
}
|
|
13
|
-
const EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
14
|
-
export const createPathTagFunction = (pathEncoder = encodeURIPath) => function path(statics, ...params) {
|
|
15
|
-
// If there are no params, no processing is needed.
|
|
16
|
-
if (statics.length === 1)
|
|
17
|
-
return statics[0];
|
|
18
|
-
let postPath = false;
|
|
19
|
-
const invalidSegments = [];
|
|
20
|
-
const path = statics.reduce((previousValue, currentValue, index) => {
|
|
21
|
-
if (/[?#]/.test(currentValue)) {
|
|
22
|
-
postPath = true;
|
|
23
|
-
}
|
|
24
|
-
const value = params[index];
|
|
25
|
-
let encoded = (postPath ? encodeURIComponent : pathEncoder)('' + value);
|
|
26
|
-
if (index !== params.length &&
|
|
27
|
-
(value == null ||
|
|
28
|
-
(typeof value === 'object' &&
|
|
29
|
-
// handle values from other realms
|
|
30
|
-
value.toString ===
|
|
31
|
-
Object.getPrototypeOf(Object.getPrototypeOf(value.hasOwnProperty ?? EMPTY) ?? EMPTY)
|
|
32
|
-
?.toString))) {
|
|
33
|
-
encoded = value + '';
|
|
34
|
-
invalidSegments.push({
|
|
35
|
-
start: previousValue.length + currentValue.length,
|
|
36
|
-
length: encoded.length,
|
|
37
|
-
error: `Value of type ${Object.prototype.toString
|
|
38
|
-
.call(value)
|
|
39
|
-
.slice(8, -1)} is not a valid path parameter`,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return previousValue + currentValue + (index === params.length ? '' : encoded);
|
|
43
|
-
}, '');
|
|
44
|
-
const pathOnly = path.split(/[?#]/, 1)[0];
|
|
45
|
-
const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
|
|
46
|
-
let match;
|
|
47
|
-
// Find all invalid segments
|
|
48
|
-
while ((match = invalidSegmentPattern.exec(pathOnly)) !== null) {
|
|
49
|
-
invalidSegments.push({
|
|
50
|
-
start: match.index,
|
|
51
|
-
length: match[0].length,
|
|
52
|
-
error: `Value "${match[0]}" can\'t be safely passed as a path parameter`,
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
invalidSegments.sort((a, b) => a.start - b.start);
|
|
56
|
-
if (invalidSegments.length > 0) {
|
|
57
|
-
let lastEnd = 0;
|
|
58
|
-
const underline = invalidSegments.reduce((acc, segment) => {
|
|
59
|
-
const spaces = ' '.repeat(segment.start - lastEnd);
|
|
60
|
-
const arrows = '^'.repeat(segment.length);
|
|
61
|
-
lastEnd = segment.start + segment.length;
|
|
62
|
-
return acc + spaces + arrows;
|
|
63
|
-
}, '');
|
|
64
|
-
throw new BrowserUseError(`Path parameters result in path with invalid segments:\n${invalidSegments
|
|
65
|
-
.map((e) => e.error)
|
|
66
|
-
.join('\n')}\n${path}\n${underline}`);
|
|
67
|
-
}
|
|
68
|
-
return path;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* URI-encodes path params and ensures no unsafe /./ or /../ path segments are introduced.
|
|
72
|
-
*/
|
|
73
|
-
export const path = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
74
|
-
//# source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C,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IAElD,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;YACxD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC;YACnD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAC1C,OAAO,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;YACzC,OAAO,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;QAC/B,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,MAAM,IAAI,eAAe,CACvB,0DAA0D,eAAe;aACtE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;aACnB,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,KAAK,SAAS,EAAE,CACvC,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.d.mts","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,kBAA4D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,kBAA4D,CAAC"}
|
package/internal/utils/sleep.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.sleep = void 0;
|
|
5
|
-
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
6
|
-
exports.sleep = sleep;
|
|
7
|
-
//# sourceMappingURL=sleep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAE/E,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAAhF,QAAA,KAAK,SAA2E"}
|
package/internal/utils/sleep.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.mjs","sourceRoot":"","sources":["../../src/internal/utils/sleep.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.d.mts","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,IAAI,KAAK,WAWf,CAAC"}
|
package/internal/utils/uuid.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,IAAI,KAAK,WAWf,CAAC"}
|
package/internal/utils/uuid.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.uuid4 = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* https://stackoverflow.com/a/2117523
|
|
7
|
-
*/
|
|
8
|
-
let uuid4 = function () {
|
|
9
|
-
const { crypto } = globalThis;
|
|
10
|
-
if (crypto?.randomUUID) {
|
|
11
|
-
exports.uuid4 = crypto.randomUUID.bind(crypto);
|
|
12
|
-
return crypto.randomUUID();
|
|
13
|
-
}
|
|
14
|
-
const u8 = new Uint8Array(1);
|
|
15
|
-
const randomByte = crypto ? () => crypto.getRandomValues(u8)[0] : () => (Math.random() * 0xff) & 0xff;
|
|
16
|
-
return '10000000-1000-4000-8000-100000000000'.replace(/[018]/g, (c) => (+c ^ (randomByte() & (15 >> (+c / 4)))).toString(16));
|
|
17
|
-
};
|
|
18
|
-
exports.uuid4 = uuid4;
|
|
19
|
-
//# sourceMappingURL=uuid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF;;GAEG;AACI,IAAI,KAAK,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,GAAG,UAAiB,CAAC;IACrC,IAAI,MAAM,EAAE,UAAU,EAAE,CAAC;QACvB,aAAK,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IACD,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IACvG,OAAO,sCAAsC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACpE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CACtD,CAAC;AACJ,CAAC,CAAC;AAXS,QAAA,KAAK,SAWd"}
|
package/internal/utils/uuid.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
/**
|
|
3
|
-
* https://stackoverflow.com/a/2117523
|
|
4
|
-
*/
|
|
5
|
-
export let uuid4 = function () {
|
|
6
|
-
const { crypto } = globalThis;
|
|
7
|
-
if (crypto?.randomUUID) {
|
|
8
|
-
uuid4 = crypto.randomUUID.bind(crypto);
|
|
9
|
-
return crypto.randomUUID();
|
|
10
|
-
}
|
|
11
|
-
const u8 = new Uint8Array(1);
|
|
12
|
-
const randomByte = crypto ? () => crypto.getRandomValues(u8)[0] : () => (Math.random() * 0xff) & 0xff;
|
|
13
|
-
return '10000000-1000-4000-8000-100000000000'.replace(/[018]/g, (c) => (+c ^ (randomByte() & (15 >> (+c / 4)))).toString(16));
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=uuid.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.mjs","sourceRoot":"","sources":["../../src/internal/utils/uuid.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;GAEG;AACH,MAAM,CAAC,IAAI,KAAK,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,GAAG,UAAiB,CAAC;IACrC,IAAI,MAAM,EAAE,UAAU,EAAE,CAAC;QACvB,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IACD,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IACvG,OAAO,sCAAsC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACpE,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CACtD,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const isAbsoluteURL: (url: string) => boolean;
|
|
2
|
-
export declare let isArray: (val: unknown) => val is unknown[];
|
|
3
|
-
export declare let isReadonlyArray: (val: unknown) => val is readonly unknown[];
|
|
4
|
-
/** Returns an object if the given value isn't an object, otherwise returns as-is */
|
|
5
|
-
export declare function maybeObj(x: unknown): object;
|
|
6
|
-
export declare function isEmptyObj(obj: Object | null | undefined): boolean;
|
|
7
|
-
export declare function hasOwn<T extends object = object>(obj: T, key: PropertyKey): key is keyof T;
|
|
8
|
-
export declare function isObj(obj: unknown): obj is Record<string, unknown>;
|
|
9
|
-
export declare const ensurePresent: <T>(value: T | null | undefined) => T;
|
|
10
|
-
export declare const validatePositiveInteger: (name: string, n: unknown) => number;
|
|
11
|
-
export declare const coerceInteger: (value: unknown) => number;
|
|
12
|
-
export declare const coerceFloat: (value: unknown) => number;
|
|
13
|
-
export declare const coerceBoolean: (value: unknown) => boolean;
|
|
14
|
-
export declare const maybeCoerceInteger: (value: unknown) => number | undefined;
|
|
15
|
-
export declare const maybeCoerceFloat: (value: unknown) => number | undefined;
|
|
16
|
-
export declare const maybeCoerceBoolean: (value: unknown) => boolean | undefined;
|
|
17
|
-
export declare const safeJSON: (text: string) => any;
|
|
18
|
-
//# sourceMappingURL=values.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"values.d.mts","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OAE3C,CAAC;AAEF,eAAO,IAAI,OAAO,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,OAAO,EAA+C,CAAC;AACnG,eAAO,IAAI,eAAe,EAAc,CAAC,GAAG,EAAE,OAAO,KAAK,GAAG,IAAI,SAAS,OAAO,EAAE,CAAC;AAEpF,oFAAoF;AACpF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAM3C;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAIlE;AAGD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,GAAG,GAAG,IAAI,MAAM,CAAC,CAE1F;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAElE;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,CAM9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,EAAE,GAAG,OAAO,KAAG,MAQlE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MAK9C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,MAK5C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAI9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,OAAO,GAAG,SAK7D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,QAMpC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const isAbsoluteURL: (url: string) => boolean;
|
|
2
|
-
export declare let isArray: (val: unknown) => val is unknown[];
|
|
3
|
-
export declare let isReadonlyArray: (val: unknown) => val is readonly unknown[];
|
|
4
|
-
/** Returns an object if the given value isn't an object, otherwise returns as-is */
|
|
5
|
-
export declare function maybeObj(x: unknown): object;
|
|
6
|
-
export declare function isEmptyObj(obj: Object | null | undefined): boolean;
|
|
7
|
-
export declare function hasOwn<T extends object = object>(obj: T, key: PropertyKey): key is keyof T;
|
|
8
|
-
export declare function isObj(obj: unknown): obj is Record<string, unknown>;
|
|
9
|
-
export declare const ensurePresent: <T>(value: T | null | undefined) => T;
|
|
10
|
-
export declare const validatePositiveInteger: (name: string, n: unknown) => number;
|
|
11
|
-
export declare const coerceInteger: (value: unknown) => number;
|
|
12
|
-
export declare const coerceFloat: (value: unknown) => number;
|
|
13
|
-
export declare const coerceBoolean: (value: unknown) => boolean;
|
|
14
|
-
export declare const maybeCoerceInteger: (value: unknown) => number | undefined;
|
|
15
|
-
export declare const maybeCoerceFloat: (value: unknown) => number | undefined;
|
|
16
|
-
export declare const maybeCoerceBoolean: (value: unknown) => boolean | undefined;
|
|
17
|
-
export declare const safeJSON: (text: string) => any;
|
|
18
|
-
//# sourceMappingURL=values.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OAE3C,CAAC;AAEF,eAAO,IAAI,OAAO,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,OAAO,EAA+C,CAAC;AACnG,eAAO,IAAI,eAAe,EAAc,CAAC,GAAG,EAAE,OAAO,KAAK,GAAG,IAAI,SAAS,OAAO,EAAE,CAAC;AAEpF,oFAAoF;AACpF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAM3C;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAIlE;AAGD,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,GAAG,GAAG,IAAI,MAAM,CAAC,CAE1F;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAElE;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,CAM9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,EAAE,GAAG,OAAO,KAAG,MAQlE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MAK9C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,MAK5C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAI9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,OAAO,GAAG,SAK7D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,QAMpC,CAAC"}
|
package/internal/utils/values.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.safeJSON = exports.maybeCoerceBoolean = exports.maybeCoerceFloat = exports.maybeCoerceInteger = exports.coerceBoolean = exports.coerceFloat = exports.coerceInteger = exports.validatePositiveInteger = exports.ensurePresent = exports.isReadonlyArray = exports.isArray = exports.isAbsoluteURL = void 0;
|
|
5
|
-
exports.maybeObj = maybeObj;
|
|
6
|
-
exports.isEmptyObj = isEmptyObj;
|
|
7
|
-
exports.hasOwn = hasOwn;
|
|
8
|
-
exports.isObj = isObj;
|
|
9
|
-
const error_1 = require("../../core/error.js");
|
|
10
|
-
// https://url.spec.whatwg.org/#url-scheme-string
|
|
11
|
-
const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
12
|
-
const isAbsoluteURL = (url) => {
|
|
13
|
-
return startsWithSchemeRegexp.test(url);
|
|
14
|
-
};
|
|
15
|
-
exports.isAbsoluteURL = isAbsoluteURL;
|
|
16
|
-
let isArray = (val) => ((exports.isArray = Array.isArray), (0, exports.isArray)(val));
|
|
17
|
-
exports.isArray = isArray;
|
|
18
|
-
exports.isReadonlyArray = exports.isArray;
|
|
19
|
-
/** Returns an object if the given value isn't an object, otherwise returns as-is */
|
|
20
|
-
function maybeObj(x) {
|
|
21
|
-
if (typeof x !== 'object') {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
return x ?? {};
|
|
25
|
-
}
|
|
26
|
-
// https://stackoverflow.com/a/34491287
|
|
27
|
-
function isEmptyObj(obj) {
|
|
28
|
-
if (!obj)
|
|
29
|
-
return true;
|
|
30
|
-
for (const _k in obj)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
// https://eslint.org/docs/latest/rules/no-prototype-builtins
|
|
35
|
-
function hasOwn(obj, key) {
|
|
36
|
-
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
37
|
-
}
|
|
38
|
-
function isObj(obj) {
|
|
39
|
-
return obj != null && typeof obj === 'object' && !Array.isArray(obj);
|
|
40
|
-
}
|
|
41
|
-
const ensurePresent = (value) => {
|
|
42
|
-
if (value == null) {
|
|
43
|
-
throw new error_1.BrowserUseError(`Expected a value to be given but received ${value} instead.`);
|
|
44
|
-
}
|
|
45
|
-
return value;
|
|
46
|
-
};
|
|
47
|
-
exports.ensurePresent = ensurePresent;
|
|
48
|
-
const validatePositiveInteger = (name, n) => {
|
|
49
|
-
if (typeof n !== 'number' || !Number.isInteger(n)) {
|
|
50
|
-
throw new error_1.BrowserUseError(`${name} must be an integer`);
|
|
51
|
-
}
|
|
52
|
-
if (n < 0) {
|
|
53
|
-
throw new error_1.BrowserUseError(`${name} must be a positive integer`);
|
|
54
|
-
}
|
|
55
|
-
return n;
|
|
56
|
-
};
|
|
57
|
-
exports.validatePositiveInteger = validatePositiveInteger;
|
|
58
|
-
const coerceInteger = (value) => {
|
|
59
|
-
if (typeof value === 'number')
|
|
60
|
-
return Math.round(value);
|
|
61
|
-
if (typeof value === 'string')
|
|
62
|
-
return parseInt(value, 10);
|
|
63
|
-
throw new error_1.BrowserUseError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
64
|
-
};
|
|
65
|
-
exports.coerceInteger = coerceInteger;
|
|
66
|
-
const coerceFloat = (value) => {
|
|
67
|
-
if (typeof value === 'number')
|
|
68
|
-
return value;
|
|
69
|
-
if (typeof value === 'string')
|
|
70
|
-
return parseFloat(value);
|
|
71
|
-
throw new error_1.BrowserUseError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
72
|
-
};
|
|
73
|
-
exports.coerceFloat = coerceFloat;
|
|
74
|
-
const coerceBoolean = (value) => {
|
|
75
|
-
if (typeof value === 'boolean')
|
|
76
|
-
return value;
|
|
77
|
-
if (typeof value === 'string')
|
|
78
|
-
return value === 'true';
|
|
79
|
-
return Boolean(value);
|
|
80
|
-
};
|
|
81
|
-
exports.coerceBoolean = coerceBoolean;
|
|
82
|
-
const maybeCoerceInteger = (value) => {
|
|
83
|
-
if (value === undefined) {
|
|
84
|
-
return undefined;
|
|
85
|
-
}
|
|
86
|
-
return (0, exports.coerceInteger)(value);
|
|
87
|
-
};
|
|
88
|
-
exports.maybeCoerceInteger = maybeCoerceInteger;
|
|
89
|
-
const maybeCoerceFloat = (value) => {
|
|
90
|
-
if (value === undefined) {
|
|
91
|
-
return undefined;
|
|
92
|
-
}
|
|
93
|
-
return (0, exports.coerceFloat)(value);
|
|
94
|
-
};
|
|
95
|
-
exports.maybeCoerceFloat = maybeCoerceFloat;
|
|
96
|
-
const maybeCoerceBoolean = (value) => {
|
|
97
|
-
if (value === undefined) {
|
|
98
|
-
return undefined;
|
|
99
|
-
}
|
|
100
|
-
return (0, exports.coerceBoolean)(value);
|
|
101
|
-
};
|
|
102
|
-
exports.maybeCoerceBoolean = maybeCoerceBoolean;
|
|
103
|
-
const safeJSON = (text) => {
|
|
104
|
-
try {
|
|
105
|
-
return JSON.parse(text);
|
|
106
|
-
}
|
|
107
|
-
catch (err) {
|
|
108
|
-
return undefined;
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
exports.safeJSON = safeJSON;
|
|
112
|
-
//# sourceMappingURL=values.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"values.js","sourceRoot":"","sources":["../../src/internal/utils/values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