revengai 2.3.0__py3-none-any.whl → 2.8.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.

Files changed (31) hide show
  1. revengai/__init__.py +1 -37
  2. revengai/api/__init__.py +0 -1
  3. revengai/api/analyses_core_api.py +0 -294
  4. revengai/api/functions_core_api.py +2 -369
  5. revengai/api_client.py +1 -1
  6. revengai/configuration.py +2 -2
  7. revengai/models/__init__.py +0 -17
  8. revengai/models/elf_relocation.py +1 -1
  9. revengai/models/functions_detail_response.py +4 -2
  10. {revengai-2.3.0.dist-info → revengai-2.8.0.dist-info}/METADATA +1 -24
  11. {revengai-2.3.0.dist-info → revengai-2.8.0.dist-info}/RECORD +13 -31
  12. revengai/api/confidence_api.py +0 -1152
  13. revengai/models/ann_function.py +0 -122
  14. revengai/models/base_response_box_plot_confidence.py +0 -125
  15. revengai/models/base_response_list_function_box_plot_confidence.py +0 -129
  16. revengai/models/base_response_list_similar_functions_response.py +0 -129
  17. revengai/models/base_response_list_tag_origin_box_plot_confidence.py +0 -129
  18. revengai/models/base_response_nearest_neighbor_analysis.py +0 -135
  19. revengai/models/box_plot_confidence.py +0 -98
  20. revengai/models/function_box_plot_confidence.py +0 -92
  21. revengai/models/function_name_confidence_body.py +0 -97
  22. revengai/models/function_name_input.py +0 -88
  23. revengai/models/nearest_neighbor.py +0 -105
  24. revengai/models/origin.py +0 -42
  25. revengai/models/similar_functions_response.py +0 -100
  26. revengai/models/tag_confidence_body.py +0 -95
  27. revengai/models/tag_origin_box_plot_confidence.py +0 -96
  28. revengai/models/tags.py +0 -89
  29. revengai/models/threat_score_function_body.py +0 -87
  30. {revengai-2.3.0.dist-info → revengai-2.8.0.dist-info}/WHEEL +0 -0
  31. {revengai-2.3.0.dist-info → revengai-2.8.0.dist-info}/licenses/LICENSE.md +0 -0
@@ -15,8 +15,8 @@ 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, StrictBool, StrictInt, StrictStr, field_validator
19
- from typing import List, Optional, Union
18
+ from pydantic import Field, StrictInt, StrictStr
19
+ from typing import Optional
20
20
  from typing_extensions import Annotated
21
21
  from revengai.models.ai_unstrip_request import AiUnstripRequest
22
22
  from revengai.models.analysis_function_matching_request import AnalysisFunctionMatchingRequest
@@ -28,7 +28,6 @@ from revengai.models.base_response_function_blocks_response import BaseResponseF
28
28
  from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse
29
29
  from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse
30
30
  from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse
31
- from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse
32
31
  from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
33
32
  from revengai.models.function_matching_request import FunctionMatchingRequest
34
33
 
@@ -3429,369 +3428,3 @@ class FunctionsCoreApi:
3429
3428
  )
3430
3429
 
3431
3430
 
