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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"exported_filename": "pipedream.py"
}
},
"originGitCommit": "267ec323a4305eba2c41bd93e26686a26e329107",
"originGitCommit": "b98152f4744d4752cacd615b76d9524eae3eb3a3",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github",
"sdkVersion": "2.0.2"
"sdkVersion": "2.0.3"
}
10 changes: 10 additions & 0 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ src/pipedream/workflows/client.py

# Project-level documentation for AI assistants
CLAUDE.md
.fern/replay.lock
.fern/replay.yml
.gitattributes
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.fern/replay.lock linguist-generated=true
240 changes: 108 additions & 132 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "pipedream"
version = "2.0.2"
version = "2.0.3"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "pipedream/2.0.2",
"User-Agent": "pipedream/2.0.3",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "pipedream",
"X-Fern-SDK-Version": "2.0.2",
"X-Fern-SDK-Version": "2.0.3",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
Expand Down
6 changes: 6 additions & 0 deletions src/pipedream/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from .app import App
from .app_auth_type import AppAuthType
from .app_category import AppCategory
from .app_scope_profiles_item import AppScopeProfilesItem
from .app_scope_profiles_item_name import AppScopeProfilesItemName
from .backend_client_opts import BackendClientOpts
from .client_opts import ClientOpts
from .component import Component
Expand Down Expand Up @@ -148,6 +150,8 @@
"App": ".app",
"AppAuthType": ".app_auth_type",
"AppCategory": ".app_category",
"AppScopeProfilesItem": ".app_scope_profiles_item",
"AppScopeProfilesItemName": ".app_scope_profiles_item_name",
"BackendClientOpts": ".backend_client_opts",
"ClientOpts": ".client_opts",
"Component": ".component",
Expand Down Expand Up @@ -308,6 +312,8 @@ def __dir__():
"App",
"AppAuthType",
"AppCategory",
"AppScopeProfilesItem",
"AppScopeProfilesItemName",
"BackendClientOpts",
"ClientOpts",
"Component",
Expand Down
6 changes: 6 additions & 0 deletions src/pipedream/types/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .app_auth_type import AppAuthType
from .app_scope_profiles_item import AppScopeProfilesItem


class App(UniversalBaseModel):
Expand Down Expand Up @@ -53,6 +54,11 @@ class App(UniversalBaseModel):
A rough directional ordering of app popularity, subject to changes by Pipedream
"""

scope_profiles: typing.List[AppScopeProfilesItem] = pydantic.Field()
"""
Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the `oauth_scope_profile` parameter). Empty for apps that don't define any.
"""

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
Expand Down
28 changes: 28 additions & 0 deletions src/pipedream/types/app_scope_profiles_item.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .app_scope_profiles_item_name import AppScopeProfilesItemName


class AppScopeProfilesItem(UniversalBaseModel):
name: AppScopeProfilesItemName = pydantic.Field()
"""
The profile name. Pass this back as `oauth_scope_profile` when starting the OAuth flow for this app.
"""

scopes: typing.List[str] = pydantic.Field()
"""
The actual OAuth scopes of the upstream API that the user will be asked to authorize when this profile is selected.
"""

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:

class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow
5 changes: 5 additions & 0 deletions src/pipedream/types/app_scope_profiles_item_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

AppScopeProfilesItemName = typing.Union[typing.Literal["read_only", "read_write", "admin"], typing.Any]
Loading