Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Class | Method | HTTP request | Description
*FunctionsRenamingHistoryApi* | [**revert_function_name**](docs/FunctionsRenamingHistoryApi.md#revert_function_name) | **POST** /v2/functions/history/{function_id}/{history_id} | Revert the function name
*FunctionsRenamingHistoryApi* | [**revert_function_name_0**](docs/FunctionsRenamingHistoryApi.md#revert_function_name_0) | **POST** /v3/functions/{function_id}/history/{history_id}/revert | Revert function name
*IAMUsersApi* | [**get_me**](docs/IAMUsersApi.md#get_me) | **GET** /v2/iam/me | Get current user
*IAMUsersApi* | [**get_my_permissions**](docs/IAMUsersApi.md#get_my_permissions) | **GET** /v2/iam/me/permissions | Get current user permissions
*ModelsApi* | [**get_models**](docs/ModelsApi.md#get_models) | **GET** /v2/models | Gets models
*ReportsApi* | [**create_pdf_report**](docs/ReportsApi.md#create_pdf_report) | **POST** /v3/analyses/{analysis_id}/pdf | Start PDF report generation
*ReportsApi* | [**download_pdf_report**](docs/ReportsApi.md#download_pdf_report) | **GET** /v3/analyses/{analysis_id}/pdf | Download generated PDF report
Expand Down Expand Up @@ -558,6 +559,7 @@ Class | Method | HTTP request | Description
- [PatchCollectionTagsOutputBody](docs/PatchCollectionTagsOutputBody.md)
- [PatchCommentBody](docs/PatchCommentBody.md)
- [PcapBodyInfo](docs/PcapBodyInfo.md)
- [Permissions](docs/Permissions.md)
- [Platform](docs/Platform.md)
- [PriceOutput](docs/PriceOutput.md)
- [PriceSummary](docs/PriceSummary.md)
Expand Down
77 changes: 77 additions & 0 deletions docs/IAMUsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://api.reveng.ai*
Method | HTTP request | Description
------------- | ------------- | -------------
[**get_me**](IAMUsersApi.md#get_me) | **GET** /v2/iam/me | Get current user
[**get_my_permissions**](IAMUsersApi.md#get_my_permissions) | **GET** /v2/iam/me/permissions | Get current user permissions


# **get_me**
Expand Down Expand Up @@ -87,3 +88,79 @@ This endpoint does not need any parameter.

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_my_permissions**
> Permissions get_my_permissions()

Get current user permissions

Returns the feature permissions granted to the authenticated user based on their subscription tier. Use this as the single source of truth for feature gating across web, CLI, and plugin clients.

### Example

* Api Key Authentication (APIKey):

```python
import revengai
from revengai.models.permissions import Permissions
from revengai.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'

# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.IAMUsersApi(api_client)

try:
# Get current user permissions
api_response = api_instance.get_my_permissions()
print("The response of IAMUsersApi->get_my_permissions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling IAMUsersApi->get_my_permissions: %s\n" % e)
```



### Parameters

This endpoint does not need any parameter.

### Return type

[**Permissions**](Permissions.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
**0** | Error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

33 changes: 33 additions & 0 deletions docs/Permissions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Permissions


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**can_export_symbols** | **bool** | |
**can_generate_pdf_reports** | **bool** | |
**can_use_ai_malware_analysis** | **bool** | |
**can_use_malware_sandbox** | **bool** | |
**can_use_private_analyses** | **bool** | |

## Example

```python
from revengai.models.permissions import Permissions

# TODO update the JSON string below
json = "{}"
# create an instance of Permissions from a JSON string
permissions_instance = Permissions.from_json(json)
# print the JSON string representation of the object
print(Permissions.to_json())

# convert the object into a dict
permissions_dict = permissions_instance.to_dict()
# create an instance of Permissions from a dict
permissions_from_dict = Permissions.from_dict(permissions_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
"PatchCollectionTagsOutputBody",
"PatchCommentBody",
"PcapBodyInfo",
"Permissions",
"Platform",
"PriceOutput",
"PriceSummary",
Expand Down Expand Up @@ -932,6 +933,7 @@
from revengai.models.patch_collection_tags_output_body import PatchCollectionTagsOutputBody as PatchCollectionTagsOutputBody
from revengai.models.patch_comment_body import PatchCommentBody as PatchCommentBody
from revengai.models.pcap_body_info import PcapBodyInfo as PcapBodyInfo
from revengai.models.permissions import Permissions as Permissions
from revengai.models.platform import Platform as Platform
from revengai.models.price_output import PriceOutput as PriceOutput
from revengai.models.price_summary import PriceSummary as PriceSummary
Expand Down
Loading