notte-sdk 1.10.12 → 1.10.13

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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Page, Browser, Dialog } from 'playwright-core';
2
- export { N as NotteProxyAuthError, a as NotteProxyConfig } from './types-DM7HUU9V.js';
2
+ export { N as NotteProxyAuthError, a as NotteProxyConfig } from './types-oOBIGqNh.js';
3
3
 
4
4
  type AuthToken = string | undefined;
5
5
  interface Auth {
@@ -7253,9 +7253,9 @@ type RunFunctionRequest = {
7253
7253
  /**
7254
7254
  * Workflow Id
7255
7255
  *
7256
- * The ID of the function to run
7256
+ * The ID of the function to run. Optional: the path already names it.
7257
7257
  */
7258
- workflow_id: string;
7258
+ workflow_id?: string | null;
7259
7259
  /**
7260
7260
  * Variables
7261
7261
  *
@@ -8497,6 +8497,18 @@ type SessionResponse = {
8497
8497
  * Whether the session can be paused now (POST /sessions/{session_id}/pause). Only in a status read.
8498
8498
  */
8499
8499
  pausable?: boolean;
8500
+ /**
8501
+ * Started Without Proxy
8502
+ *
8503
+ * True when the session asked for the default managed proxy, none was available, and it started without a proxy instead (its traffic leaves from Notte's own IP addresses). A workspace turns this fallback off in Settings > Proxies; its starts then fail instead.
8504
+ */
8505
+ started_without_proxy?: boolean;
8506
+ /**
8507
+ * Warnings
8508
+ *
8509
+ * Conditions the session started with that the caller should know about, such as `PROXY_UNAVAILABLE_NO_PROXY_FALLBACK` when no managed proxy was available and the session runs without one.
8510
+ */
8511
+ warnings?: Array<SessionWarning>;
8500
8512
  /**
8501
8513
  * Timeout Minutes
8502
8514
  *
@@ -8505,6 +8517,23 @@ type SessionResponse = {
8505
8517
  readonly timeout_minutes: number;
8506
8518
  [key: string]: unknown;
8507
8519
  };
8520
+ /**
8521
+ * SessionWarning
8522
+ */
8523
+ type SessionWarning = {
8524
+ /**
8525
+ * Code
8526
+ *
8527
+ * Stable machine-readable warning code.
8528
+ */
8529
+ code: string;
8530
+ /**
8531
+ * Message
8532
+ *
8533
+ * Human-readable explanation of the warning.
8534
+ */
8535
+ message: string;
8536
+ };
8508
8537
  /**
8509
8538
  * Shadows
8510
8539
  */
@@ -11607,6 +11636,18 @@ type SessionResponseWritable = {
11607
11636
  * Whether the session can be paused now (POST /sessions/{session_id}/pause). Only in a status read.
11608
11637
  */
11609
11638
  pausable?: boolean;
11639
+ /**
11640
+ * Started Without Proxy
11641
+ *
11642
+ * True when the session asked for the default managed proxy, none was available, and it started without a proxy instead (its traffic leaves from Notte's own IP addresses). A workspace turns this fallback off in Settings > Proxies; its starts then fail instead.
11643
+ */
11644
+ started_without_proxy?: boolean;
11645
+ /**
11646
+ * Warnings
11647
+ *
11648
+ * Conditions the session started with that the caller should know about, such as `PROXY_UNAVAILABLE_NO_PROXY_FALLBACK` when no managed proxy was available and the session runs without one.
11649
+ */
11650
+ warnings?: Array<SessionWarning>;
11610
11651
  [key: string]: unknown;
11611
11652
  };
11612
11653
  /**
@@ -13578,11 +13619,11 @@ type FunctionSchedulesUpdateResponses = {
13578
13619
  type FunctionSchedulesUpdateResponse = FunctionSchedulesUpdateResponses[keyof FunctionSchedulesUpdateResponses];
13579
13620
  type FunctionRunStartData = {
13580
13621
  body: RunFunctionRequest;
13581
- headers: {
13622
+ headers?: {
13582
13623
  /**
13583
13624
  * X-Notte-Api-Key
13584
13625
  */
13585
- 'x-notte-api-key': string;
13626
+ 'x-notte-api-key'?: string | null;
13586
13627
  /**
13587
13628
  * X-Db-Preview
13588
13629
  */
@@ -19065,7 +19106,22 @@ declare class FailedToRunCloudFunctionError extends NotteError {
19065
19106
  readonly functionId: string;
19066
19107
  readonly functionRunId: string;
19067
19108
  readonly response: unknown;
19068
- constructor(functionId: string, functionRunId: string, response: unknown);
19109
+ constructor(functionId: string, functionRunId: string, response: unknown, message?: string);
19110
+ }
19111
+ /**
19112
+ * A function run ended with status `rejected`: the function raised an
19113
+ * `ExpectedFunctionError`, a deliberate refusal such as an account that is not
19114
+ * uniquely authorized. `error` is the run's error payload and `code` its
19115
+ * machine-readable code. It extends `FailedToRunCloudFunctionError`, so
19116
+ * existing handlers still catch it, like `FunctionRunRejectedError` in Python.
19117
+ */
19118
+ declare class FunctionRunRejectedError extends FailedToRunCloudFunctionError {
19119
+ readonly error: FunctionRunError | null;
19120
+ readonly code: string | null;
19121
+ constructor(functionId: string, functionRunId: string, response: {
19122
+ result: unknown;
19123
+ error?: FunctionRunError | null;
19124
+ });
19069
19125
  }
19070
19126
  /** Structured scrape extraction failed (`StructuredData.success === false`). */
19071
19127
  declare class ScrapeFailedError extends NotteError {
@@ -19088,6 +19144,18 @@ declare class ActionExecutionError extends NotteError {
19088
19144
  constructor(detail: SerializedError);
19089
19145
  static fromMessage(message: string, errorType?: string): ActionExecutionError;
19090
19146
  }
19147
+ /**
19148
+ * The site rejected the CAPTCHA answer and showed the CAPTCHA again
19149
+ * (`code: 'captcha_rejected'`). Automatic solving stops for that CAPTCHA on the
19150
+ * page, and a new answer in the same browser session is usually rejected too:
19151
+ * start a new session instead of retrying. Thrown by `session.execute()` when
19152
+ * failures throw. It extends `ActionExecutionError`, which other CAPTCHA
19153
+ * failures throw, so existing handlers still catch it, like
19154
+ * `CaptchaRejectedError` in Python.
19155
+ */
19156
+ declare class CaptchaRejectedError extends ActionExecutionError {
19157
+ constructor(message: string);
19158
+ }
19091
19159
  /** `evaluate_js` reported success but the API build predates the data payload. */
19092
19160
  declare class EvaluateJsNoDataError extends NotteError {
19093
19161
  constructor();
@@ -20110,6 +20178,7 @@ declare class NotteVault {
20110
20178
  private _vaultId;
20111
20179
  private initPromise;
20112
20180
  private createData;
20181
+ private readonly created;
20113
20182
  constructor(client: NotteClient, options?: VaultConstructor);
20114
20183
  private initExistingVault;
20115
20184
  private initNewVault;
@@ -20122,7 +20191,8 @@ declare class NotteVault {
20122
20191
  */
20123
20192
  start(): void;
20124
20193
  /**
20125
- * Stop the vault: deletes it together with every credential it holds.
20194
+ * Stop the vault: deletes it together with every credential it holds, if
20195
+ * this object created it. A vault opened by `vault_id` is kept.
20126
20196
  *
20127
20197
  * ```ts
20128
20198
  * await vault.stop();
@@ -20369,7 +20439,15 @@ interface FunctionRunResult {
20369
20439
  session_id: string | null;
20370
20440
  /** The value returned by the script's `run` function, decoded from JSON. */
20371
20441
  result: unknown;
20442
+ /**
20443
+ * `rejected` when the function raised an `ExpectedFunctionError` (a deliberate
20444
+ * refusal), `failed` for any other exception. Neither is a success. An API
20445
+ * without `rejected` support reports deliberate refusals as `failed` too;
20446
+ * `error.kind` is then still `expected` when the API sends `error`.
20447
+ */
20372
20448
  status: FunctionRunStatus;
20449
+ /** What a failed or rejected run's exception means, when the API reports it. */
20450
+ error?: FunctionRunError;
20373
20451
  }
20374
20452
  /** Alias of `FunctionRunResult` using the Python model name. */
20375
20453
  type FunctionRunResponse = FunctionRunResult;
@@ -20393,7 +20471,10 @@ interface FunctionRunOptions {
20393
20471
  stream?: boolean;
20394
20472
  /** Receive streamed logs instead of printing them to console.log. */
20395
20473
  onLog?: (message: string) => void;
20396
- /** Throw `FailedToRunCloudFunctionError` when execution fails. Defaults to true, matching Python. */
20474
+ /**
20475
+ * Throw `FailedToRunCloudFunctionError` when execution fails, or its subclass
20476
+ * `FunctionRunRejectedError` when the run is rejected. Defaults to true, matching Python.
20477
+ */
20397
20478
  raiseOnFailure?: boolean;
20398
20479
  /** Execute a record returned by createRun(). Omit to create a new run. */
20399
20480
  functionRunId?: string;
@@ -20620,13 +20701,15 @@ declare class NotteFunction {
20620
20701
  * to execute a record returned by `createRun()`; otherwise a new run record
20621
20702
  * is created first, exactly like Python. Pass `version` to run a saved
20622
20703
  * version instead of the latest one. A failed execution throws
20623
- * `FailedToRunCloudFunctionError` unless `raiseOnFailure` is false, and the
20624
- * wait is aborted with `NotteTimeoutError` after `timeoutMs`.
20704
+ * `FailedToRunCloudFunctionError` and a rejected one (the function raised an
20705
+ * `ExpectedFunctionError`) its subclass `FunctionRunRejectedError`, unless
20706
+ * `raiseOnFailure` is false; the wait is aborted with `NotteTimeoutError` after `timeoutMs`.
20625
20707
  *
20626
20708
  * @param variables - JSON-serializable keyword arguments passed to the Python function's `run` entry point.
20627
20709
  * @param options - Log streaming, failure handling, runtime, run ID, version, and timeout settings.
20628
20710
  * @returns The completed execution response. The function's return value is in `result`. Disabling streaming still waits for completion.
20629
20711
  * @throws FailedToRunCloudFunctionError if execution fails and `raiseOnFailure` is true.
20712
+ * @throws FunctionRunRejectedError if the run is rejected and `raiseOnFailure` is true.
20630
20713
  * @throws NotteTimeoutError if the execution request exceeds `timeoutMs`.
20631
20714
  * @throws InvalidRequestError if the run options are invalid.
20632
20715
  * @example
@@ -21344,5 +21427,5 @@ declare const createClient: (config?: {
21344
21427
  token?: string;
21345
21428
  }) => Client;
21346
21429
 
21347
- export { ActionExecutionError, AuthenticationError, CAPTCHA_SOLVE_TIMEOUT_MS, CLUSTER_OVERLOAD_RETRY_DELAY_MS, CREDENTIAL_FIELDS, DEFAULT_MAX_RETRIES, DEFAULT_NOTTE_API_URL, DEFAULT_REQUEST_TIMEOUT_MS, Encryption, EvaluateJsNoDataError, FUNCTION_RUN_ENDPOINTS, FUNCTION_RUN_TIMEOUT_MS, FailedToRunCloudFunctionError, FetchResponseDecodeError, FileExistsError, FileNotFoundError, InvalidRequestError, ManagedAuthError, NotteAPIError, NotteAPIExecutionError, NotteAnything, NotteClient, NotteError, NotteFunction, NotteManagedAuth, NottePersona, NotteSecrets, NotteTimeoutError, NotteUsage, NotteVault, PageFetchHTTPError, PageFetchResponse, RUN_API_KEY_HEADER, RemoteFileStorage, SESSION_START_TRIES, ScrapeFailedError, Session, SessionFiles, TIMEOUT_HEADER, accountChanges, accountRuns, actions, agentStart, agentStatus, agentStop, anythingStart, attempts, brandRetrieve, buildFetchScript, changes, checkForLatestVersion, client, connectLinkContext, connectLinkMailboxConnect, connectLinkMailboxSync, connectLinkMailboxes, connectLinkStatus, connectLinkSubmit, connectPaymentWallet, create, createClient, createOrAppendCookiesToFile, createPayment, creditUsage, NotteClient as default, deleteSecret, deleteSessionFile, delete_, deliveries, detail, disconnectPaymentWallet, downloadRunPayload, downloadSessionFile, executeSessionFile, extractProductEndpoint, fetchSpecializedData, functionConditionalRollback, functionCreate, functionDelete, functionDownloadUrl, functionFork, functionMetadataUpdate, functionRollback, functionRunGetMetadata, functionRunStart, functionRunStop, functionRunUpdateMetadata, functionRuntimeHealth, functionScheduleDelete, functionScheduleSet, functionSchedulesAdd, functionSchedulesList, functionSchedulesRemove, functionSchedulesResume, functionSchedulesUpdate, functionUpdate, getPayment, getPaymentWalletConnection, getPolicy, getRootDomain, getScript, getSecret, getSessionScript, getUsage, getUsageLogs, healthCheck, history_, installServerOwnedDialogPolicy, invalidate, isCaptchaSolveAction, isValidMfaSecret, limits, listAgents, listAuditEvents, listDataApis, listFunctionRunsByFunctionId, listFunctions, listMonitors, listPaymentRequests, listPersonas, listSecretProxyHostPresets, listSecrets, listSessionFiles, listSessions, listVaults, mailboxConnectToken, mailboxDelete, mailboxGet, mailboxList, mailboxSync, mailboxUpdate, managedAuthConnectLinkCreate, mapsSearch, newsSearch, observeServerOwnedDialog, pageAct, pageCheck, pageChoose, pageDocumentRead, pageExecute, pageObserve, pageScrape, pageScreenshot, peopleEnrich, personaCreate, personaDelete, personaEmailsList, personaGet, personaSmsList, personaUpdate, prepareRunPayloadUpload, processScrapeResponse, profileCookiesGet, profileCookiesSet, profileCreate, profileDelete, profileDuplicate, profileGet, profileList, profileStateSet, readCookiesFile, readyCheck, responseFromEvaluated, retrieve, retrieveChange, retrieveDelivery, retrieveRun, retry, retry$1 as retryWebhookDelivery, rotateSecret, runNow, runs, sanitizeFilename, scrapeFromHtml, fetchSpecializedData as scrapeSpecializedData, scrapeWebpage, searchWeb, sessionAuthReadiness, sessionCookiesGet, sessionCookiesSet, sessionDebugInfo, sessionMouseReplay, sessionNetworkLogs, sessionOffset, sessionPause, sessionProfilePreview, sessionProfileSave, sessionReplay, sessionResume, sessionStart, sessionStatus, sessionStop, startVersionCheck, storeSecret, styleguideEndpoint, summary, update, uploadSessionFile, validateCredentials, validateMfaSecret, validateUrl, vaultCreate, vaultCredentialsAdd, vaultCredentialsDelete, vaultCredentialsGet, vaultCredentialsList, vaultCreditCardDelete, vaultCreditCardGet, vaultCreditCardSet, vaultDelete, vaultUpdate, youtubeEndpoint };
21348
- export type { AccountChangesData, AccountChangesError, AccountChangesErrors, AccountChangesResponse, AccountChangesResponses, AccountRunsData, AccountRunsError, AccountRunsErrors, AccountRunsResponse, AccountRunsResponses, ActRequest, ActResult, ActResultWritable, ActTimings, ActionInput, ActionOfType, ActionParameter, ActionSpace, ActionSpaceWritable, ActionType, AddCredentialsRequest, AddCredentialsResponse, AddCreditCardRequest, AddCreditCardResponse, AgentFunctionCodeResponse, AgentResponse, AgentStartData, AgentStartError, AgentStartErrors, AgentStartResponse, AgentStartResponses, AgentStatus, AgentStatusData, AgentStatusError, AgentStatusErrors, AgentStatusResponse, AgentStatusResponse2, AgentStatusResponses, AgentStopData, AgentStopError, AgentStopErrors, AgentStopResponse, AgentStopResponses, AnythingStartData, AnythingStartError, AnythingStartErrors, AnythingStartOptions, AnythingStartRequest, AnythingStartResponses, AnythingStartResult, AnythingStreamChunk, ApiAgentStartRequest, ApiExecutionResponse, ApiExecutionResponseWritable, ApiSessionStartRequest, AttemptsData, AttemptsError, AttemptsErrors, AttemptsResponse, AttemptsResponses, AuditEvent, AuditEventListResponse, AuthSessionResponse, AuthWaitOptions, BaseModel, BaseModelWritable, BodyFunctionCreateFunctionsPost, BodyFunctionUpdateFunctionsFunctionIdPost, BodySessionCookiesSetSessionsSessionIdCookiesPost, BodyUploadSessionFileSessionsSessionIdFilesPost, BoundingBox, BrandAddress, BrandByDirectUrl, BrandByDomain, BrandByEmail, BrandByName, BrandByTicker, BrandByTransaction, BrandCacheMetadata, BrandColor, BrandEmployees, BrandImage, BrandIndustries, BrandIndustry, BrandKeyMetadata, BrandLinks, BrandLogo, BrandProfile, BrandResponse, BrandRetrieveData, BrandRetrieveError, BrandRetrieveErrors, BrandRetrieveResponse, BrandRetrieveResponses, BrandSocial, BrandStock, BrandTimeout, ButtonStyle, ButtonStyles, CandidateMatch, CapabilityEndpoint, CaptchaExecutionResponse, CaptchaSolveAction, CaptchaStatus, CardStyle, ChangesData, ChangesError, ChangesErrors, ChangesResponse, ChangesResponses, CheckActionInput, CheckActionOutput, CheckRequest, CheckResponse, Choice, ChooseRequest, ClickActionInput, ClickActionOutput, ClientOptions, CloseTabAction, Color, Colors, CompletionAction, Components, ConditionalFunctionRollbackRequest, ConnectLinkContext, ConnectLinkContextData, ConnectLinkContextError, ConnectLinkContextErrors, ConnectLinkContextResponse, ConnectLinkContextResponses, ConnectLinkCreateRequest, ConnectLinkCreateResponse, ConnectLinkMailbox, ConnectLinkMailboxConnectData, ConnectLinkMailboxConnectError, ConnectLinkMailboxConnectErrors, ConnectLinkMailboxConnectRequest, ConnectLinkMailboxConnectResponse, ConnectLinkMailboxConnectResponse2, ConnectLinkMailboxConnectResponses, ConnectLinkMailboxSyncData, ConnectLinkMailboxSyncError, ConnectLinkMailboxSyncErrors, ConnectLinkMailboxSyncRequest, ConnectLinkMailboxSyncResponse, ConnectLinkMailboxSyncResponses, ConnectLinkMailboxesData, ConnectLinkMailboxesError, ConnectLinkMailboxesErrors, ConnectLinkMailboxesResponse, ConnectLinkMailboxesResponses, ConnectLinkStatusData, ConnectLinkStatusError, ConnectLinkStatusErrors, ConnectLinkStatusResponse, ConnectLinkStatusResponse2, ConnectLinkStatusResponses, ConnectLinkSubmitData, ConnectLinkSubmitError, ConnectLinkSubmitErrors, ConnectLinkSubmitRequest, ConnectLinkSubmitRequestWritable, ConnectLinkSubmitResponse, ConnectLinkSubmitResponses, ConnectPaymentWalletData, ConnectPaymentWalletError, ConnectPaymentWalletErrors, ConnectPaymentWalletResponse, ConnectPaymentWalletResponses, Cookie, CreateData, CreateError, CreateErrors, CreateMonitor, CreatePaymentData, CreatePaymentError, CreatePaymentErrors, CreatePaymentResponse, CreatePaymentResponses, CreateResponse, CreateResponses, Credential, CredentialField, CredentialsDictInput, CredentialsDictOutput, CreditCardDictInput, CreditCardDictOutput, CreditUsageData, CreditUsageError, CreditUsageErrors, CreditUsageResponse, CreditUsageResponses, DataScrapeRequest, DataSpace, DeleteCredentialsResponse, DeleteCreditCardResponse, DeleteData, DeleteError, DeleteErrors, DeleteFunctionResponse, DeletePersonaResponse, DeleteResponse, DeleteResponses, DeleteSecretData, DeleteSecretError, DeleteSecretErrors, DeleteSecretResponse, DeleteSecretResponses, DeleteSessionFileData, DeleteSessionFileError, DeleteSessionFileErrors, DeleteSessionFileResponse, DeleteSessionFileResponses, DeleteVaultResponse, DeliveriesData, DeliveriesError, DeliveriesErrors, DeliveriesResponse, DeliveriesResponses, DeliveryList, DetailData, DetailError, DetailErrors, DetailResponse, DetailResponses, DisconnectPaymentWalletData, DisconnectPaymentWalletError, DisconnectPaymentWalletErrors, DisconnectPaymentWalletResponse, DisconnectPaymentWalletResponses, DownloadFileActionInput, DownloadFileActionOutput, DownloadRunPayloadData, DownloadRunPayloadError, DownloadRunPayloadErrors, DownloadRunPayloadResponses, DownloadSessionFileData, DownloadSessionFileError, DownloadSessionFileErrors, DownloadSessionFileResponses, EducationClue, ElementState, EmailAttachment, EmailReadAction, EmailResponse, EmailVerificationReadAction, EvaluateJsAction, ExactDetection, ExecuteAction, ExecuteOptions, ExecuteSessionFileData, ExecuteSessionFileError, ExecuteSessionFileErrors, ExecuteSessionFileResponse, ExecuteSessionFileResponses, ExecutionResponse, ExecutionResult, ExecutionResultWritable, ExternalProxy, ExtractProductEndpointData, ExtractProductEndpointError, ExtractProductEndpointErrors, ExtractProductEndpointResponse, ExtractProductEndpointResponses, ExtractTarget, FallbackFillActionInput, FallbackFillActionInputWritable, FallbackFillActionOutput, FallbackFillActionOutputWritable, FetchData, FetchSpecializedDataData, FetchSpecializedDataError, FetchSpecializedDataErrors, FetchSpecializedDataResponse, FetchSpecializedDataResponses, FileDownloadOptions, FileExecutionRequest, FileListOptions, FileSource, FillActionInput, FillActionInputWritable, FillActionOutput, FillActionOutputWritable, FontLink, FormFillAction, FormFillActionWritable, FrameData, FunctionConditionalRollbackData, FunctionConditionalRollbackError, FunctionConditionalRollbackErrors, FunctionConditionalRollbackResponse, FunctionConditionalRollbackResponses, FunctionConstructor, FunctionConstructorCreate, FunctionConstructorWithId, FunctionCreateData, FunctionCreateError, FunctionCreateErrors, FunctionCreateResponse, FunctionCreateResponses, FunctionDeleteData, FunctionDeleteError, FunctionDeleteErrors, FunctionDeleteOptions, FunctionDeleteResponse, FunctionDeleteResponses, FunctionDownloadOptions, FunctionDownloadUrlData, FunctionDownloadUrlError, FunctionDownloadUrlErrors, FunctionDownloadUrlResponse, FunctionDownloadUrlResponses, FunctionForkData, FunctionForkError, FunctionForkErrors, FunctionForkResponse, FunctionForkResponses, FunctionGetOptions, FunctionListItemResponse, FunctionListItemResponseWritable, FunctionListOptions, FunctionMetadataUpdateData, FunctionMetadataUpdateError, FunctionMetadataUpdateErrors, FunctionMetadataUpdateOptions, FunctionMetadataUpdateRequest, FunctionMetadataUpdateResponse, FunctionMetadataUpdateResponses, FunctionResponse, FunctionResponseWritable, FunctionRollbackData, FunctionRollbackError, FunctionRollbackErrors, FunctionRollbackOptions, FunctionRollbackRequest, FunctionRollbackResponse, FunctionRollbackResponses, FunctionRunCreateOptions, FunctionRunCreateResult, FunctionRunError, FunctionRunGetMetadataData, FunctionRunGetMetadataError, FunctionRunGetMetadataErrors, FunctionRunGetMetadataResponse, FunctionRunGetMetadataResponses, FunctionRunListItemResponse, FunctionRunListItemResponseWritable, FunctionRunListOptions, FunctionRunOptions, FunctionRunResponse, FunctionRunResult, FunctionRunStartData, FunctionRunStartError, FunctionRunStartErrors, FunctionRunStartResponses, FunctionRunStartResult, FunctionRunStatus, FunctionRunStopData, FunctionRunStopError, FunctionRunStopErrors, FunctionRunStopResponse, FunctionRunStopResponses, FunctionRunUpdateMetadataData, FunctionRunUpdateMetadataError, FunctionRunUpdateMetadataErrors, FunctionRunUpdateMetadataResponse, FunctionRunUpdateMetadataResponses, FunctionRunUpdateRequest, FunctionRuntime, FunctionRuntimeHealthData, FunctionRuntimeHealthError, FunctionRuntimeHealthErrors, FunctionRuntimeHealthResponse, FunctionRuntimeHealthResponse2, FunctionRuntimeHealthResponses, FunctionSchedule, FunctionScheduleCreateRequest, FunctionScheduleDeleteData, FunctionScheduleDeleteError, FunctionScheduleDeleteErrors, FunctionScheduleDeleteResponse, FunctionScheduleDeleteResponses, FunctionScheduleListResponse, FunctionScheduleOptions, FunctionScheduleSetData, FunctionScheduleSetError, FunctionScheduleSetErrors, FunctionScheduleSetResponse, FunctionScheduleSetResponses, FunctionSchedulesAddData, FunctionSchedulesAddError, FunctionSchedulesAddErrors, FunctionSchedulesAddResponse, FunctionSchedulesAddResponses, FunctionSchedulesListData, FunctionSchedulesListError, FunctionSchedulesListErrors, FunctionSchedulesListResponse, FunctionSchedulesListResponses, FunctionSchedulesRemoveData, FunctionSchedulesRemoveError, FunctionSchedulesRemoveErrors, FunctionSchedulesRemoveResponse, FunctionSchedulesRemoveResponses, FunctionSchedulesResumeData, FunctionSchedulesResumeError, FunctionSchedulesResumeErrors, FunctionSchedulesResumeResponse, FunctionSchedulesResumeResponses, FunctionSchedulesUpdateData, FunctionSchedulesUpdateError, FunctionSchedulesUpdateErrors, FunctionSchedulesUpdateResponse, FunctionSchedulesUpdateResponses, FunctionSdkGeneration, FunctionSource, FunctionUpdateData, FunctionUpdateError, FunctionUpdateErrors, FunctionUpdateOptions, FunctionUpdateResponse, FunctionUpdateResponses, FunctionUrlOptions, FunctionWithLinkResponse, FunctionWithLinkResponseWritable, GetCookiesResponse, GetCredentialsResponse, GetCreditCardResponse, GetFunctionRunResponse, GetFunctionRunResponseWritable, GetPaymentData, GetPaymentError, GetPaymentErrors, GetPaymentResponse, GetPaymentResponses, GetPaymentWalletConnectionData, GetPaymentWalletConnectionError, GetPaymentWalletConnectionErrors, GetPaymentWalletConnectionResponse, GetPaymentWalletConnectionResponses, GetPolicyData, GetPolicyError, GetPolicyErrors, GetPolicyResponse, GetPolicyResponses, GetScriptData, GetScriptError, GetScriptErrors, GetScriptResponse, GetScriptResponses, GetSecretData, GetSecretError, GetSecretErrors, GetSecretResponse, GetSecretResponses, GetSessionScriptData, GetSessionScriptError, GetSessionScriptErrors, GetSessionScriptResponse, GetSessionScriptResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageLogsData, GetUsageLogsError, GetUsageLogsErrors, GetUsageLogsResponse, GetUsageLogsResponses, GetUsageResponse, GetUsageResponses, GlobalScrapeOptions, GlobalScrapeRequest, GoBackAction, GoForwardAction, GotoAction, GotoNewTabAction, HeadingStyles, HealthCheckData, HealthCheckResponse, HealthCheckResponses, HealthResponse, HelpAction, HistoryData, HistoryError, HistoryErrors, HistoryResponse, HistoryResponses, HostPresetEntry, HttpValidationError, ImageResolution, Interval, InvalidateData, InvalidateError, InvalidateErrors, InvalidateResponse, InvalidateResponses, LegacyAgentStatusResponse, LimitsData, LimitsError, LimitsErrors, LimitsResponse, LimitsResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAuditEventsData, ListAuditEventsError, ListAuditEventsErrors, ListAuditEventsResponse, ListAuditEventsResponses, ListCredentialsResponse, ListDataApisData, ListDataApisError, ListDataApisErrors, ListDataApisResponse, ListDataApisResponses, ListFunctionRunsByFunctionIdData, ListFunctionRunsByFunctionIdError, ListFunctionRunsByFunctionIdErrors, ListFunctionRunsByFunctionIdResponse, ListFunctionRunsByFunctionIdResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListMonitorsData, ListMonitorsError, ListMonitorsErrors, ListMonitorsResponse, ListMonitorsResponses, ListPaymentRequestsData, ListPaymentRequestsError, ListPaymentRequestsErrors, ListPaymentRequestsResponse, ListPaymentRequestsResponses, ListPersonasData, ListPersonasError, ListPersonasErrors, ListPersonasResponse, ListPersonasResponses, ListSecretProxyHostPresetsData, ListSecretProxyHostPresetsError, ListSecretProxyHostPresetsErrors, ListSecretProxyHostPresetsResponse, ListSecretProxyHostPresetsResponses, ListSecretsData, ListSecretsError, ListSecretsErrors, ListSecretsResponse, ListSecretsResponses, ListSessionFilesData, ListSessionFilesError, ListSessionFilesErrors, ListSessionFilesResponse, ListSessionFilesResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListVaultsData, ListVaultsError, ListVaultsErrors, ListVaultsResponse, ListVaultsResponses, LlmModel, LocationClue, MailboxConnectRequest, MailboxConnectResponse, MailboxConnectTokenData, MailboxConnectTokenError, MailboxConnectTokenErrors, MailboxConnectTokenResponse, MailboxConnectTokenResponses, MailboxConnection, MailboxDeleteData, MailboxDeleteError, MailboxDeleteErrors, MailboxDeleteResponse, MailboxDeleteResponses, MailboxGetData, MailboxGetError, MailboxGetErrors, MailboxGetResponse, MailboxGetResponses, MailboxListData, MailboxListError, MailboxListErrors, MailboxListResponse, MailboxListResponse2, MailboxListResponses, MailboxSyncData, MailboxSyncError, MailboxSyncErrors, MailboxSyncRequest, MailboxSyncResponse, MailboxSyncResponses, MailboxUpdateData, MailboxUpdateError, MailboxUpdateErrors, MailboxUpdateRequest, MailboxUpdateResponse, MailboxUpdateResponses, ManagedAuthConnectLinkCreateData, ManagedAuthConnectLinkCreateError, ManagedAuthConnectLinkCreateErrors, ManagedAuthConnectLinkCreateResponse, ManagedAuthConnectLinkCreateResponses, ManagedAuthCredentials, ManagedAuthCredentialsWritable, ManagedAuthOperation, ManagedAuthReadiness, ManagedAuthRunOptions, ManagedAuthRunResponse, MapsBusiness, MapsHours, MapsOrderLink, MapsParseParams, MapsResult, MapsSearchData, MapsSearchError, MapsSearchErrors, MapsSearchRequest, MapsSearchResponse, MapsSearchResponses, MarkdownParams, MessageReadOptions, MouseReplayPage, MultiFactorFillActionInput, MultiFactorFillActionInputWritable, MultiFactorFillActionOutput, MultiFactorFillActionOutputWritable, NameClue, NetworkBatchFile, NetworkLogsResponse, NewsArticle, NewsDateFilter, NewsEntityDomain, NewsEntityIsin, NewsEntityName, NewsEntityTicker, NewsFilter, NewsMatch, NewsMeta, NewsSearchBy, NewsSearchData, NewsSearchError, NewsSearchErrors, NewsSearchRequest, NewsSearchResponse, NewsSearchResponse2, NewsSearchResponses, NewsSort, NewsSource, NodeSelectors, NotFoundMatch, NotteAPIErrorBody, NotteApiDataApisMonitorsModelsWaitAction, NotteClientConfig, NotteCoreActionsActionsWaitAction, NotteProxy, Observation, ObservationWritable, ObserveRequest, Options, OrganizationClue, PageActData, PageActError, PageActErrors, PageActResponse, PageActResponses, PageCheckData, PageCheckError, PageCheckErrors, PageCheckResponse, PageCheckResponses, PageChooseData, PageChooseError, PageChooseErrors, PageChooseResponse, PageChooseResponses, PageDocumentReadData, PageDocumentReadError, PageDocumentReadErrors, PageDocumentReadResponse, PageDocumentReadResponses, PageDocumentResponse, PageExecuteData, PageExecuteError, PageExecuteErrors, PageExecuteResponse, PageExecuteResponses, PageFetchOptions, PageObserveData, PageObserveError, PageObserveErrors, PageObserveResponse, PageObserveResponses, PageScrapeData, PageScrapeError, PageScrapeErrors, PageScrapeResponse, PageScrapeResponses, PageScreenshotData, PageScreenshotError, PageScreenshotErrors, PageScreenshotResponses, PageTarget, PaginatedResponseAgentResponse, PaginatedResponseAgentResponseWritable, PaginatedResponseFunctionListItemResponse, PaginatedResponseFunctionListItemResponseWritable, PaginatedResponseFunctionRunListItemResponse, PaginatedResponseFunctionRunListItemResponseWritable, PaginatedResponsePaymentListItem, PaginatedResponsePaymentListItemWritable, PaginatedResponsePersonaResponse, PaginatedResponsePersonaResponseWritable, PaginatedResponseProfileResponse, PaginatedResponseProfileResponseWritable, PaginatedResponseSessionResponse, PaginatedResponseSessionResponseWritable, PaginatedResponseUsageLog, PaginatedResponseUsageLogWritable, PaginatedResponseVault, PaginatedResponseVaultWritable, ParameterInfo, ParsedOutput, PaymentConnectRequest, PaymentConnectionResponse, PaymentConnectionStatusResponse, PaymentDisconnectError, PaymentDisconnectResponse, PaymentListItem, PaymentNextAction, PaymentRequest, PaymentResponse, PeopleEnrichData, PeopleEnrichError, PeopleEnrichErrors, PeopleEnrichRequest, PeopleEnrichResponse, PeopleEnrichResponse2, PeopleEnrichResponses, PeopleTimeout, PerceptionType, PerformAction, Person, PersonDate, PersonEducation, PersonLocation, PersonName, PersonOrganization, PersonRole, PersonaConstructor, PersonaCreateData, PersonaCreateError, PersonaCreateErrors, PersonaCreateRequest, PersonaCreateResponse, PersonaCreateResponses, PersonaDeleteData, PersonaDeleteError, PersonaDeleteErrors, PersonaDeleteResponse, PersonaDeleteResponses, PersonaEmailProvider, PersonaEmailsListData, PersonaEmailsListError, PersonaEmailsListErrors, PersonaEmailsListResponse, PersonaEmailsListResponses, PersonaGetData, PersonaGetError, PersonaGetErrors, PersonaGetResponse, PersonaGetResponses, PersonaListOptions, PersonaResponse, PersonaResponseWithInternalEmail, PersonaSmsListData, PersonaSmsListError, PersonaSmsListErrors, PersonaSmsListResponse, PersonaSmsListResponses, PersonaUpdateData, PersonaUpdateError, PersonaUpdateErrors, PersonaUpdateRequest, PersonaUpdateResponse, PersonaUpdateResponses, PrepareRunPayloadUploadData, PrepareRunPayloadUploadError, PrepareRunPayloadUploadErrors, PrepareRunPayloadUploadResponse, PrepareRunPayloadUploadResponses, PressKeyAction, Product, ProductExtractRequest, ProductOutput, ProductParams, ProductResult, ProductVariant, ProfileCookiesGetData, ProfileCookiesGetError, ProfileCookiesGetErrors, ProfileCookiesGetResponse, ProfileCookiesGetResponses, ProfileCookiesImportRequest, ProfileCookiesImportResponse, ProfileCookiesSetData, ProfileCookiesSetError, ProfileCookiesSetErrors, ProfileCookiesSetResponse, ProfileCookiesSetResponses, ProfileCreateData, ProfileCreateError, ProfileCreateErrors, ProfileCreateRequest, ProfileCreateResponse, ProfileCreateResponses, ProfileDeleteData, ProfileDeleteError, ProfileDeleteErrors, ProfileDeleteResponse, ProfileDeleteResponse2, ProfileDeleteResponses, ProfileDuplicateData, ProfileDuplicateError, ProfileDuplicateErrors, ProfileDuplicateRequest, ProfileDuplicateResponse, ProfileDuplicateResponses, ProfileGetData, ProfileGetError, ProfileGetErrors, ProfileGetResponse, ProfileGetResponses, ProfileListData, ProfileListError, ProfileListErrors, ProfileListResponse, ProfileListResponses, ProfileResponse, ProfileStateImportRequest, ProfileStateImportResponse, ProfileStateSetData, ProfileStateSetError, ProfileStateSetErrors, ProfileStateSetResponse, ProfileStateSetResponses, ProxyGeolocationCountry, ReadyCheckData, ReadyCheckResponse, ReadyCheckResponses, ReloadAction, ReplayMissingResponse, ReplayOptions, ReplayResponse, ResourceRequestOptions, RetrieveChangeData, RetrieveChangeError, RetrieveChangeErrors, RetrieveChangeResponse, RetrieveChangeResponses, RetrieveData, RetrieveDeliveryData, RetrieveDeliveryError, RetrieveDeliveryErrors, RetrieveDeliveryResponse, RetrieveDeliveryResponses, RetrieveError, RetrieveErrors, RetrieveResponse, RetrieveResponses, RetrieveRunData, RetrieveRunError, RetrieveRunErrors, RetrieveRunResponse, RetrieveRunResponses, Retry, RetryData, RetryDelivery, RetryError, RetryErrors, RetryOptions, RetryResponse, RetryResponses, RootModelAny, RotateSecretData, RotateSecretError, RotateSecretErrors, RotateSecretResponse, RotateSecretResponses, RunFunctionRequest, RunNowData, RunNowError, RunNowErrors, RunNowResponse, RunNowResponses, RunPayloadReference, RunPayloadUploadRequest, RunPayloadUploadResponse, RunsData, RunsError, RunsErrors, RunsResponse, RunsResponses, RuntimePackage, SaveProfileOptions, ScheduleDeleteResponse, ScheduleResponse, SchemaGenerationResponse, ScrapeAction, ScrapeFormats, ScrapeFromHtmlData, ScrapeFromHtmlError, ScrapeFromHtmlErrors, ScrapeFromHtmlRequest, ScrapeFromHtmlResponse, ScrapeFromHtmlResponses, ScrapeOptions, ScrapeOutput, ScrapeRequest, ScrapeResponse, ScrapeResult, ScrapeSchemaResponse, FetchSpecializedDataData as ScrapeSpecializedDataData, FetchSpecializedDataError as ScrapeSpecializedDataError, FetchSpecializedDataErrors as ScrapeSpecializedDataErrors, FetchSpecializedDataResponse as ScrapeSpecializedDataResponse, FetchSpecializedDataResponses as ScrapeSpecializedDataResponses, ScrapeWebpageData, ScrapeWebpageError, ScrapeWebpageErrors, ScrapeWebpageResponse, ScrapeWebpageResponses, Screenshot, ScrollAction, ScrollDownAction, ScrollUpAction, SearchOptions, SearchRequest, SearchResponse, SearchResultItem, SearchResultsResponse, SearchSource, SearchSourcedAnswerResponse, SearchStructuredResponse, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponses, SecretListOptions, SecretListResponse, SecretMetadata, SecretNamespace, SecretProxy, SecretProxyHostPresetResponse, SecretProxyHostPresetsResponse, SecretProxySummary, SecretStoreOptions, SecretStoreRequest, SecretValueResponse, SelectDropdownOptionActionInput, SelectDropdownOptionActionInputWritable, SelectDropdownOptionActionOutput, SelectDropdownOptionActionOutputWritable, SelectOption, SemanticDetection, SerializedError, SessionAuthReadinessData, SessionAuthReadinessError, SessionAuthReadinessErrors, SessionAuthReadinessResponse, SessionAuthReadinessResponses, SessionCloseReason, SessionCookiesGetData, SessionCookiesGetError, SessionCookiesGetErrors, SessionCookiesGetResponse, SessionCookiesGetResponses, SessionCookiesSetData, SessionCookiesSetError, SessionCookiesSetErrors, SessionCookiesSetResponse, SessionCookiesSetResponses, SessionDebugInfoData, SessionDebugInfoError, SessionDebugInfoErrors, SessionDebugInfoResponse, SessionDebugInfoResponses, SessionDebugResponse, SessionFile, SessionFilesPage, SessionListOptions, SessionMouseReplayData, SessionMouseReplayError, SessionMouseReplayErrors, SessionMouseReplayResponse, SessionMouseReplayResponses, SessionNetworkLogsData, SessionNetworkLogsError, SessionNetworkLogsErrors, SessionNetworkLogsResponse, SessionNetworkLogsResponses, SessionOffsetData, SessionOffsetError, SessionOffsetErrors, SessionOffsetResponse, SessionOffsetResponse2, SessionOffsetResponses, SessionOptions, SessionPageDocumentRequest, SessionPauseData, SessionPauseError, SessionPauseErrors, SessionPauseResponse, SessionPauseResponses, SessionProfile, SessionProfilePreviewData, SessionProfilePreviewError, SessionProfilePreviewErrors, SessionProfilePreviewResponse, SessionProfilePreviewResponse2, SessionProfilePreviewResponses, SessionProfileSaveData, SessionProfileSaveError, SessionProfileSaveErrors, SessionProfileSaveRequest, SessionProfileSaveResponse, SessionProfileSaveResponses, SessionReplayData, SessionReplayError, SessionReplayErrors, SessionReplayResponse, SessionReplayResponses, AuthSessionResponse as SessionResponse, SessionResponseWritable, SessionResumeData, SessionResumeError, SessionResumeErrors, SessionResumeResponse, SessionResumeResponses, SessionScrapeOptions, SessionScriptOptions, SessionStartData, SessionStartError, SessionStartErrors, SessionStartOptions, SessionStartResponse, SessionStartResponses, SessionStatusData, SessionStatusError, SessionStatusErrors, SessionStatusResponse, SessionStatusResponses, SessionStopData, SessionStopError, SessionStopErrors, SessionStopResponse, SessionStopResponses, Shadows, SharedParams, SitemapTarget, SmsReadAction, SmsResponse, SnapshotMetadata, SpaceCategory, Spacing, StoreSecretData, StoreSecretError, StoreSecretErrors, StoreSecretResponse, StoreSecretResponses, StructuredData, StructuredDataBaseModel, Styleguide, StyleguideCacheMetadata, StyleguideEndpointData, StyleguideEndpointError, StyleguideEndpointErrors, StyleguideEndpointResponse, StyleguideEndpointResponses, StyleguideResponse, StyleguideTimeout, SubscriptionType, SummaryData, SummaryError, SummaryErrors, SummaryResponse, SummaryResponses, SwitchTabAction, TabSessionDebugResponse, TabsData, TailnetProxy, Typography, TypographyStyle, UpdateData, UpdateError, UpdateErrors, UpdateFunctionRunResponse, UpdateFunctionRunResponseWritable, UpdateMonitor, UpdateResponse, UpdateResponses, UploadFileActionInput, UploadFileActionOutput, UploadSessionFileData, UploadSessionFileError, UploadSessionFileErrors, UploadSessionFileResponse, UploadSessionFileResponses, UploadableFile, UsageLog, UsageLogEndpoint, UsageLogsOptions, UsageOptions, UsageResponse, ValidationError, Vault, VaultConstructor, VaultConstructorCreate, VaultConstructorWithId, VaultCreateData, VaultCreateError, VaultCreateErrors, VaultCreateRequest, VaultCreateResponse, VaultCreateResponses, VaultCredentialsAddData, VaultCredentialsAddError, VaultCredentialsAddErrors, VaultCredentialsAddResponse, VaultCredentialsAddResponses, VaultCredentialsDeleteData, VaultCredentialsDeleteError, VaultCredentialsDeleteErrors, VaultCredentialsDeleteResponse, VaultCredentialsDeleteResponses, VaultCredentialsGetData, VaultCredentialsGetError, VaultCredentialsGetErrors, VaultCredentialsGetResponse, VaultCredentialsGetResponses, VaultCredentialsListData, VaultCredentialsListError, VaultCredentialsListErrors, VaultCredentialsListResponse, VaultCredentialsListResponses, VaultCreditCardDeleteData, VaultCreditCardDeleteError, VaultCreditCardDeleteErrors, VaultCreditCardDeleteResponse, VaultCreditCardDeleteResponses, VaultCreditCardGetData, VaultCreditCardGetError, VaultCreditCardGetErrors, VaultCreditCardGetResponse, VaultCreditCardGetResponses, VaultCreditCardSetData, VaultCreditCardSetError, VaultCreditCardSetErrors, VaultCreditCardSetResponse, VaultCreditCardSetResponses, VaultDeleteData, VaultDeleteError, VaultDeleteErrors, VaultDeleteResponse, VaultDeleteResponses, VaultListOptions, VaultUpdateData, VaultUpdateError, VaultUpdateErrors, VaultUpdateRequest, VaultUpdateResponse, VaultUpdateResponses, ViewportData, WaitAction, WaitActionOutput, WebSocketUrls, Webhook, YouTubeCaption, YouTubeExtractRequest, YouTubeMetadata, YouTubeResult, YouTubeVideo, YoutubeEndpointData, YoutubeEndpointError, YoutubeEndpointErrors, YoutubeEndpointResponse, YoutubeEndpointResponses, ZodLikeSchema };
21430
+ export { ActionExecutionError, AuthenticationError, CAPTCHA_SOLVE_TIMEOUT_MS, CLUSTER_OVERLOAD_RETRY_DELAY_MS, CREDENTIAL_FIELDS, CaptchaRejectedError, DEFAULT_MAX_RETRIES, DEFAULT_NOTTE_API_URL, DEFAULT_REQUEST_TIMEOUT_MS, Encryption, EvaluateJsNoDataError, FUNCTION_RUN_ENDPOINTS, FUNCTION_RUN_TIMEOUT_MS, FailedToRunCloudFunctionError, FetchResponseDecodeError, FileExistsError, FileNotFoundError, FunctionRunRejectedError, InvalidRequestError, ManagedAuthError, NotteAPIError, NotteAPIExecutionError, NotteAnything, NotteClient, NotteError, NotteFunction, NotteManagedAuth, NottePersona, NotteSecrets, NotteTimeoutError, NotteUsage, NotteVault, PageFetchHTTPError, PageFetchResponse, RUN_API_KEY_HEADER, RemoteFileStorage, SESSION_START_TRIES, ScrapeFailedError, Session, SessionFiles, TIMEOUT_HEADER, accountChanges, accountRuns, actions, agentStart, agentStatus, agentStop, anythingStart, attempts, brandRetrieve, buildFetchScript, changes, checkForLatestVersion, client, connectLinkContext, connectLinkMailboxConnect, connectLinkMailboxSync, connectLinkMailboxes, connectLinkStatus, connectLinkSubmit, connectPaymentWallet, create, createClient, createOrAppendCookiesToFile, createPayment, creditUsage, NotteClient as default, deleteSecret, deleteSessionFile, delete_, deliveries, detail, disconnectPaymentWallet, downloadRunPayload, downloadSessionFile, executeSessionFile, extractProductEndpoint, fetchSpecializedData, functionConditionalRollback, functionCreate, functionDelete, functionDownloadUrl, functionFork, functionMetadataUpdate, functionRollback, functionRunGetMetadata, functionRunStart, functionRunStop, functionRunUpdateMetadata, functionRuntimeHealth, functionScheduleDelete, functionScheduleSet, functionSchedulesAdd, functionSchedulesList, functionSchedulesRemove, functionSchedulesResume, functionSchedulesUpdate, functionUpdate, getPayment, getPaymentWalletConnection, getPolicy, getRootDomain, getScript, getSecret, getSessionScript, getUsage, getUsageLogs, healthCheck, history_, installServerOwnedDialogPolicy, invalidate, isCaptchaSolveAction, isValidMfaSecret, limits, listAgents, listAuditEvents, listDataApis, listFunctionRunsByFunctionId, listFunctions, listMonitors, listPaymentRequests, listPersonas, listSecretProxyHostPresets, listSecrets, listSessionFiles, listSessions, listVaults, mailboxConnectToken, mailboxDelete, mailboxGet, mailboxList, mailboxSync, mailboxUpdate, managedAuthConnectLinkCreate, mapsSearch, newsSearch, observeServerOwnedDialog, pageAct, pageCheck, pageChoose, pageDocumentRead, pageExecute, pageObserve, pageScrape, pageScreenshot, peopleEnrich, personaCreate, personaDelete, personaEmailsList, personaGet, personaSmsList, personaUpdate, prepareRunPayloadUpload, processScrapeResponse, profileCookiesGet, profileCookiesSet, profileCreate, profileDelete, profileDuplicate, profileGet, profileList, profileStateSet, readCookiesFile, readyCheck, responseFromEvaluated, retrieve, retrieveChange, retrieveDelivery, retrieveRun, retry, retry$1 as retryWebhookDelivery, rotateSecret, runNow, runs, sanitizeFilename, scrapeFromHtml, fetchSpecializedData as scrapeSpecializedData, scrapeWebpage, searchWeb, sessionAuthReadiness, sessionCookiesGet, sessionCookiesSet, sessionDebugInfo, sessionMouseReplay, sessionNetworkLogs, sessionOffset, sessionPause, sessionProfilePreview, sessionProfileSave, sessionReplay, sessionResume, sessionStart, sessionStatus, sessionStop, startVersionCheck, storeSecret, styleguideEndpoint, summary, update, uploadSessionFile, validateCredentials, validateMfaSecret, validateUrl, vaultCreate, vaultCredentialsAdd, vaultCredentialsDelete, vaultCredentialsGet, vaultCredentialsList, vaultCreditCardDelete, vaultCreditCardGet, vaultCreditCardSet, vaultDelete, vaultUpdate, youtubeEndpoint };
21431
+ export type { AccountChangesData, AccountChangesError, AccountChangesErrors, AccountChangesResponse, AccountChangesResponses, AccountRunsData, AccountRunsError, AccountRunsErrors, AccountRunsResponse, AccountRunsResponses, ActRequest, ActResult, ActResultWritable, ActTimings, ActionInput, ActionOfType, ActionParameter, ActionSpace, ActionSpaceWritable, ActionType, AddCredentialsRequest, AddCredentialsResponse, AddCreditCardRequest, AddCreditCardResponse, AgentFunctionCodeResponse, AgentResponse, AgentStartData, AgentStartError, AgentStartErrors, AgentStartResponse, AgentStartResponses, AgentStatus, AgentStatusData, AgentStatusError, AgentStatusErrors, AgentStatusResponse, AgentStatusResponse2, AgentStatusResponses, AgentStopData, AgentStopError, AgentStopErrors, AgentStopResponse, AgentStopResponses, AnythingStartData, AnythingStartError, AnythingStartErrors, AnythingStartOptions, AnythingStartRequest, AnythingStartResponses, AnythingStartResult, AnythingStreamChunk, ApiAgentStartRequest, ApiExecutionResponse, ApiExecutionResponseWritable, ApiSessionStartRequest, AttemptsData, AttemptsError, AttemptsErrors, AttemptsResponse, AttemptsResponses, AuditEvent, AuditEventListResponse, AuthSessionResponse, AuthWaitOptions, BaseModel, BaseModelWritable, BodyFunctionCreateFunctionsPost, BodyFunctionUpdateFunctionsFunctionIdPost, BodySessionCookiesSetSessionsSessionIdCookiesPost, BodyUploadSessionFileSessionsSessionIdFilesPost, BoundingBox, BrandAddress, BrandByDirectUrl, BrandByDomain, BrandByEmail, BrandByName, BrandByTicker, BrandByTransaction, BrandCacheMetadata, BrandColor, BrandEmployees, BrandImage, BrandIndustries, BrandIndustry, BrandKeyMetadata, BrandLinks, BrandLogo, BrandProfile, BrandResponse, BrandRetrieveData, BrandRetrieveError, BrandRetrieveErrors, BrandRetrieveResponse, BrandRetrieveResponses, BrandSocial, BrandStock, BrandTimeout, ButtonStyle, ButtonStyles, CandidateMatch, CapabilityEndpoint, CaptchaExecutionResponse, CaptchaSolveAction, CaptchaStatus, CardStyle, ChangesData, ChangesError, ChangesErrors, ChangesResponse, ChangesResponses, CheckActionInput, CheckActionOutput, CheckRequest, CheckResponse, Choice, ChooseRequest, ClickActionInput, ClickActionOutput, ClientOptions, CloseTabAction, Color, Colors, CompletionAction, Components, ConditionalFunctionRollbackRequest, ConnectLinkContext, ConnectLinkContextData, ConnectLinkContextError, ConnectLinkContextErrors, ConnectLinkContextResponse, ConnectLinkContextResponses, ConnectLinkCreateRequest, ConnectLinkCreateResponse, ConnectLinkMailbox, ConnectLinkMailboxConnectData, ConnectLinkMailboxConnectError, ConnectLinkMailboxConnectErrors, ConnectLinkMailboxConnectRequest, ConnectLinkMailboxConnectResponse, ConnectLinkMailboxConnectResponse2, ConnectLinkMailboxConnectResponses, ConnectLinkMailboxSyncData, ConnectLinkMailboxSyncError, ConnectLinkMailboxSyncErrors, ConnectLinkMailboxSyncRequest, ConnectLinkMailboxSyncResponse, ConnectLinkMailboxSyncResponses, ConnectLinkMailboxesData, ConnectLinkMailboxesError, ConnectLinkMailboxesErrors, ConnectLinkMailboxesResponse, ConnectLinkMailboxesResponses, ConnectLinkStatusData, ConnectLinkStatusError, ConnectLinkStatusErrors, ConnectLinkStatusResponse, ConnectLinkStatusResponse2, ConnectLinkStatusResponses, ConnectLinkSubmitData, ConnectLinkSubmitError, ConnectLinkSubmitErrors, ConnectLinkSubmitRequest, ConnectLinkSubmitRequestWritable, ConnectLinkSubmitResponse, ConnectLinkSubmitResponses, ConnectPaymentWalletData, ConnectPaymentWalletError, ConnectPaymentWalletErrors, ConnectPaymentWalletResponse, ConnectPaymentWalletResponses, Cookie, CreateData, CreateError, CreateErrors, CreateMonitor, CreatePaymentData, CreatePaymentError, CreatePaymentErrors, CreatePaymentResponse, CreatePaymentResponses, CreateResponse, CreateResponses, Credential, CredentialField, CredentialsDictInput, CredentialsDictOutput, CreditCardDictInput, CreditCardDictOutput, CreditUsageData, CreditUsageError, CreditUsageErrors, CreditUsageResponse, CreditUsageResponses, DataScrapeRequest, DataSpace, DeleteCredentialsResponse, DeleteCreditCardResponse, DeleteData, DeleteError, DeleteErrors, DeleteFunctionResponse, DeletePersonaResponse, DeleteResponse, DeleteResponses, DeleteSecretData, DeleteSecretError, DeleteSecretErrors, DeleteSecretResponse, DeleteSecretResponses, DeleteSessionFileData, DeleteSessionFileError, DeleteSessionFileErrors, DeleteSessionFileResponse, DeleteSessionFileResponses, DeleteVaultResponse, DeliveriesData, DeliveriesError, DeliveriesErrors, DeliveriesResponse, DeliveriesResponses, DeliveryList, DetailData, DetailError, DetailErrors, DetailResponse, DetailResponses, DisconnectPaymentWalletData, DisconnectPaymentWalletError, DisconnectPaymentWalletErrors, DisconnectPaymentWalletResponse, DisconnectPaymentWalletResponses, DownloadFileActionInput, DownloadFileActionOutput, DownloadRunPayloadData, DownloadRunPayloadError, DownloadRunPayloadErrors, DownloadRunPayloadResponses, DownloadSessionFileData, DownloadSessionFileError, DownloadSessionFileErrors, DownloadSessionFileResponses, EducationClue, ElementState, EmailAttachment, EmailReadAction, EmailResponse, EmailVerificationReadAction, EvaluateJsAction, ExactDetection, ExecuteAction, ExecuteOptions, ExecuteSessionFileData, ExecuteSessionFileError, ExecuteSessionFileErrors, ExecuteSessionFileResponse, ExecuteSessionFileResponses, ExecutionResponse, ExecutionResult, ExecutionResultWritable, ExternalProxy, ExtractProductEndpointData, ExtractProductEndpointError, ExtractProductEndpointErrors, ExtractProductEndpointResponse, ExtractProductEndpointResponses, ExtractTarget, FallbackFillActionInput, FallbackFillActionInputWritable, FallbackFillActionOutput, FallbackFillActionOutputWritable, FetchData, FetchSpecializedDataData, FetchSpecializedDataError, FetchSpecializedDataErrors, FetchSpecializedDataResponse, FetchSpecializedDataResponses, FileDownloadOptions, FileExecutionRequest, FileListOptions, FileSource, FillActionInput, FillActionInputWritable, FillActionOutput, FillActionOutputWritable, FontLink, FormFillAction, FormFillActionWritable, FrameData, FunctionConditionalRollbackData, FunctionConditionalRollbackError, FunctionConditionalRollbackErrors, FunctionConditionalRollbackResponse, FunctionConditionalRollbackResponses, FunctionConstructor, FunctionConstructorCreate, FunctionConstructorWithId, FunctionCreateData, FunctionCreateError, FunctionCreateErrors, FunctionCreateResponse, FunctionCreateResponses, FunctionDeleteData, FunctionDeleteError, FunctionDeleteErrors, FunctionDeleteOptions, FunctionDeleteResponse, FunctionDeleteResponses, FunctionDownloadOptions, FunctionDownloadUrlData, FunctionDownloadUrlError, FunctionDownloadUrlErrors, FunctionDownloadUrlResponse, FunctionDownloadUrlResponses, FunctionForkData, FunctionForkError, FunctionForkErrors, FunctionForkResponse, FunctionForkResponses, FunctionGetOptions, FunctionListItemResponse, FunctionListItemResponseWritable, FunctionListOptions, FunctionMetadataUpdateData, FunctionMetadataUpdateError, FunctionMetadataUpdateErrors, FunctionMetadataUpdateOptions, FunctionMetadataUpdateRequest, FunctionMetadataUpdateResponse, FunctionMetadataUpdateResponses, FunctionResponse, FunctionResponseWritable, FunctionRollbackData, FunctionRollbackError, FunctionRollbackErrors, FunctionRollbackOptions, FunctionRollbackRequest, FunctionRollbackResponse, FunctionRollbackResponses, FunctionRunCreateOptions, FunctionRunCreateResult, FunctionRunError, FunctionRunGetMetadataData, FunctionRunGetMetadataError, FunctionRunGetMetadataErrors, FunctionRunGetMetadataResponse, FunctionRunGetMetadataResponses, FunctionRunListItemResponse, FunctionRunListItemResponseWritable, FunctionRunListOptions, FunctionRunOptions, FunctionRunResponse, FunctionRunResult, FunctionRunStartData, FunctionRunStartError, FunctionRunStartErrors, FunctionRunStartResponses, FunctionRunStartResult, FunctionRunStatus, FunctionRunStopData, FunctionRunStopError, FunctionRunStopErrors, FunctionRunStopResponse, FunctionRunStopResponses, FunctionRunUpdateMetadataData, FunctionRunUpdateMetadataError, FunctionRunUpdateMetadataErrors, FunctionRunUpdateMetadataResponse, FunctionRunUpdateMetadataResponses, FunctionRunUpdateRequest, FunctionRuntime, FunctionRuntimeHealthData, FunctionRuntimeHealthError, FunctionRuntimeHealthErrors, FunctionRuntimeHealthResponse, FunctionRuntimeHealthResponse2, FunctionRuntimeHealthResponses, FunctionSchedule, FunctionScheduleCreateRequest, FunctionScheduleDeleteData, FunctionScheduleDeleteError, FunctionScheduleDeleteErrors, FunctionScheduleDeleteResponse, FunctionScheduleDeleteResponses, FunctionScheduleListResponse, FunctionScheduleOptions, FunctionScheduleSetData, FunctionScheduleSetError, FunctionScheduleSetErrors, FunctionScheduleSetResponse, FunctionScheduleSetResponses, FunctionSchedulesAddData, FunctionSchedulesAddError, FunctionSchedulesAddErrors, FunctionSchedulesAddResponse, FunctionSchedulesAddResponses, FunctionSchedulesListData, FunctionSchedulesListError, FunctionSchedulesListErrors, FunctionSchedulesListResponse, FunctionSchedulesListResponses, FunctionSchedulesRemoveData, FunctionSchedulesRemoveError, FunctionSchedulesRemoveErrors, FunctionSchedulesRemoveResponse, FunctionSchedulesRemoveResponses, FunctionSchedulesResumeData, FunctionSchedulesResumeError, FunctionSchedulesResumeErrors, FunctionSchedulesResumeResponse, FunctionSchedulesResumeResponses, FunctionSchedulesUpdateData, FunctionSchedulesUpdateError, FunctionSchedulesUpdateErrors, FunctionSchedulesUpdateResponse, FunctionSchedulesUpdateResponses, FunctionSdkGeneration, FunctionSource, FunctionUpdateData, FunctionUpdateError, FunctionUpdateErrors, FunctionUpdateOptions, FunctionUpdateResponse, FunctionUpdateResponses, FunctionUrlOptions, FunctionWithLinkResponse, FunctionWithLinkResponseWritable, GetCookiesResponse, GetCredentialsResponse, GetCreditCardResponse, GetFunctionRunResponse, GetFunctionRunResponseWritable, GetPaymentData, GetPaymentError, GetPaymentErrors, GetPaymentResponse, GetPaymentResponses, GetPaymentWalletConnectionData, GetPaymentWalletConnectionError, GetPaymentWalletConnectionErrors, GetPaymentWalletConnectionResponse, GetPaymentWalletConnectionResponses, GetPolicyData, GetPolicyError, GetPolicyErrors, GetPolicyResponse, GetPolicyResponses, GetScriptData, GetScriptError, GetScriptErrors, GetScriptResponse, GetScriptResponses, GetSecretData, GetSecretError, GetSecretErrors, GetSecretResponse, GetSecretResponses, GetSessionScriptData, GetSessionScriptError, GetSessionScriptErrors, GetSessionScriptResponse, GetSessionScriptResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageLogsData, GetUsageLogsError, GetUsageLogsErrors, GetUsageLogsResponse, GetUsageLogsResponses, GetUsageResponse, GetUsageResponses, GlobalScrapeOptions, GlobalScrapeRequest, GoBackAction, GoForwardAction, GotoAction, GotoNewTabAction, HeadingStyles, HealthCheckData, HealthCheckResponse, HealthCheckResponses, HealthResponse, HelpAction, HistoryData, HistoryError, HistoryErrors, HistoryResponse, HistoryResponses, HostPresetEntry, HttpValidationError, ImageResolution, Interval, InvalidateData, InvalidateError, InvalidateErrors, InvalidateResponse, InvalidateResponses, LegacyAgentStatusResponse, LimitsData, LimitsError, LimitsErrors, LimitsResponse, LimitsResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAuditEventsData, ListAuditEventsError, ListAuditEventsErrors, ListAuditEventsResponse, ListAuditEventsResponses, ListCredentialsResponse, ListDataApisData, ListDataApisError, ListDataApisErrors, ListDataApisResponse, ListDataApisResponses, ListFunctionRunsByFunctionIdData, ListFunctionRunsByFunctionIdError, ListFunctionRunsByFunctionIdErrors, ListFunctionRunsByFunctionIdResponse, ListFunctionRunsByFunctionIdResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListMonitorsData, ListMonitorsError, ListMonitorsErrors, ListMonitorsResponse, ListMonitorsResponses, ListPaymentRequestsData, ListPaymentRequestsError, ListPaymentRequestsErrors, ListPaymentRequestsResponse, ListPaymentRequestsResponses, ListPersonasData, ListPersonasError, ListPersonasErrors, ListPersonasResponse, ListPersonasResponses, ListSecretProxyHostPresetsData, ListSecretProxyHostPresetsError, ListSecretProxyHostPresetsErrors, ListSecretProxyHostPresetsResponse, ListSecretProxyHostPresetsResponses, ListSecretsData, ListSecretsError, ListSecretsErrors, ListSecretsResponse, ListSecretsResponses, ListSessionFilesData, ListSessionFilesError, ListSessionFilesErrors, ListSessionFilesResponse, ListSessionFilesResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListVaultsData, ListVaultsError, ListVaultsErrors, ListVaultsResponse, ListVaultsResponses, LlmModel, LocationClue, MailboxConnectRequest, MailboxConnectResponse, MailboxConnectTokenData, MailboxConnectTokenError, MailboxConnectTokenErrors, MailboxConnectTokenResponse, MailboxConnectTokenResponses, MailboxConnection, MailboxDeleteData, MailboxDeleteError, MailboxDeleteErrors, MailboxDeleteResponse, MailboxDeleteResponses, MailboxGetData, MailboxGetError, MailboxGetErrors, MailboxGetResponse, MailboxGetResponses, MailboxListData, MailboxListError, MailboxListErrors, MailboxListResponse, MailboxListResponse2, MailboxListResponses, MailboxSyncData, MailboxSyncError, MailboxSyncErrors, MailboxSyncRequest, MailboxSyncResponse, MailboxSyncResponses, MailboxUpdateData, MailboxUpdateError, MailboxUpdateErrors, MailboxUpdateRequest, MailboxUpdateResponse, MailboxUpdateResponses, ManagedAuthConnectLinkCreateData, ManagedAuthConnectLinkCreateError, ManagedAuthConnectLinkCreateErrors, ManagedAuthConnectLinkCreateResponse, ManagedAuthConnectLinkCreateResponses, ManagedAuthCredentials, ManagedAuthCredentialsWritable, ManagedAuthOperation, ManagedAuthReadiness, ManagedAuthRunOptions, ManagedAuthRunResponse, MapsBusiness, MapsHours, MapsOrderLink, MapsParseParams, MapsResult, MapsSearchData, MapsSearchError, MapsSearchErrors, MapsSearchRequest, MapsSearchResponse, MapsSearchResponses, MarkdownParams, MessageReadOptions, MouseReplayPage, MultiFactorFillActionInput, MultiFactorFillActionInputWritable, MultiFactorFillActionOutput, MultiFactorFillActionOutputWritable, NameClue, NetworkBatchFile, NetworkLogsResponse, NewsArticle, NewsDateFilter, NewsEntityDomain, NewsEntityIsin, NewsEntityName, NewsEntityTicker, NewsFilter, NewsMatch, NewsMeta, NewsSearchBy, NewsSearchData, NewsSearchError, NewsSearchErrors, NewsSearchRequest, NewsSearchResponse, NewsSearchResponse2, NewsSearchResponses, NewsSort, NewsSource, NodeSelectors, NotFoundMatch, NotteAPIErrorBody, NotteApiDataApisMonitorsModelsWaitAction, NotteClientConfig, NotteCoreActionsActionsWaitAction, NotteProxy, Observation, ObservationWritable, ObserveRequest, Options, OrganizationClue, PageActData, PageActError, PageActErrors, PageActResponse, PageActResponses, PageCheckData, PageCheckError, PageCheckErrors, PageCheckResponse, PageCheckResponses, PageChooseData, PageChooseError, PageChooseErrors, PageChooseResponse, PageChooseResponses, PageDocumentReadData, PageDocumentReadError, PageDocumentReadErrors, PageDocumentReadResponse, PageDocumentReadResponses, PageDocumentResponse, PageExecuteData, PageExecuteError, PageExecuteErrors, PageExecuteResponse, PageExecuteResponses, PageFetchOptions, PageObserveData, PageObserveError, PageObserveErrors, PageObserveResponse, PageObserveResponses, PageScrapeData, PageScrapeError, PageScrapeErrors, PageScrapeResponse, PageScrapeResponses, PageScreenshotData, PageScreenshotError, PageScreenshotErrors, PageScreenshotResponses, PageTarget, PaginatedResponseAgentResponse, PaginatedResponseAgentResponseWritable, PaginatedResponseFunctionListItemResponse, PaginatedResponseFunctionListItemResponseWritable, PaginatedResponseFunctionRunListItemResponse, PaginatedResponseFunctionRunListItemResponseWritable, PaginatedResponsePaymentListItem, PaginatedResponsePaymentListItemWritable, PaginatedResponsePersonaResponse, PaginatedResponsePersonaResponseWritable, PaginatedResponseProfileResponse, PaginatedResponseProfileResponseWritable, PaginatedResponseSessionResponse, PaginatedResponseSessionResponseWritable, PaginatedResponseUsageLog, PaginatedResponseUsageLogWritable, PaginatedResponseVault, PaginatedResponseVaultWritable, ParameterInfo, ParsedOutput, PaymentConnectRequest, PaymentConnectionResponse, PaymentConnectionStatusResponse, PaymentDisconnectError, PaymentDisconnectResponse, PaymentListItem, PaymentNextAction, PaymentRequest, PaymentResponse, PeopleEnrichData, PeopleEnrichError, PeopleEnrichErrors, PeopleEnrichRequest, PeopleEnrichResponse, PeopleEnrichResponse2, PeopleEnrichResponses, PeopleTimeout, PerceptionType, PerformAction, Person, PersonDate, PersonEducation, PersonLocation, PersonName, PersonOrganization, PersonRole, PersonaConstructor, PersonaCreateData, PersonaCreateError, PersonaCreateErrors, PersonaCreateRequest, PersonaCreateResponse, PersonaCreateResponses, PersonaDeleteData, PersonaDeleteError, PersonaDeleteErrors, PersonaDeleteResponse, PersonaDeleteResponses, PersonaEmailProvider, PersonaEmailsListData, PersonaEmailsListError, PersonaEmailsListErrors, PersonaEmailsListResponse, PersonaEmailsListResponses, PersonaGetData, PersonaGetError, PersonaGetErrors, PersonaGetResponse, PersonaGetResponses, PersonaListOptions, PersonaResponse, PersonaResponseWithInternalEmail, PersonaSmsListData, PersonaSmsListError, PersonaSmsListErrors, PersonaSmsListResponse, PersonaSmsListResponses, PersonaUpdateData, PersonaUpdateError, PersonaUpdateErrors, PersonaUpdateRequest, PersonaUpdateResponse, PersonaUpdateResponses, PrepareRunPayloadUploadData, PrepareRunPayloadUploadError, PrepareRunPayloadUploadErrors, PrepareRunPayloadUploadResponse, PrepareRunPayloadUploadResponses, PressKeyAction, Product, ProductExtractRequest, ProductOutput, ProductParams, ProductResult, ProductVariant, ProfileCookiesGetData, ProfileCookiesGetError, ProfileCookiesGetErrors, ProfileCookiesGetResponse, ProfileCookiesGetResponses, ProfileCookiesImportRequest, ProfileCookiesImportResponse, ProfileCookiesSetData, ProfileCookiesSetError, ProfileCookiesSetErrors, ProfileCookiesSetResponse, ProfileCookiesSetResponses, ProfileCreateData, ProfileCreateError, ProfileCreateErrors, ProfileCreateRequest, ProfileCreateResponse, ProfileCreateResponses, ProfileDeleteData, ProfileDeleteError, ProfileDeleteErrors, ProfileDeleteResponse, ProfileDeleteResponse2, ProfileDeleteResponses, ProfileDuplicateData, ProfileDuplicateError, ProfileDuplicateErrors, ProfileDuplicateRequest, ProfileDuplicateResponse, ProfileDuplicateResponses, ProfileGetData, ProfileGetError, ProfileGetErrors, ProfileGetResponse, ProfileGetResponses, ProfileListData, ProfileListError, ProfileListErrors, ProfileListResponse, ProfileListResponses, ProfileResponse, ProfileStateImportRequest, ProfileStateImportResponse, ProfileStateSetData, ProfileStateSetError, ProfileStateSetErrors, ProfileStateSetResponse, ProfileStateSetResponses, ProxyGeolocationCountry, ReadyCheckData, ReadyCheckResponse, ReadyCheckResponses, ReloadAction, ReplayMissingResponse, ReplayOptions, ReplayResponse, ResourceRequestOptions, RetrieveChangeData, RetrieveChangeError, RetrieveChangeErrors, RetrieveChangeResponse, RetrieveChangeResponses, RetrieveData, RetrieveDeliveryData, RetrieveDeliveryError, RetrieveDeliveryErrors, RetrieveDeliveryResponse, RetrieveDeliveryResponses, RetrieveError, RetrieveErrors, RetrieveResponse, RetrieveResponses, RetrieveRunData, RetrieveRunError, RetrieveRunErrors, RetrieveRunResponse, RetrieveRunResponses, Retry, RetryData, RetryDelivery, RetryError, RetryErrors, RetryOptions, RetryResponse, RetryResponses, RootModelAny, RotateSecretData, RotateSecretError, RotateSecretErrors, RotateSecretResponse, RotateSecretResponses, RunFunctionRequest, RunNowData, RunNowError, RunNowErrors, RunNowResponse, RunNowResponses, RunPayloadReference, RunPayloadUploadRequest, RunPayloadUploadResponse, RunsData, RunsError, RunsErrors, RunsResponse, RunsResponses, RuntimePackage, SaveProfileOptions, ScheduleDeleteResponse, ScheduleResponse, SchemaGenerationResponse, ScrapeAction, ScrapeFormats, ScrapeFromHtmlData, ScrapeFromHtmlError, ScrapeFromHtmlErrors, ScrapeFromHtmlRequest, ScrapeFromHtmlResponse, ScrapeFromHtmlResponses, ScrapeOptions, ScrapeOutput, ScrapeRequest, ScrapeResponse, ScrapeResult, ScrapeSchemaResponse, FetchSpecializedDataData as ScrapeSpecializedDataData, FetchSpecializedDataError as ScrapeSpecializedDataError, FetchSpecializedDataErrors as ScrapeSpecializedDataErrors, FetchSpecializedDataResponse as ScrapeSpecializedDataResponse, FetchSpecializedDataResponses as ScrapeSpecializedDataResponses, ScrapeWebpageData, ScrapeWebpageError, ScrapeWebpageErrors, ScrapeWebpageResponse, ScrapeWebpageResponses, Screenshot, ScrollAction, ScrollDownAction, ScrollUpAction, SearchOptions, SearchRequest, SearchResponse, SearchResultItem, SearchResultsResponse, SearchSource, SearchSourcedAnswerResponse, SearchStructuredResponse, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponses, SecretListOptions, SecretListResponse, SecretMetadata, SecretNamespace, SecretProxy, SecretProxyHostPresetResponse, SecretProxyHostPresetsResponse, SecretProxySummary, SecretStoreOptions, SecretStoreRequest, SecretValueResponse, SelectDropdownOptionActionInput, SelectDropdownOptionActionInputWritable, SelectDropdownOptionActionOutput, SelectDropdownOptionActionOutputWritable, SelectOption, SemanticDetection, SerializedError, SessionAuthReadinessData, SessionAuthReadinessError, SessionAuthReadinessErrors, SessionAuthReadinessResponse, SessionAuthReadinessResponses, SessionCloseReason, SessionCookiesGetData, SessionCookiesGetError, SessionCookiesGetErrors, SessionCookiesGetResponse, SessionCookiesGetResponses, SessionCookiesSetData, SessionCookiesSetError, SessionCookiesSetErrors, SessionCookiesSetResponse, SessionCookiesSetResponses, SessionDebugInfoData, SessionDebugInfoError, SessionDebugInfoErrors, SessionDebugInfoResponse, SessionDebugInfoResponses, SessionDebugResponse, SessionFile, SessionFilesPage, SessionListOptions, SessionMouseReplayData, SessionMouseReplayError, SessionMouseReplayErrors, SessionMouseReplayResponse, SessionMouseReplayResponses, SessionNetworkLogsData, SessionNetworkLogsError, SessionNetworkLogsErrors, SessionNetworkLogsResponse, SessionNetworkLogsResponses, SessionOffsetData, SessionOffsetError, SessionOffsetErrors, SessionOffsetResponse, SessionOffsetResponse2, SessionOffsetResponses, SessionOptions, SessionPageDocumentRequest, SessionPauseData, SessionPauseError, SessionPauseErrors, SessionPauseResponse, SessionPauseResponses, SessionProfile, SessionProfilePreviewData, SessionProfilePreviewError, SessionProfilePreviewErrors, SessionProfilePreviewResponse, SessionProfilePreviewResponse2, SessionProfilePreviewResponses, SessionProfileSaveData, SessionProfileSaveError, SessionProfileSaveErrors, SessionProfileSaveRequest, SessionProfileSaveResponse, SessionProfileSaveResponses, SessionReplayData, SessionReplayError, SessionReplayErrors, SessionReplayResponse, SessionReplayResponses, AuthSessionResponse as SessionResponse, SessionResponseWritable, SessionResumeData, SessionResumeError, SessionResumeErrors, SessionResumeResponse, SessionResumeResponses, SessionScrapeOptions, SessionScriptOptions, SessionStartData, SessionStartError, SessionStartErrors, SessionStartOptions, SessionStartResponse, SessionStartResponses, SessionStatusData, SessionStatusError, SessionStatusErrors, SessionStatusResponse, SessionStatusResponses, SessionStopData, SessionStopError, SessionStopErrors, SessionStopResponse, SessionStopResponses, SessionWarning, Shadows, SharedParams, SitemapTarget, SmsReadAction, SmsResponse, SnapshotMetadata, SpaceCategory, Spacing, StoreSecretData, StoreSecretError, StoreSecretErrors, StoreSecretResponse, StoreSecretResponses, StructuredData, StructuredDataBaseModel, Styleguide, StyleguideCacheMetadata, StyleguideEndpointData, StyleguideEndpointError, StyleguideEndpointErrors, StyleguideEndpointResponse, StyleguideEndpointResponses, StyleguideResponse, StyleguideTimeout, SubscriptionType, SummaryData, SummaryError, SummaryErrors, SummaryResponse, SummaryResponses, SwitchTabAction, TabSessionDebugResponse, TabsData, TailnetProxy, Typography, TypographyStyle, UpdateData, UpdateError, UpdateErrors, UpdateFunctionRunResponse, UpdateFunctionRunResponseWritable, UpdateMonitor, UpdateResponse, UpdateResponses, UploadFileActionInput, UploadFileActionOutput, UploadSessionFileData, UploadSessionFileError, UploadSessionFileErrors, UploadSessionFileResponse, UploadSessionFileResponses, UploadableFile, UsageLog, UsageLogEndpoint, UsageLogsOptions, UsageOptions, UsageResponse, ValidationError, Vault, VaultConstructor, VaultConstructorCreate, VaultConstructorWithId, VaultCreateData, VaultCreateError, VaultCreateErrors, VaultCreateRequest, VaultCreateResponse, VaultCreateResponses, VaultCredentialsAddData, VaultCredentialsAddError, VaultCredentialsAddErrors, VaultCredentialsAddResponse, VaultCredentialsAddResponses, VaultCredentialsDeleteData, VaultCredentialsDeleteError, VaultCredentialsDeleteErrors, VaultCredentialsDeleteResponse, VaultCredentialsDeleteResponses, VaultCredentialsGetData, VaultCredentialsGetError, VaultCredentialsGetErrors, VaultCredentialsGetResponse, VaultCredentialsGetResponses, VaultCredentialsListData, VaultCredentialsListError, VaultCredentialsListErrors, VaultCredentialsListResponse, VaultCredentialsListResponses, VaultCreditCardDeleteData, VaultCreditCardDeleteError, VaultCreditCardDeleteErrors, VaultCreditCardDeleteResponse, VaultCreditCardDeleteResponses, VaultCreditCardGetData, VaultCreditCardGetError, VaultCreditCardGetErrors, VaultCreditCardGetResponse, VaultCreditCardGetResponses, VaultCreditCardSetData, VaultCreditCardSetError, VaultCreditCardSetErrors, VaultCreditCardSetResponse, VaultCreditCardSetResponses, VaultDeleteData, VaultDeleteError, VaultDeleteErrors, VaultDeleteResponse, VaultDeleteResponses, VaultListOptions, VaultUpdateData, VaultUpdateError, VaultUpdateErrors, VaultUpdateRequest, VaultUpdateResponse, VaultUpdateResponses, ViewportData, WaitAction, WaitActionOutput, WebSocketUrls, Webhook, YouTubeCaption, YouTubeExtractRequest, YouTubeMetadata, YouTubeResult, YouTubeVideo, YoutubeEndpointData, YoutubeEndpointError, YoutubeEndpointErrors, YoutubeEndpointResponse, YoutubeEndpointResponses, ZodLikeSchema };
package/dist/index.js CHANGED
@@ -35,6 +35,7 @@ __export(index_exports, {
35
35
  CAPTCHA_SOLVE_TIMEOUT_MS: () => CAPTCHA_SOLVE_TIMEOUT_MS,
36
36
  CLUSTER_OVERLOAD_RETRY_DELAY_MS: () => CLUSTER_OVERLOAD_RETRY_DELAY_MS,
37
37
  CREDENTIAL_FIELDS: () => CREDENTIAL_FIELDS,
38
+ CaptchaRejectedError: () => CaptchaRejectedError,
38
39
  DEFAULT_MAX_RETRIES: () => DEFAULT_MAX_RETRIES,
39
40
  DEFAULT_NOTTE_API_URL: () => DEFAULT_NOTTE_API_URL,
40
41
  DEFAULT_REQUEST_TIMEOUT_MS: () => DEFAULT_REQUEST_TIMEOUT_MS,
@@ -46,6 +47,7 @@ __export(index_exports, {
46
47
  FetchResponseDecodeError: () => FetchResponseDecodeError,
47
48
  FileExistsError: () => FileExistsError,
48
49
  FileNotFoundError: () => FileNotFoundError,
50
+ FunctionRunRejectedError: () => FunctionRunRejectedError,
49
51
  InvalidRequestError: () => InvalidRequestError,
50
52
  ManagedAuthError: () => ManagedAuthError,
51
53
  NotteAPIError: () => NotteAPIError,
@@ -247,7 +249,7 @@ __export(index_exports, {
247
249
  module.exports = __toCommonJS(index_exports);
248
250
 
249
251
  // src/version.ts
250
- var SDK_VERSION = true ? "1.10.12" : "dev";
252
+ var SDK_VERSION = true ? "1.10.13" : "dev";
251
253
  var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
252
254
 
253
255
  // src/version-check.ts
@@ -2161,6 +2163,9 @@ var getSessionScript = (options) => (options.client ?? client).get({
2161
2163
  ...options
2162
2164
  });
2163
2165
 
2166
+ // src/run-statuses.ts
2167
+ var ACCEPT_RUN_STATUSES_HEADER = "x-notte-accept-run-statuses";
2168
+
2164
2169
  // src/managed-auth.ts
2165
2170
  var import_promises = require("timers/promises");
2166
2171
 
@@ -2221,15 +2226,32 @@ var FailedToRunCloudFunctionError = class extends NotteError {
2221
2226
  functionId;
2222
2227
  functionRunId;
2223
2228
  response;
2224
- constructor(functionId, functionRunId, response) {
2229
+ constructor(functionId, functionRunId, response, message) {
2225
2230
  super(
2226
- `Function ${functionId} run ${functionRunId} failed: ${typeof response === "string" ? response : describeBody(response ?? {})}`
2231
+ message ?? `Function ${functionId} run ${functionRunId} failed: ${typeof response === "string" ? response : describeBody(response ?? {})}`
2227
2232
  );
2228
2233
  this.functionId = functionId;
2229
2234
  this.functionRunId = functionRunId;
2230
2235
  this.response = response;
2231
2236
  }
2232
2237
  };
2238
+ var FunctionRunRejectedError = class extends FailedToRunCloudFunctionError {
2239
+ error;
2240
+ code;
2241
+ constructor(functionId, functionRunId, response) {
2242
+ const error = response.error ?? null;
2243
+ const code = typeof error?.code === "string" && error.code ? error.code : null;
2244
+ const detail2 = typeof error?.message === "string" && error.message ? error.message : `result '${typeof response.result === "string" ? response.result : JSON.stringify(response.result)}'`;
2245
+ super(
2246
+ functionId,
2247
+ functionRunId,
2248
+ response,
2249
+ `Function ${functionId} with run_id=${functionRunId} was rejected${code ? ` (${code})` : ""}: ${detail2}`
2250
+ );
2251
+ this.error = error;
2252
+ this.code = code;
2253
+ }
2254
+ };
2233
2255
  var ScrapeFailedError = class extends NotteError {
2234
2256
  structuredError;
2235
2257
  constructor(error) {
@@ -2262,6 +2284,11 @@ var ActionExecutionError = class _ActionExecutionError extends NotteError {
2262
2284
  });
2263
2285
  }
2264
2286
  };
2287
+ var CaptchaRejectedError = class extends ActionExecutionError {
2288
+ constructor(message) {
2289
+ super({ error_type: "CaptchaRejectedError", dev_message: message, user_message: message, agent_message: message });
2290
+ }
2291
+ };
2265
2292
  var EvaluateJsNoDataError = class extends NotteError {
2266
2293
  constructor() {
2267
2294
  super("evaluate_js returned no data. Upgrade the Notte API to a build that returns the evaluated value.");
@@ -2905,6 +2932,9 @@ async function executeWithCaptcha(action, budgetSeconds, request) {
2905
2932
  await pause();
2906
2933
  continue;
2907
2934
  }
2935
+ if (status.state === "failed" && status.failure_reason === "rejected") {
2936
+ return failure(status.message || "CAPTCHA rejected by the site", "captcha_rejected");
2937
+ }
2908
2938
  if (status.state === "failed" || status.state === "cancelled") {
2909
2939
  return failure(status.message || `CAPTCHA ${status.state}`, `captcha_${status.state}`);
2910
2940
  }
@@ -4185,6 +4215,9 @@ var Session = class {
4185
4215
  );
4186
4216
  if (raiseOnFailure && !result.success) {
4187
4217
  console.error(`\u{1F6A8} Execution failed with message: '${result.message}'`);
4218
+ if (result.code === "captcha_rejected") {
4219
+ throw new CaptchaRejectedError(String(result.message ?? "").trim() || "CAPTCHA rejected by the site");
4220
+ }
4188
4221
  if (result.exception_detail) {
4189
4222
  throw new ActionExecutionError(result.exception_detail);
4190
4223
  }
@@ -4439,15 +4472,19 @@ var NotteVault = class {
4439
4472
  _vaultId = null;
4440
4473
  initPromise = null;
4441
4474
  createData = null;
4475
+ // Only a vault this object created is deleted by stop().
4476
+ created;
4442
4477
  constructor(client2, options = {}) {
4443
4478
  this.client = client2;
4444
4479
  if (options && "vault_id" in options && options.vault_id !== void 0) {
4480
+ this.created = false;
4445
4481
  if (options.vault_id.length === 0) {
4446
4482
  throw new InvalidRequestError("Vault ID cannot be empty");
4447
4483
  }
4448
4484
  this.initPromise = this.initExistingVault(options.vault_id);
4449
4485
  this.initPromise.catch(() => void 0);
4450
4486
  } else {
4487
+ this.created = true;
4451
4488
  const { vault_id: _ignored, ...createData } = options ?? {};
4452
4489
  this.createData = createData;
4453
4490
  }
@@ -4503,13 +4540,17 @@ var NotteVault = class {
4503
4540
  start() {
4504
4541
  }
4505
4542
  /**
4506
- * Stop the vault: deletes it together with every credential it holds.
4543
+ * Stop the vault: deletes it together with every credential it holds, if
4544
+ * this object created it. A vault opened by `vault_id` is kept.
4507
4545
  *
4508
4546
  * ```ts
4509
4547
  * await vault.stop();
4510
4548
  * ```
4511
4549
  */
4512
4550
  async stop() {
4551
+ if (!this.created) {
4552
+ return;
4553
+ }
4513
4554
  const vaultId = await this.ensureInitialized();
4514
4555
  console.info(`[Vault] ${vaultId} deleted. All credentials have been deleted.`);
4515
4556
  await this.delete();
@@ -5085,7 +5126,7 @@ var FUNCTION_RUN_ENDPOINTS = {
5085
5126
  start: "/functions/{function_id}/runs/{run_id}"
5086
5127
  };
5087
5128
  var RUN_API_KEY_HEADER = "x-notte-api-key";
5088
- var FUNCTION_RUN_STATUSES = ["closed", "active", "failed"];
5129
+ var FUNCTION_RUN_STATUSES = ["closed", "active", "failed", "rejected"];
5089
5130
  var NotteFunction = class {
5090
5131
  client;
5091
5132
  _functionId = null;
@@ -5404,13 +5445,15 @@ var NotteFunction = class {
5404
5445
  * to execute a record returned by `createRun()`; otherwise a new run record
5405
5446
  * is created first, exactly like Python. Pass `version` to run a saved
5406
5447
  * version instead of the latest one. A failed execution throws
5407
- * `FailedToRunCloudFunctionError` unless `raiseOnFailure` is false, and the
5408
- * wait is aborted with `NotteTimeoutError` after `timeoutMs`.
5448
+ * `FailedToRunCloudFunctionError` and a rejected one (the function raised an
5449
+ * `ExpectedFunctionError`) its subclass `FunctionRunRejectedError`, unless
5450
+ * `raiseOnFailure` is false; the wait is aborted with `NotteTimeoutError` after `timeoutMs`.
5409
5451
  *
5410
5452
  * @param variables - JSON-serializable keyword arguments passed to the Python function's `run` entry point.
5411
5453
  * @param options - Log streaming, failure handling, runtime, run ID, version, and timeout settings.
5412
5454
  * @returns The completed execution response. The function's return value is in `result`. Disabling streaming still waits for completion.
5413
5455
  * @throws FailedToRunCloudFunctionError if execution fails and `raiseOnFailure` is true.
5456
+ * @throws FunctionRunRejectedError if the run is rejected and `raiseOnFailure` is true.
5414
5457
  * @throws NotteTimeoutError if the execution request exceeds `timeoutMs`.
5415
5458
  * @throws InvalidRequestError if the run options are invalid.
5416
5459
  * @example
@@ -5463,6 +5506,9 @@ var NotteFunction = class {
5463
5506
  signal: controller.signal
5464
5507
  });
5465
5508
  const result = stream ? await readFunctionStream(raw, options.onLog ?? console.log, endpointPath, controller.signal) : parseFunctionRunResult(raw, endpointPath);
5509
+ if (result.status === "rejected" && (options.raiseOnFailure ?? true)) {
5510
+ throw new FunctionRunRejectedError(functionId, result.function_run_id, result);
5511
+ }
5466
5512
  if (result.status === "failed" && (options.raiseOnFailure ?? true)) {
5467
5513
  throw new FailedToRunCloudFunctionError(functionId, result.function_run_id, result);
5468
5514
  }
@@ -5615,12 +5661,15 @@ function parseFunctionRunResult(value, path) {
5615
5661
  if (typeof candidate.function_run_id !== "string" || typeof candidate.function_id !== "string" || typeof status !== "string" || !FUNCTION_RUN_STATUSES.includes(status) || !("result" in candidate)) {
5616
5662
  throw new NotteError("Invalid function result: missing function_id, function_run_id, status or result");
5617
5663
  }
5664
+ const error = candidate.error;
5618
5665
  return {
5619
5666
  function_id: candidate.function_id,
5620
5667
  function_run_id: candidate.function_run_id,
5621
5668
  session_id: typeof candidate.session_id === "string" ? candidate.session_id : null,
5622
5669
  result: candidate.result,
5623
- status
5670
+ status,
5671
+ // Kept as the API sent it; absent when the run reported no typed error.
5672
+ ...typeof error === "object" && error !== null && !Array.isArray(error) ? { error } : {}
5624
5673
  };
5625
5674
  }
5626
5675
  async function readFunctionStream(body, onLog, path, signal) {
@@ -6192,6 +6241,12 @@ var EXECUTION_ERROR_CLASS = "NotteApiExecutionError";
6192
6241
  function isRelativeProxyUrl(baseUrl) {
6193
6242
  return /^\/(?!\/)/.test(baseUrl);
6194
6243
  }
6244
+ function isFunctionsRequest(requestUrl, baseUrl) {
6245
+ const url = new URL(requestUrl);
6246
+ const api = new URL(baseUrl, url);
6247
+ const prefix = `${api.pathname.replace(/\/$/, "")}/functions`;
6248
+ return url.origin === api.origin && (url.pathname === prefix || url.pathname.startsWith(`${prefix}/`));
6249
+ }
6195
6250
  var NotteClient3 = class {
6196
6251
  config;
6197
6252
  client = createClient();
@@ -6250,6 +6305,9 @@ var NotteClient3 = class {
6250
6305
  headers.set("x-notte-request-origin", REQUEST_ORIGIN);
6251
6306
  headers.set("x-notte-sdk-version", SDK_VERSION);
6252
6307
  if (this.config.dbPreview) headers.set(DB_PREVIEW_HEADER, this.config.dbPreview);
6308
+ if (!headers.has(ACCEPT_RUN_STATUSES_HEADER) && isFunctionsRequest(request.url, this.config.baseUrl)) {
6309
+ headers.set(ACCEPT_RUN_STATUSES_HEADER, "rejected");
6310
+ }
6253
6311
  const override = headers.get(TIMEOUT_HEADER);
6254
6312
  headers.delete(TIMEOUT_HEADER);
6255
6313
  const retriesOverride = headers.get(MAX_RETRIES_HEADER);
@@ -6709,6 +6767,7 @@ var createClient2 = (config) => {
6709
6767
  CAPTCHA_SOLVE_TIMEOUT_MS,
6710
6768
  CLUSTER_OVERLOAD_RETRY_DELAY_MS,
6711
6769
  CREDENTIAL_FIELDS,
6770
+ CaptchaRejectedError,
6712
6771
  DEFAULT_MAX_RETRIES,
6713
6772
  DEFAULT_NOTTE_API_URL,
6714
6773
  DEFAULT_REQUEST_TIMEOUT_MS,
@@ -6720,6 +6779,7 @@ var createClient2 = (config) => {
6720
6779
  FetchResponseDecodeError,
6721
6780
  FileExistsError,
6722
6781
  FileNotFoundError,
6782
+ FunctionRunRejectedError,
6723
6783
  InvalidRequestError,
6724
6784
  ManagedAuthError,
6725
6785
  NotteAPIError,