pipedream 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pipedream-0.3.1 → pipedream-0.3.2}/PKG-INFO +4 -4
- {pipedream-0.3.1 → pipedream-0.3.2}/README.md +3 -3
- {pipedream-0.3.1 → pipedream-0.3.2}/pyproject.toml +1 -1
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/__init__.py +2 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/accounts/client.py +10 -10
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/actions/client.py +10 -10
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/app_categories/client.py +4 -4
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/apps/client.py +4 -4
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/client.py +11 -10
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/components/client.py +8 -8
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/client_wrapper.py +11 -10
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/deployed_triggers/client.py +18 -18
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/oauth_tokens/client.py +2 -2
- pipedream-0.3.2/src/pipedream/pipedream.py +80 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/projects/client.py +2 -2
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/proxy/client.py +10 -10
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/tokens/client.py +4 -4
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/triggers/client.py +10 -10
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/__init__.py +2 -0
- pipedream-0.3.2/src/pipedream/types/project_environment.py +5 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/users/client.py +2 -2
- pipedream-0.3.1/src/pipedream/pipedream.py +0 -80
- {pipedream-0.3.1 → pipedream-0.3.2}/LICENSE +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/accounts/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/accounts/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/actions/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/actions/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/app_categories/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/app_categories/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/apps/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/apps/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/apps/types/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/apps/types/apps_list_request_sort_direction.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/apps/types/apps_list_request_sort_key.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/components/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/components/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/api_error.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/datetime_utils.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/file.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/force_multipart.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/http_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/http_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/jsonable_encoder.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/oauth_token_provider.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/pagination.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/pydantic_utilities.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/query_encoder.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/remove_none_from_dict.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/request_options.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/core/serialization.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/deployed_triggers/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/deployed_triggers/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/environment.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/oauth_tokens/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/oauth_tokens/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/projects/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/projects/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/proxy/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/proxy/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/py.typed +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/tokens/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/tokens/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/triggers/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/triggers/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/account.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/app.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/app_auth_type.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/app_category.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/backend_client_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/client_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/component.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/component_stash.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_alert.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_alert_alert_type.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_any.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_app.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_boolean.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_discord.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_integer.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_object.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_string.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configurable_prop_string_array.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configure_prop_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/configure_prop_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/connect_token_create_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/connect_token_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/create_browser_client_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/create_o_auth_token_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/create_token_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/delete_trigger_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/deploy_trigger_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/deployed_component.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/emitted_event.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/error_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_accounts_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_app_category_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_app_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_apps_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_component_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_components_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_trigger_events_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_trigger_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_trigger_webhooks_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_trigger_workflows_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/get_triggers_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/list_accounts_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/list_app_categories_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/list_apps_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/page_info.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/project_info_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/project_info_response_apps_item.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/prop_option.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/proxy_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/reload_props_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/reload_props_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/run_action_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/start_connect_opts.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/validate_token_params.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/types/validate_token_response.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/users/__init__.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/users/raw_client.py +0 -0
- {pipedream-0.3.1 → pipedream-0.3.2}/src/pipedream/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pipedream
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary:
|
|
5
5
|
Requires-Python: >=3.8,<4.0
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -50,7 +50,7 @@ from pipedream import Pipedream
|
|
|
50
50
|
|
|
51
51
|
client = Pipedream(
|
|
52
52
|
project_id="YOUR_PROJECT_ID",
|
|
53
|
-
|
|
53
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
54
54
|
client_id="YOUR_CLIENT_ID",
|
|
55
55
|
client_secret="YOUR_CLIENT_SECRET",
|
|
56
56
|
)
|
|
@@ -72,7 +72,7 @@ from pipedream import AsyncPipedream
|
|
|
72
72
|
|
|
73
73
|
client = AsyncPipedream(
|
|
74
74
|
project_id="YOUR_PROJECT_ID",
|
|
75
|
-
|
|
75
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
76
76
|
client_id="YOUR_CLIENT_ID",
|
|
77
77
|
client_secret="YOUR_CLIENT_SECRET",
|
|
78
78
|
)
|
|
@@ -113,7 +113,7 @@ from pipedream import Pipedream
|
|
|
113
113
|
|
|
114
114
|
client = Pipedream(
|
|
115
115
|
project_id="YOUR_PROJECT_ID",
|
|
116
|
-
|
|
116
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
117
117
|
client_id="YOUR_CLIENT_ID",
|
|
118
118
|
client_secret="YOUR_CLIENT_SECRET",
|
|
119
119
|
)
|
|
@@ -24,7 +24,7 @@ from pipedream import Pipedream
|
|
|
24
24
|
|
|
25
25
|
client = Pipedream(
|
|
26
26
|
project_id="YOUR_PROJECT_ID",
|
|
27
|
-
|
|
27
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
28
28
|
client_id="YOUR_CLIENT_ID",
|
|
29
29
|
client_secret="YOUR_CLIENT_SECRET",
|
|
30
30
|
)
|
|
@@ -46,7 +46,7 @@ from pipedream import AsyncPipedream
|
|
|
46
46
|
|
|
47
47
|
client = AsyncPipedream(
|
|
48
48
|
project_id="YOUR_PROJECT_ID",
|
|
49
|
-
|
|
49
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
50
50
|
client_id="YOUR_CLIENT_ID",
|
|
51
51
|
client_secret="YOUR_CLIENT_SECRET",
|
|
52
52
|
)
|
|
@@ -87,7 +87,7 @@ from pipedream import Pipedream
|
|
|
87
87
|
|
|
88
88
|
client = Pipedream(
|
|
89
89
|
project_id="YOUR_PROJECT_ID",
|
|
90
|
-
|
|
90
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
91
91
|
client_id="YOUR_CLIENT_ID",
|
|
92
92
|
client_secret="YOUR_CLIENT_SECRET",
|
|
93
93
|
)
|
|
@@ -49,6 +49,7 @@ from .types import (
|
|
|
49
49
|
ListAppCategoriesResponse,
|
|
50
50
|
ListAppsResponse,
|
|
51
51
|
PageInfo,
|
|
52
|
+
ProjectEnvironment,
|
|
52
53
|
ProjectInfoResponse,
|
|
53
54
|
ProjectInfoResponseAppsItem,
|
|
54
55
|
PropOption,
|
|
@@ -131,6 +132,7 @@ __all__ = [
|
|
|
131
132
|
"PageInfo",
|
|
132
133
|
"Pipedream",
|
|
133
134
|
"PipedreamEnvironment",
|
|
135
|
+
"ProjectEnvironment",
|
|
134
136
|
"ProjectInfoResponse",
|
|
135
137
|
"ProjectInfoResponseAppsItem",
|
|
136
138
|
"PropOption",
|
|
@@ -76,7 +76,7 @@ class AccountsClient:
|
|
|
76
76
|
|
|
77
77
|
client = Pipedream(
|
|
78
78
|
project_id="YOUR_PROJECT_ID",
|
|
79
|
-
|
|
79
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
80
80
|
client_id="YOUR_CLIENT_ID",
|
|
81
81
|
client_secret="YOUR_CLIENT_SECRET",
|
|
82
82
|
)
|
|
@@ -147,7 +147,7 @@ class AccountsClient:
|
|
|
147
147
|
|
|
148
148
|
client = Pipedream(
|
|
149
149
|
project_id="YOUR_PROJECT_ID",
|
|
150
|
-
|
|
150
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
151
151
|
client_id="YOUR_CLIENT_ID",
|
|
152
152
|
client_secret="YOUR_CLIENT_SECRET",
|
|
153
153
|
)
|
|
@@ -198,7 +198,7 @@ class AccountsClient:
|
|
|
198
198
|
|
|
199
199
|
client = Pipedream(
|
|
200
200
|
project_id="YOUR_PROJECT_ID",
|
|
201
|
-
|
|
201
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
202
202
|
client_id="YOUR_CLIENT_ID",
|
|
203
203
|
client_secret="YOUR_CLIENT_SECRET",
|
|
204
204
|
)
|
|
@@ -230,7 +230,7 @@ class AccountsClient:
|
|
|
230
230
|
|
|
231
231
|
client = Pipedream(
|
|
232
232
|
project_id="YOUR_PROJECT_ID",
|
|
233
|
-
|
|
233
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
234
234
|
client_id="YOUR_CLIENT_ID",
|
|
235
235
|
client_secret="YOUR_CLIENT_SECRET",
|
|
236
236
|
)
|
|
@@ -260,7 +260,7 @@ class AccountsClient:
|
|
|
260
260
|
|
|
261
261
|
client = Pipedream(
|
|
262
262
|
project_id="YOUR_PROJECT_ID",
|
|
263
|
-
|
|
263
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
264
264
|
client_id="YOUR_CLIENT_ID",
|
|
265
265
|
client_secret="YOUR_CLIENT_SECRET",
|
|
266
266
|
)
|
|
@@ -338,7 +338,7 @@ class AsyncAccountsClient:
|
|
|
338
338
|
|
|
339
339
|
client = AsyncPipedream(
|
|
340
340
|
project_id="YOUR_PROJECT_ID",
|
|
341
|
-
|
|
341
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
342
342
|
client_id="YOUR_CLIENT_ID",
|
|
343
343
|
client_secret="YOUR_CLIENT_SECRET",
|
|
344
344
|
)
|
|
@@ -418,7 +418,7 @@ class AsyncAccountsClient:
|
|
|
418
418
|
|
|
419
419
|
client = AsyncPipedream(
|
|
420
420
|
project_id="YOUR_PROJECT_ID",
|
|
421
|
-
|
|
421
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
422
422
|
client_id="YOUR_CLIENT_ID",
|
|
423
423
|
client_secret="YOUR_CLIENT_SECRET",
|
|
424
424
|
)
|
|
@@ -477,7 +477,7 @@ class AsyncAccountsClient:
|
|
|
477
477
|
|
|
478
478
|
client = AsyncPipedream(
|
|
479
479
|
project_id="YOUR_PROJECT_ID",
|
|
480
|
-
|
|
480
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
481
481
|
client_id="YOUR_CLIENT_ID",
|
|
482
482
|
client_secret="YOUR_CLIENT_SECRET",
|
|
483
483
|
)
|
|
@@ -517,7 +517,7 @@ class AsyncAccountsClient:
|
|
|
517
517
|
|
|
518
518
|
client = AsyncPipedream(
|
|
519
519
|
project_id="YOUR_PROJECT_ID",
|
|
520
|
-
|
|
520
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
521
521
|
client_id="YOUR_CLIENT_ID",
|
|
522
522
|
client_secret="YOUR_CLIENT_SECRET",
|
|
523
523
|
)
|
|
@@ -555,7 +555,7 @@ class AsyncAccountsClient:
|
|
|
555
555
|
|
|
556
556
|
client = AsyncPipedream(
|
|
557
557
|
project_id="YOUR_PROJECT_ID",
|
|
558
|
-
|
|
558
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
559
559
|
client_id="YOUR_CLIENT_ID",
|
|
560
560
|
client_secret="YOUR_CLIENT_SECRET",
|
|
561
561
|
)
|
|
@@ -72,7 +72,7 @@ class ActionsClient:
|
|
|
72
72
|
|
|
73
73
|
client = Pipedream(
|
|
74
74
|
project_id="YOUR_PROJECT_ID",
|
|
75
|
-
|
|
75
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
76
76
|
client_id="YOUR_CLIENT_ID",
|
|
77
77
|
client_secret="YOUR_CLIENT_SECRET",
|
|
78
78
|
)
|
|
@@ -108,7 +108,7 @@ class ActionsClient:
|
|
|
108
108
|
|
|
109
109
|
client = Pipedream(
|
|
110
110
|
project_id="YOUR_PROJECT_ID",
|
|
111
|
-
|
|
111
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
112
112
|
client_id="YOUR_CLIENT_ID",
|
|
113
113
|
client_secret="YOUR_CLIENT_SECRET",
|
|
114
114
|
)
|
|
@@ -184,7 +184,7 @@ class ActionsClient:
|
|
|
184
184
|
|
|
185
185
|
client = Pipedream(
|
|
186
186
|
project_id="YOUR_PROJECT_ID",
|
|
187
|
-
|
|
187
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
188
188
|
client_id="YOUR_CLIENT_ID",
|
|
189
189
|
client_secret="YOUR_CLIENT_SECRET",
|
|
190
190
|
)
|
|
@@ -259,7 +259,7 @@ class ActionsClient:
|
|
|
259
259
|
|
|
260
260
|
client = Pipedream(
|
|
261
261
|
project_id="YOUR_PROJECT_ID",
|
|
262
|
-
|
|
262
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
263
263
|
client_id="YOUR_CLIENT_ID",
|
|
264
264
|
client_secret="YOUR_CLIENT_SECRET",
|
|
265
265
|
)
|
|
@@ -321,7 +321,7 @@ class ActionsClient:
|
|
|
321
321
|
|
|
322
322
|
client = Pipedream(
|
|
323
323
|
project_id="YOUR_PROJECT_ID",
|
|
324
|
-
|
|
324
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
325
325
|
client_id="YOUR_CLIENT_ID",
|
|
326
326
|
client_secret="YOUR_CLIENT_SECRET",
|
|
327
327
|
)
|
|
@@ -400,7 +400,7 @@ class AsyncActionsClient:
|
|
|
400
400
|
|
|
401
401
|
client = AsyncPipedream(
|
|
402
402
|
project_id="YOUR_PROJECT_ID",
|
|
403
|
-
|
|
403
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
404
404
|
client_id="YOUR_CLIENT_ID",
|
|
405
405
|
client_secret="YOUR_CLIENT_SECRET",
|
|
406
406
|
)
|
|
@@ -447,7 +447,7 @@ class AsyncActionsClient:
|
|
|
447
447
|
|
|
448
448
|
client = AsyncPipedream(
|
|
449
449
|
project_id="YOUR_PROJECT_ID",
|
|
450
|
-
|
|
450
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
451
451
|
client_id="YOUR_CLIENT_ID",
|
|
452
452
|
client_secret="YOUR_CLIENT_SECRET",
|
|
453
453
|
)
|
|
@@ -531,7 +531,7 @@ class AsyncActionsClient:
|
|
|
531
531
|
|
|
532
532
|
client = AsyncPipedream(
|
|
533
533
|
project_id="YOUR_PROJECT_ID",
|
|
534
|
-
|
|
534
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
535
535
|
client_id="YOUR_CLIENT_ID",
|
|
536
536
|
client_secret="YOUR_CLIENT_SECRET",
|
|
537
537
|
)
|
|
@@ -614,7 +614,7 @@ class AsyncActionsClient:
|
|
|
614
614
|
|
|
615
615
|
client = AsyncPipedream(
|
|
616
616
|
project_id="YOUR_PROJECT_ID",
|
|
617
|
-
|
|
617
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
618
618
|
client_id="YOUR_CLIENT_ID",
|
|
619
619
|
client_secret="YOUR_CLIENT_SECRET",
|
|
620
620
|
)
|
|
@@ -684,7 +684,7 @@ class AsyncActionsClient:
|
|
|
684
684
|
|
|
685
685
|
client = AsyncPipedream(
|
|
686
686
|
project_id="YOUR_PROJECT_ID",
|
|
687
|
-
|
|
687
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
688
688
|
client_id="YOUR_CLIENT_ID",
|
|
689
689
|
client_secret="YOUR_CLIENT_SECRET",
|
|
690
690
|
)
|
|
@@ -42,7 +42,7 @@ class AppCategoriesClient:
|
|
|
42
42
|
|
|
43
43
|
client = Pipedream(
|
|
44
44
|
project_id="YOUR_PROJECT_ID",
|
|
45
|
-
|
|
45
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
46
46
|
client_id="YOUR_CLIENT_ID",
|
|
47
47
|
client_secret="YOUR_CLIENT_SECRET",
|
|
48
48
|
)
|
|
@@ -72,7 +72,7 @@ class AppCategoriesClient:
|
|
|
72
72
|
|
|
73
73
|
client = Pipedream(
|
|
74
74
|
project_id="YOUR_PROJECT_ID",
|
|
75
|
-
|
|
75
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
76
76
|
client_id="YOUR_CLIENT_ID",
|
|
77
77
|
client_secret="YOUR_CLIENT_SECRET",
|
|
78
78
|
)
|
|
@@ -119,7 +119,7 @@ class AsyncAppCategoriesClient:
|
|
|
119
119
|
|
|
120
120
|
client = AsyncPipedream(
|
|
121
121
|
project_id="YOUR_PROJECT_ID",
|
|
122
|
-
|
|
122
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
123
123
|
client_id="YOUR_CLIENT_ID",
|
|
124
124
|
client_secret="YOUR_CLIENT_SECRET",
|
|
125
125
|
)
|
|
@@ -159,7 +159,7 @@ class AsyncAppCategoriesClient:
|
|
|
159
159
|
|
|
160
160
|
client = AsyncPipedream(
|
|
161
161
|
project_id="YOUR_PROJECT_ID",
|
|
162
|
-
|
|
162
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
163
163
|
client_id="YOUR_CLIENT_ID",
|
|
164
164
|
client_secret="YOUR_CLIENT_SECRET",
|
|
165
165
|
)
|
|
@@ -77,7 +77,7 @@ class AppsClient:
|
|
|
77
77
|
|
|
78
78
|
client = Pipedream(
|
|
79
79
|
project_id="YOUR_PROJECT_ID",
|
|
80
|
-
|
|
80
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
81
81
|
client_id="YOUR_CLIENT_ID",
|
|
82
82
|
client_secret="YOUR_CLIENT_SECRET",
|
|
83
83
|
)
|
|
@@ -120,7 +120,7 @@ class AppsClient:
|
|
|
120
120
|
|
|
121
121
|
client = Pipedream(
|
|
122
122
|
project_id="YOUR_PROJECT_ID",
|
|
123
|
-
|
|
123
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
124
124
|
client_id="YOUR_CLIENT_ID",
|
|
125
125
|
client_secret="YOUR_CLIENT_SECRET",
|
|
126
126
|
)
|
|
@@ -199,7 +199,7 @@ class AsyncAppsClient:
|
|
|
199
199
|
|
|
200
200
|
client = AsyncPipedream(
|
|
201
201
|
project_id="YOUR_PROJECT_ID",
|
|
202
|
-
|
|
202
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
203
203
|
client_id="YOUR_CLIENT_ID",
|
|
204
204
|
client_secret="YOUR_CLIENT_SECRET",
|
|
205
205
|
)
|
|
@@ -251,7 +251,7 @@ class AsyncAppsClient:
|
|
|
251
251
|
|
|
252
252
|
client = AsyncPipedream(
|
|
253
253
|
project_id="YOUR_PROJECT_ID",
|
|
254
|
-
|
|
254
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
255
255
|
client_id="YOUR_CLIENT_ID",
|
|
256
256
|
client_secret="YOUR_CLIENT_SECRET",
|
|
257
257
|
)
|
|
@@ -4,6 +4,7 @@ import os
|
|
|
4
4
|
import typing
|
|
5
5
|
|
|
6
6
|
import httpx
|
|
7
|
+
from .types.project_environment import ProjectEnvironment
|
|
7
8
|
from .accounts.client import AccountsClient, AsyncAccountsClient
|
|
8
9
|
from .actions.client import ActionsClient, AsyncActionsClient
|
|
9
10
|
from .app_categories.client import AppCategoriesClient, AsyncAppCategoriesClient
|
|
@@ -41,7 +42,7 @@ class Client:
|
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
project_id : str
|
|
44
|
-
|
|
45
|
+
project_environment : typing.Optional[ProjectEnvironment]
|
|
45
46
|
client_id : typing.Optional[str]
|
|
46
47
|
client_secret : typing.Optional[str]
|
|
47
48
|
_token_getter_override : typing.Optional[typing.Callable[[], str]]
|
|
@@ -60,7 +61,7 @@ class Client:
|
|
|
60
61
|
|
|
61
62
|
client = Pipedream(
|
|
62
63
|
project_id="YOUR_PROJECT_ID",
|
|
63
|
-
|
|
64
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
64
65
|
client_id="YOUR_CLIENT_ID",
|
|
65
66
|
client_secret="YOUR_CLIENT_SECRET",
|
|
66
67
|
)
|
|
@@ -72,7 +73,7 @@ class Client:
|
|
|
72
73
|
base_url: typing.Optional[str] = None,
|
|
73
74
|
environment: PipedreamEnvironment = PipedreamEnvironment.PROD,
|
|
74
75
|
project_id: str,
|
|
75
|
-
|
|
76
|
+
project_environment: typing.Optional[ProjectEnvironment] = os.getenv("PIPEDREAM_PROJECT_ENVIRONMENT"),
|
|
76
77
|
client_id: typing.Optional[str] = os.getenv("PIPEDREAM_CLIENT_ID"),
|
|
77
78
|
client_secret: typing.Optional[str] = os.getenv("PIPEDREAM_CLIENT_SECRET"),
|
|
78
79
|
_token_getter_override: typing.Optional[typing.Callable[[], str]] = None,
|
|
@@ -97,7 +98,7 @@ class Client:
|
|
|
97
98
|
client_wrapper=SyncClientWrapper(
|
|
98
99
|
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
99
100
|
project_id=project_id,
|
|
100
|
-
|
|
101
|
+
project_environment=project_environment,
|
|
101
102
|
httpx_client=httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
|
|
102
103
|
if follow_redirects is not None
|
|
103
104
|
else httpx.Client(timeout=_defaulted_timeout),
|
|
@@ -107,7 +108,7 @@ class Client:
|
|
|
107
108
|
self._client_wrapper = SyncClientWrapper(
|
|
108
109
|
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
109
110
|
project_id=project_id,
|
|
110
|
-
|
|
111
|
+
project_environment=project_environment,
|
|
111
112
|
token=_token_getter_override if _token_getter_override is not None else oauth_token_provider.get_token,
|
|
112
113
|
httpx_client=httpx_client
|
|
113
114
|
if httpx_client is not None
|
|
@@ -149,7 +150,7 @@ class AsyncClient:
|
|
|
149
150
|
|
|
150
151
|
|
|
151
152
|
project_id : str
|
|
152
|
-
|
|
153
|
+
project_environment : typing.Optional[ProjectEnvironment]
|
|
153
154
|
client_id : typing.Optional[str]
|
|
154
155
|
client_secret : typing.Optional[str]
|
|
155
156
|
_token_getter_override : typing.Optional[typing.Callable[[], str]]
|
|
@@ -168,7 +169,7 @@ class AsyncClient:
|
|
|
168
169
|
|
|
169
170
|
client = AsyncPipedream(
|
|
170
171
|
project_id="YOUR_PROJECT_ID",
|
|
171
|
-
|
|
172
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
172
173
|
client_id="YOUR_CLIENT_ID",
|
|
173
174
|
client_secret="YOUR_CLIENT_SECRET",
|
|
174
175
|
)
|
|
@@ -180,7 +181,7 @@ class AsyncClient:
|
|
|
180
181
|
base_url: typing.Optional[str] = None,
|
|
181
182
|
environment: PipedreamEnvironment = PipedreamEnvironment.PROD,
|
|
182
183
|
project_id: str,
|
|
183
|
-
|
|
184
|
+
project_environment: typing.Optional[ProjectEnvironment] = os.getenv("PIPEDREAM_PROJECT_ENVIRONMENT"),
|
|
184
185
|
client_id: typing.Optional[str] = os.getenv("PIPEDREAM_CLIENT_ID"),
|
|
185
186
|
client_secret: typing.Optional[str] = os.getenv("PIPEDREAM_CLIENT_SECRET"),
|
|
186
187
|
_token_getter_override: typing.Optional[typing.Callable[[], str]] = None,
|
|
@@ -205,7 +206,7 @@ class AsyncClient:
|
|
|
205
206
|
client_wrapper=SyncClientWrapper(
|
|
206
207
|
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
207
208
|
project_id=project_id,
|
|
208
|
-
|
|
209
|
+
project_environment=project_environment,
|
|
209
210
|
httpx_client=httpx.Client(timeout=_defaulted_timeout, follow_redirects=follow_redirects)
|
|
210
211
|
if follow_redirects is not None
|
|
211
212
|
else httpx.Client(timeout=_defaulted_timeout),
|
|
@@ -215,7 +216,7 @@ class AsyncClient:
|
|
|
215
216
|
self._client_wrapper = AsyncClientWrapper(
|
|
216
217
|
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
217
218
|
project_id=project_id,
|
|
218
|
-
|
|
219
|
+
project_environment=project_environment,
|
|
219
220
|
token=_token_getter_override if _token_getter_override is not None else oauth_token_provider.get_token,
|
|
220
221
|
httpx_client=httpx_client
|
|
221
222
|
if httpx_client is not None
|
|
@@ -71,7 +71,7 @@ class ComponentsClient:
|
|
|
71
71
|
|
|
72
72
|
client = Pipedream(
|
|
73
73
|
project_id="YOUR_PROJECT_ID",
|
|
74
|
-
|
|
74
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
75
75
|
client_id="YOUR_CLIENT_ID",
|
|
76
76
|
client_secret="YOUR_CLIENT_SECRET",
|
|
77
77
|
)
|
|
@@ -107,7 +107,7 @@ class ComponentsClient:
|
|
|
107
107
|
|
|
108
108
|
client = Pipedream(
|
|
109
109
|
project_id="YOUR_PROJECT_ID",
|
|
110
|
-
|
|
110
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
111
111
|
client_id="YOUR_CLIENT_ID",
|
|
112
112
|
client_secret="YOUR_CLIENT_SECRET",
|
|
113
113
|
)
|
|
@@ -183,7 +183,7 @@ class ComponentsClient:
|
|
|
183
183
|
|
|
184
184
|
client = Pipedream(
|
|
185
185
|
project_id="YOUR_PROJECT_ID",
|
|
186
|
-
|
|
186
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
187
187
|
client_id="YOUR_CLIENT_ID",
|
|
188
188
|
client_secret="YOUR_CLIENT_SECRET",
|
|
189
189
|
)
|
|
@@ -258,7 +258,7 @@ class ComponentsClient:
|
|
|
258
258
|
|
|
259
259
|
client = Pipedream(
|
|
260
260
|
project_id="YOUR_PROJECT_ID",
|
|
261
|
-
|
|
261
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
262
262
|
client_id="YOUR_CLIENT_ID",
|
|
263
263
|
client_secret="YOUR_CLIENT_SECRET",
|
|
264
264
|
)
|
|
@@ -339,7 +339,7 @@ class AsyncComponentsClient:
|
|
|
339
339
|
|
|
340
340
|
client = AsyncPipedream(
|
|
341
341
|
project_id="YOUR_PROJECT_ID",
|
|
342
|
-
|
|
342
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
343
343
|
client_id="YOUR_CLIENT_ID",
|
|
344
344
|
client_secret="YOUR_CLIENT_SECRET",
|
|
345
345
|
)
|
|
@@ -386,7 +386,7 @@ class AsyncComponentsClient:
|
|
|
386
386
|
|
|
387
387
|
client = AsyncPipedream(
|
|
388
388
|
project_id="YOUR_PROJECT_ID",
|
|
389
|
-
|
|
389
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
390
390
|
client_id="YOUR_CLIENT_ID",
|
|
391
391
|
client_secret="YOUR_CLIENT_SECRET",
|
|
392
392
|
)
|
|
@@ -470,7 +470,7 @@ class AsyncComponentsClient:
|
|
|
470
470
|
|
|
471
471
|
client = AsyncPipedream(
|
|
472
472
|
project_id="YOUR_PROJECT_ID",
|
|
473
|
-
|
|
473
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
474
474
|
client_id="YOUR_CLIENT_ID",
|
|
475
475
|
client_secret="YOUR_CLIENT_SECRET",
|
|
476
476
|
)
|
|
@@ -553,7 +553,7 @@ class AsyncComponentsClient:
|
|
|
553
553
|
|
|
554
554
|
client = AsyncPipedream(
|
|
555
555
|
project_id="YOUR_PROJECT_ID",
|
|
556
|
-
|
|
556
|
+
project_environment="YOUR_PROJECT_ENVIRONMENT",
|
|
557
557
|
client_id="YOUR_CLIENT_ID",
|
|
558
558
|
client_secret="YOUR_CLIENT_SECRET",
|
|
559
559
|
)
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
|
+
from ..types.project_environment import ProjectEnvironment
|
|
6
7
|
from .http_client import AsyncHttpClient, HttpClient
|
|
7
8
|
|
|
8
9
|
|
|
@@ -11,14 +12,14 @@ class BaseClientWrapper:
|
|
|
11
12
|
self,
|
|
12
13
|
*,
|
|
13
14
|
project_id: str,
|
|
14
|
-
|
|
15
|
+
project_environment: typing.Optional[ProjectEnvironment] = None,
|
|
15
16
|
token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None,
|
|
16
17
|
headers: typing.Optional[typing.Dict[str, str]] = None,
|
|
17
18
|
base_url: str,
|
|
18
19
|
timeout: typing.Optional[float] = None,
|
|
19
20
|
):
|
|
20
21
|
self._project_id = project_id
|
|
21
|
-
self.
|
|
22
|
+
self._project_environment = project_environment
|
|
22
23
|
self._token = token
|
|
23
24
|
self._headers = headers
|
|
24
25
|
self._base_url = base_url
|
|
@@ -26,14 +27,14 @@ class BaseClientWrapper:
|
|
|
26
27
|
|
|
27
28
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
28
29
|
headers: typing.Dict[str, str] = {
|
|
29
|
-
"User-Agent": "pipedream/0.3.
|
|
30
|
+
"User-Agent": "pipedream/0.3.2",
|
|
30
31
|
"X-Fern-Language": "Python",
|
|
31
32
|
"X-Fern-SDK-Name": "pipedream",
|
|
32
|
-
"X-Fern-SDK-Version": "0.3.
|
|
33
|
+
"X-Fern-SDK-Version": "0.3.2",
|
|
33
34
|
**(self.get_custom_headers() or {}),
|
|
34
35
|
}
|
|
35
|
-
if self.
|
|
36
|
-
headers["x-pd-environment"] = self.
|
|
36
|
+
if self._project_environment is not None:
|
|
37
|
+
headers["x-pd-environment"] = self._project_environment
|
|
37
38
|
token = self._get_token()
|
|
38
39
|
if token is not None:
|
|
39
40
|
headers["Authorization"] = f"Bearer {token}"
|
|
@@ -60,7 +61,7 @@ class SyncClientWrapper(BaseClientWrapper):
|
|
|
60
61
|
self,
|
|
61
62
|
*,
|
|
62
63
|
project_id: str,
|
|
63
|
-
|
|
64
|
+
project_environment: typing.Optional[ProjectEnvironment] = None,
|
|
64
65
|
token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None,
|
|
65
66
|
headers: typing.Optional[typing.Dict[str, str]] = None,
|
|
66
67
|
base_url: str,
|
|
@@ -69,7 +70,7 @@ class SyncClientWrapper(BaseClientWrapper):
|
|
|
69
70
|
):
|
|
70
71
|
super().__init__(
|
|
71
72
|
project_id=project_id,
|
|
72
|
-
|
|
73
|
+
project_environment=project_environment,
|
|
73
74
|
token=token,
|
|
74
75
|
headers=headers,
|
|
75
76
|
base_url=base_url,
|
|
@@ -88,7 +89,7 @@ class AsyncClientWrapper(BaseClientWrapper):
|
|
|
88
89
|
self,
|
|
89
90
|
*,
|
|
90
91
|
project_id: str,
|
|
91
|
-
|
|
92
|
+
project_environment: typing.Optional[ProjectEnvironment] = None,
|
|
92
93
|
token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None,
|
|
93
94
|
headers: typing.Optional[typing.Dict[str, str]] = None,
|
|
94
95
|
base_url: str,
|
|
@@ -97,7 +98,7 @@ class AsyncClientWrapper(BaseClientWrapper):
|
|
|
97
98
|
):
|
|
98
99
|
super().__init__(
|
|
99
100
|
project_id=project_id,
|
|
100
|
-
|
|
101
|
+
project_environment=project_environment,
|
|
101
102
|
token=token,
|
|
102
103
|
headers=headers,
|
|
103
104
|
base_url=base_url,
|