3432
-
3433
-
3434
- @validate_call
3435
- def get_similar_functions(
3436
- self,
3437
- function_id: StrictInt,
3438
- limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
3439
- distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None,
3440
- collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
3441
- debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
3442
- debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
3443
- binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
3444
- _request_timeout: Union[
3445
- None,
3446
- Annotated[StrictFloat, Field(gt=0)],
3447
- Tuple[
3448
- Annotated[StrictFloat, Field(gt=0)],
3449
- Annotated[StrictFloat, Field(gt=0)]
3450
- ]
3451
- ] = None,
3452
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3453
- _content_type: Optional[StrictStr] = None,
3454
- _headers: Optional[Dict[StrictStr, Any]] = None,
3455
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3456
- ) -> BaseResponseListSimilarFunctionsResponse:
3457
- """Get list of similar functions
3458
-
3459
-
3460
- :param function_id: (required)
3461
- :type function_id: int
3462
- :param limit: Number of similar functions to return
3463
- :type limit: int
3464
- :param distance: Maximum cosine distance
3465
- :type distance: float
3466
- :param collection_ids: Collection filtering by IDs
3467
- :type collection_ids: List[Optional[int]]
3468
- :param debug: Only return matching debug functions
3469
- :type debug: bool
3470
- :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
3471
- :type debug_types: List[str]
3472
- :param binary_ids: Limit similar functions to specific binaries
3473
- :type binary_ids: List[Optional[int]]
3474
- :param _request_timeout: timeout setting for this request. If one
3475
- number provided, it will be total request
3476
- timeout. It can also be a pair (tuple) of
3477
- (connection, read) timeouts.
3478
- :type _request_timeout: int, tuple(int, int), optional
3479
- :param _request_auth: set to override the auth_settings for an a single
3480
- request; this effectively ignores the
3481
- authentication in the spec for a single request.
3482
- :type _request_auth: dict, optional
3483
- :param _content_type: force content-type for the request.
3484
- :type _content_type: str, Optional
3485
- :param _headers: set to override the headers for a single
3486
- request; this effectively ignores the headers
3487
- in the spec for a single request.
3488
- :type _headers: dict, optional
3489
- :param _host_index: set to override the host_index for a single
3490
- request; this effectively ignores the host_index
3491
- in the spec for a single request.
3492
- :type _host_index: int, optional
3493
- :return: Returns the result object.
3494
- """ # noqa: E501
3495
-
3496
- _param = self._get_similar_functions_serialize(
3497
- function_id=function_id,
3498
- limit=limit,
3499
- distance=distance,
3500
- collection_ids=collection_ids,
3501
- debug=debug,
3502
- debug_types=debug_types,
3503
- binary_ids=binary_ids,
3504
- _request_auth=_request_auth,
3505
- _content_type=_content_type,
3506
- _headers=_headers,
3507
- _host_index=_host_index
3508
- )
3509
-
3510
- _response_types_map: Dict[str, Optional[str]] = {
3511
- '200': "BaseResponseListSimilarFunctionsResponse",
3512
- '422': "BaseResponse",
3513
- }
3514
- response_data = self.api_client.call_api(
3515
- *_param,
3516
- _request_timeout=_request_timeout
3517
- )
3518
- response_data.read()
3519
- return self.api_client.response_deserialize(
3520
- response_data=response_data,
3521
- response_types_map=_response_types_map,
3522
- ).data
3523
-
3524
-
3525
- @validate_call
3526
- def get_similar_functions_with_http_info(
3527
- self,
3528
- function_id: StrictInt,
3529
- limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
3530
- distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None,
3531
- collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
3532
- debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
3533
- debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
3534
- binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
3535
- _request_timeout: Union[
3536
- None,
3537
- Annotated[StrictFloat, Field(gt=0)],
3538
- Tuple[
3539
- Annotated[StrictFloat, Field(gt=0)],
3540
- Annotated[StrictFloat, Field(gt=0)]
3541
- ]
3542
- ] = None,
3543
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3544
- _content_type: Optional[StrictStr] = None,
3545
- _headers: Optional[Dict[StrictStr, Any]] = None,
3546
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3547
- ) -> ApiResponse[BaseResponseListSimilarFunctionsResponse]:
3548
- """Get list of similar functions
3549
-
3550
-
3551
- :param function_id: (required)
3552
- :type function_id: int
3553
- :param limit: Number of similar functions to return
3554
- :type limit: int
3555
- :param distance: Maximum cosine distance
3556
- :type distance: float
3557
- :param collection_ids: Collection filtering by IDs
3558
- :type collection_ids: List[Optional[int]]
3559
- :param debug: Only return matching debug functions
3560
- :type debug: bool
3561
- :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
3562
- :type debug_types: List[str]
3563
- :param binary_ids: Limit similar functions to specific binaries
3564
- :type binary_ids: List[Optional[int]]
3565
- :param _request_timeout: timeout setting for this request. If one
3566
- number provided, it will be total request
3567
- timeout. It can also be a pair (tuple) of
3568
- (connection, read) timeouts.
3569
- :type _request_timeout: int, tuple(int, int), optional
3570
- :param _request_auth: set to override the auth_settings for an a single
3571
- request; this effectively ignores the
3572
- authentication in the spec for a single request.
3573
- :type _request_auth: dict, optional
3574
- :param _content_type: force content-type for the request.
3575
- :type _content_type: str, Optional
3576
- :param _headers: set to override the headers for a single
3577
- request; this effectively ignores the headers
3578
- in the spec for a single request.
3579
- :type _headers: dict, optional
3580
- :param _host_index: set to override the host_index for a single
3581
- request; this effectively ignores the host_index
3582
- in the spec for a single request.
3583
- :type _host_index: int, optional
3584
- :return: Returns the result object.
3585
- """ # noqa: E501
3586
-
3587
- _param = self._get_similar_functions_serialize(
3588
- function_id=function_id,
3589
- limit=limit,
3590
- distance=distance,
3591
- collection_ids=collection_ids,
3592
- debug=debug,
3593
- debug_types=debug_types,
3594
- binary_ids=binary_ids,
3595
- _request_auth=_request_auth,
3596
- _content_type=_content_type,
3597
- _headers=_headers,
3598
- _host_index=_host_index
3599
- )
3600
-
3601
- _response_types_map: Dict[str, Optional[str]] = {
3602
- '200': "BaseResponseListSimilarFunctionsResponse",
3603
- '422': "BaseResponse",
3604
- }
3605
- response_data = self.api_client.call_api(
3606
- *_param,
3607
- _request_timeout=_request_timeout
3608
- )
3609
- response_data.read()
3610
- return self.api_client.response_deserialize(
3611
- response_data=response_data,
3612
- response_types_map=_response_types_map,
3613
- )
3614
-
3615
-
3616
- @validate_call
3617
- def get_similar_functions_without_preload_content(
3618
- self,
3619
- function_id: StrictInt,
3620
- limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
3621
- distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None,
3622
- collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
3623
- debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
3624
- debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
3625
- binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
3626
- _request_timeout: Union[
3627
- None,
3628
- Annotated[StrictFloat, Field(gt=0)],
3629
- Tuple[
3630
- Annotated[StrictFloat, Field(gt=0)],
3631
- Annotated[StrictFloat, Field(gt=0)]
3632
- ]
3633
- ] = None,
3634
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
3635
- _content_type: Optional[StrictStr] = None,
3636
- _headers: Optional[Dict[StrictStr, Any]] = None,
3637
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3638
- ) -> RESTResponseType:
3639
- """Get list of similar functions
3640
-
3641
-
3642
- :param function_id: (required)
3643
- :type function_id: int
3644
- :param limit: Number of similar functions to return
3645
- :type limit: int
3646
- :param distance: Maximum cosine distance
3647
- :type distance: float
3648
- :param collection_ids: Collection filtering by IDs
3649
- :type collection_ids: List[Optional[int]]
3650
- :param debug: Only return matching debug functions
3651
- :type debug: bool
3652
- :param debug_types: If limiting results to functions with debug names, which type of debug names to include?
3653
- :type debug_types: List[str]
3654
- :param binary_ids: Limit similar functions to specific binaries
3655
- :type binary_ids: List[Optional[int]]
3656
- :param _request_timeout: timeout setting for this request. If one
3657
- number provided, it will be total request
3658
- timeout. It can also be a pair (tuple) of
3659
- (connection, read) timeouts.
3660
- :type _request_timeout: int, tuple(int, int), optional
3661
- :param _request_auth: set to override the auth_settings for an a single
3662
- request; this effectively ignores the
3663
- authentication in the spec for a single request.
3664
- :type _request_auth: dict, optional
3665
- :param _content_type: force content-type for the request.
3666
- :type _content_type: str, Optional
3667
- :param _headers: set to override the headers for a single
3668
- request; this effectively ignores the headers
3669
- in the spec for a single request.
3670
- :type _headers: dict, optional
3671
- :param _host_index: set to override the host_index for a single
3672
- request; this effectively ignores the host_index
3673
- in the spec for a single request.
3674
- :type _host_index: int, optional
3675
- :return: Returns the result object.
3676
- """ # noqa: E501
3677
-
3678
- _param = self._get_similar_functions_serialize(
3679
- function_id=function_id,
3680
- limit=limit,
3681
- distance=distance,
3682
- collection_ids=collection_ids,
3683
- debug=debug,
3684
- debug_types=debug_types,
3685
- binary_ids=binary_ids,
3686
- _request_auth=_request_auth,
3687
- _content_type=_content_type,
3688
- _headers=_headers,
3689
- _host_index=_host_index
3690
- )
3691
-
3692
- _response_types_map: Dict[str, Optional[str]] = {
3693
- '200': "BaseResponseListSimilarFunctionsResponse",
3694
- '422': "BaseResponse",
3695
- }
3696
- response_data = self.api_client.call_api(
3697
- *_param,
3698
- _request_timeout=_request_timeout
3699
- )
3700
- return response_data.response
3701
-
3702
-
3703
- def _get_similar_functions_serialize(
3704
- self,
3705
- function_id,
3706
- limit,
3707
- distance,
3708
- collection_ids,
3709
- debug,
3710
- debug_types,
3711
- binary_ids,
3712
- _request_auth,
3713
- _content_type,
3714
- _headers,
3715
- _host_index,
3716
- ) -> RequestSerialized:
3717
-
3718
- _host = None
3719
-
3720
- _collection_formats: Dict[str, str] = {
3721
- 'collection_ids': 'multi',
3722
- 'debug_types': 'multi',
3723
- 'binary_ids': 'multi',
3724
- }
3725
-
3726
- _path_params: Dict[str, str] = {}
3727
- _query_params: List[Tuple[str, str]] = []
3728
- _header_params: Dict[str, Optional[str]] = _headers or {}
3729
- _form_params: List[Tuple[str, str]] = []
3730
- _files: Dict[
3731
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3732
- ] = {}
3733
- _body_params: Optional[bytes] = None
3734
-
3735
- # process the path parameters
3736
- if function_id is not None:
3737
- _path_params['function_id'] = function_id
3738
- # process the query parameters
3739
- if limit is not None:
3740
-
3741
- _query_params.append(('limit', limit))
3742
-
3743
- if distance is not None:
3744
-
3745
- _query_params.append(('distance', distance))
3746
-
3747
- if collection_ids is not None:
3748
-
3749
- _query_params.append(('collection_ids', collection_ids))
3750
-
3751
- if debug is not None:
3752
-
3753
- _query_params.append(('debug', debug))
3754
-
3755
- if debug_types is not None:
3756
-
3757
- _query_params.append(('debug_types', debug_types))
3758
-
3759
- if binary_ids is not None:
3760
-
3761
- _query_params.append(('binary_ids', binary_ids))
3762
-
3763
- # process the header parameters
3764
- # process the form parameters
3765
- # process the body parameter
3766
-
3767
-
3768
- # set the HTTP header `Accept`
3769
- if 'Accept' not in _header_params:
3770
- _header_params['Accept'] = self.api_client.select_header_accept(
3771
- [
3772
- 'application/json'
3773
- ]
3774
- )
3775
-
3776
-
3777
- # authentication setting
3778
- _auth_settings: List[str] = [
3779
- 'APIKey'
3780
- ]
3781
-
3782
- return self.api_client.param_serialize(
3783
- method='GET',
3784
- resource_path='/v2/functions/{function_id}/similar-functions',
3785
- path_params=_path_params,
3786
- query_params=_query_params,
3787
- header_params=_header_params,
3788
- body=_body_params,
3789
- post_params=_form_params,
3790
- files=_files,
3791
- auth_settings=_auth_settings,
3792
- collection_formats=_collection_formats,
3793
- _host=_host,
3794
- _request_auth=_request_auth
3795
- )
3796
-
3797
-
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/v2.3.0/python'
93
+ self.user_agent = 'OpenAPI-Generator/v2.8.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: v2.3.0\n"\
533
- "SDK Package Version: v2.3.0".\
532
+ "Version of the API: v2.8.0\n"\
533
+ "SDK Package Version: v2.8.0".\
534
534
  format(env=sys.platform, pyversion=sys.version)
