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
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class AgentProfiles extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new agent profile for the authenticated user.
|
|
7
|
-
*
|
|
8
|
-
* Agent profiles define how your AI agents behave during tasks. You can create
|
|
9
|
-
* multiple profiles for different use cases (e.g., customer support, data
|
|
10
|
-
* analysis, web scraping). Free users can create 1 profile; paid users can create
|
|
11
|
-
* unlimited profiles.
|
|
12
|
-
*
|
|
13
|
-
* Key features you can configure:
|
|
14
|
-
*
|
|
15
|
-
* - System prompt: The core instructions that define the agent's personality and
|
|
16
|
-
* behavior
|
|
17
|
-
* - Allowed domains: Restrict which websites the agent can access
|
|
18
|
-
* - Max steps: Limit how many actions the agent can take in a single task
|
|
19
|
-
* - Vision: Enable/disable the agent's ability to see and analyze screenshots
|
|
20
|
-
* - Thinking: Enable/disable the agent's reasoning process
|
|
21
|
-
*
|
|
22
|
-
* Args:
|
|
23
|
-
*
|
|
24
|
-
* - request: The agent profile configuration including name, description, and
|
|
25
|
-
* behavior settings
|
|
26
|
-
*
|
|
27
|
-
* Returns:
|
|
28
|
-
*
|
|
29
|
-
* - The newly created agent profile with all its details
|
|
30
|
-
*
|
|
31
|
-
* Raises:
|
|
32
|
-
*
|
|
33
|
-
* - 402: If user needs a subscription to create additional profiles
|
|
34
|
-
*/
|
|
35
|
-
create(body: AgentProfileCreateParams, options?: RequestOptions): APIPromise<AgentProfileView>;
|
|
36
|
-
/**
|
|
37
|
-
* Get a specific agent profile by its ID.
|
|
38
|
-
*
|
|
39
|
-
* Retrieves the complete details of an agent profile, including all its
|
|
40
|
-
* configuration settings like system prompts, allowed domains, and behavior flags.
|
|
41
|
-
*
|
|
42
|
-
* Args:
|
|
43
|
-
*
|
|
44
|
-
* - profile_id: The unique identifier of the agent profile
|
|
45
|
-
*
|
|
46
|
-
* Returns:
|
|
47
|
-
*
|
|
48
|
-
* - Complete agent profile information
|
|
49
|
-
*
|
|
50
|
-
* Raises:
|
|
51
|
-
*
|
|
52
|
-
* - 404: If the user agent profile doesn't exist
|
|
53
|
-
*/
|
|
54
|
-
retrieve(profileID: string, options?: RequestOptions): APIPromise<AgentProfileView>;
|
|
55
|
-
/**
|
|
56
|
-
* Update an existing agent profile.
|
|
57
|
-
*
|
|
58
|
-
* Modify any aspect of an agent profile, such as its name, description, system
|
|
59
|
-
* prompt, or behavior settings. Only the fields you provide will be updated; other
|
|
60
|
-
* fields remain unchanged.
|
|
61
|
-
*
|
|
62
|
-
* Args:
|
|
63
|
-
*
|
|
64
|
-
* - profile_id: The unique identifier of the agent profile to update
|
|
65
|
-
* - request: The fields to update (only provided fields will be changed)
|
|
66
|
-
*
|
|
67
|
-
* Returns:
|
|
68
|
-
*
|
|
69
|
-
* - The updated agent profile with all its current details
|
|
70
|
-
*
|
|
71
|
-
* Raises:
|
|
72
|
-
*
|
|
73
|
-
* - 404: If the user agent profile doesn't exist
|
|
74
|
-
*/
|
|
75
|
-
update(profileID: string, body: AgentProfileUpdateParams, options?: RequestOptions): APIPromise<AgentProfileView>;
|
|
76
|
-
/**
|
|
77
|
-
* Get a paginated list of all agent profiles for the authenticated user.
|
|
78
|
-
*
|
|
79
|
-
* Agent profiles define how your AI agents behave, including their personality,
|
|
80
|
-
* capabilities, and limitations. Use this endpoint to see all your configured
|
|
81
|
-
* agent profiles.
|
|
82
|
-
*
|
|
83
|
-
* Returns:
|
|
84
|
-
*
|
|
85
|
-
* - A paginated list of agent profiles
|
|
86
|
-
* - Total count of profiles
|
|
87
|
-
* - Page information for navigation
|
|
88
|
-
*/
|
|
89
|
-
list(query?: AgentProfileListParams | null | undefined, options?: RequestOptions): APIPromise<AgentProfileListResponse>;
|
|
90
|
-
/**
|
|
91
|
-
* Delete an agent profile.
|
|
92
|
-
*
|
|
93
|
-
* Permanently removes an agent profile and all its configuration. This action
|
|
94
|
-
* cannot be undone. Any tasks that were using this profile will continue to work,
|
|
95
|
-
* but you won't be able to create new tasks with the deleted profile.
|
|
96
|
-
*
|
|
97
|
-
* Args:
|
|
98
|
-
*
|
|
99
|
-
* - profile_id: The unique identifier of the agent profile to delete
|
|
100
|
-
*
|
|
101
|
-
* Returns:
|
|
102
|
-
*
|
|
103
|
-
* - 204 No Content on successful deletion (idempotent)
|
|
104
|
-
*/
|
|
105
|
-
delete(profileID: string, options?: RequestOptions): APIPromise<void>;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* View model for representing an agent profile
|
|
109
|
-
*
|
|
110
|
-
* Attributes: id: Unique identifier for the profile name: Display name for the
|
|
111
|
-
* profile description: Optional description of the profile highlight_elements:
|
|
112
|
-
* Whether to highlight elements during agent interaction with the browser
|
|
113
|
-
* max_agent_steps: Maximum number of steps the agent can take before stopping
|
|
114
|
-
* allowed_domains: List of domains the agent is allowed to access flash_mode:
|
|
115
|
-
* Whether flash mode is enabled thinking: Whether thinking mode is enabled vision:
|
|
116
|
-
* Whether vision capabilities are enabled custom_system_prompt_extension: Optional
|
|
117
|
-
* custom system prompt for the agent created_at: Timestamp when the profile was
|
|
118
|
-
* created updated_at: Timestamp when the profile was last updated
|
|
119
|
-
*/
|
|
120
|
-
export interface AgentProfileView {
|
|
121
|
-
id: string;
|
|
122
|
-
allowedDomains: Array<string>;
|
|
123
|
-
createdAt: string;
|
|
124
|
-
customSystemPromptExtension: string;
|
|
125
|
-
description: string;
|
|
126
|
-
flashMode: boolean;
|
|
127
|
-
highlightElements: boolean;
|
|
128
|
-
maxAgentSteps: number;
|
|
129
|
-
name: string;
|
|
130
|
-
thinking: boolean;
|
|
131
|
-
updatedAt: string;
|
|
132
|
-
vision: boolean;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Response model for paginated agent profile list requests
|
|
136
|
-
*
|
|
137
|
-
* Attributes: items: List of agent profile views for the current page
|
|
138
|
-
*/
|
|
139
|
-
export interface AgentProfileListResponse {
|
|
140
|
-
items: Array<AgentProfileView>;
|
|
141
|
-
pageNumber: number;
|
|
142
|
-
pageSize: number;
|
|
143
|
-
totalItems: number;
|
|
144
|
-
}
|
|
145
|
-
export interface AgentProfileCreateParams {
|
|
146
|
-
name: string;
|
|
147
|
-
allowedDomains?: Array<string>;
|
|
148
|
-
customSystemPromptExtension?: string;
|
|
149
|
-
description?: string;
|
|
150
|
-
flashMode?: boolean;
|
|
151
|
-
highlightElements?: boolean;
|
|
152
|
-
maxAgentSteps?: number;
|
|
153
|
-
thinking?: boolean;
|
|
154
|
-
vision?: boolean;
|
|
155
|
-
}
|
|
156
|
-
export interface AgentProfileUpdateParams {
|
|
157
|
-
allowedDomains?: Array<string> | null;
|
|
158
|
-
customSystemPromptExtension?: string | null;
|
|
159
|
-
description?: string | null;
|
|
160
|
-
flashMode?: boolean | null;
|
|
161
|
-
highlightElements?: boolean | null;
|
|
162
|
-
maxAgentSteps?: number | null;
|
|
163
|
-
name?: string | null;
|
|
164
|
-
thinking?: boolean | null;
|
|
165
|
-
vision?: boolean | null;
|
|
166
|
-
}
|
|
167
|
-
export interface AgentProfileListParams {
|
|
168
|
-
pageNumber?: number;
|
|
169
|
-
pageSize?: number;
|
|
170
|
-
}
|
|
171
|
-
export declare namespace AgentProfiles {
|
|
172
|
-
export { type AgentProfileView as AgentProfileView, type AgentProfileListResponse as AgentProfileListResponse, type AgentProfileCreateParams as AgentProfileCreateParams, type AgentProfileUpdateParams as AgentProfileUpdateParams, type AgentProfileListParams as AgentProfileListParams, };
|
|
173
|
-
}
|
|
174
|
-
//# sourceMappingURL=agent-profiles.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profiles.d.mts","sourceRoot":"","sources":["../src/resources/agent-profiles.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAA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I,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class AgentProfiles extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new agent profile for the authenticated user.
|
|
7
|
-
*
|
|
8
|
-
* Agent profiles define how your AI agents behave during tasks. You can create
|
|
9
|
-
* multiple profiles for different use cases (e.g., customer support, data
|
|
10
|
-
* analysis, web scraping). Free users can create 1 profile; paid users can create
|
|
11
|
-
* unlimited profiles.
|
|
12
|
-
*
|
|
13
|
-
* Key features you can configure:
|
|
14
|
-
*
|
|
15
|
-
* - System prompt: The core instructions that define the agent's personality and
|
|
16
|
-
* behavior
|
|
17
|
-
* - Allowed domains: Restrict which websites the agent can access
|
|
18
|
-
* - Max steps: Limit how many actions the agent can take in a single task
|
|
19
|
-
* - Vision: Enable/disable the agent's ability to see and analyze screenshots
|
|
20
|
-
* - Thinking: Enable/disable the agent's reasoning process
|
|
21
|
-
*
|
|
22
|
-
* Args:
|
|
23
|
-
*
|
|
24
|
-
* - request: The agent profile configuration including name, description, and
|
|
25
|
-
* behavior settings
|
|
26
|
-
*
|
|
27
|
-
* Returns:
|
|
28
|
-
*
|
|
29
|
-
* - The newly created agent profile with all its details
|
|
30
|
-
*
|
|
31
|
-
* Raises:
|
|
32
|
-
*
|
|
33
|
-
* - 402: If user needs a subscription to create additional profiles
|
|
34
|
-
*/
|
|
35
|
-
create(body: AgentProfileCreateParams, options?: RequestOptions): APIPromise<AgentProfileView>;
|
|
36
|
-
/**
|
|
37
|
-
* Get a specific agent profile by its ID.
|
|
38
|
-
*
|
|
39
|
-
* Retrieves the complete details of an agent profile, including all its
|
|
40
|
-
* configuration settings like system prompts, allowed domains, and behavior flags.
|
|
41
|
-
*
|
|
42
|
-
* Args:
|
|
43
|
-
*
|
|
44
|
-
* - profile_id: The unique identifier of the agent profile
|
|
45
|
-
*
|
|
46
|
-
* Returns:
|
|
47
|
-
*
|
|
48
|
-
* - Complete agent profile information
|
|
49
|
-
*
|
|
50
|
-
* Raises:
|
|
51
|
-
*
|
|
52
|
-
* - 404: If the user agent profile doesn't exist
|
|
53
|
-
*/
|
|
54
|
-
retrieve(profileID: string, options?: RequestOptions): APIPromise<AgentProfileView>;
|
|
55
|
-
/**
|
|
56
|
-
* Update an existing agent profile.
|
|
57
|
-
*
|
|
58
|
-
* Modify any aspect of an agent profile, such as its name, description, system
|
|
59
|
-
* prompt, or behavior settings. Only the fields you provide will be updated; other
|
|
60
|
-
* fields remain unchanged.
|
|
61
|
-
*
|
|
62
|
-
* Args:
|
|
63
|
-
*
|
|
64
|
-
* - profile_id: The unique identifier of the agent profile to update
|
|
65
|
-
* - request: The fields to update (only provided fields will be changed)
|
|
66
|
-
*
|
|
67
|
-
* Returns:
|
|
68
|
-
*
|
|
69
|
-
* - The updated agent profile with all its current details
|
|
70
|
-
*
|
|
71
|
-
* Raises:
|
|
72
|
-
*
|
|
73
|
-
* - 404: If the user agent profile doesn't exist
|
|
74
|
-
*/
|
|
75
|
-
update(profileID: string, body: AgentProfileUpdateParams, options?: RequestOptions): APIPromise<AgentProfileView>;
|
|
76
|
-
/**
|
|
77
|
-
* Get a paginated list of all agent profiles for the authenticated user.
|
|
78
|
-
*
|
|
79
|
-
* Agent profiles define how your AI agents behave, including their personality,
|
|
80
|
-
* capabilities, and limitations. Use this endpoint to see all your configured
|
|
81
|
-
* agent profiles.
|
|
82
|
-
*
|
|
83
|
-
* Returns:
|
|
84
|
-
*
|
|
85
|
-
* - A paginated list of agent profiles
|
|
86
|
-
* - Total count of profiles
|
|
87
|
-
* - Page information for navigation
|
|
88
|
-
*/
|
|
89
|
-
list(query?: AgentProfileListParams | null | undefined, options?: RequestOptions): APIPromise<AgentProfileListResponse>;
|
|
90
|
-
/**
|
|
91
|
-
* Delete an agent profile.
|
|
92
|
-
*
|
|
93
|
-
* Permanently removes an agent profile and all its configuration. This action
|
|
94
|
-
* cannot be undone. Any tasks that were using this profile will continue to work,
|
|
95
|
-
* but you won't be able to create new tasks with the deleted profile.
|
|
96
|
-
*
|
|
97
|
-
* Args:
|
|
98
|
-
*
|
|
99
|
-
* - profile_id: The unique identifier of the agent profile to delete
|
|
100
|
-
*
|
|
101
|
-
* Returns:
|
|
102
|
-
*
|
|
103
|
-
* - 204 No Content on successful deletion (idempotent)
|
|
104
|
-
*/
|
|
105
|
-
delete(profileID: string, options?: RequestOptions): APIPromise<void>;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* View model for representing an agent profile
|
|
109
|
-
*
|
|
110
|
-
* Attributes: id: Unique identifier for the profile name: Display name for the
|
|
111
|
-
* profile description: Optional description of the profile highlight_elements:
|
|
112
|
-
* Whether to highlight elements during agent interaction with the browser
|
|
113
|
-
* max_agent_steps: Maximum number of steps the agent can take before stopping
|
|
114
|
-
* allowed_domains: List of domains the agent is allowed to access flash_mode:
|
|
115
|
-
* Whether flash mode is enabled thinking: Whether thinking mode is enabled vision:
|
|
116
|
-
* Whether vision capabilities are enabled custom_system_prompt_extension: Optional
|
|
117
|
-
* custom system prompt for the agent created_at: Timestamp when the profile was
|
|
118
|
-
* created updated_at: Timestamp when the profile was last updated
|
|
119
|
-
*/
|
|
120
|
-
export interface AgentProfileView {
|
|
121
|
-
id: string;
|
|
122
|
-
allowedDomains: Array<string>;
|
|
123
|
-
createdAt: string;
|
|
124
|
-
customSystemPromptExtension: string;
|
|
125
|
-
description: string;
|
|
126
|
-
flashMode: boolean;
|
|
127
|
-
highlightElements: boolean;
|
|
128
|
-
maxAgentSteps: number;
|
|
129
|
-
name: string;
|
|
130
|
-
thinking: boolean;
|
|
131
|
-
updatedAt: string;
|
|
132
|
-
vision: boolean;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Response model for paginated agent profile list requests
|
|
136
|
-
*
|
|
137
|
-
* Attributes: items: List of agent profile views for the current page
|
|
138
|
-
*/
|
|
139
|
-
export interface AgentProfileListResponse {
|
|
140
|
-
items: Array<AgentProfileView>;
|
|
141
|
-
pageNumber: number;
|
|
142
|
-
pageSize: number;
|
|
143
|
-
totalItems: number;
|
|
144
|
-
}
|
|
145
|
-
export interface AgentProfileCreateParams {
|
|
146
|
-
name: string;
|
|
147
|
-
allowedDomains?: Array<string>;
|
|
148
|
-
customSystemPromptExtension?: string;
|
|
149
|
-
description?: string;
|
|
150
|
-
flashMode?: boolean;
|
|
151
|
-
highlightElements?: boolean;
|
|
152
|
-
maxAgentSteps?: number;
|
|
153
|
-
thinking?: boolean;
|
|
154
|
-
vision?: boolean;
|
|
155
|
-
}
|
|
156
|
-
export interface AgentProfileUpdateParams {
|
|
157
|
-
allowedDomains?: Array<string> | null;
|
|
158
|
-
customSystemPromptExtension?: string | null;
|
|
159
|
-
description?: string | null;
|
|
160
|
-
flashMode?: boolean | null;
|
|
161
|
-
highlightElements?: boolean | null;
|
|
162
|
-
maxAgentSteps?: number | null;
|
|
163
|
-
name?: string | null;
|
|
164
|
-
thinking?: boolean | null;
|
|
165
|
-
vision?: boolean | null;
|
|
166
|
-
}
|
|
167
|
-
export interface AgentProfileListParams {
|
|
168
|
-
pageNumber?: number;
|
|
169
|
-
pageSize?: number;
|
|
170
|
-
}
|
|
171
|
-
export declare namespace AgentProfiles {
|
|
172
|
-
export { type AgentProfileView as AgentProfileView, type AgentProfileListResponse as AgentProfileListResponse, type AgentProfileCreateParams as AgentProfileCreateParams, type AgentProfileUpdateParams as AgentProfileUpdateParams, type AgentProfileListParams as AgentProfileListParams, };
|
|
173
|
-
}
|
|
174
|
-
//# sourceMappingURL=agent-profiles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profiles.d.ts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AQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,125 +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.AgentProfiles = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const headers_1 = require("../internal/headers.js");
|
|
7
|
-
const path_1 = require("../internal/utils/path.js");
|
|
8
|
-
class AgentProfiles extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new agent profile for the authenticated user.
|
|
11
|
-
*
|
|
12
|
-
* Agent profiles define how your AI agents behave during tasks. You can create
|
|
13
|
-
* multiple profiles for different use cases (e.g., customer support, data
|
|
14
|
-
* analysis, web scraping). Free users can create 1 profile; paid users can create
|
|
15
|
-
* unlimited profiles.
|
|
16
|
-
*
|
|
17
|
-
* Key features you can configure:
|
|
18
|
-
*
|
|
19
|
-
* - System prompt: The core instructions that define the agent's personality and
|
|
20
|
-
* behavior
|
|
21
|
-
* - Allowed domains: Restrict which websites the agent can access
|
|
22
|
-
* - Max steps: Limit how many actions the agent can take in a single task
|
|
23
|
-
* - Vision: Enable/disable the agent's ability to see and analyze screenshots
|
|
24
|
-
* - Thinking: Enable/disable the agent's reasoning process
|
|
25
|
-
*
|
|
26
|
-
* Args:
|
|
27
|
-
*
|
|
28
|
-
* - request: The agent profile configuration including name, description, and
|
|
29
|
-
* behavior settings
|
|
30
|
-
*
|
|
31
|
-
* Returns:
|
|
32
|
-
*
|
|
33
|
-
* - The newly created agent profile with all its details
|
|
34
|
-
*
|
|
35
|
-
* Raises:
|
|
36
|
-
*
|
|
37
|
-
* - 402: If user needs a subscription to create additional profiles
|
|
38
|
-
*/
|
|
39
|
-
create(body, options) {
|
|
40
|
-
return this._client.post('/agent-profiles', { body, ...options });
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Get a specific agent profile by its ID.
|
|
44
|
-
*
|
|
45
|
-
* Retrieves the complete details of an agent profile, including all its
|
|
46
|
-
* configuration settings like system prompts, allowed domains, and behavior flags.
|
|
47
|
-
*
|
|
48
|
-
* Args:
|
|
49
|
-
*
|
|
50
|
-
* - profile_id: The unique identifier of the agent profile
|
|
51
|
-
*
|
|
52
|
-
* Returns:
|
|
53
|
-
*
|
|
54
|
-
* - Complete agent profile information
|
|
55
|
-
*
|
|
56
|
-
* Raises:
|
|
57
|
-
*
|
|
58
|
-
* - 404: If the user agent profile doesn't exist
|
|
59
|
-
*/
|
|
60
|
-
retrieve(profileID, options) {
|
|
61
|
-
return this._client.get((0, path_1.path) `/agent-profiles/${profileID}`, options);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Update an existing agent profile.
|
|
65
|
-
*
|
|
66
|
-
* Modify any aspect of an agent profile, such as its name, description, system
|
|
67
|
-
* prompt, or behavior settings. Only the fields you provide will be updated; other
|
|
68
|
-
* fields remain unchanged.
|
|
69
|
-
*
|
|
70
|
-
* Args:
|
|
71
|
-
*
|
|
72
|
-
* - profile_id: The unique identifier of the agent profile to update
|
|
73
|
-
* - request: The fields to update (only provided fields will be changed)
|
|
74
|
-
*
|
|
75
|
-
* Returns:
|
|
76
|
-
*
|
|
77
|
-
* - The updated agent profile with all its current details
|
|
78
|
-
*
|
|
79
|
-
* Raises:
|
|
80
|
-
*
|
|
81
|
-
* - 404: If the user agent profile doesn't exist
|
|
82
|
-
*/
|
|
83
|
-
update(profileID, body, options) {
|
|
84
|
-
return this._client.patch((0, path_1.path) `/agent-profiles/${profileID}`, { body, ...options });
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Get a paginated list of all agent profiles for the authenticated user.
|
|
88
|
-
*
|
|
89
|
-
* Agent profiles define how your AI agents behave, including their personality,
|
|
90
|
-
* capabilities, and limitations. Use this endpoint to see all your configured
|
|
91
|
-
* agent profiles.
|
|
92
|
-
*
|
|
93
|
-
* Returns:
|
|
94
|
-
*
|
|
95
|
-
* - A paginated list of agent profiles
|
|
96
|
-
* - Total count of profiles
|
|
97
|
-
* - Page information for navigation
|
|
98
|
-
*/
|
|
99
|
-
list(query = {}, options) {
|
|
100
|
-
return this._client.get('/agent-profiles', { query, ...options });
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Delete an agent profile.
|
|
104
|
-
*
|
|
105
|
-
* Permanently removes an agent profile and all its configuration. This action
|
|
106
|
-
* cannot be undone. Any tasks that were using this profile will continue to work,
|
|
107
|
-
* but you won't be able to create new tasks with the deleted profile.
|
|
108
|
-
*
|
|
109
|
-
* Args:
|
|
110
|
-
*
|
|
111
|
-
* - profile_id: The unique identifier of the agent profile to delete
|
|
112
|
-
*
|
|
113
|
-
* Returns:
|
|
114
|
-
*
|
|
115
|
-
* - 204 No Content on successful deletion (idempotent)
|
|
116
|
-
*/
|
|
117
|
-
delete(profileID, options) {
|
|
118
|
-
return this._client.delete((0, path_1.path) `/agent-profiles/${profileID}`, {
|
|
119
|
-
...options,
|
|
120
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.AgentProfiles = AgentProfiles;
|
|
125
|
-
//# sourceMappingURL=agent-profiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profiles.js","sourceRoot":"","sources":["../src/resources/agent-profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD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
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
-
import { path } from "../internal/utils/path.mjs";
|
|
5
|
-
export class AgentProfiles extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a new agent profile for the authenticated user.
|
|
8
|
-
*
|
|
9
|
-
* Agent profiles define how your AI agents behave during tasks. You can create
|
|
10
|
-
* multiple profiles for different use cases (e.g., customer support, data
|
|
11
|
-
* analysis, web scraping). Free users can create 1 profile; paid users can create
|
|
12
|
-
* unlimited profiles.
|
|
13
|
-
*
|
|
14
|
-
* Key features you can configure:
|
|
15
|
-
*
|
|
16
|
-
* - System prompt: The core instructions that define the agent's personality and
|
|
17
|
-
* behavior
|
|
18
|
-
* - Allowed domains: Restrict which websites the agent can access
|
|
19
|
-
* - Max steps: Limit how many actions the agent can take in a single task
|
|
20
|
-
* - Vision: Enable/disable the agent's ability to see and analyze screenshots
|
|
21
|
-
* - Thinking: Enable/disable the agent's reasoning process
|
|
22
|
-
*
|
|
23
|
-
* Args:
|
|
24
|
-
*
|
|
25
|
-
* - request: The agent profile configuration including name, description, and
|
|
26
|
-
* behavior settings
|
|
27
|
-
*
|
|
28
|
-
* Returns:
|
|
29
|
-
*
|
|
30
|
-
* - The newly created agent profile with all its details
|
|
31
|
-
*
|
|
32
|
-
* Raises:
|
|
33
|
-
*
|
|
34
|
-
* - 402: If user needs a subscription to create additional profiles
|
|
35
|
-
*/
|
|
36
|
-
create(body, options) {
|
|
37
|
-
return this._client.post('/agent-profiles', { body, ...options });
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Get a specific agent profile by its ID.
|
|
41
|
-
*
|
|
42
|
-
* Retrieves the complete details of an agent profile, including all its
|
|
43
|
-
* configuration settings like system prompts, allowed domains, and behavior flags.
|
|
44
|
-
*
|
|
45
|
-
* Args:
|
|
46
|
-
*
|
|
47
|
-
* - profile_id: The unique identifier of the agent profile
|
|
48
|
-
*
|
|
49
|
-
* Returns:
|
|
50
|
-
*
|
|
51
|
-
* - Complete agent profile information
|
|
52
|
-
*
|
|
53
|
-
* Raises:
|
|
54
|
-
*
|
|
55
|
-
* - 404: If the user agent profile doesn't exist
|
|
56
|
-
*/
|
|
57
|
-
retrieve(profileID, options) {
|
|
58
|
-
return this._client.get(path `/agent-profiles/${profileID}`, options);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Update an existing agent profile.
|
|
62
|
-
*
|
|
63
|
-
* Modify any aspect of an agent profile, such as its name, description, system
|
|
64
|
-
* prompt, or behavior settings. Only the fields you provide will be updated; other
|
|
65
|
-
* fields remain unchanged.
|
|
66
|
-
*
|
|
67
|
-
* Args:
|
|
68
|
-
*
|
|
69
|
-
* - profile_id: The unique identifier of the agent profile to update
|
|
70
|
-
* - request: The fields to update (only provided fields will be changed)
|
|
71
|
-
*
|
|
72
|
-
* Returns:
|
|
73
|
-
*
|
|
74
|
-
* - The updated agent profile with all its current details
|
|
75
|
-
*
|
|
76
|
-
* Raises:
|
|
77
|
-
*
|
|
78
|
-
* - 404: If the user agent profile doesn't exist
|
|
79
|
-
*/
|
|
80
|
-
update(profileID, body, options) {
|
|
81
|
-
return this._client.patch(path `/agent-profiles/${profileID}`, { body, ...options });
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Get a paginated list of all agent profiles for the authenticated user.
|
|
85
|
-
*
|
|
86
|
-
* Agent profiles define how your AI agents behave, including their personality,
|
|
87
|
-
* capabilities, and limitations. Use this endpoint to see all your configured
|
|
88
|
-
* agent profiles.
|
|
89
|
-
*
|
|
90
|
-
* Returns:
|
|
91
|
-
*
|
|
92
|
-
* - A paginated list of agent profiles
|
|
93
|
-
* - Total count of profiles
|
|
94
|
-
* - Page information for navigation
|
|
95
|
-
*/
|
|
96
|
-
list(query = {}, options) {
|
|
97
|
-
return this._client.get('/agent-profiles', { query, ...options });
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Delete an agent profile.
|
|
101
|
-
*
|
|
102
|
-
* Permanently removes an agent profile and all its configuration. This action
|
|
103
|
-
* cannot be undone. Any tasks that were using this profile will continue to work,
|
|
104
|
-
* but you won't be able to create new tasks with the deleted profile.
|
|
105
|
-
*
|
|
106
|
-
* Args:
|
|
107
|
-
*
|
|
108
|
-
* - profile_id: The unique identifier of the agent profile to delete
|
|
109
|
-
*
|
|
110
|
-
* Returns:
|
|
111
|
-
*
|
|
112
|
-
* - 204 No Content on successful deletion (idempotent)
|
|
113
|
-
*/
|
|
114
|
-
delete(profileID, options) {
|
|
115
|
-
return this._client.delete(path `/agent-profiles/${profileID}`, {
|
|
116
|
-
...options,
|
|
117
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=agent-profiles.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-profiles.mjs","sourceRoot":"","sources":["../src/resources/agent-profiles.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACv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