diff --git a/poetry.lock b/poetry.lock index aa94f30..086974a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -147,17 +147,17 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "idna" -version = "3.11" +version = "3.12" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.8" files = [ - {file = "idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea"}, - {file = "idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"}, + {file = "idna-3.12-py3-none-any.whl", hash = "sha256:60ffaa1858fac94c9c124728c24fcde8160f3fb4a7f79aa8cdd33a9d1af60a67"}, + {file = "idna-3.12.tar.gz", hash = "sha256:724e9952cc9e2bd7550ea784adb098d837ab5267ef67a1ab9cf7846bdbdd8254"}, ] [package.extras] -all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] +all = ["mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] [[package]] name = "iniconfig" diff --git a/pyproject.toml b/pyproject.toml index 5023d3a..89dca46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "pipedream" -version = "1.1.9" +version = "1.1.10" description = "" readme = "README.md" authors = [] diff --git a/src/pipedream/core/client_wrapper.py b/src/pipedream/core/client_wrapper.py index 526b6cd..1717a15 100644 --- a/src/pipedream/core/client_wrapper.py +++ b/src/pipedream/core/client_wrapper.py @@ -27,10 +27,10 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "pipedream/1.1.9", + "User-Agent": "pipedream/1.1.10", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "pipedream", - "X-Fern-SDK-Version": "1.1.9", + "X-Fern-SDK-Version": "1.1.10", **(self.get_custom_headers() or {}), } if self._project_environment is not None: diff --git a/src/pipedream/types/__init__.py b/src/pipedream/types/__init__.py index 814c5ca..a41f2be 100644 --- a/src/pipedream/types/__init__.py +++ b/src/pipedream/types/__init__.py @@ -59,6 +59,7 @@ from .configurable_prop_data_store import ConfigurablePropDataStore from .configurable_prop_db import ConfigurablePropDb from .configurable_prop_dir import ConfigurablePropDir + from .configurable_prop_dir_access_mode import ConfigurablePropDirAccessMode from .configurable_prop_discord import ConfigurablePropDiscord from .configurable_prop_discord_channel import ConfigurablePropDiscordChannel from .configurable_prop_discord_channel_array import ConfigurablePropDiscordChannelArray @@ -194,6 +195,7 @@ "ConfigurablePropDataStore": ".configurable_prop_data_store", "ConfigurablePropDb": ".configurable_prop_db", "ConfigurablePropDir": ".configurable_prop_dir", + "ConfigurablePropDirAccessMode": ".configurable_prop_dir_access_mode", "ConfigurablePropDiscord": ".configurable_prop_discord", "ConfigurablePropDiscordChannel": ".configurable_prop_discord_channel", "ConfigurablePropDiscordChannelArray": ".configurable_prop_discord_channel_array", @@ -379,6 +381,7 @@ def __dir__(): "ConfigurablePropDataStore", "ConfigurablePropDb", "ConfigurablePropDir", + "ConfigurablePropDirAccessMode", "ConfigurablePropDiscord", "ConfigurablePropDiscordChannel", "ConfigurablePropDiscordChannelArray", diff --git a/src/pipedream/types/account.py b/src/pipedream/types/account.py index 393e6e2..ab70b3f 100644 --- a/src/pipedream/types/account.py +++ b/src/pipedream/types/account.py @@ -47,6 +47,11 @@ class Account(UniversalBaseModel): The date and time the account was last updated, an ISO 8601 formatted string """ + authorized_scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + The OAuth scopes effectively granted to this account. Empty for non-OAuth apps. + """ + credentials: typing.Optional[AccountCredentials] = pydantic.Field(default=None) """ The credentials associated with the account, if the `include_credentials` parameter was set to true in the request (only applicable for BYOA apps). In addition to the well-known OAuth fields listed below, this object may contain app-specific custom fields (e.g. `base_url`). diff --git a/src/pipedream/types/configurable_prop.py b/src/pipedream/types/configurable_prop.py index 2445db8..4da3e67 100644 --- a/src/pipedream/types/configurable_prop.py +++ b/src/pipedream/types/configurable_prop.py @@ -11,6 +11,7 @@ from .configurable_prop_alert_type import ConfigurablePropAlertType from .configurable_prop_any_options_item import ConfigurablePropAnyOptionsItem from .configurable_prop_boolean_options_item import ConfigurablePropBooleanOptionsItem +from .configurable_prop_dir_access_mode import ConfigurablePropDirAccessMode from .configurable_prop_integer_array_options_item import ConfigurablePropIntegerArrayOptionsItem from .configurable_prop_integer_options_item import ConfigurablePropIntegerOptionsItem from .configurable_prop_object_options_item import ConfigurablePropObjectOptionsItem @@ -186,6 +187,10 @@ class ConfigurableProp_Dir(UniversalBaseModel): """ type: typing.Literal["dir"] = "dir" + access_mode: typing_extensions.Annotated[ + typing.Optional[ConfigurablePropDirAccessMode], FieldMetadata(alias="accessMode") + ] = None + sync: typing.Optional[bool] = None name: str label: typing.Optional[str] = None description: typing.Optional[str] = None diff --git a/src/pipedream/types/configurable_prop_dir.py b/src/pipedream/types/configurable_prop_dir.py index b5bd4cb..700bfdc 100644 --- a/src/pipedream/types/configurable_prop_dir.py +++ b/src/pipedream/types/configurable_prop_dir.py @@ -3,11 +3,22 @@ import typing import pydantic +import typing_extensions from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata from .configurable_prop_base import ConfigurablePropBase +from .configurable_prop_dir_access_mode import ConfigurablePropDirAccessMode class ConfigurablePropDir(ConfigurablePropBase): + access_mode: typing_extensions.Annotated[ + typing.Optional[ConfigurablePropDirAccessMode], FieldMetadata(alias="accessMode") + ] = None + sync: typing.Optional[bool] = pydantic.Field(default=None) + """ + If true, the component's /tmp directory is synchronized with File Stash + """ + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/pipedream/types/configurable_prop_dir_access_mode.py b/src/pipedream/types/configurable_prop_dir_access_mode.py new file mode 100644 index 0000000..3409d69 --- /dev/null +++ b/src/pipedream/types/configurable_prop_dir_access_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +ConfigurablePropDirAccessMode = typing.Union[typing.Literal["read", "write", "read-write"], typing.Any]