notte-sdk 1.9.0 → 1.9.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/dist/index.d.mts CHANGED
@@ -345,7 +345,7 @@ declare function startVersionCheck(): void;
345
345
  declare function checkForLatestVersion(options?: VersionCheckOptions): Promise<void>;
346
346
 
347
347
  type ClientOptions = {
348
- baseUrl: 'https://us-staging.notte.cc' | (string & {});
348
+ baseUrl: 'https://api.notte.cc' | (string & {});
349
349
  };
350
350
  /**
351
351
  * ActionParameter
@@ -746,6 +746,15 @@ type ApiExecutionResponse = {
746
746
  */
747
747
  exception?: string | null;
748
748
  exception_detail?: SerializedError | null;
749
+ captcha?: CaptchaStatus | null;
750
+ /**
751
+ * Action Executed
752
+ */
753
+ action_executed?: boolean | null;
754
+ /**
755
+ * Code
756
+ */
757
+ code?: string | null;
749
758
  };
750
759
  /**
751
760
  * ApiSessionStartRequest
@@ -850,15 +859,19 @@ type ApiSessionStartRequest = {
850
859
  /**
851
860
  * Auth Ids
852
861
  *
853
- * Managed Auth connection IDs to verify and, when necessary, authenticate inside this session. Authentication finishes before the session is returned unless wait_for_authentication is false.
862
+ * Managed Auth connection IDs to verify and, when necessary, authenticate inside this session. Initial verification runs before returning; when login is needed, the session returns as authenticating. Poll /sessions/{id}/auth for readiness.
854
863
  */
855
864
  auth_ids?: Array<string>;
856
865
  /**
857
866
  * Wait For Authentication
858
867
  *
859
- * Whether to wait for Managed Auth profile restoration and authentication before returning the session. When false, authentication continues in the background after the browser is ready.
868
+ * SDK waiting preference. The API always verifies inline and returns authenticating when background login is needed; SDKs implement waiting through readiness polling.
860
869
  */
861
870
  wait_for_authentication?: boolean;
871
+ /**
872
+ * Auth Retry
873
+ */
874
+ auth_retry?: number;
862
875
  /**
863
876
  * Advanced Stealth
864
877
  *
@@ -1008,6 +1021,39 @@ type CaptchaSolveAction = {
1008
1021
  */
1009
1022
  captcha_type?: 'recaptcha' | 'hcaptcha' | 'image' | 'text' | 'auth0' | 'cloudflare' | 'datadome' | 'arkose labs' | 'geetest' | 'press&hold' | 'unknown' | null;
1010
1023
  };
1024
+ /**
1025
+ * CaptchaStatus
1026
+ */
1027
+ type CaptchaStatus = {
1028
+ /**
1029
+ * Captcha Id
1030
+ */
1031
+ captcha_id: string;
1032
+ /**
1033
+ * Page Id
1034
+ */
1035
+ page_id: string;
1036
+ /**
1037
+ * Generation
1038
+ */
1039
+ generation: number;
1040
+ /**
1041
+ * State
1042
+ */
1043
+ state: 'solving' | 'solved' | 'failed' | 'cancelled';
1044
+ /**
1045
+ * Retry After Ms
1046
+ */
1047
+ retry_after_ms?: number;
1048
+ /**
1049
+ * Message
1050
+ */
1051
+ message?: string;
1052
+ /**
1053
+ * Cancel Reason
1054
+ */
1055
+ cancel_reason?: 'navigation' | null;
1056
+ };
1011
1057
  /**
1012
1058
  * CheckAction
1013
1059
  */
@@ -3022,6 +3068,10 @@ type GlobalScrapeRequest = {
3022
3068
  * Whether to wait for Managed Auth before returning the session. Defaults to true. When true, authentication failure or timeout fails session creation; when false, authentication continues in the background after the browser is ready.
3023
3069
  */
3024
3070
  wait_for_authentication?: boolean;
3071
+ /**
3072
+ * Auth Retry
3073
+ */
3074
+ auth_retry?: number;
3025
3075
  /**
3026
3076
  * Advanced Stealth
3027
3077
  *
@@ -3480,6 +3530,88 @@ type ManagedAuthCredentials = {
3480
3530
  */
3481
3531
  mfa_secret?: null;
3482
3532
  };
3533
+ /**
3534
+ * ManagedAuthOperation
3535
+ */
3536
+ type ManagedAuthOperation = {
3537
+ /**
3538
+ * Id
3539
+ */
3540
+ id: string;
3541
+ /**
3542
+ * Connection Id
3543
+ */
3544
+ connection_id: string;
3545
+ /**
3546
+ * Session Id
3547
+ */
3548
+ session_id?: string | null;
3549
+ /**
3550
+ * Source
3551
+ */
3552
+ source: string;
3553
+ /**
3554
+ * Status
3555
+ */
3556
+ status: 'pending' | 'running' | 'succeeded' | 'failed' | 'cancelled';
3557
+ /**
3558
+ * Phase
3559
+ */
3560
+ phase: string;
3561
+ /**
3562
+ * Attempt
3563
+ */
3564
+ attempt?: number;
3565
+ /**
3566
+ * Auth Retry
3567
+ */
3568
+ auth_retry?: number;
3569
+ /**
3570
+ * Authenticated
3571
+ */
3572
+ authenticated?: boolean | null;
3573
+ /**
3574
+ * Failure Code
3575
+ */
3576
+ failure_code?: string | null;
3577
+ /**
3578
+ * Error
3579
+ */
3580
+ error?: string | null;
3581
+ /**
3582
+ * Deadline
3583
+ */
3584
+ deadline: string;
3585
+ /**
3586
+ * Created At
3587
+ */
3588
+ created_at: string;
3589
+ /**
3590
+ * Updated At
3591
+ */
3592
+ updated_at: string;
3593
+ };
3594
+ /**
3595
+ * ManagedAuthReadiness
3596
+ */
3597
+ type ManagedAuthReadiness = {
3598
+ /**
3599
+ * Session Id
3600
+ */
3601
+ session_id: string;
3602
+ /**
3603
+ * Status
3604
+ */
3605
+ status: 'authenticating' | 'active' | 'failed' | 'closed';
3606
+ /**
3607
+ * Operations
3608
+ */
3609
+ operations?: Array<ManagedAuthOperation>;
3610
+ /**
3611
+ * Error
3612
+ */
3613
+ error?: string | null;
3614
+ };
3483
3615
  /**
3484
3616
  * MultiFactorFillAction
3485
3617
  */
@@ -3967,6 +4099,190 @@ type ParameterInfo = {
3967
4099
  */
3968
4100
  default?: string | null;
3969
4101
  };
4102
+ /**
4103
+ * PaymentConnectRequest
4104
+ */
4105
+ type PaymentConnectRequest = {
4106
+ /**
4107
+ * Mode
4108
+ */
4109
+ mode?: 'test' | 'live';
4110
+ };
4111
+ /**
4112
+ * PaymentConnectionResponse
4113
+ */
4114
+ type PaymentConnectionResponse = {
4115
+ /**
4116
+ * Id
4117
+ */
4118
+ id: string;
4119
+ /**
4120
+ * Mode
4121
+ */
4122
+ mode: string;
4123
+ /**
4124
+ * Status
4125
+ */
4126
+ status: string;
4127
+ /**
4128
+ * Connection Url
4129
+ */
4130
+ connection_url?: string | null;
4131
+ /**
4132
+ * Connection Phrase
4133
+ */
4134
+ connection_phrase?: string | null;
4135
+ /**
4136
+ * Expires At
4137
+ */
4138
+ expires_at?: string | null;
4139
+ /**
4140
+ * Error Code
4141
+ */
4142
+ error_code?: string | null;
4143
+ };
4144
+ /**
4145
+ * PaymentDisconnectError
4146
+ */
4147
+ type PaymentDisconnectError = {
4148
+ /**
4149
+ * Detail
4150
+ */
4151
+ detail: string;
4152
+ };
4153
+ /**
4154
+ * PaymentDisconnectResponse
4155
+ */
4156
+ type PaymentDisconnectResponse = {
4157
+ /**
4158
+ * Mode
4159
+ */
4160
+ mode: 'test' | 'live';
4161
+ /**
4162
+ * Status
4163
+ */
4164
+ status?: 'disconnected';
4165
+ };
4166
+ /**
4167
+ * PaymentNextAction
4168
+ */
4169
+ type PaymentNextAction = {
4170
+ /**
4171
+ * Type
4172
+ */
4173
+ type: 'ssn_verification' | 'identity_verification' | 'contact_support' | 'select_payment_method' | 'add_payment_method' | 'update_payment_method' | 're_authorize' | 'three_d_secure' | 'three_d_secure_retry';
4174
+ /**
4175
+ * Resolution
4176
+ */
4177
+ resolution: 'auto_resume' | 'create_new_spend_request' | 'create_new_spend_request_after_completion';
4178
+ /**
4179
+ * Action Url
4180
+ */
4181
+ action_url?: string | null;
4182
+ /**
4183
+ * Expires At
4184
+ */
4185
+ expires_at?: string | null;
4186
+ };
4187
+ /**
4188
+ * PaymentRequest
4189
+ */
4190
+ type PaymentRequest = {
4191
+ /**
4192
+ * Amount
4193
+ *
4194
+ * Amount in currency units, e.g. 100.91 means USD 100.91. Never rounded.
4195
+ */
4196
+ amount: number | string;
4197
+ /**
4198
+ * Currency
4199
+ */
4200
+ currency: string;
4201
+ /**
4202
+ * Merchant Url
4203
+ */
4204
+ merchant_url: string;
4205
+ /**
4206
+ * Merchant Name
4207
+ */
4208
+ merchant_name: string;
4209
+ /**
4210
+ * Description
4211
+ */
4212
+ description: string;
4213
+ /**
4214
+ * Mode
4215
+ */
4216
+ mode?: 'test' | 'live';
4217
+ };
4218
+ /**
4219
+ * PaymentResponse
4220
+ */
4221
+ type PaymentResponse = {
4222
+ /**
4223
+ * Id
4224
+ */
4225
+ id: string;
4226
+ /**
4227
+ * Session Id
4228
+ */
4229
+ session_id: string;
4230
+ /**
4231
+ * Status
4232
+ */
4233
+ status: string;
4234
+ /**
4235
+ * Mode
4236
+ */
4237
+ mode: string;
4238
+ /**
4239
+ * Amount
4240
+ *
4241
+ * Amount in currency units, serialized as an exact decimal string.
4242
+ */
4243
+ amount: string;
4244
+ /**
4245
+ * Currency
4246
+ */
4247
+ currency: string;
4248
+ /**
4249
+ * Merchant Name
4250
+ */
4251
+ merchant_name: string;
4252
+ /**
4253
+ * Merchant Url
4254
+ */
4255
+ merchant_url: string;
4256
+ /**
4257
+ * Vault Id
4258
+ */
4259
+ vault_id?: string | null;
4260
+ /**
4261
+ * Approval Url
4262
+ */
4263
+ approval_url?: string | null;
4264
+ /**
4265
+ * Connection Url
4266
+ */
4267
+ connection_url?: string | null;
4268
+ /**
4269
+ * Connection Phrase
4270
+ */
4271
+ connection_phrase?: string | null;
4272
+ /**
4273
+ * Expires At
4274
+ */
4275
+ expires_at?: string | null;
4276
+ /**
4277
+ * Error Code
4278
+ */
4279
+ error_code?: string | null;
4280
+ next_action?: PaymentNextAction | null;
4281
+ /**
4282
+ * Purchase Status
4283
+ */
4284
+ purchase_status?: 'unverified';
4285
+ };
3970
4286
  /**
3971
4287
  * PersonaCreateRequest
3972
4288
  */
@@ -4966,6 +5282,16 @@ type SessionProfile = {
4966
5282
  */
4967
5283
  persist?: boolean;
4968
5284
  };
5285
+ /**
5286
+ * SessionProfilePreviewResponse
5287
+ */
5288
+ type SessionProfilePreviewResponse = {
5289
+ profile?: SessionProfile | null;
5290
+ /**
5291
+ * Cookie Domains
5292
+ */
5293
+ cookie_domains?: Array<string> | null;
5294
+ };
4969
5295
  /**
4970
5296
  * SessionResponse
4971
5297
  */
@@ -5014,10 +5340,8 @@ type SessionResponse = {
5014
5340
  duration?: string;
5015
5341
  /**
5016
5342
  * Status
5017
- *
5018
- * Session status
5019
5343
  */
5020
- status: 'active' | 'closed' | 'error' | 'timed_out';
5344
+ status: 'active' | 'authenticating' | 'closed' | 'error' | 'timed_out';
5021
5345
  /**
5022
5346
  * Close Reason
5023
5347
  *
@@ -5733,6 +6057,15 @@ type ApiExecutionResponseWritable = {
5733
6057
  */
5734
6058
  exception?: string | null;
5735
6059
  exception_detail?: SerializedError | null;
6060
+ captcha?: CaptchaStatus | null;
6061
+ /**
6062
+ * Action Executed
6063
+ */
6064
+ action_executed?: boolean | null;
6065
+ /**
6066
+ * Code
6067
+ */
6068
+ code?: string | null;
5736
6069
  };
5737
6070
  /**
5738
6071
  * BaseModel
@@ -6884,10 +7217,8 @@ type SessionResponseWritable = {
6884
7217
  duration?: string;
6885
7218
  /**
6886
7219
  * Status
6887
- *
6888
- * Session status
6889
7220
  */
6890
- status: 'active' | 'closed' | 'error' | 'timed_out';
7221
+ status: 'active' | 'authenticating' | 'closed' | 'error' | 'timed_out';
6891
7222
  /**
6892
7223
  * Close Reason
6893
7224
  *
@@ -7011,6 +7342,41 @@ type UpdateFunctionRunResponseWritable = {
7011
7342
  */
7012
7343
  status?: 'updated' | 'stopped';
7013
7344
  };
