Skip to content
Merged
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: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.105.0
v3.107.0
3 changes: 3 additions & 0 deletions docs/SandboxOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Name | Type | Description | Notes
**command_line_args** | **str** | The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True. | [optional] [default to '']
**start_method** | [**SandboxStartMethod**](SandboxStartMethod.md) | | [optional]
**timeout** | [**SandboxTimeout**](SandboxTimeout.md) | Maximum execution time for the sandbox run, in seconds. Allowed values: 120 (2m), 180 (3m), 300 (5m), 600 (10m). | [optional]
**archive_sha_256_hash** | **str** | | [optional]
**archive_entry_path** | **str** | | [optional]
**archive_password** | **str** | | [optional]

## Example

Expand Down
4 changes: 4 additions & 0 deletions docs/UploadResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Name | Type | Description | Notes
**sha_256_hash** | **str** | |
**file_type** | [**UploadFileType**](UploadFileType.md) | |
**filename** | **str** | |
**mime** | **str** | |
**is_archive** | **bool** | |
**can_sandbox** | **bool** | |
**can_extract** | **bool** | |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **datetime** | | [optional]
**created_at** | **datetime** | |
**email** | **str** | |
**profile** | [**UserProfile**](UserProfile.md) | |
**role** | **str** | |
Expand Down
2 changes: 1 addition & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v3.105.0"
__version__ = "v3.107.0"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/v3.105.0/python'
self.user_agent = 'OpenAPI-Generator/v3.107.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v3.105.0\n"\
"SDK Package Version: v3.105.0".\
"Version of the API: v3.107.0\n"\
"SDK Package Version: v3.107.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
25 changes: 23 additions & 2 deletions revengai/models/sandbox_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ class SandboxOptions(BaseModel):
command_line_args: Optional[StrictStr] = Field(default='', description="The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True.")
start_method: Optional[SandboxStartMethod] = None
timeout: Optional[SandboxTimeout] = Field(default=None, description="Maximum execution time for the sandbox run, in seconds. Allowed values: 120 (2m), 180 (3m), 300 (5m), 600 (10m).")
__properties: ClassVar[List[str]] = ["enabled", "command_line_args", "start_method", "timeout"]
archive_sha_256_hash: Optional[StrictStr] = None
archive_entry_path: Optional[StrictStr] = None
archive_password: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["enabled", "command_line_args", "start_method", "timeout", "archive_sha_256_hash", "archive_entry_path", "archive_password"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -77,6 +80,21 @@ def to_dict(self) -> Dict[str, Any]:
if self.start_method is None and "start_method" in self.model_fields_set:
_dict['start_method'] = None

# set to None if archive_sha_256_hash (nullable) is None
# and model_fields_set contains the field
if self.archive_sha_256_hash is None and "archive_sha_256_hash" in self.model_fields_set:
_dict['archive_sha_256_hash'] = None

# set to None if archive_entry_path (nullable) is None
# and model_fields_set contains the field
if self.archive_entry_path is None and "archive_entry_path" in self.model_fields_set:
_dict['archive_entry_path'] = None

# set to None if archive_password (nullable) is None
# and model_fields_set contains the field
if self.archive_password is None and "archive_password" in self.model_fields_set:
_dict['archive_password'] = None

return _dict

@classmethod
Expand All @@ -92,7 +110,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"enabled": obj.get("enabled") if obj.get("enabled") is not None else False,
"command_line_args": obj.get("command_line_args") if obj.get("command_line_args") is not None else '',
"start_method": obj.get("start_method"),
"timeout": obj.get("timeout")
"timeout": obj.get("timeout"),
"archive_sha_256_hash": obj.get("archive_sha_256_hash"),
"archive_entry_path": obj.get("archive_entry_path"),
"archive_password": obj.get("archive_password")
})
return _obj

Expand Down
14 changes: 11 additions & 3 deletions revengai/models/upload_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, StrictStr
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List
from revengai.models.upload_file_type import UploadFileType
from typing import Optional, Set
Expand All @@ -29,7 +29,11 @@ class UploadResponse(BaseModel):
sha_256_hash: StrictStr
file_type: UploadFileType
filename: StrictStr
__properties: ClassVar[List[str]] = ["sha_256_hash", "file_type", "filename"]
mime: StrictStr
is_archive: StrictBool
can_sandbox: StrictBool
can_extract: StrictBool
__properties: ClassVar[List[str]] = ["sha_256_hash", "file_type", "filename", "mime", "is_archive", "can_sandbox", "can_extract"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -84,7 +88,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"sha_256_hash": obj.get("sha_256_hash"),
"file_type": obj.get("file_type"),
"filename": obj.get("filename")
"filename": obj.get("filename"),
"mime": obj.get("mime"),
"is_archive": obj.get("is_archive"),
"can_sandbox": obj.get("can_sandbox"),
"can_extract": obj.get("can_extract")
})
return _obj

Expand Down
2 changes: 1 addition & 1 deletion revengai/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class User(BaseModel):
"""
User
""" # noqa: E501
created_at: Optional[datetime] = None
created_at: datetime
email: StrictStr
profile: UserProfile
role: StrictStr
Expand Down