qanswer_sdk 3.1509.0__py3-none-any.whl → 3.1511.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.
Files changed (126) hide show
  1. qanswer_sdk/__init__.py +31 -24
  2. qanswer_sdk/api/__init__.py +0 -1
  3. qanswer_sdk/api/admin_api.py +914 -142
  4. qanswer_sdk/api/ai_assistant_access_rights_api.py +883 -280
  5. qanswer_sdk/api/ai_assistant_api.py +289 -61
  6. qanswer_sdk/api/branding_api.py +6 -6
  7. qanswer_sdk/api/connector_website_api.py +287 -0
  8. qanswer_sdk/api/connectors_api.py +863 -11
  9. qanswer_sdk/api/connectors_data_api.py +28 -27
  10. qanswer_sdk/api/mcp_api.py +1103 -469
  11. qanswer_sdk/api/payment_api.py +3 -3
  12. qanswer_sdk/api/socket_api.py +0 -245
  13. qanswer_sdk/api/task_ai_excel_api.py +288 -0
  14. qanswer_sdk/api/task_report_copilot_api.py +49 -122
  15. qanswer_sdk/api/tool_embedder_api.py +552 -1
  16. qanswer_sdk/api/tool_llm_api.py +1059 -10
  17. qanswer_sdk/api/unit_organizations_api.py +1240 -165
  18. qanswer_sdk/api/unit_user_api.py +506 -0
  19. qanswer_sdk/api_client.py +1 -1
  20. qanswer_sdk/configuration.py +1 -1
  21. qanswer_sdk/models/__init__.py +30 -22
  22. qanswer_sdk/models/access_pdf_payload_model.py +6 -4
  23. qanswer_sdk/models/add_qn_a_request.py +5 -3
  24. qanswer_sdk/models/{assistant_template.py → ai_assistant_clone_response.py} +9 -19
  25. qanswer_sdk/models/ai_assistant_dto.py +4 -2
  26. qanswer_sdk/models/ai_assistant_filter_dto.py +3 -1
  27. qanswer_sdk/models/{user_dataset_access_control_origin_header.py → ai_assistant_restricted_domain.py} +8 -8
  28. qanswer_sdk/models/ai_assistant_share_response.py +93 -0
  29. qanswer_sdk/models/api_key_mcp_authentication_config.py +2 -2
  30. qanswer_sdk/models/assistant_template_filter_dto.py +93 -0
  31. qanswer_sdk/models/{relation_extraction_schema.py → assistant_template_with_tools_selection_dto.py} +26 -24
  32. qanswer_sdk/models/audio_file_upload_payload.py +4 -2
  33. qanswer_sdk/models/auto_bot_description_request.py +5 -3
  34. qanswer_sdk/models/chatbot_chat_payload.py +6 -2
  35. qanswer_sdk/models/connector_type_dto.py +101 -0
  36. qanswer_sdk/models/{relation_extraction_data_input.py → connector_type_list_dto.py} +14 -14
  37. qanswer_sdk/models/conversation_message.py +37 -7
  38. qanswer_sdk/models/conversation_model.py +8 -2
  39. qanswer_sdk/models/credits_info_global_dto.py +95 -0
  40. qanswer_sdk/models/credits_info_organization_dto.py +93 -0
  41. qanswer_sdk/models/dataset_detail_kg.py +30 -10
  42. qanswer_sdk/models/dataset_schema.py +5 -1
  43. qanswer_sdk/models/dataset_update_object.py +8 -2
  44. qanswer_sdk/models/document_content_update_model.py +4 -2
  45. qanswer_sdk/models/econsilium_search_index_add_payload.py +3 -1
  46. qanswer_sdk/models/embedder_create_dto.py +9 -3
  47. qanswer_sdk/models/embedder_detailed_dto.py +9 -3
  48. qanswer_sdk/models/embedder_update_dto.py +9 -3
  49. qanswer_sdk/models/{relation_model.py → embedding_endpoint_import_failure.py} +8 -10
  50. qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
  51. qanswer_sdk/models/es_meta_data.py +98 -0
  52. qanswer_sdk/models/{get_file_es_meta_data_response.py → es_meta_data_value.py} +7 -11
  53. qanswer_sdk/models/feedback_update.py +4 -2
  54. qanswer_sdk/models/file_es_meta_data.py +31 -4
  55. qanswer_sdk/models/g_drive_download_request.py +3 -1
  56. qanswer_sdk/models/generate_ai_cells_payload.py +5 -3
  57. qanswer_sdk/models/highlight_audio_payload_model.py +6 -4
  58. qanswer_sdk/models/imap_add_payload.py +4 -2
  59. qanswer_sdk/models/list_socket_events.py +2 -2
  60. qanswer_sdk/models/llm_consumption.py +2 -2
  61. qanswer_sdk/models/llm_create_dto.py +25 -3
  62. qanswer_sdk/models/llm_detailed_dto.py +30 -4
  63. qanswer_sdk/models/llm_dto.py +18 -2
  64. qanswer_sdk/models/llm_endpoint.py +25 -3
  65. qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
  66. qanswer_sdk/models/{relation_extraction_data_output.py → llm_endpoint_import_response.py} +20 -16
  67. qanswer_sdk/models/llm_endpoint_read_input.py +25 -3
  68. qanswer_sdk/models/llm_endpoint_read_output.py +25 -3
  69. qanswer_sdk/models/llm_update_dto.py +25 -3
  70. qanswer_sdk/models/mcp_server.py +153 -0
  71. qanswer_sdk/models/mcp_server_create.py +4 -2
  72. qanswer_sdk/models/mcp_server_dto.py +6 -2
  73. qanswer_sdk/models/mcp_server_update.py +4 -2
  74. qanswer_sdk/models/mcp_tool.py +124 -0
  75. qanswer_sdk/models/mcp_tool_description_update.py +6 -4
  76. qanswer_sdk/models/mcp_tool_dto.py +3 -1
  77. qanswer_sdk/models/one_drive_download_request.py +3 -1
  78. qanswer_sdk/models/one_note_download_request.py +3 -1
  79. qanswer_sdk/models/organization_admin.py +4 -2
  80. qanswer_sdk/models/organization_filter_dto.py +4 -2
  81. qanswer_sdk/models/{relation_value_input.py → organization_mcp_server_setting.py} +29 -24
  82. qanswer_sdk/models/plan_dto.py +16 -4
  83. qanswer_sdk/models/publication_add_payload.py +4 -2
  84. qanswer_sdk/models/rag_payload.py +6 -2
  85. qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +5 -3
  86. qanswer_sdk/models/report_copilot_refinement_payload.py +5 -3
  87. qanswer_sdk/models/report_copilot_slot_feedback_update.py +4 -2
  88. qanswer_sdk/models/report_template.py +3 -1
  89. qanswer_sdk/models/report_template_create_payload.py +4 -2
  90. qanswer_sdk/models/report_template_simplified.py +4 -2
  91. qanswer_sdk/models/report_template_update_payload.py +4 -2
  92. qanswer_sdk/models/report_templates_search_payload.py +104 -0
  93. qanswer_sdk/models/search_payload.py +6 -2
  94. qanswer_sdk/models/share_point_download_request.py +3 -1
  95. qanswer_sdk/models/socket_conversation_message.py +37 -7
  96. qanswer_sdk/models/template_toggle_request.py +5 -5
  97. qanswer_sdk/models/text2_sparql_payload.py +5 -1
  98. qanswer_sdk/models/thinking_block.py +91 -0
  99. qanswer_sdk/models/{subject_model.py → update_cells_payload.py} +10 -10
  100. qanswer_sdk/models/{relation_extraction_configuration.py → update_file_es_meta_data.py} +37 -26
  101. qanswer_sdk/models/{update_metadata_model.py → update_metadata_model_input.py} +7 -7
  102. qanswer_sdk/models/{relation_extraction_task_settings_update_payload.py → update_metadata_model_output.py} +14 -12
  103. qanswer_sdk/models/update_qn_a_pair_request.py +4 -2
  104. qanswer_sdk/models/{relation_extraction_template_payload.py → update_template_cells_payload.py} +19 -15
  105. qanswer_sdk/models/user.py +10 -5
  106. qanswer_sdk/models/user_credits_config_dto.py +95 -0
  107. qanswer_sdk/models/user_credits_dto.py +104 -0
  108. qanswer_sdk/models/user_dataset.py +31 -11
  109. qanswer_sdk/models/{relation_extraction_row_output.py → user_dataset_mcp_tool_selection.py} +33 -26
  110. qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +3 -1
  111. qanswer_sdk/models/user_filter_dto.py +4 -2
  112. qanswer_sdk/models/{relation_extraction_row_input.py → user_mcp_tool_selection.py} +31 -26
  113. qanswer_sdk/models/user_mcp_tool_selection_dto.py +3 -1
  114. qanswer_sdk/models/user_profile_dto.py +16 -4
  115. qanswer_sdk/models/{value_model.py → websearch_scraping_site.py} +11 -17
  116. qanswer_sdk/models/website_add_payload.py +4 -2
  117. {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1511.0.dist-info}/METADATA +2 -2
  118. {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1511.0.dist-info}/RECORD +119 -112
  119. qanswer_sdk/api/task_relation_extraction_api.py +0 -3636
  120. qanswer_sdk/models/export_relation_extraction_table_request.py +0 -97
  121. qanswer_sdk/models/relation_extraction_payload.py +0 -117
  122. qanswer_sdk/models/relation_extraction_task_settings.py +0 -125
  123. qanswer_sdk/models/relation_extraction_task_update.py +0 -125
  124. qanswer_sdk/models/relation_value_output.py +0 -103
  125. qanswer_sdk/models/socket_data_extraction.py +0 -109
  126. {qanswer_sdk-3.1509.0.dist-info → qanswer_sdk-3.1511.0.dist-info}/WHEEL +0 -0
@@ -21,11 +21,13 @@ from typing import List, Optional, Union
21
21
  from qanswer_sdk.models.ai_assistant_dto import AiAssistantDto
22
22
  from qanswer_sdk.models.change_password_admin import ChangePasswordAdmin
23
23
  from qanswer_sdk.models.change_role import ChangeRole
24
+ from qanswer_sdk.models.credits_info_global_dto import CreditsInfoGlobalDto
24
25
  from qanswer_sdk.models.enable_enhanced_context_response import EnableEnhancedContextResponse