535
535
 
536
536
  def get_host_settings(self) -> List[HostSetting]:
@@ -12,7 +12,6 @@
12
12
  """ # noqa: E501
13
13
 
14
14
  # import models into model package
15
- from revengai.models.ann_function import ANNFunction
16
15
  from revengai.models.addr import Addr
17
16
  from revengai.models.ai_decompilation_rating import AiDecompilationRating
18
17
  from revengai.models.ai_unstrip_request import AiUnstripRequest
@@ -59,7 +58,6 @@ from revengai.models.base_response_binary_search_response import BaseResponseBin
59
58
  from revengai.models.base_response_block_comments_generation_for_function_response import BaseResponseBlockCommentsGenerationForFunctionResponse
60
59
  from revengai.models.base_response_block_comments_overview_generation_response import BaseResponseBlockCommentsOverviewGenerationResponse
61
60
  from revengai.models.base_response_bool import BaseResponseBool
62
- from revengai.models.base_response_box_plot_confidence import BaseResponseBoxPlotConfidence
63
61
  from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse
64
62
  from revengai.models.base_response_capabilities import BaseResponseCapabilities
65
63
  from revengai.models.base_response_check_security_checks_task_response import BaseResponseCheckSecurityChecksTaskResponse
@@ -92,16 +90,12 @@ from revengai.models.base_response_get_user_response import BaseResponseGetUserR
92
90
  from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults
93
91
  from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse
94
92
  from revengai.models.base_response_list_die_match import BaseResponseListDieMatch
95
- from revengai.models.base_response_list_function_box_plot_confidence import BaseResponseListFunctionBoxPlotConfidence
96
93
  from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory
97
94
  from revengai.models.base_response_list_sbom import BaseResponseListSBOM
98
- from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse
99
- from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence
100
95
  from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse
101
96
  from revengai.models.base_response_login_response import BaseResponseLoginResponse
102
97
  from revengai.models.base_response_logs import BaseResponseLogs
103
98
  from revengai.models.base_response_models_response import BaseResponseModelsResponse
104
- from revengai.models.base_response_nearest_neighbor_analysis import BaseResponseNearestNeighborAnalysis
105
99
  from revengai.models.base_response_network_overview_response import BaseResponseNetworkOverviewResponse
106
100
  from revengai.models.base_response_params import BaseResponseParams
107
101
  from revengai.models.base_response_process_dumps import BaseResponseProcessDumps
@@ -130,7 +124,6 @@ from revengai.models.binary_search_result import BinarySearchResult
130
124
  from revengai.models.binary_task_status import BinaryTaskStatus
131
125
  from revengai.models.block import Block
132
126
  from revengai.models.block_comments_generation_for_function_response import BlockCommentsGenerationForFunctionResponse
133
- from revengai.models.box_plot_confidence import BoxPlotConfidence
134
127
  from revengai.models.callee_function_info import CalleeFunctionInfo
135
128
  from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse
136
129
  from revengai.models.caller_function_info import CallerFunctionInfo
@@ -186,7 +179,6 @@ from revengai.models.function_block_destination_response import FunctionBlockDes
186
179
  from revengai.models.function_block_response import FunctionBlockResponse
187
180
  from revengai.models.function_blocks_response import FunctionBlocksResponse
188
181
  from revengai.models.function_boundary import FunctionBoundary
189
- from revengai.models.function_box_plot_confidence import FunctionBoxPlotConfidence
190
182
  from revengai.models.function_capability_response import FunctionCapabilityResponse
191
183
  from revengai.models.function_comment_create_request import FunctionCommentCreateRequest
192
184
  from revengai.models.function_data_types import FunctionDataTypes
@@ -205,9 +197,7 @@ from revengai.models.function_matching_batch_response import FunctionMatchingBat
205
197
  from revengai.models.function_matching_filters import FunctionMatchingFilters
206
198
  from revengai.models.function_matching_request import FunctionMatchingRequest
207
199
  from revengai.models.function_matching_result_with_best_match import FunctionMatchingResultWithBestMatch
208
- from revengai.models.function_name_confidence_body import FunctionNameConfidenceBody
209
200
  from revengai.models.function_name_history import FunctionNameHistory
210
- from revengai.models.function_name_input import FunctionNameInput
211
201
  from revengai.models.function_param_response import FunctionParamResponse
212
202
  from revengai.models.function_rename import FunctionRename
213
203
  from revengai.models.function_rename_map import FunctionRenameMap
@@ -244,13 +234,11 @@ from revengai.models.meta_model import MetaModel
244
234
  from revengai.models.model_name import ModelName
245
235
  from revengai.models.models_response import ModelsResponse
246
236
  from revengai.models.name_confidence import NameConfidence
247
- from revengai.models.nearest_neighbor import NearestNeighbor
248
237
  from revengai.models.network_overview_dns import NetworkOverviewDns
249
238
  from revengai.models.network_overview_dns_answer import NetworkOverviewDnsAnswer
250
239
  from revengai.models.network_overview_metadata import NetworkOverviewMetadata
251
240
  from revengai.models.network_overview_response import NetworkOverviewResponse
252
241
  from revengai.models.order import Order
253
- from revengai.models.origin import Origin
254
242
  from revengai.models.pdb_debug_model import PDBDebugModel
255
243
  from revengai.models.pe_model import PEModel
256
244
  from revengai.models.pagination_model import PaginationModel
@@ -277,7 +265,6 @@ from revengai.models.security_checks_response import SecurityChecksResponse
277
265
  from revengai.models.security_checks_result import SecurityChecksResult
278
266
  from revengai.models.security_model import SecurityModel
279
267
  from revengai.models.severity_type import SeverityType
280
- from revengai.models.similar_functions_response import SimilarFunctionsResponse
281
268
  from revengai.models.single_code_certificate_model import SingleCodeCertificateModel
282
269
  from revengai.models.single_code_signature_model import SingleCodeSignatureModel
283
270
  from revengai.models.single_pdb_entry_model import SinglePDBEntryModel
@@ -295,15 +282,11 @@ from revengai.models.ttps_data import TTPSData
295
282
  from revengai.models.ttps_element import TTPSElement
296
283
  from revengai.models.ttps_occurance import TTPSOccurance
297
284
  from revengai.models.tag import Tag
298
- from revengai.models.tag_confidence_body import TagConfidenceBody
299
- from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence
300
285
  from revengai.models.tag_response import TagResponse
301
286
  from revengai.models.tag_search_response import TagSearchResponse
302
287
  from revengai.models.tag_search_result import TagSearchResult
303
- from revengai.models.tags import Tags
304
288
  from revengai.models.task_response import TaskResponse
305
289
  from revengai.models.task_status import TaskStatus
306
- from revengai.models.threat_score_function_body import ThreatScoreFunctionBody
307
290
  from revengai.models.timestamp_model import TimestampModel
308
291
  from revengai.models.type_definition import TypeDefinition
309
292
  from revengai.models.update_function_data_types import UpdateFunctionDataTypes
@@ -26,7 +26,7 @@ class ELFRelocation(BaseModel):
26
26
  ELFRelocation
27
27
  """ # noqa: E501
