33from __future__ import annotations
44
55from typing import Dict , Union , Iterable , Optional
6+ from typing_extensions import overload
67
78import httpx
89
@@ -46,6 +47,33 @@ def with_streaming_response(self) -> SettingsResourceWithStreamingResponse:
4647 """
4748 return SettingsResourceWithStreamingResponse (self )
4849
50+ @overload
51+ def update (
52+ self ,
53+ * ,
54+ workspace_prompt : Optional [str ],
55+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
56+ # The extra values given here take precedence over values defined on the client or passed to this method.
57+ extra_headers : Headers | None = None ,
58+ extra_query : Query | None = None ,
59+ extra_body : Body | None = None ,
60+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
61+ ) -> SettingUpdateResponse :
62+ """
63+ Update settings for an organization
64+
65+ Args:
66+ extra_headers: Send extra headers
67+
68+ extra_query: Add additional query parameters to the request
69+
70+ extra_body: Add additional JSON properties to the request
71+
72+ timeout: Override the client-level default timeout for this request, in seconds
73+ """
74+ ...
75+
76+ @overload
4977 def update (
5078 self ,
5179 * ,
@@ -65,7 +93,7 @@ def update(
6593 onedrive_client_id : Optional [str ] | Omit = omit ,
6694 onedrive_client_secret : Optional [str ] | Omit = omit ,
6795 onedrive_custom_key_enabled : Optional [bool ] | Omit = omit ,
68- profile_buckets : Iterable [setting_update_params .ProfileBucket ] | Omit = omit ,
96+ profile_buckets : Iterable [setting_update_params .Variant1ProfileBucket ] | Omit = omit ,
6997 should_llm_filter : Optional [bool ] | Omit = omit ,
7098 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7199 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -88,10 +116,42 @@ def update(
88116
89117 timeout: Override the client-level default timeout for this request, in seconds
90118 """
119+ ...
120+
121+ def update (
122+ self ,
123+ * ,
124+ workspace_prompt : Optional [str ] | Omit = omit ,
125+ chunk_size : Optional [int ] | Omit = omit ,
126+ exclude_items : Union [str , float , bool , Dict [str , object ], Iterable [object ], None ] | Omit = omit ,
127+ filter_prompt : Optional [str ] | Omit = omit ,
128+ github_client_id : Optional [str ] | Omit = omit ,
129+ github_client_secret : Optional [str ] | Omit = omit ,
130+ github_custom_key_enabled : Optional [bool ] | Omit = omit ,
131+ google_drive_client_id : Optional [str ] | Omit = omit ,
132+ google_drive_client_secret : Optional [str ] | Omit = omit ,
133+ google_drive_custom_key_enabled : Optional [bool ] | Omit = omit ,
134+ include_items : Union [str , float , bool , Dict [str , object ], Iterable [object ], None ] | Omit = omit ,
135+ notion_client_id : Optional [str ] | Omit = omit ,
136+ notion_client_secret : Optional [str ] | Omit = omit ,
137+ notion_custom_key_enabled : Optional [bool ] | Omit = omit ,
138+ onedrive_client_id : Optional [str ] | Omit = omit ,
139+ onedrive_client_secret : Optional [str ] | Omit = omit ,
140+ onedrive_custom_key_enabled : Optional [bool ] | Omit = omit ,
141+ profile_buckets : Iterable [setting_update_params .Variant1ProfileBucket ] | Omit = omit ,
142+ should_llm_filter : Optional [bool ] | Omit = omit ,
143+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144+ # The extra values given here take precedence over values defined on the client or passed to this method.
145+ extra_headers : Headers | None = None ,
146+ extra_query : Query | None = None ,
147+ extra_body : Body | None = None ,
148+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
149+ ) -> SettingUpdateResponse :
91150 return self ._patch (
92151 "/v3/settings" ,
93152 body = maybe_transform (
94153 {
154+ "workspace_prompt" : workspace_prompt ,
95155 "chunk_size" : chunk_size ,
96156 "exclude_items" : exclude_items ,
97157 "filter_prompt" : filter_prompt ,
@@ -161,6 +221,33 @@ def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse:
161221 """
162222 return AsyncSettingsResourceWithStreamingResponse (self )
163223
224+ @overload
225+ async def update (
226+ self ,
227+ * ,
228+ workspace_prompt : Optional [str ],
229+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
230+ # The extra values given here take precedence over values defined on the client or passed to this method.
231+ extra_headers : Headers | None = None ,
232+ extra_query : Query | None = None ,
233+ extra_body : Body | None = None ,
234+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
235+ ) -> SettingUpdateResponse :
236+ """
237+ Update settings for an organization
238+
239+ Args:
240+ extra_headers: Send extra headers
241+
242+ extra_query: Add additional query parameters to the request
243+
244+ extra_body: Add additional JSON properties to the request
245+
246+ timeout: Override the client-level default timeout for this request, in seconds
247+ """
248+ ...
249+
250+ @overload
164251 async def update (
165252 self ,
166253 * ,
@@ -180,7 +267,7 @@ async def update(
180267 onedrive_client_id : Optional [str ] | Omit = omit ,
181268 onedrive_client_secret : Optional [str ] | Omit = omit ,
182269 onedrive_custom_key_enabled : Optional [bool ] | Omit = omit ,
183- profile_buckets : Iterable [setting_update_params .ProfileBucket ] | Omit = omit ,
270+ profile_buckets : Iterable [setting_update_params .Variant1ProfileBucket ] | Omit = omit ,
184271 should_llm_filter : Optional [bool ] | Omit = omit ,
185272 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
186273 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -203,10 +290,42 @@ async def update(
203290
204291 timeout: Override the client-level default timeout for this request, in seconds
205292 """
293+ ...
294+
295+ async def update (
296+ self ,
297+ * ,
298+ workspace_prompt : Optional [str ] | Omit = omit ,
299+ chunk_size : Optional [int ] | Omit = omit ,
300+ exclude_items : Union [str , float , bool , Dict [str , object ], Iterable [object ], None ] | Omit = omit ,
301+ filter_prompt : Optional [str ] | Omit = omit ,
302+ github_client_id : Optional [str ] | Omit = omit ,
303+ github_client_secret : Optional [str ] | Omit = omit ,
304+ github_custom_key_enabled : Optional [bool ] | Omit = omit ,
305+ google_drive_client_id : Optional [str ] | Omit = omit ,
306+ google_drive_client_secret : Optional [str ] | Omit = omit ,
307+ google_drive_custom_key_enabled : Optional [bool ] | Omit = omit ,
308+ include_items : Union [str , float , bool , Dict [str , object ], Iterable [object ], None ] | Omit = omit ,
309+ notion_client_id : Optional [str ] | Omit = omit ,
310+ notion_client_secret : Optional [str ] | Omit = omit ,
311+ notion_custom_key_enabled : Optional [bool ] | Omit = omit ,
312+ onedrive_client_id : Optional [str ] | Omit = omit ,
313+ onedrive_client_secret : Optional [str ] | Omit = omit ,
314+ onedrive_custom_key_enabled : Optional [bool ] | Omit = omit ,
315+ profile_buckets : Iterable [setting_update_params .Variant1ProfileBucket ] | Omit = omit ,
316+ should_llm_filter : Optional [bool ] | Omit = omit ,
317+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
318+ # The extra values given here take precedence over values defined on the client or passed to this method.
319+ extra_headers : Headers | None = None ,
320+ extra_query : Query | None = None ,
321+ extra_body : Body | None = None ,
322+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
323+ ) -> SettingUpdateResponse :
206324 return await self ._patch (
207325 "/v3/settings" ,
208326 body = await async_maybe_transform (
209327 {
328+ "workspace_prompt" : workspace_prompt ,
210329 "chunk_size" : chunk_size ,
211330 "exclude_items" : exclude_items ,
212331 "filter_prompt" : filter_prompt ,
0 commit comments