25
26
  from qanswer_sdk.models.messages_stats_per_day_response import MessagesStatsPerDayResponse
26
27
  from qanswer_sdk.models.sign_up_request import SignUpRequest
27
28
  from qanswer_sdk.models.stat_per_date import StatPerDate
28
29
  from qanswer_sdk.models.total_stat import TotalStat
30
+ from qanswer_sdk.models.user_credits_config_dto import UserCreditsConfigDto
29
31
 
30
32
  from qanswer_sdk.api_client import ApiClient, RequestSerialized
31
33
  from qanswer_sdk.api_response import ApiResponse
@@ -1975,7 +1977,7 @@ class AdminApi:
1975
1977
  _content_type: Optional[StrictStr] = None,
1976
1978
  _headers: Optional[Dict[StrictStr, Any]] = None,
1977
1979
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1978
- ) -> str:
1980
+ ) -> None:
1979
1981
  """Change the quota for all datasets
1980
1982
 
1981
1983
 
@@ -2024,7 +2026,7 @@ class AdminApi:
2024
2026
  )
2025
2027
 
2026
2028
  _response_types_map: Dict[str, Optional[str]] = {
2027
- '200': "str",
2029
+ '200': None,
2028
2030
  }
2029
2031
  response_data = self.api_client.call_api(
2030
2032
  *_param,
@@ -2057,7 +2059,7 @@ class AdminApi:
2057
2059
  _content_type: Optional[StrictStr] = None,
2058
2060
  _headers: Optional[Dict[StrictStr, Any]] = None,
2059
2061
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2060
- ) -> ApiResponse[str]:
2062
+ ) -> ApiResponse[None]:
2061
2063
  """Change the quota for all datasets
2062
2064
 
2063
2065
 
@@ -2106,7 +2108,7 @@ class AdminApi:
2106
2108
  )
2107
2109
 
2108
2110
  _response_types_map: Dict[str, Optional[str]] = {
2109
- '200': "str",
2111
+ '200': None,
2110
2112
  }
2111
2113
  response_data = self.api_client.call_api(
2112
2114
  *_param,
@@ -2188,7 +2190,7 @@ class AdminApi:
2188
2190
  )
2189
2191
 
2190
2192
  _response_types_map: Dict[str, Optional[str]] = {
2191
- '200': "str",
2193
+ '200': None,
2192
2194
  }
