revengai 1.94.0__py3-none-any.whl → 1.96.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of revengai might be problematic. Click here for more details.

@@ -15,8 +15,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
16
16
  from typing_extensions import Annotated
17
17
 
18
- from pydantic import Field, StrictInt, StrictStr
19
- from typing import Optional
18
+ from pydantic import Field, StrictInt
20
19
  from typing_extensions import Annotated
21
20
  from revengai.models.base_response_box_plot_confidence import BaseResponseBoxPlotConfidence
22
21
  from revengai.models.base_response_list_function_box_plot_confidence import BaseResponseListFunctionBoxPlotConfidence
@@ -48,7 +47,6 @@ class ConfidenceApi:
48
47
  self,
49
48
  analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the tag scores for")],
50
49
  tag_confidence_body: TagConfidenceBody,
51
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
52
50
  _request_timeout: Union[
53
51
  None,
54
52
  Annotated[StrictFloat, Field(gt=0)],
@@ -70,8 +68,6 @@ class ConfidenceApi:
70
68
  :type analysis_id: int
71
69
  :param tag_confidence_body: (required)
72
70
  :type tag_confidence_body: TagConfidenceBody
73
- :param authorization: API Key bearer token
74
- :type authorization: str
75
71
  :param _request_timeout: timeout setting for this request. If one
76
72
  number provided, it will be total request
77
73
  timeout. It can also be a pair (tuple) of
@@ -97,7 +93,6 @@ class ConfidenceApi:
97
93
  _param = self._get_analysis_tag_score_serialize(
98
94
  analysis_id=analysis_id,
99
95
  tag_confidence_body=tag_confidence_body,
100
- authorization=authorization,
101
96
  _request_auth=_request_auth,
102
97
  _content_type=_content_type,
103
98
  _headers=_headers,
@@ -124,7 +119,6 @@ class ConfidenceApi:
124
119
  self,
125
120
  analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the tag scores for")],
126
121
  tag_confidence_body: TagConfidenceBody,
127
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
128
122
  _request_timeout: Union[
129
123
  None,
130
124
  Annotated[StrictFloat, Field(gt=0)],
@@ -146,8 +140,6 @@ class ConfidenceApi:
146
140
  :type analysis_id: int
147
141
  :param tag_confidence_body: (required)
148
142
  :type tag_confidence_body: TagConfidenceBody
149
- :param authorization: API Key bearer token
150
- :type authorization: str
151
143
  :param _request_timeout: timeout setting for this request. If one
152
144
  number provided, it will be total request
153
145
  timeout. It can also be a pair (tuple) of
@@ -173,7 +165,6 @@ class ConfidenceApi:
173
165
  _param = self._get_analysis_tag_score_serialize(
174
166
  analysis_id=analysis_id,
175
167
  tag_confidence_body=tag_confidence_body,
176
- authorization=authorization,
177
168
  _request_auth=_request_auth,
178
169
  _content_type=_content_type,
179
170
  _headers=_headers,
@@ -200,7 +191,6 @@ class ConfidenceApi:
200
191
  self,
201
192
  analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the tag scores for")],
202
193
  tag_confidence_body: TagConfidenceBody,
203
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
204
194
  _request_timeout: Union[
205
195
  None,
206
196
  Annotated[StrictFloat, Field(gt=0)],
@@ -222,8 +212,6 @@ class ConfidenceApi:
222
212
  :type analysis_id: int
223
213
  :param tag_confidence_body: (required)
224
214
  :type tag_confidence_body: TagConfidenceBody
225
- :param authorization: API Key bearer token
226
- :type authorization: str
227
215
  :param _request_timeout: timeout setting for this request. If one
228
216
  number provided, it will be total request
229
217
  timeout. It can also be a pair (tuple) of
@@ -249,7 +237,6 @@ class ConfidenceApi:
249
237
  _param = self._get_analysis_tag_score_serialize(
250
238
  analysis_id=analysis_id,
251
239
  tag_confidence_body=tag_confidence_body,
252
- authorization=authorization,
253
240
  _request_auth=_request_auth,
254
241
  _content_type=_content_type,
255
242
  _headers=_headers,
@@ -271,7 +258,6 @@ class ConfidenceApi:
271
258
  self,
272
259
  analysis_id,
273
260
  tag_confidence_body,
274
- authorization,
275
261
  _request_auth,
276
262
  _content_type,
277
263
  _headers,
@@ -297,8 +283,6 @@ class ConfidenceApi:
297
283
  _path_params['analysis_id'] = analysis_id
298
284
  # process the query parameters
299
285
  # process the header parameters
300
- if authorization is not None:
301
- _header_params['authorization'] = authorization
302
286
  # process the form parameters
303
287
  # process the body parameter
304
288
  if tag_confidence_body is not None:
@@ -354,7 +338,6 @@ class ConfidenceApi:
354
338
  def get_analysis_threat_score(
355
339
  self,
356
340
  analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the threat score for")],
357
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
358
341
  _request_timeout: Union[
359
342
  None,
360
343
  Annotated[StrictFloat, Field(gt=0)],
@@ -374,8 +357,6 @@ class ConfidenceApi:
374
357
 
375
358
  :param analysis_id: The analysis to calculate the threat score for (required)
376
359
  :type analysis_id: int
377
- :param authorization: API Key bearer token
378
- :type authorization: str
379
360
  :param _request_timeout: timeout setting for this request. If one
380
361
  number provided, it will be total request
381
362
  timeout. It can also be a pair (tuple) of
@@ -400,7 +381,6 @@ class ConfidenceApi:
400
381
 
401
382
  _param = self._get_analysis_threat_score_serialize(
402
383
  analysis_id=analysis_id,
403
- authorization=authorization,
404
384
  _request_auth=_request_auth,
405
385
  _content_type=_content_type,
406
386
  _headers=_headers,
@@ -426,7 +406,6 @@ class ConfidenceApi:
426
406
  def get_analysis_threat_score_with_http_info(
427
407
  self,
428
408
  analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the threat score for")],
429
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
430
409
  _request_timeout: Union[
431
410
  None,
432
411
  Annotated[StrictFloat, Field(gt=0)],
@@ -446,8 +425,6 @@ class ConfidenceApi:
446
425
 
447
426
  :param analysis_id: The analysis to calculate the threat score for (required)
448
427
  :type analysis_id: int
449
- :param authorization: API Key bearer token
450
- :type authorization: str
451
428
  :param _request_timeout: timeout setting for this request. If one
452
429
  number provided, it will be total request
453
430
  timeout. It can also be a pair (tuple) of
@@ -472,7 +449,6 @@ class ConfidenceApi:
472
449
 
473
450
  _param = self._get_analysis_threat_score_serialize(
474
451
  analysis_id=analysis_id,
475
- authorization=authorization,
476
452
  _request_auth=_request_auth,
477
453
  _content_type=_content_type,
478
454
  _headers=_headers,
@@ -498,7 +474,6 @@ class ConfidenceApi:
498
474
  def get_analysis_threat_score_without_preload_content(
499
475
  self,
500
476
  analysis_id: Annotated[StrictInt, Field(description="The analysis to calculate the threat score for")],
501
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
502
477
  _request_timeout: Union[
503
478
  None,
504
479
  Annotated[StrictFloat, Field(gt=0)],
@@ -518,8 +493,6 @@ class ConfidenceApi:
518
493
 
519
494
  :param analysis_id: The analysis to calculate the threat score for (required)
520
495
  :type analysis_id: int
521
- :param authorization: API Key bearer token
522
- :type authorization: str
523
496
  :param _request_timeout: timeout setting for this request. If one
524
497
  number provided, it will be total request
525
498
  timeout. It can also be a pair (tuple) of
@@ -544,7 +517,6 @@ class ConfidenceApi:
544
517
 
545
518
  _param = self._get_analysis_threat_score_serialize(
546
519
  analysis_id=analysis_id,
547
- authorization=authorization,
548
520
  _request_auth=_request_auth,
549
521
  _content_type=_content_type,
550
522
  _headers=_headers,
@@ -565,7 +537,6 @@ class ConfidenceApi:
565
537
  def _get_analysis_threat_score_serialize(
566
538
  self,
567
539
  analysis_id,
568
- authorization,
569
540
  _request_auth,
570
541
  _content_type,
571
542
  _headers,
@@ -591,8 +562,6 @@ class ConfidenceApi:
591
562
  _path_params['analysis_id'] = analysis_id
592
563
  # process the query parameters
593
564
  # process the header parameters
594
- if authorization is not None:
595
- _header_params['authorization'] = authorization
596
565
  # process the form parameters
597
566
  # process the body parameter
598
567
 
@@ -633,7 +602,6 @@ class ConfidenceApi:
633
602
  def get_functions_name_score(
634
603
  self,
635
604
  function_name_confidence_body: FunctionNameConfidenceBody,
636
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
637
605
  _request_timeout: Union[
638
606
  None,
639
607
  Annotated[StrictFloat, Field(gt=0)],
@@ -653,8 +621,6 @@ class ConfidenceApi:
653
621
 
654
622
  :param function_name_confidence_body: (required)
655
623
  :type function_name_confidence_body: FunctionNameConfidenceBody
656
- :param authorization: API Key bearer token
657
- :type authorization: str
658
624
  :param _request_timeout: timeout setting for this request. If one
659
625
  number provided, it will be total request
660
626
  timeout. It can also be a pair (tuple) of
@@ -679,7 +645,6 @@ class ConfidenceApi:
679
645
 
680
646
  _param = self._get_functions_name_score_serialize(
681
647
  function_name_confidence_body=function_name_confidence_body,
682
- authorization=authorization,
683
648
  _request_auth=_request_auth,
684
649
  _content_type=_content_type,
685
650
  _headers=_headers,
@@ -705,7 +670,6 @@ class ConfidenceApi:
705
670
  def get_functions_name_score_with_http_info(
706
671
  self,
707
672
  function_name_confidence_body: FunctionNameConfidenceBody,
708
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
709
673
  _request_timeout: Union[
710
674
  None,
711
675
  Annotated[StrictFloat, Field(gt=0)],
@@ -725,8 +689,6 @@ class ConfidenceApi:
725
689
 
726
690
  :param function_name_confidence_body: (required)
727
691
  :type function_name_confidence_body: FunctionNameConfidenceBody
728
- :param authorization: API Key bearer token
729
- :type authorization: str
730
692
  :param _request_timeout: timeout setting for this request. If one
731
693
  number provided, it will be total request
732
694
  timeout. It can also be a pair (tuple) of
@@ -751,7 +713,6 @@ class ConfidenceApi:
751
713
 
752
714
  _param = self._get_functions_name_score_serialize(
753
715
  function_name_confidence_body=function_name_confidence_body,
754
- authorization=authorization,
755
716
  _request_auth=_request_auth,
756
717
  _content_type=_content_type,
757
718
  _headers=_headers,
@@ -777,7 +738,6 @@ class ConfidenceApi:
777
738
  def get_functions_name_score_without_preload_content(
778
739
  self,
779
740
  function_name_confidence_body: FunctionNameConfidenceBody,
780
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
781
741
  _request_timeout: Union[
782
742
  None,
783
743
  Annotated[StrictFloat, Field(gt=0)],
@@ -797,8 +757,6 @@ class ConfidenceApi:
797
757
 
798
758
  :param function_name_confidence_body: (required)
799
759
  :type function_name_confidence_body: FunctionNameConfidenceBody
800
- :param authorization: API Key bearer token
801
- :type authorization: str
802
760
  :param _request_timeout: timeout setting for this request. If one
803
761
  number provided, it will be total request
804
762
  timeout. It can also be a pair (tuple) of
@@ -823,7 +781,6 @@ class ConfidenceApi:
823
781
 
824
782
  _param = self._get_functions_name_score_serialize(
825
783
  function_name_confidence_body=function_name_confidence_body,
826
- authorization=authorization,
827
784
  _request_auth=_request_auth,
828
785
  _content_type=_content_type,
829
786
  _headers=_headers,
@@ -844,7 +801,6 @@ class ConfidenceApi:
844
801
  def _get_functions_name_score_serialize(
845
802
  self,
846
803
  function_name_confidence_body,
847
- authorization,
848
804
  _request_auth,
849
805
  _content_type,
850
806
  _headers,
@@ -868,8 +824,6 @@ class ConfidenceApi:
868
824
  # process the path parameters
869
825
  # process the query parameters
870
826
  # process the header parameters
871
- if authorization is not None:
872
- _header_params['authorization'] = authorization
873
827
  # process the form parameters
874
828
  # process the body parameter
875
829
  if function_name_confidence_body is not None:
@@ -925,7 +879,6 @@ class ConfidenceApi:
925
879
  def get_functions_threat_score(
926
880
  self,
927
881
  threat_score_function_body: ThreatScoreFunctionBody,
928
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
929
882
  _request_timeout: Union[
930
883
  None,
931
884
  Annotated[StrictFloat, Field(gt=0)],
@@ -945,8 +898,6 @@ class ConfidenceApi:
945
898
 
946
899
  :param threat_score_function_body: (required)
947
900
  :type threat_score_function_body: ThreatScoreFunctionBody
948
- :param authorization: API Key bearer token
949
- :type authorization: str
950
901
  :param _request_timeout: timeout setting for this request. If one
951
902
  number provided, it will be total request
952
903
  timeout. It can also be a pair (tuple) of
@@ -971,7 +922,6 @@ class ConfidenceApi:
971
922
 
972
923
  _param = self._get_functions_threat_score_serialize(
973
924
  threat_score_function_body=threat_score_function_body,
974
- authorization=authorization,
975
925
  _request_auth=_request_auth,
976
926
  _content_type=_content_type,
977
927
  _headers=_headers,
@@ -997,7 +947,6 @@ class ConfidenceApi:
997
947
  def get_functions_threat_score_with_http_info(
998
948
  self,
999
949
  threat_score_function_body: ThreatScoreFunctionBody,
1000
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1001
950
  _request_timeout: Union[
1002
951
  None,
1003
952
  Annotated[StrictFloat, Field(gt=0)],
@@ -1017,8 +966,6 @@ class ConfidenceApi:
1017
966
 
1018
967
  :param threat_score_function_body: (required)
1019
968
  :type threat_score_function_body: ThreatScoreFunctionBody
1020
- :param authorization: API Key bearer token
1021
- :type authorization: str
1022
969
  :param _request_timeout: timeout setting for this request. If one
1023
970
  number provided, it will be total request
1024
971
  timeout. It can also be a pair (tuple) of
@@ -1043,7 +990,6 @@ class ConfidenceApi:
1043
990
 
1044
991
  _param = self._get_functions_threat_score_serialize(
1045
992
  threat_score_function_body=threat_score_function_body,
1046
- authorization=authorization,
1047
993
  _request_auth=_request_auth,
1048
994
  _content_type=_content_type,
1049
995
  _headers=_headers,
@@ -1069,7 +1015,6 @@ class ConfidenceApi:
1069
1015
  def get_functions_threat_score_without_preload_content(
1070
1016
  self,
1071
1017
  threat_score_function_body: ThreatScoreFunctionBody,
1072
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1073
1018
  _request_timeout: Union[
1074
1019
  None,
1075
1020
  Annotated[StrictFloat, Field(gt=0)],
@@ -1089,8 +1034,6 @@ class ConfidenceApi:
1089
1034
 
1090
1035
  :param threat_score_function_body: (required)
1091
1036
  :type threat_score_function_body: ThreatScoreFunctionBody
1092
- :param authorization: API Key bearer token
1093
- :type authorization: str
1094
1037
  :param _request_timeout: timeout setting for this request. If one
1095
1038
  number provided, it will be total request
1096
1039
  timeout. It can also be a pair (tuple) of
@@ -1115,7 +1058,6 @@ class ConfidenceApi:
1115
1058
 
1116
1059
  _param = self._get_functions_threat_score_serialize(
1117
1060
  threat_score_function_body=threat_score_function_body,
1118
- authorization=authorization,
1119
1061
  _request_auth=_request_auth,
1120
1062
  _content_type=_content_type,
1121
1063
  _headers=_headers,
@@ -1136,7 +1078,6 @@ class ConfidenceApi:
1136
1078
  def _get_functions_threat_score_serialize(
1137
1079
  self,
1138
1080
  threat_score_function_body,
1139
- authorization,
1140
1081
  _request_auth,
1141
1082
  _content_type,
1142
1083
  _headers,
@@ -1160,8 +1101,6 @@ class ConfidenceApi:
1160
1101
  # process the path parameters
1161
1102
  # process the query parameters
1162
1103
  # process the header parameters
1163
- if authorization is not None:
1164
- _header_params['authorization'] = authorization
1165
1104
  # process the form parameters
1166
1105
  # process the body parameter
1167
1106
  if threat_score_function_body is not None: