Skip to content

🌿 Fern Regeneration -- July 25, 2025 #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pipedream"

[tool.poetry]
name = "pipedream"
version = "0.3.3"
version = "0.3.4"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/pipedream/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import typing

import httpx
from .types.project_environment import ProjectEnvironment
from ._.types.project_environment import ProjectEnvironment
from .accounts.client import AccountsClient, AsyncAccountsClient
from .actions.client import ActionsClient, AsyncActionsClient
from .app_categories.client import AppCategoriesClient, AsyncAppCategoriesClient
Expand Down
6 changes: 3 additions & 3 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import typing

import httpx
from ..types.project_environment import ProjectEnvironment
from .._.types.project_environment import ProjectEnvironment
from .http_client import AsyncHttpClient, HttpClient


Expand All @@ -27,10 +27,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "pipedream/0.3.3",
"User-Agent": "pipedream/0.3.4",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "pipedream",
"X-Fern-SDK-Version": "0.3.3",
"X-Fern-SDK-Version": "0.3.4",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
Expand Down
101 changes: 40 additions & 61 deletions src/pipedream/proxy/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from ..core.jsonable_encoder import jsonable_encoder
from ..core.pydantic_utilities import parse_obj_as
from ..core.request_options import RequestOptions
from ..types.proxy_response import ProxyResponse

# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
Expand All @@ -26,7 +25,7 @@ def get(
external_user_id: str,
account_id: str,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ProxyResponse]:
) -> HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -44,7 +43,7 @@ def get(

Returns
-------
HttpResponse[ProxyResponse]
HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = self._client_wrapper.httpx_client.request(
Expand All @@ -57,13 +56,11 @@ def get(
request_options=request_options,
)
try:
if _response is None or not _response.text.strip():
return HttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -81,7 +78,7 @@ def post(
account_id: str,
request: typing.Dict[str, typing.Optional[typing.Any]],
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ProxyResponse]:
) -> HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -101,7 +98,7 @@ def post(

Returns
-------
HttpResponse[ProxyResponse]
HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = self._client_wrapper.httpx_client.request(
Expand All @@ -119,13 +116,11 @@ def post(
omit=OMIT,
)
try:
if _response is None or not _response.text.strip():
return HttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -143,7 +138,7 @@ def put(
account_id: str,
request: typing.Dict[str, typing.Optional[typing.Any]],
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ProxyResponse]:
) -> HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -163,7 +158,7 @@ def put(

Returns
-------
HttpResponse[ProxyResponse]
HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = self._client_wrapper.httpx_client.request(
Expand All @@ -181,13 +176,11 @@ def put(
omit=OMIT,
)
try:
if _response is None or not _response.text.strip():
return HttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -204,7 +197,7 @@ def delete(
external_user_id: str,
account_id: str,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ProxyResponse]:
) -> HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -222,7 +215,7 @@ def delete(

Returns
-------
HttpResponse[ProxyResponse]
HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = self._client_wrapper.httpx_client.request(
Expand All @@ -235,13 +228,11 @@ def delete(
request_options=request_options,
)
try:
if _response is None or not _response.text.strip():
return HttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -259,7 +250,7 @@ def patch(
account_id: str,
request: typing.Dict[str, typing.Optional[typing.Any]],
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ProxyResponse]:
) -> HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -279,7 +270,7 @@ def patch(

Returns
-------
HttpResponse[ProxyResponse]
HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = self._client_wrapper.httpx_client.request(
Expand All @@ -297,13 +288,11 @@ def patch(
omit=OMIT,
)
try:
if _response is None or not _response.text.strip():
return HttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -325,7 +314,7 @@ async def get(
external_user_id: str,
account_id: str,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ProxyResponse]:
) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -343,7 +332,7 @@ async def get(

Returns
-------
AsyncHttpResponse[ProxyResponse]
AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = await self._client_wrapper.httpx_client.request(
Expand All @@ -356,13 +345,11 @@ async def get(
request_options=request_options,
)
try:
if _response is None or not _response.text.strip():
return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -380,7 +367,7 @@ async def post(
account_id: str,
request: typing.Dict[str, typing.Optional[typing.Any]],
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ProxyResponse]:
) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -400,7 +387,7 @@ async def post(

Returns
-------
AsyncHttpResponse[ProxyResponse]
AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = await self._client_wrapper.httpx_client.request(
Expand All @@ -418,13 +405,11 @@ async def post(
omit=OMIT,
)
try:
if _response is None or not _response.text.strip():
return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -442,7 +427,7 @@ async def put(
account_id: str,
request: typing.Dict[str, typing.Optional[typing.Any]],
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ProxyResponse]:
) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -462,7 +447,7 @@ async def put(

Returns
-------
AsyncHttpResponse[ProxyResponse]
AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = await self._client_wrapper.httpx_client.request(
Expand All @@ -480,13 +465,11 @@ async def put(
omit=OMIT,
)
try:
if _response is None or not _response.text.strip():
return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -503,7 +486,7 @@ async def delete(
external_user_id: str,
account_id: str,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ProxyResponse]:
) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -521,7 +504,7 @@ async def delete(

Returns
-------
AsyncHttpResponse[ProxyResponse]
AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = await self._client_wrapper.httpx_client.request(
Expand All @@ -534,13 +517,11 @@ async def delete(
request_options=request_options,
)
try:
if _response is None or not _response.text.strip():
return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand All @@ -558,7 +539,7 @@ async def patch(
account_id: str,
request: typing.Dict[str, typing.Optional[typing.Any]],
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ProxyResponse]:
) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
"""
Parameters
----------
Expand All @@ -578,7 +559,7 @@ async def patch(

Returns
-------
AsyncHttpResponse[ProxyResponse]
AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]
proxy request successful
"""
_response = await self._client_wrapper.httpx_client.request(
Expand All @@ -596,13 +577,11 @@ async def patch(
omit=OMIT,
)
try:
if _response is None or not _response.text.strip():
return AsyncHttpResponse(response=_response, data=None)
if 200 <= _response.status_code < 300:
_data = typing.cast(
ProxyResponse,
typing.Dict[str, typing.Optional[typing.Any]],
parse_obj_as(
type_=ProxyResponse, # type: ignore
type_=typing.Dict[str, typing.Optional[typing.Any]], # type: ignore
object_=_response.json(),
),
)
Expand Down
Loading
Loading