7345
+ type SessionAuthReadinessData = {
7346
+ body?: never;
7347
+ headers?: {
7348
+ /**
7349
+ * X-Notte-Request-Origin
7350
+ */
7351
+ 'x-notte-request-origin'?: string | null;
7352
+ /**
7353
+ * X-Notte-Sdk-Version
7354
+ */
7355
+ 'x-notte-sdk-version'?: string | null;
7356
+ };
7357
+ path: {
7358
+ /**
7359
+ * Session Id
7360
+ */
7361
+ session_id: string;
7362
+ };
7363
+ query?: never;
7364
+ url: '/sessions/{session_id}/auth';
7365
+ };
7366
+ type SessionAuthReadinessErrors = {
7367
+ /**
7368
+ * Validation Error
7369
+ */
7370
+ 422: HttpValidationError;
7371
+ };
7372
+ type SessionAuthReadinessError = SessionAuthReadinessErrors[keyof SessionAuthReadinessErrors];
7373
+ type SessionAuthReadinessResponses = {
7374
+ /**
7375
+ * Successful Response
7376
+ */
7377
+ 200: ManagedAuthReadiness;
7378
+ };
7379
+ type SessionAuthReadinessResponse = SessionAuthReadinessResponses[keyof SessionAuthReadinessResponses];
7014
7380
  type ListSessionsData = {
7015
7381
  body?: never;
7016
7382
  headers?: {
@@ -7137,7 +7503,47 @@ type SessionStatusResponses = {
7137
7503
  200: SessionResponse;
7138
7504
  };
7139
7505
  type SessionStatusResponse = SessionStatusResponses[keyof SessionStatusResponses];
7140
- type GetSessionScriptData = {
7506
+ type SessionProfilePreviewData = {
7507
+ body?: never;
7508
+ headers?: {
7509
+ /**
7510
+ * X-Notte-Request-Origin
7511
+ */
7512
+ 'x-notte-request-origin'?: string | null;
7513
+ /**
7514
+ * X-Notte-Sdk-Version
7515
+ */
7516
+ 'x-notte-sdk-version'?: string | null;
7517
+ };
7518
+ path: {
7519
+ /**
7520
+ * Session Id
7521
+ */
7522
+ session_id: string;
7523
+ };
7524
+ query?: {
7525
+ /**
7526
+ * Include Cookies
7527
+ */
7528
+ include_cookies?: boolean;
7529
+ };
7530
+ url: '/sessions/{session_id}/profile-preview';
7531
+ };
7532
+ type SessionProfilePreviewErrors = {
7533
+ /**
7534
+ * Validation Error
7535
+ */
7536
+ 422: HttpValidationError;
7537
+ };
7538
+ type SessionProfilePreviewError = SessionProfilePreviewErrors[keyof SessionProfilePreviewErrors];
7539
+ type SessionProfilePreviewResponses = {
7540
+ /**
7541
+ * Successful Response
7542
+ */
7543
+ 200: SessionProfilePreviewResponse;
7544
+ };
7545
+ type SessionProfilePreviewResponse2 = SessionProfilePreviewResponses[keyof SessionProfilePreviewResponses];
7546
+ type GetSessionScriptData = {
7141
7547
  body?: never;
7142
7548
  headers?: {
7143
7549
  /**
@@ -7537,6 +7943,22 @@ type PageExecuteData = {
7537
7943
  session_id: string;
7538
7944
  };
7539
7945
  query?: {
7946
+ /**
7947
+ * Captcha Id
7948
+ */
7949
+ captcha_id?: string | null;
7950
+ /**
7951
+ * Captcha Timeout Seconds
7952
+ */
7953
+ captcha_timeout_seconds?: number;
7954
+ /**
7955
+ * Target Page Id
7956
+ */
7957
+ target_page_id?: string | null;
7958
+ /**
7959
+ * Target Generation
7960
+ */
7961
+ target_generation?: number | null;
7540
7962
  /**
7541
7963
  * Update Metadata
7542
7964
  */
@@ -9157,6 +9579,157 @@ type ListVaultsResponses = {
9157
9579
  200: PaginatedResponseVault;
9158
9580
  };
9159
9581
  type ListVaultsResponse = ListVaultsResponses[keyof ListVaultsResponses];
9582
+ type ConnectPaymentWalletData = {
9583
+ body: PaymentConnectRequest;
9584
+ headers?: {
9585
+ /**
9586
+ * X-Notte-Request-Origin
9587
+ */
9588
+ 'x-notte-request-origin'?: string | null;
9589
+ /**
9590
+ * X-Notte-Sdk-Version
9591
+ */
9592
+ 'x-notte-sdk-version'?: string | null;
9593
+ };
9594
+ path?: never;
9595
+ query?: never;
9596
+ url: '/payments/connect';
9597
+ };
9598
+ type ConnectPaymentWalletErrors = {
9599
+ /**
9600
+ * Validation Error
9601
+ */
9602
+ 422: HttpValidationError;
9603
+ };
9604
+ type ConnectPaymentWalletError = ConnectPaymentWalletErrors[keyof ConnectPaymentWalletErrors];
9605
+ type ConnectPaymentWalletResponses = {
9606
+ /**
9607
+ * Successful Response
9608
+ */
9609
+ 200: PaymentConnectionResponse;
9610
+ };
9611
+ type ConnectPaymentWalletResponse = ConnectPaymentWalletResponses[keyof ConnectPaymentWalletResponses];
9612
+ type DisconnectPaymentWalletData = {
9613
+ body: PaymentConnectRequest;
9614
+ headers?: {
9615
+ /**
9616
+ * X-Notte-Request-Origin
9617
+ */
9618
+ 'x-notte-request-origin'?: string | null;
9619
+ /**
9620
+ * X-Notte-Sdk-Version
9621
+ */
9622
+ 'x-notte-sdk-version'?: string | null;
9623
+ };
9624
+ path?: never;
9625
+ query?: never;
9626
+ url: '/payments/disconnect';
9627
+ };
9628
+ type DisconnectPaymentWalletErrors = {
9629
+ /**
9630
+ * Caller cannot disconnect the wallet
9631
+ */
9632
+ 403: PaymentDisconnectError;
9633
+ /**
9634
+ * Wallet has active payments
9635
+ */
9636
+ 409: PaymentDisconnectError;
9637
+ /**
9638
+ * Validation Error
9639
+ */
9640
+ 422: HttpValidationError;
9641
+ /**
9642
+ * Payments unavailable or wallet revocation must be retried
9643
+ */
9644
+ 503: PaymentDisconnectError;
9645
+ };
9646
+ type DisconnectPaymentWalletError = DisconnectPaymentWalletErrors[keyof DisconnectPaymentWalletErrors];
9647
+ type DisconnectPaymentWalletResponses = {
9648
+ /**
9649
+ * Successful Response
9650
+ */
9651
+ 200: PaymentDisconnectResponse;
9652
+ };
9653
+ type DisconnectPaymentWalletResponse = DisconnectPaymentWalletResponses[keyof DisconnectPaymentWalletResponses];
9654
+ type CreatePaymentData = {
9655
+ body: PaymentRequest;
9656
+ headers: {
9657
+ /**
9658
+ * Idempotency-Key
9659
+ */
9660
+ 'idempotency-key': string;
9661
+ /**
9662
+ * X-Notte-Request-Origin
9663
+ */
9664
+ 'x-notte-request-origin'?: string | null;
9665
+ /**
9666
+ * X-Notte-Sdk-Version
9667
+ */
9668
+ 'x-notte-sdk-version'?: string | null;
9669
+ };
9670
+ path: {
9671
+ /**
9672
+ * Session Id
9673
+ */
9674
+ session_id: string;
9675
+ };
9676
+ query?: {
9677
+ /**
9678
+ * Update Metadata
9679
+ */
9680
+ update_metadata?: boolean;
9681
+ };
9682
+ url: '/sessions/{session_id}/payments';
9683
+ };
9684
+ type CreatePaymentErrors = {
9685
+ /**
9686
+ * Validation Error
9687
+ */
9688
+ 422: HttpValidationError;
9689
+ };
9690
+ type CreatePaymentError = CreatePaymentErrors[keyof CreatePaymentErrors];
9691
+ type CreatePaymentResponses = {
9692
+ /**
9693
+ * Successful Response
9694
+ */
9695
+ 202: PaymentResponse;
9696
+ };
9697
+ type CreatePaymentResponse = CreatePaymentResponses[keyof CreatePaymentResponses];
9698
+ type GetPaymentData = {
9699
+ body?: never;
9700
+ headers?: {
9701
+ /**
9702
+ * X-Notte-Request-Origin
9703
+ */
9704
+ 'x-notte-request-origin'?: string | null;
9705
+ /**
9706
+ * X-Notte-Sdk-Version
9707
+ */
9708
+ 'x-notte-sdk-version'?: string | null;
9709
+ };
9710
+ path: {
9711
+ /**
9712
+ * Payment Id
9713
+ */
9714
+ payment_id: string;
9715
+ };
9716
+ query?: never;
9717
+ url: '/payments/{payment_id}';
9718
+ };
9719
+ type GetPaymentErrors = {
9720
+ /**
9721
+ * Validation Error
9722
+ */
9723
+ 422: HttpValidationError;
9724
+ };
9725
+ type GetPaymentError = GetPaymentErrors[keyof GetPaymentErrors];
9726
+ type GetPaymentResponses = {
9727
+ /**
9728
+ * Successful Response
9729
+ */
9730
+ 200: PaymentResponse;
9731
+ };
9732
+ type GetPaymentResponse = GetPaymentResponses[keyof GetPaymentResponses];
9160
9733
  type ProfileCreateData = {
9161
9734
  body: ProfileCreateRequest;
9162
9735
  headers?: {
@@ -10570,6 +11143,10 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
10570
11143
  */
10571
11144
  meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
10572
11145
  };
11146
+ /**
11147
+ * Session Auth Readiness
11148
+ */
11149
+ declare const sessionAuthReadiness: <ThrowOnError extends boolean = false>(options: Options<SessionAuthReadinessData, ThrowOnError>) => RequestResult<SessionAuthReadinessResponses, SessionAuthReadinessErrors, ThrowOnError>;
10573
11150
  /**
10574
11151
  * List Sessions
10575
11152
  */
@@ -10582,6 +11159,10 @@ declare const sessionStart: <ThrowOnError extends boolean = false>(options: Opti
10582
11159
  * Session Status
10583
11160
  */
10584
11161
  declare const sessionStatus: <ThrowOnError extends boolean = false>(options: Options<SessionStatusData, ThrowOnError>) => RequestResult<SessionStatusResponses, SessionStatusErrors, ThrowOnError>;
11162
+ /**
11163
+ * Session Profile Preview
11164
+ */
11165
+ declare const sessionProfilePreview: <ThrowOnError extends boolean = false>(options: Options<SessionProfilePreviewData, ThrowOnError>) => RequestResult<SessionProfilePreviewResponses, SessionProfilePreviewErrors, ThrowOnError>;
10585
11166
  /**
10586
11167
  * Get Session Script
10587
11168
  */
@@ -10774,6 +11355,22 @@ declare const vaultCreditCardSet: <ThrowOnError extends boolean = false>(options
10774
11355
  * List Vaults
10775
11356
  */
10776
11357
  declare const listVaults: <ThrowOnError extends boolean = false>(options?: Options<ListVaultsData, ThrowOnError>) => RequestResult<ListVaultsResponses, ListVaultsErrors, ThrowOnError>;
11358
+ /**
11359
+ * Connect Payment Wallet
11360
+ */
11361
+ declare const connectPaymentWallet: <ThrowOnError extends boolean = false>(options: Options<ConnectPaymentWalletData, ThrowOnError>) => RequestResult<ConnectPaymentWalletResponses, ConnectPaymentWalletErrors, ThrowOnError>;
11362
+ /**
11363
+ * Disconnect Payment Wallet
11364
+ */
11365
+ declare const disconnectPaymentWallet: <ThrowOnError extends boolean = false>(options: Options<DisconnectPaymentWalletData, ThrowOnError>) => RequestResult<DisconnectPaymentWalletResponses, DisconnectPaymentWalletErrors, ThrowOnError>;
11366
+ /**
11367
+ * Create Payment
11368
+ */
11369
+ declare const createPayment: <ThrowOnError extends boolean = false>(options: Options<CreatePaymentData, ThrowOnError>) => RequestResult<CreatePaymentResponses, CreatePaymentErrors, ThrowOnError>;
11370
+ /**
11371
+ * Get Payment
11372
+ */
11373
+ declare const getPayment: <ThrowOnError extends boolean = false>(options: Options<GetPaymentData, ThrowOnError>) => RequestResult<GetPaymentResponses, GetPaymentErrors, ThrowOnError>;
10777
11374
  /**
10778
11375
  * Profile Create
10779
11376
  */
@@ -10941,106 +11538,6 @@ declare const scrapeFromHtml: <ThrowOnError extends boolean = false>(options: Op
10941
11538
 
10942
11539
  declare const client: Client;
10943
11540
 
10944
- /** Discriminated union of every action `session.execute()` accepts. */
10945
- type ExecuteAction = PageExecuteData['body'];
10946
- /** The `type` discriminator of an `ExecuteAction`. */
10947
- type ActionType = ExecuteAction['type'];
10948
- /** The union member whose `type` is `T`. */
10949
- type ActionOfType<T extends ActionType> = Extract<ExecuteAction, {
10950
- type: T;
10951
- }>;
10952
- /** The fields of an action minus its `type` discriminator. */
10953
- type ActionInput<T extends ActionType> = Omit<ActionOfType<T>, 'type'>;
10954
- /** Namespace object mirroring `from notte_sdk import actions`. */
10955
- declare const actions: {
10956
- readonly goto: (input: ActionInput<"goto">) => {
10957
- type: "goto";
10958
- } & GotoAction;
10959
- readonly gotoNewTab: (input: ActionInput<"goto_new_tab">) => {
10960
- type: "goto_new_tab";
10961
- } & GotoNewTabAction;
10962
- readonly closeTab: (input?: ActionInput<"close_tab"> | undefined) => {
10963
- type: "close_tab";
10964
- } & CloseTabAction;
10965
- readonly switchTab: (input: ActionInput<"switch_tab">) => {
10966
- type: "switch_tab";
10967
- } & SwitchTabAction;
10968
- readonly goBack: (input?: ActionInput<"go_back"> | undefined) => {
10969
- type: "go_back";
10970
- } & GoBackAction;
10971
- readonly goForward: (input?: ActionInput<"go_forward"> | undefined) => {
10972
- type: "go_forward";
10973
- } & GoForwardAction;
10974
- readonly reload: (input?: ActionInput<"reload"> | undefined) => {
10975
- type: "reload";
10976
- } & ReloadAction;
10977
- readonly wait: (input: ActionInput<"wait">) => {
10978
- type: "wait";
10979
- } & WaitAction;
10980
- readonly pressKey: (input: ActionInput<"press_key">) => {
10981
- type: "press_key";
10982
- } & PressKeyAction;
10983
- readonly scrollUp: (input?: ActionInput<"scroll_up"> | undefined) => {
10984
- type: "scroll_up";
10985
- } & ScrollUpAction;
10986
- readonly scrollDown: (input?: ActionInput<"scroll_down"> | undefined) => {
10987
- type: "scroll_down";
10988
- } & ScrollDownAction;
10989
- readonly captchaSolve: (input?: ActionInput<"captcha_solve"> | undefined) => {
10990
- type: "captcha_solve";
10991
- } & CaptchaSolveAction;
10992
- readonly help: (input: ActionInput<"help">) => {
10993
- type: "help";
10994
- } & HelpAction;
10995
- readonly completion: (input: ActionInput<"completion">) => {
10996
- type: "completion";
10997
- } & CompletionAction;
10998
- readonly scrape: (input?: ActionInput<"scrape"> | undefined) => {
10999
- type: "scrape";
11000
- } & ScrapeAction;
11001
- readonly emailRead: (input?: ActionInput<"email_read"> | undefined) => {
11002
- type: "email_read";
11003
- } & EmailReadAction;
11004
- readonly emailVerificationRead: (input: ActionInput<"email_verification_read">) => {
11005
- type: "email_verification_read";
11006
- } & EmailVerificationReadAction;
11007
- readonly smsRead: (input?: ActionInput<"sms_read"> | undefined) => {
11008
- type: "sms_read";
11009
- } & SmsReadAction;
11010
- readonly evaluateJs: (input: ActionInput<"evaluate_js">) => {
11011
- type: "evaluate_js";
11012
- } & EvaluateJsAction;
11013
- readonly formFill: (input: ActionInput<"form_fill">) => {
11014
- type: "form_fill";
11015
- } & FormFillActionWritable;
11016
- readonly click: (input?: ActionInput<"click"> | undefined) => {
11017
- type: "click";
11018
- } & ClickActionInput;
11019
- readonly fill: (input: ActionInput<"fill">) => {
11020
- type: "fill";
11021
- } & FillActionInputWritable;
11022
- readonly multiFactorFill: (input: ActionInput<"multi_factor_fill">) => {
11023
- type: "multi_factor_fill";
11024
- } & MultiFactorFillActionInputWritable;
11025
- readonly fallbackFill: (input: ActionInput<"fallback_fill">) => {
11026
- type: "fallback_fill";
11027
- } & FallbackFillActionInputWritable;
11028
- readonly check: (input: ActionInput<"check">) => {
11029
- type: "check";
11030
- } & CheckActionInput;
11031
- readonly selectDropdownOption: (input: ActionInput<"select_dropdown_option">) => {
11032
- type: "select_dropdown_option";
11033
- } & SelectDropdownOptionActionInputWritable;
11034
- readonly uploadFile: (input: ActionInput<"upload_file">) => {
11035
- type: "upload_file";
11036
- } & UploadFileActionInput;
11037
- readonly downloadFile: (input?: ActionInput<"download_file"> | undefined) => {
11038
- type: "download_file";
11039
- } & DownloadFileActionInput;
11040
- };
11041
- /** True when the action is a captcha solve, which gets a longer request timeout and 408 retries. */
11042
- declare function isCaptchaSolveAction(action: ExecuteAction): action is ActionOfType<'captcha_solve'>;
11043
-
11044
11541
  /**
11045
11542
  * Typed error hierarchy mirroring `notte_sdk.errors` and the `notte_core` errors
11046
11543
  * the Python SDK raises. Every error thrown by the SDK extends `NotteError`, so
@@ -11144,140 +11641,6 @@ interface RetryOptions {
11144
11641
  */
11145
11642
  declare function retry<TArgs extends unknown[], TResult>(fn: (...args: TArgs) => Promise<TResult>, options: RetryOptions): (...args: TArgs) => Promise<TResult>;
11146
11643
 
11147
- /**
11148
- * Issue an HTTP request from the page a session is on, the port of
11149
- * `notte_core.data.fetch`.
11150
- *
11151
- * `session.fetch()` runs the browser's own `fetch()` inside the current page, so
11152
- * the request carries the page's cookies, the session's proxy and the browser's
11153
- * network fingerprint. This module builds the script and reads the result back
11154
- * into a `PageFetchResponse`.
11155
- */
11156
-
11157
- /** A form body (`Record`) or a raw string body. */
11158
- type FetchData = string | Record<string, unknown>;
11159
- interface PageFetchOptions {
11160
- /** HTTP method. Defaults to `GET`. */
11161
- method?: string;
11162
- /** Request headers. */
11163
- headers?: Record<string, string>;
11164
- /** Query parameters appended to the URL (before any fragment). Arrays repeat the key. */
11165
- params?: Record<string, unknown>;
11166
- /** JSON body, sent with `Content-Type: application/json` unless a content type is given. */
11167
- json?: unknown;
11168
- /** Form body (`Record`, sent url-encoded) or a raw string body sent verbatim. */
11169
- data?: FetchData;
11170
- /** Abort the request after this many milliseconds. Must be positive. */
11171
- timeoutMs?: number;
11172
- /**
11173
- * Allow `http:` URLs and follow redirects. Off by default because the request
11174
- * carries the page's cookies: an `https:` request redirected to `http:` would
11175
- * send them in cleartext before the response can be inspected, so by default
11176
- * redirects are not followed and a redirected response throws.
11177
- */
11178
- allowInsecure?: boolean;
11179
- /**
11180
- * Browser `fetch` redirect mode. Defaults to `manual` (a redirect throws)
11181
- * unless `allowInsecure` is set, in which case redirects are followed like
11182
- * the Python SDK does.
11183
- */
11184
- redirect?: 'follow' | 'manual' | 'error';
11185
- }
11186
- /**
11187
- * Return the JavaScript that performs the request and serialises the response.
11188
- *
11189
- * The script is an async IIFE, which `evaluateJs` awaits. It returns a JSON
11190
- * string so the value survives the evaluate round-trip unchanged.
11191
- *
11192
- * ```ts
11193
- * const script = buildFetchScript('/api/items', { params: { page: 2 } });
11194
- * const response = responseFromEvaluated(await session.evaluateJs(script));
11195
- * ```
11196
- */
11197
- declare function buildFetchScript(url: string, options?: PageFetchOptions): string;
11198
- /** `response.raiseForStatus()` rejected a 4xx/5xx response, like `requests.HTTPError`. */
11199
- declare class PageFetchHTTPError extends NotteError {
11200
- readonly response: PageFetchResponse;
11201
- constructor(response: PageFetchResponse);
11202
- }
11203
- /**
11204
- * The response of `session.fetch()`, shaped like the Web `Response` with the
11205
- * final `url` after redirects exposed as a plain property. A non-2xx status is
11206
- * a response, not an error; `raiseForStatus()` throws `PageFetchHTTPError`.
11207
- * `bytes()` holds the exact bytes the server sent, so binary bodies survive;
11208
- * `text()` decodes them with the declared charset, or utf-8 when none is given.
11209
- */
11210
- declare class PageFetchResponse {
11211
- readonly status: number;
11212
- readonly statusText: string;
11213
- readonly headers: Headers;
11214
- /** The final URL after redirects. */
11215
- readonly url: string;
11216
- /** The declared charset, `utf-8` when the body is valid utf-8, else `undefined`. */
11217
- readonly encoding: string | undefined;
11218
- private readonly content;
11219
- constructor(init: {
11220
- status: number;
11221
- headers: Record<string, string>;
11222
- url: string;
11223
- content: Uint8Array;
11224
- });
11225
- get ok(): boolean;
11226
- /** The raw body bytes. */
11227
- bytes(): Uint8Array;
11228
- arrayBuffer(): Promise<ArrayBuffer>;
11229
- text(): Promise<string>;
11230
- json(): Promise<unknown>;
11231
- /** Throw `PageFetchHTTPError` on a 4xx/5xx status, like `requests.Response.raise_for_status()`. */
11232
- raiseForStatus(): this;
11233
- }
11234
- /**
11235
- * Turn the envelope `buildFetchScript` returns into a `PageFetchResponse`.
11236
- * Throws `FetchResponseDecodeError` when the envelope cannot be read.
11237
- */
11238
- declare function responseFromEvaluated(raw: string): PageFetchResponse;
11239
-
11240
- /**
11241
- * Shared scrape request/response handling for `client.scrape()` and
11242
- * `session.scrape()`, mirroring `PageClient.scrape` in the Python SDK.
11243
- */
11244
-
11245
- /** Minimal structural view of a Zod schema so `zod` stays an optional import path. */
11246
- interface ZodLikeSchema<T> {
11247
- parse(data: unknown): T;
11248
- }
11249
- /** Structured extraction result when `raiseOnFailure` is false, like `StructuredData` in Python. */
11250
- interface StructuredData<T> {
11251
- success: boolean;
11252
- error?: string | null;
11253
- data?: T | null;
11254
- }
11255
- interface ScrapeOptions<T = unknown> {
11256
- /** A Zod schema or a JSON Schema object describing the data to extract. */
11257
- response_format?: ZodLikeSchema<T> | Record<string, unknown> | null;
11258
- /** JSON Schema to send instead of converting `response_format`. Only used with a Zod schema. */
11259
- json_schema?: Record<string, unknown>;
11260
- /**
11261
- * When true (default) a failed structured extraction throws `ScrapeFailedError`
11262
- * and the extracted data is returned directly. When false the `StructuredData`
11263
- * wrapper is returned so callers can inspect `.success`.
11264
- */
11265
- raiseOnFailure?: boolean;
11266
- }
11267
- type SessionScrapeOptions<T = unknown> = Omit<ScrapeRequest, 'response_format'> & ScrapeOptions<T>;
11268
- type ScrapeResult<T> = string | ImageData[] | T | StructuredData<T>;
11269
- /**
11270
- * Post-process a scrape response according to the request options:
11271
- * - `only_images` returns the image list,
11272
- * - `response_format` / `instructions` return the extracted data (validated by
11273
- * the Zod schema when one was given) or throw `ScrapeFailedError`,
11274
- * - otherwise the markdown string is returned.
11275
- */
11276
- declare function processScrapeResponse<T = unknown>(scrapeResponse: DataSpace | undefined, options: SessionScrapeOptions<T> & {
11277
- instructions?: string | null;
11278
- only_images?: boolean;
11279
- }): ScrapeResult<T>;
11280
-
11281
11644
  /** A file ID was not found in the session, the counterpart of Python's `FileNotFoundError`. */
11282
11645
  declare class FileNotFoundError extends NotteError {
11283
11646
  }
@@ -11464,11 +11827,304 @@ declare class RemoteFileStorage {
11464
11827
  delete(fileId: string): Promise<void>;
11465
11828
  }
11466
11829
 
11830
+ /** Session response including managed authentication readiness. */
11831
+ type AuthSessionResponse = SessionResponse;
11832
+ interface ManagedAuthRunResponse {
11833
+ operation_id?: string | null;
11834
+ authenticated?: boolean | null;
11835
+ connection_id: string;
11836
+ status: string;
11837
+ message: string;
11838
+ }
11839
+ interface AuthWaitOptions {
11840
+ /** Overall waiting deadline, milliseconds. Defaults to 615000. */
11841
+ timeoutMs?: number;
11842
+ /** Delay between short polling requests, milliseconds. Defaults to 1000. */
11843
+ pollIntervalMs?: number;
11844
+ signal?: AbortSignal;
11845
+ }
11846
+ interface ManagedAuthRunOptions extends AuthWaitOptions {
11847
+ /** Wait for completion. Defaults to true. */
11848
+ wait?: boolean;
11849
+ /** Additional server-side login attempts, from 0 to 2. Defaults to 0. */
11850
+ auth_retry?: number;
11851
+ }
11852
+ declare class ManagedAuthError extends NotteError {
11853
+ }
11854
+ /**
11855
+ * Connection verification and recovery through `client.managedAuth`.
11856
+ *
11857
+ * ```typescript
11858
+ * const operation = await client.managedAuth.refreshConnection("<connection-id>", { wait: false });
11859
+ * await client.managedAuth.waitForAuth(operation);
11860
+ * ```
11861
+ */
11862
+ declare class NotteManagedAuth {
11863
+ private readonly client;
11864
+ constructor(client: NotteClient);
11865
+ /** Run only the verifier; this does not submit login credentials. */
11866
+ checkConnection(connectionId: string): Promise<ManagedAuthRunResponse>;
11867
+ getOperation(operationId: string, options?: Pick<AuthWaitOptions, 'signal'>): Promise<ManagedAuthOperation>;
11868
+ /** Wait for an accepted operation. Aborting this wait does not cancel the server operation. */
11869
+ waitForAuth(operation: ManagedAuthOperation, options?: AuthWaitOptions): Promise<ManagedAuthOperation>;
11870
+ /** Verify first, logging in only when required and automatic recovery is allowed. */
11871
+ refreshConnection(connectionId: string, options?: ManagedAuthRunOptions): Promise<ManagedAuthOperation>;
11872
+ /** Explicitly request a new login. Conflicting operations remain HTTP 409 errors. */
11873
+ reauthenticateConnection(connectionId: string, options?: ManagedAuthRunOptions): Promise<ManagedAuthOperation>;
11874
+ private run;
11875
+ }
11876
+
11877
+ /** Per-request cancellation; authentication and transport stay bound to NotteClient. */
11878
+ interface ResourceRequestOptions {
11879
+ signal?: AbortSignal;
11880
+ }
11881
+
11882
+ /** Discriminated union of every action `session.execute()` accepts. */
11883
+ type ExecuteAction = PageExecuteData['body'];
11884
+ /** The `type` discriminator of an `ExecuteAction`. */
11885
+ type ActionType = ExecuteAction['type'];
11886
+ /** The union member whose `type` is `T`. */
11887
+ type ActionOfType<T extends ActionType> = Extract<ExecuteAction, {
11888
+ type: T;
11889
+ }>;
11890
+ /** The fields of an action minus its `type` discriminator. */
11891
+ type ActionInput<T extends ActionType> = Omit<ActionOfType<T>, 'type'>;
11892
+ /** Namespace object mirroring `from notte_sdk import actions`. */
11893
+ declare const actions: {
11894
+ readonly goto: (input: ActionInput<"goto">) => {
11895
+ type: "goto";
11896
+ } & GotoAction;
11897
+ readonly gotoNewTab: (input: ActionInput<"goto_new_tab">) => {
11898
+ type: "goto_new_tab";
11899
+ } & GotoNewTabAction;
11900
+ readonly closeTab: (input?: ActionInput<"close_tab"> | undefined) => {
11901
+ type: "close_tab";
11902
+ } & CloseTabAction;
11903
+ readonly switchTab: (input: ActionInput<"switch_tab">) => {
11904
+ type: "switch_tab";
11905
+ } & SwitchTabAction;
11906
+ readonly goBack: (input?: ActionInput<"go_back"> | undefined) => {
11907
+ type: "go_back";
11908
+ } & GoBackAction;
11909
+ readonly goForward: (input?: ActionInput<"go_forward"> | undefined) => {
11910
+ type: "go_forward";
11911
+ } & GoForwardAction;
11912
+ readonly reload: (input?: ActionInput<"reload"> | undefined) => {
11913
+ type: "reload";
11914
+ } & ReloadAction;
11915
+ readonly wait: (input: ActionInput<"wait">) => {
11916
+ type: "wait";
11917
+ } & WaitAction;
11918
+ readonly pressKey: (input: ActionInput<"press_key">) => {
11919
+ type: "press_key";
11920
+ } & PressKeyAction;
11921
+ readonly scrollUp: (input?: ActionInput<"scroll_up"> | undefined) => {
11922
+ type: "scroll_up";
11923
+ } & ScrollUpAction;
11924
+ readonly scrollDown: (input?: ActionInput<"scroll_down"> | undefined) => {
11925
+ type: "scroll_down";
11926
+ } & ScrollDownAction;
11927
+ readonly captchaSolve: (input?: ActionInput<"captcha_solve"> | undefined) => {
11928
+ type: "captcha_solve";
11929
+ } & CaptchaSolveAction;
11930
+ readonly help: (input: ActionInput<"help">) => {
11931
+ type: "help";
11932
+ } & HelpAction;
11933
+ readonly completion: (input: ActionInput<"completion">) => {
11934
+ type: "completion";
11935
+ } & CompletionAction;
11936
+ readonly scrape: (input?: ActionInput<"scrape"> | undefined) => {
11937
+ type: "scrape";
11938
+ } & ScrapeAction;
11939
+ readonly emailRead: (input?: ActionInput<"email_read"> | undefined) => {
11940
+ type: "email_read";
11941
+ } & EmailReadAction;
11942
+ readonly emailVerificationRead: (input: ActionInput<"email_verification_read">) => {
11943
+ type: "email_verification_read";
11944
+ } & EmailVerificationReadAction;
11945
+ readonly smsRead: (input?: ActionInput<"sms_read"> | undefined) => {
11946
+ type: "sms_read";
11947
+ } & SmsReadAction;
11948
+ readonly evaluateJs: (input: ActionInput<"evaluate_js">) => {
11949
+ type: "evaluate_js";
11950
+ } & EvaluateJsAction;
11951
+ readonly formFill: (input: ActionInput<"form_fill">) => {
11952
+ type: "form_fill";
11953
+ } & FormFillActionWritable;
11954
+ readonly click: (input?: ActionInput<"click"> | undefined) => {
11955
+ type: "click";
11956
+ } & ClickActionInput;
11957
+ readonly fill: (input: ActionInput<"fill">) => {
11958
+ type: "fill";
11959
+ } & FillActionInputWritable;
11960
+ readonly multiFactorFill: (input: ActionInput<"multi_factor_fill">) => {
11961
+ type: "multi_factor_fill";
11962
+ } & MultiFactorFillActionInputWritable;
11963
+ readonly fallbackFill: (input: ActionInput<"fallback_fill">) => {
11964
+ type: "fallback_fill";
11965
+ } & FallbackFillActionInputWritable;
11966
+ readonly check: (input: ActionInput<"check">) => {
11967
+ type: "check";
11968
+ } & CheckActionInput;
11969
+ readonly selectDropdownOption: (input: ActionInput<"select_dropdown_option">) => {
11970
+ type: "select_dropdown_option";
11971
+ } & SelectDropdownOptionActionInputWritable;
11972
+ readonly uploadFile: (input: ActionInput<"upload_file">) => {
11973
+ type: "upload_file";
11974
+ } & UploadFileActionInput;
11975
+ readonly downloadFile: (input?: ActionInput<"download_file"> | undefined) => {
11976
+ type: "download_file";
11977
+ } & DownloadFileActionInput;
11978
+ };
11979
+ /** True when the action is a captcha solve, which gets a longer request timeout and 408 retries. */
11980
+ declare function isCaptchaSolveAction(action: ExecuteAction): action is ActionOfType<'captcha_solve'>;
11981
+
11982
+ /** Execution envelope with the backend's additive CAPTCHA coordination fields. */
11983
+ type CaptchaExecutionResponse = ApiExecutionResponse & {
11984
+ captcha?: CaptchaStatus | null;
11985
+ action_executed?: boolean | null;
11986
+ code?: string | null;
11987
+ };
11988
+
11989
+ /**
11990
+ * Issue an HTTP request from the page a session is on, the port of
11991
+ * `notte_core.data.fetch`.
11992
+ *
11993
+ * `session.fetch()` runs the browser's own `fetch()` inside the current page, so
11994
+ * the request carries the page's cookies, the session's proxy and the browser's
11995
+ * network fingerprint. This module builds the script and reads the result back
11996
+ * into a `PageFetchResponse`.
11997
+ */
11998
+
11999
+ /** A form body (`Record`) or a raw string body. */
12000
+ type FetchData = string | Record<string, unknown>;
12001
+ interface PageFetchOptions {
12002
+ /** HTTP method. Defaults to `GET`. */
12003
+ method?: string;
12004
+ /** Request headers. */
12005
+ headers?: Record<string, string>;
12006
+ /** Query parameters appended to the URL (before any fragment). Arrays repeat the key. */
12007
+ params?: Record<string, unknown>;
12008
+ /** JSON body, sent with `Content-Type: application/json` unless a content type is given. */
12009
+ json?: unknown;
12010
+ /** Form body (`Record`, sent url-encoded) or a raw string body sent verbatim. */
12011
+ data?: FetchData;
12012
+ /** Abort the request after this many milliseconds. Must be positive. */
12013
+ timeoutMs?: number;
12014
+ /**
12015
+ * Allow `http:` URLs and follow redirects. Off by default because the request
12016
+ * carries the page's cookies: an `https:` request redirected to `http:` would
12017
+ * send them in cleartext before the response can be inspected, so by default
12018
+ * redirects are not followed and a redirected response throws.
12019
+ */
12020
+ allowInsecure?: boolean;
12021
+ /**
12022
+ * Browser `fetch` redirect mode. Defaults to `manual` (a redirect throws)
12023
+ * unless `allowInsecure` is set, in which case redirects are followed like
12024
+ * the Python SDK does.
12025
+ */
12026
+ redirect?: 'follow' | 'manual' | 'error';
12027
+ }
12028
+ /**
12029
+ * Return the JavaScript that performs the request and serialises the response.
12030
+ *
12031
+ * The script is an async IIFE, which `evaluateJs` awaits. It returns a JSON
12032
+ * string so the value survives the evaluate round-trip unchanged.
12033
+ *
12034
+ * ```ts
12035
+ * const script = buildFetchScript('/api/items', { params: { page: 2 } });
12036
+ * const response = responseFromEvaluated(await session.evaluateJs(script));
12037
+ * ```
12038
+ */
12039
+ declare function buildFetchScript(url: string, options?: PageFetchOptions): string;
12040
+ /** `response.raiseForStatus()` rejected a 4xx/5xx response, like `requests.HTTPError`. */
12041
+ declare class PageFetchHTTPError extends NotteError {
12042
+ readonly response: PageFetchResponse;
12043
+ constructor(response: PageFetchResponse);
12044
+ }
12045
+ /**
12046
+ * The response of `session.fetch()`, shaped like the Web `Response` with the
12047
+ * final `url` after redirects exposed as a plain property. A non-2xx status is
12048
+ * a response, not an error; `raiseForStatus()` throws `PageFetchHTTPError`.
12049
+ * `bytes()` holds the exact bytes the server sent, so binary bodies survive;
12050
+ * `text()` decodes them with the declared charset, or utf-8 when none is given.
12051
+ */
12052
+ declare class PageFetchResponse {
12053
+ readonly status: number;
12054
+ readonly statusText: string;
12055
+ readonly headers: Headers;
12056
+ /** The final URL after redirects. */
12057
+ readonly url: string;
12058
+ /** The declared charset, `utf-8` when the body is valid utf-8, else `undefined`. */
12059
+ readonly encoding: string | undefined;
12060
+ private readonly content;
12061
+ constructor(init: {
12062
+ status: number;
12063
+ headers: Record<string, string>;
12064
+ url: string;
12065
+ content: Uint8Array;
12066
+ });
12067
+ get ok(): boolean;
12068
+ /** The raw body bytes. */
12069
+ bytes(): Uint8Array;
12070
+ arrayBuffer(): Promise<ArrayBuffer>;
12071
+ text(): Promise<string>;
12072
+ json(): Promise<unknown>;
12073
+ /** Throw `PageFetchHTTPError` on a 4xx/5xx status, like `requests.Response.raise_for_status()`. */
12074
+ raiseForStatus(): this;
12075
+ }
12076
+ /**
12077
+ * Turn the envelope `buildFetchScript` returns into a `PageFetchResponse`.
12078
+ * Throws `FetchResponseDecodeError` when the envelope cannot be read.
12079
+ */
12080
+ declare function responseFromEvaluated(raw: string): PageFetchResponse;
12081
+
12082
+ /**
12083
+ * Shared scrape request/response handling for `client.scrape()` and
12084
+ * `session.scrape()`, mirroring `PageClient.scrape` in the Python SDK.
12085
+ */
12086
+
12087
+ /** Minimal structural view of a Zod schema so `zod` stays an optional import path. */
12088
+ interface ZodLikeSchema<T> {
12089
+ parse(data: unknown): T;
12090
+ }
12091
+ /** Structured extraction result when `raiseOnFailure` is false, like `StructuredData` in Python. */
12092
+ interface StructuredData<T> {
12093
+ success: boolean;
12094
+ error?: string | null;
12095
+ data?: T | null;
12096
+ }
12097
+ interface ScrapeOptions<T = unknown> {
12098
+ /** A Zod schema or a JSON Schema object describing the data to extract. */
12099
+ response_format?: ZodLikeSchema<T> | Record<string, unknown> | null;
12100
+ /** JSON Schema to send instead of converting `response_format`. Only used with a Zod schema. */
12101
+ json_schema?: Record<string, unknown>;
12102
+ /**
12103
+ * When true (default) a failed structured extraction throws `ScrapeFailedError`
12104
+ * and the extracted data is returned directly. When false the `StructuredData`
12105
+ * wrapper is returned so callers can inspect `.success`.
12106
+ */
12107
+ raiseOnFailure?: boolean;
12108
+ }
12109
+ type SessionScrapeOptions<T = unknown> = Omit<ScrapeRequest, 'response_format'> & ScrapeOptions<T>;
12110
+ type ScrapeResult<T> = string | ImageData[] | T | StructuredData<T>;
12111
+ /**
12112
+ * Post-process a scrape response according to the request options:
12113
+ * - `only_images` returns the image list,
12114
+ * - `response_format` / `instructions` return the extracted data (validated by
12115
+ * the Zod schema when one was given) or throw `ScrapeFailedError`,
12116
+ * - otherwise the markdown string is returned.
12117
+ */
12118
+ declare function processScrapeResponse<T = unknown>(scrapeResponse: DataSpace | undefined, options: SessionScrapeOptions<T> & {
12119
+ instructions?: string | null;
12120
+ only_images?: boolean;
12121
+ }): ScrapeResult<T>;
12122
+
11467
12123
  /** Number of attempts `start()` makes on 5xx errors, like `RemoteSession.start(tries=3)`. */
11468
12124
  declare const SESSION_START_TRIES = 3;
11469
12125
  /** Delay before retrying `start()` after an HTTP 529 (cluster overload). */
11470
12126
  declare const CLUSTER_OVERLOAD_RETRY_DELAY_MS = 30000;
11471
- /** Request timeout for `captcha_solve` actions, like `PageClient.execute` in Python. */
12127
+ /** @deprecated Legacy request limit; CAPTCHA polls now use at most 10 seconds per request. */
11472
12128
  declare const CAPTCHA_SOLVE_TIMEOUT_MS = 100000;
11473
12129
  type PerceptionType = NonNullable<ObserveRequest['perception_type']>;
11474
12130
  type SessionCloseReason = 'manual' | 'error';
@@ -11490,7 +12146,15 @@ interface SessionScriptOptions {
11490
12146
  /** Infer a `response_format` schema for scrape calls that have instructions but no schema. */
11491
12147
  infer_response_format?: boolean;
11492
12148
  }
12149
+ interface SessionStartOptions extends AuthWaitOptions {
12150
+ /** Override the session default; false returns while authentication continues. */
12151
+ wait_for_authentication?: boolean;
12152
+ }
11493
12153
  interface SessionOptions extends ApiSessionStartRequest {
12154
+ /** Wait in the SDK for managed authentication on start(). Defaults to true; use() always waits. */
12155
+ wait_for_authentication?: boolean;
12156
+ /** Additional server-side login attempts, from 0 to 2. Only sent with auth_ids. */
12157
+ auth_retry?: number;
11494
12158
  /**
11495
12159
  * @deprecated Remote sessions always use the supported browser launch mode.
11496
12160
  * Retained as a boolean so existing typed configuration still compiles.
@@ -11541,6 +12205,9 @@ declare class Session {
11541
12205
  private defaultRaiseOnFailure;
11542
12206
  private defaultPerceptionType;
11543
12207
  private cookieFile;
12208
+ private cookiesLoaded;
12209
+ private cookieLoadPromise;
12210
+ private authenticationReady;
11544
12211
  private fileStorage;
11545
12212
  private sessionId;
11546
12213
  private isActive;
@@ -11555,12 +12222,23 @@ declare class Session {
11555
12222
  * `CLUSTER_OVERLOAD_RETRY_DELAY_MS` on HTTP 529 (cluster overload). 4xx
11556
12223
  * errors are never retried.
11557
12224
  *
12225
+ * Managed-auth sessions wait for readiness by default. Pass
12226
+ * `{ wait_for_authentication: false }` for an explicit nonblocking start,
12227
+ * then call `waitForAuth()` before executing actions or connecting over CDP.
12228
+ * Cancellation during creation waits for its response so the new session can
12229
+ * be closed. Cancellation or failure during the startup wait also closes it.
11558
12230
  * Prefer `session.use(async session => { ... })`, which also stops the session.
11559
12231
  * @example
11560
12232
  * const session = client.Session();
11561
12233
  * await session.start();
11562
12234
  */
11563
- start(): Promise<void>;
12235
+ start(options?: SessionStartOptions): Promise<void>;
12236
+ /**
12237
+ * Wait for this session to become usable without creating a session or submitting another login.
12238
+ * A standalone wait leaves session ownership with the caller, including on timeout or cancellation.
12239
+ */
12240
+ waitForAuth(options?: AuthWaitOptions): Promise<void>;
12241
+ private loadInitialCookies;
11564
12242
  /**
11565
12243
  * Stop the session and clean up resources (including any Playwright
11566
12244
  * connection opened with `page()`). When a `cookie_file` was given, the
@@ -11583,13 +12261,13 @@ declare class Session {
11583
12261
  * const status = await session.status();
11584
12262
  * console.log(status.status); // 'active'
11585
12263
  */
11586
- status(): Promise<SessionResponse>;
12264
+ status(): Promise<AuthSessionResponse>;
11587
12265
  /** Session ID while the session is active, `null` otherwise. */
11588
12266
  getId(): string | null;
11589
12267
  /** Whether the session has been started and not stopped yet. */
11590
12268
  isSessionActive(): boolean;
11591
12269
  /** The last `SessionResponse` received from the API (start, stop or status). */
11592
- getResponse(): SessionResponse | null;
12270
+ getResponse(): AuthSessionResponse | null;
11593
12271
  /** The file storage attached to the session, when one was given. */
11594
12272
  get storage(): RemoteFileStorage | undefined;
11595
12273
  private requireSessionId;
@@ -11710,7 +12388,7 @@ declare class Session {
11710
12388
  * const result = await session.execute({ type: 'click', id: 'B1' }, { raiseOnFailure: false });
11711
12389
  * if (!result.success) console.log(result.message);
11712
12390
  */
11713
- execute(action: ExecuteAction, options?: boolean | ExecuteOptions): Promise<ApiExecutionResponse>;
12391
+ execute(action: ExecuteAction, options?: boolean | ExecuteOptions): Promise<CaptchaExecutionResponse>;
11714
12392
  /**
11715
12393
  * Evaluate JavaScript on the current page and return its result as a string.
11716
12394
  *
@@ -11802,7 +12480,10 @@ declare class Session {
11802
12480
  * Context manager pattern: start the session, run the callback and stop the
11803
12481
  * session, with close reason `error` when the callback throws.
11804
12482
  *
11805
- * @param callback - Async work to perform with the started session.
12483
+ * Always waits for Managed Auth readiness before invoking the callback.
12484
+ *
12485
+ * @param callback - Async work to perform with the ready session.
12486
+ * @param options - Controls the Managed Auth readiness wait, including timeout and cancellation.
11806
12487
  * @returns The callback's return value after session cleanup has been attempted.
11807
12488
  * @throws Error if startup fails, the callback throws, or cleanup fails after a successful callback.
11808
12489
  * @example
@@ -11810,7 +12491,7 @@ declare class Session {
11810
12491
  * await session.execute({ type: 'goto', url: 'https://www.notte.cc' });
11811
12492
  * });
11812
12493
  */
11813
- use<T>(callback: (session: Session) => Promise<T>): Promise<T>;
12494
+ use<T>(callback: (session: Session) => Promise<T>, options?: AuthWaitOptions): Promise<T>;
11814
12495
  /**
11815
12496
  * Async iterator pattern for session lifecycle management.
11816
12497
  *
@@ -12723,6 +13404,8 @@ interface NotteClientConfig {
12723
13404
  apiKey?: string;
12724
13405
  /** Default per-request timeout in milliseconds. Defaults to 60 000, like the Python SDK. */
12725
13406
  timeoutMs?: number;
13407
+ /** Maximum CAPTCHA wait in seconds, separate from each HTTP timeout. Defaults to 180. */
13408
+ captchaTimeoutSeconds?: number;
12726
13409
  /** Database preview branch. Defaults to `NOTTE_DB_PREVIEW_BRANCH`. Internal. */
12727
13410
  dbPreview?: string;
12728
13411
  /** Log every request like `NotteClient(verbose=True)` in Python. */
@@ -12733,11 +13416,15 @@ type AgentListOptions = NonNullable<ListAgentsData['query']>;
12733
13416
  type VaultListOptions = NonNullable<ListVaultsData['query']>;
12734
13417
  type FunctionListOptions = NonNullable<ListFunctionsData['query']>;
12735
13418
  /** Options of `client.scrape()`: the global scrape request minus `url`, plus the SDK-only scrape options. */
12736
- type GlobalScrapeOptions<T = unknown> = Omit<GlobalScrapeRequest, 'url' | 'response_format'> & ScrapeOptions<T>;
13419
+ type GlobalScrapeOptions<T = unknown> = Omit<GlobalScrapeRequest, 'url' | 'response_format' | 'wait_for_authentication'> & ScrapeOptions<T> & {
13420
+ /** Whether to wait for Managed Auth before the scrape request completes. Defaults to true. Authentication failure or timeout can fail the scrape request. */
13421
+ wait_for_authentication?: boolean;
13422
+ };
12737
13423
  /** Entry point for sessions, agents, functions, vaults, personas, and session files. */
12738
13424
  declare class NotteClient {
12739
13425
  private readonly config;
12740
13426
  private readonly client;
13427
+ private readonly resources;
12741
13428
  constructor(config?: NotteClientConfig);
12742
13429
  /**
12743
13430
  * Map the raw value the generated client rejects with into a `NotteError`.
@@ -12793,21 +13480,171 @@ declare class NotteClient {
12793
13480
  NotteFunction(options: FunctionConstructor): NotteFunction;
12794
13481
  /** Alias of `NotteFunction`, matching `client.Function` in Python. */
12795
13482
  Function(options: FunctionConstructor): NotteFunction;
12796
- /** Sessions listing, the counterpart of `client.sessions.list()`. */
13483
+ /** Client-bound session API operations. `list()` retains its array return value. */
12797
13484
  get sessions(): {
12798
- list: (options?: SessionListOptions) => Promise<SessionResponse[]>;
12799
- };
12800
- /** Agents listing, the counterpart of `client.agents.list()`. */
13485
+ list: (options?: SessionListOptions) => Promise<AuthSessionResponse[]>;
13486
+ authReadiness: (sessionId: SessionAuthReadinessData["path"]["session_id"], requestOptions?: ResourceRequestOptions & {
13487
+ headers?: Omit<NonNullable<SessionAuthReadinessData["headers"]>, "x-notte-api-key">;
13488
+ }) => Promise<ManagedAuthReadiness>;
13489
+ createPayment: (sessionId: CreatePaymentData["path"]["session_id"], body: CreatePaymentData["body"], query: CreatePaymentData["query"], requestOptions: ResourceRequestOptions & {
13490
+ headers: Omit<NonNullable<CreatePaymentData["headers"]>, "x-notte-api-key">;
13491
+ }) => Promise<PaymentResponse>;
13492
+ debugInfo: (sessionId: SessionDebugInfoData["path"]["session_id"], query?: SessionDebugInfoData["query"], requestOptions?: ResourceRequestOptions & {
13493
+ headers?: Omit<NonNullable<SessionDebugInfoData["headers"]>, "x-notte-api-key">;
13494
+ }) => Promise<SessionDebugResponse>;
13495
+ deleteSessionFile: (sessionId: DeleteSessionFileData["path"]["session_id"], fileId: DeleteSessionFileData["path"]["file_id"], requestOptions?: ResourceRequestOptions & {
13496
+ headers?: Omit<NonNullable<DeleteSessionFileData["headers"]>, "x-notte-api-key">;
13497
+ }) => Promise<void>;
13498
+ downloadSessionFile: (sessionId: DownloadSessionFileData["path"]["session_id"], fileId: DownloadSessionFileData["path"]["file_id"], requestOptions?: ResourceRequestOptions & {
13499
+ headers?: Omit<NonNullable<DownloadSessionFileData["headers"]>, "x-notte-api-key">;
13500
+ }) => Promise<unknown>;
13501
+ execute: (sessionId: PageExecuteData["path"]["session_id"], body: PageExecuteData["body"], query?: PageExecuteData["query"], requestOptions?: ResourceRequestOptions & {
13502
+ headers?: Omit<NonNullable<PageExecuteData["headers"]>, "x-notte-api-key">;
13503
+ }) => Promise<ApiExecutionResponse>;
13504
+ getCookies: (sessionId: SessionCookiesGetData["path"]["session_id"], query?: SessionCookiesGetData["query"], requestOptions?: ResourceRequestOptions & {
13505
+ headers?: Omit<NonNullable<SessionCookiesGetData["headers"]>, "x-notte-api-key">;
13506
+ }) => Promise<GetCookiesResponse>;
13507
+ getSessionScript: (sessionId: GetSessionScriptData["path"]["session_id"], query: GetSessionScriptData["query"], requestOptions?: ResourceRequestOptions & {
13508
+ headers?: Omit<NonNullable<GetSessionScriptData["headers"]>, "x-notte-api-key">;
13509
+ }) => Promise<AgentFunctionCodeResponse>;
13510
+ listSessionFiles: (sessionId: ListSessionFilesData["path"]["session_id"], query?: ListSessionFilesData["query"], requestOptions?: ResourceRequestOptions & {
13511
+ headers?: Omit<NonNullable<ListSessionFilesData["headers"]>, "x-notte-api-key">;
13512
+ }) => Promise<SessionFilesPage>;
13513
+ networkLogs: (sessionId: SessionNetworkLogsData["path"]["session_id"], query?: SessionNetworkLogsData["query"], requestOptions?: ResourceRequestOptions & {
13514
+ headers?: Omit<NonNullable<SessionNetworkLogsData["headers"]>, "x-notte-api-key">;
13515
+ }) => Promise<NetworkLogsResponse>;
13516
+ observe: (sessionId: PageObserveData["path"]["session_id"], body: PageObserveData["body"], query?: PageObserveData["query"], requestOptions?: ResourceRequestOptions & {
13517
+ headers?: Omit<NonNullable<PageObserveData["headers"]>, "x-notte-api-key">;
13518
+ }) => Promise<Observation>;
13519
+ offset: (sessionId: SessionOffsetData["path"]["session_id"], requestOptions?: ResourceRequestOptions & {
13520
+ headers?: Omit<NonNullable<SessionOffsetData["headers"]>, "x-notte-api-key">;
13521
+ }) => Promise<SessionOffsetResponse>;
13522
+ pageScreenshot: (sessionId: PageScreenshotData["path"]["session_id"], query?: PageScreenshotData["query"], requestOptions?: ResourceRequestOptions & {
13523
+ headers?: Omit<NonNullable<PageScreenshotData["headers"]>, "x-notte-api-key">;
13524
+ }) => Promise<unknown>;
13525
+ profilePreview: (sessionId: SessionProfilePreviewData["path"]["session_id"], query?: SessionProfilePreviewData["query"], requestOptions?: ResourceRequestOptions & {
13526
+ headers?: Omit<NonNullable<SessionProfilePreviewData["headers"]>, "x-notte-api-key">;
13527
+ }) => Promise<SessionProfilePreviewResponse>;
13528
+ replay: (sessionId: SessionReplayData["path"]["session_id"], requestOptions?: ResourceRequestOptions & {
13529
+ headers?: Omit<NonNullable<SessionReplayData["headers"]>, "x-notte-api-key">;
13530
+ }) => Promise<ReplayResponse>;
13531
+ scrape: (sessionId: PageScrapeData["path"]["session_id"], body: PageScrapeData["body"], query?: PageScrapeData["query"], requestOptions?: ResourceRequestOptions & {
13532
+ headers?: Omit<NonNullable<PageScrapeData["headers"]>, "x-notte-api-key">;
13533
+ }) => Promise<DataSpace>;
13534
+ setCookies: (sessionId: SessionCookiesSetData["path"]["session_id"], body: SessionCookiesSetData["body"], query?: SessionCookiesSetData["query"], requestOptions?: ResourceRequestOptions & {
13535
+ headers?: Omit<NonNullable<SessionCookiesSetData["headers"]>, "x-notte-api-key">;
13536
+ }) => Promise<ExecutionResponse>;
13537
+ start: (body: SessionStartData["body"], requestOptions?: ResourceRequestOptions & {
13538
+ headers?: Omit<NonNullable<SessionStartData["headers"]>, "x-notte-api-key">;
13539
+ }) => Promise<SessionResponse>;
13540
+ status: (sessionId: SessionStatusData["path"]["session_id"], requestOptions?: ResourceRequestOptions & {
13541
+ headers?: Omit<NonNullable<SessionStatusData["headers"]>, "x-notte-api-key">;
13542
+ }) => Promise<SessionResponse>;
13543
+ stop: (sessionId: SessionStopData["path"]["session_id"], query?: SessionStopData["query"], requestOptions?: ResourceRequestOptions & {
13544
+ headers?: Omit<NonNullable<SessionStopData["headers"]>, "x-notte-api-key">;
13545
+ }) => Promise<SessionResponse>;
13546
+ uploadSessionFile: (sessionId: UploadSessionFileData["path"]["session_id"], body: UploadSessionFileData["body"], requestOptions?: ResourceRequestOptions & {
13547
+ headers?: Omit<NonNullable<UploadSessionFileData["headers"]>, "x-notte-api-key">;
13548
+ }) => Promise<SessionFile>;
13549
+ };
13550
+ /** Client-bound agent API operations. `list()` retains its array return value. */
12801
13551
  get agents(): {
12802
13552
  list: (options?: AgentListOptions) => Promise<AgentResponse[]>;
12803
- };
12804
- /** Vaults listing, the counterpart of `client.vaults.list()`. */
13553
+ getScript: (agentId: GetScriptData["path"]["agent_id"], query: GetScriptData["query"], requestOptions?: ResourceRequestOptions & {
13554
+ headers?: Omit<NonNullable<GetScriptData["headers"]>, "x-notte-api-key">;
13555
+ }) => Promise<AgentFunctionCodeResponse>;
13556
+ start: (body: AgentStartData["body"], requestOptions?: ResourceRequestOptions & {
13557
+ headers?: Omit<NonNullable<AgentStartData["headers"]>, "x-notte-api-key">;
13558
+ }) => Promise<AgentResponse>;
13559
+ status: (agentId: AgentStatusData["path"]["agent_id"], requestOptions?: ResourceRequestOptions & {
13560
+ headers?: Omit<NonNullable<AgentStatusData["headers"]>, "x-notte-api-key">;
13561
+ }) => Promise<LegacyAgentStatusResponse>;
13562
+ stop: (agentId: AgentStopData["path"]["agent_id"], query: AgentStopData["query"], requestOptions?: ResourceRequestOptions & {
13563
+ headers?: Omit<NonNullable<AgentStopData["headers"]>, "x-notte-api-key">;
13564
+ }) => Promise<AgentStatusResponse>;
13565
+ };
13566
+ /** Client-bound vault API operations. `list()` retains its array return value. */
12805
13567
  get vaults(): {
12806
13568
  list: (options?: VaultListOptions) => Promise<Vault[]>;
12807
- };
12808
- /** Functions listing, the counterpart of `client.functions.list()`. */
13569
+ create: (body: VaultCreateData["body"], requestOptions?: ResourceRequestOptions & {
13570
+ headers?: Omit<NonNullable<VaultCreateData["headers"]>, "x-notte-api-key">;
13571
+ }) => Promise<Vault>;
13572
+ credentialsAdd: (vaultId: VaultCredentialsAddData["path"]["vault_id"], body: VaultCredentialsAddData["body"], requestOptions?: ResourceRequestOptions & {
13573
+ headers?: Omit<NonNullable<VaultCredentialsAddData["headers"]>, "x-notte-api-key">;
13574
+ }) => Promise<AddCredentialsResponse>;
13575
+ credentialsDelete: (vaultId: VaultCredentialsDeleteData["path"]["vault_id"], query: VaultCredentialsDeleteData["query"], requestOptions?: ResourceRequestOptions & {
13576
+ headers?: Omit<NonNullable<VaultCredentialsDeleteData["headers"]>, "x-notte-api-key">;
13577
+ }) => Promise<DeleteCredentialsResponse>;
13578
+ credentialsGet: (vaultId: VaultCredentialsGetData["path"]["vault_id"], query: VaultCredentialsGetData["query"], requestOptions?: ResourceRequestOptions & {
13579
+ headers?: Omit<NonNullable<VaultCredentialsGetData["headers"]>, "x-notte-api-key">;
13580
+ }) => Promise<GetCredentialsResponse>;
13581
+ credentialsList: (vaultId: VaultCredentialsListData["path"]["vault_id"], requestOptions?: ResourceRequestOptions & {
13582
+ headers?: Omit<NonNullable<VaultCredentialsListData["headers"]>, "x-notte-api-key">;
13583
+ }) => Promise<ListCredentialsResponse>;
13584
+ creditCardDelete: (vaultId: VaultCreditCardDeleteData["path"]["vault_id"], requestOptions?: ResourceRequestOptions & {
13585
+ headers?: Omit<NonNullable<VaultCreditCardDeleteData["headers"]>, "x-notte-api-key">;
13586
+ }) => Promise<DeleteCreditCardResponse>;
13587
+ creditCardGet: (vaultId: VaultCreditCardGetData["path"]["vault_id"], requestOptions?: ResourceRequestOptions & {
13588
+ headers?: Omit<NonNullable<VaultCreditCardGetData["headers"]>, "x-notte-api-key">;
13589
+ }) => Promise<GetCreditCardResponse>;
13590
+ creditCardSet: (vaultId: VaultCreditCardSetData["path"]["vault_id"], body: VaultCreditCardSetData["body"], requestOptions?: ResourceRequestOptions & {
13591
+ headers?: Omit<NonNullable<VaultCreditCardSetData["headers"]>, "x-notte-api-key">;
13592
+ }) => Promise<AddCreditCardResponse>;
13593
+ delete: (vaultId: VaultDeleteData["path"]["vault_id"], requestOptions?: ResourceRequestOptions & {
13594
+ headers?: Omit<NonNullable<VaultDeleteData["headers"]>, "x-notte-api-key">;
13595
+ }) => Promise<DeleteVaultResponse>;
13596
+ update: (vaultId: VaultUpdateData["path"]["vault_id"], body: VaultUpdateData["body"], requestOptions?: ResourceRequestOptions & {
13597
+ headers?: Omit<NonNullable<VaultUpdateData["headers"]>, "x-notte-api-key">;
13598
+ }) => Promise<Vault>;
13599
+ };
13600
+ /** Client-bound function API operations. `list()` retains its array return value. */
12809
13601
  get functions(): {
12810
13602
  list: (options?: FunctionListOptions) => Promise<FunctionListItemResponse[]>;
13603
+ create: (body: FunctionCreateData["body"], query?: FunctionCreateData["query"], requestOptions?: ResourceRequestOptions & {
13604
+ headers?: Omit<NonNullable<FunctionCreateData["headers"]>, "x-notte-api-key">;
13605
+ }) => Promise<FunctionResponse>;
13606
+ delete: (functionId: FunctionDeleteData["path"]["function_id"], requestOptions?: ResourceRequestOptions & {
13607
+ headers?: Omit<NonNullable<FunctionDeleteData["headers"]>, "x-notte-api-key">;
13608
+ }) => Promise<DeleteFunctionResponse>;
13609
+ deleteSchedule: (functionId: FunctionScheduleDeleteData["path"]["function_id"], requestOptions?: ResourceRequestOptions & {
13610
+ headers?: Omit<NonNullable<FunctionScheduleDeleteData["headers"]>, "x-notte-api-key">;
13611
+ }) => Promise<ScheduleDeleteResponse>;
13612
+ downloadUrl: (functionId: FunctionDownloadUrlData["path"]["function_id"], query?: FunctionDownloadUrlData["query"], requestOptions?: ResourceRequestOptions & {
13613
+ headers?: Omit<NonNullable<FunctionDownloadUrlData["headers"]>, "x-notte-api-key">;
13614
+ }) => Promise<FunctionWithLinkResponse>;
13615
+ fork: (functionId: FunctionForkData["path"]["function_id"], requestOptions?: ResourceRequestOptions & {
13616
+ headers?: Omit<NonNullable<FunctionForkData["headers"]>, "x-notte-api-key">;
13617
+ }) => Promise<FunctionResponse>;
13618
+ listRuns: (functionId: ListFunctionRunsByFunctionIdData["path"]["function_id"], query?: ListFunctionRunsByFunctionIdData["query"], requestOptions?: ResourceRequestOptions & {
13619
+ headers?: Omit<NonNullable<ListFunctionRunsByFunctionIdData["headers"]>, "x-notte-api-key">;
13620
+ }) => Promise<PaginatedResponseFunctionRunListItemResponse>;
13621
+ metadataUpdate: (functionId: FunctionMetadataUpdateData["path"]["function_id"], body: FunctionMetadataUpdateData["body"], requestOptions?: ResourceRequestOptions & {
13622
+ headers?: Omit<NonNullable<FunctionMetadataUpdateData["headers"]>, "x-notte-api-key">;
13623
+ }) => Promise<FunctionResponse>;
13624
+ rollback: (functionId: FunctionRollbackData["path"]["function_id"], body: FunctionRollbackData["body"], query?: FunctionRollbackData["query"], requestOptions?: ResourceRequestOptions & {
13625
+ headers?: Omit<NonNullable<FunctionRollbackData["headers"]>, "x-notte-api-key">;
13626
+ }) => Promise<FunctionResponse>;
13627
+ runGetMetadata: (functionId: FunctionRunGetMetadataData["path"]["function_id"], runId: FunctionRunGetMetadataData["path"]["run_id"], requestOptions?: ResourceRequestOptions & {
13628
+ headers?: Omit<NonNullable<FunctionRunGetMetadataData["headers"]>, "x-notte-api-key">;
13629
+ }) => Promise<GetFunctionRunResponse>;
13630
+ runStart: (functionId: FunctionRunStartData["path"]["function_id"], body: FunctionRunStartData["body"], requestOptions?: ResourceRequestOptions & {
13631
+ headers?: Omit<NonNullable<FunctionRunStartData["headers"]>, "x-notte-api-key">;
13632
+ }) => Promise<unknown>;
13633
+ runStop: (functionId: FunctionRunStopData["path"]["function_id"], runId: FunctionRunStopData["path"]["run_id"], requestOptions?: ResourceRequestOptions & {
13634
+ headers?: Omit<NonNullable<FunctionRunStopData["headers"]>, "x-notte-api-key">;
13635
+ }) => Promise<UpdateFunctionRunResponse>;
13636
+ runUpdateMetadata: (functionId: FunctionRunUpdateMetadataData["path"]["function_id"], runId: FunctionRunUpdateMetadataData["path"]["run_id"], body: FunctionRunUpdateMetadataData["body"], requestOptions?: ResourceRequestOptions & {
13637
+ headers?: Omit<NonNullable<FunctionRunUpdateMetadataData["headers"]>, "x-notte-api-key">;
13638
+ }) => Promise<UpdateFunctionRunResponse>;
13639
+ runtimeHealth: (requestOptions?: ResourceRequestOptions & {
13640
+ headers?: Omit<NonNullable<FunctionRuntimeHealthData["headers"]>, "x-notte-api-key">;
13641
+ }) => Promise<FunctionRuntimeHealthResponse>;
13642
+ setSchedule: (functionId: FunctionScheduleSetData["path"]["function_id"], body: FunctionScheduleSetData["body"], requestOptions?: ResourceRequestOptions & {
13643
+ headers?: Omit<NonNullable<FunctionScheduleSetData["headers"]>, "x-notte-api-key">;
13644
+ }) => Promise<ScheduleResponse>;
13645
+ update: (functionId: FunctionUpdateData["path"]["function_id"], body: FunctionUpdateData["body"], query?: FunctionUpdateData["query"], requestOptions?: ResourceRequestOptions & {
13646
+ headers?: Omit<NonNullable<FunctionUpdateData["headers"]>, "x-notte-api-key">;
13647
+ }) => Promise<FunctionResponse>;
12811
13648
  };
12812
13649
  /**
12813
13650
  * Search the public web (`POST /search`). Returns ranked results by default,
@@ -12836,6 +13673,8 @@ declare class NotteClient {
12836
13673
  get anything(): NotteAnything;
12837
13674
  /** Workspace secrets (`/secrets`). */
12838
13675
  get secrets(): NotteSecrets;
13676
+ /** Managed authentication: verify connections, request login, and wait for readiness. */
13677
+ get managedAuth(): NotteManagedAuth;
12839
13678
  /** Usage and billing (`/usage`, `/usage/logs`). */
12840
13679
  get usage(): NotteUsage;
12841
13680
  /**
@@ -12843,11 +13682,53 @@ declare class NotteClient {
12843
13682
  */
12844
13683
  get personas(): {
12845
13684
  list: (options?: PersonaListOptions) => Promise<PersonaResponse[]>;
13685
+ create: (body: PersonaCreateData["body"], requestOptions?: ResourceRequestOptions & {
13686
+ headers?: Omit<NonNullable<PersonaCreateData["headers"]>, "x-notte-api-key">;
13687
+ }) => Promise<PersonaResponse>;
13688
+ delete: (personaId: PersonaDeleteData["path"]["persona_id"], requestOptions?: ResourceRequestOptions & {
13689
+ headers?: Omit<NonNullable<PersonaDeleteData["headers"]>, "x-notte-api-key">;
13690
+ }) => Promise<DeletePersonaResponse>;
13691
+ emailsList: (personaId: PersonaEmailsListData["path"]["persona_id"], query?: PersonaEmailsListData["query"], requestOptions?: ResourceRequestOptions & {
13692
+ headers?: Omit<NonNullable<PersonaEmailsListData["headers"]>, "x-notte-api-key">;
13693
+ }) => Promise<EmailResponse[]>;
13694
+ get: (personaId: PersonaGetData["path"]["persona_id"], requestOptions?: ResourceRequestOptions & {
13695
+ headers?: Omit<NonNullable<PersonaGetData["headers"]>, "x-notte-api-key">;
13696
+ }) => Promise<PersonaResponse>;
13697
+ smsList: (personaId: PersonaSmsListData["path"]["persona_id"], query?: PersonaSmsListData["query"], requestOptions?: ResourceRequestOptions & {
13698
+ headers?: Omit<NonNullable<PersonaSmsListData["headers"]>, "x-notte-api-key">;
13699
+ }) => Promise<SmsResponse[]>;
13700
+ update: (personaId: PersonaUpdateData["path"]["persona_id"], body: PersonaUpdateData["body"], requestOptions?: ResourceRequestOptions & {
13701
+ headers?: Omit<NonNullable<PersonaUpdateData["headers"]>, "x-notte-api-key">;
13702
+ }) => Promise<PersonaResponse>;
12846
13703
  };
12847
13704
  /**
12848
13705
  * Get the configured client instance
12849
13706
  */
12850
13707
  getClient(): Client;
13708
+ /** Client-bound profile API operations, generated from OpenAPI. */
13709
+ get profiles(): {
13710
+ cookiesGet: (profileId: ProfileCookiesGetData["path"]["profile_id"], requestOptions?: ResourceRequestOptions & {
13711
+ headers?: Omit<NonNullable<ProfileCookiesGetData["headers"]>, "x-notte-api-key">;
13712
+ }) => Promise<GetCookiesResponse>;
13713
+ cookiesSet: (profileId: ProfileCookiesSetData["path"]["profile_id"], body: ProfileCookiesSetData["body"], requestOptions?: ResourceRequestOptions & {
13714
+ headers?: Omit<NonNullable<ProfileCookiesSetData["headers"]>, "x-notte-api-key">;
13715
+ }) => Promise<ProfileCookiesImportResponse>;
13716
+ create: (body: ProfileCreateData["body"], requestOptions?: ResourceRequestOptions & {
13717
+ headers?: Omit<NonNullable<ProfileCreateData["headers"]>, "x-notte-api-key">;
13718
+ }) => Promise<ProfileResponse>;
13719
+ delete: (profileId: ProfileDeleteData["path"]["profile_id"], requestOptions?: ResourceRequestOptions & {
13720
+ headers?: Omit<NonNullable<ProfileDeleteData["headers"]>, "x-notte-api-key">;
13721
+ }) => Promise<ProfileDeleteResponse>;
13722
+ duplicate: (profileId: ProfileDuplicateData["path"]["profile_id"], body: ProfileDuplicateData["body"], requestOptions?: ResourceRequestOptions & {
13723
+ headers?: Omit<NonNullable<ProfileDuplicateData["headers"]>, "x-notte-api-key">;
13724
+ }) => Promise<ProfileResponse>;
13725
+ get: (profileId: ProfileGetData["path"]["profile_id"], requestOptions?: ResourceRequestOptions & {
13726
+ headers?: Omit<NonNullable<ProfileGetData["headers"]>, "x-notte-api-key">;
13727
+ }) => Promise<ProfileResponse>;
13728
+ list: (query?: ProfileListData["query"], requestOptions?: ResourceRequestOptions & {
13729
+ headers?: Omit<NonNullable<ProfileListData["headers"]>, "x-notte-api-key">;
13730
+ }) => Promise<PaginatedResponseProfileResponse>;
13731
+ };
12851
13732
  /**
12852
13733
  * Scrape a webpage directly (without session).
12853
13734
  *
@@ -12905,4 +13786,4 @@ declare const createClient: (config?: {
12905
13786
  token?: string;
12906
13787
  }) => Client;
12907
13788
 
12908
- export { ActionExecutionError, type ActionInput, type ActionOfType, type ActionParameter, type ActionSpace, type ActionSpaceWritable, type ActionType, type AddCredentialsRequest, type AddCredentialsResponse, type AddCreditCardRequest, type AddCreditCardResponse, Agent, type AgentConstructor, type AgentFunctionCodeResponse, type AgentListOptions, type AgentResponse, type AgentRunRequest, type AgentStartData, type AgentStartError, type AgentStartErrors, type AgentStartResponse, type AgentStartResponses, type AgentStatus, type AgentStatusData, type AgentStatusError, type AgentStatusErrors, type AgentStatusResponse, type AgentStatusResponse2, type AgentStatusResponses, type AgentStopData, type AgentStopError, type AgentStopErrors, type AgentStopResponse, type AgentStopResponses, type AgentUpdateHandler, type AnythingStartData, type AnythingStartError, type AnythingStartErrors, type AnythingStartOptions, type AnythingStartRequest, type AnythingStartResponse, type AnythingStartResponses, type ApiAgentStartRequest, type ApiExecutionResponse, type ApiExecutionResponseWritable, type ApiSessionStartRequest, AuthenticationError, type BaseModel, type BaseModelWritable, type BodyFunctionCreateFunctionsPost, type BodyFunctionUpdateFunctionsFunctionIdPost, type BodySessionCookiesSetSessionsSessionIdCookiesPost, type BodyUploadSessionFileSessionsSessionIdFilesPost, type BoundingBox, CAPTCHA_SOLVE_TIMEOUT_MS, CLUSTER_OVERLOAD_RETRY_DELAY_MS, CREDENTIAL_FIELDS, type CaptchaSolveAction, type CheckActionInput, type CheckActionOutput, type ClickActionInput, type ClickActionOutput, type ClientOptions, type CloseTabAction, type CompletionAction, type ConnectLinkContext, type ConnectLinkContextData, type ConnectLinkContextError, type ConnectLinkContextErrors, type ConnectLinkContextResponse, type ConnectLinkContextResponses, type ConnectLinkCreateRequest, type ConnectLinkCreateResponse, type ConnectLinkMailbox, type ConnectLinkMailboxConnectData, type ConnectLinkMailboxConnectError, type ConnectLinkMailboxConnectErrors, type ConnectLinkMailboxConnectRequest, type ConnectLinkMailboxConnectResponse, type ConnectLinkMailboxConnectResponse2, type ConnectLinkMailboxConnectResponses, type ConnectLinkMailboxSyncData, type ConnectLinkMailboxSyncError, type ConnectLinkMailboxSyncErrors, type ConnectLinkMailboxSyncRequest, type ConnectLinkMailboxSyncResponse, type ConnectLinkMailboxSyncResponses, type ConnectLinkMailboxesData, type ConnectLinkMailboxesError, type ConnectLinkMailboxesErrors, type ConnectLinkMailboxesResponse, type ConnectLinkMailboxesResponses, type ConnectLinkStatusData, type ConnectLinkStatusError, type ConnectLinkStatusErrors, type ConnectLinkStatusResponse, type ConnectLinkStatusResponse2, type ConnectLinkStatusResponses, type ConnectLinkSubmitData, type ConnectLinkSubmitError, type ConnectLinkSubmitErrors, type ConnectLinkSubmitRequest, type ConnectLinkSubmitRequestWritable, type ConnectLinkSubmitResponse, type ConnectLinkSubmitResponses, type Cookie, type Credential, type CredentialField, type CredentialsDictInput, type CredentialsDictOutput, type CreditCardDictInput, type CreditCardDictOutput, DEFAULT_NOTTE_API_URL, DEFAULT_REQUEST_TIMEOUT_MS, type DataSpace, type DeleteCredentialsResponse, type DeleteCreditCardResponse, type DeleteFunctionResponse, type DeletePersonaResponse, type DeleteSecretData, type DeleteSecretError, type DeleteSecretErrors, type DeleteSecretResponse, type DeleteSecretResponses, type DeleteSessionFileData, type DeleteSessionFileError, type DeleteSessionFileErrors, type DeleteSessionFileResponse, type DeleteSessionFileResponses, type DeleteVaultResponse, type DownloadFileActionInput, type DownloadFileActionOutput, type DownloadSessionFileData, type DownloadSessionFileError, type DownloadSessionFileErrors, type DownloadSessionFileResponses, type EmailReadAction, type EmailResponse, type EmailVerificationReadAction, Encryption, type EvaluateJsAction, EvaluateJsNoDataError, type ExecuteAction, type ExecuteOptions, type ExecutionResponse, type ExternalProxy, FUNCTION_RUN_ENDPOINTS, FUNCTION_RUN_TIMEOUT_MS, FailedToRunCloudFunctionError, type FallbackFillActionInput, type FallbackFillActionInputWritable, type FallbackFillActionOutput, type FallbackFillActionOutputWritable, type FetchData, FetchResponseDecodeError, type FileDownloadOptions, FileExistsError, type FileListOptions, FileNotFoundError, type FileSource, type FillActionInput, type FillActionInputWritable, type FillActionOutput, type FillActionOutputWritable, type FormFillAction, type FormFillActionWritable, type FrameData, type FunctionConstructor, type FunctionConstructorCreate, type FunctionConstructorWithId, type FunctionCreateData, type FunctionCreateError, type FunctionCreateErrors, type FunctionCreateResponse, type FunctionCreateResponses, type FunctionDeleteData, type FunctionDeleteError, type FunctionDeleteErrors, type FunctionDeleteResponse, type FunctionDeleteResponses, type FunctionDownloadOptions, type FunctionDownloadUrlData, type FunctionDownloadUrlError, type FunctionDownloadUrlErrors, type FunctionDownloadUrlResponse, type FunctionDownloadUrlResponses, type FunctionForkData, type FunctionForkError, type FunctionForkErrors, type FunctionForkResponse, type FunctionForkResponses, type FunctionGetOptions, type FunctionListItemResponse, type FunctionListItemResponseWritable, type FunctionListOptions, type FunctionMetadataUpdateData, type FunctionMetadataUpdateError, type FunctionMetadataUpdateErrors, type FunctionMetadataUpdateOptions, type FunctionMetadataUpdateRequest, type FunctionMetadataUpdateResponse, type FunctionMetadataUpdateResponses, type FunctionResponse, type FunctionResponseWritable, type FunctionRollbackData, type FunctionRollbackError, type FunctionRollbackErrors, type FunctionRollbackOptions, type FunctionRollbackRequest, type FunctionRollbackResponse, type FunctionRollbackResponses, type FunctionRunCreateOptions, type FunctionRunCreateResult, type FunctionRunGetMetadataData, type FunctionRunGetMetadataError, type FunctionRunGetMetadataErrors, type FunctionRunGetMetadataResponse, type FunctionRunGetMetadataResponses, type FunctionRunListItemResponse, type FunctionRunListItemResponseWritable, type FunctionRunListOptions, type FunctionRunOptions, type FunctionRunResponse, type FunctionRunResult, type FunctionRunStartData, type FunctionRunStartError, type FunctionRunStartErrors, type FunctionRunStartResponses, type FunctionRunStartResult, type FunctionRunStatus, type FunctionRunStopData, type FunctionRunStopError, type FunctionRunStopErrors, type FunctionRunStopResponse, type FunctionRunStopResponses, type FunctionRunUpdateMetadataData, type FunctionRunUpdateMetadataError, type FunctionRunUpdateMetadataErrors, type FunctionRunUpdateMetadataResponse, type FunctionRunUpdateMetadataResponses, type FunctionRunUpdateRequest, type FunctionRuntime, type FunctionRuntimeHealthData, type FunctionRuntimeHealthError, type FunctionRuntimeHealthErrors, type FunctionRuntimeHealthResponse, type FunctionRuntimeHealthResponse2, type FunctionRuntimeHealthResponses, type FunctionScheduleCreateRequest, type FunctionScheduleDeleteData, type FunctionScheduleDeleteError, type FunctionScheduleDeleteErrors, type FunctionScheduleDeleteResponse, type FunctionScheduleDeleteResponses, type FunctionScheduleOptions, type FunctionScheduleSetData, type FunctionScheduleSetError, type FunctionScheduleSetErrors, type FunctionScheduleSetResponse, type FunctionScheduleSetResponses, type FunctionSource, type FunctionUpdateData, type FunctionUpdateError, type FunctionUpdateErrors, type FunctionUpdateOptions, type FunctionUpdateResponse, type FunctionUpdateResponses, type FunctionUrlOptions, type FunctionWithLinkResponse, type FunctionWithLinkResponseWritable, type GetCookiesResponse, type GetCredentialsResponse, type GetCreditCardResponse, type GetFunctionRunResponse, type GetFunctionRunResponseWritable, type GetScriptData, type GetScriptError, type GetScriptErrors, type GetScriptResponse, type GetScriptResponses, type GetSecretData, type GetSecretError, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionScriptData, type GetSessionScriptError, type GetSessionScriptErrors, type GetSessionScriptResponse, type GetSessionScriptResponses, type GetUsageData, type GetUsageError, type GetUsageErrors, type GetUsageLogsData, type GetUsageLogsError, type GetUsageLogsErrors, type GetUsageLogsResponse, type GetUsageLogsResponses, type GetUsageResponse, type GetUsageResponses, type GlobalScrapeOptions, type GlobalScrapeRequest, type GoBackAction, type GoForwardAction, type GotoAction, type GotoNewTabAction, type HealthCheckData, type HealthCheckResponse, type HealthCheckResponses, type HealthResponse, type HelpAction, type HttpValidationError, type ImageCategory, type ImageData, type ImprovePromptData, type ImprovePromptError, type ImprovePromptErrors, type ImprovePromptRequest, type ImprovePromptResponse, type ImprovePromptResponse2, type ImprovePromptResponses, InvalidRequestError, type LegacyAgentStatusResponse, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListCredentialsResponse, type ListFunctionRunsByFunctionIdData, type ListFunctionRunsByFunctionIdError, type ListFunctionRunsByFunctionIdErrors, type ListFunctionRunsByFunctionIdResponse, type ListFunctionRunsByFunctionIdResponses, type ListFunctionsData, type ListFunctionsError, type ListFunctionsErrors, type ListFunctionsResponse, type ListFunctionsResponses, type ListPersonasData, type ListPersonasError, type ListPersonasErrors, type ListPersonasResponse, type ListPersonasResponses, type ListSecretsData, type ListSecretsError, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListSessionFilesData, type ListSessionFilesError, type ListSessionFilesErrors, type ListSessionFilesResponse, type ListSessionFilesResponses, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type ListVaultsData, type ListVaultsError, type ListVaultsErrors, type ListVaultsResponse, type ListVaultsResponses, type LlmModel, type MailboxConnectRequest, type MailboxConnectResponse, type MailboxConnectTokenData, type MailboxConnectTokenError, type MailboxConnectTokenErrors, type MailboxConnectTokenResponse, type MailboxConnectTokenResponses, type MailboxConnection, type MailboxDeleteData, type MailboxDeleteError, type MailboxDeleteErrors, type MailboxDeleteResponse, type MailboxDeleteResponses, type MailboxGetData, type MailboxGetError, type MailboxGetErrors, type MailboxGetResponse, type MailboxGetResponses, type MailboxListData, type MailboxListError, type MailboxListErrors, type MailboxListResponse, type MailboxListResponse2, type MailboxListResponses, type MailboxSyncData, type MailboxSyncError, type MailboxSyncErrors, type MailboxSyncRequest, type MailboxSyncResponse, type MailboxSyncResponses, type MailboxUpdateData, type MailboxUpdateError, type MailboxUpdateErrors, type MailboxUpdateRequest, type MailboxUpdateResponse, type MailboxUpdateResponses, type ManagedAuthConnectLinkCreateData, type ManagedAuthConnectLinkCreateError, type ManagedAuthConnectLinkCreateErrors, type ManagedAuthConnectLinkCreateResponse, type ManagedAuthConnectLinkCreateResponses, type ManagedAuthCredentials, type ManagedAuthCredentialsWritable, type MessageReadOptions, type MultiFactorFillActionInput, type MultiFactorFillActionInputWritable, type MultiFactorFillActionOutput, type MultiFactorFillActionOutputWritable, type NetworkBatchFile, type NetworkLogsResponse, type NodeSelectors, NotteAPIError, type NotteAPIErrorBody, NotteAPIExecutionError, NotteAnything, NotteClient, type NotteClientConfig, NotteError, NotteFunction, NottePersona, type NotteProxy, NotteSecrets, NotteTimeoutError, NotteUsage, NotteVault, type NudgePromptData, type NudgePromptError, type NudgePromptErrors, type NudgePromptRequest, type NudgePromptResponse, type NudgePromptResponse2, type NudgePromptResponses, type Observation, type ObservationWritable, type ObserveRequest, type Options, type PageExecuteData, type PageExecuteError, type PageExecuteErrors, type PageExecuteResponse, type PageExecuteResponses, PageFetchHTTPError, type PageFetchOptions, PageFetchResponse, type PageObserveData, type PageObserveError, type PageObserveErrors, type PageObserveResponse, type PageObserveResponses, type PageScrapeData, type PageScrapeError, type PageScrapeErrors, type PageScrapeResponse, type PageScrapeResponses, type PageScreenshotData, type PageScreenshotError, type PageScreenshotErrors, type PageScreenshotResponses, type PaginatedResponseAgentResponse, type PaginatedResponseAgentResponseWritable, type PaginatedResponseFunctionListItemResponse, type PaginatedResponseFunctionListItemResponseWritable, type PaginatedResponseFunctionRunListItemResponse, type PaginatedResponseFunctionRunListItemResponseWritable, type PaginatedResponsePersonaResponse, type PaginatedResponsePersonaResponseWritable, type PaginatedResponseProfileResponse, type PaginatedResponseProfileResponseWritable, type PaginatedResponseSessionResponse, type PaginatedResponseSessionResponseWritable, type PaginatedResponseUsageLog, type PaginatedResponseUsageLogWritable, type PaginatedResponseVault, type PaginatedResponseVaultWritable, type ParameterInfo, type PerceptionType, type PersonaConstructor, type PersonaCreateData, type PersonaCreateError, type PersonaCreateErrors, type PersonaCreateRequest, type PersonaCreateResponse, type PersonaCreateResponses, type PersonaDeleteData, type PersonaDeleteError, type PersonaDeleteErrors, type PersonaDeleteResponse, type PersonaDeleteResponses, type PersonaEmailsListData, type PersonaEmailsListError, type PersonaEmailsListErrors, type PersonaEmailsListResponse, type PersonaEmailsListResponses, type PersonaGetData, type PersonaGetError, type PersonaGetErrors, type PersonaGetResponse, type PersonaGetResponses, type PersonaListOptions, type PersonaResponse, type PersonaResponseWithInternalEmail, type PersonaSmsListData, type PersonaSmsListError, type PersonaSmsListErrors, type PersonaSmsListResponse, type PersonaSmsListResponses, type PersonaUpdateData, type PersonaUpdateError, type PersonaUpdateErrors, type PersonaUpdateRequest, type PersonaUpdateResponse, type PersonaUpdateResponses, type PressKeyAction, type ProfileCookiesGetData, type ProfileCookiesGetError, type ProfileCookiesGetErrors, type ProfileCookiesGetResponse, type ProfileCookiesGetResponses, type ProfileCookiesImportRequest, type ProfileCookiesImportResponse, type ProfileCookiesSetData, type ProfileCookiesSetError, type ProfileCookiesSetErrors, type ProfileCookiesSetResponse, type ProfileCookiesSetResponses, type ProfileCreateData, type ProfileCreateError, type ProfileCreateErrors, type ProfileCreateRequest, type ProfileCreateResponse, type ProfileCreateResponses, type ProfileDeleteData, type ProfileDeleteError, type ProfileDeleteErrors, type ProfileDeleteResponse, type ProfileDeleteResponse2, type ProfileDeleteResponses, type ProfileDuplicateData, type ProfileDuplicateError, type ProfileDuplicateErrors, type ProfileDuplicateRequest, type ProfileDuplicateResponse, type ProfileDuplicateResponses, type ProfileGetData, type ProfileGetError, type ProfileGetErrors, type ProfileGetResponse, type ProfileGetResponses, type ProfileListData, type ProfileListError, type ProfileListErrors, type ProfileListResponse, type ProfileListResponses, type ProfileResponse, type ProxyGeolocationCountry, RUN_API_KEY_HEADER, type ReadyCheckData, type ReadyCheckResponse, type ReadyCheckResponses, type ReloadAction, RemoteFileStorage, type ReplayMissingResponse, type ReplayOptions, type ReplayResponse, type RetryOptions, type RootModelAny, type RunFunctionRequest, type RuntimePackage, SESSION_START_TRIES, type ScheduleDeleteResponse, type ScheduleResponse, type SchemaGenerationResponse, type ScrapeAction, ScrapeFailedError, type ScrapeFromHtmlData, type ScrapeFromHtmlError, type ScrapeFromHtmlErrors, type ScrapeFromHtmlRequest, type ScrapeFromHtmlResponse, type ScrapeFromHtmlResponses, type ScrapeOptions, type ScrapeRequest, type ScrapeResult, type ScrapeSchemaResponse, type ScrapeWebpageData, type ScrapeWebpageError, type ScrapeWebpageErrors, type ScrapeWebpageResponse, type ScrapeWebpageResponses, type Screenshot, type ScrollDownAction, type ScrollUpAction, type SearchOptions, type SearchRequest, type SearchResponse, type SearchResultItem, type SearchResultsResponse, type SearchSource, type SearchSourcedAnswerResponse, type SearchStructuredResponse, type SearchWebData, type SearchWebError, type SearchWebErrors, type SearchWebResponses, type SecretListOptions, type SecretListResponse, type SecretMetadata, type SecretNamespace, type SecretStoreOptions, type SecretStoreRequest, type SecretValueResponse, type SelectDropdownOptionActionInput, type SelectDropdownOptionActionInputWritable, type SelectDropdownOptionActionOutput, type SelectDropdownOptionActionOutputWritable, type SerializedError, Session, type SessionCloseReason, type SessionCookiesGetData, type SessionCookiesGetError, type SessionCookiesGetErrors, type SessionCookiesGetResponse, type SessionCookiesGetResponses, type SessionCookiesSetData, type SessionCookiesSetError, type SessionCookiesSetErrors, type SessionCookiesSetResponse, type SessionCookiesSetResponses, type SessionDebugInfoData, type SessionDebugInfoError, type SessionDebugInfoErrors, type SessionDebugInfoResponse, type SessionDebugInfoResponses, type SessionDebugResponse, type SessionFile, SessionFiles, type SessionFilesPage, type SessionListOptions, type SessionNetworkLogsData, type SessionNetworkLogsError, type SessionNetworkLogsErrors, type SessionNetworkLogsResponse, type SessionNetworkLogsResponses, type SessionOffsetData, type SessionOffsetError, type SessionOffsetErrors, type SessionOffsetResponse, type SessionOffsetResponse2, type SessionOffsetResponses, type SessionOptions, type SessionProfile, type SessionReplayData, type SessionReplayError, type SessionReplayErrors, type SessionReplayResponse, type SessionReplayResponses, type SessionResponse, type SessionResponseWritable, type SessionScrapeOptions, type SessionScriptOptions, type SessionStartData, type SessionStartError, type SessionStartErrors, type SessionStartResponse, type SessionStartResponses, type SessionStatusData, type SessionStatusError, type SessionStatusErrors, type SessionStatusResponse, type SessionStatusResponses, type SessionStopData, type SessionStopError, type SessionStopErrors, type SessionStopResponse, type SessionStopResponses, type SmsReadAction, type SmsResponse, type SnapshotMetadata, type SpaceCategory, type StoreSecretData, type StoreSecretError, type StoreSecretErrors, type StoreSecretResponse, type StoreSecretResponses, type StructuredData, type StructuredDataBaseModel, type SubscriptionType, type SwitchTabAction, TIMEOUT_HEADER, type TabSessionDebugResponse, type TabsData, type TailnetProxy, type UpdateFunctionRunResponse, type UpdateFunctionRunResponseWritable, type UploadFileActionInput, type UploadFileActionOutput, type UploadSessionFileData, type UploadSessionFileError, type UploadSessionFileErrors, type UploadSessionFileResponse, type UploadSessionFileResponses, type UploadableFile, type UsageLog, type UsageLogEndpoint, type UsageLogsOptions, type UsageOptions, type UsageResponse, type ValidationError, type Vault, type VaultConstructor, type VaultConstructorCreate, type VaultConstructorWithId, type VaultCreateData, type VaultCreateError, type VaultCreateErrors, type VaultCreateRequest, type VaultCreateResponse, type VaultCreateResponses, type VaultCredentialsAddData, type VaultCredentialsAddError, type VaultCredentialsAddErrors, type VaultCredentialsAddResponse, type VaultCredentialsAddResponses, type VaultCredentialsDeleteData, type VaultCredentialsDeleteError, type VaultCredentialsDeleteErrors, type VaultCredentialsDeleteResponse, type VaultCredentialsDeleteResponses, type VaultCredentialsGetData, type VaultCredentialsGetError, type VaultCredentialsGetErrors, type VaultCredentialsGetResponse, type VaultCredentialsGetResponses, type VaultCredentialsListData, type VaultCredentialsListError, type VaultCredentialsListErrors, type VaultCredentialsListResponse, type VaultCredentialsListResponses, type VaultCreditCardDeleteData, type VaultCreditCardDeleteError, type VaultCreditCardDeleteErrors, type VaultCreditCardDeleteResponse, type VaultCreditCardDeleteResponses, type VaultCreditCardGetData, type VaultCreditCardGetError, type VaultCreditCardGetErrors, type VaultCreditCardGetResponse, type VaultCreditCardGetResponses, type VaultCreditCardSetData, type VaultCreditCardSetError, type VaultCreditCardSetErrors, type VaultCreditCardSetResponse, type VaultCreditCardSetResponses, type VaultDeleteData, type VaultDeleteError, type VaultDeleteErrors, type VaultDeleteResponse, type VaultDeleteResponses, type VaultListOptions, type VaultUpdateData, type VaultUpdateError, type VaultUpdateErrors, type VaultUpdateRequest, type VaultUpdateResponse, type VaultUpdateResponses, type ViewportData, type WaitAction, type WebSocketUrls, type ZodLikeSchema, actions, agentStart, agentStatus, agentStop, anythingStart, buildFetchScript, checkForLatestVersion, client, connectLinkContext, connectLinkMailboxConnect, connectLinkMailboxSync, connectLinkMailboxes, connectLinkStatus, connectLinkSubmit, createClient, createOrAppendCookiesToFile, NotteClient as default, deleteSecret, deleteSessionFile, downloadSessionFile, functionCreate, functionDelete, functionDownloadUrl, functionFork, functionMetadataUpdate, functionRollback, functionRunGetMetadata, functionRunStart, functionRunStop, functionRunUpdateMetadata, functionRuntimeHealth, functionScheduleDelete, functionScheduleSet, functionUpdate, getRootDomain, getScript, getSecret, getSessionScript, getUsage, getUsageLogs, healthCheck, improvePrompt, installServerOwnedDialogPolicy, isCaptchaSolveAction, isValidMfaSecret, listAgents, listFunctionRunsByFunctionId, listFunctions, listPersonas, listSecrets, listSessionFiles, listSessions, listVaults, mailboxConnectToken, mailboxDelete, mailboxGet, mailboxList, mailboxSync, mailboxUpdate, managedAuthConnectLinkCreate, nudgePrompt, observeServerOwnedDialog, pageExecute, pageObserve, pageScrape, pageScreenshot, parseAgentStatusMessage, personaCreate, personaDelete, personaEmailsList, personaGet, personaSmsList, personaUpdate, prepareAgentRequest, processScrapeResponse, profileCookiesGet, profileCookiesSet, profileCreate, profileDelete, profileDuplicate, profileGet, profileList, readCookiesFile, readyCheck, responseFromEvaluated, retry, sanitizeFilename, scrapeFromHtml, scrapeWebpage, searchWeb, sessionCookiesGet, sessionCookiesSet, sessionDebugInfo, sessionNetworkLogs, sessionOffset, sessionReplay, sessionStart, sessionStatus, sessionStop, startVersionCheck, storeSecret, uploadSessionFile, validateCredentials, validateMfaSecret, validateUrl, vaultCreate, vaultCredentialsAdd, vaultCredentialsDelete, vaultCredentialsGet, vaultCredentialsList, vaultCreditCardDelete, vaultCreditCardGet, vaultCreditCardSet, vaultDelete, vaultUpdate };
13789
+ export { ActionExecutionError, type ActionInput, type ActionOfType, type ActionParameter, type ActionSpace, type ActionSpaceWritable, type ActionType, type AddCredentialsRequest, type AddCredentialsResponse, type AddCreditCardRequest, type AddCreditCardResponse, Agent, type AgentConstructor, type AgentFunctionCodeResponse, type AgentListOptions, type AgentResponse, type AgentRunRequest, type AgentStartData, type AgentStartError, type AgentStartErrors, type AgentStartResponse, type AgentStartResponses, type AgentStatus, type AgentStatusData, type AgentStatusError, type AgentStatusErrors, type AgentStatusResponse, type AgentStatusResponse2, type AgentStatusResponses, type AgentStopData, type AgentStopError, type AgentStopErrors, type AgentStopResponse, type AgentStopResponses, type AgentUpdateHandler, type AnythingStartData, type AnythingStartError, type AnythingStartErrors, type AnythingStartOptions, type AnythingStartRequest, type AnythingStartResponse, type AnythingStartResponses, type ApiAgentStartRequest, type ApiExecutionResponse, type ApiExecutionResponseWritable, type ApiSessionStartRequest, type AuthSessionResponse, type AuthWaitOptions, AuthenticationError, type BaseModel, type BaseModelWritable, type BodyFunctionCreateFunctionsPost, type BodyFunctionUpdateFunctionsFunctionIdPost, type BodySessionCookiesSetSessionsSessionIdCookiesPost, type BodyUploadSessionFileSessionsSessionIdFilesPost, type BoundingBox, CAPTCHA_SOLVE_TIMEOUT_MS, CLUSTER_OVERLOAD_RETRY_DELAY_MS, CREDENTIAL_FIELDS, type CaptchaExecutionResponse, type CaptchaSolveAction, type CaptchaStatus, type CheckActionInput, type CheckActionOutput, type ClickActionInput, type ClickActionOutput, type ClientOptions, type CloseTabAction, type CompletionAction, type ConnectLinkContext, type ConnectLinkContextData, type ConnectLinkContextError, type ConnectLinkContextErrors, type ConnectLinkContextResponse, type ConnectLinkContextResponses, type ConnectLinkCreateRequest, type ConnectLinkCreateResponse, type ConnectLinkMailbox, type ConnectLinkMailboxConnectData, type ConnectLinkMailboxConnectError, type ConnectLinkMailboxConnectErrors, type ConnectLinkMailboxConnectRequest, type ConnectLinkMailboxConnectResponse, type ConnectLinkMailboxConnectResponse2, type ConnectLinkMailboxConnectResponses, type ConnectLinkMailboxSyncData, type ConnectLinkMailboxSyncError, type ConnectLinkMailboxSyncErrors, type ConnectLinkMailboxSyncRequest, type ConnectLinkMailboxSyncResponse, type ConnectLinkMailboxSyncResponses, type ConnectLinkMailboxesData, type ConnectLinkMailboxesError, type ConnectLinkMailboxesErrors, type ConnectLinkMailboxesResponse, type ConnectLinkMailboxesResponses, type ConnectLinkStatusData, type ConnectLinkStatusError, type ConnectLinkStatusErrors, type ConnectLinkStatusResponse, type ConnectLinkStatusResponse2, type ConnectLinkStatusResponses, type ConnectLinkSubmitData, type ConnectLinkSubmitError, type ConnectLinkSubmitErrors, type ConnectLinkSubmitRequest, type ConnectLinkSubmitRequestWritable, type ConnectLinkSubmitResponse, type ConnectLinkSubmitResponses, type ConnectPaymentWalletData, type ConnectPaymentWalletError, type ConnectPaymentWalletErrors, type ConnectPaymentWalletResponse, type ConnectPaymentWalletResponses, type Cookie, type CreatePaymentData, type CreatePaymentError, type CreatePaymentErrors, type CreatePaymentResponse, type CreatePaymentResponses, type Credential, type CredentialField, type CredentialsDictInput, type CredentialsDictOutput, type CreditCardDictInput, type CreditCardDictOutput, DEFAULT_NOTTE_API_URL, DEFAULT_REQUEST_TIMEOUT_MS, type DataSpace, type DeleteCredentialsResponse, type DeleteCreditCardResponse, type DeleteFunctionResponse, type DeletePersonaResponse, type DeleteSecretData, type DeleteSecretError, type DeleteSecretErrors, type DeleteSecretResponse, type DeleteSecretResponses, type DeleteSessionFileData, type DeleteSessionFileError, type DeleteSessionFileErrors, type DeleteSessionFileResponse, type DeleteSessionFileResponses, type DeleteVaultResponse, type DisconnectPaymentWalletData, type DisconnectPaymentWalletError, type DisconnectPaymentWalletErrors, type DisconnectPaymentWalletResponse, type DisconnectPaymentWalletResponses, type DownloadFileActionInput, type DownloadFileActionOutput, type DownloadSessionFileData, type DownloadSessionFileError, type DownloadSessionFileErrors, type DownloadSessionFileResponses, type EmailReadAction, type EmailResponse, type EmailVerificationReadAction, Encryption, type EvaluateJsAction, EvaluateJsNoDataError, type ExecuteAction, type ExecuteOptions, type ExecutionResponse, type ExternalProxy, FUNCTION_RUN_ENDPOINTS, FUNCTION_RUN_TIMEOUT_MS, FailedToRunCloudFunctionError, type FallbackFillActionInput, type FallbackFillActionInputWritable, type FallbackFillActionOutput, type FallbackFillActionOutputWritable, type FetchData, FetchResponseDecodeError, type FileDownloadOptions, FileExistsError, type FileListOptions, FileNotFoundError, type FileSource, type FillActionInput, type FillActionInputWritable, type FillActionOutput, type FillActionOutputWritable, type FormFillAction, type FormFillActionWritable, type FrameData, type FunctionConstructor, type FunctionConstructorCreate, type FunctionConstructorWithId, type FunctionCreateData, type FunctionCreateError, type FunctionCreateErrors, type FunctionCreateResponse, type FunctionCreateResponses, type FunctionDeleteData, type FunctionDeleteError, type FunctionDeleteErrors, type FunctionDeleteResponse, type FunctionDeleteResponses, type FunctionDownloadOptions, type FunctionDownloadUrlData, type FunctionDownloadUrlError, type FunctionDownloadUrlErrors, type FunctionDownloadUrlResponse, type FunctionDownloadUrlResponses, type FunctionForkData, type FunctionForkError, type FunctionForkErrors, type FunctionForkResponse, type FunctionForkResponses, type FunctionGetOptions, type FunctionListItemResponse, type FunctionListItemResponseWritable, type FunctionListOptions, type FunctionMetadataUpdateData, type FunctionMetadataUpdateError, type FunctionMetadataUpdateErrors, type FunctionMetadataUpdateOptions, type FunctionMetadataUpdateRequest, type FunctionMetadataUpdateResponse, type FunctionMetadataUpdateResponses, type FunctionResponse, type FunctionResponseWritable, type FunctionRollbackData, type FunctionRollbackError, type FunctionRollbackErrors, type FunctionRollbackOptions, type FunctionRollbackRequest, type FunctionRollbackResponse, type FunctionRollbackResponses, type FunctionRunCreateOptions, type FunctionRunCreateResult, type FunctionRunGetMetadataData, type FunctionRunGetMetadataError, type FunctionRunGetMetadataErrors, type FunctionRunGetMetadataResponse, type FunctionRunGetMetadataResponses, type FunctionRunListItemResponse, type FunctionRunListItemResponseWritable, type FunctionRunListOptions, type FunctionRunOptions, type FunctionRunResponse, type FunctionRunResult, type FunctionRunStartData, type FunctionRunStartError, type FunctionRunStartErrors, type FunctionRunStartResponses, type FunctionRunStartResult, type FunctionRunStatus, type FunctionRunStopData, type FunctionRunStopError, type FunctionRunStopErrors, type FunctionRunStopResponse, type FunctionRunStopResponses, type FunctionRunUpdateMetadataData, type FunctionRunUpdateMetadataError, type FunctionRunUpdateMetadataErrors, type FunctionRunUpdateMetadataResponse, type FunctionRunUpdateMetadataResponses, type FunctionRunUpdateRequest, type FunctionRuntime, type FunctionRuntimeHealthData, type FunctionRuntimeHealthError, type FunctionRuntimeHealthErrors, type FunctionRuntimeHealthResponse, type FunctionRuntimeHealthResponse2, type FunctionRuntimeHealthResponses, type FunctionScheduleCreateRequest, type FunctionScheduleDeleteData, type FunctionScheduleDeleteError, type FunctionScheduleDeleteErrors, type FunctionScheduleDeleteResponse, type FunctionScheduleDeleteResponses, type FunctionScheduleOptions, type FunctionScheduleSetData, type FunctionScheduleSetError, type FunctionScheduleSetErrors, type FunctionScheduleSetResponse, type FunctionScheduleSetResponses, type FunctionSource, type FunctionUpdateData, type FunctionUpdateError, type FunctionUpdateErrors, type FunctionUpdateOptions, type FunctionUpdateResponse, type FunctionUpdateResponses, type FunctionUrlOptions, type FunctionWithLinkResponse, type FunctionWithLinkResponseWritable, type GetCookiesResponse, type GetCredentialsResponse, type GetCreditCardResponse, type GetFunctionRunResponse, type GetFunctionRunResponseWritable, type GetPaymentData, type GetPaymentError, type GetPaymentErrors, type GetPaymentResponse, type GetPaymentResponses, type GetScriptData, type GetScriptError, type GetScriptErrors, type GetScriptResponse, type GetScriptResponses, type GetSecretData, type GetSecretError, type GetSecretErrors, type GetSecretResponse, type GetSecretResponses, type GetSessionScriptData, type GetSessionScriptError, type GetSessionScriptErrors, type GetSessionScriptResponse, type GetSessionScriptResponses, type GetUsageData, type GetUsageError, type GetUsageErrors, type GetUsageLogsData, type GetUsageLogsError, type GetUsageLogsErrors, type GetUsageLogsResponse, type GetUsageLogsResponses, type GetUsageResponse, type GetUsageResponses, type GlobalScrapeOptions, type GlobalScrapeRequest, type GoBackAction, type GoForwardAction, type GotoAction, type GotoNewTabAction, type HealthCheckData, type HealthCheckResponse, type HealthCheckResponses, type HealthResponse, type HelpAction, type HttpValidationError, type ImageCategory, type ImageData, type ImprovePromptData, type ImprovePromptError, type ImprovePromptErrors, type ImprovePromptRequest, type ImprovePromptResponse, type ImprovePromptResponse2, type ImprovePromptResponses, InvalidRequestError, type LegacyAgentStatusResponse, type ListAgentsData, type ListAgentsError, type ListAgentsErrors, type ListAgentsResponse, type ListAgentsResponses, type ListCredentialsResponse, type ListFunctionRunsByFunctionIdData, type ListFunctionRunsByFunctionIdError, type ListFunctionRunsByFunctionIdErrors, type ListFunctionRunsByFunctionIdResponse, type ListFunctionRunsByFunctionIdResponses, type ListFunctionsData, type ListFunctionsError, type ListFunctionsErrors, type ListFunctionsResponse, type ListFunctionsResponses, type ListPersonasData, type ListPersonasError, type ListPersonasErrors, type ListPersonasResponse, type ListPersonasResponses, type ListSecretsData, type ListSecretsError, type ListSecretsErrors, type ListSecretsResponse, type ListSecretsResponses, type ListSessionFilesData, type ListSessionFilesError, type ListSessionFilesErrors, type ListSessionFilesResponse, type ListSessionFilesResponses, type ListSessionsData, type ListSessionsError, type ListSessionsErrors, type ListSessionsResponse, type ListSessionsResponses, type ListVaultsData, type ListVaultsError, type ListVaultsErrors, type ListVaultsResponse, type ListVaultsResponses, type LlmModel, type MailboxConnectRequest, type MailboxConnectResponse, type MailboxConnectTokenData, type MailboxConnectTokenError, type MailboxConnectTokenErrors, type MailboxConnectTokenResponse, type MailboxConnectTokenResponses, type MailboxConnection, type MailboxDeleteData, type MailboxDeleteError, type MailboxDeleteErrors, type MailboxDeleteResponse, type MailboxDeleteResponses, type MailboxGetData, type MailboxGetError, type MailboxGetErrors, type MailboxGetResponse, type MailboxGetResponses, type MailboxListData, type MailboxListError, type MailboxListErrors, type MailboxListResponse, type MailboxListResponse2, type MailboxListResponses, type MailboxSyncData, type MailboxSyncError, type MailboxSyncErrors, type MailboxSyncRequest, type MailboxSyncResponse, type MailboxSyncResponses, type MailboxUpdateData, type MailboxUpdateError, type MailboxUpdateErrors, type MailboxUpdateRequest, type MailboxUpdateResponse, type MailboxUpdateResponses, type ManagedAuthConnectLinkCreateData, type ManagedAuthConnectLinkCreateError, type ManagedAuthConnectLinkCreateErrors, type ManagedAuthConnectLinkCreateResponse, type ManagedAuthConnectLinkCreateResponses, type ManagedAuthCredentials, type ManagedAuthCredentialsWritable, ManagedAuthError, type ManagedAuthOperation, type ManagedAuthReadiness, type ManagedAuthRunOptions, type ManagedAuthRunResponse, type MessageReadOptions, type MultiFactorFillActionInput, type MultiFactorFillActionInputWritable, type MultiFactorFillActionOutput, type MultiFactorFillActionOutputWritable, type NetworkBatchFile, type NetworkLogsResponse, type NodeSelectors, NotteAPIError, type NotteAPIErrorBody, NotteAPIExecutionError, NotteAnything, NotteClient, type NotteClientConfig, NotteError, NotteFunction, NotteManagedAuth, NottePersona, type NotteProxy, NotteSecrets, NotteTimeoutError, NotteUsage, NotteVault, type NudgePromptData, type NudgePromptError, type NudgePromptErrors, type NudgePromptRequest, type NudgePromptResponse, type NudgePromptResponse2, type NudgePromptResponses, type Observation, type ObservationWritable, type ObserveRequest, type Options, type PageExecuteData, type PageExecuteError, type PageExecuteErrors, type PageExecuteResponse, type PageExecuteResponses, PageFetchHTTPError, type PageFetchOptions, PageFetchResponse, type PageObserveData, type PageObserveError, type PageObserveErrors, type PageObserveResponse, type PageObserveResponses, type PageScrapeData, type PageScrapeError, type PageScrapeErrors, type PageScrapeResponse, type PageScrapeResponses, type PageScreenshotData, type PageScreenshotError, type PageScreenshotErrors, type PageScreenshotResponses, type PaginatedResponseAgentResponse, type PaginatedResponseAgentResponseWritable, type PaginatedResponseFunctionListItemResponse, type PaginatedResponseFunctionListItemResponseWritable, type PaginatedResponseFunctionRunListItemResponse, type PaginatedResponseFunctionRunListItemResponseWritable, type PaginatedResponsePersonaResponse, type PaginatedResponsePersonaResponseWritable, type PaginatedResponseProfileResponse, type PaginatedResponseProfileResponseWritable, type PaginatedResponseSessionResponse, type PaginatedResponseSessionResponseWritable, type PaginatedResponseUsageLog, type PaginatedResponseUsageLogWritable, type PaginatedResponseVault, type PaginatedResponseVaultWritable, type ParameterInfo, type PaymentConnectRequest, type PaymentConnectionResponse, type PaymentDisconnectError, type PaymentDisconnectResponse, type PaymentNextAction, type PaymentRequest, type PaymentResponse, type PerceptionType, type PersonaConstructor, type PersonaCreateData, type PersonaCreateError, type PersonaCreateErrors, type PersonaCreateRequest, type PersonaCreateResponse, type PersonaCreateResponses, type PersonaDeleteData, type PersonaDeleteError, type PersonaDeleteErrors, type PersonaDeleteResponse, type PersonaDeleteResponses, type PersonaEmailsListData, type PersonaEmailsListError, type PersonaEmailsListErrors, type PersonaEmailsListResponse, type PersonaEmailsListResponses, type PersonaGetData, type PersonaGetError, type PersonaGetErrors, type PersonaGetResponse, type PersonaGetResponses, type PersonaListOptions, type PersonaResponse, type PersonaResponseWithInternalEmail, type PersonaSmsListData, type PersonaSmsListError, type PersonaSmsListErrors, type PersonaSmsListResponse, type PersonaSmsListResponses, type PersonaUpdateData, type PersonaUpdateError, type PersonaUpdateErrors, type PersonaUpdateRequest, type PersonaUpdateResponse, type PersonaUpdateResponses, type PressKeyAction, type ProfileCookiesGetData, type ProfileCookiesGetError, type ProfileCookiesGetErrors, type ProfileCookiesGetResponse, type ProfileCookiesGetResponses, type ProfileCookiesImportRequest, type ProfileCookiesImportResponse, type ProfileCookiesSetData, type ProfileCookiesSetError, type ProfileCookiesSetErrors, type ProfileCookiesSetResponse, type ProfileCookiesSetResponses, type ProfileCreateData, type ProfileCreateError, type ProfileCreateErrors, type ProfileCreateRequest, type ProfileCreateResponse, type ProfileCreateResponses, type ProfileDeleteData, type ProfileDeleteError, type ProfileDeleteErrors, type ProfileDeleteResponse, type ProfileDeleteResponse2, type ProfileDeleteResponses, type ProfileDuplicateData, type ProfileDuplicateError, type ProfileDuplicateErrors, type ProfileDuplicateRequest, type ProfileDuplicateResponse, type ProfileDuplicateResponses, type ProfileGetData, type ProfileGetError, type ProfileGetErrors, type ProfileGetResponse, type ProfileGetResponses, type ProfileListData, type ProfileListError, type ProfileListErrors, type ProfileListResponse, type ProfileListResponses, type ProfileResponse, type ProxyGeolocationCountry, RUN_API_KEY_HEADER, type ReadyCheckData, type ReadyCheckResponse, type ReadyCheckResponses, type ReloadAction, RemoteFileStorage, type ReplayMissingResponse, type ReplayOptions, type ReplayResponse, type ResourceRequestOptions, type RetryOptions, type RootModelAny, type RunFunctionRequest, type RuntimePackage, SESSION_START_TRIES, type ScheduleDeleteResponse, type ScheduleResponse, type SchemaGenerationResponse, type ScrapeAction, ScrapeFailedError, type ScrapeFromHtmlData, type ScrapeFromHtmlError, type ScrapeFromHtmlErrors, type ScrapeFromHtmlRequest, type ScrapeFromHtmlResponse, type ScrapeFromHtmlResponses, type ScrapeOptions, type ScrapeRequest, type ScrapeResult, type ScrapeSchemaResponse, type ScrapeWebpageData, type ScrapeWebpageError, type ScrapeWebpageErrors, type ScrapeWebpageResponse, type ScrapeWebpageResponses, type Screenshot, type ScrollDownAction, type ScrollUpAction, type SearchOptions, type SearchRequest, type SearchResponse, type SearchResultItem, type SearchResultsResponse, type SearchSource, type SearchSourcedAnswerResponse, type SearchStructuredResponse, type SearchWebData, type SearchWebError, type SearchWebErrors, type SearchWebResponses, type SecretListOptions, type SecretListResponse, type SecretMetadata, type SecretNamespace, type SecretStoreOptions, type SecretStoreRequest, type SecretValueResponse, type SelectDropdownOptionActionInput, type SelectDropdownOptionActionInputWritable, type SelectDropdownOptionActionOutput, type SelectDropdownOptionActionOutputWritable, type SerializedError, Session, type SessionAuthReadinessData, type SessionAuthReadinessError, type SessionAuthReadinessErrors, type SessionAuthReadinessResponse, type SessionAuthReadinessResponses, type SessionCloseReason, type SessionCookiesGetData, type SessionCookiesGetError, type SessionCookiesGetErrors, type SessionCookiesGetResponse, type SessionCookiesGetResponses, type SessionCookiesSetData, type SessionCookiesSetError, type SessionCookiesSetErrors, type SessionCookiesSetResponse, type SessionCookiesSetResponses, type SessionDebugInfoData, type SessionDebugInfoError, type SessionDebugInfoErrors, type SessionDebugInfoResponse, type SessionDebugInfoResponses, type SessionDebugResponse, type SessionFile, SessionFiles, type SessionFilesPage, type SessionListOptions, type SessionNetworkLogsData, type SessionNetworkLogsError, type SessionNetworkLogsErrors, type SessionNetworkLogsResponse, type SessionNetworkLogsResponses, type SessionOffsetData, type SessionOffsetError, type SessionOffsetErrors, type SessionOffsetResponse, type SessionOffsetResponse2, type SessionOffsetResponses, type SessionOptions, type SessionProfile, type SessionProfilePreviewData, type SessionProfilePreviewError, type SessionProfilePreviewErrors, type SessionProfilePreviewResponse, type SessionProfilePreviewResponse2, type SessionProfilePreviewResponses, type SessionReplayData, type SessionReplayError, type SessionReplayErrors, type SessionReplayResponse, type SessionReplayResponses, type AuthSessionResponse as SessionResponse, type SessionResponseWritable, type SessionScrapeOptions, type SessionScriptOptions, type SessionStartData, type SessionStartError, type SessionStartErrors, type SessionStartOptions, type SessionStartResponse, type SessionStartResponses, type SessionStatusData, type SessionStatusError, type SessionStatusErrors, type SessionStatusResponse, type SessionStatusResponses, type SessionStopData, type SessionStopError, type SessionStopErrors, type SessionStopResponse, type SessionStopResponses, type SmsReadAction, type SmsResponse, type SnapshotMetadata, type SpaceCategory, type StoreSecretData, type StoreSecretError, type StoreSecretErrors, type StoreSecretResponse, type StoreSecretResponses, type StructuredData, type StructuredDataBaseModel, type SubscriptionType, type SwitchTabAction, TIMEOUT_HEADER, type TabSessionDebugResponse, type TabsData, type TailnetProxy, type UpdateFunctionRunResponse, type UpdateFunctionRunResponseWritable, type UploadFileActionInput, type UploadFileActionOutput, type UploadSessionFileData, type UploadSessionFileError, type UploadSessionFileErrors, type UploadSessionFileResponse, type UploadSessionFileResponses, type UploadableFile, type UsageLog, type UsageLogEndpoint, type UsageLogsOptions, type UsageOptions, type UsageResponse, type ValidationError, type Vault, type VaultConstructor, type VaultConstructorCreate, type VaultConstructorWithId, type VaultCreateData, type VaultCreateError, type VaultCreateErrors, type VaultCreateRequest, type VaultCreateResponse, type VaultCreateResponses, type VaultCredentialsAddData, type VaultCredentialsAddError, type VaultCredentialsAddErrors, type VaultCredentialsAddResponse, type VaultCredentialsAddResponses, type VaultCredentialsDeleteData, type VaultCredentialsDeleteError, type VaultCredentialsDeleteErrors, type VaultCredentialsDeleteResponse, type VaultCredentialsDeleteResponses, type VaultCredentialsGetData, type VaultCredentialsGetError, type VaultCredentialsGetErrors, type VaultCredentialsGetResponse, type VaultCredentialsGetResponses, type VaultCredentialsListData, type VaultCredentialsListError, type VaultCredentialsListErrors, type VaultCredentialsListResponse, type VaultCredentialsListResponses, type VaultCreditCardDeleteData, type VaultCreditCardDeleteError, type VaultCreditCardDeleteErrors, type VaultCreditCardDeleteResponse, type VaultCreditCardDeleteResponses, type VaultCreditCardGetData, type VaultCreditCardGetError, type VaultCreditCardGetErrors, type VaultCreditCardGetResponse, type VaultCreditCardGetResponses, type VaultCreditCardSetData, type VaultCreditCardSetError, type VaultCreditCardSetErrors, type VaultCreditCardSetResponse, type VaultCreditCardSetResponses, type VaultDeleteData, type VaultDeleteError, type VaultDeleteErrors, type VaultDeleteResponse, type VaultDeleteResponses, type VaultListOptions, type VaultUpdateData, type VaultUpdateError, type VaultUpdateErrors, type VaultUpdateRequest, type VaultUpdateResponse, type VaultUpdateResponses, type ViewportData, type WaitAction, type WebSocketUrls, type ZodLikeSchema, actions, agentStart, agentStatus, agentStop, anythingStart, buildFetchScript, checkForLatestVersion, client, connectLinkContext, connectLinkMailboxConnect, connectLinkMailboxSync, connectLinkMailboxes, connectLinkStatus, connectLinkSubmit, connectPaymentWallet, createClient, createOrAppendCookiesToFile, createPayment, NotteClient as default, deleteSecret, deleteSessionFile, disconnectPaymentWallet, downloadSessionFile, functionCreate, functionDelete, functionDownloadUrl, functionFork, functionMetadataUpdate, functionRollback, functionRunGetMetadata, functionRunStart, functionRunStop, functionRunUpdateMetadata, functionRuntimeHealth, functionScheduleDelete, functionScheduleSet, functionUpdate, getPayment, getRootDomain, getScript, getSecret, getSessionScript, getUsage, getUsageLogs, healthCheck, improvePrompt, installServerOwnedDialogPolicy, isCaptchaSolveAction, isValidMfaSecret, listAgents, listFunctionRunsByFunctionId, listFunctions, listPersonas, listSecrets, listSessionFiles, listSessions, listVaults, mailboxConnectToken, mailboxDelete, mailboxGet, mailboxList, mailboxSync, mailboxUpdate, managedAuthConnectLinkCreate, nudgePrompt, observeServerOwnedDialog, pageExecute, pageObserve, pageScrape, pageScreenshot, parseAgentStatusMessage, personaCreate, personaDelete, personaEmailsList, personaGet, personaSmsList, personaUpdate, prepareAgentRequest, processScrapeResponse, profileCookiesGet, profileCookiesSet, profileCreate, profileDelete, profileDuplicate, profileGet, profileList, readCookiesFile, readyCheck, responseFromEvaluated, retry, sanitizeFilename, scrapeFromHtml, scrapeWebpage, searchWeb, sessionAuthReadiness, sessionCookiesGet, sessionCookiesSet, sessionDebugInfo, sessionNetworkLogs, sessionOffset, sessionProfilePreview, sessionReplay, sessionStart, sessionStatus, sessionStop, startVersionCheck, storeSecret, uploadSessionFile, validateCredentials, validateMfaSecret, validateUrl, vaultCreate, vaultCredentialsAdd, vaultCredentialsDelete, vaultCredentialsGet, vaultCredentialsList, vaultCreditCardDelete, vaultCreditCardGet, vaultCreditCardSet, vaultDelete, vaultUpdate };