arbi 0.1.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.
Potentially problematic release.
This version of arbi might be problematic. Click here for more details.
- arbi/__init__.py +90 -0
- arbi/_base_client.py +1995 -0
- arbi/_client.py +394 -0
- arbi/_compat.py +219 -0
- arbi/_constants.py +14 -0
- arbi/_exceptions.py +108 -0
- arbi/_files.py +123 -0
- arbi/_models.py +829 -0
- arbi/_qs.py +150 -0
- arbi/_resource.py +43 -0
- arbi/_response.py +830 -0
- arbi/_streaming.py +333 -0
- arbi/_types.py +219 -0
- arbi/_utils/__init__.py +57 -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 +86 -0
- arbi/_utils/_transform.py +447 -0
- arbi/_utils/_typing.py +151 -0
- arbi/_utils/_utils.py +422 -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 +300 -0
- arbi/resources/api/configs.py +499 -0
- arbi/resources/api/conversation/__init__.py +33 -0
- arbi/resources/api/conversation/conversation.py +555 -0
- arbi/resources/api/conversation/user.py +270 -0
- arbi/resources/api/document/__init__.py +33 -0
- arbi/resources/api/document/annotation.py +384 -0
- arbi/resources/api/document/document.py +873 -0
- arbi/resources/api/health.py +304 -0
- arbi/resources/api/sso.py +333 -0
- arbi/resources/api/tag.py +614 -0
- arbi/resources/api/user/__init__.py +33 -0
- arbi/resources/api/user/settings.py +251 -0
- arbi/resources/api/user/user.py +532 -0
- arbi/resources/api/workspace.py +1061 -0
- arbi/types/__init__.py +8 -0
- arbi/types/api/__init__.py +84 -0
- arbi/types/api/assistant_query_params.py +59 -0
- arbi/types/api/assistant_retrieve_params.py +59 -0
- arbi/types/api/chunker_config_param.py +9 -0
- arbi/types/api/config_create_params.py +45 -0
- arbi/types/api/config_create_response.py +15 -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 +46 -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_threads_response.py +91 -0
- arbi/types/api/conversation_share_response.py +11 -0
- arbi/types/api/conversation_update_title_params.py +12 -0
- arbi/types/api/conversation_update_title_response.py +13 -0
- arbi/types/api/doc_response.py +48 -0
- arbi/types/api/document/__init__.py +8 -0
- arbi/types/api/document/annotation_create_params.py +16 -0
- arbi/types/api/document/annotation_delete_response.py +11 -0
- arbi/types/api/document/annotation_update_params.py +16 -0
- arbi/types/api/document/doc_tag_response.py +26 -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_response.py +11 -0
- arbi/types/api/document_get_parsed_response.py +26 -0
- arbi/types/api/document_get_tags_response.py +10 -0
- arbi/types/api/document_update_params.py +19 -0
- arbi/types/api/document_update_response.py +22 -0
- arbi/types/api/document_upload_params.py +23 -0
- arbi/types/api/document_view_params.py +13 -0
- arbi/types/api/embedder_config.py +18 -0
- arbi/types/api/embedder_config_param.py +17 -0
- arbi/types/api/health_check_app_response.py +9 -0
- arbi/types/api/health_check_models_response.py +21 -0
- arbi/types/api/health_check_services_response.py +23 -0
- arbi/types/api/health_get_models_response.py +19 -0
- arbi/types/api/model_citation_config.py +23 -0
- arbi/types/api/model_citation_config_param.py +23 -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 +23 -0
- arbi/types/api/retriever_config_param.py +23 -0
- arbi/types/api/sso_invite_params.py +11 -0
- arbi/types/api/sso_invite_response.py +11 -0
- arbi/types/api/sso_login_params.py +16 -0
- arbi/types/api/sso_login_response.py +15 -0
- arbi/types/api/sso_rotate_passcode_response.py +11 -0
- arbi/types/api/tag_apply_to_docs_params.py +12 -0
- arbi/types/api/tag_apply_to_docs_response.py +13 -0
- arbi/types/api/tag_create_params.py +18 -0
- arbi/types/api/tag_create_response.py +11 -0
- arbi/types/api/tag_delete_response.py +9 -0
- arbi/types/api/tag_get_docs_response.py +10 -0
- arbi/types/api/tag_remove_from_docs_params.py +12 -0
- arbi/types/api/tag_remove_from_docs_response.py +13 -0
- arbi/types/api/tag_update_params.py +14 -0
- arbi/types/api/tag_update_response.py +17 -0
- arbi/types/api/title_llm_config.py +29 -0
- arbi/types/api/title_llm_config_param.py +28 -0
- arbi/types/api/token.py +13 -0
- arbi/types/api/user/__init__.py +6 -0
- arbi/types/api/user/setting_retrieve_response.py +36 -0
- arbi/types/api/user/setting_update_params.py +24 -0
- arbi/types/api/user_list_workspaces_response.py +10 -0
- arbi/types/api/user_login_params.py +13 -0
- arbi/types/api/user_logout_response.py +9 -0
- arbi/types/api/user_register_params.py +17 -0
- arbi/types/api/user_response.py +19 -0
- arbi/types/api/workspace_create_protected_params.py +14 -0
- arbi/types/api/workspace_delete_response.py +9 -0
- arbi/types/api/workspace_get_conversations_response.py +28 -0
- arbi/types/api/workspace_get_doctags_response.py +10 -0
- arbi/types/api/workspace_get_documents_response.py +10 -0
- arbi/types/api/workspace_get_stats_response.py +13 -0
- arbi/types/api/workspace_get_tags_response.py +30 -0
- arbi/types/api/workspace_get_users_response.py +17 -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 +24 -0
- arbi/types/api/workspace_share_params.py +11 -0
- arbi/types/api/workspace_share_response.py +21 -0
- arbi/types/api/workspace_update_params.py +14 -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.1.0.dist-info/METADATA +410 -0
- arbi-0.1.0.dist-info/RECORD +143 -0
- arbi-0.1.0.dist-info/WHEEL +4 -0
- arbi-0.1.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["TagCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TagCreateParams(TypedDict, total=False):
|
|
12
|
+
name: Required[str]
|
|
13
|
+
|
|
14
|
+
workspace_ext_id: Required[str]
|
|
15
|
+
|
|
16
|
+
parent_ext_id: Optional[str]
|
|
17
|
+
|
|
18
|
+
shared: Optional[bool]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .document.doc_tag_response import DocTagResponse
|
|
7
|
+
|
|
8
|
+
__all__ = ["TagGetDocsResponse"]
|
|
9
|
+
|
|
10
|
+
TagGetDocsResponse: TypeAlias = List[DocTagResponse]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["TagRemoveFromDocsParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TagRemoveFromDocsParams(TypedDict, total=False):
|
|
12
|
+
doc_ids: Required[List[str]]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["TagRemoveFromDocsResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TagRemoveFromDocsResponse(BaseModel):
|
|
11
|
+
detail: str
|
|
12
|
+
|
|
13
|
+
removed_doc_tag_ids: List[str]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["TagUpdateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TagUpdateParams(TypedDict, total=False):
|
|
12
|
+
name: Optional[str]
|
|
13
|
+
|
|
14
|
+
shared: Optional[bool]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["TagUpdateResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TagUpdateResponse(BaseModel):
|
|
11
|
+
detail: str
|
|
12
|
+
|
|
13
|
+
tag_id: str
|
|
14
|
+
|
|
15
|
+
name: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
shared: Optional[bool] = None
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["TitleLlmConfig"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class TitleLlmConfig(BaseModel):
|
|
14
|
+
api_type: Optional[Literal["local", "remote"]] = FieldInfo(alias="API_TYPE", default=None)
|
|
15
|
+
"""The inference type (local or remote)."""
|
|
16
|
+
|
|
17
|
+
max_char_size_to_answer: Optional[int] = FieldInfo(alias="MAX_CHAR_SIZE_TO_ANSWER", default=None)
|
|
18
|
+
"""Maximum character size to answer."""
|
|
19
|
+
|
|
20
|
+
max_tokens: Optional[int] = FieldInfo(alias="MAX_TOKENS", default=None)
|
|
21
|
+
"""Maximum number of tokens allowed."""
|
|
22
|
+
|
|
23
|
+
api_model_name: Optional[str] = FieldInfo(alias="MODEL_NAME", default=None)
|
|
24
|
+
"""The name of the model to be used."""
|
|
25
|
+
|
|
26
|
+
system_instruction: Optional[str] = FieldInfo(alias="SYSTEM_INSTRUCTION", default=None)
|
|
27
|
+
|
|
28
|
+
temperature: Optional[float] = FieldInfo(alias="TEMPERATURE", default=None)
|
|
29
|
+
"""Temperature value for randomness."""
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["TitleLlmConfigParam"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TitleLlmConfigParam(TypedDict, total=False):
|
|
13
|
+
api_type: Annotated[Literal["local", "remote"], PropertyInfo(alias="API_TYPE")]
|
|
14
|
+
"""The inference type (local or remote)."""
|
|
15
|
+
|
|
16
|
+
max_char_size_to_answer: Annotated[int, PropertyInfo(alias="MAX_CHAR_SIZE_TO_ANSWER")]
|
|
17
|
+
"""Maximum character size to answer."""
|
|
18
|
+
|
|
19
|
+
max_tokens: Annotated[int, PropertyInfo(alias="MAX_TOKENS")]
|
|
20
|
+
"""Maximum number of tokens allowed."""
|
|
21
|
+
|
|
22
|
+
model_name: Annotated[str, PropertyInfo(alias="MODEL_NAME")]
|
|
23
|
+
"""The name of the model to be used."""
|
|
24
|
+
|
|
25
|
+
system_instruction: Annotated[str, PropertyInfo(alias="SYSTEM_INSTRUCTION")]
|
|
26
|
+
|
|
27
|
+
temperature: Annotated[float, PropertyInfo(alias="TEMPERATURE")]
|
|
28
|
+
"""Temperature value for randomness."""
|
arbi/types/api/token.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
|
|
6
|
+
from .setting_retrieve_response import SettingRetrieveResponse as SettingRetrieveResponse
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, Dict, List, Optional
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from ...._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["SettingRetrieveResponse"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SettingRetrieveResponse(BaseModel):
|
|
13
|
+
developer: Optional[bool] = None
|
|
14
|
+
|
|
15
|
+
last_workspace: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
pinned_workspaces: Optional[List[str]] = None
|
|
18
|
+
|
|
19
|
+
show_document_navigator: Optional[bool] = None
|
|
20
|
+
|
|
21
|
+
show_help_page: Optional[bool] = None
|
|
22
|
+
|
|
23
|
+
show_invite_tab: Optional[bool] = None
|
|
24
|
+
|
|
25
|
+
show_security_settings: Optional[bool] = None
|
|
26
|
+
|
|
27
|
+
show_smart_search: Optional[bool] = None
|
|
28
|
+
|
|
29
|
+
show_thread_visualization: Optional[bool] = None
|
|
30
|
+
|
|
31
|
+
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
|
|
32
|
+
if TYPE_CHECKING:
|
|
33
|
+
# Stub to indicate that arbitrary properties are accepted.
|
|
34
|
+
# To access properties that are not valid identifiers you can use `getattr`, e.g.
|
|
35
|
+
# `getattr(obj, '$type')`
|
|
36
|
+
def __getattr__(self, attr: str) -> object: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List, Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["SettingUpdateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SettingUpdateParams(TypedDict, total=False):
|
|
12
|
+
pinned_workspaces: Optional[List[str]]
|
|
13
|
+
|
|
14
|
+
show_document_navigator: Optional[bool]
|
|
15
|
+
|
|
16
|
+
show_help_page: Optional[bool]
|
|
17
|
+
|
|
18
|
+
show_invite_tab: Optional[bool]
|
|
19
|
+
|
|
20
|
+
show_security_settings: Optional[bool]
|
|
21
|
+
|
|
22
|
+
show_smart_search: Optional[bool]
|
|
23
|
+
|
|
24
|
+
show_thread_visualization: Optional[bool]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .workspace_response import WorkspaceResponse
|
|
7
|
+
|
|
8
|
+
__all__ = ["UserListWorkspacesResponse"]
|
|
9
|
+
|
|
10
|
+
UserListWorkspacesResponse: TypeAlias = List[WorkspaceResponse]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["UserLoginParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserLoginParams(TypedDict, total=False):
|
|
11
|
+
email: Required[str]
|
|
12
|
+
|
|
13
|
+
password: Required[str]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["UserRegisterParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserRegisterParams(TypedDict, total=False):
|
|
11
|
+
email: Required[str]
|
|
12
|
+
|
|
13
|
+
last_name: Required[str]
|
|
14
|
+
|
|
15
|
+
name: Required[str]
|
|
16
|
+
|
|
17
|
+
password: Required[str]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["UserResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserResponse(BaseModel):
|
|
11
|
+
email: Optional[str] = None
|
|
12
|
+
|
|
13
|
+
external_id: Optional[str] = None
|
|
14
|
+
|
|
15
|
+
last_name: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
name: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
public_key: Optional[str] = None
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceCreateProtectedParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class WorkspaceCreateProtectedParams(TypedDict, total=False):
|
|
12
|
+
name: Required[str]
|
|
13
|
+
|
|
14
|
+
description: Optional[str]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["WorkspaceGetConversationsResponse", "WorkspaceGetConversationsResponseItem"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class WorkspaceGetConversationsResponseItem(BaseModel):
|
|
13
|
+
created_at: datetime
|
|
14
|
+
|
|
15
|
+
external_id: str
|
|
16
|
+
|
|
17
|
+
is_creator: bool
|
|
18
|
+
|
|
19
|
+
message_count: int
|
|
20
|
+
|
|
21
|
+
title: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
updated_at: datetime
|
|
24
|
+
|
|
25
|
+
is_shared: Optional[bool] = None
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
WorkspaceGetConversationsResponse: TypeAlias = List[WorkspaceGetConversationsResponseItem]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .document.doc_tag_response import DocTagResponse
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceGetDoctagsResponse"]
|
|
9
|
+
|
|
10
|
+
WorkspaceGetDoctagsResponse: TypeAlias = List[DocTagResponse]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .doc_response import DocResponse
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceGetDocumentsResponse"]
|
|
9
|
+
|
|
10
|
+
WorkspaceGetDocumentsResponse: TypeAlias = List[DocResponse]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["WorkspaceGetStatsResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class WorkspaceGetStatsResponse(BaseModel):
|
|
11
|
+
conversation_count: Optional[int] = None
|
|
12
|
+
|
|
13
|
+
document_count: Optional[int] = None
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceGetTagsResponse", "Tag"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Tag(BaseModel):
|
|
12
|
+
created_at: datetime
|
|
13
|
+
|
|
14
|
+
created_by_ext_id: str
|
|
15
|
+
|
|
16
|
+
name: str
|
|
17
|
+
|
|
18
|
+
tag_ext_id: str
|
|
19
|
+
|
|
20
|
+
type: str
|
|
21
|
+
|
|
22
|
+
updated_at: datetime
|
|
23
|
+
|
|
24
|
+
workspace_ext_id: str
|
|
25
|
+
|
|
26
|
+
shared: Optional[bool] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class WorkspaceGetTagsResponse(BaseModel):
|
|
30
|
+
tags: List[Tag]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceGetUsersResponse", "WorkspaceGetUsersResponseItem"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class WorkspaceGetUsersResponseItem(BaseModel):
|
|
12
|
+
user_email: str
|
|
13
|
+
|
|
14
|
+
user_ext_id: str
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
WorkspaceGetUsersResponse: TypeAlias = List[WorkspaceGetUsersResponseItem]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["WorkspaceRemoveUserParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class WorkspaceRemoveUserParams(TypedDict, total=False):
|
|
11
|
+
user_ext_id: Required[str]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["WorkspaceRemoveUserResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class WorkspaceRemoveUserResponse(BaseModel):
|
|
11
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class WorkspaceResponse(BaseModel):
|
|
12
|
+
created_at: datetime
|
|
13
|
+
|
|
14
|
+
created_by_ext_id: str
|
|
15
|
+
|
|
16
|
+
description: Optional[str] = None
|
|
17
|
+
|
|
18
|
+
external_id: str
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
|
|
22
|
+
updated_at: datetime
|
|
23
|
+
|
|
24
|
+
updated_by_ext_id: Optional[str] = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["WorkspaceShareParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class WorkspaceShareParams(TypedDict, total=False):
|
|
11
|
+
recipient_email: Required[str]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ..._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["WorkspaceShareResponse", "Notifications"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Notifications(BaseModel):
|
|
9
|
+
recipient: str
|
|
10
|
+
|
|
11
|
+
sender: str
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class WorkspaceShareResponse(BaseModel):
|
|
15
|
+
detail: str
|
|
16
|
+
|
|
17
|
+
notifications: Notifications
|
|
18
|
+
|
|
19
|
+
shared_with: str
|
|
20
|
+
|
|
21
|
+
workspace_ext_id: str
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceUpdateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class WorkspaceUpdateParams(TypedDict, total=False):
|
|
12
|
+
description: Optional[str]
|
|
13
|
+
|
|
14
|
+
name: Optional[str]
|
arbi/types/chunk.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .._models import BaseModel
|
|
4
|
+
from .chunk_metadata import ChunkMetadata
|
|
5
|
+
|
|
6
|
+
__all__ = ["Chunk"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Chunk(BaseModel):
|
|
10
|
+
content: str
|
|
11
|
+
|
|
12
|
+
metadata: ChunkMetadata
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ChunkMetadata"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChunkMetadata(BaseModel):
|
|
11
|
+
chunk_doc_idx: int
|
|
12
|
+
|
|
13
|
+
chunk_ext_id: str
|
|
14
|
+
|
|
15
|
+
chunk_pg_idx: int
|
|
16
|
+
|
|
17
|
+
created_at: str
|
|
18
|
+
|
|
19
|
+
page_number: int
|
|
20
|
+
|
|
21
|
+
chunk_id: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
doc_ext_id: Optional[str] = None
|
|
24
|
+
|
|
25
|
+
doc_title: Optional[str] = None
|
|
26
|
+
|
|
27
|
+
rerank_score: Optional[float] = None
|
|
28
|
+
|
|
29
|
+
score: Optional[float] = None
|
|
30
|
+
|
|
31
|
+
tokens: Optional[int] = None
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["ChunkMetadataParam"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ChunkMetadataParam(TypedDict, total=False):
|
|
12
|
+
chunk_doc_idx: Required[int]
|
|
13
|
+
|
|
14
|
+
chunk_ext_id: Required[str]
|
|
15
|
+
|
|
16
|
+
chunk_pg_idx: Required[int]
|
|
17
|
+
|
|
18
|
+
created_at: Required[str]
|
|
19
|
+
|
|
20
|
+
page_number: Required[int]
|
|
21
|
+
|
|
22
|
+
chunk_id: Optional[str]
|
|
23
|
+
|
|
24
|
+
doc_ext_id: Optional[str]
|
|
25
|
+
|
|
26
|
+
doc_title: Optional[str]
|
|
27
|
+
|
|
28
|
+
rerank_score: Optional[float]
|
|
29
|
+
|
|
30
|
+
score: Optional[float]
|
|
31
|
+
|
|
32
|
+
tokens: Optional[int]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
from .chunk_metadata_param import ChunkMetadataParam
|
|
8
|
+
|
|
9
|
+
__all__ = ["ChunkParam"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ChunkParam(TypedDict, total=False):
|
|
13
|
+
content: Required[str]
|
|
14
|
+
|
|
15
|
+
metadata: Required[ChunkMetadataParam]
|