28
28
  address: StrictInt
29
- type: StrictInt
29
+ type: StrictStr
30
30
  size: StrictInt
31
31
  addend: StrictInt
32
32
  symbol_name: StrictStr
@@ -16,7 +16,7 @@ import pprint
16
16
  import re # noqa: F401
17
17
  import json
18
18
 
19
- from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
19
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
20
20
  from typing import Any, ClassVar, Dict, List, Optional, Union
21
21
  from typing import Optional, Set
22
22
  from typing_extensions import Self
@@ -34,9 +34,10 @@ class FunctionsDetailResponse(BaseModel):
34
34
  binary_name: StrictStr
35
35
  sha_256_hash: StrictStr
36
36
  debug_hash: Optional[StrictStr]
37
+ debug: StrictBool
37
38
  embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None
38
39
  embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None
39
- __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "embedding_3d", "embedding_1d"]
40
+ __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"]
40
41
 
41
42
  model_config = ConfigDict(
42
43
  populate_by_name=True,
@@ -113,6 +114,7 @@ class FunctionsDetailResponse(BaseModel):
113
114
  "binary_name": obj.get("binary_name"),
114
115
  "sha_256_hash": obj.get("sha_256_hash"),
115
116
  "debug_hash": obj.get("debug_hash"),
117
+ "debug": obj.get("debug"),
116
118
  "embedding_3d": obj.get("embedding_3d"),
117
119
  "embedding_1d": obj.get("embedding_1d")
118
120
  })