qanswer-sdk 0.642.0.dev0__py3-none-any.whl → 0.657.0.dev0__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 +1 -1
- qanswer_sdk/api/ai_assistant_api.py +2 -0
- qanswer_sdk/api/conversation_logs_api.py +409 -3
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/assistant_template_with_tools_selection_dto.py +5 -3
- qanswer_sdk/models/conversation_message.py +2 -2
- qanswer_sdk/models/socket_conversation_message.py +2 -2
- {qanswer_sdk-0.642.0.dev0.dist-info → qanswer_sdk-0.657.0.dev0.dist-info}/METADATA +2 -2
- {qanswer_sdk-0.642.0.dev0.dist-info → qanswer_sdk-0.657.0.dev0.dist-info}/RECORD +12 -12
- {qanswer_sdk-0.642.0.dev0.dist-info → qanswer_sdk-0.657.0.dev0.dist-info}/WHEEL +0 -0
- {qanswer_sdk-0.642.0.dev0.dist-info → qanswer_sdk-0.657.0.dev0.dist-info}/top_level.txt +0 -0
qanswer_sdk/__init__.py
CHANGED
|
@@ -4689,6 +4689,7 @@ class ConversationLogsApi:
|
|
|
4689
4689
|
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of users to skip")] = None,
|
|
4690
4690
|
sort_by: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Column to sort by")] = None,
|
|
4691
4691
|
sort_order: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Sort order")] = None,
|
|
4692
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
4692
4693
|
_request_timeout: Union[
|
|
4693
4694
|
None,
|
|
4694
4695
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4714,6 +4715,8 @@ class ConversationLogsApi:
|
|
|
4714
4715
|
:type sort_by: str
|
|
4715
4716
|
:param sort_order: Sort order
|
|
4716
4717
|
:type sort_order: str
|
|
4718
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
4719
|
+
:type view: str
|
|
4717
4720
|
:param _request_timeout: timeout setting for this request. If one
|
|
4718
4721
|
number provided, it will be total request
|
|
4719
4722
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4741,6 +4744,7 @@ class ConversationLogsApi:
|
|
|
4741
4744
|
offset=offset,
|
|
4742
4745
|
sort_by=sort_by,
|
|
4743
4746
|
sort_order=sort_order,
|
|
4747
|
+
view=view,
|
|
4744
4748
|
_request_auth=_request_auth,
|
|
4745
4749
|
_content_type=_content_type,
|
|
4746
4750
|
_headers=_headers,
|
|
@@ -4770,6 +4774,7 @@ class ConversationLogsApi:
|
|
|
4770
4774
|
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of users to skip")] = None,
|
|
4771
4775
|
sort_by: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Column to sort by")] = None,
|
|
4772
4776
|
sort_order: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Sort order")] = None,
|
|
4777
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
4773
4778
|
_request_timeout: Union[
|
|
4774
4779
|
None,
|
|
4775
4780
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4795,6 +4800,8 @@ class ConversationLogsApi:
|
|
|
4795
4800
|
:type sort_by: str
|
|
4796
4801
|
:param sort_order: Sort order
|
|
4797
4802
|
:type sort_order: str
|
|
4803
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
4804
|
+
:type view: str
|
|
4798
4805
|
:param _request_timeout: timeout setting for this request. If one
|
|
4799
4806
|
number provided, it will be total request
|
|
4800
4807
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4822,6 +4829,7 @@ class ConversationLogsApi:
|
|
|
4822
4829
|
offset=offset,
|
|
4823
4830
|
sort_by=sort_by,
|
|
4824
4831
|
sort_order=sort_order,
|
|
4832
|
+
view=view,
|
|
4825
4833
|
_request_auth=_request_auth,
|
|
4826
4834
|
_content_type=_content_type,
|
|
4827
4835
|
_headers=_headers,
|
|
@@ -4851,6 +4859,7 @@ class ConversationLogsApi:
|
|
|
4851
4859
|
offset: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of users to skip")] = None,
|
|
4852
4860
|
sort_by: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Column to sort by")] = None,
|
|
4853
4861
|
sort_order: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Sort order")] = None,
|
|
4862
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
4854
4863
|
_request_timeout: Union[
|
|
4855
4864
|
None,
|
|
4856
4865
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4876,6 +4885,8 @@ class ConversationLogsApi:
|
|
|
4876
4885
|
:type sort_by: str
|
|
4877
4886
|
:param sort_order: Sort order
|
|
4878
4887
|
:type sort_order: str
|
|
4888
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
4889
|
+
:type view: str
|
|
4879
4890
|
:param _request_timeout: timeout setting for this request. If one
|
|
4880
4891
|
number provided, it will be total request
|
|
4881
4892
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4903,6 +4914,7 @@ class ConversationLogsApi:
|
|
|
4903
4914
|
offset=offset,
|
|
4904
4915
|
sort_by=sort_by,
|
|
4905
4916
|
sort_order=sort_order,
|
|
4917
|
+
view=view,
|
|
4906
4918
|
_request_auth=_request_auth,
|
|
4907
4919
|
_content_type=_content_type,
|
|
4908
4920
|
_headers=_headers,
|
|
@@ -4927,6 +4939,7 @@ class ConversationLogsApi:
|
|
|
4927
4939
|
offset,
|
|
4928
4940
|
sort_by,
|
|
4929
4941
|
sort_order,
|
|
4942
|
+
view,
|
|
4930
4943
|
_request_auth,
|
|
4931
4944
|
_content_type,
|
|
4932
4945
|
_headers,
|
|
@@ -4965,6 +4978,10 @@ class ConversationLogsApi:
|
|
|
4965
4978
|
|
|
4966
4979
|
_query_params.append(('sort_order', sort_order))
|
|
4967
4980
|
|
|
4981
|
+
if view is not None:
|
|
4982
|
+
|
|
4983
|
+
_query_params.append(('view', view))
|
|
4984
|
+
|
|
4968
4985
|
# process the header parameters
|
|
4969
4986
|
# process the form parameters
|
|
4970
4987
|
# process the body parameter
|
|
@@ -5956,6 +5973,7 @@ class ConversationLogsApi:
|
|
|
5956
5973
|
self,
|
|
5957
5974
|
username: Annotated[StrictStr, Field(description="Username of user who owns the conversation")],
|
|
5958
5975
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
5976
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'lifetime' (monotonic, includes incognito, never decrements, default) or 'live' (currently stored, affected by deletes/retention)")] = None,
|
|
5959
5977
|
_request_timeout: Union[
|
|
5960
5978
|
None,
|
|
5961
5979
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -5977,6 +5995,8 @@ class ConversationLogsApi:
|
|
|
5977
5995
|
:type username: str
|
|
5978
5996
|
:param dataset: Dataset of the conversation
|
|
5979
5997
|
:type dataset: str
|
|
5998
|
+
:param view: Stats view: 'lifetime' (monotonic, includes incognito, never decrements, default) or 'live' (currently stored, affected by deletes/retention)
|
|
5999
|
+
:type view: str
|
|
5980
6000
|
:param _request_timeout: timeout setting for this request. If one
|
|
5981
6001
|
number provided, it will be total request
|
|
5982
6002
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6002,6 +6022,7 @@ class ConversationLogsApi:
|
|
|
6002
6022
|
_param = self._get_conversation_stats_serialize(
|
|
6003
6023
|
username=username,
|
|
6004
6024
|
dataset=dataset,
|
|
6025
|
+
view=view,
|
|
6005
6026
|
_request_auth=_request_auth,
|
|
6006
6027
|
_content_type=_content_type,
|
|
6007
6028
|
_headers=_headers,
|
|
@@ -6029,6 +6050,7 @@ class ConversationLogsApi:
|
|
|
6029
6050
|
self,
|
|
6030
6051
|
username: Annotated[StrictStr, Field(description="Username of user who owns the conversation")],
|
|
6031
6052
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
6053
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'lifetime' (monotonic, includes incognito, never decrements, default) or 'live' (currently stored, affected by deletes/retention)")] = None,
|
|
6032
6054
|
_request_timeout: Union[
|
|
6033
6055
|
None,
|
|
6034
6056
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6050,6 +6072,8 @@ class ConversationLogsApi:
|
|
|
6050
6072
|
:type username: str
|
|
6051
6073
|
:param dataset: Dataset of the conversation
|
|
6052
6074
|
:type dataset: str
|
|
6075
|
+
:param view: Stats view: 'lifetime' (monotonic, includes incognito, never decrements, default) or 'live' (currently stored, affected by deletes/retention)
|
|
6076
|
+
:type view: str
|
|
6053
6077
|
:param _request_timeout: timeout setting for this request. If one
|
|
6054
6078
|
number provided, it will be total request
|
|
6055
6079
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6075,6 +6099,7 @@ class ConversationLogsApi:
|
|
|
6075
6099
|
_param = self._get_conversation_stats_serialize(
|
|
6076
6100
|
username=username,
|
|
6077
6101
|
dataset=dataset,
|
|
6102
|
+
view=view,
|
|
6078
6103
|
_request_auth=_request_auth,
|
|
6079
6104
|
_content_type=_content_type,
|
|
6080
6105
|
_headers=_headers,
|
|
@@ -6102,6 +6127,7 @@ class ConversationLogsApi:
|
|
|
6102
6127
|
self,
|
|
6103
6128
|
username: Annotated[StrictStr, Field(description="Username of user who owns the conversation")],
|
|
6104
6129
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
6130
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'lifetime' (monotonic, includes incognito, never decrements, default) or 'live' (currently stored, affected by deletes/retention)")] = None,
|
|
6105
6131
|
_request_timeout: Union[
|
|
6106
6132
|
None,
|
|
6107
6133
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6123,6 +6149,8 @@ class ConversationLogsApi:
|
|
|
6123
6149
|
:type username: str
|
|
6124
6150
|
:param dataset: Dataset of the conversation
|
|
6125
6151
|
:type dataset: str
|
|
6152
|
+
:param view: Stats view: 'lifetime' (monotonic, includes incognito, never decrements, default) or 'live' (currently stored, affected by deletes/retention)
|
|
6153
|
+
:type view: str
|
|
6126
6154
|
:param _request_timeout: timeout setting for this request. If one
|
|
6127
6155
|
number provided, it will be total request
|
|
6128
6156
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6148,6 +6176,7 @@ class ConversationLogsApi:
|
|
|
6148
6176
|
_param = self._get_conversation_stats_serialize(
|
|
6149
6177
|
username=username,
|
|
6150
6178
|
dataset=dataset,
|
|
6179
|
+
view=view,
|
|
6151
6180
|
_request_auth=_request_auth,
|
|
6152
6181
|
_content_type=_content_type,
|
|
6153
6182
|
_headers=_headers,
|
|
@@ -6170,6 +6199,7 @@ class ConversationLogsApi:
|
|
|
6170
6199
|
self,
|
|
6171
6200
|
username,
|
|
6172
6201
|
dataset,
|
|
6202
|
+
view,
|
|
6173
6203
|
_request_auth,
|
|
6174
6204
|
_content_type,
|
|
6175
6205
|
_headers,
|
|
@@ -6200,6 +6230,10 @@ class ConversationLogsApi:
|
|
|
6200
6230
|
|
|
6201
6231
|
_query_params.append(('dataset', dataset))
|
|
6202
6232
|
|
|
6233
|
+
if view is not None:
|
|
6234
|
+
|
|
6235
|
+
_query_params.append(('view', view))
|
|
6236
|
+
|
|
6203
6237
|
# process the header parameters
|
|
6204
6238
|
# process the form parameters
|
|
6205
6239
|
# process the body parameter
|
|
@@ -6818,6 +6852,7 @@ class ConversationLogsApi:
|
|
|
6818
6852
|
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
6819
6853
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
6820
6854
|
is_accumulative: Annotated[Optional[StrictBool], Field(description="Return cumulative stats over time")] = None,
|
|
6855
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
6821
6856
|
_request_timeout: Union[
|
|
6822
6857
|
None,
|
|
6823
6858
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6841,6 +6876,8 @@ class ConversationLogsApi:
|
|
|
6841
6876
|
:type dataset: str
|
|
6842
6877
|
:param is_accumulative: Return cumulative stats over time
|
|
6843
6878
|
:type is_accumulative: bool
|
|
6879
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
6880
|
+
:type view: str
|
|
6844
6881
|
:param _request_timeout: timeout setting for this request. If one
|
|
6845
6882
|
number provided, it will be total request
|
|
6846
6883
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6867,6 +6904,7 @@ class ConversationLogsApi:
|
|
|
6867
6904
|
username=username,
|
|
6868
6905
|
dataset=dataset,
|
|
6869
6906
|
is_accumulative=is_accumulative,
|
|
6907
|
+
view=view,
|
|
6870
6908
|
_request_auth=_request_auth,
|
|
6871
6909
|
_content_type=_content_type,
|
|
6872
6910
|
_headers=_headers,
|
|
@@ -6895,6 +6933,7 @@ class ConversationLogsApi:
|
|
|
6895
6933
|
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
6896
6934
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
6897
6935
|
is_accumulative: Annotated[Optional[StrictBool], Field(description="Return cumulative stats over time")] = None,
|
|
6936
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
6898
6937
|
_request_timeout: Union[
|
|
6899
6938
|
None,
|
|
6900
6939
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6918,6 +6957,8 @@ class ConversationLogsApi:
|
|
|
6918
6957
|
:type dataset: str
|
|
6919
6958
|
:param is_accumulative: Return cumulative stats over time
|
|
6920
6959
|
:type is_accumulative: bool
|
|
6960
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
6961
|
+
:type view: str
|
|
6921
6962
|
:param _request_timeout: timeout setting for this request. If one
|
|
6922
6963
|
number provided, it will be total request
|
|
6923
6964
|
timeout. It can also be a pair (tuple) of
|
|
@@ -6944,6 +6985,7 @@ class ConversationLogsApi:
|
|
|
6944
6985
|
username=username,
|
|
6945
6986
|
dataset=dataset,
|
|
6946
6987
|
is_accumulative=is_accumulative,
|
|
6988
|
+
view=view,
|
|
6947
6989
|
_request_auth=_request_auth,
|
|
6948
6990
|
_content_type=_content_type,
|
|
6949
6991
|
_headers=_headers,
|
|
@@ -6972,6 +7014,7 @@ class ConversationLogsApi:
|
|
|
6972
7014
|
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
6973
7015
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
6974
7016
|
is_accumulative: Annotated[Optional[StrictBool], Field(description="Return cumulative stats over time")] = None,
|
|
7017
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
6975
7018
|
_request_timeout: Union[
|
|
6976
7019
|
None,
|
|
6977
7020
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6995,6 +7038,8 @@ class ConversationLogsApi:
|
|
|
6995
7038
|
:type dataset: str
|
|
6996
7039
|
:param is_accumulative: Return cumulative stats over time
|
|
6997
7040
|
:type is_accumulative: bool
|
|
7041
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
7042
|
+
:type view: str
|
|
6998
7043
|
:param _request_timeout: timeout setting for this request. If one
|
|
6999
7044
|
number provided, it will be total request
|
|
7000
7045
|
timeout. It can also be a pair (tuple) of
|
|
@@ -7021,6 +7066,7 @@ class ConversationLogsApi:
|
|
|
7021
7066
|
username=username,
|
|
7022
7067
|
dataset=dataset,
|
|
7023
7068
|
is_accumulative=is_accumulative,
|
|
7069
|
+
view=view,
|
|
7024
7070
|
_request_auth=_request_auth,
|
|
7025
7071
|
_content_type=_content_type,
|
|
7026
7072
|
_headers=_headers,
|
|
@@ -7044,6 +7090,7 @@ class ConversationLogsApi:
|
|
|
7044
7090
|
username,
|
|
7045
7091
|
dataset,
|
|
7046
7092
|
is_accumulative,
|
|
7093
|
+
view,
|
|
7047
7094
|
_request_auth,
|
|
7048
7095
|
_content_type,
|
|
7049
7096
|
_headers,
|
|
@@ -7078,6 +7125,10 @@ class ConversationLogsApi:
|
|
|
7078
7125
|
|
|
7079
7126
|
_query_params.append(('isAccumulative', is_accumulative))
|
|
7080
7127
|
|
|
7128
|
+
if view is not None:
|
|
7129
|
+
|
|
7130
|
+
_query_params.append(('view', view))
|
|
7131
|
+
|
|
7081
7132
|
# process the header parameters
|
|
7082
7133
|
# process the form parameters
|
|
7083
7134
|
# process the body parameter
|
|
@@ -8994,6 +9045,7 @@ class ConversationLogsApi:
|
|
|
8994
9045
|
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
8995
9046
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
8996
9047
|
is_accumulative: Annotated[Optional[StrictBool], Field(description="Return cumulative stats over time")] = None,
|
|
9048
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
8997
9049
|
_request_timeout: Union[
|
|
8998
9050
|
None,
|
|
8999
9051
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -9009,7 +9061,7 @@ class ConversationLogsApi:
|
|
|
9009
9061
|
) -> MessagesStatsPerDayResponse:
|
|
9010
9062
|
"""Get Messages Stats By Time
|
|
9011
9063
|
|
|
9012
|
-
Get
|
|
9064
|
+
Get message stats by time
|
|
9013
9065
|
|
|
9014
9066
|
:param username: Username of user who owns the conversation
|
|
9015
9067
|
:type username: str
|
|
@@ -9017,6 +9069,8 @@ class ConversationLogsApi:
|
|
|
9017
9069
|
:type dataset: str
|
|
9018
9070
|
:param is_accumulative: Return cumulative stats over time
|
|
9019
9071
|
:type is_accumulative: bool
|
|
9072
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
9073
|
+
:type view: str
|
|
9020
9074
|
:param _request_timeout: timeout setting for this request. If one
|
|
9021
9075
|
number provided, it will be total request
|
|
9022
9076
|
timeout. It can also be a pair (tuple) of
|
|
@@ -9043,6 +9097,7 @@ class ConversationLogsApi:
|
|
|
9043
9097
|
username=username,
|
|
9044
9098
|
dataset=dataset,
|
|
9045
9099
|
is_accumulative=is_accumulative,
|
|
9100
|
+
view=view,
|
|
9046
9101
|
_request_auth=_request_auth,
|
|
9047
9102
|
_content_type=_content_type,
|
|
9048
9103
|
_headers=_headers,
|
|
@@ -9071,6 +9126,7 @@ class ConversationLogsApi:
|
|
|
9071
9126
|
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
9072
9127
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
9073
9128
|
is_accumulative: Annotated[Optional[StrictBool], Field(description="Return cumulative stats over time")] = None,
|
|
9129
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
9074
9130
|
_request_timeout: Union[
|
|
9075
9131
|
None,
|
|
9076
9132
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -9086,7 +9142,7 @@ class ConversationLogsApi:
|
|
|
9086
9142
|
) -> ApiResponse[MessagesStatsPerDayResponse]:
|
|
9087
9143
|
"""Get Messages Stats By Time
|
|
9088
9144
|
|
|
9089
|
-
Get
|
|
9145
|
+
Get message stats by time
|
|
9090
9146
|
|
|
9091
9147
|
:param username: Username of user who owns the conversation
|
|
9092
9148
|
:type username: str
|
|
@@ -9094,6 +9150,8 @@ class ConversationLogsApi:
|
|
|
9094
9150
|
:type dataset: str
|
|
9095
9151
|
:param is_accumulative: Return cumulative stats over time
|
|
9096
9152
|
:type is_accumulative: bool
|
|
9153
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
9154
|
+
:type view: str
|
|
9097
9155
|
:param _request_timeout: timeout setting for this request. If one
|
|
9098
9156
|
number provided, it will be total request
|
|
9099
9157
|
timeout. It can also be a pair (tuple) of
|
|
@@ -9120,6 +9178,7 @@ class ConversationLogsApi:
|
|
|
9120
9178
|
username=username,
|
|
9121
9179
|
dataset=dataset,
|
|
9122
9180
|
is_accumulative=is_accumulative,
|
|
9181
|
+
view=view,
|
|
9123
9182
|
_request_auth=_request_auth,
|
|
9124
9183
|
_content_type=_content_type,
|
|
9125
9184
|
_headers=_headers,
|
|
@@ -9148,6 +9207,7 @@ class ConversationLogsApi:
|
|
|
9148
9207
|
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
9149
9208
|
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
9150
9209
|
is_accumulative: Annotated[Optional[StrictBool], Field(description="Return cumulative stats over time")] = None,
|
|
9210
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
9151
9211
|
_request_timeout: Union[
|
|
9152
9212
|
None,
|
|
9153
9213
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -9163,7 +9223,7 @@ class ConversationLogsApi:
|
|
|
9163
9223
|
) -> RESTResponseType:
|
|
9164
9224
|
"""Get Messages Stats By Time
|
|
9165
9225
|
|
|
9166
|
-
Get
|
|
9226
|
+
Get message stats by time
|
|
9167
9227
|
|
|
9168
9228
|
:param username: Username of user who owns the conversation
|
|
9169
9229
|
:type username: str
|
|
@@ -9171,6 +9231,8 @@ class ConversationLogsApi:
|
|
|
9171
9231
|
:type dataset: str
|
|
9172
9232
|
:param is_accumulative: Return cumulative stats over time
|
|
9173
9233
|
:type is_accumulative: bool
|
|
9234
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
9235
|
+
:type view: str
|
|
9174
9236
|
:param _request_timeout: timeout setting for this request. If one
|
|
9175
9237
|
number provided, it will be total request
|
|
9176
9238
|
timeout. It can also be a pair (tuple) of
|
|
@@ -9197,6 +9259,7 @@ class ConversationLogsApi:
|
|
|
9197
9259
|
username=username,
|
|
9198
9260
|
dataset=dataset,
|
|
9199
9261
|
is_accumulative=is_accumulative,
|
|
9262
|
+
view=view,
|
|
9200
9263
|
_request_auth=_request_auth,
|
|
9201
9264
|
_content_type=_content_type,
|
|
9202
9265
|
_headers=_headers,
|
|
@@ -9220,6 +9283,7 @@ class ConversationLogsApi:
|
|
|
9220
9283
|
username,
|
|
9221
9284
|
dataset,
|
|
9222
9285
|
is_accumulative,
|
|
9286
|
+
view,
|
|
9223
9287
|
_request_auth,
|
|
9224
9288
|
_content_type,
|
|
9225
9289
|
_headers,
|
|
@@ -9254,6 +9318,10 @@ class ConversationLogsApi:
|
|
|
9254
9318
|
|
|
9255
9319
|
_query_params.append(('isAccumulative', is_accumulative))
|
|
9256
9320
|
|
|
9321
|
+
if view is not None:
|
|
9322
|
+
|
|
9323
|
+
_query_params.append(('view', view))
|
|
9324
|
+
|
|
9257
9325
|
# process the header parameters
|
|
9258
9326
|
# process the form parameters
|
|
9259
9327
|
# process the body parameter
|
|
@@ -9296,6 +9364,7 @@ class ConversationLogsApi:
|
|
|
9296
9364
|
def get_overall_conversation_message_stats(
|
|
9297
9365
|
self,
|
|
9298
9366
|
username: Annotated[StrictStr, Field(description="Username of user who owns the conversations")],
|
|
9367
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
9299
9368
|
_request_timeout: Union[
|
|
9300
9369
|
None,
|
|
9301
9370
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -9315,6 +9384,8 @@ class ConversationLogsApi:
|
|
|
9315
9384
|
|
|
9316
9385
|
:param username: Username of user who owns the conversations (required)
|
|
9317
9386
|
:type username: str
|
|
9387
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
9388
|
+
:type view: str
|
|
9318
9389
|
:param _request_timeout: timeout setting for this request. If one
|
|
9319
9390
|
number provided, it will be total request
|
|
9320
9391
|
timeout. It can also be a pair (tuple) of
|
|
@@ -9339,6 +9410,7 @@ class ConversationLogsApi:
|
|
|
9339
9410
|
|
|
9340
9411
|
_param = self._get_overall_conversation_message_stats_serialize(
|
|
9341
9412
|
username=username,
|
|
9413
|
+
view=view,
|
|
9342
9414
|
_request_auth=_request_auth,
|
|
9343
9415
|
_content_type=_content_type,
|
|
9344
9416
|
_headers=_headers,
|
|
@@ -9365,6 +9437,7 @@ class ConversationLogsApi:
|
|
|
9365
9437
|
def get_overall_conversation_message_stats_with_http_info(
|
|
9366
9438
|
self,
|
|
9367
9439
|
username: Annotated[StrictStr, Field(description="Username of user who owns the conversations")],
|
|
9440
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
9368
9441
|
_request_timeout: Union[
|
|
9369
9442
|
None,
|
|
9370
9443
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -9384,6 +9457,8 @@ class ConversationLogsApi:
|
|
|
9384
9457
|
|
|
9385
9458
|
:param username: Username of user who owns the conversations (required)
|
|
9386
9459
|
:type username: str
|
|
9460
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
9461
|
+
:type view: str
|
|
9387
9462
|
:param _request_timeout: timeout setting for this request. If one
|
|
9388
9463
|
number provided, it will be total request
|
|
9389
9464
|
timeout. It can also be a pair (tuple) of
|
|
@@ -9408,6 +9483,7 @@ class ConversationLogsApi:
|
|
|
9408
9483
|
|
|
9409
9484
|
_param = self._get_overall_conversation_message_stats_serialize(
|
|
9410
9485
|
username=username,
|
|
9486
|
+
view=view,
|
|
9411
9487
|
_request_auth=_request_auth,
|
|
9412
9488
|
_content_type=_content_type,
|
|
9413
9489
|
_headers=_headers,
|
|
@@ -9434,6 +9510,7 @@ class ConversationLogsApi:
|
|
|
9434
9510
|
def get_overall_conversation_message_stats_without_preload_content(
|
|
9435
9511
|
self,
|
|
9436
9512
|
username: Annotated[StrictStr, Field(description="Username of user who owns the conversations")],
|
|
9513
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
9437
9514
|
_request_timeout: Union[
|
|
9438
9515
|
None,
|
|
9439
9516
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -9453,6 +9530,8 @@ class ConversationLogsApi:
|
|
|
9453
9530
|
|
|
9454
9531
|
:param username: Username of user who owns the conversations (required)
|
|
9455
9532
|
:type username: str
|
|
9533
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
9534
|
+
:type view: str
|
|
9456
9535
|
:param _request_timeout: timeout setting for this request. If one
|
|
9457
9536
|
number provided, it will be total request
|
|
9458
9537
|
timeout. It can also be a pair (tuple) of
|
|
@@ -9477,6 +9556,7 @@ class ConversationLogsApi:
|
|
|
9477
9556
|
|
|
9478
9557
|
_param = self._get_overall_conversation_message_stats_serialize(
|
|
9479
9558
|
username=username,
|
|
9559
|
+
view=view,
|
|
9480
9560
|
_request_auth=_request_auth,
|
|
9481
9561
|
_content_type=_content_type,
|
|
9482
9562
|
_headers=_headers,
|
|
@@ -9498,6 +9578,7 @@ class ConversationLogsApi:
|
|
|
9498
9578
|
def _get_overall_conversation_message_stats_serialize(
|
|
9499
9579
|
self,
|
|
9500
9580
|
username,
|
|
9581
|
+
view,
|
|
9501
9582
|
_request_auth,
|
|
9502
9583
|
_content_type,
|
|
9503
9584
|
_headers,
|
|
@@ -9524,6 +9605,10 @@ class ConversationLogsApi:
|
|
|
9524
9605
|
|
|
9525
9606
|
_query_params.append(('username', username))
|
|
9526
9607
|
|
|
9608
|
+
if view is not None:
|
|
9609
|
+
|
|
9610
|
+
_query_params.append(('view', view))
|
|
9611
|
+
|
|
9527
9612
|
# process the header parameters
|
|
9528
9613
|
# process the form parameters
|
|
9529
9614
|
# process the body parameter
|
|
@@ -10202,6 +10287,327 @@ class ConversationLogsApi:
|
|
|
10202
10287
|
|
|
10203
10288
|
|
|
10204
10289
|
|
|
10290
|
+
@validate_call
|
|
10291
|
+
def get_user_message_stats_by_time(
|
|
10292
|
+
self,
|
|
10293
|
+
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
10294
|
+
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
10295
|
+
is_accumulative: Annotated[Optional[StrictBool], Field(description="Ignored for distinct user counts")] = None,
|
|
10296
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
10297
|
+
_request_timeout: Union[
|
|
10298
|
+
None,
|
|
10299
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
10300
|
+
Tuple[
|
|
10301
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
10302
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
10303
|
+
]
|
|
10304
|
+
] = None,
|
|
10305
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
10306
|
+
_content_type: Optional[StrictStr] = None,
|
|
10307
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10308
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10309
|
+
) -> MessagesStatsPerDayResponse:
|
|
10310
|
+
"""Get User Message Stats By Time
|
|
10311
|
+
|
|
10312
|
+
Get distinct user counts per day
|
|
10313
|
+
|
|
10314
|
+
:param username: Username of user who owns the conversation
|
|
10315
|
+
:type username: str
|
|
10316
|
+
:param dataset: Dataset of the conversation
|
|
10317
|
+
:type dataset: str
|
|
10318
|
+
:param is_accumulative: Ignored for distinct user counts
|
|
10319
|
+
:type is_accumulative: bool
|
|
10320
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
10321
|
+
:type view: str
|
|
10322
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
10323
|
+
number provided, it will be total request
|
|
10324
|
+
timeout. It can also be a pair (tuple) of
|
|
10325
|
+
(connection, read) timeouts.
|
|
10326
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
10327
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
10328
|
+
request; this effectively ignores the
|
|
10329
|
+
authentication in the spec for a single request.
|
|
10330
|
+
:type _request_auth: dict, optional
|
|
10331
|
+
:param _content_type: force content-type for the request.
|
|
10332
|
+
:type _content_type: str, Optional
|
|
10333
|
+
:param _headers: set to override the headers for a single
|
|
10334
|
+
request; this effectively ignores the headers
|
|
10335
|
+
in the spec for a single request.
|
|
10336
|
+
:type _headers: dict, optional
|
|
10337
|
+
:param _host_index: set to override the host_index for a single
|
|
10338
|
+
request; this effectively ignores the host_index
|
|
10339
|
+
in the spec for a single request.
|
|
10340
|
+
:type _host_index: int, optional
|
|
10341
|
+
:return: Returns the result object.
|
|
10342
|
+
""" # noqa: E501
|
|
10343
|
+
|
|
10344
|
+
_param = self._get_user_message_stats_by_time_serialize(
|
|
10345
|
+
username=username,
|
|
10346
|
+
dataset=dataset,
|
|
10347
|
+
is_accumulative=is_accumulative,
|
|
10348
|
+
view=view,
|
|
10349
|
+
_request_auth=_request_auth,
|
|
10350
|
+
_content_type=_content_type,
|
|
10351
|
+
_headers=_headers,
|
|
10352
|
+
_host_index=_host_index
|
|
10353
|
+
)
|
|
10354
|
+
|
|
10355
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
10356
|
+
'200': "MessagesStatsPerDayResponse",
|
|
10357
|
+
'404': None,
|
|
10358
|
+
'422': "HTTPValidationError",
|
|
10359
|
+
}
|
|
10360
|
+
response_data = self.api_client.call_api(
|
|
10361
|
+
*_param,
|
|
10362
|
+
_request_timeout=_request_timeout
|
|
10363
|
+
)
|
|
10364
|
+
response_data.read()
|
|
10365
|
+
return self.api_client.response_deserialize(
|
|
10366
|
+
response_data=response_data,
|
|
10367
|
+
response_types_map=_response_types_map,
|
|
10368
|
+
).data
|
|
10369
|
+
|
|
10370
|
+
|
|
10371
|
+
@validate_call
|
|
10372
|
+
def get_user_message_stats_by_time_with_http_info(
|
|
10373
|
+
self,
|
|
10374
|
+
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
10375
|
+
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
10376
|
+
is_accumulative: Annotated[Optional[StrictBool], Field(description="Ignored for distinct user counts")] = None,
|
|
10377
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
10378
|
+
_request_timeout: Union[
|
|
10379
|
+
None,
|
|
10380
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
10381
|
+
Tuple[
|
|
10382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
10383
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
10384
|
+
]
|
|
10385
|
+
] = None,
|
|
10386
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
10387
|
+
_content_type: Optional[StrictStr] = None,
|
|
10388
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10389
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10390
|
+
) -> ApiResponse[MessagesStatsPerDayResponse]:
|
|
10391
|
+
"""Get User Message Stats By Time
|
|
10392
|
+
|
|
10393
|
+
Get distinct user counts per day
|
|
10394
|
+
|
|
10395
|
+
:param username: Username of user who owns the conversation
|
|
10396
|
+
:type username: str
|
|
10397
|
+
:param dataset: Dataset of the conversation
|
|
10398
|
+
:type dataset: str
|
|
10399
|
+
:param is_accumulative: Ignored for distinct user counts
|
|
10400
|
+
:type is_accumulative: bool
|
|
10401
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
10402
|
+
:type view: str
|
|
10403
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
10404
|
+
number provided, it will be total request
|
|
10405
|
+
timeout. It can also be a pair (tuple) of
|
|
10406
|
+
(connection, read) timeouts.
|
|
10407
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
10408
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
10409
|
+
request; this effectively ignores the
|
|
10410
|
+
authentication in the spec for a single request.
|
|
10411
|
+
:type _request_auth: dict, optional
|
|
10412
|
+
:param _content_type: force content-type for the request.
|
|
10413
|
+
:type _content_type: str, Optional
|
|
10414
|
+
:param _headers: set to override the headers for a single
|
|
10415
|
+
request; this effectively ignores the headers
|
|
10416
|
+
in the spec for a single request.
|
|
10417
|
+
:type _headers: dict, optional
|
|
10418
|
+
:param _host_index: set to override the host_index for a single
|
|
10419
|
+
request; this effectively ignores the host_index
|
|
10420
|
+
in the spec for a single request.
|
|
10421
|
+
:type _host_index: int, optional
|
|
10422
|
+
:return: Returns the result object.
|
|
10423
|
+
""" # noqa: E501
|
|
10424
|
+
|
|
10425
|
+
_param = self._get_user_message_stats_by_time_serialize(
|
|
10426
|
+
username=username,
|
|
10427
|
+
dataset=dataset,
|
|
10428
|
+
is_accumulative=is_accumulative,
|
|
10429
|
+
view=view,
|
|
10430
|
+
_request_auth=_request_auth,
|
|
10431
|
+
_content_type=_content_type,
|
|
10432
|
+
_headers=_headers,
|
|
10433
|
+
_host_index=_host_index
|
|
10434
|
+
)
|
|
10435
|
+
|
|
10436
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
10437
|
+
'200': "MessagesStatsPerDayResponse",
|
|
10438
|
+
'404': None,
|
|
10439
|
+
'422': "HTTPValidationError",
|
|
10440
|
+
}
|
|
10441
|
+
response_data = self.api_client.call_api(
|
|
10442
|
+
*_param,
|
|
10443
|
+
_request_timeout=_request_timeout
|
|
10444
|
+
)
|
|
10445
|
+
response_data.read()
|
|
10446
|
+
return self.api_client.response_deserialize(
|
|
10447
|
+
response_data=response_data,
|
|
10448
|
+
response_types_map=_response_types_map,
|
|
10449
|
+
)
|
|
10450
|
+
|
|
10451
|
+
|
|
10452
|
+
@validate_call
|
|
10453
|
+
def get_user_message_stats_by_time_without_preload_content(
|
|
10454
|
+
self,
|
|
10455
|
+
username: Annotated[Optional[StrictStr], Field(description="Username of user who owns the conversation")] = None,
|
|
10456
|
+
dataset: Annotated[Optional[StrictStr], Field(description="Dataset of the conversation")] = None,
|
|
10457
|
+
is_accumulative: Annotated[Optional[StrictBool], Field(description="Ignored for distinct user counts")] = None,
|
|
10458
|
+
view: Annotated[Optional[StrictStr], Field(description="Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)")] = None,
|
|
10459
|
+
_request_timeout: Union[
|
|
10460
|
+
None,
|
|
10461
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
10462
|
+
Tuple[
|
|
10463
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
10464
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
10465
|
+
]
|
|
10466
|
+
] = None,
|
|
10467
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
10468
|
+
_content_type: Optional[StrictStr] = None,
|
|
10469
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
10470
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
10471
|
+
) -> RESTResponseType:
|
|
10472
|
+
"""Get User Message Stats By Time
|
|
10473
|
+
|
|
10474
|
+
Get distinct user counts per day
|
|
10475
|
+
|
|
10476
|
+
:param username: Username of user who owns the conversation
|
|
10477
|
+
:type username: str
|
|
10478
|
+
:param dataset: Dataset of the conversation
|
|
10479
|
+
:type dataset: str
|
|
10480
|
+
:param is_accumulative: Ignored for distinct user counts
|
|
10481
|
+
:type is_accumulative: bool
|
|
10482
|
+
:param view: Stats view: 'live' (currently stored, default) or 'lifetime' (monotonic, includes incognito, never decrements)
|
|
10483
|
+
:type view: str
|
|
10484
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
10485
|
+
number provided, it will be total request
|
|
10486
|
+
timeout. It can also be a pair (tuple) of
|
|
10487
|
+
(connection, read) timeouts.
|
|
10488
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
10489
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
10490
|
+
request; this effectively ignores the
|
|
10491
|
+
authentication in the spec for a single request.
|
|
10492
|
+
:type _request_auth: dict, optional
|
|
10493
|
+
:param _content_type: force content-type for the request.
|
|
10494
|
+
:type _content_type: str, Optional
|
|
10495
|
+
:param _headers: set to override the headers for a single
|
|
10496
|
+
request; this effectively ignores the headers
|
|
10497
|
+
in the spec for a single request.
|
|
10498
|
+
:type _headers: dict, optional
|
|
10499
|
+
:param _host_index: set to override the host_index for a single
|
|
10500
|
+
request; this effectively ignores the host_index
|
|
10501
|
+
in the spec for a single request.
|
|
10502
|
+
:type _host_index: int, optional
|
|
10503
|
+
:return: Returns the result object.
|
|
10504
|
+
""" # noqa: E501
|
|
10505
|
+
|
|
10506
|
+
_param = self._get_user_message_stats_by_time_serialize(
|
|
10507
|
+
username=username,
|
|
10508
|
+
dataset=dataset,
|
|
10509
|
+
is_accumulative=is_accumulative,
|
|
10510
|
+
view=view,
|
|
10511
|
+
_request_auth=_request_auth,
|
|
10512
|
+
_content_type=_content_type,
|
|
10513
|
+
_headers=_headers,
|
|
10514
|
+
_host_index=_host_index
|
|
10515
|
+
)
|
|
10516
|
+
|
|
10517
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
10518
|
+
'200': "MessagesStatsPerDayResponse",
|
|
10519
|
+
'404': None,
|
|
10520
|
+
'422': "HTTPValidationError",
|
|
10521
|
+
}
|
|
10522
|
+
response_data = self.api_client.call_api(
|
|
10523
|
+
*_param,
|
|
10524
|
+
_request_timeout=_request_timeout
|
|
10525
|
+
)
|
|
10526
|
+
return response_data.response
|
|
10527
|
+
|
|
10528
|
+
|
|
10529
|
+
def _get_user_message_stats_by_time_serialize(
|
|
10530
|
+
self,
|
|
10531
|
+
username,
|
|
10532
|
+
dataset,
|
|
10533
|
+
is_accumulative,
|
|
10534
|
+
view,
|
|
10535
|
+
_request_auth,
|
|
10536
|
+
_content_type,
|
|
10537
|
+
_headers,
|
|
10538
|
+
_host_index,
|
|
10539
|
+
) -> RequestSerialized:
|
|
10540
|
+
|
|
10541
|
+
_host = None
|
|
10542
|
+
|
|
10543
|
+
_collection_formats: Dict[str, str] = {
|
|
10544
|
+
}
|
|
10545
|
+
|
|
10546
|
+
_path_params: Dict[str, str] = {}
|
|
10547
|
+
_query_params: List[Tuple[str, str]] = []
|
|
10548
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
10549
|
+
_form_params: List[Tuple[str, str]] = []
|
|
10550
|
+
_files: Dict[
|
|
10551
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
10552
|
+
] = {}
|
|
10553
|
+
_body_params: Optional[bytes] = None
|
|
10554
|
+
|
|
10555
|
+
# process the path parameters
|
|
10556
|
+
# process the query parameters
|
|
10557
|
+
if username is not None:
|
|
10558
|
+
|
|
10559
|
+
_query_params.append(('username', username))
|
|
10560
|
+
|
|
10561
|
+
if dataset is not None:
|
|
10562
|
+
|
|
10563
|
+
_query_params.append(('dataset', dataset))
|
|
10564
|
+
|
|
10565
|
+
if is_accumulative is not None:
|
|
10566
|
+
|
|
10567
|
+
_query_params.append(('isAccumulative', is_accumulative))
|
|
10568
|
+
|
|
10569
|
+
if view is not None:
|
|
10570
|
+
|
|
10571
|
+
_query_params.append(('view', view))
|
|
10572
|
+
|
|
10573
|
+
# process the header parameters
|
|
10574
|
+
# process the form parameters
|
|
10575
|
+
# process the body parameter
|
|
10576
|
+
|
|
10577
|
+
|
|
10578
|
+
# set the HTTP header `Accept`
|
|
10579
|
+
if 'Accept' not in _header_params:
|
|
10580
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
10581
|
+
[
|
|
10582
|
+
'application/json'
|
|
10583
|
+
]
|
|
10584
|
+
)
|
|
10585
|
+
|
|
10586
|
+
|
|
10587
|
+
# authentication setting
|
|
10588
|
+
_auth_settings: List[str] = [
|
|
10589
|
+
'QAnswer-Api-Key',
|
|
10590
|
+
'Bearer token'
|
|
10591
|
+
]
|
|
10592
|
+
|
|
10593
|
+
return self.api_client.param_serialize(
|
|
10594
|
+
method='GET',
|
|
10595
|
+
resource_path='/api/conversation/stats/users/time',
|
|
10596
|
+
path_params=_path_params,
|
|
10597
|
+
query_params=_query_params,
|
|
10598
|
+
header_params=_header_params,
|
|
10599
|
+
body=_body_params,
|
|
10600
|
+
post_params=_form_params,
|
|
10601
|
+
files=_files,
|
|
10602
|
+
auth_settings=_auth_settings,
|
|
10603
|
+
collection_formats=_collection_formats,
|
|
10604
|
+
_host=_host,
|
|
10605
|
+
_request_auth=_request_auth
|
|
10606
|
+
)
|
|
10607
|
+
|
|
10608
|
+
|
|
10609
|
+
|
|
10610
|
+
|
|
10205
10611
|
@validate_call
|
|
10206
10612
|
def list_chatbot_feedback(
|
|
10207
10613
|
self,
|
qanswer_sdk/api_client.py
CHANGED
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/0.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/0.657.0.dev0/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
qanswer_sdk/configuration.py
CHANGED
|
@@ -543,7 +543,7 @@ conf = qanswer_sdk.Configuration(
|
|
|
543
543
|
"OS: {env}\n"\
|
|
544
544
|
"Python Version: {pyversion}\n"\
|
|
545
545
|
"Version of the API: 2.0.0\n"\
|
|
546
|
-
"SDK Package Version: 0.
|
|
546
|
+
"SDK Package Version: 0.657.0.dev0".\
|
|
547
547
|
format(env=sys.platform, pyversion=sys.version)
|
|
548
548
|
|
|
549
549
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from qanswer_sdk.models.assistant_category_color_item import AssistantCategoryColorItem
|
|
23
23
|
from qanswer_sdk.models.mcp_tool_dto import McpToolDto
|
|
@@ -38,7 +38,8 @@ class AssistantTemplateWithToolsSelectionDto(BaseModel):
|
|
|
38
38
|
categories: Optional[List[StrictStr]] = None
|
|
39
39
|
categories_with_color: Optional[List[AssistantCategoryColorItem]] = None
|
|
40
40
|
tools_selections: Optional[List[McpToolDto]] = Field(default=None, alias="toolsSelections")
|
|
41
|
-
|
|
41
|
+
favorite: Optional[StrictBool] = False
|
|
42
|
+
__properties: ClassVar[List[str]] = ["id", "username", "dataset", "name", "llm_id", "description", "chat_prompt", "categories", "categories_with_color", "toolsSelections", "favorite"]
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
44
45
|
populate_by_name=True,
|
|
@@ -114,7 +115,8 @@ class AssistantTemplateWithToolsSelectionDto(BaseModel):
|
|
|
114
115
|
"chat_prompt": obj.get("chat_prompt"),
|
|
115
116
|
"categories": obj.get("categories"),
|
|
116
117
|
"categories_with_color": [AssistantCategoryColorItem.from_dict(_item) for _item in obj["categories_with_color"]] if obj.get("categories_with_color") is not None else None,
|
|
117
|
-
"toolsSelections": [McpToolDto.from_dict(_item) for _item in obj["toolsSelections"]] if obj.get("toolsSelections") is not None else None
|
|
118
|
+
"toolsSelections": [McpToolDto.from_dict(_item) for _item in obj["toolsSelections"]] if obj.get("toolsSelections") is not None else None,
|
|
119
|
+
"favorite": obj.get("favorite") if obj.get("favorite") is not None else False
|
|
118
120
|
})
|
|
119
121
|
return _obj
|
|
120
122
|
|
|
@@ -42,7 +42,7 @@ class ConversationMessage(BaseModel):
|
|
|
42
42
|
contents: List[ContentItem]
|
|
43
43
|
message_id: StrictStr
|
|
44
44
|
parent_message_id: Optional[StrictStr] = None
|
|
45
|
-
timestamp: Optional[StrictStr] = '2026-
|
|
45
|
+
timestamp: Optional[StrictStr] = '2026-07-01T13:34:15Z'
|
|
46
46
|
feedback: Optional[StrictInt] = -1
|
|
47
47
|
origin: Optional[StrictStr] = None
|
|
48
48
|
sources: Optional[List[Source]] = Field(default=None, description="All sources referenced in the response")
|
|
@@ -191,7 +191,7 @@ class ConversationMessage(BaseModel):
|
|
|
191
191
|
"contents": [ContentItem.from_dict(_item) for _item in obj["contents"]] if obj.get("contents") is not None else None,
|
|
192
192
|
"message_id": obj.get("message_id"),
|
|
193
193
|
"parent_message_id": obj.get("parent_message_id"),
|
|
194
|
-
"timestamp": obj.get("timestamp") if obj.get("timestamp") is not None else '2026-
|
|
194
|
+
"timestamp": obj.get("timestamp") if obj.get("timestamp") is not None else '2026-07-01T13:34:15Z',
|
|
195
195
|
"feedback": obj.get("feedback") if obj.get("feedback") is not None else -1,
|
|
196
196
|
"origin": obj.get("origin"),
|
|
197
197
|
"sources": [Source.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None,
|
|
@@ -49,7 +49,7 @@ class SocketConversationMessage(BaseModel):
|
|
|
49
49
|
contents: List[ContentItem]
|
|
50
50
|
message_id: StrictStr
|
|
51
51
|
parent_message_id: Optional[StrictStr] = None
|
|
52
|
-
timestamp: Optional[StrictStr] = '2026-
|
|
52
|
+
timestamp: Optional[StrictStr] = '2026-07-01T13:34:15Z'
|
|
53
53
|
feedback: Optional[StrictInt] = -1
|
|
54
54
|
origin: Optional[StrictStr] = None
|
|
55
55
|
sources: Optional[List[Source]] = Field(default=None, description="All sources referenced in the response")
|
|
@@ -205,7 +205,7 @@ class SocketConversationMessage(BaseModel):
|
|
|
205
205
|
"contents": [ContentItem.from_dict(_item) for _item in obj["contents"]] if obj.get("contents") is not None else None,
|
|
206
206
|
"message_id": obj.get("message_id"),
|
|
207
207
|
"parent_message_id": obj.get("parent_message_id"),
|
|
208
|
-
"timestamp": obj.get("timestamp") if obj.get("timestamp") is not None else '2026-
|
|
208
|
+
"timestamp": obj.get("timestamp") if obj.get("timestamp") is not None else '2026-07-01T13:34:15Z',
|
|
209
209
|
"feedback": obj.get("feedback") if obj.get("feedback") is not None else -1,
|
|
210
210
|
"origin": obj.get("origin"),
|
|
211
211
|
"sources": [Source.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qanswer_sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.657.0.dev0
|
|
4
4
|
Summary: Official Python SDK for the QAnswer API
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: The QA Company
|
|
@@ -229,7 +229,7 @@ print(response.answer)
|
|
|
229
229
|
## 📌 Versioning
|
|
230
230
|
|
|
231
231
|
This SDK follows the version of the QAnswer API.
|
|
232
|
-
The current version is: `0.
|
|
232
|
+
The current version is: `0.657.0.dev0 (branch: main)`
|
|
233
233
|
|
|
234
234
|
---
|
|
235
235
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
qanswer_sdk/__init__.py,sha256=
|
|
2
|
-
qanswer_sdk/api_client.py,sha256=
|
|
1
|
+
qanswer_sdk/__init__.py,sha256=jmX3uJcTM3dPJ3m9BZsHrkqIoUasMwFuDGOsN5016lo,77584
|
|
2
|
+
qanswer_sdk/api_client.py,sha256=nJ_JlORyec2wHsF8R-rNnWt2wbhoI3SZw0JQdTonaMQ,27697
|
|
3
3
|
qanswer_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
qanswer_sdk/configuration.py,sha256=
|
|
4
|
+
qanswer_sdk/configuration.py,sha256=dw8rUtaFYiAC6DEBeU7H1KCWi4fIrUzXLcDmZAJMnH8,19304
|
|
5
5
|
qanswer_sdk/exceptions.py,sha256=eaj3lWJNuiAiJEwjc7WfDofDOtAvCjgq0b8DNcJMubs,6389
|
|
6
6
|
qanswer_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
qanswer_sdk/rest.py,sha256=R1a7Y8ivt2-6_hXsuXFU1-XYqN07ZzzgKUhAPICah0k,9383
|
|
8
8
|
qanswer_sdk/api/__init__.py,sha256=eeH_DJdfP0kLMB-z_gBX2nHHYOl87v6yVEsgvV_inSU,3909
|
|
9
9
|
qanswer_sdk/api/admin_api.py,sha256=D5mIRyNxyuotN74UiSn2ahM_Bt9A6A-YnJtbVKwKjqk,298370
|
|
10
10
|
qanswer_sdk/api/ai_assistant_access_rights_api.py,sha256=hl5-fGJKOGCMO6FQvRiZMoU3-eL4ru5dWCFzxzXQm1E,219346
|
|
11
|
-
qanswer_sdk/api/ai_assistant_api.py,sha256=
|
|
11
|
+
qanswer_sdk/api/ai_assistant_api.py,sha256=Qn64KM7kZXeJt-fEL1-SVvnoptgFG9V2cnlXXbq5GnU,418498
|
|
12
12
|
qanswer_sdk/api/anthropic_compatible_api.py,sha256=w1JQfk-UMUw0wHQ8RsugdM9itiU0sz-KMhFivSh0kL4,11332
|
|
13
13
|
qanswer_sdk/api/auto_complete_api.py,sha256=7069tYSx1UegyPCVkDghhPjzJq26znESMOYZFNVH5wQ,21925
|
|
14
14
|
qanswer_sdk/api/bot_slack_api.py,sha256=OeGYhevoKQrzjwmii75f9kIlOmkeknGQfImwwyGHRvk,38240
|
|
@@ -34,7 +34,7 @@ qanswer_sdk/api/connector_website_api.py,sha256=oHNQHmwxdM6v_uGZylsQdLdikHb5rg_5
|
|
|
34
34
|
qanswer_sdk/api/connector_x_wiki_api_api.py,sha256=DbB9PPXTnzkviRhO0iPjO0p2AgfDfxZVh2ysBWbmnP8,50798
|
|
35
35
|
qanswer_sdk/api/connectors_api.py,sha256=hbfudHRjBag3UBfE5AsvBni9nlD8FTXkYDlPL8_SnsU,274642
|
|
36
36
|
qanswer_sdk/api/connectors_data_api.py,sha256=oQ9mGlrrsA18G8ZndJPHqNM8_XrAZg45B0v9oKaL-dc,223389
|
|
37
|
-
qanswer_sdk/api/conversation_logs_api.py,sha256=
|
|
37
|
+
qanswer_sdk/api/conversation_logs_api.py,sha256=3OG6oMWcpwsvJpHDpePwWR9j1h-60w9MroTHptNYjNI,573345
|
|
38
38
|
qanswer_sdk/api/dataset_config_api.py,sha256=hrg077WXSSGTnecVYwCnOmBoJDp9UH_HhY8-tXKuc3k,153938
|
|
39
39
|
qanswer_sdk/api/debug_api.py,sha256=3rxxorlhNRAxRzFShAo6ZHjLobtrsiVvK1XyUlxYON0,10031
|
|
40
40
|
qanswer_sdk/api/default_api.py,sha256=GUkqoKRJsJbTXmRmKgsD9F5xlDRb29qdr4BogyglcWA,28327
|
|
@@ -113,7 +113,7 @@ qanswer_sdk/models/assistant_category_count.py,sha256=EBn4E-oqXRo14rdFoWFdQszn0z
|
|
|
113
113
|
qanswer_sdk/models/assistant_message_stop.py,sha256=eNB1xA3QTh5w8xpICxp3Q-tf6wEC2EcYwdlOTxCzt4A,2947
|
|
114
114
|
qanswer_sdk/models/assistant_retention_response.py,sha256=u-XL6ZnL9A0COjNyKjQiC7l9P3tq7Okogqmkb_RAvAI,3239
|
|
115
115
|
qanswer_sdk/models/assistant_task.py,sha256=jor2ixx547H8DKDZNAk_cd1fmJF2Rp2NTSMXBlrSX1c,838
|
|
116
|
-
qanswer_sdk/models/assistant_template_with_tools_selection_dto.py,sha256=
|
|
116
|
+
qanswer_sdk/models/assistant_template_with_tools_selection_dto.py,sha256=sDcQMOK29bD5VMSGvLuFZKAQA_c2KTvNvLMQ9vPp7FE,4821
|
|
117
117
|
qanswer_sdk/models/audio_allowed_file_extensions.py,sha256=UuGJw7R8a3w5YDW5CTV4_3-C4FBT9z9CaaMTncqMAbk,2468
|
|
118
118
|
qanswer_sdk/models/audio_format.py,sha256=4Y-HQE57B7e1fUDy6U5w1tv6X5jWraboPvCY1Za8DEA,652
|
|
119
119
|
qanswer_sdk/models/audio_segment.py,sha256=ef6bZcEJrAZ1FZZaoTvsiyWXBXyOXbQO9cym-zCsdxQ,2844
|
|
@@ -191,7 +191,7 @@ qanswer_sdk/models/connector_type_list_dto.py,sha256=s2NdABUfMV8ZG7lfKLcFXmGCxzi
|
|
|
191
191
|
qanswer_sdk/models/content_item.py,sha256=nO92IeDYPUEI2PLQY1OyFGnMsE27_rHqwvkneDD9n_I,3429
|
|
192
192
|
qanswer_sdk/models/content_item_type.py,sha256=-00UKioLRe4cU9ZI88hSkETMUn57c1xhLnuzvIdEAyc,728
|
|
193
193
|
qanswer_sdk/models/conversation_aggregations_request.py,sha256=-LbE_8GC6yXfS7jSmNVso6Hpz13CUhq1Jb_u_TLyDhw,3932
|
|
194
|
-
qanswer_sdk/models/conversation_message.py,sha256=
|
|
194
|
+
qanswer_sdk/models/conversation_message.py,sha256=2uoSocxvud1PAuTAv6ZYaah_9fC8in9J44ptnI_GJXk,11545
|
|
195
195
|
qanswer_sdk/models/conversation_message_error_key.py,sha256=zy3W1oR5U6MntGIDvWn7oNQk656_peufv6uOB_vKjI4,1370
|
|
196
196
|
qanswer_sdk/models/conversation_message_search_result.py,sha256=ZRaQWVdQr1lkV-GBi8iLUKu2oiaxz1Tbj_QHc9kY8MM,4069
|
|
197
197
|
qanswer_sdk/models/conversation_model.py,sha256=dYS4qc-tN2kuSXIF5-BJoE_Ipl1siX0IWsGJ_yWUjY8,6163
|
|
@@ -523,7 +523,7 @@ qanswer_sdk/models/slot_info_with_latest_version.py,sha256=cF9n3bK7zsr_3Dx7lwdtQ
|
|
|
523
523
|
qanswer_sdk/models/slot_update.py,sha256=Qk7Dng8ptHRE7P6ufqvTtURrRpkvOha59P5z3LLMZW0,5371
|
|
524
524
|
qanswer_sdk/models/socker_join_user.py,sha256=AGmLM2lMQHLeDdobsftEq88WW40QeXyd9NJ5IJ8muHs,2811
|
|
525
525
|
qanswer_sdk/models/socket_audio_transcription_status.py,sha256=7RP-l2gJBzeqq-9pPYUgM_6gd_RrulBBLrgoPh8Cu5g,3744
|
|
526
|
-
qanswer_sdk/models/socket_conversation_message.py,sha256=
|
|
526
|
+
qanswer_sdk/models/socket_conversation_message.py,sha256=rqAr89RspSO99Q2l0qu1Vi8qWsb7GEW2_J6t49-Ys7w,12619
|
|
527
527
|
qanswer_sdk/models/socket_dataset_reindexing_status.py,sha256=0pyUJfQFZDY3fPbPVd--xd3OiX-vzIn6acfnKbNS9QE,3653
|
|
528
528
|
qanswer_sdk/models/socket_events_q_answer.py,sha256=6boOcDBp-fMWcS0VWapA-2JkoHK01pYYHPiIjoOebnA,1665
|
|
529
529
|
qanswer_sdk/models/socket_feedback_evaluation_progress.py,sha256=sT7grMmkDw4-wHN7CpdnIhVQ507qVPoC5PrEvRX0NqY,4262
|
|
@@ -612,7 +612,7 @@ qanswer_sdk/models/website_connector_settings.py,sha256=v6Y-5PhOvbTqNgBIh4BlWDhv
|
|
|
612
612
|
qanswer_sdk/models/widget_configs.py,sha256=NIR6dIdvS9HzIF6KDM0KIL45P6G7fxPrONHV_rxQXoM,3772
|
|
613
613
|
qanswer_sdk/models/x_wiki_add_request.py,sha256=x9slipBe5NFnmhTk9FRGkhBs650nKX7TVmurOlYv-1U,2980
|
|
614
614
|
qanswer_sdk/models/x_wiki_download_by_ids.py,sha256=8aKZf_nzblUiL6GIYo4P9fgweamqcVQf3FVMxtm_mQY,2778
|
|
615
|
-
qanswer_sdk-0.
|
|
616
|
-
qanswer_sdk-0.
|
|
617
|
-
qanswer_sdk-0.
|
|
618
|
-
qanswer_sdk-0.
|
|
615
|
+
qanswer_sdk-0.657.0.dev0.dist-info/METADATA,sha256=ugS4HAOowhpVuQya1K9_HUgpa6Dg0d6aUt0tH5Rrxyc,6532
|
|
616
|
+
qanswer_sdk-0.657.0.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
617
|
+
qanswer_sdk-0.657.0.dev0.dist-info/top_level.txt,sha256=ecFUAGubniI_ARRvzw77tYN2myIRTZ6rR834C4pIccM,12
|
|
618
|
+
qanswer_sdk-0.657.0.dev0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|