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: 217
configured_endpoints: 236
70 changes: 66 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,19 @@ Methods:

- <code title="get /devices/{deviceId}/tasks">client.devices.tasks.<a href="./src/mobilerun_sdk/resources/devices/tasks.py">list</a>(device_id, \*\*<a href="src/mobilerun_sdk/types/devices/task_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/devices/task_list_response.py">TaskListResponse</a></code>

## Clipboard

Types:

```python
from mobilerun_sdk.types.devices import ClipboardGetResponse
```

Methods:

- <code title="get /devices/{deviceId}/clipboard">client.devices.clipboard.<a href="./src/mobilerun_sdk/resources/devices/clipboard.py">get</a>(device_id) -> <a href="./src/mobilerun_sdk/types/devices/clipboard_get_response.py">ClipboardGetResponse</a></code>
- <code title="post /devices/{deviceId}/clipboard">client.devices.clipboard.<a href="./src/mobilerun_sdk/resources/devices/clipboard.py">set</a>(device_id, \*\*<a href="src/mobilerun_sdk/types/devices/clipboard_set_params.py">params</a>) -> None</code>

## Timezone

Types:
Expand Down Expand Up @@ -806,17 +819,64 @@ Methods:
- <code title="get /webhooks/{id}/deliveries/{deliveryId}">client.webhooks.deliveries.<a href="./src/mobilerun_sdk/resources/webhooks/deliveries.py">retrieve_attempts</a>(delivery_id, \*, id) -> <a href="./src/mobilerun_sdk/types/webhooks/delivery_retrieve_attempts_response.py">DeliveryRetrieveAttemptsResponse</a></code>
- <code title="get /webhooks/deliveries/stats">client.webhooks.deliveries.<a href="./src/mobilerun_sdk/resources/webhooks/deliveries.py">stats</a>(\*\*<a href="src/mobilerun_sdk/types/webhooks/delivery_stats_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/webhooks/delivery_stats_response.py">DeliveryStatsResponse</a></code>

# Agents
# Files

Types:

```python
from mobilerun_sdk.types import AgentListResponse
from mobilerun_sdk.types import (
FileUpdateResponse,
FileListResponse,
FileDeleteResponse,
FileCancelPendingResponse,
FileConfirmResponse,
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>

# Assistant

## Conversations

Types:

```python
from mobilerun_sdk.types.assistant import (
ConversationCreateResponse,
ConversationUpdateResponse,
ConversationListResponse,
ConversationAbortResponse,
ConversationAnswerPermissionResponse,
ConversationAnswerQuestionResponse,
ConversationHistoryResponse,
ConversationRejectQuestionResponse,
ConversationSendResponse,
ConversationStreamResponse,
)
```

Methods:

- <code title="get /agents">client.agents.<a href="./src/mobilerun_sdk/resources/agents.py">list</a>() -> <a href="./src/mobilerun_sdk/types/agent_list_response.py">AgentListResponse</a></code>
- <code title="post /assistant/chat/sessions">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">create</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_create_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_create_response.py">ConversationCreateResponse</a></code>
- <code title="patch /assistant/chat/sessions/{id}">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">update</a>(id, \*\*<a href="src/mobilerun_sdk/types/assistant/conversation_update_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_update_response.py">ConversationUpdateResponse</a></code>
- <code title="get /assistant/chat/sessions">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">list</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_list_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_list_response.py">ConversationListResponse</a></code>
- <code title="post /assistant/chat/abort">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">abort</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_abort_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_abort_response.py">ConversationAbortResponse</a></code>
- <code title="post /assistant/chat/permission">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">answer_permission</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_answer_permission_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_answer_permission_response.py">ConversationAnswerPermissionResponse</a></code>
- <code title="post /assistant/chat/question">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">answer_question</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_answer_question_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_answer_question_response.py">ConversationAnswerQuestionResponse</a></code>
- <code title="get /assistant/chat/messages">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">history</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_history_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_history_response.py">ConversationHistoryResponse</a></code>
- <code title="post /assistant/chat/question/reject">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">reject_question</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_reject_question_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_reject_question_response.py">ConversationRejectQuestionResponse</a></code>
- <code title="post /assistant/chat/message">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">send</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_send_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/assistant/conversation_send_response.py">ConversationSendResponse</a></code>
- <code title="get /assistant/chat/stream">client.assistant.conversations.<a href="./src/mobilerun_sdk/resources/assistant/conversations.py">stream</a>(\*\*<a href="src/mobilerun_sdk/types/assistant/conversation_stream_params.py">params</a>) -> str</code>

# AppEvents

Expand Down Expand Up @@ -893,7 +953,7 @@ Methods:
- <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_response.py">EsimSelectorResponse</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

Expand Down Expand Up @@ -941,6 +1001,7 @@ Types:
from mobilerun_sdk.types import (
NumberCreateResponse,
NumberRetrieveResponse,
NumberUpdateResponse,
NumberListResponse,
NumberDeleteResponse,
NumberCountriesResponse,
Expand All @@ -952,6 +1013,7 @@ Methods:

- <code title="post /numbers/phones">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">create</a>(\*\*<a href="src/mobilerun_sdk/types/number_create_params.py">params</a>) -> <a href="./src/mobilerun_sdk/types/number_create_response.py">NumberCreateResponse</a></code>
- <code title="get /numbers/phones/{id}">client.numbers.<a href="./src/mobilerun_sdk/resources/numbers/numbers.py">retrieve</a>(id) -> <a href="./src/mobilerun_sdk/types/number_retrieve_response.py">NumberRetrieveResponse</a></code>
- <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/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>
Expand Down
78 changes: 58 additions & 20 deletions src/mobilerun_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
from .resources import (
apps,
esims,
files,
store,
tasks,
agents,
models,
connect,
devices,
Expand All @@ -51,13 +51,14 @@
messages,
profiles,
webhooks,
assistant,
workflows,
app_events,
credentials,
notifications,
)
from .resources.apps import AppsResource, AsyncAppsResource
from .resources.agents import AgentsResource, AsyncAgentsResource
from .resources.files import FilesResource, AsyncFilesResource
from .resources.models import ModelsResource, AsyncModelsResource
from .resources.proxies import ProxiesResource, AsyncProxiesResource
from .resources.carriers import CarriersResource, AsyncCarriersResource
Expand All @@ -71,6 +72,7 @@
from .resources.numbers.numbers import NumbersResource, AsyncNumbersResource
from .resources.messages.messages import MessagesResource, AsyncMessagesResource
from .resources.webhooks.webhooks import WebhooksResource, AsyncWebhooksResource
from .resources.assistant.assistant import AssistantResource, AsyncAssistantResource
from .resources.workflows.workflows import WorkflowsResource, AsyncWorkflowsResource
from .resources.app_events.app_events import AppEventsResource, AsyncAppEventsResource
from .resources.credentials.credentials import CredentialsResource, AsyncCredentialsResource
Expand Down Expand Up @@ -216,10 +218,16 @@ def webhooks(self) -> WebhooksResource:
return WebhooksResource(self)

@cached_property
def agents(self) -> AgentsResource:
from .resources.agents import AgentsResource
def files(self) -> FilesResource:
from .resources.files import FilesResource

return AgentsResource(self)
return FilesResource(self)

@cached_property
def assistant(self) -> AssistantResource:
from .resources.assistant import AssistantResource

return AssistantResource(self)

@cached_property
def app_events(self) -> AppEventsResource:
Expand Down Expand Up @@ -510,10 +518,16 @@ def webhooks(self) -> AsyncWebhooksResource:
return AsyncWebhooksResource(self)

@cached_property
def agents(self) -> AsyncAgentsResource:
from .resources.agents import AsyncAgentsResource
def files(self) -> AsyncFilesResource:
from .resources.files import AsyncFilesResource

return AsyncAgentsResource(self)
return AsyncFilesResource(self)

@cached_property
def assistant(self) -> AsyncAssistantResource:
from .resources.assistant import AsyncAssistantResource

return AsyncAssistantResource(self)

@cached_property
def app_events(self) -> AsyncAppEventsResource:
Expand Down Expand Up @@ -750,10 +764,16 @@ def webhooks(self) -> webhooks.WebhooksResourceWithRawResponse:
return WebhooksResourceWithRawResponse(self._client.webhooks)

@cached_property
def agents(self) -> agents.AgentsResourceWithRawResponse:
from .resources.agents import AgentsResourceWithRawResponse
def files(self) -> files.FilesResourceWithRawResponse:
from .resources.files import FilesResourceWithRawResponse

return FilesResourceWithRawResponse(self._client.files)

@cached_property
def assistant(self) -> assistant.AssistantResourceWithRawResponse:
from .resources.assistant import AssistantResourceWithRawResponse

return AgentsResourceWithRawResponse(self._client.agents)
return AssistantResourceWithRawResponse(self._client.assistant)

@cached_property
def app_events(self) -> app_events.AppEventsResourceWithRawResponse:
Expand Down Expand Up @@ -867,10 +887,16 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithRawResponse:
return AsyncWebhooksResourceWithRawResponse(self._client.webhooks)

@cached_property
def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
from .resources.agents import AsyncAgentsResourceWithRawResponse
def files(self) -> files.AsyncFilesResourceWithRawResponse:
from .resources.files import AsyncFilesResourceWithRawResponse

return AsyncAgentsResourceWithRawResponse(self._client.agents)
return AsyncFilesResourceWithRawResponse(self._client.files)

@cached_property
def assistant(self) -> assistant.AsyncAssistantResourceWithRawResponse:
from .resources.assistant import AsyncAssistantResourceWithRawResponse

return AsyncAssistantResourceWithRawResponse(self._client.assistant)

@cached_property
def app_events(self) -> app_events.AsyncAppEventsResourceWithRawResponse:
Expand Down Expand Up @@ -984,10 +1010,16 @@ def webhooks(self) -> webhooks.WebhooksResourceWithStreamingResponse:
return WebhooksResourceWithStreamingResponse(self._client.webhooks)

@cached_property
def agents(self) -> agents.AgentsResourceWithStreamingResponse:
from .resources.agents import AgentsResourceWithStreamingResponse
def files(self) -> files.FilesResourceWithStreamingResponse:
from .resources.files import FilesResourceWithStreamingResponse

return AgentsResourceWithStreamingResponse(self._client.agents)
return FilesResourceWithStreamingResponse(self._client.files)

@cached_property
def assistant(self) -> assistant.AssistantResourceWithStreamingResponse:
from .resources.assistant import AssistantResourceWithStreamingResponse

return AssistantResourceWithStreamingResponse(self._client.assistant)

@cached_property
def app_events(self) -> app_events.AppEventsResourceWithStreamingResponse:
Expand Down Expand Up @@ -1101,10 +1133,16 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithStreamingResponse:
return AsyncWebhooksResourceWithStreamingResponse(self._client.webhooks)

@cached_property
def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
from .resources.agents import AsyncAgentsResourceWithStreamingResponse
def files(self) -> files.AsyncFilesResourceWithStreamingResponse:
from .resources.files import AsyncFilesResourceWithStreamingResponse

return AsyncFilesResourceWithStreamingResponse(self._client.files)

@cached_property
def assistant(self) -> assistant.AsyncAssistantResourceWithStreamingResponse:
from .resources.assistant import AsyncAssistantResourceWithStreamingResponse

return AsyncAgentsResourceWithStreamingResponse(self._client.agents)
return AsyncAssistantResourceWithStreamingResponse(self._client.assistant)

@cached_property
def app_events(self) -> app_events.AsyncAppEventsResourceWithStreamingResponse:
Expand Down
42 changes: 28 additions & 14 deletions src/mobilerun_sdk/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
EsimsResourceWithStreamingResponse,
AsyncEsimsResourceWithStreamingResponse,
)
from .files import (
FilesResource,
AsyncFilesResource,
FilesResourceWithRawResponse,
AsyncFilesResourceWithRawResponse,
FilesResourceWithStreamingResponse,
AsyncFilesResourceWithStreamingResponse,
)
from .store import (
StoreResource,
AsyncStoreResource,
Expand All @@ -32,14 +40,6 @@
TasksResourceWithStreamingResponse,
AsyncTasksResourceWithStreamingResponse,
)
from .agents import (
AgentsResource,
AsyncAgentsResource,
AgentsResourceWithRawResponse,
AsyncAgentsResourceWithRawResponse,
AgentsResourceWithStreamingResponse,
AsyncAgentsResourceWithStreamingResponse,
)
from .models import (
ModelsResource,
AsyncModelsResource,
Expand Down Expand Up @@ -112,6 +112,14 @@
WebhooksResourceWithStreamingResponse,
AsyncWebhooksResourceWithStreamingResponse,
)
from .assistant import (
AssistantResource,
AsyncAssistantResource,
AssistantResourceWithRawResponse,
AsyncAssistantResourceWithRawResponse,
AssistantResourceWithStreamingResponse,
AsyncAssistantResourceWithStreamingResponse,
)
from .workflows import (
WorkflowsResource,
AsyncWorkflowsResource,
Expand Down Expand Up @@ -212,12 +220,18 @@
"AsyncWebhooksResourceWithRawResponse",
"WebhooksResourceWithStreamingResponse",
"AsyncWebhooksResourceWithStreamingResponse",
"AgentsResource",
"AsyncAgentsResource",
"AgentsResourceWithRawResponse",
"AsyncAgentsResourceWithRawResponse",
"AgentsResourceWithStreamingResponse",
"AsyncAgentsResourceWithStreamingResponse",
"FilesResource",
"AsyncFilesResource",
"FilesResourceWithRawResponse",
"AsyncFilesResourceWithRawResponse",
"FilesResourceWithStreamingResponse",
"AsyncFilesResourceWithStreamingResponse",
"AssistantResource",
"AsyncAssistantResource",
"AssistantResourceWithRawResponse",
"AsyncAssistantResourceWithRawResponse",
"AssistantResourceWithStreamingResponse",
"AsyncAssistantResourceWithStreamingResponse",
"AppEventsResource",
"AsyncAppEventsResource",
"AppEventsResourceWithRawResponse",
Expand Down
Loading