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: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 247
configured_endpoints: 237
82 changes: 25 additions & 57 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,26 @@ Methods:
- <code title="get /devices/{deviceId}/recordings/{recordingId}/trajectory">client.devices.recordings.<a href="./src/mobilerun_sdk/resources/devices/recordings.py">trajectory</a>(recording_id, \*, device_id) -> None</code>
- <code title="get /devices/{deviceId}/recordings/{recordingId}/video">client.devices.recordings.<a href="./src/mobilerun_sdk/resources/devices/recordings.py">video</a>(recording_id, \*, device_id) -> None</code>

## TrafficSessions

Types:

```python
from mobilerun_sdk.types.devices import (
TrafficSessionCreateResponse,
TrafficSessionRetrieveResponse,
TrafficSessionListResponse,
TrafficSessionDeleteResponse,
)
```

Methods:

- <code title="post /devices/{deviceId}/traffic/sessions">client.devices.traffic_sessions.<a href="./src/mobilerun_sdk/resources/devices/traffic_sessions.py">create</a>(device_id, \*\*<a href="src/mobilerun_sdk/types/devices/traffic_session_create_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/devices/traffic_session_create_response.py">TrafficSessionCreateResponse</a></code>
- <code title="get /devices/{deviceId}/traffic/sessions/{sessionId}">client.devices.traffic_sessions.<a href="./src/mobilerun_sdk/resources/devices/traffic_sessions.py">retrieve</a>(session_id, \*, device_id) -> <a href="./src/mobilerun_sdk/types/devices/traffic_session_retrieve_response.py">TrafficSessionRetrieveResponse</a></code>
- <code title="get /devices/{deviceId}/traffic/sessions">client.devices.traffic_sessions.<a href="./src/mobilerun_sdk/resources/devices/traffic_sessions.py">list</a>(device_id, \*\*<a href="src/mobilerun_sdk/types/devices/traffic_session_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/devices/traffic_session_list_response.py">TrafficSessionListResponse</a></code>
- <code title="delete /devices/{deviceId}/traffic/sessions/{sessionId}">client.devices.traffic_sessions.<a href="./src/mobilerun_sdk/resources/devices/traffic_sessions.py">delete</a>(session_id, \*, device_id) -> <a href="./src/mobilerun_sdk/types/devices/traffic_session_delete_response.py">TrafficSessionDeleteResponse</a></code>

# Models

Types:
Expand Down Expand Up @@ -688,6 +708,7 @@ from mobilerun_sdk.types.workflows import (
FlowUpdateResponse,
FlowListResponse,
FlowDeleteResponse,
FlowCapacityResponse,
FlowCloneResponse,
FlowDryRunResponse,
FlowListRepairsResponse,
Expand All @@ -702,6 +723,7 @@ Methods:
- <code title="patch /flows/{flowId}">client.workflows.flows.<a href="./src/mobilerun_sdk/resources/workflows/flows/flows.py">update</a>(flow_id, \*\*<a href="src/mobilerun_sdk/types/workflows/flow_update_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/workflows/flow_update_response.py">FlowUpdateResponse</a></code>
- <code title="get /flows">client.workflows.flows.<a href="./src/mobilerun_sdk/resources/workflows/flows/flows.py">list</a>(\*\*<a href="src/mobilerun_sdk/types/workflows/flow_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/workflows/flow_list_response.py">FlowListResponse</a></code>
- <code title="delete /flows/{flowId}">client.workflows.flows.<a href="./src/mobilerun_sdk/resources/workflows/flows/flows.py">delete</a>(flow_id) -> <a href="./src/mobilerun_sdk/types/workflows/flow_delete_response.py">FlowDeleteResponse</a></code>
- <code title="get /flows/capacity">client.workflows.flows.<a href="./src/mobilerun_sdk/resources/workflows/flows/flows.py">capacity</a>() -> <a href="./src/mobilerun_sdk/types/workflows/flow_capacity_response.py">FlowCapacityResponse</a></code>
- <code title="post /flows/{flowId}/clone">client.workflows.flows.<a href="./src/mobilerun_sdk/resources/workflows/flows/flows.py">clone</a>(flow_id, \*\*<a href="src/mobilerun_sdk/types/workflows/flow_clone_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/workflows/flow_clone_response.py">FlowCloneResponse</a></code>
- <code title="post /flows/{flowId}/dry-run">client.workflows.flows.<a href="./src/mobilerun_sdk/resources/workflows/flows/flows.py">dry_run</a>(flow_id, \*\*<a href="src/mobilerun_sdk/types/workflows/flow_dry_run_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/workflows/flow_dry_run_response.py">FlowDryRunResponse</a></code>
- <code title="get /flows/{flowId}/repairs">client.workflows.flows.<a href="./src/mobilerun_sdk/resources/workflows/flows/flows.py">list_repairs</a>(flow_id) -> <a href="./src/mobilerun_sdk/types/workflows/flow_list_repairs_response.py">FlowListRepairsResponse</a></code>
Expand Down Expand Up @@ -867,23 +889,13 @@ Methods:
Types:

```python
from mobilerun_sdk.types import (
FileUpdateResponse,
FileListResponse,
FileDeleteResponse,
FileCancelPendingResponse,
FileConfirmResponse,
FileUploadURLResponse,
)
from mobilerun_sdk.types import FileDeleteResponse, FileCancelPendingResponse, FileUploadURLResponse
```

Methods:

- <code title="patch /agents/files/{fileId}">client.files.<a href="./src/mobilerun_sdk/resources/files.py">update</a>(file_id, \*\*<a href="src/mobilerun_sdk/types/file_update_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/file_update_response.py">FileUpdateResponse</a></code>
- <code title="get /agents/files">client.files.<a href="./src/mobilerun_sdk/resources/files.py">list</a>(\*\*<a href="src/mobilerun_sdk/types/file_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/file_list_response.py">FileListResponse</a></code>
- <code title="delete /agents/files/{fileId}">client.files.<a href="./src/mobilerun_sdk/resources/files.py">delete</a>(file_id) -> <a href="./src/mobilerun_sdk/types/file_delete_response.py">FileDeleteResponse</a></code>
- <code title="delete /agents/files/{fileId}/pending">client.files.<a href="./src/mobilerun_sdk/resources/files.py">cancel_pending</a>(file_id) -> <a href="./src/mobilerun_sdk/types/file_cancel_pending_response.py">FileCancelPendingResponse</a></code>
- <code title="post /agents/files/{fileId}/confirm">client.files.<a href="./src/mobilerun_sdk/resources/files.py">confirm</a>(file_id) -> <a href="./src/mobilerun_sdk/types/file_confirm_response.py">FileConfirmResponse</a></code>
- <code title="get /agents/files/{fileId}/download">client.files.<a href="./src/mobilerun_sdk/resources/files.py">download</a>(file_id) -> None</code>
- <code title="post /agents/files/upload-url">client.files.<a href="./src/mobilerun_sdk/resources/files.py">upload_url</a>(\*\*<a href="src/mobilerun_sdk/types/file_upload_url_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/file_upload_url_response.py">FileUploadURLResponse</a></code>

Expand Down Expand Up @@ -965,52 +977,6 @@ Methods:
- <code title="get /notifications/preferences">client.notifications.<a href="./src/mobilerun_sdk/resources/notifications.py">get_preferences</a>() -> <a href="./src/mobilerun_sdk/types/notification_get_preferences_response.py">NotificationGetPreferencesResponse</a></code>
- <code title="patch /notifications/preferences">client.notifications.<a href="./src/mobilerun_sdk/resources/notifications.py">update_preferences</a>(\*\*<a href="src/mobilerun_sdk/types/notification_update_preferences_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/notification_update_preferences_response.py">NotificationUpdatePreferencesResponse</a></code>

# Esims

Types:

```python
from mobilerun_sdk.types import (
EsimCreateResponse,
EsimRetrieveResponse,
EsimUpdateResponse,
EsimListResponse,
EsimCapacityResponse,
EsimConfirmPaymentResponse,
EsimImportResponse,
EsimInstallResponse,
EsimInstallStatusResponse,
EsimSelectorResponse,
)
```

Methods:

- <code title="post /numbers/esims">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">create</a>(\*\*<a href="src/mobilerun_sdk/types/esim_create_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esim_create_response.py">EsimCreateResponse</a></code>
- <code title="get /numbers/esims/{id}">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">retrieve</a>(id) -> <a href="./src/mobilerun_sdk/types/esim_retrieve_response.py">EsimRetrieveResponse</a></code>
- <code title="patch /numbers/esims/{id}">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">update</a>(id, \*\*<a href="src/mobilerun_sdk/types/esim_update_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esim_update_response.py">EsimUpdateResponse</a></code>
- <code title="get /numbers/esims">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">list</a>(\*\*<a href="src/mobilerun_sdk/types/esim_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esim_list_response.py">EsimListResponse</a></code>
- <code title="delete /numbers/esims/{id}">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">delete</a>(id) -> None</code>
- <code title="get /numbers/esims/capacity">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">capacity</a>() -> <a href="./src/mobilerun_sdk/types/esim_capacity_response.py">EsimCapacityResponse</a></code>
- <code title="post /numbers/esims/{id}/confirm-payment">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">confirm_payment</a>(id) -> <a href="./src/mobilerun_sdk/types/esim_confirm_payment_response.py">EsimConfirmPaymentResponse</a></code>
- <code title="post /numbers/esims/import">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">import\_</a>(\*\*<a href="src/mobilerun_sdk/types/esim_import_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esim_import_response.py">EsimImportResponse</a></code>
- <code title="post /numbers/esims/{id}/install">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">install</a>(id, \*\*<a href="src/mobilerun_sdk/types/esim_install_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esim_install_response.py">EsimInstallResponse</a></code>
- <code title="get /numbers/esims/{id}/install-status">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">install_status</a>(id) -> <a href="./src/mobilerun_sdk/types/esim_install_status_response.py">EsimInstallStatusResponse</a></code>
- <code title="get /numbers/esims/selector">client.esims.<a href="./src/mobilerun_sdk/resources/esims/esims.py">selector</a>(\*\*<a href="src/mobilerun_sdk/types/esim_selector_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esim_selector_response.py">EsimSelectorResponse</a></code>

## Messages

Types:

```python
from mobilerun_sdk.types.esims import MessageListResponse, MessageSendResponse
```

Methods:

- <code title="get /numbers/esims/{id}/messages">client.esims.messages.<a href="./src/mobilerun_sdk/resources/esims/messages.py">list</a>(id, \*\*<a href="src/mobilerun_sdk/types/esims/message_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esims/message_list_response.py">MessageListResponse</a></code>
- <code title="post /numbers/esims/{id}/messages">client.esims.messages.<a href="./src/mobilerun_sdk/resources/esims/messages.py">send</a>(id, \*\*<a href="src/mobilerun_sdk/types/esims/message_send_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/esims/message_send_response.py">MessageSendResponse</a></code>

# Messages

Types:
Expand Down Expand Up @@ -1047,6 +1013,7 @@ from mobilerun_sdk.types import (
NumberUpdateResponse,
NumberListResponse,
NumberDeleteResponse,
NumberCapacityResponse,
NumberCountriesResponse,
NumberPurposesResponse,
)
Expand All @@ -1059,6 +1026,7 @@ Methods:
- <code title="patch /numbers/phones/{id}">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">update</a>(id, \*\*<a href="src/mobilerun_sdk/types/number_update_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/number_update_response.py">NumberUpdateResponse</a></code>
- <code title="get /numbers/phones">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">list</a>(\*\*<a href="src/mobilerun_sdk/types/number_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/number_list_response.py">NumberListResponse</a></code>
- <code title="delete /numbers/phones/{id}">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">delete</a>(id) -> <a href="./src/mobilerun_sdk/types/number_delete_response.py">NumberDeleteResponse</a></code>
- <code title="get /numbers/phones/capacity">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">capacity</a>(\*\*<a href="src/mobilerun_sdk/types/number_capacity_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/number_capacity_response.py">NumberCapacityResponse</a></code>
- <code title="get /numbers/phones/countries">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">countries</a>() -> <a href="./src/mobilerun_sdk/types/number_countries_response.py">NumberCountriesResponse</a></code>
- <code title="get /numbers/phones/purposes">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">purposes</a>() -> <a href="./src/mobilerun_sdk/types/number_purposes_response.py">NumberPurposesResponse</a></code>

Expand Down
38 changes: 0 additions & 38 deletions src/mobilerun_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
if TYPE_CHECKING:
from .resources import (
apps,
esims,
files,
store,
tasks,
Expand All @@ -64,7 +63,6 @@
from .resources.proxies import ProxiesResource, AsyncProxiesResource
from .resources.carriers import CarriersResource, AsyncCarriersResource
from .resources.profiles import ProfilesResource, AsyncProfilesResource
from .resources.esims.esims import EsimsResource, AsyncEsimsResource
from .resources.store.store import StoreResource, AsyncStoreResource
from .resources.tasks.tasks import TasksResource, AsyncTasksResource
from .resources.notifications import NotificationsResource, AsyncNotificationsResource
Expand Down Expand Up @@ -249,12 +247,6 @@ def notifications(self) -> NotificationsResource:

return NotificationsResource(self)

@cached_property
def esims(self) -> EsimsResource:
from .resources.esims import EsimsResource

return EsimsResource(self)

@cached_property
def messages(self) -> MessagesResource:
from .resources.messages import MessagesResource
Expand Down Expand Up @@ -555,12 +547,6 @@ def notifications(self) -> AsyncNotificationsResource:

return AsyncNotificationsResource(self)

@cached_property
def esims(self) -> AsyncEsimsResource:
from .resources.esims import AsyncEsimsResource

return AsyncEsimsResource(self)

@cached_property
def messages(self) -> AsyncMessagesResource:
from .resources.messages import AsyncMessagesResource
Expand Down Expand Up @@ -807,12 +793,6 @@ def notifications(self) -> notifications.NotificationsResourceWithRawResponse:

return NotificationsResourceWithRawResponse(self._client.notifications)

@cached_property
def esims(self) -> esims.EsimsResourceWithRawResponse:
from .resources.esims import EsimsResourceWithRawResponse

return EsimsResourceWithRawResponse(self._client.esims)

@cached_property
def messages(self) -> messages.MessagesResourceWithRawResponse:
from .resources.messages import MessagesResourceWithRawResponse
Expand Down Expand Up @@ -936,12 +916,6 @@ def notifications(self) -> notifications.AsyncNotificationsResourceWithRawRespon

return AsyncNotificationsResourceWithRawResponse(self._client.notifications)

@cached_property
def esims(self) -> esims.AsyncEsimsResourceWithRawResponse:
from .resources.esims import AsyncEsimsResourceWithRawResponse

return AsyncEsimsResourceWithRawResponse(self._client.esims)

@cached_property
def messages(self) -> messages.AsyncMessagesResourceWithRawResponse:
from .resources.messages import AsyncMessagesResourceWithRawResponse
Expand Down Expand Up @@ -1065,12 +1039,6 @@ def notifications(self) -> notifications.NotificationsResourceWithStreamingRespo

return NotificationsResourceWithStreamingResponse(self._client.notifications)

@cached_property
def esims(self) -> esims.EsimsResourceWithStreamingResponse:
from .resources.esims import EsimsResourceWithStreamingResponse

return EsimsResourceWithStreamingResponse(self._client.esims)

@cached_property
def messages(self) -> messages.MessagesResourceWithStreamingResponse:
from .resources.messages import MessagesResourceWithStreamingResponse
Expand Down Expand Up @@ -1194,12 +1162,6 @@ def notifications(self) -> notifications.AsyncNotificationsResourceWithStreaming

return AsyncNotificationsResourceWithStreamingResponse(self._client.notifications)

@cached_property
def esims(self) -> esims.AsyncEsimsResourceWithStreamingResponse:
from .resources.esims import AsyncEsimsResourceWithStreamingResponse

return AsyncEsimsResourceWithStreamingResponse(self._client.esims)

@cached_property
def messages(self) -> messages.AsyncMessagesResourceWithStreamingResponse:
from .resources.messages import AsyncMessagesResourceWithStreamingResponse
Expand Down
14 changes: 0 additions & 14 deletions src/mobilerun_sdk/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
AppsResourceWithStreamingResponse,
AsyncAppsResourceWithStreamingResponse,
)
from .esims import (
EsimsResource,
AsyncEsimsResource,
EsimsResourceWithRawResponse,
AsyncEsimsResourceWithRawResponse,
EsimsResourceWithStreamingResponse,
AsyncEsimsResourceWithStreamingResponse,
)
from .files import (
FilesResource,
AsyncFilesResource,
Expand Down Expand Up @@ -258,12 +250,6 @@
"AsyncNotificationsResourceWithRawResponse",
"NotificationsResourceWithStreamingResponse",
"AsyncNotificationsResourceWithStreamingResponse",
"EsimsResource",
"AsyncEsimsResource",
"EsimsResourceWithRawResponse",
"AsyncEsimsResourceWithRawResponse",
"EsimsResourceWithStreamingResponse",
"AsyncEsimsResourceWithStreamingResponse",
"MessagesResource",
"AsyncMessagesResource",
"MessagesResourceWithRawResponse",
Expand Down
8 changes: 6 additions & 2 deletions src/mobilerun_sdk/resources/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ def confirm_upload(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> AppConfirmUploadResponse:
"""
Verifies the APK file exists in R2 and sets the app status to available.
Verifies the uploaded files in R2 and sets the app version status to available.
Idempotent: replaying confirmation for an already-available version returns the
same successful response without re-verifying the files.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -506,7 +508,9 @@ async def confirm_upload(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> AppConfirmUploadResponse:
"""
Verifies the APK file exists in R2 and sets the app status to available.
Verifies the uploaded files in R2 and sets the app version status to available.
Idempotent: replaying confirmation for an already-available version returns the
same successful response without re-verifying the files.

Args:
extra_headers: Send extra headers
Expand Down
Loading