revengai 1.81.2__py3-none-any.whl → 1.85.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.

@@ -19,7 +19,6 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
19
19
  from typing import List, Optional, Union
20
20
  from typing_extensions import Annotated
21
21
  from revengai.models.ai_unstrip_request import AiUnstripRequest
22
- from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse
23
22
  from revengai.models.auto_unstrip_request import AutoUnstripRequest
24
23
  from revengai.models.auto_unstrip_response import AutoUnstripResponse
25
24
  from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse
@@ -29,7 +28,6 @@ from revengai.models.base_response_function_capability_response import BaseRespo
29
28
  from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse
30
29
  from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse
31
30
  from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse
32
- from revengai.models.unstrip_request import UnstripRequest
33
31
 
34
32
  from revengai.api_client import ApiClient, RequestSerialized
35
33
  from revengai.api_response import ApiResponse
@@ -3390,310 +3388,3 @@ class FunctionsCoreApi:
3390
3388
  )
3391
3389
 
3392
3390
 
3393
-
3394
-
3395
- @validate_call
3396
- def unstrip(
3397
- self,
3398
- analysis_id: StrictInt,
3399
- unstrip_request: UnstripRequest,
3400
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3401
- _request_timeout: Union[
3402
- None,
3403
- Annotated[StrictFloat, Field(gt=0)],
3404
- Tuple[
3405
- Annotated[StrictFloat, Field(gt=0)],
3406
- Annotated[StrictFloat, Field(gt=0)]
3407
- ]
3408
- ] = None,
3409
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3410
- _content_type: Optional[StrictStr] = None,
3411
- _headers: Optional[Dict[StrictStr, Any]] = None,
3412
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3413
- ) -> AutoUnstripByGroupResponse:
3414
- """Performs matching and auto-unstrip for an analysis and its functions
3415
-
3416
- Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system
3417
-
3418
- :param analysis_id: (required)
3419
- :type analysis_id: int
3420
- :param unstrip_request: (required)
3421
- :type unstrip_request: UnstripRequest
3422
- :param authorization: API Key bearer token
3423
- :type authorization: str
3424
- :param _request_timeout: timeout setting for this request. If one
3425
- number provided, it will be total request
3426
- timeout. It can also be a pair (tuple) of
3427
- (connection, read) timeouts.
3428
- :type _request_timeout: int, tuple(int, int), optional
3429
- :param _request_auth: set to override the auth_settings for an a single
3430
- request; this effectively ignores the
3431
- authentication in the spec for a single request.
3432
- :type _request_auth: dict, optional
3433
- :param _content_type: force content-type for the request.
3434
- :type _content_type: str, Optional
3435
- :param _headers: set to override the headers for a single
3436
- request; this effectively ignores the headers
3437
- in the spec for a single request.
3438
- :type _headers: dict, optional
3439
- :param _host_index: set to override the host_index for a single
3440
- request; this effectively ignores the host_index
3441
- in the spec for a single request.
3442
- :type _host_index: int, optional
3443
- :return: Returns the result object.
3444
- """ # noqa: E501
3445
-
3446
- _param = self._unstrip_serialize(
3447
- analysis_id=analysis_id,
3448
- unstrip_request=unstrip_request,
3449
- authorization=authorization,
3450
- _request_auth=_request_auth,
3451
- _content_type=_content_type,
3452
- _headers=_headers,
3453
- _host_index=_host_index
3454
- )
3455
-
3456
- _response_types_map: Dict[str, Optional[str]] = {
3457
- '200': "AutoUnstripByGroupResponse",
3458
- '422': "BaseResponse",
3459
- }
3460
- response_data = self.api_client.call_api(
3461
- *_param,
3462
- _request_timeout=_request_timeout
3463
- )
3464
- response_data.read()
3465
- return self.api_client.response_deserialize(
3466
- response_data=response_data,
3467
- response_types_map=_response_types_map,
3468
- ).data
3469
-
3470
-
3471
- @validate_call
3472
- def unstrip_with_http_info(
3473
- self,
3474
- analysis_id: StrictInt,
3475
- unstrip_request: UnstripRequest,
3476
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3477
- _request_timeout: Union[
3478
- None,
3479
- Annotated[StrictFloat, Field(gt=0)],
3480
- Tuple[
3481
- Annotated[StrictFloat, Field(gt=0)],
3482
- Annotated[StrictFloat, Field(gt=0)]
3483
- ]
3484
- ] = None,
3485
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3486
- _content_type: Optional[StrictStr] = None,
3487
- _headers: Optional[Dict[StrictStr, Any]] = None,
3488
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3489
- ) -> ApiResponse[AutoUnstripByGroupResponse]:
3490
- """Performs matching and auto-unstrip for an analysis and its functions
3491
-
3492
- Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system
3493
-
3494
- :param analysis_id: (required)
3495
- :type analysis_id: int
3496
- :param unstrip_request: (required)
3497
- :type unstrip_request: UnstripRequest
3498
- :param authorization: API Key bearer token
3499
- :type authorization: str
3500
- :param _request_timeout: timeout setting for this request. If one
3501
- number provided, it will be total request
3502
- timeout. It can also be a pair (tuple) of
3503
- (connection, read) timeouts.
3504
- :type _request_timeout: int, tuple(int, int), optional
3505
- :param _request_auth: set to override the auth_settings for an a single
3506
- request; this effectively ignores the
3507
- authentication in the spec for a single request.
3508
- :type _request_auth: dict, optional
3509
- :param _content_type: force content-type for the request.
3510
- :type _content_type: str, Optional
3511
- :param _headers: set to override the headers for a single
3512
- request; this effectively ignores the headers
3513
- in the spec for a single request.
3514
- :type _headers: dict, optional
3515
- :param _host_index: set to override the host_index for a single
3516
- request; this effectively ignores the host_index
3517
- in the spec for a single request.
3518
- :type _host_index: int, optional
3519
- :return: Returns the result object.
3520
- """ # noqa: E501
3521
-
3522
- _param = self._unstrip_serialize(
3523
- analysis_id=analysis_id,
3524
- unstrip_request=unstrip_request,
3525
- authorization=authorization,
3526
- _request_auth=_request_auth,
3527
- _content_type=_content_type,
3528
- _headers=_headers,
3529
- _host_index=_host_index
3530
- )
3531
-
3532
- _response_types_map: Dict[str, Optional[str]] = {
3533
- '200': "AutoUnstripByGroupResponse",
3534
- '422': "BaseResponse",
3535
- }
3536
- response_data = self.api_client.call_api(
3537
- *_param,
3538
- _request_timeout=_request_timeout
3539
- )
3540
- response_data.read()
3541
- return self.api_client.response_deserialize(
3542
- response_data=response_data,
3543
- response_types_map=_response_types_map,
3544
- )
3545
-
3546
-
3547
- @validate_call
3548
- def unstrip_without_preload_content(
3549
- self,
3550
- analysis_id: StrictInt,
3551
- unstrip_request: UnstripRequest,
3552
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
3553
- _request_timeout: Union[
3554
- None,
3555
- Annotated[StrictFloat, Field(gt=0)],
3556
- Tuple[
3557
- Annotated[StrictFloat, Field(gt=0)],
3558
- Annotated[StrictFloat, Field(gt=0)]
3559
- ]
3560
- ] = None,
3561
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3562
- _content_type: Optional[StrictStr] = None,
3563
- _headers: Optional[Dict[StrictStr, Any]] = None,
3564
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3565
- ) -> RESTResponseType:
3566
- """Performs matching and auto-unstrip for an analysis and its functions
3567
-
3568
- Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system
3569
-
3570
- :param analysis_id: (required)
3571
- :type analysis_id: int
3572
- :param unstrip_request: (required)
3573
- :type unstrip_request: UnstripRequest
3574
- :param authorization: API Key bearer token
3575
- :type authorization: str
3576
- :param _request_timeout: timeout setting for this request. If one
3577
- number provided, it will be total request
3578
- timeout. It can also be a pair (tuple) of
3579
- (connection, read) timeouts.
3580
- :type _request_timeout: int, tuple(int, int), optional
3581
- :param _request_auth: set to override the auth_settings for an a single
3582
- request; this effectively ignores the
3583
- authentication in the spec for a single request.
3584
- :type _request_auth: dict, optional
3585
- :param _content_type: force content-type for the request.
3586
- :type _content_type: str, Optional
3587
- :param _headers: set to override the headers for a single
3588
- request; this effectively ignores the headers
3589
- in the spec for a single request.
3590
- :type _headers: dict, optional
3591
- :param _host_index: set to override the host_index for a single
3592
- request; this effectively ignores the host_index
3593
- in the spec for a single request.
3594
- :type _host_index: int, optional
3595
- :return: Returns the result object.
3596
- """ # noqa: E501
3597
-
3598
- _param = self._unstrip_serialize(
3599
- analysis_id=analysis_id,
3600
- unstrip_request=unstrip_request,
3601
- authorization=authorization,
3602
- _request_auth=_request_auth,
3603
- _content_type=_content_type,
3604
- _headers=_headers,
3605
- _host_index=_host_index
3606
- )
3607
-
3608
- _response_types_map: Dict[str, Optional[str]] = {
3609
- '200': "AutoUnstripByGroupResponse",
3610
- '422': "BaseResponse",
3611
- }
3612
- response_data = self.api_client.call_api(
3613
- *_param,
3614
- _request_timeout=_request_timeout
3615
- )
3616
- return response_data.response
3617
-
3618
-
3619
- def _unstrip_serialize(
3620
- self,
3621
- analysis_id,
3622
- unstrip_request,
3623
- authorization,
3624
- _request_auth,
3625
- _content_type,
3626
- _headers,
3627
- _host_index,
3628
- ) -> RequestSerialized:
3629
-
3630
- _host = None
3631
-
3632
- _collection_formats: Dict[str, str] = {
3633
- }
3634
-
3635
- _path_params: Dict[str, str] = {}
3636
- _query_params: List[Tuple[str, str]] = []
3637
- _header_params: Dict[str, Optional[str]] = _headers or {}
3638
- _form_params: List[Tuple[str, str]] = []
3639
- _files: Dict[
3640
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3641
- ] = {}
3642
- _body_params: Optional[bytes] = None
3643
-
3644
- # process the path parameters
3645
- if analysis_id is not None:
3646
- _path_params['analysis_id'] = analysis_id
3647
- # process the query parameters
3648
- # process the header parameters
3649
- if authorization is not None:
3650
- _header_params['authorization'] = authorization
3651
- # process the form parameters
3652
- # process the body parameter
3653
- if unstrip_request is not None:
3654
- _body_params = unstrip_request
3655
-
3656
-
3657
- # set the HTTP header `Accept`
3658
- if 'Accept' not in _header_params:
3659
- _header_params['Accept'] = self.api_client.select_header_accept(
3660
- [
3661
- 'application/json'
3662
- ]
3663
- )
3664
-
3665
- # set the HTTP header `Content-Type`
3666
- if _content_type:
3667
- _header_params['Content-Type'] = _content_type
3668
- else:
3669
- _default_content_type = (
3670
- self.api_client.select_header_content_type(
3671
- [
3672
- 'application/json'
3673
- ]
3674
- )
3675
- )
3676
- if _default_content_type is not None:
3677
- _header_params['Content-Type'] = _default_content_type
3678
-
3679
- # authentication setting
3680
- _auth_settings: List[str] = [
3681
- 'APIKey'
3682
- ]
3683
-
3684
- return self.api_client.param_serialize(
3685
- method='POST',
3686
- resource_path='/v2/analyses/{analysis_id}/functions/unstrip',
3687
- path_params=_path_params,
3688
- query_params=_query_params,
3689
- header_params=_header_params,
3690
- body=_body_params,
3691
- post_params=_form_params,
3692
- files=_files,
3693
- auth_settings=_auth_settings,
3694
- collection_formats=_collection_formats,
3695
- _host=_host,
3696
- _request_auth=_request_auth
3697
- )
3698
-
3699
-
revengai/api/v1_api.py ADDED
@@ -0,0 +1,334 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ RevEng.AI API
5
+
6
+ RevEng.AI is Similarity Search Engine for executable binaries
7
+
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from pydantic import Field, StrictStr
19
+ from typing import Optional
20
+ from typing_extensions import Annotated
21
+ from revengai.models.app_api_rest_v1_ann_schema_ann_function import AppApiRestV1AnnSchemaANNFunction
22
+ from revengai.models.function_batch_ann import FunctionBatchAnn
23
+
24
+ from revengai.api_client import ApiClient, RequestSerialized
25
+ from revengai.api_response import ApiResponse
26
+ from revengai.rest import RESTResponseType
27
+
28
+
29
+ class V1Api:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def batch_symbol_ann(
44
+ self,
45
+ app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction,
46
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
47
+ _request_timeout: Union[
48
+ None,
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Tuple[
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Annotated[StrictFloat, Field(gt=0)]
53
+ ]
54
+ ] = None,
55
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
+ _content_type: Optional[StrictStr] = None,
57
+ _headers: Optional[Dict[StrictStr, Any]] = None,
58
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
+ ) -> FunctionBatchAnn:
60
+ """(Deprecated) Batch Symbol ANN using function IDs
61
+
62
+ Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database
63
+
64
+ :param app_api_rest_v1_ann_schema_ann_function: (required)
65
+ :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction
66
+ :param authorization: API Key bearer token
67
+ :type authorization: str
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+ warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning)
90
+
91
+ _param = self._batch_symbol_ann_serialize(
92
+ app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function,
93
+ authorization=authorization,
94
+ _request_auth=_request_auth,
95
+ _content_type=_content_type,
96
+ _headers=_headers,
97
+ _host_index=_host_index
98
+ )
99
+
100
+ _response_types_map: Dict[str, Optional[str]] = {
101
+ '200': "FunctionBatchAnn",
102
+ '422': "BaseResponse",
103
+ }
104
+ response_data = self.api_client.call_api(
105
+ *_param,
106
+ _request_timeout=_request_timeout
107
+ )
108
+ response_data.read()
109
+ return self.api_client.response_deserialize(
110
+ response_data=response_data,
111
+ response_types_map=_response_types_map,
112
+ ).data
113
+
114
+
115
+ @validate_call
116
+ def batch_symbol_ann_with_http_info(
117
+ self,
118
+ app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction,
119
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
120
+ _request_timeout: Union[
121
+ None,
122
+ Annotated[StrictFloat, Field(gt=0)],
123
+ Tuple[
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Annotated[StrictFloat, Field(gt=0)]
126
+ ]
127
+ ] = None,
128
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
+ _content_type: Optional[StrictStr] = None,
130
+ _headers: Optional[Dict[StrictStr, Any]] = None,
131
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
+ ) -> ApiResponse[FunctionBatchAnn]:
133
+ """(Deprecated) Batch Symbol ANN using function IDs
134
+
135
+ Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database
136
+
137
+ :param app_api_rest_v1_ann_schema_ann_function: (required)
138
+ :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction
139
+ :param authorization: API Key bearer token
140
+ :type authorization: str
141
+ :param _request_timeout: timeout setting for this request. If one
142
+ number provided, it will be total request
143
+ timeout. It can also be a pair (tuple) of
144
+ (connection, read) timeouts.
145
+ :type _request_timeout: int, tuple(int, int), optional
146
+ :param _request_auth: set to override the auth_settings for an a single
147
+ request; this effectively ignores the
148
+ authentication in the spec for a single request.
149
+ :type _request_auth: dict, optional
150
+ :param _content_type: force content-type for the request.
151
+ :type _content_type: str, Optional
152
+ :param _headers: set to override the headers for a single
153
+ request; this effectively ignores the headers
154
+ in the spec for a single request.
155
+ :type _headers: dict, optional
156
+ :param _host_index: set to override the host_index for a single
157
+ request; this effectively ignores the host_index
158
+ in the spec for a single request.
159
+ :type _host_index: int, optional
160
+ :return: Returns the result object.
161
+ """ # noqa: E501
162
+ warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning)
163
+
164
+ _param = self._batch_symbol_ann_serialize(
165
+ app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function,
166
+ authorization=authorization,
167
+ _request_auth=_request_auth,
168
+ _content_type=_content_type,
169
+ _headers=_headers,
170
+ _host_index=_host_index
171
+ )
172
+
173
+ _response_types_map: Dict[str, Optional[str]] = {
174
+ '200': "FunctionBatchAnn",
175
+ '422': "BaseResponse",
176
+ }
177
+ response_data = self.api_client.call_api(
178
+ *_param,
179
+ _request_timeout=_request_timeout
180
+ )
181
+ response_data.read()
182
+ return self.api_client.response_deserialize(
183
+ response_data=response_data,
184
+ response_types_map=_response_types_map,
185
+ )
186
+
187
+
188
+ @validate_call
189
+ def batch_symbol_ann_without_preload_content(
190
+ self,
191
+ app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction,
192
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
193
+ _request_timeout: Union[
194
+ None,
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Tuple[
197
+ Annotated[StrictFloat, Field(gt=0)],
198
+ Annotated[StrictFloat, Field(gt=0)]
199
+ ]
200
+ ] = None,
201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
202
+ _content_type: Optional[StrictStr] = None,
203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
205
+ ) -> RESTResponseType:
206
+ """(Deprecated) Batch Symbol ANN using function IDs
207
+
208
+ Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database
209
+
210
+ :param app_api_rest_v1_ann_schema_ann_function: (required)
211
+ :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction
212
+ :param authorization: API Key bearer token
213
+ :type authorization: str
214
+ :param _request_timeout: timeout setting for this request. If one
215
+ number provided, it will be total request
216
+ timeout. It can also be a pair (tuple) of
217
+ (connection, read) timeouts.
218
+ :type _request_timeout: int, tuple(int, int), optional
219
+ :param _request_auth: set to override the auth_settings for an a single
220
+ request; this effectively ignores the
221
+ authentication in the spec for a single request.
222
+ :type _request_auth: dict, optional
223
+ :param _content_type: force content-type for the request.
224
+ :type _content_type: str, Optional
225
+ :param _headers: set to override the headers for a single
226
+ request; this effectively ignores the headers
227
+ in the spec for a single request.
228
+ :type _headers: dict, optional
229
+ :param _host_index: set to override the host_index for a single
230
+ request; this effectively ignores the host_index
231
+ in the spec for a single request.
232
+ :type _host_index: int, optional
233
+ :return: Returns the result object.
234
+ """ # noqa: E501
235
+ warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning)
236
+
237
+ _param = self._batch_symbol_ann_serialize(
238
+ app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function,
239
+ authorization=authorization,
240
+ _request_auth=_request_auth,
241
+ _content_type=_content_type,
242
+ _headers=_headers,
243
+ _host_index=_host_index
244
+ )
245
+
246
+ _response_types_map: Dict[str, Optional[str]] = {
247
+ '200': "FunctionBatchAnn",
248
+ '422': "BaseResponse",
249
+ }
250
+ response_data = self.api_client.call_api(
251
+ *_param,
252
+ _request_timeout=_request_timeout
253
+ )
254
+ return response_data.response
255
+
256
+
257
+ def _batch_symbol_ann_serialize(
258
+ self,
259
+ app_api_rest_v1_ann_schema_ann_function,
260
+ authorization,
261
+ _request_auth,
262
+ _content_type,
263
+ _headers,
264
+ _host_index,
265
+ ) -> RequestSerialized:
266
+
267
+ _host = None
268
+
269
+ _collection_formats: Dict[str, str] = {
270
+ }
271
+
272
+ _path_params: Dict[str, str] = {}
273
+ _query_params: List[Tuple[str, str]] = []
274
+ _header_params: Dict[str, Optional[str]] = _headers or {}
275
+ _form_params: List[Tuple[str, str]] = []
276
+ _files: Dict[
277
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
278
+ ] = {}
279
+ _body_params: Optional[bytes] = None
280
+
281
+ # process the path parameters
282
+ # process the query parameters
283
+ # process the header parameters
284
+ if authorization is not None:
285
+ _header_params['authorization'] = authorization
286
+ # process the form parameters
287
+ # process the body parameter
288
+ if app_api_rest_v1_ann_schema_ann_function is not None:
289
+ _body_params = app_api_rest_v1_ann_schema_ann_function
290
+
291
+
292
+ # set the HTTP header `Accept`
293
+ if 'Accept' not in _header_params:
294
+ _header_params['Accept'] = self.api_client.select_header_accept(
295
+ [
296
+ 'application/json'
297
+ ]
298
+ )
299
+
300
+ # set the HTTP header `Content-Type`
301
+ if _content_type:
302
+ _header_params['Content-Type'] = _content_type
303
+ else:
304
+ _default_content_type = (
305
+ self.api_client.select_header_content_type(
306
+ [
307
+ 'application/json'
308
+ ]
309
+ )
310
+ )
311
+ if _default_content_type is not None:
312
+ _header_params['Content-Type'] = _default_content_type
313
+
314
+ # authentication setting
315
+ _auth_settings: List[str] = [
316
+ 'APIKey'
317
+ ]
318
+
319
+ return self.api_client.param_serialize(
320
+ method='POST',
321
+ resource_path='/v1/ann/symbol/batch',
322
+ path_params=_path_params,
323
+ query_params=_query_params,
324
+ header_params=_header_params,
325
+ body=_body_params,
326
+ post_params=_form_params,
327
+ files=_files,
328
+ auth_settings=_auth_settings,
329
+ collection_formats=_collection_formats,
330
+ _host=_host,
331
+ _request_auth=_request_auth
332
+ )
333
+
334
+
revengai/api_client.py CHANGED
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/v1.81.2/python'
93
+ self.user_agent = 'OpenAPI-Generator/v1.85.0/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
revengai/configuration.py CHANGED
@@ -529,8 +529,8 @@ conf = revengai.Configuration(
529
529
  return "Python SDK Debug Report:\n"\
530
530
  "OS: {env}\n"\
531
531
  "Python Version: {pyversion}\n"\
532
- "Version of the API: v1.81.2\n"\
533
- "SDK Package Version: v1.81.2".\
532
+ "Version of the API: v1.85.0\n"\
533
+ "SDK Package Version: v1.85.0".\
534
534
  format(env=sys.platform, pyversion=sys.version)
535
535
 
536
536
  def get_host_settings(self) -> List[HostSetting]: