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,22 @@
|
|
|
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__ = ["UserRegisterParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class UserRegisterParams(TypedDict, total=False):
|
|
12
|
+
email: Required[str]
|
|
13
|
+
|
|
14
|
+
signing_key: Required[str]
|
|
15
|
+
|
|
16
|
+
verification_credential: Required[str]
|
|
17
|
+
|
|
18
|
+
family_name: Optional[str]
|
|
19
|
+
|
|
20
|
+
given_name: Optional[str]
|
|
21
|
+
|
|
22
|
+
picture: Optional[str]
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
"""Standard user representation used across all endpoints.
|
|
12
|
+
|
|
13
|
+
Used for: login response, workspace users, contacts (when registered).
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
email: str
|
|
17
|
+
|
|
18
|
+
encryption_public_key: str
|
|
19
|
+
|
|
20
|
+
external_id: str
|
|
21
|
+
|
|
22
|
+
family_name: str
|
|
23
|
+
|
|
24
|
+
given_name: str
|
|
25
|
+
|
|
26
|
+
picture: 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__ = ["UserVerifyEmailParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserVerifyEmailParams(TypedDict, total=False):
|
|
11
|
+
email: Required[str]
|
|
@@ -0,0 +1,21 @@
|
|
|
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, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._types import SequenceNotStr
|
|
8
|
+
from ..._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["WorkspaceCopyParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class WorkspaceCopyParams(TypedDict, total=False):
|
|
14
|
+
items: Required[SequenceNotStr[str]]
|
|
15
|
+
"""List of document external IDs to copy (e.g., ['doc-a1b2c3d4', 'doc-e5f6g7h8'])"""
|
|
16
|
+
|
|
17
|
+
target_workspace_ext_id: Required[str]
|
|
18
|
+
|
|
19
|
+
target_workspace_key: Annotated[str, PropertyInfo(alias="target-workspace-key")]
|
|
20
|
+
|
|
21
|
+
workspace_key: Annotated[str, PropertyInfo(alias="workspace-key")]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["WorkspaceCopyResponse", "Result"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Result(BaseModel):
|
|
11
|
+
source_doc_ext_id: str
|
|
12
|
+
|
|
13
|
+
success: bool
|
|
14
|
+
|
|
15
|
+
error: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
new_doc_ext_id: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class WorkspaceCopyResponse(BaseModel):
|
|
21
|
+
detail: str
|
|
22
|
+
|
|
23
|
+
documents_copied: Optional[int] = None
|
|
24
|
+
|
|
25
|
+
results: Optional[List[Result]] = None
|
|
@@ -0,0 +1,16 @@
|
|
|
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]
|
|
15
|
+
|
|
16
|
+
is_public: bool
|
|
@@ -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
|
+
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
|
+
created_by_ext_id: str
|
|
16
|
+
|
|
17
|
+
external_id: str
|
|
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
|
+
updated_by_ext_id: Optional[str] = None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
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 .doc_response import DocResponse
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceGetDocumentsResponse"]
|
|
9
|
+
|
|
10
|
+
WorkspaceGetDocumentsResponse: TypeAlias = List[DocResponse]
|
|
@@ -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__ = ["WorkspaceGetStatsResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class WorkspaceGetStatsResponse(BaseModel):
|
|
11
|
+
private_conversation_count: Optional[int] = None
|
|
12
|
+
|
|
13
|
+
private_document_count: Optional[int] = None
|
|
14
|
+
|
|
15
|
+
shared_conversation_count: Optional[int] = None
|
|
16
|
+
|
|
17
|
+
shared_document_count: Optional[int] = None
|
|
@@ -0,0 +1,60 @@
|
|
|
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 Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["WorkspaceGetTagsResponse", "WorkspaceGetTagsResponseItem", "WorkspaceGetTagsResponseItemTagType"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class WorkspaceGetTagsResponseItemTagType(BaseModel):
|
|
13
|
+
"""Tag format configuration stored as JSONB.
|
|
14
|
+
|
|
15
|
+
Type-specific fields:
|
|
16
|
+
- select: options (list of choices, can be single or multi-select)
|
|
17
|
+
- search: tag name is the query, chunks include relevance scores
|
|
18
|
+
- checkbox, text, number, folder: type only
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
options: Optional[List[str]] = None
|
|
22
|
+
|
|
23
|
+
type: Optional[Literal["checkbox", "text", "number", "select", "folder", "search"]] = None
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class WorkspaceGetTagsResponseItem(BaseModel):
|
|
27
|
+
created_at: datetime
|
|
28
|
+
|
|
29
|
+
created_by_ext_id: str
|
|
30
|
+
|
|
31
|
+
doctag_count: int
|
|
32
|
+
|
|
33
|
+
external_id: str
|
|
34
|
+
|
|
35
|
+
name: str
|
|
36
|
+
|
|
37
|
+
shared: bool
|
|
38
|
+
|
|
39
|
+
tag_type: WorkspaceGetTagsResponseItemTagType
|
|
40
|
+
"""Tag format configuration stored as JSONB.
|
|
41
|
+
|
|
42
|
+
Type-specific fields:
|
|
43
|
+
|
|
44
|
+
- select: options (list of choices, can be single or multi-select)
|
|
45
|
+
- search: tag name is the query, chunks include relevance scores
|
|
46
|
+
- checkbox, text, number, folder: type only
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
updated_at: datetime
|
|
50
|
+
|
|
51
|
+
workspace_ext_id: str
|
|
52
|
+
|
|
53
|
+
instruction: Optional[str] = None
|
|
54
|
+
|
|
55
|
+
parent_ext_id: Optional[str] = None
|
|
56
|
+
|
|
57
|
+
updated_by_ext_id: Optional[str] = None
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
WorkspaceGetTagsResponse: TypeAlias = List[WorkspaceGetTagsResponseItem]
|
|
@@ -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 .user_response import UserResponse
|
|
7
|
+
|
|
8
|
+
__all__ = ["WorkspaceGetUsersResponse"]
|
|
9
|
+
|
|
10
|
+
WorkspaceGetUsersResponse: TypeAlias = List[UserResponse]
|
|
@@ -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,41 @@
|
|
|
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
|
+
from .user_response import UserResponse
|
|
8
|
+
|
|
9
|
+
__all__ = ["WorkspaceResponse"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class WorkspaceResponse(BaseModel):
|
|
13
|
+
created_at: datetime
|
|
14
|
+
|
|
15
|
+
created_by_ext_id: str
|
|
16
|
+
|
|
17
|
+
description: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
external_id: str
|
|
20
|
+
|
|
21
|
+
is_public: bool
|
|
22
|
+
|
|
23
|
+
name: str
|
|
24
|
+
|
|
25
|
+
updated_at: datetime
|
|
26
|
+
|
|
27
|
+
private_conversation_count: Optional[int] = None
|
|
28
|
+
|
|
29
|
+
private_document_count: Optional[int] = None
|
|
30
|
+
|
|
31
|
+
shared_conversation_count: Optional[int] = None
|
|
32
|
+
|
|
33
|
+
shared_document_count: Optional[int] = None
|
|
34
|
+
|
|
35
|
+
updated_by_ext_id: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
user_files_mb: Optional[float] = None
|
|
38
|
+
|
|
39
|
+
users: Optional[List[UserResponse]] = None
|
|
40
|
+
|
|
41
|
+
wrapped_key: Optional[str] = None
|
|
@@ -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, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["WorkspaceShareParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class WorkspaceShareParams(TypedDict, total=False):
|
|
13
|
+
recipient_email: Required[str]
|
|
14
|
+
|
|
15
|
+
workspace_key: Annotated[str, PropertyInfo(alias="workspace-key")]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ..._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["WorkspaceShareResponse"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class WorkspaceShareResponse(BaseModel):
|
|
9
|
+
detail: str
|
|
10
|
+
|
|
11
|
+
shared_with: str
|
|
12
|
+
|
|
13
|
+
workspace_ext_id: str
|
|
@@ -0,0 +1,20 @@
|
|
|
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 Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ..._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["WorkspaceUpdateParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class WorkspaceUpdateParams(TypedDict, total=False):
|
|
14
|
+
description: Optional[str]
|
|
15
|
+
|
|
16
|
+
is_public: Optional[bool]
|
|
17
|
+
|
|
18
|
+
name: Optional[str]
|
|
19
|
+
|
|
20
|
+
workspace_key: Annotated[str, PropertyInfo(alias="workspace-key")]
|
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]
|