notte-sdk 1.9.5 → 1.9.6

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
@@ -391,11 +391,11 @@ type ActionSpace = {
391
391
  /**
392
392
  * Actions
393
393
  */
394
- readonly actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction | ScrollDownAction | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction | ClickActionOutput | FillActionOutput | MultiFactorFillActionOutput | FallbackFillActionOutput | CheckActionOutput | SelectDropdownOptionActionOutput | UploadFileActionOutput | DownloadFileActionOutput>;
394
+ readonly actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction$1 | ScrollDownAction$1 | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction | ClickActionOutput | FillActionOutput | MultiFactorFillActionOutput | FallbackFillActionOutput | CheckActionOutput | SelectDropdownOptionActionOutput | UploadFileActionOutput | DownloadFileActionOutput>;
395
395
  /**
396
396
  * Browser Actions
397
397
  */
398
- readonly browser_actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction | ScrollDownAction | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction>;
398
+ readonly browser_actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction$1 | ScrollDownAction$1 | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction>;
399
399
  /**
400
400
  * Markdown
401
401
  */
@@ -697,9 +697,9 @@ type ApiExecutionResponse = {
697
697
  type: 'press_key';
698
698
  } & PressKeyAction) | ({
699
699
  type: 'scroll_up';
700
- } & ScrollUpAction) | ({
700
+ } & ScrollUpAction$1) | ({
701
701
  type: 'scroll_down';
702
- } & ScrollDownAction) | ({
702
+ } & ScrollDownAction$1) | ({
703
703
  type: 'captcha_solve';
704
704
  } & CaptchaSolveAction) | ({
705
705
  type: 'help';
@@ -4647,9 +4647,9 @@ type RunFunctionRequest = {
4647
4647
  /**
4648
4648
  * Variables
4649
4649
  *
4650
- * The variables to run the workflow with
4650
+ * The variables to run the function with
4651
4651
  */
4652
- variables: {
4652
+ variables?: {
4653
4653
  [key: string]: unknown;
4654
4654
  };
4655
4655
  /**
@@ -4664,6 +4664,10 @@ type RunFunctionRequest = {
4664
4664
  * Whether to stream logs, or only return final response
4665
4665
  */
4666
4666
  stream?: boolean;
4667
+ /**
4668
+ * Callback Url
4669
+ */
4670
+ callback_url?: string | null;
4667
4671
  };
4668
4672
  /**
4669
4673
  * RunPayloadReference
@@ -5046,7 +5050,7 @@ type Screenshot = {
5046
5050
  /**
5047
5051
  * ScrollDownAction
5048
5052
  */
5049
- type ScrollDownAction = {
5053
+ type ScrollDownAction$1 = {
5050
5054
  /**
5051
5055
  * Type
5052
5056
  */
@@ -5063,11 +5067,17 @@ type ScrollDownAction = {
5063
5067
  * Amount
5064
5068
  */
5065
5069
  amount?: number | null;
5070
+ /**
5071
+ * Selector
5072
+ *
5073
+ * Optional selector for the scroll container, including iframe paths.
5074
+ */
5075
+ selector?: string | null;
5066
5076
  };
5067
5077
  /**
5068
5078
  * ScrollUpAction
5069
5079
  */
5070
- type ScrollUpAction = {
5080
+ type ScrollUpAction$1 = {
5071
5081
  /**
5072
5082
  * Type
5073
5083
  */
@@ -5084,6 +5094,12 @@ type ScrollUpAction = {
5084
5094
  * Amount
5085
5095
  */
5086
5096
  amount?: number | null;
5097
+ /**
5098
+ * Selector
5099
+ *
5100
+ * Optional selector for the scroll container, including iframe paths.
5101
+ */
5102
+ selector?: string | null;
5087
5103
  };
5088
5104
  /**
5089
5105
  * SearchRequest
@@ -5710,6 +5726,10 @@ type TailnetProxy = {
5710
5726
  * Oauth Client Secret
5711
5727
  */
5712
5728
  oauth_client_secret?: string | null;
5729
+ /**
5730
+ * Exit Node
5731
+ */
5732
+ exit_node?: string | null;
5713
5733
  };
5714
5734
  /**
5715
5735
  * UpdateFunctionRunResponse
@@ -6114,9 +6134,9 @@ type ApiExecutionResponseWritable = {
6114
6134
  type: 'press_key';
6115
6135
  } & PressKeyAction) | ({
6116
6136
  type: 'scroll_up';
6117
- } & ScrollUpAction) | ({
6137
+ } & ScrollUpAction$1) | ({
6118
6138
  type: 'scroll_down';
6119
- } & ScrollDownAction) | ({
6139
+ } & ScrollDownAction$1) | ({
6120
6140
  type: 'captcha_solve';
6121
6141
  } & CaptchaSolveAction) | ({
6122
6142
  type: 'help';
@@ -7855,12 +7875,7 @@ type SessionDebugInfoData = {
7855
7875
  */
7856
7876
  session_id: string;
7857
7877
  };
7858
- query?: {
7859
- /**
7860
- * Update Metadata
7861
- */
7862
- update_metadata?: boolean;
7863
- };
7878
+ query?: never;
7864
7879
  url: '/sessions/{session_id}/debug';
7865
7880
  };
7866
7881
  type SessionDebugInfoErrors = {
@@ -8022,9 +8037,9 @@ type PageExecuteData = {
8022
8037
  type: 'press_key';
8023
8038
  } & PressKeyAction) | ({
8024
8039
  type: 'scroll_up';
8025
- } & ScrollUpAction) | ({
8040
+ } & ScrollUpAction$1) | ({
8026
8041
  type: 'scroll_down';
8027
- } & ScrollDownAction) | ({
8042
+ } & ScrollDownAction$1) | ({
8028
8043
  type: 'captcha_solve';
8029
8044
  } & CaptchaSolveAction) | ({
8030
8045
  type: 'help';
@@ -8090,10 +8105,6 @@ type PageExecuteData = {
8090
8105
  * Target Generation
8091
8106
  */
8092
8107
  target_generation?: number | null;
8093
- /**
8094
- * Update Metadata
8095
- */
8096
- update_metadata?: boolean;
8097
8108
  };
8098
8109
  url: '/sessions/{session_id}/page/execute';
8099
8110
  };
@@ -12128,8 +12139,24 @@ interface ResourceRequestOptions {
12128
12139
  signal?: AbortSignal;
12129
12140
  }
12130
12141
 
12142
+ /** Scroll down on the page or in a selected container. */
12143
+ type ScrollDownAction = ScrollDownAction$1 & {
12144
+ /** Optional selector for the scroll container, including iframe paths. */
12145
+ selector?: string | null;
12146
+ };
12147
+ /** Scroll up on the page or in a selected container. */
12148
+ type ScrollUpAction = ScrollUpAction$1 & {
12149
+ /** Optional selector for the scroll container, including iframe paths. */
12150
+ selector?: string | null;
12151
+ };
12131
12152
  /** Discriminated union of every action `session.execute()` accepts. */
12132
- type ExecuteAction = PageExecuteData['body'];
12153
+ type ExecuteAction = Exclude<PageExecuteData['body'], {
12154
+ type: 'scroll_up' | 'scroll_down';
12155
+ }> | ({
12156
+ type: 'scroll_up';
12157
+ } & ScrollUpAction) | ({
12158
+ type: 'scroll_down';
12159
+ } & ScrollDownAction);
12133
12160
  /** The `type` discriminator of an `ExecuteAction`. */
12134
12161
  type ActionType = ExecuteAction['type'];
12135
12162
  /** The union member whose `type` is `T`. */
@@ -12169,10 +12196,16 @@ declare const actions: {
12169
12196
  } & PressKeyAction;
12170
12197
  readonly scrollUp: (input?: ActionInput<"scroll_up"> | undefined) => {
12171
12198
  type: "scroll_up";
12172
- } & ScrollUpAction;
12199
+ } & ScrollUpAction$1 & {
12200
+ /** Optional selector for the scroll container, including iframe paths. */
12201
+ selector?: string | null;
12202
+ };
12173
12203
  readonly scrollDown: (input?: ActionInput<"scroll_down"> | undefined) => {
12174
12204
  type: "scroll_down";
12175
- } & ScrollDownAction;
12205
+ } & ScrollDownAction$1 & {
12206
+ /** Optional selector for the scroll container, including iframe paths. */
12207
+ selector?: string | null;
12208
+ };
12176
12209
  readonly captchaSolve: (input?: ActionInput<"captcha_solve"> | undefined) => {
12177
12210
  type: "captcha_solve";
12178
12211
  } & CaptchaSolveAction;
@@ -13771,10 +13804,10 @@ declare class NotteClient {
13771
13804
  createPayment: (sessionId: CreatePaymentData["path"]["session_id"], body: CreatePaymentData["body"], query: CreatePaymentData["query"], requestOptions: ResourceRequestOptions & {
13772
13805
  headers: Omit<NonNullable<CreatePaymentData["headers"]>, "x-notte-api-key">;
13773
13806
  }) => Promise<PaymentResponse>;
13774
- debugInfo: (sessionId: SessionDebugInfoData["path"]["session_id"], query?: SessionDebugInfoData["query"], requestOptions?: ResourceRequestOptions & {
13807
+ debugInfo: (sessionId: SessionDebugInfoData["path"]["session_id"], requestOptions?: ResourceRequestOptions & {
13775
13808
  headers?: Omit<NonNullable<SessionDebugInfoData["headers"]>, "x-notte-api-key">;
13776
13809
  }) => Promise<SessionDebugResponse>;
13777
- deleteSessionFile: (sessionId: DeleteSessionFileData["path"]["session_id"], fileId: DeleteSessionFileData["path"]["file_id"], requestOptions?: ResourceRequestOptions & {
13810
+ deleteSessionFile: (sessionId: DeleteSessionFileData["path"]["session_id"], fileId: DeleteSessionFileData["path"] /** API key. Defaults to `NOTTE_API_KEY`. Optional only for relative proxy base URLs. */["file_id"], requestOptions?: ResourceRequestOptions & {
13778
13811
  headers?: Omit<NonNullable<DeleteSessionFileData["headers"]>, "x-notte-api-key">;
13779
13812
  }) => Promise<void>;
13780
13813
  downloadSessionFile: (sessionId: DownloadSessionFileData["path"]["session_id"], fileId: DownloadSessionFileData["path"]["file_id"], requestOptions?: ResourceRequestOptions & {
@@ -13823,19 +13856,7 @@ declare class NotteClient {
13823
13856
  headers?: Omit<NonNullable<SessionStatusData["headers"]>, "x-notte-api-key">;
13824
13857
  }) => Promise<SessionResponse>;
13825
13858
  stop: (sessionId: SessionStopData["path"]["session_id"], query?: SessionStopData["query"], requestOptions?: ResourceRequestOptions & {
13826
- headers
13827
- /**
13828
- * Map the raw value the generated client rejects with into a `NotteError`.
13829
- * HTTP failures become `NotteAPIError` (or `NotteAPIExecutionError` when the
13830
- * API flags them), timeouts become `NotteTimeoutError`, anything else is
13831
- * returned untouched.
13832
- */
13833
- ? /**
13834
- * Map the raw value the generated client rejects with into a `NotteError`.
13835
- * HTTP failures become `NotteAPIError` (or `NotteAPIExecutionError` when the
13836
- * API flags them), timeouts become `NotteTimeoutError`, anything else is
13837
- * returned untouched.
13838
- */: Omit<NonNullable<SessionStopData["headers"]>, "x-notte-api-key">;
13859
+ headers?: Omit<NonNullable<SessionStopData["headers"]>, "x-notte-api-key">;
13839
13860
  }) => Promise<SessionResponse>;
13840
13861
  uploadSessionFile: (sessionId: UploadSessionFileData["path"]["session_id"], body: UploadSessionFileData["body"], requestOptions?: ResourceRequestOptions & {
13841
13862
  headers?: Omit<NonNullable<UploadSessionFileData["headers"]>, "x-notte-api-key">;
package/dist/index.d.ts CHANGED
@@ -391,11 +391,11 @@ type ActionSpace = {
391
391
  /**
392
392
  * Actions
393
393
  */
394
- readonly actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction | ScrollDownAction | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction | ClickActionOutput | FillActionOutput | MultiFactorFillActionOutput | FallbackFillActionOutput | CheckActionOutput | SelectDropdownOptionActionOutput | UploadFileActionOutput | DownloadFileActionOutput>;
394
+ readonly actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction$1 | ScrollDownAction$1 | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction | ClickActionOutput | FillActionOutput | MultiFactorFillActionOutput | FallbackFillActionOutput | CheckActionOutput | SelectDropdownOptionActionOutput | UploadFileActionOutput | DownloadFileActionOutput>;
395
395
  /**
396
396
  * Browser Actions
397
397
  */
398
- readonly browser_actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction | ScrollDownAction | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction>;
398
+ readonly browser_actions: Array<FormFillAction | GotoAction | GotoNewTabAction | CloseTabAction | SwitchTabAction | GoBackAction | GoForwardAction | ReloadAction | WaitAction | PressKeyAction | ScrollUpAction$1 | ScrollDownAction$1 | CaptchaSolveAction | HelpAction | CompletionAction | ScrapeAction | EmailReadAction | EmailVerificationReadAction | SmsReadAction | EvaluateJsAction>;
399
399
  /**
400
400
  * Markdown
401
401
  */
@@ -697,9 +697,9 @@ type ApiExecutionResponse = {
697
697
  type: 'press_key';
698
698
  } & PressKeyAction) | ({
699
699
  type: 'scroll_up';
700
- } & ScrollUpAction) | ({
700
+ } & ScrollUpAction$1) | ({
701
701
  type: 'scroll_down';
702
- } & ScrollDownAction) | ({
702
+ } & ScrollDownAction$1) | ({
703
703
  type: 'captcha_solve';
704
704
  } & CaptchaSolveAction) | ({
705
705
  type: 'help';
@@ -4647,9 +4647,9 @@ type RunFunctionRequest = {
4647
4647
  /**
4648
4648
  * Variables
4649
4649
  *
4650
- * The variables to run the workflow with
4650
+ * The variables to run the function with
4651
4651
  */
4652
- variables: {
4652
+ variables?: {
4653
4653
  [key: string]: unknown;
4654
4654
  };
4655
4655
  /**
@@ -4664,6 +4664,10 @@ type RunFunctionRequest = {
4664
4664
  * Whether to stream logs, or only return final response
4665
4665
  */
4666
4666
  stream?: boolean;
4667
+ /**
4668
+ * Callback Url
4669
+ */
4670
+ callback_url?: string | null;
4667
4671
  };
4668
4672
  /**
4669
4673
  * RunPayloadReference
@@ -5046,7 +5050,7 @@ type Screenshot = {
5046
5050
  /**
5047
5051
  * ScrollDownAction
5048
5052
  */
5049
- type ScrollDownAction = {
5053
+ type ScrollDownAction$1 = {
5050
5054
  /**
5051
5055
  * Type
5052
5056
  */
@@ -5063,11 +5067,17 @@ type ScrollDownAction = {
5063
5067
  * Amount
5064
5068
  */
5065
5069
  amount?: number | null;
5070
+ /**
5071
+ * Selector
5072
+ *
5073
+ * Optional selector for the scroll container, including iframe paths.
5074
+ */
5075
+ selector?: string | null;
5066
5076
  };
5067
5077
  /**
5068
5078
  * ScrollUpAction
5069
5079
  */
5070
- type ScrollUpAction = {
5080
+ type ScrollUpAction$1 = {
5071
5081
  /**
5072
5082
  * Type
5073
5083
  */
@@ -5084,6 +5094,12 @@ type ScrollUpAction = {
5084
5094
  * Amount
5085
5095
  */
5086
5096
  amount?: number | null;
5097
+ /**
5098
+ * Selector
5099
+ *
5100
+ * Optional selector for the scroll container, including iframe paths.
5101
+ */
5102
+ selector?: string | null;
5087
5103
  };
5088
5104
  /**
5089
5105
  * SearchRequest
@@ -5710,6 +5726,10 @@ type TailnetProxy = {
5710
5726
  * Oauth Client Secret
5711
5727
  */
5712
5728
  oauth_client_secret?: string | null;
5729
+ /**
5730
+ * Exit Node
5731
+ */
5732
+ exit_node?: string | null;
5713
5733
  };
5714
5734
  /**
5715
5735
  * UpdateFunctionRunResponse
@@ -6114,9 +6134,9 @@ type ApiExecutionResponseWritable = {
6114
6134
  type: 'press_key';
6115
6135
  } & PressKeyAction) | ({
6116
6136
  type: 'scroll_up';
6117
- } & ScrollUpAction) | ({
6137
+ } & ScrollUpAction$1) | ({
6118
6138
  type: 'scroll_down';
6119
- } & ScrollDownAction) | ({
6139
+ } & ScrollDownAction$1) | ({
6120
6140
  type: 'captcha_solve';
6121
6141
  } & CaptchaSolveAction) | ({
6122
6142
  type: 'help';
@@ -7855,12 +7875,7 @@ type SessionDebugInfoData = {
7855
7875
  */
7856
7876
  session_id: string;
7857
7877
  };
7858
- query?: {
7859
- /**
7860
- * Update Metadata
7861
- */
7862
- update_metadata?: boolean;
7863
- };
7878
+ query?: never;
7864
7879
  url: '/sessions/{session_id}/debug';
7865
7880
  };
7866
7881
  type SessionDebugInfoErrors = {
@@ -8022,9 +8037,9 @@ type PageExecuteData = {
8022
8037
  type: 'press_key';
8023
8038
  } & PressKeyAction) | ({
8024
8039
  type: 'scroll_up';
8025
- } & ScrollUpAction) | ({
8040
+ } & ScrollUpAction$1) | ({
8026
8041
  type: 'scroll_down';
8027
- } & ScrollDownAction) | ({
8042
+ } & ScrollDownAction$1) | ({
8028
8043
  type: 'captcha_solve';
8029
8044
  } & CaptchaSolveAction) | ({
8030
8045
  type: 'help';
@@ -8090,10 +8105,6 @@ type PageExecuteData = {
8090
8105
  * Target Generation
8091
8106
  */
8092
8107
  target_generation?: number | null;
8093
- /**
8094
- * Update Metadata
8095
- */
8096
- update_metadata?: boolean;
8097
8108
  };
8098
8109
  url: '/sessions/{session_id}/page/execute';
8099
8110
  };
@@ -12128,8 +12139,24 @@ interface ResourceRequestOptions {
12128
12139
  signal?: AbortSignal;
12129
12140
  }
12130
12141
 
12142
+ /** Scroll down on the page or in a selected container. */
12143
+ type ScrollDownAction = ScrollDownAction$1 & {
12144
+ /** Optional selector for the scroll container, including iframe paths. */
12145
+ selector?: string | null;
12146
+ };
12147
+ /** Scroll up on the page or in a selected container. */
12148
+ type ScrollUpAction = ScrollUpAction$1 & {
12149
+ /** Optional selector for the scroll container, including iframe paths. */
12150
+ selector?: string | null;
12151
+ };
12131
12152
  /** Discriminated union of every action `session.execute()` accepts. */
12132
- type ExecuteAction = PageExecuteData['body'];
12153
+ type ExecuteAction = Exclude<PageExecuteData['body'], {
12154
+ type: 'scroll_up' | 'scroll_down';
12155
+ }> | ({
12156
+ type: 'scroll_up';
12157
+ } & ScrollUpAction) | ({
12158
+ type: 'scroll_down';
12159
+ } & ScrollDownAction);
12133
12160
  /** The `type` discriminator of an `ExecuteAction`. */
12134
12161
  type ActionType = ExecuteAction['type'];
12135
12162
  /** The union member whose `type` is `T`. */
@@ -12169,10 +12196,16 @@ declare const actions: {
12169
12196
  } & PressKeyAction;
12170
12197
  readonly scrollUp: (input?: ActionInput<"scroll_up"> | undefined) => {
12171
12198
  type: "scroll_up";
12172
- } & ScrollUpAction;
12199
+ } & ScrollUpAction$1 & {
12200
+ /** Optional selector for the scroll container, including iframe paths. */
12201
+ selector?: string | null;
12202
+ };
12173
12203
  readonly scrollDown: (input?: ActionInput<"scroll_down"> | undefined) => {
12174
12204
  type: "scroll_down";
12175
- } & ScrollDownAction;
12205
+ } & ScrollDownAction$1 & {
12206
+ /** Optional selector for the scroll container, including iframe paths. */
12207
+ selector?: string | null;
12208
+ };
12176
12209
  readonly captchaSolve: (input?: ActionInput<"captcha_solve"> | undefined) => {
12177
12210
  type: "captcha_solve";
12178
12211
  } & CaptchaSolveAction;
@@ -13771,10 +13804,10 @@ declare class NotteClient {
13771
13804
  createPayment: (sessionId: CreatePaymentData["path"]["session_id"], body: CreatePaymentData["body"], query: CreatePaymentData["query"], requestOptions: ResourceRequestOptions & {
13772
13805
  headers: Omit<NonNullable<CreatePaymentData["headers"]>, "x-notte-api-key">;
13773
13806
  }) => Promise<PaymentResponse>;
13774
- debugInfo: (sessionId: SessionDebugInfoData["path"]["session_id"], query?: SessionDebugInfoData["query"], requestOptions?: ResourceRequestOptions & {
13807
+ debugInfo: (sessionId: SessionDebugInfoData["path"]["session_id"], requestOptions?: ResourceRequestOptions & {
13775
13808
  headers?: Omit<NonNullable<SessionDebugInfoData["headers"]>, "x-notte-api-key">;
13776
13809
  }) => Promise<SessionDebugResponse>;
13777
- deleteSessionFile: (sessionId: DeleteSessionFileData["path"]["session_id"], fileId: DeleteSessionFileData["path"]["file_id"], requestOptions?: ResourceRequestOptions & {
13810
+ deleteSessionFile: (sessionId: DeleteSessionFileData["path"]["session_id"], fileId: DeleteSessionFileData["path"] /** API key. Defaults to `NOTTE_API_KEY`. Optional only for relative proxy base URLs. */["file_id"], requestOptions?: ResourceRequestOptions & {
13778
13811
  headers?: Omit<NonNullable<DeleteSessionFileData["headers"]>, "x-notte-api-key">;
13779
13812
  }) => Promise<void>;
13780
13813
  downloadSessionFile: (sessionId: DownloadSessionFileData["path"]["session_id"], fileId: DownloadSessionFileData["path"]["file_id"], requestOptions?: ResourceRequestOptions & {
@@ -13823,19 +13856,7 @@ declare class NotteClient {
13823
13856
  headers?: Omit<NonNullable<SessionStatusData["headers"]>, "x-notte-api-key">;
13824
13857
  }) => Promise<SessionResponse>;
13825
13858
  stop: (sessionId: SessionStopData["path"]["session_id"], query?: SessionStopData["query"], requestOptions?: ResourceRequestOptions & {
13826
- headers
13827
- /**
13828
- * Map the raw value the generated client rejects with into a `NotteError`.
13829
- * HTTP failures become `NotteAPIError` (or `NotteAPIExecutionError` when the
13830
- * API flags them), timeouts become `NotteTimeoutError`, anything else is
13831
- * returned untouched.
13832
- */
13833
- ? /**
13834
- * Map the raw value the generated client rejects with into a `NotteError`.
13835
- * HTTP failures become `NotteAPIError` (or `NotteAPIExecutionError` when the
13836
- * API flags them), timeouts become `NotteTimeoutError`, anything else is
13837
- * returned untouched.
13838
- */: Omit<NonNullable<SessionStopData["headers"]>, "x-notte-api-key">;
13859
+ headers?: Omit<NonNullable<SessionStopData["headers"]>, "x-notte-api-key">;
13839
13860
  }) => Promise<SessionResponse>;
13840
13861
  uploadSessionFile: (sessionId: UploadSessionFileData["path"]["session_id"], body: UploadSessionFileData["body"], requestOptions?: ResourceRequestOptions & {
13841
13862
  headers?: Omit<NonNullable<UploadSessionFileData["headers"]>, "x-notte-api-key">;
package/dist/index.js CHANGED
@@ -197,7 +197,7 @@ __export(index_exports, {
197
197
  module.exports = __toCommonJS(index_exports);
198
198
 
199
199
  // src/version.ts
200
- var SDK_VERSION = true ? "1.9.5" : "dev";
200
+ var SDK_VERSION = true ? "1.9.6" : "dev";
201
201
  var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
202
202
 
203
203
  // src/version-check.ts
@@ -2047,8 +2047,8 @@ function createResources(client2, getApiKey) {
2047
2047
  return response.data;
2048
2048
  },
2049
2049
  /** sessionDebugInfo: /sessions/{session_id}/debug. Returns the API response body. */
2050
- debugInfo: async (sessionId, query = void 0, requestOptions = {}) => {
2051
- const response = await sessionDebugInfo({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "session_id": sessionId }, query });
2050
+ debugInfo: async (sessionId, requestOptions = {}) => {
2051
+ const response = await sessionDebugInfo({ client: client2, throwOnError: true, signal: requestOptions.signal, headers: { ...requestOptions.headers }, path: { "session_id": sessionId } });
2052
2052
  return response.data;
2053
2053
  },
2054
2054
  /** deleteSessionFile: /sessions/{session_id}/files/{file_id}. Returns the API response body. */