qanswer_sdk 3.1331.0__py3-none-any.whl → 3.1335.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.
- qanswer_sdk/__init__.py +2 -1
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +1 -0
- qanswer_sdk/models/paginated_report_templates.py +3 -3
- qanswer_sdk/models/report_template.py +6 -6
- qanswer_sdk/models/report_template_simplified.py +109 -0
- {qanswer_sdk-3.1331.0.dist-info → qanswer_sdk-3.1335.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1331.0.dist-info → qanswer_sdk-3.1335.0.dist-info}/RECORD +10 -9
- {qanswer_sdk-3.1331.0.dist-info → qanswer_sdk-3.1335.0.dist-info}/WHEEL +0 -0
qanswer_sdk/__init__.py
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "3.
|
|
17
|
+
__version__ = "3.1335.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from qanswer_sdk.api.admin_api import AdminApi
|
|
@@ -311,6 +311,7 @@ from qanswer_sdk.models.report_copilot_task_settings_update_payload import Repor
|
|
|
311
311
|
from qanswer_sdk.models.report_copilot_task_update import ReportCopilotTaskUpdate
|
|
312
312
|
from qanswer_sdk.models.report_template import ReportTemplate
|
|
313
313
|
from qanswer_sdk.models.report_template_create_payload import ReportTemplateCreatePayload
|
|
314
|
+
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
|
314
315
|
from qanswer_sdk.models.report_template_simplified_payload import ReportTemplateSimplifiedPayload
|
|
315
316
|
from qanswer_sdk.models.report_template_update_payload import ReportTemplateUpdatePayload
|
|
316
317
|
from qanswer_sdk.models.reset_password import ResetPassword
|
qanswer_sdk/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/3.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/3.1335.0/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
qanswer_sdk/configuration.py
CHANGED
|
@@ -421,7 +421,7 @@ conf = qanswer_sdk.Configuration(
|
|
|
421
421
|
"OS: {env}\n"\
|
|
422
422
|
"Python Version: {pyversion}\n"\
|
|
423
423
|
"Version of the API: 1.0\n"\
|
|
424
|
-
"SDK Package Version: 3.
|
|
424
|
+
"SDK Package Version: 3.1335.0".\
|
|
425
425
|
format(env=sys.platform, pyversion=sys.version)
|
|
426
426
|
|
|
427
427
|
def get_host_settings(self):
|
qanswer_sdk/models/__init__.py
CHANGED
|
@@ -249,6 +249,7 @@ from qanswer_sdk.models.report_copilot_task_settings_update_payload import Repor
|
|
|
249
249
|
from qanswer_sdk.models.report_copilot_task_update import ReportCopilotTaskUpdate
|
|
250
250
|
from qanswer_sdk.models.report_template import ReportTemplate
|
|
251
251
|
from qanswer_sdk.models.report_template_create_payload import ReportTemplateCreatePayload
|
|
252
|
+
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
|
252
253
|
from qanswer_sdk.models.report_template_simplified_payload import ReportTemplateSimplifiedPayload
|
|
253
254
|
from qanswer_sdk.models.report_template_update_payload import ReportTemplateUpdatePayload
|
|
254
255
|
from qanswer_sdk.models.reset_password import ResetPassword
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from qanswer_sdk.models.
|
|
22
|
+
from qanswer_sdk.models.report_template_simplified import ReportTemplateSimplified
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ class PaginatedReportTemplates(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
PaginatedReportTemplates
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
items: List[
|
|
30
|
+
items: List[ReportTemplateSimplified]
|
|
31
31
|
total: StrictInt
|
|
32
32
|
page: StrictInt
|
|
33
33
|
page_size: StrictInt
|
|
@@ -91,7 +91,7 @@ class PaginatedReportTemplates(BaseModel):
|
|
|
91
91
|
return cls.model_validate(obj)
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
|
-
"items": [
|
|
94
|
+
"items": [ReportTemplateSimplified.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
|
|
95
95
|
"total": obj.get("total"),
|
|
96
96
|
"page": obj.get("page"),
|
|
97
97
|
"page_size": obj.get("page_size")
|
|
@@ -38,12 +38,12 @@ class ReportTemplate(BaseModel):
|
|
|
38
38
|
shared_to: Optional[StrictStr] = None
|
|
39
39
|
conversation_id: Optional[StrictStr] = None
|
|
40
40
|
is_duplicated: StrictBool
|
|
41
|
+
is_generating: Optional[StrictBool] = None
|
|
42
|
+
active_slot_id: Optional[StrictInt] = None
|
|
41
43
|
template_with_slots: StrictStr
|
|
42
44
|
slots: List[Slot]
|
|
43
45
|
clip_structure: Optional[TemplateClipStructureOutput] = None
|
|
44
|
-
|
|
45
|
-
active_slot_id: Optional[StrictInt] = None
|
|
46
|
-
__properties: ClassVar[List[str]] = ["id", "username", "author", "email", "template_name", "creation_date", "last_updated", "shared_to", "conversation_id", "is_duplicated", "template_with_slots", "slots", "clip_structure", "is_generating", "active_slot_id"]
|
|
46
|
+
__properties: ClassVar[List[str]] = ["id", "username", "author", "email", "template_name", "creation_date", "last_updated", "shared_to", "conversation_id", "is_duplicated", "is_generating", "active_slot_id", "template_with_slots", "slots", "clip_structure"]
|
|
47
47
|
|
|
48
48
|
model_config = ConfigDict(
|
|
49
49
|
populate_by_name=True,
|
|
@@ -116,11 +116,11 @@ class ReportTemplate(BaseModel):
|
|
|
116
116
|
"shared_to": obj.get("shared_to"),
|
|
117
117
|
"conversation_id": obj.get("conversation_id"),
|
|
118
118
|
"is_duplicated": obj.get("is_duplicated"),
|
|
119
|
+
"is_generating": obj.get("is_generating"),
|
|
120
|
+
"active_slot_id": obj.get("active_slot_id"),
|
|
119
121
|
"template_with_slots": obj.get("template_with_slots"),
|
|
120
122
|
"slots": [Slot.from_dict(_item) for _item in obj["slots"]] if obj.get("slots") is not None else None,
|
|
121
|
-
"clip_structure": TemplateClipStructureOutput.from_dict(obj["clip_structure"]) if obj.get("clip_structure") is not None else None
|
|
122
|
-
"is_generating": obj.get("is_generating"),
|
|
123
|
-
"active_slot_id": obj.get("active_slot_id")
|
|
123
|
+
"clip_structure": TemplateClipStructureOutput.from_dict(obj["clip_structure"]) if obj.get("clip_structure") is not None else None
|
|
124
124
|
})
|
|
125
125
|
return _obj
|
|
126
126
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
QAnswer: Api Documentation
|
|
5
|
+
|
|
6
|
+
APIs provided by QAnswer
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ReportTemplateSimplified(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ReportTemplateSimplified
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: StrictInt
|
|
30
|
+
username: StrictStr
|
|
31
|
+
author: Optional[StrictStr] = None
|
|
32
|
+
email: Optional[StrictStr] = None
|
|
33
|
+
template_name: StrictStr
|
|
34
|
+
creation_date: StrictStr
|
|
35
|
+
last_updated: StrictStr
|
|
36
|
+
shared_to: Optional[StrictStr] = None
|
|
37
|
+
conversation_id: Optional[StrictStr] = None
|
|
38
|
+
is_duplicated: StrictBool
|
|
39
|
+
is_generating: Optional[StrictBool] = None
|
|
40
|
+
active_slot_id: Optional[StrictInt] = None
|
|
41
|
+
__properties: ClassVar[List[str]] = ["id", "username", "author", "email", "template_name", "creation_date", "last_updated", "shared_to", "conversation_id", "is_duplicated", "is_generating", "active_slot_id"]
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
populate_by_name=True,
|
|
45
|
+
validate_assignment=True,
|
|
46
|
+
protected_namespaces=(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def to_str(self) -> str:
|
|
51
|
+
"""Returns the string representation of the model using alias"""
|
|
52
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
53
|
+
|
|
54
|
+
def to_json(self) -> str:
|
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
|
56
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
57
|
+
return json.dumps(self.to_dict())
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of ReportTemplateSimplified from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
"""
|
|
74
|
+
excluded_fields: Set[str] = set([
|
|
75
|
+
])
|
|
76
|
+
|
|
77
|
+
_dict = self.model_dump(
|
|
78
|
+
by_alias=True,
|
|
79
|
+
exclude=excluded_fields,
|
|
80
|
+
exclude_none=True,
|
|
81
|
+
)
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of ReportTemplateSimplified from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"id": obj.get("id"),
|
|
95
|
+
"username": obj.get("username"),
|
|
96
|
+
"author": obj.get("author"),
|
|
97
|
+
"email": obj.get("email"),
|
|
98
|
+
"template_name": obj.get("template_name"),
|
|
99
|
+
"creation_date": obj.get("creation_date"),
|
|
100
|
+
"last_updated": obj.get("last_updated"),
|
|
101
|
+
"shared_to": obj.get("shared_to"),
|
|
102
|
+
"conversation_id": obj.get("conversation_id"),
|
|
103
|
+
"is_duplicated": obj.get("is_duplicated"),
|
|
104
|
+
"is_generating": obj.get("is_generating"),
|
|
105
|
+
"active_slot_id": obj.get("active_slot_id")
|
|
106
|
+
})
|
|
107
|
+
return _obj
|
|
108
|
+
|
|
109
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qanswer_sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1335.0
|
|
4
4
|
Summary: QAnswer: Api Documentation
|
|
5
5
|
Home-page: https://github.com/GIT_USER_ID/GIT_REPO_ID
|
|
6
6
|
License: NoLicense
|
|
@@ -228,7 +228,7 @@ print(response.answer)
|
|
|
228
228
|
## 📌 Versioning
|
|
229
229
|
|
|
230
230
|
This SDK follows the version of the QAnswer API.
|
|
231
|
-
The current version is: `3.
|
|
231
|
+
The current version is: `3.1335.0 (branch: main)`
|
|
232
232
|
|
|
233
233
|
---
|
|
234
234
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
qanswer_sdk/__init__.py,sha256=
|
|
1
|
+
qanswer_sdk/__init__.py,sha256=LbLuwGfrBBc3Ln-a0EJ4_V52Rq8GVN4j_4nhLXatALA,28110
|
|
2
2
|
qanswer_sdk/api/__init__.py,sha256=Lxp9OLgOUg7jmcAophNG7okim03ZaxIPxhXg-mo9y3A,3157
|
|
3
3
|
qanswer_sdk/api/admin_api.py,sha256=qy0V6peMJklmAUrDh_sZsC1dlAGu7iehosOve7QU5F4,177877
|
|
4
4
|
qanswer_sdk/api/ai_assistant_access_rights_api.py,sha256=g8vytIW8KUxZo2vcLFEdxOkvR3dTgjR5ow1mTA0erR0,197831
|
|
@@ -46,11 +46,11 @@ qanswer_sdk/api/tool_llm_api.py,sha256=isQs7qoWheR2b9ds02BGBN_VfshETDkSCG-8N_zMK
|
|
|
46
46
|
qanswer_sdk/api/unit_organizations_api.py,sha256=1Z7zaqxSl6ZomXrZyLNaA-cW5RIehddTYjNG3qVAFuk,193541
|
|
47
47
|
qanswer_sdk/api/unit_teams_api.py,sha256=Soc3QkvulKcEUUkz_JIh08qGhO15pMFhTxy8Y0XKrVY,145189
|
|
48
48
|
qanswer_sdk/api/unit_user_api.py,sha256=vg0B7xjc94OahBN_kBxsw7IxWCOKML_J_umdFNPMd9g,318314
|
|
49
|
-
qanswer_sdk/api_client.py,sha256=
|
|
49
|
+
qanswer_sdk/api_client.py,sha256=1FiemDGI8AId9I0lFlyPk25ouRNBpk3HXx97D1lHxwM,27387
|
|
50
50
|
qanswer_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
51
|
-
qanswer_sdk/configuration.py,sha256=
|
|
51
|
+
qanswer_sdk/configuration.py,sha256=byo8ci01E4tly7ivQIVLzOaMFQ5H8DgR85Q97TQWJC0,16184
|
|
52
52
|
qanswer_sdk/exceptions.py,sha256=BCaz7REoUyrBq8zuVBNTmEHGvJfM1YyLSyOnkB1XQLU,5907
|
|
53
|
-
qanswer_sdk/models/__init__.py,sha256=
|
|
53
|
+
qanswer_sdk/models/__init__.py,sha256=OtKJsNByhowINBAlckw-iGoGMpqSW115ULT3-po0MJk,24481
|
|
54
54
|
qanswer_sdk/models/access_pdf_payload_model.py,sha256=0oamrJeAIZdpjmcWby_PFmz-GrXD0ObDU3ecRpf7nRI,3626
|
|
55
55
|
qanswer_sdk/models/add_qn_a_request.py,sha256=vfpsHZE5zc58RyL1DCXI6va4Z57LH0nIrXXaOgZvbVM,3488
|
|
56
56
|
qanswer_sdk/models/add_synonyms.py,sha256=VMWFah8VTE1n_bFU0xvHivo8jC77NDp4vgVXwcyS3jo,2681
|
|
@@ -233,7 +233,7 @@ qanswer_sdk/models/organization_filter_dto.py,sha256=VM07trM2ny0Zj8qS04wuKt67Zi9
|
|
|
233
233
|
qanswer_sdk/models/organization_list_dto.py,sha256=Vi9DmskcXhIOdG8mWKZKOaV4sK-_UF5plWtw2ysG2g4,3325
|
|
234
234
|
qanswer_sdk/models/organization_llm.py,sha256=qdRa1zVGwAUBUCCT6NIt6FoT6h6cWrul2J4TPyUT-tg,3362
|
|
235
235
|
qanswer_sdk/models/organization_shared.py,sha256=lpWhLRUS8qK5fmrd-_jmDnvYL5SY6NNmhxJmfsMav8M,3610
|
|
236
|
-
qanswer_sdk/models/paginated_report_templates.py,sha256=
|
|
236
|
+
qanswer_sdk/models/paginated_report_templates.py,sha256=2186zhAFGOWPUgqQ3UIKJSi6RRL2Hz8pt-OI4daKReI,3184
|
|
237
237
|
qanswer_sdk/models/password.py,sha256=PrJ3DpYh6bdLzT1lhfsmuEKr0PPkZqsU-YOr8Os4Cyk,2711
|
|
238
238
|
qanswer_sdk/models/pinecone_index_model.py,sha256=MKSy39jXeCTre-jDjCBthF60pHsvTBzOHmFjBCHNa6o,2592
|
|
239
239
|
qanswer_sdk/models/plan_dto.py,sha256=mmIHxITgLUYyHsYsElP4ohk91HaSLyZPn3_kdeglMQ0,4520
|
|
@@ -284,8 +284,9 @@ qanswer_sdk/models/report_copilot_slot_task_settings_update.py,sha256=irqCW1qe8m
|
|
|
284
284
|
qanswer_sdk/models/report_copilot_task_settings.py,sha256=2WlQ9vTK1klZW8MdLVN1amuS3WEQou_mBIStCS-a5uE,4769
|
|
285
285
|
qanswer_sdk/models/report_copilot_task_settings_update_payload.py,sha256=8DZJEsiT8xzF--n-lDTVcDrPup3GHHHSlA8ri0zHQAk,3009
|
|
286
286
|
qanswer_sdk/models/report_copilot_task_update.py,sha256=8rg1jH0Zfi5c5pMZx3_9pY5Y5SzCFDJwpa3MfvU7Spo,4757
|
|
287
|
-
qanswer_sdk/models/report_template.py,sha256=
|
|
287
|
+
qanswer_sdk/models/report_template.py,sha256=aibkZFLqO2rntx0v-ZpGd4oJz6u2VCE5FYljHyk2aaw,4694
|
|
288
288
|
qanswer_sdk/models/report_template_create_payload.py,sha256=4bLt55FmsbVHnRUAHKbhUB2cZtNylPhzCkR4wGIJWyg,3404
|
|
289
|
+
qanswer_sdk/models/report_template_simplified.py,sha256=e5PUYnnfMiUlqD9rXD4cCTsssDcRzLnDIHKIcKJ0HZ4,3599
|
|
289
290
|
qanswer_sdk/models/report_template_simplified_payload.py,sha256=SoesgTUbAjcOKp0TX24O1pcTZ0F7kBQInOzQCjRgoHQ,2772
|
|
290
291
|
qanswer_sdk/models/report_template_update_payload.py,sha256=ZhyxD8-w_y22g9r5eetUiydRkPE_Yw2vUxx28fMAbqQ,3870
|
|
291
292
|
qanswer_sdk/models/reset_password.py,sha256=0ZAC_EMttOMmybgP8-GUgzEL92OUqN6VZm1t_b2jCdg,2434
|
|
@@ -379,6 +380,6 @@ qanswer_sdk/models/website_connector_settings.py,sha256=mlKuTG7Nsmv4XyEDUpVlg8ZO
|
|
|
379
380
|
qanswer_sdk/models/widget_configs.py,sha256=H38KJ4wCup7MXD-PeTHaF0xnR1VZmCTSIxNNmQzIPVc,3703
|
|
380
381
|
qanswer_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
381
382
|
qanswer_sdk/rest.py,sha256=9cpA9eEQsfuHcThVnF2c7CEK0HCJYGyGZnWqmfkQpT8,9344
|
|
382
|
-
qanswer_sdk-3.
|
|
383
|
-
qanswer_sdk-3.
|
|
384
|
-
qanswer_sdk-3.
|
|
383
|
+
qanswer_sdk-3.1335.0.dist-info/METADATA,sha256=vZfXyQGNrTC0OeYykRRJJy5gmUX7ftOtspW9v9CfIgk,6532
|
|
384
|
+
qanswer_sdk-3.1335.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
385
|
+
qanswer_sdk-3.1335.0.dist-info/RECORD,,
|
|
File without changes
|