2193
2195
  response_data = self.api_client.call_api(
2194
2196
  *_param,
@@ -2251,13 +2253,6 @@ class AdminApi:
2251
2253
  # process the body parameter
2252
2254
 
2253
2255
 
2254
- # set the HTTP header `Accept`
2255
- if 'Accept' not in _header_params:
2256
- _header_params['Accept'] = self.api_client.select_header_accept(
2257
- [
2258
- '*/*'
2259
- ]
2260
- )
2261
2256
 
2262
2257
 
2263
2258
  # authentication setting
@@ -3143,9 +3138,8 @@ class AdminApi:
3143
3138
 
3144
3139
 
3145
3140
  @validate_call
3146
- def get_statistics_of_conversation_over_time(
3141
+ def get_global_credits(
3147
3142
  self,
3148
- is_accumulative: Optional[StrictBool] = None,
3149
3143
  _request_timeout: Union[
3150
3144
  None,
3151
3145
  Annotated[StrictFloat, Field(gt=0)],
@@ -3158,12 +3152,10 @@ class AdminApi:
3158
3152
  _content_type: Optional[StrictStr] = None,
3159
3153
  _headers: Optional[Dict[StrictStr, Any]] = None,
3160
3154
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3161
- ) -> MessagesStatsPerDayResponse:
3162
- """Get the conversation statistics of all users/datasets over time
3155
+ ) -> CreditsInfoGlobalDto:
3156
+ """Set global credits info
3163
3157
 
3164
3158
 
3165
- :param is_accumulative:
3166
- :type is_accumulative: bool
3167
3159
  :param _request_timeout: timeout setting for this request. If one
3168
3160
  number provided, it will be total request
3169
3161
  timeout. It can also be a pair (tuple) of
@@ -3186,8 +3178,7 @@ class AdminApi:
3186
3178
  :return: Returns the result object.
3187
3179
  """ # noqa: E501
3188
3180
 
3189
- _param = self._get_statistics_of_conversation_over_time_serialize(
3190
- is_accumulative=is_accumulative,
3181
+ _param = self._get_global_credits_serialize(
3191
3182
  _request_auth=_request_auth,
3192
3183
  _content_type=_content_type,
3193
3184
  _headers=_headers,
@@ -3195,7 +3186,7 @@ class AdminApi:
3195
3186
  )
3196
3187
 
3197
3188
  _response_types_map: Dict[str, Optional[str]] = {
3198
- '200': "MessagesStatsPerDayResponse",
3189
+ '200': "CreditsInfoGlobalDto",
3199
3190
  }
3200
3191
  response_data = self.api_client.call_api(
3201
3192
  *_param,
@@ -3209,9 +3200,8 @@ class AdminApi:
3209
3200
 
3210
3201
 
3211
3202
  @validate_call
3212
- def get_statistics_of_conversation_over_time_with_http_info(
3203
+ def get_global_credits_with_http_info(
3213
3204
  self,
3214
- is_accumulative: Optional[StrictBool] = None,
3215
3205
  _request_timeout: Union[
3216
3206
  None,
3217
3207
  Annotated[StrictFloat, Field(gt=0)],
@@ -3224,12 +3214,10 @@ class AdminApi:
3224
3214
  _content_type: Optional[StrictStr] = None,
3225
3215
  _headers: Optional[Dict[StrictStr, Any]] = None,
3226
3216
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3227
- ) -> ApiResponse[MessagesStatsPerDayResponse]:
3228
- """Get the conversation statistics of all users/datasets over time
3217
+ ) -> ApiResponse[CreditsInfoGlobalDto]:
3218
+ """Set global credits info
3229
3219
 
3230
3220
 
3231
- :param is_accumulative:
3232
- :type is_accumulative: bool
3233
3221
  :param _request_timeout: timeout setting for this request. If one
3234
3222
  number provided, it will be total request
3235
3223
  timeout. It can also be a pair (tuple) of
@@ -3252,8 +3240,7 @@ class AdminApi:
3252
3240
  :return: Returns the result object.
3253
3241
  """ # noqa: E501
3254
3242
 
3255
- _param = self._get_statistics_of_conversation_over_time_serialize(
3256
- is_accumulative=is_accumulative,
3243
+ _param = self._get_global_credits_serialize(
3257
3244
  _request_auth=_request_auth,
3258
3245
  _content_type=_content_type,
3259
3246
  _headers=_headers,
@@ -3261,7 +3248,7 @@ class AdminApi:
3261
3248
  )
3262
3249
 
3263
3250
  _response_types_map: Dict[str, Optional[str]] = {
3264
- '200': "MessagesStatsPerDayResponse",
3251
+ '200': "CreditsInfoGlobalDto",
3265
3252
  }
3266
3253
  response_data = self.api_client.call_api(
3267
3254
  *_param,
@@ -3275,9 +3262,8 @@ class AdminApi:
3275
3262
 
3276
3263
 
3277
3264
  @validate_call
3278
- def get_statistics_of_conversation_over_time_without_preload_content(
3265
+ def get_global_credits_without_preload_content(
3279
3266
  self,
3280
- is_accumulative: Optional[StrictBool] = None,
3281
3267
  _request_timeout: Union[
3282
3268
  None,
3283
3269
  Annotated[StrictFloat, Field(gt=0)],
@@ -3291,11 +3277,9 @@ class AdminApi:
3291
3277
  _headers: Optional[Dict[StrictStr, Any]] = None,
3292
3278
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3293
3279
  ) -> RESTResponseType:
3294
- """Get the conversation statistics of all users/datasets over time
3280
+ """Set global credits info
3295
3281
 
3296
3282
 
3297
- :param is_accumulative:
3298
- :type is_accumulative: bool
3299
3283
  :param _request_timeout: timeout setting for this request. If one
3300
3284
  number provided, it will be total request
3301
3285
  timeout. It can also be a pair (tuple) of
@@ -3318,8 +3302,7 @@ class AdminApi:
3318
3302
  :return: Returns the result object.
3319
3303
  """ # noqa: E501
3320
3304
 
3321
- _param = self._get_statistics_of_conversation_over_time_serialize(
3322
- is_accumulative=is_accumulative,
3305
+ _param = self._get_global_credits_serialize(
3323
3306
  _request_auth=_request_auth,
3324
3307
  _content_type=_content_type,
3325
3308
  _headers=_headers,
@@ -3327,7 +3310,7 @@ class AdminApi:
3327
3310
  )
3328
3311
 
3329
3312
  _response_types_map: Dict[str, Optional[str]] = {
3330
- '200': "MessagesStatsPerDayResponse",
3313
+ '200': "CreditsInfoGlobalDto",
3331
3314
  }
3332
3315
  response_data = self.api_client.call_api(
3333
3316
  *_param,
@@ -3336,9 +3319,8 @@ class AdminApi:
3336
3319
  return response_data.response
3337
3320
 
3338
3321
 
3339
- def _get_statistics_of_conversation_over_time_serialize(
3322
+ def _get_global_credits_serialize(
3340
3323
  self,
3341
- is_accumulative,
3342
3324
  _request_auth,
3343
3325
  _content_type,
3344
3326
  _headers,
@@ -3361,10 +3343,6 @@ class AdminApi:
3361
3343
 
3362
3344
  # process the path parameters
3363
3345
  # process the query parameters
3364
- if is_accumulative is not None:
3365
-
3366
- _query_params.append(('isAccumulative', is_accumulative))
3367
-
3368
3346
  # process the header parameters
3369
3347
  # process the form parameters
3370
3348
  # process the body parameter
@@ -3387,7 +3365,7 @@ class AdminApi:
3387
3365
 
3388
3366
  return self.api_client.param_serialize(
3389
3367
  method='GET',
3390
- resource_path='/api/admin/stats-conversation',
3368
+ resource_path='/api/admin/global-credits',
3391
3369
  path_params=_path_params,
3392
3370
  query_params=_query_params,
3393
3371
  header_params=_header_params,
@@ -3404,8 +3382,9 @@ class AdminApi:
3404
3382
 
3405
3383
 
3406
3384
  @validate_call
3407
- def get_statistics_of_count_info(
3385
+ def get_statistics_of_conversation_over_time(
3408
3386
  self,
3387
+ is_accumulative: Optional[StrictBool] = None,
3409
3388
  _request_timeout: Union[
3410
3389
  None,
3411
3390
  Annotated[StrictFloat, Field(gt=0)],
@@ -3418,10 +3397,12 @@ class AdminApi:
3418
3397
  _content_type: Optional[StrictStr] = None,
3419
3398
  _headers: Optional[Dict[StrictStr, Any]] = None,
3420
3399
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3421
- ) -> List[TotalStat]:
3422
- """Get the total count of users, datasets, conversations and messages
3400
+ ) -> MessagesStatsPerDayResponse:
3401
+ """Get the conversation statistics of all users/datasets over time
3423
3402
 
3424
3403
 
3404
+ :param is_accumulative:
3405
+ :type is_accumulative: bool
3425
3406
  :param _request_timeout: timeout setting for this request. If one
3426
3407
  number provided, it will be total request
3427
3408
  timeout. It can also be a pair (tuple) of
@@ -3444,7 +3425,8 @@ class AdminApi:
3444
3425
  :return: Returns the result object.
3445
3426
  """ # noqa: E501
3446
3427
 
3447
- _param = self._get_statistics_of_count_info_serialize(
3428
+ _param = self._get_statistics_of_conversation_over_time_serialize(
3429
+ is_accumulative=is_accumulative,
3448
3430
  _request_auth=_request_auth,
3449
3431
  _content_type=_content_type,
3450
3432
  _headers=_headers,
@@ -3452,7 +3434,7 @@ class AdminApi:
3452
3434
  )
3453
3435
 
3454
3436
  _response_types_map: Dict[str, Optional[str]] = {
3455
- '200': "List[TotalStat]",
3437
+ '200': "MessagesStatsPerDayResponse",
3456
3438
  }
3457
3439
  response_data = self.api_client.call_api(
3458
3440
  *_param,
@@ -3466,8 +3448,9 @@ class AdminApi:
3466
3448
 
3467
3449
 
3468
3450
  @validate_call
3469
- def get_statistics_of_count_info_with_http_info(
3451
+ def get_statistics_of_conversation_over_time_with_http_info(
3470
3452
  self,
3453
+ is_accumulative: Optional[StrictBool] = None,
3471
3454
  _request_timeout: Union[
3472
3455
  None,
3473
3456
  Annotated[StrictFloat, Field(gt=0)],
@@ -3480,10 +3463,12 @@ class AdminApi:
3480
3463
  _content_type: Optional[StrictStr] = None,
3481
3464
  _headers: Optional[Dict[StrictStr, Any]] = None,
3482
3465
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3483
- ) -> ApiResponse[List[TotalStat]]:
3484
- """Get the total count of users, datasets, conversations and messages
3466
+ ) -> ApiResponse[MessagesStatsPerDayResponse]:
3467
+ """Get the conversation statistics of all users/datasets over time
3485
3468
 
3486
3469
 
3470
+ :param is_accumulative:
3471
+ :type is_accumulative: bool
3487
3472
  :param _request_timeout: timeout setting for this request. If one
3488
3473
  number provided, it will be total request
3489
3474
  timeout. It can also be a pair (tuple) of
@@ -3506,7 +3491,8 @@ class AdminApi:
3506
3491
  :return: Returns the result object.
3507
3492
  """ # noqa: E501
3508
3493
 
3509
- _param = self._get_statistics_of_count_info_serialize(
3494
+ _param = self._get_statistics_of_conversation_over_time_serialize(
3495
+ is_accumulative=is_accumulative,
3510
3496
  _request_auth=_request_auth,
3511
3497
  _content_type=_content_type,
3512
3498
  _headers=_headers,
@@ -3514,7 +3500,7 @@ class AdminApi:
3514
3500
  )
3515
3501
 
3516
3502
  _response_types_map: Dict[str, Optional[str]] = {
3517
- '200': "List[TotalStat]",
3503
+ '200': "MessagesStatsPerDayResponse",
3518
3504
  }
3519
3505
  response_data = self.api_client.call_api(
3520
3506
  *_param,
@@ -3528,8 +3514,9 @@ class AdminApi:
3528
3514
 
3529
3515
 
3530
3516
  @validate_call
3531
- def get_statistics_of_count_info_without_preload_content(
3517
+ def get_statistics_of_conversation_over_time_without_preload_content(
3532
3518
  self,
3519
+ is_accumulative: Optional[StrictBool] = None,
3533
3520
  _request_timeout: Union[
3534
3521
  None,
3535
3522
  Annotated[StrictFloat, Field(gt=0)],
@@ -3543,9 +3530,11 @@ class AdminApi:
3543
3530
  _headers: Optional[Dict[StrictStr, Any]] = None,
3544
3531
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3545
3532
  ) -> RESTResponseType:
3546
- """Get the total count of users, datasets, conversations and messages
3533
+ """Get the conversation statistics of all users/datasets over time
3547
3534
 
3548
3535
 
3536
+ :param is_accumulative:
3537
+ :type is_accumulative: bool
3549
3538
  :param _request_timeout: timeout setting for this request. If one
3550
3539
  number provided, it will be total request
3551
3540
  timeout. It can also be a pair (tuple) of
@@ -3568,7 +3557,8 @@ class AdminApi:
3568
3557
  :return: Returns the result object.
3569
3558
  """ # noqa: E501
3570
3559
 
3571
- _param = self._get_statistics_of_count_info_serialize(
3560
+ _param = self._get_statistics_of_conversation_over_time_serialize(
3561
+ is_accumulative=is_accumulative,
3572
3562
  _request_auth=_request_auth,
3573
3563
  _content_type=_content_type,
3574
3564
  _headers=_headers,
@@ -3576,7 +3566,7 @@ class AdminApi:
3576
3566
  )
3577
3567
 
3578
3568
  _response_types_map: Dict[str, Optional[str]] = {
3579
- '200': "List[TotalStat]",
3569
+ '200': "MessagesStatsPerDayResponse",
3580
3570
  }
3581
3571
  response_data = self.api_client.call_api(
3582
3572
  *_param,
@@ -3585,8 +3575,9 @@ class AdminApi:
3585
3575
  return response_data.response
3586
3576
 
3587
3577
 
3588
- def _get_statistics_of_count_info_serialize(
3578
+ def _get_statistics_of_conversation_over_time_serialize(
3589
3579
  self,
3580
+ is_accumulative,
3590
3581
  _request_auth,
3591
3582
  _content_type,
3592
3583
  _headers,
@@ -3609,6 +3600,10 @@ class AdminApi:
3609
3600
 
3610
3601
  # process the path parameters
3611
3602
  # process the query parameters
3603
+ if is_accumulative is not None:
3604
+
3605
+ _query_params.append(('isAccumulative', is_accumulative))
3606
+
3612
3607
  # process the header parameters
3613
3608
  # process the form parameters
3614
3609
  # process the body parameter
@@ -3631,7 +3626,7 @@ class AdminApi:
3631
3626
 
3632
3627
  return self.api_client.param_serialize(
3633
3628
  method='GET',
3634
- resource_path='/api/admin/stats-total-count',
3629
+ resource_path='/api/admin/stats-conversation',
3635
3630
  path_params=_path_params,
3636
3631
  query_params=_query_params,
3637
3632
  header_params=_header_params,
@@ -3648,9 +3643,8 @@ class AdminApi:
3648
3643
 
3649
3644
 
3650
3645
  @validate_call
3651
- def get_statistics_of_dataset_over_time(
3646
+ def get_statistics_of_count_info(
3652
3647
  self,
3653
- is_accumulative: Optional[StrictBool] = None,
3654
3648
  _request_timeout: Union[
3655
3649
  None,
3656
3650
  Annotated[StrictFloat, Field(gt=0)],
@@ -3663,12 +3657,10 @@ class AdminApi:
3663
3657
  _content_type: Optional[StrictStr] = None,
3664
3658
  _headers: Optional[Dict[StrictStr, Any]] = None,
3665
3659
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3666
- ) -> List[StatPerDate]:
3667
- """Get the dataset statistics of all users over time
3660
+ ) -> List[TotalStat]:
3661
+ """Get the total count of users, datasets, conversations and messages
3668
3662
 
3669
3663
 
3670
- :param is_accumulative:
3671
- :type is_accumulative: bool
3672
3664
  :param _request_timeout: timeout setting for this request. If one
3673
3665
  number provided, it will be total request
3674
3666
  timeout. It can also be a pair (tuple) of
@@ -3691,8 +3683,7 @@ class AdminApi:
3691
3683
  :return: Returns the result object.
3692
3684
  """ # noqa: E501
3693
3685
 
3694
- _param = self._get_statistics_of_dataset_over_time_serialize(
3695
- is_accumulative=is_accumulative,
3686
+ _param = self._get_statistics_of_count_info_serialize(
3696
3687
  _request_auth=_request_auth,
3697
3688
  _content_type=_content_type,
3698
3689
  _headers=_headers,
@@ -3700,7 +3691,7 @@ class AdminApi:
3700
3691
  )
3701
3692
 
3702
3693
  _response_types_map: Dict[str, Optional[str]] = {
3703
- '200': "List[StatPerDate]",
3694
+ '200': "List[TotalStat]",
3704
3695
  }
3705
3696
  response_data = self.api_client.call_api(
3706
3697
  *_param,
@@ -3714,9 +3705,8 @@ class AdminApi:
3714
3705
 
3715
3706
 
3716
3707
  @validate_call
3717
- def get_statistics_of_dataset_over_time_with_http_info(
3708
+ def get_statistics_of_count_info_with_http_info(
3718
3709
  self,
3719
- is_accumulative: Optional[StrictBool] = None,
3720
3710
  _request_timeout: Union[
3721
3711
  None,
3722
3712
  Annotated[StrictFloat, Field(gt=0)],
@@ -3729,12 +3719,10 @@ class AdminApi:
3729
3719
  _content_type: Optional[StrictStr] = None,
3730
3720
  _headers: Optional[Dict[StrictStr, Any]] = None,
3731
3721
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3732
- ) -> ApiResponse[List[StatPerDate]]:
3733
- """Get the dataset statistics of all users over time
3722
+ ) -> ApiResponse[List[TotalStat]]:
3723
+ """Get the total count of users, datasets, conversations and messages
3734
3724
 
3735
3725
 
3736
- :param is_accumulative:
3737
- :type is_accumulative: bool
3738
3726
  :param _request_timeout: timeout setting for this request. If one
3739
3727
  number provided, it will be total request
3740
3728
  timeout. It can also be a pair (tuple) of
@@ -3757,8 +3745,7 @@ class AdminApi:
3757
3745
  :return: Returns the result object.
3758
3746
  """ # noqa: E501
3759
3747
 
3760
- _param = self._get_statistics_of_dataset_over_time_serialize(
3761
- is_accumulative=is_accumulative,
3748
+ _param = self._get_statistics_of_count_info_serialize(
3762
3749
  _request_auth=_request_auth,
3763
3750
  _content_type=_content_type,
3764
3751
  _headers=_headers,
@@ -3766,7 +3753,7 @@ class AdminApi:
3766
3753
  )
3767
3754
 
3768
3755
  _response_types_map: Dict[str, Optional[str]] = {
3769
- '200': "List[StatPerDate]",
3756
+ '200': "List[TotalStat]",
3770
3757
  }
3771
3758
  response_data = self.api_client.call_api(
3772
3759
  *_param,
@@ -3780,9 +3767,8 @@ class AdminApi:
3780
3767
 
3781
3768
 
3782
3769
  @validate_call
3783
- def get_statistics_of_dataset_over_time_without_preload_content(
3770
+ def get_statistics_of_count_info_without_preload_content(
3784
3771
  self,
3785
- is_accumulative: Optional[StrictBool] = None,
3786
3772
  _request_timeout: Union[
3787
3773
  None,
3788
3774
  Annotated[StrictFloat, Field(gt=0)],
@@ -3796,11 +3782,9 @@ class AdminApi:
3796
3782
  _headers: Optional[Dict[StrictStr, Any]] = None,
3797
3783
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3798
3784
  ) -> RESTResponseType:
3799
- """Get the dataset statistics of all users over time
3785
+ """Get the total count of users, datasets, conversations and messages
3800
3786
 
3801
3787
 
3802
- :param is_accumulative:
3803
- :type is_accumulative: bool
3804
3788
  :param _request_timeout: timeout setting for this request. If one
3805
3789
  number provided, it will be total request
3806
3790
  timeout. It can also be a pair (tuple) of
@@ -3823,8 +3807,7 @@ class AdminApi:
3823
3807
  :return: Returns the result object.
3824
3808
  """ # noqa: E501
3825
3809
 
3826
- _param = self._get_statistics_of_dataset_over_time_serialize(
3827
- is_accumulative=is_accumulative,
3810
+ _param = self._get_statistics_of_count_info_serialize(
3828
3811
  _request_auth=_request_auth,
3829
3812
  _content_type=_content_type,
3830
3813
  _headers=_headers,
@@ -3832,7 +3815,7 @@ class AdminApi:
3832
3815
  )
3833
3816
 
3834
3817
  _response_types_map: Dict[str, Optional[str]] = {
3835
- '200': "List[StatPerDate]",
3818
+ '200': "List[TotalStat]",
3836
3819
  }
3837
3820
  response_data = self.api_client.call_api(
3838
3821
  *_param,
@@ -3841,9 +3824,8 @@ class AdminApi:
3841
3824
  return response_data.response
3842
3825
 
3843
3826
 
3844
- def _get_statistics_of_dataset_over_time_serialize(
3827
+ def _get_statistics_of_count_info_serialize(
3845
3828
  self,
3846
- is_accumulative,
3847
3829
  _request_auth,
3848
3830
  _content_type,
3849
3831
  _headers,
@@ -3866,10 +3848,6 @@ class AdminApi:
3866
3848
 
3867
3849
  # process the path parameters
3868
3850
  # process the query parameters
3869
- if is_accumulative is not None:
3870
-
3871
- _query_params.append(('isAccumulative', is_accumulative))
3872
-
3873
3851
  # process the header parameters
3874
3852
  # process the form parameters
3875
3853
  # process the body parameter
@@ -3892,7 +3870,7 @@ class AdminApi:
3892
3870
 
3893
3871
  return self.api_client.param_serialize(
3894
3872
  method='GET',
3895
- resource_path='/api/admin/stats-dataset',
3873
+ resource_path='/api/admin/stats-total-count',
3896
3874
  path_params=_path_params,
3897
3875
  query_params=_query_params,
3898
3876
  header_params=_header_params,
@@ -3909,7 +3887,7 @@ class AdminApi:
3909
3887
 
3910
3888
 
3911
3889
  @validate_call
3912
- def get_statistics_of_message_over_time(
3890
+ def get_statistics_of_dataset_over_time(
3913
3891
  self,
3914
3892
  is_accumulative: Optional[StrictBool] = None,
3915
3893
  _request_timeout: Union[
@@ -3924,8 +3902,8 @@ class AdminApi:
3924
3902
  _content_type: Optional[StrictStr] = None,
3925
3903
  _headers: Optional[Dict[StrictStr, Any]] = None,
3926
3904
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3927
- ) -> MessagesStatsPerDayResponse:
3928
- """Get the message statistics of all users/datasets over time
3905
+ ) -> List[StatPerDate]:
3906
+ """Get the dataset statistics of all users over time
3929
3907
 
3930
3908
 
3931
3909
  :param is_accumulative:
@@ -3952,7 +3930,7 @@ class AdminApi:
3952
3930
  :return: Returns the result object.
3953
3931
  """ # noqa: E501
3954
3932
 
3955
- _param = self._get_statistics_of_message_over_time_serialize(
3933
+ _param = self._get_statistics_of_dataset_over_time_serialize(
3956
3934
  is_accumulative=is_accumulative,
3957
3935
  _request_auth=_request_auth,
3958
3936
  _content_type=_content_type,
@@ -3961,7 +3939,7 @@ class AdminApi:
3961
3939
  )
3962
3940
 
3963
3941
  _response_types_map: Dict[str, Optional[str]] = {
3964
- '200': "MessagesStatsPerDayResponse",
3942
+ '200': "List[StatPerDate]",
3965
3943
  }
3966
3944
  response_data = self.api_client.call_api(
3967
3945
  *_param,
@@ -3975,7 +3953,7 @@ class AdminApi:
3975
3953
 
3976
3954
 
3977
3955
  @validate_call
3978
- def get_statistics_of_message_over_time_with_http_info(
3956
+ def get_statistics_of_dataset_over_time_with_http_info(
3979
3957
  self,
3980
3958
  is_accumulative: Optional[StrictBool] = None,
3981
3959
  _request_timeout: Union[
@@ -3990,8 +3968,8 @@ class AdminApi:
3990
3968
  _content_type: Optional[StrictStr] = None,
3991
3969
  _headers: Optional[Dict[StrictStr, Any]] = None,
3992
3970
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3993
- ) -> ApiResponse[MessagesStatsPerDayResponse]:
3994
- """Get the message statistics of all users/datasets over time
3971
+ ) -> ApiResponse[List[StatPerDate]]:
3972
+ """Get the dataset statistics of all users over time
3995
3973
 
3996
3974
 
3997
3975
  :param is_accumulative:
@@ -4018,7 +3996,7 @@ class AdminApi:
4018
3996
  :return: Returns the result object.
4019
3997
  """ # noqa: E501
4020
3998
 
4021
- _param = self._get_statistics_of_message_over_time_serialize(
3999
+ _param = self._get_statistics_of_dataset_over_time_serialize(
4022
4000
  is_accumulative=is_accumulative,
4023
4001
  _request_auth=_request_auth,
4024
4002
  _content_type=_content_type,
@@ -4027,7 +4005,7 @@ class AdminApi:
4027
4005
  )
4028
4006
 
4029
4007
  _response_types_map: Dict[str, Optional[str]] = {
4030
- '200': "MessagesStatsPerDayResponse",
4008
+ '200': "List[StatPerDate]",
4031
4009
  }
4032
4010
  response_data = self.api_client.call_api(
4033
4011
  *_param,
@@ -4041,7 +4019,7 @@ class AdminApi:
4041
4019
 
4042
4020
 
4043
4021
  @validate_call
4044
- def get_statistics_of_message_over_time_without_preload_content(
4022
+ def get_statistics_of_dataset_over_time_without_preload_content(
4045
4023
  self,
4046
4024
  is_accumulative: Optional[StrictBool] = None,
4047
4025
  _request_timeout: Union[
@@ -4057,7 +4035,7 @@ class AdminApi:
4057
4035
  _headers: Optional[Dict[StrictStr, Any]] = None,
4058
4036
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4059
4037
  ) -> RESTResponseType:
4060
- """Get the message statistics of all users/datasets over time
4038
+ """Get the dataset statistics of all users over time
4061
4039
 
4062
4040
 
4063
4041
  :param is_accumulative:
@@ -4084,7 +4062,7 @@ class AdminApi:
4084
4062
  :return: Returns the result object.
4085
4063
  """ # noqa: E501
4086
4064
 
4087
- _param = self._get_statistics_of_message_over_time_serialize(
4065
+ _param = self._get_statistics_of_dataset_over_time_serialize(
4088
4066
  is_accumulative=is_accumulative,
4089
4067
  _request_auth=_request_auth,
4090
4068
  _content_type=_content_type,
@@ -4093,7 +4071,7 @@ class AdminApi:
4093
4071
  )
4094
4072
 
4095
4073
  _response_types_map: Dict[str, Optional[str]] = {
4096
- '200': "MessagesStatsPerDayResponse",
4074
+ '200': "List[StatPerDate]",
4097
4075
  }
4098
4076
  response_data = self.api_client.call_api(
4099
4077
  *_param,
@@ -4102,7 +4080,7 @@ class AdminApi:
4102
4080
  return response_data.response
4103
4081
 
4104
4082
 
4105
- def _get_statistics_of_message_over_time_serialize(
4083
+ def _get_statistics_of_dataset_over_time_serialize(
4106
4084
  self,
4107
4085
  is_accumulative,
4108
4086
  _request_auth,
@@ -4153,7 +4131,7 @@ class AdminApi:
4153
4131
 
4154
4132
  return self.api_client.param_serialize(
4155
4133
  method='GET',
4156
- resource_path='/api/admin/stats-message',
4134
+ resource_path='/api/admin/stats-dataset',
4157
4135
  path_params=_path_params,
4158
4136
  query_params=_query_params,
4159
4137
  header_params=_header_params,
@@ -4170,7 +4148,7 @@ class AdminApi:
4170
4148
 
4171
4149
 
4172
4150
  @validate_call
4173
- def get_statistics_of_user_over_time(
4151
+ def get_statistics_of_message_over_time(
4174
4152
  self,
4175
4153
  is_accumulative: Optional[StrictBool] = None,
4176
4154
  _request_timeout: Union[
@@ -4185,8 +4163,8 @@ class AdminApi:
4185
4163
  _content_type: Optional[StrictStr] = None,
4186
4164
  _headers: Optional[Dict[StrictStr, Any]] = None,
4187
4165
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4188
- ) -> List[StatPerDate]:
4189
- """Get the user statistics over time
4166
+ ) -> MessagesStatsPerDayResponse:
4167
+ """Get the message statistics of all users/datasets over time
4190
4168
 
4191
4169
 
4192
4170
  :param is_accumulative:
@@ -4213,7 +4191,7 @@ class AdminApi:
4213
4191
  :return: Returns the result object.
4214
4192
  """ # noqa: E501
4215
4193
 
4216
- _param = self._get_statistics_of_user_over_time_serialize(
4194
+ _param = self._get_statistics_of_message_over_time_serialize(
4217
4195
  is_accumulative=is_accumulative,
4218
4196
  _request_auth=_request_auth,
4219
4197
  _content_type=_content_type,
@@ -4222,7 +4200,7 @@ class AdminApi:
4222
4200
  )
4223
4201
 
4224
4202
  _response_types_map: Dict[str, Optional[str]] = {
4225
- '200': "List[StatPerDate]",
4203
+ '200': "MessagesStatsPerDayResponse",
4226
4204
  }
4227
4205
  response_data = self.api_client.call_api(
4228
4206
  *_param,
@@ -4236,7 +4214,7 @@ class AdminApi:
4236
4214
 
4237
4215
 
4238
4216
  @validate_call
4239
- def get_statistics_of_user_over_time_with_http_info(
4217
+ def get_statistics_of_message_over_time_with_http_info(
4240
4218
  self,
4241
4219
  is_accumulative: Optional[StrictBool] = None,
4242
4220
  _request_timeout: Union[
@@ -4251,8 +4229,8 @@ class AdminApi:
4251
4229
  _content_type: Optional[StrictStr] = None,
4252
4230
  _headers: Optional[Dict[StrictStr, Any]] = None,
4253
4231
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4254
- ) -> ApiResponse[List[StatPerDate]]:
4255
- """Get the user statistics over time
4232
+ ) -> ApiResponse[MessagesStatsPerDayResponse]:
4233
+ """Get the message statistics of all users/datasets over time
4256
4234
 
4257
4235
 
4258
4236
  :param is_accumulative:
@@ -4279,7 +4257,7 @@ class AdminApi:
4279
4257
  :return: Returns the result object.
4280
4258
  """ # noqa: E501
4281
4259
 
4282
- _param = self._get_statistics_of_user_over_time_serialize(
4260
+ _param = self._get_statistics_of_message_over_time_serialize(
4283
4261
  is_accumulative=is_accumulative,
4284
4262
  _request_auth=_request_auth,
4285
4263
  _content_type=_content_type,
@@ -4288,7 +4266,7 @@ class AdminApi:
4288
4266
  )
4289
4267
 
4290
4268
  _response_types_map: Dict[str, Optional[str]] = {
4291
- '200': "List[StatPerDate]",
4269
+ '200': "MessagesStatsPerDayResponse",
4292
4270
  }
4293
4271
  response_data = self.api_client.call_api(
4294
4272
  *_param,
@@ -4302,7 +4280,7 @@ class AdminApi:
4302
4280
 
4303
4281
 
4304
4282
  @validate_call
4305
- def get_statistics_of_user_over_time_without_preload_content(
4283
+ def get_statistics_of_message_over_time_without_preload_content(
4306
4284
  self,
4307
4285
  is_accumulative: Optional[StrictBool] = None,
4308
4286
  _request_timeout: Union[
@@ -4318,7 +4296,7 @@ class AdminApi:
4318
4296
  _headers: Optional[Dict[StrictStr, Any]] = None,
4319
4297
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4320
4298
  ) -> RESTResponseType:
4321
- """Get the user statistics over time
4299
+ """Get the message statistics of all users/datasets over time
4322
4300
 
4323
4301
 
4324
4302
  :param is_accumulative:
@@ -4345,7 +4323,7 @@ class AdminApi:
4345
4323
  :return: Returns the result object.
4346
4324
  """ # noqa: E501
4347
4325
 
4348
- _param = self._get_statistics_of_user_over_time_serialize(
4326
+ _param = self._get_statistics_of_message_over_time_serialize(
4349
4327
  is_accumulative=is_accumulative,
4350
4328
  _request_auth=_request_auth,
4351
4329
  _content_type=_content_type,
@@ -4354,7 +4332,7 @@ class AdminApi:
4354
4332
  )
4355
4333
 
4356
4334
  _response_types_map: Dict[str, Optional[str]] = {
4357
- '200': "List[StatPerDate]",
4335
+ '200': "MessagesStatsPerDayResponse",
4358
4336
  }
4359
4337
  response_data = self.api_client.call_api(
4360
4338
  *_param,
@@ -4363,7 +4341,7 @@ class AdminApi:
4363
4341
  return response_data.response
4364
4342
 
4365
4343
 
4366
- def _get_statistics_of_user_over_time_serialize(
4344
+ def _get_statistics_of_message_over_time_serialize(
4367
4345
  self,
4368
4346
  is_accumulative,
4369
4347
  _request_auth,
@@ -4414,7 +4392,7 @@ class AdminApi:
4414
4392
 
4415
4393
  return self.api_client.param_serialize(
4416
4394
  method='GET',
4417
- resource_path='/api/admin/stats-user',
4395
+ resource_path='/api/admin/stats-message',
4418
4396
  path_params=_path_params,
4419
4397
  query_params=_query_params,
4420
4398
  header_params=_header_params,
@@ -4431,8 +4409,9 @@ class AdminApi:
4431
4409
 
4432
4410
 
4433
4411
  @validate_call
4434
- def is_rate_limiting(
4412
+ def get_statistics_of_user_over_time(
4435
4413
  self,
4414
+ is_accumulative: Optional[StrictBool] = None,
4436
4415
  _request_timeout: Union[
4437
4416
  None,
4438
4417
  Annotated[StrictFloat, Field(gt=0)],
@@ -4445,10 +4424,12 @@ class AdminApi:
4445
4424
  _content_type: Optional[StrictStr] = None,
4446
4425
  _headers: Optional[Dict[StrictStr, Any]] = None,
4447
4426
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4448
- ) -> bool:
4449
- """Checks if rate limiting is enabled.
4427
+ ) -> List[StatPerDate]:
4428
+ """Get the user statistics over time
4450
4429
 
4451
4430
 
4431
+ :param is_accumulative:
4432
+ :type is_accumulative: bool
4452
4433
  :param _request_timeout: timeout setting for this request. If one
4453
4434
  number provided, it will be total request
4454
4435
  timeout. It can also be a pair (tuple) of
@@ -4471,7 +4452,8 @@ class AdminApi:
4471
4452
  :return: Returns the result object.
4472
4453
  """ # noqa: E501
4473
4454
 
4474
- _param = self._is_rate_limiting_serialize(
4455
+ _param = self._get_statistics_of_user_over_time_serialize(
4456
+ is_accumulative=is_accumulative,
4475
4457
  _request_auth=_request_auth,
4476
4458
  _content_type=_content_type,
4477
4459
  _headers=_headers,
@@ -4479,7 +4461,7 @@ class AdminApi:
4479
4461
  )
4480
4462
 
4481
4463
  _response_types_map: Dict[str, Optional[str]] = {
4482
- '200': "bool",
4464
+ '200': "List[StatPerDate]",
4483
4465
  }
4484
4466
  response_data = self.api_client.call_api(
4485
4467
  *_param,
@@ -4493,8 +4475,9 @@ class AdminApi:
4493
4475
 
4494
4476
 
4495
4477
  @validate_call
4496
- def is_rate_limiting_with_http_info(
4478
+ def get_statistics_of_user_over_time_with_http_info(
4497
4479
  self,
4480
+ is_accumulative: Optional[StrictBool] = None,
4498
4481
  _request_timeout: Union[
4499
4482
  None,
4500
4483
  Annotated[StrictFloat, Field(gt=0)],
@@ -4507,10 +4490,12 @@ class AdminApi:
4507
4490
  _content_type: Optional[StrictStr] = None,
4508
4491
  _headers: Optional[Dict[StrictStr, Any]] = None,
4509
4492
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4510
- ) -> ApiResponse[bool]:
4511
- """Checks if rate limiting is enabled.
4493
+ ) -> ApiResponse[List[StatPerDate]]:
4494
+ """Get the user statistics over time
4512
4495
 
4513
4496
 
4497
+ :param is_accumulative:
4498
+ :type is_accumulative: bool
4514
4499
  :param _request_timeout: timeout setting for this request. If one
4515
4500
  number provided, it will be total request
4516
4501
  timeout. It can also be a pair (tuple) of
@@ -4533,7 +4518,8 @@ class AdminApi:
4533
4518
  :return: Returns the result object.
4534
4519
  """ # noqa: E501
4535
4520
 
4536
- _param = self._is_rate_limiting_serialize(
4521
+ _param = self._get_statistics_of_user_over_time_serialize(
4522
+ is_accumulative=is_accumulative,
4537
4523
  _request_auth=_request_auth,
4538
4524
  _content_type=_content_type,
4539
4525
  _headers=_headers,
@@ -4541,7 +4527,7 @@ class AdminApi:
4541
4527
  )
4542
4528
 
4543
4529
  _response_types_map: Dict[str, Optional[str]] = {
4544
- '200': "bool",
4530
+ '200': "List[StatPerDate]",
4545
4531
  }
4546
4532
  response_data = self.api_client.call_api(
4547
4533
  *_param,
@@ -4555,8 +4541,9 @@ class AdminApi:
4555
4541
 
4556
4542
 
4557
4543
  @validate_call
4558
- def is_rate_limiting_without_preload_content(
4544
+ def get_statistics_of_user_over_time_without_preload_content(
4559
4545
  self,
4546
+ is_accumulative: Optional[StrictBool] = None,
4560
4547
  _request_timeout: Union[
4561
4548
  None,
4562
4549
  Annotated[StrictFloat, Field(gt=0)],
@@ -4570,9 +4557,11 @@ class AdminApi:
4570
4557
  _headers: Optional[Dict[StrictStr, Any]] = None,
4571
4558
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4572
4559
  ) -> RESTResponseType:
4573
- """Checks if rate limiting is enabled.
4560
+ """Get the user statistics over time
4574
4561
 
4575
4562
 
4563
+ :param is_accumulative:
4564
+ :type is_accumulative: bool
4576
4565
  :param _request_timeout: timeout setting for this request. If one
4577
4566
  number provided, it will be total request
4578
4567
  timeout. It can also be a pair (tuple) of
@@ -4595,7 +4584,8 @@ class AdminApi:
4595
4584
  :return: Returns the result object.
4596
4585
  """ # noqa: E501
4597
4586
 
4598
- _param = self._is_rate_limiting_serialize(
4587
+ _param = self._get_statistics_of_user_over_time_serialize(
4588
+ is_accumulative=is_accumulative,
4599
4589
  _request_auth=_request_auth,
4600
4590
  _content_type=_content_type,
4601
4591
  _headers=_headers,
@@ -4603,7 +4593,7 @@ class AdminApi:
4603
4593
  )
4604
4594
 
4605
4595
  _response_types_map: Dict[str, Optional[str]] = {
4606
- '200': "bool",
4596
+ '200': "List[StatPerDate]",
4607
4597
  }
4608
4598
  response_data = self.api_client.call_api(
4609
4599
  *_param,
@@ -4612,8 +4602,9 @@ class AdminApi:
4612
4602
  return response_data.response
4613
4603
 
4614
4604
 
4615
- def _is_rate_limiting_serialize(
4605
+ def _get_statistics_of_user_over_time_serialize(
4616
4606
  self,
4607
+ is_accumulative,
4617
4608
  _request_auth,
4618
4609
  _content_type,
4619
4610
  _headers,
@@ -4636,7 +4627,516 @@ class AdminApi:
4636
4627
 
4637
4628
  # process the path parameters
4638
4629
  # process the query parameters
4639
- # process the header parameters
4630
+ if is_accumulative is not None:
4631
+
4632
+ _query_params.append(('isAccumulative', is_accumulative))
4633
+
4634
+ # process the header parameters
4635
+ # process the form parameters
4636
+ # process the body parameter
4637
+
4638
+
4639
+ # set the HTTP header `Accept`
4640
+ if 'Accept' not in _header_params:
4641
+ _header_params['Accept'] = self.api_client.select_header_accept(
4642
+ [
4643
+ '*/*'
4644
+ ]
4645
+ )
4646
+
4647
+
4648
+ # authentication setting
4649
+ _auth_settings: List[str] = [
4650
+ 'QAnswer-Api-Key',
4651
+ 'Bearer'
4652
+ ]
4653
+
4654
+ return self.api_client.param_serialize(
4655
+ method='GET',
4656
+ resource_path='/api/admin/stats-user',
4657
+ path_params=_path_params,
4658
+ query_params=_query_params,
4659
+ header_params=_header_params,
4660
+ body=_body_params,
4661
+ post_params=_form_params,
4662
+ files=_files,
4663
+ auth_settings=_auth_settings,
4664
+ collection_formats=_collection_formats,
4665
+ _host=_host,
4666
+ _request_auth=_request_auth
4667
+ )
4668
+
4669
+
4670
+
4671
+
4672
+ @validate_call
4673
+ def get_user_quota(
4674
+ self,
4675
+ username: StrictStr,
4676
+ _request_timeout: Union[
4677
+ None,
4678
+ Annotated[StrictFloat, Field(gt=0)],
4679
+ Tuple[
4680
+ Annotated[StrictFloat, Field(gt=0)],
4681
+ Annotated[StrictFloat, Field(gt=0)]
4682
+ ]
4683
+ ] = None,
4684
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4685
+ _content_type: Optional[StrictStr] = None,
4686
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4687
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4688
+ ) -> UserCreditsConfigDto:
4689
+ """Get the quota for all datasets
4690
+
4691
+
4692
+ :param username: (required)
4693
+ :type username: str
4694
+ :param _request_timeout: timeout setting for this request. If one
4695
+ number provided, it will be total request
4696
+ timeout. It can also be a pair (tuple) of
4697
+ (connection, read) timeouts.
4698
+ :type _request_timeout: int, tuple(int, int), optional
4699
+ :param _request_auth: set to override the auth_settings for an a single
4700
+ request; this effectively ignores the
4701
+ authentication in the spec for a single request.
4702
+ :type _request_auth: dict, optional
4703
+ :param _content_type: force content-type for the request.
4704
+ :type _content_type: str, Optional
4705
+ :param _headers: set to override the headers for a single
4706
+ request; this effectively ignores the headers
4707
+ in the spec for a single request.
4708
+ :type _headers: dict, optional
4709
+ :param _host_index: set to override the host_index for a single
4710
+ request; this effectively ignores the host_index
4711
+ in the spec for a single request.
4712
+ :type _host_index: int, optional
4713
+ :return: Returns the result object.
4714
+ """ # noqa: E501
4715
+
4716
+ _param = self._get_user_quota_serialize(
4717
+ username=username,
4718
+ _request_auth=_request_auth,
4719
+ _content_type=_content_type,
4720
+ _headers=_headers,
4721
+ _host_index=_host_index
4722
+ )
4723
+
4724
+ _response_types_map: Dict[str, Optional[str]] = {
4725
+ '200': "UserCreditsConfigDto",
4726
+ }
4727
+ response_data = self.api_client.call_api(
4728
+ *_param,
4729
+ _request_timeout=_request_timeout
4730
+ )
4731
+ response_data.read()
4732
+ return self.api_client.response_deserialize(
4733
+ response_data=response_data,
4734
+ response_types_map=_response_types_map,
4735
+ ).data
4736
+
4737
+
4738
+ @validate_call
4739
+ def get_user_quota_with_http_info(
4740
+ self,
4741
+ username: StrictStr,
4742
+ _request_timeout: Union[
4743
+ None,
4744
+ Annotated[StrictFloat, Field(gt=0)],
4745
+ Tuple[
4746
+ Annotated[StrictFloat, Field(gt=0)],
4747
+ Annotated[StrictFloat, Field(gt=0)]
4748
+ ]
4749
+ ] = None,
4750
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4751
+ _content_type: Optional[StrictStr] = None,
4752
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4753
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4754
+ ) -> ApiResponse[UserCreditsConfigDto]:
4755
+ """Get the quota for all datasets
4756
+
4757
+
4758
+ :param username: (required)
4759
+ :type username: str
4760
+ :param _request_timeout: timeout setting for this request. If one
4761
+ number provided, it will be total request
4762
+ timeout. It can also be a pair (tuple) of
4763
+ (connection, read) timeouts.
4764
+ :type _request_timeout: int, tuple(int, int), optional
4765
+ :param _request_auth: set to override the auth_settings for an a single
4766
+ request; this effectively ignores the
4767
+ authentication in the spec for a single request.
4768
+ :type _request_auth: dict, optional
4769
+ :param _content_type: force content-type for the request.
4770
+ :type _content_type: str, Optional
4771
+ :param _headers: set to override the headers for a single
4772
+ request; this effectively ignores the headers
4773
+ in the spec for a single request.
4774
+ :type _headers: dict, optional
4775
+ :param _host_index: set to override the host_index for a single
4776
+ request; this effectively ignores the host_index
4777
+ in the spec for a single request.
4778
+ :type _host_index: int, optional
4779
+ :return: Returns the result object.
4780
+ """ # noqa: E501
4781
+
4782
+ _param = self._get_user_quota_serialize(
4783
+ username=username,
4784
+ _request_auth=_request_auth,
4785
+ _content_type=_content_type,
4786
+ _headers=_headers,
4787
+ _host_index=_host_index
4788
+ )
4789
+
4790
+ _response_types_map: Dict[str, Optional[str]] = {
4791
+ '200': "UserCreditsConfigDto",
4792
+ }
4793
+ response_data = self.api_client.call_api(
4794
+ *_param,
4795
+ _request_timeout=_request_timeout
4796
+ )
4797
+ response_data.read()
4798
+ return self.api_client.response_deserialize(
4799
+ response_data=response_data,
4800
+ response_types_map=_response_types_map,
4801
+ )
4802
+
4803
+
4804
+ @validate_call
4805
+ def get_user_quota_without_preload_content(
4806
+ self,
4807
+ username: StrictStr,
4808
+ _request_timeout: Union[
4809
+ None,
4810
+ Annotated[StrictFloat, Field(gt=0)],
4811
+ Tuple[
4812
+ Annotated[StrictFloat, Field(gt=0)],
4813
+ Annotated[StrictFloat, Field(gt=0)]
4814
+ ]
4815
+ ] = None,
4816
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4817
+ _content_type: Optional[StrictStr] = None,
4818
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4819
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4820
+ ) -> RESTResponseType:
4821
+ """Get the quota for all datasets
4822
+
4823
+
4824
+ :param username: (required)
4825
+ :type username: str
4826
+ :param _request_timeout: timeout setting for this request. If one
4827
+ number provided, it will be total request
4828
+ timeout. It can also be a pair (tuple) of
4829
+ (connection, read) timeouts.
4830
+ :type _request_timeout: int, tuple(int, int), optional
4831
+ :param _request_auth: set to override the auth_settings for an a single
4832
+ request; this effectively ignores the
4833
+ authentication in the spec for a single request.
4834
+ :type _request_auth: dict, optional
4835
+ :param _content_type: force content-type for the request.
4836
+ :type _content_type: str, Optional
4837
+ :param _headers: set to override the headers for a single
4838
+ request; this effectively ignores the headers
4839
+ in the spec for a single request.
4840
+ :type _headers: dict, optional
4841
+ :param _host_index: set to override the host_index for a single
4842
+ request; this effectively ignores the host_index
4843
+ in the spec for a single request.
4844
+ :type _host_index: int, optional
4845
+ :return: Returns the result object.
4846
+ """ # noqa: E501
4847
+
4848
+ _param = self._get_user_quota_serialize(
4849
+ username=username,
4850
+ _request_auth=_request_auth,
4851
+ _content_type=_content_type,
4852
+ _headers=_headers,
4853
+ _host_index=_host_index
4854
+ )
4855
+
4856
+ _response_types_map: Dict[str, Optional[str]] = {
4857
+ '200': "UserCreditsConfigDto",
4858
+ }
4859
+ response_data = self.api_client.call_api(
4860
+ *_param,
4861
+ _request_timeout=_request_timeout
4862
+ )
4863
+ return response_data.response
4864
+
4865
+
4866
+ def _get_user_quota_serialize(
4867
+ self,
4868
+ username,
4869
+ _request_auth,
4870
+ _content_type,
4871
+ _headers,
4872
+ _host_index,
4873
+ ) -> RequestSerialized:
4874
+
4875
+ _host = None
4876
+
4877
+ _collection_formats: Dict[str, str] = {
4878
+ }
4879
+
4880
+ _path_params: Dict[str, str] = {}
4881
+ _query_params: List[Tuple[str, str]] = []
4882
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4883
+ _form_params: List[Tuple[str, str]] = []
4884
+ _files: Dict[
4885
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4886
+ ] = {}
4887
+ _body_params: Optional[bytes] = None
4888
+
4889
+ # process the path parameters
4890
+ # process the query parameters
4891
+ if username is not None:
4892
+
4893
+ _query_params.append(('username', username))
4894
+
4895
+ # process the header parameters
4896
+ # process the form parameters
4897
+ # process the body parameter
4898
+
4899
+
4900
+ # set the HTTP header `Accept`
4901
+ if 'Accept' not in _header_params:
4902
+ _header_params['Accept'] = self.api_client.select_header_accept(
4903
+ [
4904
+ '*/*'
4905
+ ]
4906
+ )
4907
+
4908
+
4909
+ # authentication setting
4910
+ _auth_settings: List[str] = [
4911
+ 'QAnswer-Api-Key',
4912
+ 'Bearer'
4913
+ ]
4914
+
4915
+ return self.api_client.param_serialize(
4916
+ method='GET',
4917
+ resource_path='/api/admin/user-quota',
4918
+ path_params=_path_params,
4919
+ query_params=_query_params,
4920
+ header_params=_header_params,
4921
+ body=_body_params,
4922
+ post_params=_form_params,
4923
+ files=_files,
4924
+ auth_settings=_auth_settings,
4925
+ collection_formats=_collection_formats,
4926
+ _host=_host,
4927
+ _request_auth=_request_auth
4928
+ )
4929
+
4930
+
4931
+
4932
+
4933
+ @validate_call
4934
+ def is_rate_limiting(
4935
+ self,
4936
+ _request_timeout: Union[
4937
+ None,
4938
+ Annotated[StrictFloat, Field(gt=0)],
4939
+ Tuple[
4940
+ Annotated[StrictFloat, Field(gt=0)],
4941
+ Annotated[StrictFloat, Field(gt=0)]
4942
+ ]
4943
+ ] = None,
4944
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4945
+ _content_type: Optional[StrictStr] = None,
4946
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4947
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4948
+ ) -> bool:
4949
+ """Checks if rate limiting is enabled.
4950
+
4951
+
4952
+ :param _request_timeout: timeout setting for this request. If one
4953
+ number provided, it will be total request
4954
+ timeout. It can also be a pair (tuple) of
4955
+ (connection, read) timeouts.
4956
+ :type _request_timeout: int, tuple(int, int), optional
4957
+ :param _request_auth: set to override the auth_settings for an a single
4958
+ request; this effectively ignores the
4959
+ authentication in the spec for a single request.
4960
+ :type _request_auth: dict, optional
4961
+ :param _content_type: force content-type for the request.
4962
+ :type _content_type: str, Optional
4963
+ :param _headers: set to override the headers for a single
4964
+ request; this effectively ignores the headers
4965
+ in the spec for a single request.
4966
+ :type _headers: dict, optional
4967
+ :param _host_index: set to override the host_index for a single
4968
+ request; this effectively ignores the host_index
4969
+ in the spec for a single request.
4970
+ :type _host_index: int, optional
4971
+ :return: Returns the result object.
4972
+ """ # noqa: E501
4973
+
4974
+ _param = self._is_rate_limiting_serialize(
4975
+ _request_auth=_request_auth,
4976
+ _content_type=_content_type,
4977
+ _headers=_headers,
4978
+ _host_index=_host_index
4979
+ )
4980
+
4981
+ _response_types_map: Dict[str, Optional[str]] = {
4982
+ '200': "bool",
4983
+ }
4984
+ response_data = self.api_client.call_api(
4985
+ *_param,
4986
+ _request_timeout=_request_timeout
4987
+ )
4988
+ response_data.read()
4989
+ return self.api_client.response_deserialize(
4990
+ response_data=response_data,
4991
+ response_types_map=_response_types_map,
4992
+ ).data
4993
+
4994
+
4995
+ @validate_call
4996
+ def is_rate_limiting_with_http_info(
4997
+ self,
4998
+ _request_timeout: Union[
4999
+ None,
5000
+ Annotated[StrictFloat, Field(gt=0)],
5001
+ Tuple[
5002
+ Annotated[StrictFloat, Field(gt=0)],
5003
+ Annotated[StrictFloat, Field(gt=0)]
5004
+ ]
5005
+ ] = None,
5006
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5007
+ _content_type: Optional[StrictStr] = None,
5008
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5009
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5010
+ ) -> ApiResponse[bool]:
5011
+ """Checks if rate limiting is enabled.
5012
+
5013
+
5014
+ :param _request_timeout: timeout setting for this request. If one
5015
+ number provided, it will be total request
5016
+ timeout. It can also be a pair (tuple) of
5017
+ (connection, read) timeouts.
5018
+ :type _request_timeout: int, tuple(int, int), optional
5019
+ :param _request_auth: set to override the auth_settings for an a single
5020
+ request; this effectively ignores the
5021
+ authentication in the spec for a single request.
5022
+ :type _request_auth: dict, optional
5023
+ :param _content_type: force content-type for the request.
5024
+ :type _content_type: str, Optional
5025
+ :param _headers: set to override the headers for a single
5026
+ request; this effectively ignores the headers
5027
+ in the spec for a single request.
5028
+ :type _headers: dict, optional
5029
+ :param _host_index: set to override the host_index for a single
5030
+ request; this effectively ignores the host_index
5031
+ in the spec for a single request.
5032
+ :type _host_index: int, optional
5033
+ :return: Returns the result object.
5034
+ """ # noqa: E501
5035
+
5036
+ _param = self._is_rate_limiting_serialize(
5037
+ _request_auth=_request_auth,
5038
+ _content_type=_content_type,
5039
+ _headers=_headers,
5040
+ _host_index=_host_index
5041
+ )
5042
+
5043
+ _response_types_map: Dict[str, Optional[str]] = {
5044
+ '200': "bool",
5045
+ }
5046
+ response_data = self.api_client.call_api(
5047
+ *_param,
5048
+ _request_timeout=_request_timeout
5049
+ )
5050
+ response_data.read()
5051
+ return self.api_client.response_deserialize(
5052
+ response_data=response_data,
5053
+ response_types_map=_response_types_map,
5054
+ )
5055
+
5056
+
5057
+ @validate_call
5058
+ def is_rate_limiting_without_preload_content(
5059
+ self,
5060
+ _request_timeout: Union[
5061
+ None,
5062
+ Annotated[StrictFloat, Field(gt=0)],
5063
+ Tuple[
5064
+ Annotated[StrictFloat, Field(gt=0)],
5065
+ Annotated[StrictFloat, Field(gt=0)]
5066
+ ]
5067
+ ] = None,
5068
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5069
+ _content_type: Optional[StrictStr] = None,
5070
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5071
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5072
+ ) -> RESTResponseType:
5073
+ """Checks if rate limiting is enabled.
5074
+
5075
+
5076
+ :param _request_timeout: timeout setting for this request. If one
5077
+ number provided, it will be total request
5078
+ timeout. It can also be a pair (tuple) of
5079
+ (connection, read) timeouts.
5080
+ :type _request_timeout: int, tuple(int, int), optional
5081
+ :param _request_auth: set to override the auth_settings for an a single
5082
+ request; this effectively ignores the
5083
+ authentication in the spec for a single request.
5084
+ :type _request_auth: dict, optional
5085
+ :param _content_type: force content-type for the request.
5086
+ :type _content_type: str, Optional
5087
+ :param _headers: set to override the headers for a single
5088
+ request; this effectively ignores the headers
5089
+ in the spec for a single request.
5090
+ :type _headers: dict, optional
5091
+ :param _host_index: set to override the host_index for a single
5092
+ request; this effectively ignores the host_index
5093
+ in the spec for a single request.
5094
+ :type _host_index: int, optional
5095
+ :return: Returns the result object.
5096
+ """ # noqa: E501
5097
+
5098
+ _param = self._is_rate_limiting_serialize(
5099
+ _request_auth=_request_auth,
5100
+ _content_type=_content_type,
5101
+ _headers=_headers,
5102
+ _host_index=_host_index
5103
+ )
5104
+
5105
+ _response_types_map: Dict[str, Optional[str]] = {
5106
+ '200': "bool",
5107
+ }
5108
+ response_data = self.api_client.call_api(
5109
+ *_param,
5110
+ _request_timeout=_request_timeout
5111
+ )
5112
+ return response_data.response
5113
+
5114
+
5115
+ def _is_rate_limiting_serialize(
5116
+ self,
5117
+ _request_auth,
5118
+ _content_type,
5119
+ _headers,
5120
+ _host_index,
5121
+ ) -> RequestSerialized:
5122
+
5123
+ _host = None
5124
+
5125
+ _collection_formats: Dict[str, str] = {
5126
+ }
5127
+
5128
+ _path_params: Dict[str, str] = {}
5129
+ _query_params: List[Tuple[str, str]] = []
5130
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5131
+ _form_params: List[Tuple[str, str]] = []
5132
+ _files: Dict[
5133
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5134
+ ] = {}
5135
+ _body_params: Optional[bytes] = None
5136
+
5137
+ # process the path parameters
5138
+ # process the query parameters
5139
+ # process the header parameters
4640
5140
  # process the form parameters
4641
5141
  # process the body parameter
4642
5142
 
@@ -4935,6 +5435,278 @@ class AdminApi:
4935
5435
 
4936
5436
 
4937
5437
 
5438
+ @validate_call
5439
+ def set_global_credits(
5440
+ self,
5441
+ credits_info_global_dto: CreditsInfoGlobalDto,
5442
+ _request_timeout: Union[
5443
+ None,
5444
+ Annotated[StrictFloat, Field(gt=0)],
5445
+ Tuple[
5446
+ Annotated[StrictFloat, Field(gt=0)],
5447
+ Annotated[StrictFloat, Field(gt=0)]
5448
+ ]
5449
+ ] = None,
5450
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5451
+ _content_type: Optional[StrictStr] = None,
5452
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5453
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5454
+ ) -> CreditsInfoGlobalDto:
5455
+ """Set global credits info
5456
+
5457
+
5458
+ :param credits_info_global_dto: (required)
5459
+ :type credits_info_global_dto: CreditsInfoGlobalDto
5460
+ :param _request_timeout: timeout setting for this request. If one
5461
+ number provided, it will be total request
5462
+ timeout. It can also be a pair (tuple) of
5463
+ (connection, read) timeouts.
5464
+ :type _request_timeout: int, tuple(int, int), optional
5465
+ :param _request_auth: set to override the auth_settings for an a single
5466
+ request; this effectively ignores the
5467
+ authentication in the spec for a single request.
5468
+ :type _request_auth: dict, optional
5469
+ :param _content_type: force content-type for the request.
5470
+ :type _content_type: str, Optional
5471
+ :param _headers: set to override the headers for a single
5472
+ request; this effectively ignores the headers
5473
+ in the spec for a single request.
5474
+ :type _headers: dict, optional
5475
+ :param _host_index: set to override the host_index for a single
5476
+ request; this effectively ignores the host_index
5477
+ in the spec for a single request.
5478
+ :type _host_index: int, optional
5479
+ :return: Returns the result object.
5480
+ """ # noqa: E501
5481
+
5482
+ _param = self._set_global_credits_serialize(
5483
+ credits_info_global_dto=credits_info_global_dto,
5484
+ _request_auth=_request_auth,
5485
+ _content_type=_content_type,
5486
+ _headers=_headers,
5487
+ _host_index=_host_index
5488
+ )
5489
+
5490
+ _response_types_map: Dict[str, Optional[str]] = {
5491
+ '200': "CreditsInfoGlobalDto",
5492
+ }
5493
+ response_data = self.api_client.call_api(
5494
+ *_param,
5495
+ _request_timeout=_request_timeout
5496
+ )
5497
+ response_data.read()
5498
+ return self.api_client.response_deserialize(
5499
+ response_data=response_data,
5500
+ response_types_map=_response_types_map,
5501
+ ).data
5502
+
5503
+
5504
+ @validate_call
5505
+ def set_global_credits_with_http_info(
5506
+ self,
5507
+ credits_info_global_dto: CreditsInfoGlobalDto,
5508
+ _request_timeout: Union[
5509
+ None,
5510
+ Annotated[StrictFloat, Field(gt=0)],
5511
+ Tuple[
5512
+ Annotated[StrictFloat, Field(gt=0)],
5513
+ Annotated[StrictFloat, Field(gt=0)]
5514
+ ]
5515
+ ] = None,
5516
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5517
+ _content_type: Optional[StrictStr] = None,
5518
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5519
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5520
+ ) -> ApiResponse[CreditsInfoGlobalDto]:
5521
+ """Set global credits info
5522
+
5523
+
5524
+ :param credits_info_global_dto: (required)
5525
+ :type credits_info_global_dto: CreditsInfoGlobalDto
5526
+ :param _request_timeout: timeout setting for this request. If one
5527
+ number provided, it will be total request
5528
+ timeout. It can also be a pair (tuple) of
5529
+ (connection, read) timeouts.
5530
+ :type _request_timeout: int, tuple(int, int), optional
5531
+ :param _request_auth: set to override the auth_settings for an a single
5532
+ request; this effectively ignores the
5533
+ authentication in the spec for a single request.
5534
+ :type _request_auth: dict, optional
5535
+ :param _content_type: force content-type for the request.
5536
+ :type _content_type: str, Optional
5537
+ :param _headers: set to override the headers for a single
5538
+ request; this effectively ignores the headers
5539
+ in the spec for a single request.
5540
+ :type _headers: dict, optional
5541
+ :param _host_index: set to override the host_index for a single
5542
+ request; this effectively ignores the host_index
5543
+ in the spec for a single request.
5544
+ :type _host_index: int, optional
5545
+ :return: Returns the result object.
5546
+ """ # noqa: E501
5547
+
5548
+ _param = self._set_global_credits_serialize(
5549
+ credits_info_global_dto=credits_info_global_dto,
5550
+ _request_auth=_request_auth,
5551
+ _content_type=_content_type,
5552
+ _headers=_headers,
5553
+ _host_index=_host_index
5554
+ )
5555
+
5556
+ _response_types_map: Dict[str, Optional[str]] = {
5557
+ '200': "CreditsInfoGlobalDto",
5558
+ }
5559
+ response_data = self.api_client.call_api(
5560
+ *_param,
5561
+ _request_timeout=_request_timeout
5562
+ )
5563
+ response_data.read()
5564
+ return self.api_client.response_deserialize(
5565
+ response_data=response_data,
5566
+ response_types_map=_response_types_map,
5567
+ )
5568
+
5569
+
5570
+ @validate_call
5571
+ def set_global_credits_without_preload_content(
5572
+ self,
5573
+ credits_info_global_dto: CreditsInfoGlobalDto,
5574
+ _request_timeout: Union[
5575
+ None,
5576
+ Annotated[StrictFloat, Field(gt=0)],
5577
+ Tuple[
5578
+ Annotated[StrictFloat, Field(gt=0)],
5579
+ Annotated[StrictFloat, Field(gt=0)]
5580
+ ]
5581
+ ] = None,
5582
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5583
+ _content_type: Optional[StrictStr] = None,
5584
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5585
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5586
+ ) -> RESTResponseType:
5587
+ """Set global credits info
5588
+
5589
+
5590
+ :param credits_info_global_dto: (required)
5591
+ :type credits_info_global_dto: CreditsInfoGlobalDto
5592
+ :param _request_timeout: timeout setting for this request. If one
5593
+ number provided, it will be total request
5594
+ timeout. It can also be a pair (tuple) of
5595
+ (connection, read) timeouts.
5596
+ :type _request_timeout: int, tuple(int, int), optional
5597
+ :param _request_auth: set to override the auth_settings for an a single
5598
+ request; this effectively ignores the
5599
+ authentication in the spec for a single request.
5600
+ :type _request_auth: dict, optional
5601
+ :param _content_type: force content-type for the request.
5602
+ :type _content_type: str, Optional
5603
+ :param _headers: set to override the headers for a single
5604
+ request; this effectively ignores the headers
5605
+ in the spec for a single request.
5606
+ :type _headers: dict, optional
5607
+ :param _host_index: set to override the host_index for a single
5608
+ request; this effectively ignores the host_index
5609
+ in the spec for a single request.
5610
+ :type _host_index: int, optional
5611
+ :return: Returns the result object.
5612
+ """ # noqa: E501
5613
+
5614
+ _param = self._set_global_credits_serialize(
5615
+ credits_info_global_dto=credits_info_global_dto,
5616
+ _request_auth=_request_auth,
5617
+ _content_type=_content_type,
5618
+ _headers=_headers,
5619
+ _host_index=_host_index
5620
+ )
5621
+
5622
+ _response_types_map: Dict[str, Optional[str]] = {
5623
+ '200': "CreditsInfoGlobalDto",
5624
+ }
5625
+ response_data = self.api_client.call_api(
5626
+ *_param,
5627
+ _request_timeout=_request_timeout
5628
+ )
5629
+ return response_data.response
5630
+
5631
+
5632
+ def _set_global_credits_serialize(
5633
+ self,
5634
+ credits_info_global_dto,
5635
+ _request_auth,
5636
+ _content_type,
5637
+ _headers,
5638
+ _host_index,
5639
+ ) -> RequestSerialized:
5640
+
5641
+ _host = None
5642
+
5643
+ _collection_formats: Dict[str, str] = {
5644
+ }
5645
+
5646
+ _path_params: Dict[str, str] = {}
5647
+ _query_params: List[Tuple[str, str]] = []
5648
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5649
+ _form_params: List[Tuple[str, str]] = []
5650
+ _files: Dict[
5651
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5652
+ ] = {}
5653
+ _body_params: Optional[bytes] = None
5654
+
5655
+ # process the path parameters
5656
+ # process the query parameters
5657
+ # process the header parameters
5658
+ # process the form parameters
5659
+ # process the body parameter
5660
+ if credits_info_global_dto is not None:
5661
+ _body_params = credits_info_global_dto
5662
+
5663
+
5664
+ # set the HTTP header `Accept`
5665
+ if 'Accept' not in _header_params:
5666
+ _header_params['Accept'] = self.api_client.select_header_accept(
5667
+ [
5668
+ '*/*'
5669
+ ]
5670
+ )
5671
+
5672
+ # set the HTTP header `Content-Type`
5673
+ if _content_type:
5674
+ _header_params['Content-Type'] = _content_type
5675
+ else:
5676
+ _default_content_type = (
5677
+ self.api_client.select_header_content_type(
5678
+ [
5679
+ 'application/json'
5680
+ ]
5681
+ )
5682
+ )
5683
+ if _default_content_type is not None:
5684
+ _header_params['Content-Type'] = _default_content_type
5685
+
5686
+ # authentication setting
5687
+ _auth_settings: List[str] = [
5688
+ 'QAnswer-Api-Key',
5689
+ 'Bearer'
5690
+ ]
5691
+
5692
+ return self.api_client.param_serialize(
5693
+ method='POST',
5694
+ resource_path='/api/admin/global-credits',
5695
+ path_params=_path_params,
5696
+ query_params=_query_params,
5697
+ header_params=_header_params,
5698
+ body=_body_params,
5699
+ post_params=_form_params,
5700
+ files=_files,
5701
+ auth_settings=_auth_settings,
5702
+ collection_formats=_collection_formats,
5703
+ _host=_host,
5704
+ _request_auth=_request_auth
5705
+ )
5706
+
5707
+
5708
+
5709
+
4938
5710
  @validate_call
4939
5711
  def set_rate_limiting(
4940
5712
  self,