fal 1.0.7__tar.gz → 1.1.0__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.
Potentially problematic release.
This version of fal might be problematic. Click here for more details.
- {fal-1.0.7 → fal-1.1.0}/PKG-INFO +2 -1
- {fal-1.0.7 → fal-1.1.0}/fal.egg-info/PKG-INFO +2 -1
- {fal-1.0.7 → fal-1.1.0}/fal.egg-info/SOURCES.txt +30 -8
- {fal-1.0.7 → fal-1.1.0}/fal.egg-info/requires.txt +1 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/comfy/create_workflow.py +172 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/comfy/delete_workflow.py +175 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/comfy/get_workflow.py +181 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/comfy/list_user_workflows.py +189 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/comfy/update_workflow.py +198 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/users/get_current_user.py +143 -0
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/api/workflows/create_or_update_workflow_workflows_post.py → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/workflows/create_workflow.py +4 -4
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/api/workflows/get_workflows_workflows_get.py → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/workflows/list_user_workflows.py +4 -4
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/workflows/update_workflow.py +198 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/__init__.py +32 -10
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_detail.py +109 -0
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/models/workflow_item.py → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_item.py +13 -5
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema.py +119 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_extra_data.py +44 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_fal_inputs.py +44 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_fal_inputs_dev_info.py +44 -0
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/models/workflow_detail_contents_type_0.py → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_prompt.py +5 -5
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/current_user.py +138 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/customer_details.py +8 -8
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/lock_reason.py +3 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/page_comfy_workflow_item.py +107 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/team_role.py +10 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/typed_comfy_workflow.py +85 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/typed_comfy_workflow_update.py +95 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/typed_workflow_update.py +95 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/user_member.py +87 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_contents.py +20 -1
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/workflow_contents_metadata.py +44 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/workflow_detail.py +108 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/workflow_detail_contents.py +44 -0
- fal-1.1.0/openapi-fal-rest/openapi_fal_rest/models/workflow_item.py +98 -0
- {fal-1.0.7 → fal-1.1.0}/pyproject.toml +1 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/_fal_version.py +2 -2
- {fal-1.0.7 → fal-1.1.0}/src/fal/api.py +116 -29
- {fal-1.0.7 → fal-1.1.0}/src/fal/app.py +63 -1
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/deploy.py +18 -8
- fal-1.1.0/src/fal/cli/doctor.py +37 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/main.py +2 -2
- {fal-1.0.7 → fal-1.1.0}/src/fal/sdk.py +6 -2
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/file/providers/fal.py +1 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/workflows.py +1 -1
- fal-1.1.0/tests/__init__.py +0 -0
- fal-1.1.0/tests/cli/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/test_apps.py +63 -25
- {fal-1.0.7 → fal-1.1.0}/tests/toolkit/file_test.py +39 -1
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/api/workflows/execute_workflow_workflows_user_id_workflow_name_post.py +0 -268
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/models/execute_workflow_workflows_user_id_workflow_name_post_json_body_type_0.py +0 -44
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/models/execute_workflow_workflows_user_id_workflow_name_post_response_200_type_0.py +0 -44
- fal-1.0.7/openapi-fal-rest/openapi_fal_rest/models/workflow_detail.py +0 -149
- {fal-1.0.7 → fal-1.1.0}/.gitignore +0 -0
- {fal-1.0.7 → fal-1.1.0}/README.md +0 -0
- {fal-1.0.7 → fal-1.1.0}/fal.egg-info/dependency_links.txt +0 -0
- {fal-1.0.7 → fal-1.1.0}/fal.egg-info/entry_points.txt +0 -0
- {fal-1.0.7 → fal-1.1.0}/fal.egg-info/top_level.txt +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/README.md +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/api/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/api/applications/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/api/applications/app_metadata.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/api/billing/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/api/billing/get_user_details.py +0 -0
- {fal-1.0.7/openapi-fal-rest/openapi_fal_rest/api/files → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/comfy}/__init__.py +0 -0
- {fal-1.0.7/openapi-fal-rest/openapi_fal_rest/api/workflows → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/files}/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/api/files/check_dir_hash.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/api/files/upload_local_file.py +0 -0
- {fal-1.0.7/tests → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/users}/__init__.py +0 -0
- {fal-1.0.7/tests/cli → fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/workflows}/__init__.py +0 -0
- /fal-1.0.7/openapi-fal-rest/openapi_fal_rest/api/workflows/delete_workflow_workflows_user_id_workflow_name_delete.py → /fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/workflows/delete_workflow.py +0 -0
- /fal-1.0.7/openapi-fal-rest/openapi_fal_rest/api/workflows/get_workflow_workflows_user_id_workflow_name_get.py → /fal-1.1.0/openapi-fal-rest/openapi_fal_rest/api/workflows/get_workflow.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/client.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/errors.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/app_metadata_response_app_metadata.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/body_upload_local_file.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/hash_check.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/http_validation_error.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/page_workflow_item.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/typed_workflow.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/validation_error.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_contents_nodes.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_contents_output.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_node.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_node_type.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_schema.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_schema_input.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/models/workflow_schema_output.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/py.typed +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/openapi_fal_rest/types.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi-fal-rest/pyproject.toml +0 -0
- {fal-1.0.7 → fal-1.1.0}/openapi_rest.config.yaml +0 -0
- {fal-1.0.7 → fal-1.1.0}/setup.cfg +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/__main__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/_serialization.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/_version.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/apps.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/auth/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/auth/auth0.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/auth/local.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/apps.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/auth.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/debug.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/keys.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/parser.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/run.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/cli/secrets.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/console/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/console/icons.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/console/ux.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/container.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/exceptions/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/exceptions/_base.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/exceptions/auth.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/flags.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/logging/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/logging/isolate.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/logging/style.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/logging/trace.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/logging/user.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/py.typed +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/rest_client.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/sync.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/exceptions.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/file/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/file/file.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/file/providers/gcp.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/file/providers/r2.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/file/types.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/image/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/image/image.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/optimize.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/utils/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/toolkit/utils/download_utils.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/src/fal/utils.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/cli/test_apps.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/cli/test_auth.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/cli/test_deploy.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/cli/test_keys.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/cli/test_run.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/cli/test_secrets.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/conftest.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/integration_test.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/mainify_package/__init__.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/mainify_package/impl.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/mainify_package/utils.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/mainify_target.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/test_stability.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tests/toolkit/image_test.py +0 -0
- {fal-1.0.7 → fal-1.1.0}/tools/demo_script.py +0 -0
{fal-1.0.7 → fal-1.1.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fal
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: fal is an easy-to-use Serverless Python Framework
|
|
5
5
|
Author: Features & Labels <support@fal.ai>
|
|
6
6
|
Requires-Python: >=3.8
|
|
@@ -40,6 +40,7 @@ Requires-Dist: pytest<8; extra == "test"
|
|
|
40
40
|
Requires-Dist: pytest-asyncio; extra == "test"
|
|
41
41
|
Requires-Dist: pytest-xdist; extra == "test"
|
|
42
42
|
Requires-Dist: flaky; extra == "test"
|
|
43
|
+
Requires-Dist: boto3; extra == "test"
|
|
43
44
|
Provides-Extra: dev
|
|
44
45
|
Requires-Dist: fal[test]; extra == "dev"
|
|
45
46
|
Requires-Dist: openapi-python-client<1,>=0.14.1; extra == "dev"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fal
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: fal is an easy-to-use Serverless Python Framework
|
|
5
5
|
Author: Features & Labels <support@fal.ai>
|
|
6
6
|
Requires-Python: >=3.8
|
|
@@ -40,6 +40,7 @@ Requires-Dist: pytest<8; extra == "test"
|
|
|
40
40
|
Requires-Dist: pytest-asyncio; extra == "test"
|
|
41
41
|
Requires-Dist: pytest-xdist; extra == "test"
|
|
42
42
|
Requires-Dist: flaky; extra == "test"
|
|
43
|
+
Requires-Dist: boto3; extra == "test"
|
|
43
44
|
Provides-Extra: dev
|
|
44
45
|
Requires-Dist: fal[test]; extra == "dev"
|
|
45
46
|
Requires-Dist: openapi-python-client<1,>=0.14.1; extra == "dev"
|
|
@@ -20,32 +20,53 @@ openapi-fal-rest/openapi_fal_rest/api/applications/__init__.py
|
|
|
20
20
|
openapi-fal-rest/openapi_fal_rest/api/applications/app_metadata.py
|
|
21
21
|
openapi-fal-rest/openapi_fal_rest/api/billing/__init__.py
|
|
22
22
|
openapi-fal-rest/openapi_fal_rest/api/billing/get_user_details.py
|
|
23
|
+
openapi-fal-rest/openapi_fal_rest/api/comfy/__init__.py
|
|
24
|
+
openapi-fal-rest/openapi_fal_rest/api/comfy/create_workflow.py
|
|
25
|
+
openapi-fal-rest/openapi_fal_rest/api/comfy/delete_workflow.py
|
|
26
|
+
openapi-fal-rest/openapi_fal_rest/api/comfy/get_workflow.py
|
|
27
|
+
openapi-fal-rest/openapi_fal_rest/api/comfy/list_user_workflows.py
|
|
28
|
+
openapi-fal-rest/openapi_fal_rest/api/comfy/update_workflow.py
|
|
23
29
|
openapi-fal-rest/openapi_fal_rest/api/files/__init__.py
|
|
24
30
|
openapi-fal-rest/openapi_fal_rest/api/files/check_dir_hash.py
|
|
25
31
|
openapi-fal-rest/openapi_fal_rest/api/files/upload_local_file.py
|
|
32
|
+
openapi-fal-rest/openapi_fal_rest/api/users/__init__.py
|
|
33
|
+
openapi-fal-rest/openapi_fal_rest/api/users/get_current_user.py
|
|
26
34
|
openapi-fal-rest/openapi_fal_rest/api/workflows/__init__.py
|
|
27
|
-
openapi-fal-rest/openapi_fal_rest/api/workflows/
|
|
28
|
-
openapi-fal-rest/openapi_fal_rest/api/workflows/
|
|
29
|
-
openapi-fal-rest/openapi_fal_rest/api/workflows/
|
|
30
|
-
openapi-fal-rest/openapi_fal_rest/api/workflows/
|
|
31
|
-
openapi-fal-rest/openapi_fal_rest/api/workflows/
|
|
35
|
+
openapi-fal-rest/openapi_fal_rest/api/workflows/create_workflow.py
|
|
36
|
+
openapi-fal-rest/openapi_fal_rest/api/workflows/delete_workflow.py
|
|
37
|
+
openapi-fal-rest/openapi_fal_rest/api/workflows/get_workflow.py
|
|
38
|
+
openapi-fal-rest/openapi_fal_rest/api/workflows/list_user_workflows.py
|
|
39
|
+
openapi-fal-rest/openapi_fal_rest/api/workflows/update_workflow.py
|
|
32
40
|
openapi-fal-rest/openapi_fal_rest/models/__init__.py
|
|
33
41
|
openapi-fal-rest/openapi_fal_rest/models/app_metadata_response_app_metadata.py
|
|
34
42
|
openapi-fal-rest/openapi_fal_rest/models/body_upload_local_file.py
|
|
43
|
+
openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_detail.py
|
|
44
|
+
openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_item.py
|
|
45
|
+
openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema.py
|
|
46
|
+
openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_extra_data.py
|
|
47
|
+
openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_fal_inputs.py
|
|
48
|
+
openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_fal_inputs_dev_info.py
|
|
49
|
+
openapi-fal-rest/openapi_fal_rest/models/comfy_workflow_schema_prompt.py
|
|
50
|
+
openapi-fal-rest/openapi_fal_rest/models/current_user.py
|
|
35
51
|
openapi-fal-rest/openapi_fal_rest/models/customer_details.py
|
|
36
|
-
openapi-fal-rest/openapi_fal_rest/models/execute_workflow_workflows_user_id_workflow_name_post_json_body_type_0.py
|
|
37
|
-
openapi-fal-rest/openapi_fal_rest/models/execute_workflow_workflows_user_id_workflow_name_post_response_200_type_0.py
|
|
38
52
|
openapi-fal-rest/openapi_fal_rest/models/hash_check.py
|
|
39
53
|
openapi-fal-rest/openapi_fal_rest/models/http_validation_error.py
|
|
40
54
|
openapi-fal-rest/openapi_fal_rest/models/lock_reason.py
|
|
55
|
+
openapi-fal-rest/openapi_fal_rest/models/page_comfy_workflow_item.py
|
|
41
56
|
openapi-fal-rest/openapi_fal_rest/models/page_workflow_item.py
|
|
57
|
+
openapi-fal-rest/openapi_fal_rest/models/team_role.py
|
|
58
|
+
openapi-fal-rest/openapi_fal_rest/models/typed_comfy_workflow.py
|
|
59
|
+
openapi-fal-rest/openapi_fal_rest/models/typed_comfy_workflow_update.py
|
|
42
60
|
openapi-fal-rest/openapi_fal_rest/models/typed_workflow.py
|
|
61
|
+
openapi-fal-rest/openapi_fal_rest/models/typed_workflow_update.py
|
|
62
|
+
openapi-fal-rest/openapi_fal_rest/models/user_member.py
|
|
43
63
|
openapi-fal-rest/openapi_fal_rest/models/validation_error.py
|
|
44
64
|
openapi-fal-rest/openapi_fal_rest/models/workflow_contents.py
|
|
65
|
+
openapi-fal-rest/openapi_fal_rest/models/workflow_contents_metadata.py
|
|
45
66
|
openapi-fal-rest/openapi_fal_rest/models/workflow_contents_nodes.py
|
|
46
67
|
openapi-fal-rest/openapi_fal_rest/models/workflow_contents_output.py
|
|
47
68
|
openapi-fal-rest/openapi_fal_rest/models/workflow_detail.py
|
|
48
|
-
openapi-fal-rest/openapi_fal_rest/models/
|
|
69
|
+
openapi-fal-rest/openapi_fal_rest/models/workflow_detail_contents.py
|
|
49
70
|
openapi-fal-rest/openapi_fal_rest/models/workflow_item.py
|
|
50
71
|
openapi-fal-rest/openapi_fal_rest/models/workflow_node.py
|
|
51
72
|
openapi-fal-rest/openapi_fal_rest/models/workflow_node_type.py
|
|
@@ -76,6 +97,7 @@ src/fal/cli/apps.py
|
|
|
76
97
|
src/fal/cli/auth.py
|
|
77
98
|
src/fal/cli/debug.py
|
|
78
99
|
src/fal/cli/deploy.py
|
|
100
|
+
src/fal/cli/doctor.py
|
|
79
101
|
src/fal/cli/keys.py
|
|
80
102
|
src/fal/cli/main.py
|
|
81
103
|
src/fal/cli/parser.py
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import Client
|
|
8
|
+
from ...models.comfy_workflow_detail import ComfyWorkflowDetail
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...models.typed_comfy_workflow import TypedComfyWorkflow
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
client: Client,
|
|
17
|
+
json_body: TypedComfyWorkflow,
|
|
18
|
+
) -> Dict[str, Any]:
|
|
19
|
+
url = "{}/comfy/".format(client.base_url)
|
|
20
|
+
|
|
21
|
+
headers: Dict[str, str] = client.get_headers()
|
|
22
|
+
cookies: Dict[str, Any] = client.get_cookies()
|
|
23
|
+
|
|
24
|
+
json_json_body = json_body.to_dict()
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
"method": "post",
|
|
28
|
+
"url": url,
|
|
29
|
+
"headers": headers,
|
|
30
|
+
"cookies": cookies,
|
|
31
|
+
"timeout": client.get_timeout(),
|
|
32
|
+
"follow_redirects": client.follow_redirects,
|
|
33
|
+
"json": json_json_body,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _parse_response(
|
|
38
|
+
*, client: Client, response: httpx.Response
|
|
39
|
+
) -> Optional[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
40
|
+
if response.status_code == HTTPStatus.CREATED:
|
|
41
|
+
response_201 = ComfyWorkflowDetail.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_201
|
|
44
|
+
if response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY:
|
|
45
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
46
|
+
|
|
47
|
+
return response_422
|
|
48
|
+
if client.raise_on_unexpected_status:
|
|
49
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
50
|
+
else:
|
|
51
|
+
return None
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _build_response(
|
|
55
|
+
*, client: Client, response: httpx.Response
|
|
56
|
+
) -> Response[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
57
|
+
return Response(
|
|
58
|
+
status_code=HTTPStatus(response.status_code),
|
|
59
|
+
content=response.content,
|
|
60
|
+
headers=response.headers,
|
|
61
|
+
parsed=_parse_response(client=client, response=response),
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def sync_detailed(
|
|
66
|
+
*,
|
|
67
|
+
client: Client,
|
|
68
|
+
json_body: TypedComfyWorkflow,
|
|
69
|
+
) -> Response[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
70
|
+
"""Create Workflow
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
json_body (TypedComfyWorkflow):
|
|
74
|
+
|
|
75
|
+
Raises:
|
|
76
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
77
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
78
|
+
|
|
79
|
+
Returns:
|
|
80
|
+
Response[Union[ComfyWorkflowDetail, HTTPValidationError]]
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
kwargs = _get_kwargs(
|
|
84
|
+
client=client,
|
|
85
|
+
json_body=json_body,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
response = httpx.request(
|
|
89
|
+
verify=client.verify_ssl,
|
|
90
|
+
**kwargs,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
return _build_response(client=client, response=response)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def sync(
|
|
97
|
+
*,
|
|
98
|
+
client: Client,
|
|
99
|
+
json_body: TypedComfyWorkflow,
|
|
100
|
+
) -> Optional[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
101
|
+
"""Create Workflow
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
json_body (TypedComfyWorkflow):
|
|
105
|
+
|
|
106
|
+
Raises:
|
|
107
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
108
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
Union[ComfyWorkflowDetail, HTTPValidationError]
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
return sync_detailed(
|
|
115
|
+
client=client,
|
|
116
|
+
json_body=json_body,
|
|
117
|
+
).parsed
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
async def asyncio_detailed(
|
|
121
|
+
*,
|
|
122
|
+
client: Client,
|
|
123
|
+
json_body: TypedComfyWorkflow,
|
|
124
|
+
) -> Response[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
125
|
+
"""Create Workflow
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
json_body (TypedComfyWorkflow):
|
|
129
|
+
|
|
130
|
+
Raises:
|
|
131
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
132
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
133
|
+
|
|
134
|
+
Returns:
|
|
135
|
+
Response[Union[ComfyWorkflowDetail, HTTPValidationError]]
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
kwargs = _get_kwargs(
|
|
139
|
+
client=client,
|
|
140
|
+
json_body=json_body,
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
|
|
144
|
+
response = await _client.request(**kwargs)
|
|
145
|
+
|
|
146
|
+
return _build_response(client=client, response=response)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
async def asyncio(
|
|
150
|
+
*,
|
|
151
|
+
client: Client,
|
|
152
|
+
json_body: TypedComfyWorkflow,
|
|
153
|
+
) -> Optional[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
154
|
+
"""Create Workflow
|
|
155
|
+
|
|
156
|
+
Args:
|
|
157
|
+
json_body (TypedComfyWorkflow):
|
|
158
|
+
|
|
159
|
+
Raises:
|
|
160
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
161
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
162
|
+
|
|
163
|
+
Returns:
|
|
164
|
+
Union[ComfyWorkflowDetail, HTTPValidationError]
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
return (
|
|
168
|
+
await asyncio_detailed(
|
|
169
|
+
client=client,
|
|
170
|
+
json_body=json_body,
|
|
171
|
+
)
|
|
172
|
+
).parsed
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import Client
|
|
8
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
user_id: str,
|
|
14
|
+
name: str,
|
|
15
|
+
*,
|
|
16
|
+
client: Client,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
url = "{}/comfy/{user_id}/{name}".format(client.base_url, user_id=user_id, name=name)
|
|
19
|
+
|
|
20
|
+
headers: Dict[str, str] = client.get_headers()
|
|
21
|
+
cookies: Dict[str, Any] = client.get_cookies()
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
"method": "delete",
|
|
25
|
+
"url": url,
|
|
26
|
+
"headers": headers,
|
|
27
|
+
"cookies": cookies,
|
|
28
|
+
"timeout": client.get_timeout(),
|
|
29
|
+
"follow_redirects": client.follow_redirects,
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Union[Any, HTTPValidationError]]:
|
|
34
|
+
if response.status_code == HTTPStatus.NO_CONTENT:
|
|
35
|
+
response_204 = cast(Any, None)
|
|
36
|
+
return response_204
|
|
37
|
+
if response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY:
|
|
38
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_422
|
|
41
|
+
if client.raise_on_unexpected_status:
|
|
42
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
43
|
+
else:
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Union[Any, HTTPValidationError]]:
|
|
48
|
+
return Response(
|
|
49
|
+
status_code=HTTPStatus(response.status_code),
|
|
50
|
+
content=response.content,
|
|
51
|
+
headers=response.headers,
|
|
52
|
+
parsed=_parse_response(client=client, response=response),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def sync_detailed(
|
|
57
|
+
user_id: str,
|
|
58
|
+
name: str,
|
|
59
|
+
*,
|
|
60
|
+
client: Client,
|
|
61
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
62
|
+
"""Delete Workflow
|
|
63
|
+
|
|
64
|
+
Args:
|
|
65
|
+
user_id (str):
|
|
66
|
+
name (str):
|
|
67
|
+
|
|
68
|
+
Raises:
|
|
69
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
70
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
71
|
+
|
|
72
|
+
Returns:
|
|
73
|
+
Response[Union[Any, HTTPValidationError]]
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
kwargs = _get_kwargs(
|
|
77
|
+
user_id=user_id,
|
|
78
|
+
name=name,
|
|
79
|
+
client=client,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
response = httpx.request(
|
|
83
|
+
verify=client.verify_ssl,
|
|
84
|
+
**kwargs,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
return _build_response(client=client, response=response)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def sync(
|
|
91
|
+
user_id: str,
|
|
92
|
+
name: str,
|
|
93
|
+
*,
|
|
94
|
+
client: Client,
|
|
95
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
96
|
+
"""Delete Workflow
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
user_id (str):
|
|
100
|
+
name (str):
|
|
101
|
+
|
|
102
|
+
Raises:
|
|
103
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
104
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
Union[Any, HTTPValidationError]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
return sync_detailed(
|
|
111
|
+
user_id=user_id,
|
|
112
|
+
name=name,
|
|
113
|
+
client=client,
|
|
114
|
+
).parsed
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
async def asyncio_detailed(
|
|
118
|
+
user_id: str,
|
|
119
|
+
name: str,
|
|
120
|
+
*,
|
|
121
|
+
client: Client,
|
|
122
|
+
) -> Response[Union[Any, HTTPValidationError]]:
|
|
123
|
+
"""Delete Workflow
|
|
124
|
+
|
|
125
|
+
Args:
|
|
126
|
+
user_id (str):
|
|
127
|
+
name (str):
|
|
128
|
+
|
|
129
|
+
Raises:
|
|
130
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
131
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
Response[Union[Any, HTTPValidationError]]
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
kwargs = _get_kwargs(
|
|
138
|
+
user_id=user_id,
|
|
139
|
+
name=name,
|
|
140
|
+
client=client,
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
|
|
144
|
+
response = await _client.request(**kwargs)
|
|
145
|
+
|
|
146
|
+
return _build_response(client=client, response=response)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
async def asyncio(
|
|
150
|
+
user_id: str,
|
|
151
|
+
name: str,
|
|
152
|
+
*,
|
|
153
|
+
client: Client,
|
|
154
|
+
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
155
|
+
"""Delete Workflow
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
user_id (str):
|
|
159
|
+
name (str):
|
|
160
|
+
|
|
161
|
+
Raises:
|
|
162
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
163
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
164
|
+
|
|
165
|
+
Returns:
|
|
166
|
+
Union[Any, HTTPValidationError]
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
return (
|
|
170
|
+
await asyncio_detailed(
|
|
171
|
+
user_id=user_id,
|
|
172
|
+
name=name,
|
|
173
|
+
client=client,
|
|
174
|
+
)
|
|
175
|
+
).parsed
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import Client
|
|
8
|
+
from ...models.comfy_workflow_detail import ComfyWorkflowDetail
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
user_id: str,
|
|
15
|
+
name: str,
|
|
16
|
+
*,
|
|
17
|
+
client: Client,
|
|
18
|
+
) -> Dict[str, Any]:
|
|
19
|
+
url = "{}/comfy/{user_id}/{name}".format(client.base_url, user_id=user_id, name=name)
|
|
20
|
+
|
|
21
|
+
headers: Dict[str, str] = client.get_headers()
|
|
22
|
+
cookies: Dict[str, Any] = client.get_cookies()
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
"method": "get",
|
|
26
|
+
"url": url,
|
|
27
|
+
"headers": headers,
|
|
28
|
+
"cookies": cookies,
|
|
29
|
+
"timeout": client.get_timeout(),
|
|
30
|
+
"follow_redirects": client.follow_redirects,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Client, response: httpx.Response
|
|
36
|
+
) -> Optional[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
37
|
+
if response.status_code == HTTPStatus.OK:
|
|
38
|
+
response_200 = ComfyWorkflowDetail.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_200
|
|
41
|
+
if response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY:
|
|
42
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_422
|
|
45
|
+
if client.raise_on_unexpected_status:
|
|
46
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
|
+
else:
|
|
48
|
+
return None
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _build_response(
|
|
52
|
+
*, client: Client, response: httpx.Response
|
|
53
|
+
) -> Response[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
54
|
+
return Response(
|
|
55
|
+
status_code=HTTPStatus(response.status_code),
|
|
56
|
+
content=response.content,
|
|
57
|
+
headers=response.headers,
|
|
58
|
+
parsed=_parse_response(client=client, response=response),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def sync_detailed(
|
|
63
|
+
user_id: str,
|
|
64
|
+
name: str,
|
|
65
|
+
*,
|
|
66
|
+
client: Client,
|
|
67
|
+
) -> Response[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
68
|
+
"""Get Workflow
|
|
69
|
+
|
|
70
|
+
Args:
|
|
71
|
+
user_id (str):
|
|
72
|
+
name (str):
|
|
73
|
+
|
|
74
|
+
Raises:
|
|
75
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
76
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
Response[Union[ComfyWorkflowDetail, HTTPValidationError]]
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
kwargs = _get_kwargs(
|
|
83
|
+
user_id=user_id,
|
|
84
|
+
name=name,
|
|
85
|
+
client=client,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
response = httpx.request(
|
|
89
|
+
verify=client.verify_ssl,
|
|
90
|
+
**kwargs,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
return _build_response(client=client, response=response)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def sync(
|
|
97
|
+
user_id: str,
|
|
98
|
+
name: str,
|
|
99
|
+
*,
|
|
100
|
+
client: Client,
|
|
101
|
+
) -> Optional[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
102
|
+
"""Get Workflow
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
user_id (str):
|
|
106
|
+
name (str):
|
|
107
|
+
|
|
108
|
+
Raises:
|
|
109
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
110
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
111
|
+
|
|
112
|
+
Returns:
|
|
113
|
+
Union[ComfyWorkflowDetail, HTTPValidationError]
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
return sync_detailed(
|
|
117
|
+
user_id=user_id,
|
|
118
|
+
name=name,
|
|
119
|
+
client=client,
|
|
120
|
+
).parsed
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def asyncio_detailed(
|
|
124
|
+
user_id: str,
|
|
125
|
+
name: str,
|
|
126
|
+
*,
|
|
127
|
+
client: Client,
|
|
128
|
+
) -> Response[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
129
|
+
"""Get Workflow
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
user_id (str):
|
|
133
|
+
name (str):
|
|
134
|
+
|
|
135
|
+
Raises:
|
|
136
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
137
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
138
|
+
|
|
139
|
+
Returns:
|
|
140
|
+
Response[Union[ComfyWorkflowDetail, HTTPValidationError]]
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
kwargs = _get_kwargs(
|
|
144
|
+
user_id=user_id,
|
|
145
|
+
name=name,
|
|
146
|
+
client=client,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
|
|
150
|
+
response = await _client.request(**kwargs)
|
|
151
|
+
|
|
152
|
+
return _build_response(client=client, response=response)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
async def asyncio(
|
|
156
|
+
user_id: str,
|
|
157
|
+
name: str,
|
|
158
|
+
*,
|
|
159
|
+
client: Client,
|
|
160
|
+
) -> Optional[Union[ComfyWorkflowDetail, HTTPValidationError]]:
|
|
161
|
+
"""Get Workflow
|
|
162
|
+
|
|
163
|
+
Args:
|
|
164
|
+
user_id (str):
|
|
165
|
+
name (str):
|
|
166
|
+
|
|
167
|
+
Raises:
|
|
168
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
169
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
170
|
+
|
|
171
|
+
Returns:
|
|
172
|
+
Union[ComfyWorkflowDetail, HTTPValidationError]
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
return (
|
|
176
|
+
await asyncio_detailed(
|
|
177
|
+
user_id=user_id,
|
|
178
|
+
name=name,
|
|
179
|
+
client=client,
|
|
180
|
+
)
|
|
181
|
+
).parsed
|