fal 0.12.3__py3-none-any.whl → 0.12.5__py3-none-any.whl
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/auth/__init__.py +13 -1
- fal/auth/auth0.py +3 -3
- fal/cli.py +9 -1
- fal/flags.py +1 -0
- fal/workflows.py +481 -0
- {fal-0.12.3.dist-info → fal-0.12.5.dist-info}/METADATA +2 -2
- {fal-0.12.3.dist-info → fal-0.12.5.dist-info}/RECORD +35 -13
- openapi_fal_rest/__init__.py +1 -0
- openapi_fal_rest/api/workflows/__init__.py +0 -0
- openapi_fal_rest/api/workflows/create_or_update_workflow_workflows_post.py +172 -0
- openapi_fal_rest/api/workflows/delete_workflow_workflows_user_id_workflow_name_delete.py +175 -0
- openapi_fal_rest/api/workflows/execute_workflow_workflows_user_id_workflow_name_post.py +268 -0
- openapi_fal_rest/api/workflows/get_workflow_workflows_user_id_workflow_name_get.py +181 -0
- openapi_fal_rest/api/workflows/get_workflows_workflows_get.py +189 -0
- openapi_fal_rest/models/__init__.py +34 -0
- openapi_fal_rest/models/app_metadata_response_app_metadata.py +1 -0
- openapi_fal_rest/models/customer_details.py +15 -14
- openapi_fal_rest/models/execute_workflow_workflows_user_id_workflow_name_post_json_body_type_0.py +44 -0
- openapi_fal_rest/models/execute_workflow_workflows_user_id_workflow_name_post_response_200_type_0.py +44 -0
- openapi_fal_rest/models/page_workflow_item.py +107 -0
- openapi_fal_rest/models/typed_workflow.py +85 -0
- openapi_fal_rest/models/workflow_contents.py +98 -0
- openapi_fal_rest/models/workflow_contents_nodes.py +59 -0
- openapi_fal_rest/models/workflow_contents_output.py +44 -0
- openapi_fal_rest/models/workflow_detail.py +149 -0
- openapi_fal_rest/models/workflow_detail_contents_type_0.py +44 -0
- openapi_fal_rest/models/workflow_item.py +80 -0
- openapi_fal_rest/models/workflow_node.py +74 -0
- openapi_fal_rest/models/workflow_node_type.py +9 -0
- openapi_fal_rest/models/workflow_schema.py +73 -0
- openapi_fal_rest/models/workflow_schema_input.py +44 -0
- openapi_fal_rest/models/workflow_schema_output.py +44 -0
- openapi_fal_rest/types.py +1 -0
- {fal-0.12.3.dist-info → fal-0.12.5.dist-info}/WHEEL +0 -0
- {fal-0.12.3.dist-info → fal-0.12.5.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
from ..models.workflow_node_type import WorkflowNodeType
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="WorkflowNode")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@attr.s(auto_attribs=True)
|
|
11
|
+
class WorkflowNode:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
type (WorkflowNodeType):
|
|
15
|
+
id (str):
|
|
16
|
+
depends (List[str]):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
type: WorkflowNodeType
|
|
20
|
+
id: str
|
|
21
|
+
depends: List[str]
|
|
22
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
25
|
+
type = self.type.value
|
|
26
|
+
|
|
27
|
+
id = self.id
|
|
28
|
+
depends = self.depends
|
|
29
|
+
|
|
30
|
+
field_dict: Dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"type": type,
|
|
35
|
+
"id": id,
|
|
36
|
+
"depends": depends,
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
return field_dict
|
|
41
|
+
|
|
42
|
+
@classmethod
|
|
43
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
44
|
+
d = src_dict.copy()
|
|
45
|
+
type = WorkflowNodeType(d.pop("type"))
|
|
46
|
+
|
|
47
|
+
id = d.pop("id")
|
|
48
|
+
|
|
49
|
+
depends = cast(List[str], d.pop("depends"))
|
|
50
|
+
|
|
51
|
+
workflow_node = cls(
|
|
52
|
+
type=type,
|
|
53
|
+
id=id,
|
|
54
|
+
depends=depends,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
workflow_node.additional_properties = d
|
|
58
|
+
return workflow_node
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def additional_keys(self) -> List[str]:
|
|
62
|
+
return list(self.additional_properties.keys())
|
|
63
|
+
|
|
64
|
+
def __getitem__(self, key: str) -> Any:
|
|
65
|
+
return self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
+
self.additional_properties[key] = value
|
|
69
|
+
|
|
70
|
+
def __delitem__(self, key: str) -> None:
|
|
71
|
+
del self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __contains__(self, key: str) -> bool:
|
|
74
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from ..models.workflow_schema_input import WorkflowSchemaInput
|
|
7
|
+
from ..models.workflow_schema_output import WorkflowSchemaOutput
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="WorkflowSchema")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@attr.s(auto_attribs=True)
|
|
14
|
+
class WorkflowSchema:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
input_ (WorkflowSchemaInput):
|
|
18
|
+
output (WorkflowSchemaOutput):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
input_: "WorkflowSchemaInput"
|
|
22
|
+
output: "WorkflowSchemaOutput"
|
|
23
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
input_ = self.input_.to_dict()
|
|
27
|
+
|
|
28
|
+
output = self.output.to_dict()
|
|
29
|
+
|
|
30
|
+
field_dict: Dict[str, Any] = {}
|
|
31
|
+
field_dict.update(self.additional_properties)
|
|
32
|
+
field_dict.update(
|
|
33
|
+
{
|
|
34
|
+
"input": input_,
|
|
35
|
+
"output": output,
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
return field_dict
|
|
40
|
+
|
|
41
|
+
@classmethod
|
|
42
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
43
|
+
from ..models.workflow_schema_input import WorkflowSchemaInput
|
|
44
|
+
from ..models.workflow_schema_output import WorkflowSchemaOutput
|
|
45
|
+
|
|
46
|
+
d = src_dict.copy()
|
|
47
|
+
input_ = WorkflowSchemaInput.from_dict(d.pop("input"))
|
|
48
|
+
|
|
49
|
+
output = WorkflowSchemaOutput.from_dict(d.pop("output"))
|
|
50
|
+
|
|
51
|
+
workflow_schema = cls(
|
|
52
|
+
input_=input_,
|
|
53
|
+
output=output,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
workflow_schema.additional_properties = d
|
|
57
|
+
return workflow_schema
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def additional_keys(self) -> List[str]:
|
|
61
|
+
return list(self.additional_properties.keys())
|
|
62
|
+
|
|
63
|
+
def __getitem__(self, key: str) -> Any:
|
|
64
|
+
return self.additional_properties[key]
|
|
65
|
+
|
|
66
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
67
|
+
self.additional_properties[key] = value
|
|
68
|
+
|
|
69
|
+
def __delitem__(self, key: str) -> None:
|
|
70
|
+
del self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __contains__(self, key: str) -> bool:
|
|
73
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
T = TypeVar("T", bound="WorkflowSchemaInput")
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@attr.s(auto_attribs=True)
|
|
9
|
+
class WorkflowSchemaInput:
|
|
10
|
+
""" """
|
|
11
|
+
|
|
12
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
13
|
+
|
|
14
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
15
|
+
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
workflow_schema_input = cls()
|
|
26
|
+
|
|
27
|
+
workflow_schema_input.additional_properties = d
|
|
28
|
+
return workflow_schema_input
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
T = TypeVar("T", bound="WorkflowSchemaOutput")
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@attr.s(auto_attribs=True)
|
|
9
|
+
class WorkflowSchemaOutput:
|
|
10
|
+
""" """
|
|
11
|
+
|
|
12
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
13
|
+
|
|
14
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
15
|
+
|
|
16
|
+
field_dict: Dict[str, Any] = {}
|
|
17
|
+
field_dict.update(self.additional_properties)
|
|
18
|
+
field_dict.update({})
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
24
|
+
d = src_dict.copy()
|
|
25
|
+
workflow_schema_output = cls()
|
|
26
|
+
|
|
27
|
+
workflow_schema_output.additional_properties = d
|
|
28
|
+
return workflow_schema_output
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> List[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
openapi_fal_rest/types.py
CHANGED
|
File without changes
|
|
File without changes
|