arbi 0.18.0__py3-none-any.whl
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.
- arbi/__init__.py +92 -0
- arbi/_base_client.py +2124 -0
- arbi/_client.py +442 -0
- arbi/_compat.py +219 -0
- arbi/_constants.py +14 -0
- arbi/_exceptions.py +108 -0
- arbi/_files.py +123 -0
- arbi/_models.py +872 -0
- arbi/_qs.py +150 -0
- arbi/_resource.py +43 -0
- arbi/_response.py +830 -0
- arbi/_streaming.py +333 -0
- arbi/_types.py +270 -0
- arbi/_utils/__init__.py +64 -0
- arbi/_utils/_compat.py +45 -0
- arbi/_utils/_datetime_parse.py +136 -0
- arbi/_utils/_logs.py +25 -0
- arbi/_utils/_proxy.py +65 -0
- arbi/_utils/_reflection.py +42 -0
- arbi/_utils/_resources_proxy.py +24 -0
- arbi/_utils/_streams.py +12 -0
- arbi/_utils/_sync.py +58 -0
- arbi/_utils/_transform.py +457 -0
- arbi/_utils/_typing.py +156 -0
- arbi/_utils/_utils.py +421 -0
- arbi/_version.py +4 -0
- arbi/lib/.keep +4 -0
- arbi/py.typed +0 -0
- arbi/resources/__init__.py +19 -0
- arbi/resources/api/__init__.py +145 -0
- arbi/resources/api/api.py +422 -0
- arbi/resources/api/assistant.py +312 -0
- arbi/resources/api/configs.py +533 -0
- arbi/resources/api/conversation/__init__.py +33 -0
- arbi/resources/api/conversation/conversation.py +648 -0
- arbi/resources/api/conversation/user.py +270 -0
- arbi/resources/api/document/__init__.py +33 -0
- arbi/resources/api/document/doctag.py +516 -0
- arbi/resources/api/document/document.py +929 -0
- arbi/resources/api/health.py +253 -0
- arbi/resources/api/notifications.py +478 -0
- arbi/resources/api/tag.py +409 -0
- arbi/resources/api/user/__init__.py +61 -0
- arbi/resources/api/user/contacts.py +322 -0
- arbi/resources/api/user/settings.py +283 -0
- arbi/resources/api/user/subscription.py +230 -0
- arbi/resources/api/user/user.py +943 -0
- arbi/resources/api/workspace.py +1198 -0
- arbi/types/__init__.py +8 -0
- arbi/types/api/__init__.py +94 -0
- arbi/types/api/assistant_query_params.py +95 -0
- arbi/types/api/assistant_retrieve_params.py +95 -0
- arbi/types/api/chunker_config_param.py +9 -0
- arbi/types/api/config_create_params.py +227 -0
- arbi/types/api/config_create_response.py +17 -0
- arbi/types/api/config_delete_response.py +11 -0
- arbi/types/api/config_get_versions_response.py +19 -0
- arbi/types/api/config_retrieve_response.py +234 -0
- arbi/types/api/conversation/__init__.py +8 -0
- arbi/types/api/conversation/user_add_params.py +11 -0
- arbi/types/api/conversation/user_add_response.py +11 -0
- arbi/types/api/conversation/user_remove_params.py +11 -0
- arbi/types/api/conversation/user_remove_response.py +11 -0
- arbi/types/api/conversation_delete_message_response.py +11 -0
- arbi/types/api/conversation_delete_response.py +11 -0
- arbi/types/api/conversation_retrieve_message_response.py +105 -0
- arbi/types/api/conversation_retrieve_threads_response.py +124 -0
- arbi/types/api/conversation_share_response.py +11 -0
- arbi/types/api/conversation_update_title_params.py +16 -0
- arbi/types/api/conversation_update_title_response.py +13 -0
- arbi/types/api/doc_response.py +66 -0
- arbi/types/api/document/__init__.py +11 -0
- arbi/types/api/document/doc_tag_response.py +40 -0
- arbi/types/api/document/doctag_create_params.py +35 -0
- arbi/types/api/document/doctag_create_response.py +10 -0
- arbi/types/api/document/doctag_delete_params.py +15 -0
- arbi/types/api/document/doctag_generate_params.py +22 -0
- arbi/types/api/document/doctag_generate_response.py +20 -0
- arbi/types/api/document/doctag_update_params.py +35 -0
- arbi/types/api/document_date_extractor_llm_config.py +29 -0
- arbi/types/api/document_date_extractor_llm_config_param.py +28 -0
- arbi/types/api/document_delete_params.py +13 -0
- arbi/types/api/document_get_parsed_response.py +26 -0
- arbi/types/api/document_retrieve_params.py +16 -0
- arbi/types/api/document_retrieve_response.py +10 -0
- arbi/types/api/document_update_params.py +42 -0
- arbi/types/api/document_update_response.py +10 -0
- arbi/types/api/document_upload_from_url_params.py +26 -0
- arbi/types/api/document_upload_from_url_response.py +16 -0
- arbi/types/api/document_upload_params.py +26 -0
- arbi/types/api/document_upload_response.py +16 -0
- arbi/types/api/embedder_config.py +30 -0
- arbi/types/api/embedder_config_param.py +29 -0
- arbi/types/api/health_check_models_response.py +21 -0
- arbi/types/api/health_get_models_response.py +19 -0
- arbi/types/api/health_retrieve_status_response.py +49 -0
- arbi/types/api/model_citation_config.py +20 -0
- arbi/types/api/model_citation_config_param.py +20 -0
- arbi/types/api/notification_create_params.py +20 -0
- arbi/types/api/notification_create_response.py +47 -0
- arbi/types/api/notification_delete_params.py +13 -0
- arbi/types/api/notification_get_schemas_response.py +197 -0
- arbi/types/api/notification_list_response.py +47 -0
- arbi/types/api/notification_update_params.py +27 -0
- arbi/types/api/notification_update_response.py +47 -0
- arbi/types/api/parser_config_param.py +9 -0
- arbi/types/api/query_llm_config.py +30 -0
- arbi/types/api/query_llm_config_param.py +29 -0
- arbi/types/api/reranker_config.py +21 -0
- arbi/types/api/reranker_config_param.py +20 -0
- arbi/types/api/retriever_config.py +39 -0
- arbi/types/api/retriever_config_param.py +38 -0
- arbi/types/api/tag_create_params.py +49 -0
- arbi/types/api/tag_create_response.py +57 -0
- arbi/types/api/tag_delete_response.py +9 -0
- arbi/types/api/tag_update_params.py +22 -0
- arbi/types/api/tag_update_response.py +57 -0
- arbi/types/api/title_llm_config.py +29 -0
- arbi/types/api/title_llm_config_param.py +28 -0
- arbi/types/api/user/__init__.py +13 -0
- arbi/types/api/user/contact_create_params.py +13 -0
- arbi/types/api/user/contact_create_response.py +30 -0
- arbi/types/api/user/contact_delete_params.py +13 -0
- arbi/types/api/user/contact_list_response.py +30 -0
- arbi/types/api/user/setting_retrieve_response.py +89 -0
- arbi/types/api/user/setting_update_params.py +60 -0
- arbi/types/api/user/subscription_create_params.py +13 -0
- arbi/types/api/user/subscription_create_response.py +11 -0
- arbi/types/api/user/subscription_retrieve_response.py +48 -0
- arbi/types/api/user_change_password_params.py +18 -0
- arbi/types/api/user_change_password_response.py +11 -0
- arbi/types/api/user_check_sso_status_params.py +20 -0
- arbi/types/api/user_check_sso_status_response.py +25 -0
- arbi/types/api/user_list_products_response.py +37 -0
- arbi/types/api/user_list_workspaces_response.py +10 -0
- arbi/types/api/user_login_params.py +18 -0
- arbi/types/api/user_login_response.py +23 -0
- arbi/types/api/user_logout_response.py +9 -0
- arbi/types/api/user_register_params.py +22 -0
- arbi/types/api/user_response.py +26 -0
- arbi/types/api/user_verify_email_params.py +11 -0
- arbi/types/api/user_verify_email_response.py +9 -0
- arbi/types/api/workspace_copy_params.py +21 -0
- arbi/types/api/workspace_copy_response.py +25 -0
- arbi/types/api/workspace_create_protected_params.py +16 -0
- arbi/types/api/workspace_delete_response.py +9 -0
- arbi/types/api/workspace_get_conversations_response.py +30 -0
- arbi/types/api/workspace_get_documents_response.py +10 -0
- arbi/types/api/workspace_get_stats_response.py +17 -0
- arbi/types/api/workspace_get_tags_response.py +60 -0
- arbi/types/api/workspace_get_users_response.py +10 -0
- arbi/types/api/workspace_remove_user_params.py +11 -0
- arbi/types/api/workspace_remove_user_response.py +11 -0
- arbi/types/api/workspace_response.py +41 -0
- arbi/types/api/workspace_share_params.py +15 -0
- arbi/types/api/workspace_share_response.py +13 -0
- arbi/types/api/workspace_update_params.py +20 -0
- arbi/types/chunk.py +12 -0
- arbi/types/chunk_metadata.py +31 -0
- arbi/types/chunk_metadata_param.py +32 -0
- arbi/types/chunk_param.py +15 -0
- arbi-0.18.0.dist-info/METADATA +410 -0
- arbi-0.18.0.dist-info/RECORD +165 -0
- arbi-0.18.0.dist-info/WHEEL +4 -0
- arbi-0.18.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import _resource
|
|
8
|
+
from .tag import (
|
|
9
|
+
TagResource,
|
|
10
|
+
AsyncTagResource,
|
|
11
|
+
TagResourceWithRawResponse,
|
|
12
|
+
AsyncTagResourceWithRawResponse,
|
|
13
|
+
TagResourceWithStreamingResponse,
|
|
14
|
+
AsyncTagResourceWithStreamingResponse,
|
|
15
|
+
)
|
|
16
|
+
from .health import (
|
|
17
|
+
HealthResource,
|
|
18
|
+
AsyncHealthResource,
|
|
19
|
+
HealthResourceWithRawResponse,
|
|
20
|
+
AsyncHealthResourceWithRawResponse,
|
|
21
|
+
HealthResourceWithStreamingResponse,
|
|
22
|
+
AsyncHealthResourceWithStreamingResponse,
|
|
23
|
+
)
|
|
24
|
+
from .configs import (
|
|
25
|
+
ConfigsResource,
|
|
26
|
+
AsyncConfigsResource,
|
|
27
|
+
ConfigsResourceWithRawResponse,
|
|
28
|
+
AsyncConfigsResourceWithRawResponse,
|
|
29
|
+
ConfigsResourceWithStreamingResponse,
|
|
30
|
+
AsyncConfigsResourceWithStreamingResponse,
|
|
31
|
+
)
|
|
32
|
+
from ..._types import Body, Query, Headers, NotGiven, not_given
|
|
33
|
+
from ..._compat import cached_property
|
|
34
|
+
from .assistant import (
|
|
35
|
+
AssistantResource,
|
|
36
|
+
AsyncAssistantResource,
|
|
37
|
+
AssistantResourceWithRawResponse,
|
|
38
|
+
AsyncAssistantResourceWithRawResponse,
|
|
39
|
+
AssistantResourceWithStreamingResponse,
|
|
40
|
+
AsyncAssistantResourceWithStreamingResponse,
|
|
41
|
+
)
|
|
42
|
+
from .user.user import (
|
|
43
|
+
UserResource,
|
|
44
|
+
AsyncUserResource,
|
|
45
|
+
UserResourceWithRawResponse,
|
|
46
|
+
AsyncUserResourceWithRawResponse,
|
|
47
|
+
UserResourceWithStreamingResponse,
|
|
48
|
+
AsyncUserResourceWithStreamingResponse,
|
|
49
|
+
)
|
|
50
|
+
from .workspace import (
|
|
51
|
+
WorkspaceResource,
|
|
52
|
+
AsyncWorkspaceResource,
|
|
53
|
+
WorkspaceResourceWithRawResponse,
|
|
54
|
+
AsyncWorkspaceResourceWithRawResponse,
|
|
55
|
+
WorkspaceResourceWithStreamingResponse,
|
|
56
|
+
AsyncWorkspaceResourceWithStreamingResponse,
|
|
57
|
+
)
|
|
58
|
+
from ..._response import (
|
|
59
|
+
to_raw_response_wrapper,
|
|
60
|
+
to_streamed_response_wrapper,
|
|
61
|
+
async_to_raw_response_wrapper,
|
|
62
|
+
async_to_streamed_response_wrapper,
|
|
63
|
+
)
|
|
64
|
+
from .notifications import (
|
|
65
|
+
NotificationsResource,
|
|
66
|
+
AsyncNotificationsResource,
|
|
67
|
+
NotificationsResourceWithRawResponse,
|
|
68
|
+
AsyncNotificationsResourceWithRawResponse,
|
|
69
|
+
NotificationsResourceWithStreamingResponse,
|
|
70
|
+
AsyncNotificationsResourceWithStreamingResponse,
|
|
71
|
+
)
|
|
72
|
+
from ..._base_client import make_request_options
|
|
73
|
+
from .document.document import (
|
|
74
|
+
DocumentResource,
|
|
75
|
+
AsyncDocumentResource,
|
|
76
|
+
DocumentResourceWithRawResponse,
|
|
77
|
+
AsyncDocumentResourceWithRawResponse,
|
|
78
|
+
DocumentResourceWithStreamingResponse,
|
|
79
|
+
AsyncDocumentResourceWithStreamingResponse,
|
|
80
|
+
)
|
|
81
|
+
from .conversation.conversation import (
|
|
82
|
+
ConversationResource,
|
|
83
|
+
AsyncConversationResource,
|
|
84
|
+
ConversationResourceWithRawResponse,
|
|
85
|
+
AsyncConversationResourceWithRawResponse,
|
|
86
|
+
ConversationResourceWithStreamingResponse,
|
|
87
|
+
AsyncConversationResourceWithStreamingResponse,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
__all__ = ["APIResource", "AsyncAPIResource"]
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class APIResource(_resource.SyncAPIResource):
|
|
94
|
+
@cached_property
|
|
95
|
+
def user(self) -> UserResource:
|
|
96
|
+
return UserResource(self._client)
|
|
97
|
+
|
|
98
|
+
@cached_property
|
|
99
|
+
def workspace(self) -> WorkspaceResource:
|
|
100
|
+
return WorkspaceResource(self._client)
|
|
101
|
+
|
|
102
|
+
@cached_property
|
|
103
|
+
def document(self) -> DocumentResource:
|
|
104
|
+
return DocumentResource(self._client)
|
|
105
|
+
|
|
106
|
+
@cached_property
|
|
107
|
+
def conversation(self) -> ConversationResource:
|
|
108
|
+
return ConversationResource(self._client)
|
|
109
|
+
|
|
110
|
+
@cached_property
|
|
111
|
+
def assistant(self) -> AssistantResource:
|
|
112
|
+
return AssistantResource(self._client)
|
|
113
|
+
|
|
114
|
+
@cached_property
|
|
115
|
+
def health(self) -> HealthResource:
|
|
116
|
+
return HealthResource(self._client)
|
|
117
|
+
|
|
118
|
+
@cached_property
|
|
119
|
+
def tag(self) -> TagResource:
|
|
120
|
+
return TagResource(self._client)
|
|
121
|
+
|
|
122
|
+
@cached_property
|
|
123
|
+
def configs(self) -> ConfigsResource:
|
|
124
|
+
return ConfigsResource(self._client)
|
|
125
|
+
|
|
126
|
+
@cached_property
|
|
127
|
+
def notifications(self) -> NotificationsResource:
|
|
128
|
+
return NotificationsResource(self._client)
|
|
129
|
+
|
|
130
|
+
@cached_property
|
|
131
|
+
def with_raw_response(self) -> APIResourceWithRawResponse:
|
|
132
|
+
"""
|
|
133
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
134
|
+
the raw response object instead of the parsed content.
|
|
135
|
+
|
|
136
|
+
For more information, see https://www.github.com/arbitrationcity/arbi-python#accessing-raw-response-data-eg-headers
|
|
137
|
+
"""
|
|
138
|
+
return APIResourceWithRawResponse(self)
|
|
139
|
+
|
|
140
|
+
@cached_property
|
|
141
|
+
def with_streaming_response(self) -> APIResourceWithStreamingResponse:
|
|
142
|
+
"""
|
|
143
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
144
|
+
|
|
145
|
+
For more information, see https://www.github.com/arbitrationcity/arbi-python#with_streaming_response
|
|
146
|
+
"""
|
|
147
|
+
return APIResourceWithStreamingResponse(self)
|
|
148
|
+
|
|
149
|
+
def index(
|
|
150
|
+
self,
|
|
151
|
+
*,
|
|
152
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
153
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
154
|
+
extra_headers: Headers | None = None,
|
|
155
|
+
extra_query: Query | None = None,
|
|
156
|
+
extra_body: Body | None = None,
|
|
157
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
158
|
+
) -> object:
|
|
159
|
+
"""Serves the admin application page with necessary configuration variables."""
|
|
160
|
+
return self._get(
|
|
161
|
+
"/api",
|
|
162
|
+
options=make_request_options(
|
|
163
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
164
|
+
),
|
|
165
|
+
cast_to=object,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class AsyncAPIResource(_resource.AsyncAPIResource):
|
|
170
|
+
@cached_property
|
|
171
|
+
def user(self) -> AsyncUserResource:
|
|
172
|
+
return AsyncUserResource(self._client)
|
|
173
|
+
|
|
174
|
+
@cached_property
|
|
175
|
+
def workspace(self) -> AsyncWorkspaceResource:
|
|
176
|
+
return AsyncWorkspaceResource(self._client)
|
|
177
|
+
|
|
178
|
+
@cached_property
|
|
179
|
+
def document(self) -> AsyncDocumentResource:
|
|
180
|
+
return AsyncDocumentResource(self._client)
|
|
181
|
+
|
|
182
|
+
@cached_property
|
|
183
|
+
def conversation(self) -> AsyncConversationResource:
|
|
184
|
+
return AsyncConversationResource(self._client)
|
|
185
|
+
|
|
186
|
+
@cached_property
|
|
187
|
+
def assistant(self) -> AsyncAssistantResource:
|
|
188
|
+
return AsyncAssistantResource(self._client)
|
|
189
|
+
|
|
190
|
+
@cached_property
|
|
191
|
+
def health(self) -> AsyncHealthResource:
|
|
192
|
+
return AsyncHealthResource(self._client)
|
|
193
|
+
|
|
194
|
+
@cached_property
|
|
195
|
+
def tag(self) -> AsyncTagResource:
|
|
196
|
+
return AsyncTagResource(self._client)
|
|
197
|
+
|
|
198
|
+
@cached_property
|
|
199
|
+
def configs(self) -> AsyncConfigsResource:
|
|
200
|
+
return AsyncConfigsResource(self._client)
|
|
201
|
+
|
|
202
|
+
@cached_property
|
|
203
|
+
def notifications(self) -> AsyncNotificationsResource:
|
|
204
|
+
return AsyncNotificationsResource(self._client)
|
|
205
|
+
|
|
206
|
+
@cached_property
|
|
207
|
+
def with_raw_response(self) -> AsyncAPIResourceWithRawResponse:
|
|
208
|
+
"""
|
|
209
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
210
|
+
the raw response object instead of the parsed content.
|
|
211
|
+
|
|
212
|
+
For more information, see https://www.github.com/arbitrationcity/arbi-python#accessing-raw-response-data-eg-headers
|
|
213
|
+
"""
|
|
214
|
+
return AsyncAPIResourceWithRawResponse(self)
|
|
215
|
+
|
|
216
|
+
@cached_property
|
|
217
|
+
def with_streaming_response(self) -> AsyncAPIResourceWithStreamingResponse:
|
|
218
|
+
"""
|
|
219
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
220
|
+
|
|
221
|
+
For more information, see https://www.github.com/arbitrationcity/arbi-python#with_streaming_response
|
|
222
|
+
"""
|
|
223
|
+
return AsyncAPIResourceWithStreamingResponse(self)
|
|
224
|
+
|
|
225
|
+
async def index(
|
|
226
|
+
self,
|
|
227
|
+
*,
|
|
228
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
229
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
230
|
+
extra_headers: Headers | None = None,
|
|
231
|
+
extra_query: Query | None = None,
|
|
232
|
+
extra_body: Body | None = None,
|
|
233
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
234
|
+
) -> object:
|
|
235
|
+
"""Serves the admin application page with necessary configuration variables."""
|
|
236
|
+
return await self._get(
|
|
237
|
+
"/api",
|
|
238
|
+
options=make_request_options(
|
|
239
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
240
|
+
),
|
|
241
|
+
cast_to=object,
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
class APIResourceWithRawResponse:
|
|
246
|
+
def __init__(self, api: APIResource) -> None:
|
|
247
|
+
self._api = api
|
|
248
|
+
|
|
249
|
+
self.index = to_raw_response_wrapper(
|
|
250
|
+
api.index,
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
@cached_property
|
|
254
|
+
def user(self) -> UserResourceWithRawResponse:
|
|
255
|
+
return UserResourceWithRawResponse(self._api.user)
|
|
256
|
+
|
|
257
|
+
@cached_property
|
|
258
|
+
def workspace(self) -> WorkspaceResourceWithRawResponse:
|
|
259
|
+
return WorkspaceResourceWithRawResponse(self._api.workspace)
|
|
260
|
+
|
|
261
|
+
@cached_property
|
|
262
|
+
def document(self) -> DocumentResourceWithRawResponse:
|
|
263
|
+
return DocumentResourceWithRawResponse(self._api.document)
|
|
264
|
+
|
|
265
|
+
@cached_property
|
|
266
|
+
def conversation(self) -> ConversationResourceWithRawResponse:
|
|
267
|
+
return ConversationResourceWithRawResponse(self._api.conversation)
|
|
268
|
+
|
|
269
|
+
@cached_property
|
|
270
|
+
def assistant(self) -> AssistantResourceWithRawResponse:
|
|
271
|
+
return AssistantResourceWithRawResponse(self._api.assistant)
|
|
272
|
+
|
|
273
|
+
@cached_property
|
|
274
|
+
def health(self) -> HealthResourceWithRawResponse:
|
|
275
|
+
return HealthResourceWithRawResponse(self._api.health)
|
|
276
|
+
|
|
277
|
+
@cached_property
|
|
278
|
+
def tag(self) -> TagResourceWithRawResponse:
|
|
279
|
+
return TagResourceWithRawResponse(self._api.tag)
|
|
280
|
+
|
|
281
|
+
@cached_property
|
|
282
|
+
def configs(self) -> ConfigsResourceWithRawResponse:
|
|
283
|
+
return ConfigsResourceWithRawResponse(self._api.configs)
|
|
284
|
+
|
|
285
|
+
@cached_property
|
|
286
|
+
def notifications(self) -> NotificationsResourceWithRawResponse:
|
|
287
|
+
return NotificationsResourceWithRawResponse(self._api.notifications)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
class AsyncAPIResourceWithRawResponse:
|
|
291
|
+
def __init__(self, api: AsyncAPIResource) -> None:
|
|
292
|
+
self._api = api
|
|
293
|
+
|
|
294
|
+
self.index = async_to_raw_response_wrapper(
|
|
295
|
+
api.index,
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
@cached_property
|
|
299
|
+
def user(self) -> AsyncUserResourceWithRawResponse:
|
|
300
|
+
return AsyncUserResourceWithRawResponse(self._api.user)
|
|
301
|
+
|
|
302
|
+
@cached_property
|
|
303
|
+
def workspace(self) -> AsyncWorkspaceResourceWithRawResponse:
|
|
304
|
+
return AsyncWorkspaceResourceWithRawResponse(self._api.workspace)
|
|
305
|
+
|
|
306
|
+
@cached_property
|
|
307
|
+
def document(self) -> AsyncDocumentResourceWithRawResponse:
|
|
308
|
+
return AsyncDocumentResourceWithRawResponse(self._api.document)
|
|
309
|
+
|
|
310
|
+
@cached_property
|
|
311
|
+
def conversation(self) -> AsyncConversationResourceWithRawResponse:
|
|
312
|
+
return AsyncConversationResourceWithRawResponse(self._api.conversation)
|
|
313
|
+
|
|
314
|
+
@cached_property
|
|
315
|
+
def assistant(self) -> AsyncAssistantResourceWithRawResponse:
|
|
316
|
+
return AsyncAssistantResourceWithRawResponse(self._api.assistant)
|
|
317
|
+
|
|
318
|
+
@cached_property
|
|
319
|
+
def health(self) -> AsyncHealthResourceWithRawResponse:
|
|
320
|
+
return AsyncHealthResourceWithRawResponse(self._api.health)
|
|
321
|
+
|
|
322
|
+
@cached_property
|
|
323
|
+
def tag(self) -> AsyncTagResourceWithRawResponse:
|
|
324
|
+
return AsyncTagResourceWithRawResponse(self._api.tag)
|
|
325
|
+
|
|
326
|
+
@cached_property
|
|
327
|
+
def configs(self) -> AsyncConfigsResourceWithRawResponse:
|
|
328
|
+
return AsyncConfigsResourceWithRawResponse(self._api.configs)
|
|
329
|
+
|
|
330
|
+
@cached_property
|
|
331
|
+
def notifications(self) -> AsyncNotificationsResourceWithRawResponse:
|
|
332
|
+
return AsyncNotificationsResourceWithRawResponse(self._api.notifications)
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
class APIResourceWithStreamingResponse:
|
|
336
|
+
def __init__(self, api: APIResource) -> None:
|
|
337
|
+
self._api = api
|
|
338
|
+
|
|
339
|
+
self.index = to_streamed_response_wrapper(
|
|
340
|
+
api.index,
|
|
341
|
+
)
|
|
342
|
+
|
|
343
|
+
@cached_property
|
|
344
|
+
def user(self) -> UserResourceWithStreamingResponse:
|
|
345
|
+
return UserResourceWithStreamingResponse(self._api.user)
|
|
346
|
+
|
|
347
|
+
@cached_property
|
|
348
|
+
def workspace(self) -> WorkspaceResourceWithStreamingResponse:
|
|
349
|
+
return WorkspaceResourceWithStreamingResponse(self._api.workspace)
|
|
350
|
+
|
|
351
|
+
@cached_property
|
|
352
|
+
def document(self) -> DocumentResourceWithStreamingResponse:
|
|
353
|
+
return DocumentResourceWithStreamingResponse(self._api.document)
|
|
354
|
+
|
|
355
|
+
@cached_property
|
|
356
|
+
def conversation(self) -> ConversationResourceWithStreamingResponse:
|
|
357
|
+
return ConversationResourceWithStreamingResponse(self._api.conversation)
|
|
358
|
+
|
|
359
|
+
@cached_property
|
|
360
|
+
def assistant(self) -> AssistantResourceWithStreamingResponse:
|
|
361
|
+
return AssistantResourceWithStreamingResponse(self._api.assistant)
|
|
362
|
+
|
|
363
|
+
@cached_property
|
|
364
|
+
def health(self) -> HealthResourceWithStreamingResponse:
|
|
365
|
+
return HealthResourceWithStreamingResponse(self._api.health)
|
|
366
|
+
|
|
367
|
+
@cached_property
|
|
368
|
+
def tag(self) -> TagResourceWithStreamingResponse:
|
|
369
|
+
return TagResourceWithStreamingResponse(self._api.tag)
|
|
370
|
+
|
|
371
|
+
@cached_property
|
|
372
|
+
def configs(self) -> ConfigsResourceWithStreamingResponse:
|
|
373
|
+
return ConfigsResourceWithStreamingResponse(self._api.configs)
|
|
374
|
+
|
|
375
|
+
@cached_property
|
|
376
|
+
def notifications(self) -> NotificationsResourceWithStreamingResponse:
|
|
377
|
+
return NotificationsResourceWithStreamingResponse(self._api.notifications)
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
class AsyncAPIResourceWithStreamingResponse:
|
|
381
|
+
def __init__(self, api: AsyncAPIResource) -> None:
|
|
382
|
+
self._api = api
|
|
383
|
+
|
|
384
|
+
self.index = async_to_streamed_response_wrapper(
|
|
385
|
+
api.index,
|
|
386
|
+
)
|
|
387
|
+
|
|
388
|
+
@cached_property
|
|
389
|
+
def user(self) -> AsyncUserResourceWithStreamingResponse:
|
|
390
|
+
return AsyncUserResourceWithStreamingResponse(self._api.user)
|
|
391
|
+
|
|
392
|
+
@cached_property
|
|
393
|
+
def workspace(self) -> AsyncWorkspaceResourceWithStreamingResponse:
|
|
394
|
+
return AsyncWorkspaceResourceWithStreamingResponse(self._api.workspace)
|
|
395
|
+
|
|
396
|
+
@cached_property
|
|
397
|
+
def document(self) -> AsyncDocumentResourceWithStreamingResponse:
|
|
398
|
+
return AsyncDocumentResourceWithStreamingResponse(self._api.document)
|
|
399
|
+
|
|
400
|
+
@cached_property
|
|
401
|
+
def conversation(self) -> AsyncConversationResourceWithStreamingResponse:
|
|
402
|
+
return AsyncConversationResourceWithStreamingResponse(self._api.conversation)
|
|
403
|
+
|
|
404
|
+
@cached_property
|
|
405
|
+
def assistant(self) -> AsyncAssistantResourceWithStreamingResponse:
|
|
406
|
+
return AsyncAssistantResourceWithStreamingResponse(self._api.assistant)
|
|
407
|
+
|
|
408
|
+
@cached_property
|
|
409
|
+
def health(self) -> AsyncHealthResourceWithStreamingResponse:
|
|
410
|
+
return AsyncHealthResourceWithStreamingResponse(self._api.health)
|
|
411
|
+
|
|
412
|
+
@cached_property
|
|
413
|
+
def tag(self) -> AsyncTagResourceWithStreamingResponse:
|
|
414
|
+
return AsyncTagResourceWithStreamingResponse(self._api.tag)
|
|
415
|
+
|
|
416
|
+
@cached_property
|
|
417
|
+
def configs(self) -> AsyncConfigsResourceWithStreamingResponse:
|
|
418
|
+
return AsyncConfigsResourceWithStreamingResponse(self._api.configs)
|
|
419
|
+
|
|
420
|
+
@cached_property
|
|
421
|
+
def notifications(self) -> AsyncNotificationsResourceWithStreamingResponse:
|
|
422
|
+
return AsyncNotificationsResourceWithStreamingResponse(self._api.notifications)
|