asteroid-odyssey 0.1.21__py3-none-any.whl → 1.0.0__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.
Files changed (96) hide show
  1. asteroid_odyssey/__init__.py +20 -34
  2. asteroid_odyssey/client.py +387 -337
  3. asteroid_odyssey/openapi_client/__init__.py +73 -0
  4. asteroid_odyssey/openapi_client/api/__init__.py +7 -0
  5. asteroid_odyssey/openapi_client/api/api_api.py +516 -0
  6. asteroid_odyssey/openapi_client/api/execution_api.py +335 -0
  7. asteroid_odyssey/openapi_client/api/sdk_api.py +1434 -0
  8. asteroid_odyssey/openapi_client/api_client.py +801 -0
  9. asteroid_odyssey/openapi_client/api_response.py +21 -0
  10. asteroid_odyssey/openapi_client/configuration.py +606 -0
  11. asteroid_odyssey/openapi_client/exceptions.py +216 -0
  12. asteroid_odyssey/openapi_client/models/__init__.py +27 -0
  13. asteroid_odyssey/openapi_client/models/browser_session_recording_response.py +87 -0
  14. asteroid_odyssey/openapi_client/models/error_response.py +87 -0
  15. asteroid_odyssey/openapi_client/models/execution_response.py +87 -0
  16. asteroid_odyssey/openapi_client/models/execution_result.py +101 -0
  17. asteroid_odyssey/openapi_client/models/execution_result_response.py +100 -0
  18. asteroid_odyssey/openapi_client/models/execution_status_response.py +95 -0
  19. asteroid_odyssey/openapi_client/models/health_check200_response.py +87 -0
  20. asteroid_odyssey/openapi_client/models/health_check500_response.py +87 -0
  21. asteroid_odyssey/openapi_client/models/status.py +43 -0
  22. asteroid_odyssey/openapi_client/models/structured_agent_execution_request.py +89 -0
  23. asteroid_odyssey/openapi_client/models/upload_execution_files200_response.py +89 -0
  24. asteroid_odyssey/openapi_client/rest.py +258 -0
  25. asteroid_odyssey-1.0.0.dist-info/METADATA +208 -0
  26. asteroid_odyssey-1.0.0.dist-info/RECORD +29 -0
  27. {asteroid_odyssey-0.1.21.dist-info → asteroid_odyssey-1.0.0.dist-info}/WHEEL +1 -1
  28. asteroid_odyssey/api/generated/asteroid_agents_api_client/__init__.py +0 -8
  29. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/__init__.py +0 -1
  30. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/agent/get_agents.py +0 -127
  31. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/__init__.py +0 -0
  32. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/get_open_api.py +0 -79
  33. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/health_check.py +0 -131
  34. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/__init__.py +0 -0
  35. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/get_credentials_public_key.py +0 -127
  36. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/__init__.py +0 -0
  37. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/delete_execution.py +0 -156
  38. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_browser_session.py +0 -154
  39. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution.py +0 -154
  40. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_files.py +0 -159
  41. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_progress.py +0 -159
  42. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_executions_for_workflow.py +0 -156
  43. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/update_execution_status.py +0 -115
  44. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/__init__.py +0 -0
  45. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/set_slack_channel.py +0 -107
  46. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/__init__.py +0 -0
  47. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/queue_optimisation_job.py +0 -103
  48. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/__init__.py +0 -0
  49. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/add_workflow_credential.py +0 -111
  50. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/create_workflow.py +0 -174
  51. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow.py +0 -156
  52. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow_credentials.py +0 -96
  53. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/execute_workflow.py +0 -179
  54. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_agent_workflow_executions.py +0 -155
  55. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow.py +0 -154
  56. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_credentials.py +0 -154
  57. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_versions.py +0 -159
  58. asteroid_odyssey/api/generated/asteroid_agents_api_client/client.py +0 -268
  59. asteroid_odyssey/api/generated/asteroid_agents_api_client/errors.py +0 -16
  60. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/__init__.py +0 -61
  61. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/agent.py +0 -90
  62. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/browser_session.py +0 -136
  63. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request.py +0 -126
  64. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_fields.py +0 -48
  65. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_provider.py +0 -9
  66. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credential.py +0 -66
  67. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_request.py +0 -72
  68. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_response.py +0 -80
  69. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_200.py +0 -58
  70. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_404.py +0 -58
  71. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_200.py +0 -58
  72. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_404.py +0 -58
  73. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution.py +0 -147
  74. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_dynamic_data.py +0 -48
  75. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_result.py +0 -43
  76. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_status.py +0 -89
  77. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/file.py +0 -127
  78. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_200.py +0 -58
  79. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_500.py +0 -58
  80. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/optimisation_request.py +0 -59
  81. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/progress_update.py +0 -77
  82. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/result_schema.py +0 -51
  83. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/slack_channel_request.py +0 -58
  84. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/status.py +0 -13
  85. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow.py +0 -152
  86. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution.py +0 -82
  87. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution_request.py +0 -48
  88. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_fields.py +0 -48
  89. asteroid_odyssey/api/generated/asteroid_agents_api_client/py.typed +0 -1
  90. asteroid_odyssey/api/generated/asteroid_agents_api_client/types.py +0 -45
  91. asteroid_odyssey/exceptions.py +0 -15
  92. asteroid_odyssey-0.1.21.dist-info/METADATA +0 -31
  93. asteroid_odyssey-0.1.21.dist-info/RECORD +0 -72
  94. asteroid_odyssey-0.1.21.dist-info/entry_points.txt +0 -2
  95. /asteroid_odyssey/{api/generated/asteroid_agents_api_client/api/agent/__init__.py → openapi_client/py.typed} +0 -0
  96. {asteroid_odyssey-0.1.21.dist-info → asteroid_odyssey-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,126 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
2
- from uuid import UUID
3
-
4
- from attrs import define as _attrs_define
5
- from attrs import field as _attrs_field
6
-
7
- from ..models.create_workflow_request_provider import CreateWorkflowRequestProvider
8
- from ..types import UNSET, Unset
9
-
10
- if TYPE_CHECKING:
11
- from ..models.create_workflow_request_fields import CreateWorkflowRequestFields
12
- from ..models.result_schema import ResultSchema
13
-
14
-
15
- T = TypeVar("T", bound="CreateWorkflowRequest")
16
-
17
-
18
- @_attrs_define
19
- class CreateWorkflowRequest:
20
- """
21
- Attributes:
22
- name (str): The name of the workflow. Example: My workflow.
23
- result_schema (ResultSchema): A JSON Schema that defines the expected structure and validation rules for
24
- workflow results. Example: {'$schema': 'https://json-schema.org/draft/2020-12/schema#', 'type': 'object',
25
- 'required': ['name', 'age', 'skills'], 'properties': {'name': {'type': 'string', 'minLength': 2}, 'age':
26
- {'type': 'integer', 'minimum': 18, 'maximum': 120}, 'email': {'type': 'string', 'format': 'email'}, 'skills':
27
- {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}}}.
28
- fields (CreateWorkflowRequestFields): JSON object containing static workflow configuration (e.g. a
29
- prompt_template). Example: {'model': 'gpt-4o', 'version': '2024-02-01'}.
30
- prompts (List[str]): The prompts for the workflow. They can have variables in them. They will be merged with the
31
- dynamic data passed when the workflow is executed. Example: ['Your name is {{.name}}, you speak {{.language}}',
32
- 'Your task is {{.task}}'].
33
- provider (CreateWorkflowRequestProvider): The Language Model Provider for the Workflow Example: openai.
34
- user_id (Union[Unset, UUID]): The ID of the user that this workflow belongs to. Example:
35
- 123e4567-e89b-12d3-a456-426614174000.
36
- """
37
-
38
- name: str
39
- result_schema: "ResultSchema"
40
- fields: "CreateWorkflowRequestFields"
41
- prompts: List[str]
42
- provider: CreateWorkflowRequestProvider
43
- user_id: Union[Unset, UUID] = UNSET
44
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
45
-
46
- def to_dict(self) -> Dict[str, Any]:
47
- name = self.name
48
-
49
- result_schema = self.result_schema.to_dict()
50
-
51
- fields = self.fields.to_dict()
52
-
53
- prompts = self.prompts
54
-
55
- provider = self.provider.value
56
-
57
- user_id: Union[Unset, str] = UNSET
58
- if not isinstance(self.user_id, Unset):
59
- user_id = str(self.user_id)
60
-
61
- field_dict: Dict[str, Any] = {}
62
- field_dict.update(self.additional_properties)
63
- field_dict.update(
64
- {
65
- "name": name,
66
- "result_schema": result_schema,
67
- "fields": fields,
68
- "prompts": prompts,
69
- "provider": provider,
70
- }
71
- )
72
- if user_id is not UNSET:
73
- field_dict["user_id"] = user_id
74
-
75
- return field_dict
76
-
77
- @classmethod
78
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
79
- from ..models.create_workflow_request_fields import CreateWorkflowRequestFields
80
- from ..models.result_schema import ResultSchema
81
-
82
- d = src_dict.copy()
83
- name = d.pop("name")
84
-
85
- result_schema = ResultSchema.from_dict(d.pop("result_schema"))
86
-
87
- fields = CreateWorkflowRequestFields.from_dict(d.pop("fields"))
88
-
89
- prompts = cast(List[str], d.pop("prompts"))
90
-
91
- provider = CreateWorkflowRequestProvider(d.pop("provider"))
92
-
93
- _user_id = d.pop("user_id", UNSET)
94
- user_id: Union[Unset, UUID]
95
- if isinstance(_user_id, Unset):
96
- user_id = UNSET
97
- else:
98
- user_id = UUID(_user_id)
99
-
100
- create_workflow_request = cls(
101
- name=name,
102
- result_schema=result_schema,
103
- fields=fields,
104
- prompts=prompts,
105
- provider=provider,
106
- user_id=user_id,
107
- )
108
-
109
- create_workflow_request.additional_properties = d
110
- return create_workflow_request
111
-
112
- @property
113
- def additional_keys(self) -> List[str]:
114
- return list(self.additional_properties.keys())
115
-
116
- def __getitem__(self, key: str) -> Any:
117
- return self.additional_properties[key]
118
-
119
- def __setitem__(self, key: str, value: Any) -> None:
120
- self.additional_properties[key] = value
121
-
122
- def __delitem__(self, key: str) -> None:
123
- del self.additional_properties[key]
124
-
125
- def __contains__(self, key: str) -> bool:
126
- return key in self.additional_properties
@@ -1,48 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="CreateWorkflowRequestFields")
7
-
8
-
9
- @_attrs_define
10
- class CreateWorkflowRequestFields:
11
- """JSON object containing static workflow configuration (e.g. a prompt_template).
12
-
13
- Example:
14
- {'model': 'gpt-4o', 'version': '2024-02-01'}
15
-
16
- """
17
-
18
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
19
-
20
- def to_dict(self) -> Dict[str, Any]:
21
- field_dict: Dict[str, Any] = {}
22
- field_dict.update(self.additional_properties)
23
-
24
- return field_dict
25
-
26
- @classmethod
27
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
28
- d = src_dict.copy()
29
- create_workflow_request_fields = cls()
30
-
31
- create_workflow_request_fields.additional_properties = d
32
- return create_workflow_request_fields
33
-
34
- @property
35
- def additional_keys(self) -> List[str]:
36
- return list(self.additional_properties.keys())
37
-
38
- def __getitem__(self, key: str) -> Any:
39
- return self.additional_properties[key]
40
-
41
- def __setitem__(self, key: str, value: Any) -> None:
42
- self.additional_properties[key] = value
43
-
44
- def __delitem__(self, key: str) -> None:
45
- del self.additional_properties[key]
46
-
47
- def __contains__(self, key: str) -> bool:
48
- return key in self.additional_properties
@@ -1,9 +0,0 @@
1
- from enum import Enum
2
-
3
-
4
- class CreateWorkflowRequestProvider(str, Enum):
5
- ANTHROPIC = "anthropic"
6
- OPENAI = "openai"
7
-
8
- def __str__(self) -> str:
9
- return str(self.value)
@@ -1,66 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="Credential")
7
-
8
-
9
- @_attrs_define
10
- class Credential:
11
- """
12
- Attributes:
13
- name (str): The credential name
14
- data (str): The encrypted credential
15
- """
16
-
17
- name: str
18
- data: str
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- name = self.name
23
-
24
- data = self.data
25
-
26
- field_dict: Dict[str, Any] = {}
27
- field_dict.update(self.additional_properties)
28
- field_dict.update(
29
- {
30
- "name": name,
31
- "data": data,
32
- }
33
- )
34
-
35
- return field_dict
36
-
37
- @classmethod
38
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
- d = src_dict.copy()
40
- name = d.pop("name")
41
-
42
- data = d.pop("data")
43
-
44
- credential = cls(
45
- name=name,
46
- data=data,
47
- )
48
-
49
- credential.additional_properties = d
50
- return credential
51
-
52
- @property
53
- def additional_keys(self) -> List[str]:
54
- return list(self.additional_properties.keys())
55
-
56
- def __getitem__(self, key: str) -> Any:
57
- return self.additional_properties[key]
58
-
59
- def __setitem__(self, key: str, value: Any) -> None:
60
- self.additional_properties[key] = value
61
-
62
- def __delitem__(self, key: str) -> None:
63
- del self.additional_properties[key]
64
-
65
- def __contains__(self, key: str) -> bool:
66
- return key in self.additional_properties
@@ -1,72 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- if TYPE_CHECKING:
7
- from ..models.credential import Credential
8
-
9
-
10
- T = TypeVar("T", bound="CredentialsRequest")
11
-
12
-
13
- @_attrs_define
14
- class CredentialsRequest:
15
- """
16
- Attributes:
17
- credentials (List['Credential']):
18
- """
19
-
20
- credentials: List["Credential"]
21
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
-
23
- def to_dict(self) -> Dict[str, Any]:
24
- credentials = []
25
- for credentials_item_data in self.credentials:
26
- credentials_item = credentials_item_data.to_dict()
27
- credentials.append(credentials_item)
28
-
29
- field_dict: Dict[str, Any] = {}
30
- field_dict.update(self.additional_properties)
31
- field_dict.update(
32
- {
33
- "credentials": credentials,
34
- }
35
- )
36
-
37
- return field_dict
38
-
39
- @classmethod
40
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
41
- from ..models.credential import Credential
42
-
43
- d = src_dict.copy()
44
- credentials = []
45
- _credentials = d.pop("credentials")
46
- for credentials_item_data in _credentials:
47
- credentials_item = Credential.from_dict(credentials_item_data)
48
-
49
- credentials.append(credentials_item)
50
-
51
- credentials_request = cls(
52
- credentials=credentials,
53
- )
54
-
55
- credentials_request.additional_properties = d
56
- return credentials_request
57
-
58
- @property
59
- def additional_keys(self) -> List[str]:
60
- return list(self.additional_properties.keys())
61
-
62
- def __getitem__(self, key: str) -> Any:
63
- return self.additional_properties[key]
64
-
65
- def __setitem__(self, key: str, value: Any) -> None:
66
- self.additional_properties[key] = value
67
-
68
- def __delitem__(self, key: str) -> None:
69
- del self.additional_properties[key]
70
-
71
- def __contains__(self, key: str) -> bool:
72
- return key in self.additional_properties
@@ -1,80 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- if TYPE_CHECKING:
7
- from ..models.credential import Credential
8
-
9
-
10
- T = TypeVar("T", bound="CredentialsResponse")
11
-
12
-
13
- @_attrs_define
14
- class CredentialsResponse:
15
- """
16
- Attributes:
17
- workflow_name (str): The name of the workflow
18
- credentials (List['Credential']):
19
- """
20
-
21
- workflow_name: str
22
- credentials: List["Credential"]
23
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
24
-
25
- def to_dict(self) -> Dict[str, Any]:
26
- workflow_name = self.workflow_name
27
-
28
- credentials = []
29
- for credentials_item_data in self.credentials:
30
- credentials_item = credentials_item_data.to_dict()
31
- credentials.append(credentials_item)
32
-
33
- field_dict: Dict[str, Any] = {}
34
- field_dict.update(self.additional_properties)
35
- field_dict.update(
36
- {
37
- "workflow_name": workflow_name,
38
- "credentials": credentials,
39
- }
40
- )
41
-
42
- return field_dict
43
-
44
- @classmethod
45
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
46
- from ..models.credential import Credential
47
-
48
- d = src_dict.copy()
49
- workflow_name = d.pop("workflow_name")
50
-
51
- credentials = []
52
- _credentials = d.pop("credentials")
53
- for credentials_item_data in _credentials:
54
- credentials_item = Credential.from_dict(credentials_item_data)
55
-
56
- credentials.append(credentials_item)
57
-
58
- credentials_response = cls(
59
- workflow_name=workflow_name,
60
- credentials=credentials,
61
- )
62
-
63
- credentials_response.additional_properties = d
64
- return credentials_response
65
-
66
- @property
67
- def additional_keys(self) -> List[str]:
68
- return list(self.additional_properties.keys())
69
-
70
- def __getitem__(self, key: str) -> Any:
71
- return self.additional_properties[key]
72
-
73
- def __setitem__(self, key: str, value: Any) -> None:
74
- self.additional_properties[key] = value
75
-
76
- def __delitem__(self, key: str) -> None:
77
- del self.additional_properties[key]
78
-
79
- def __contains__(self, key: str) -> bool:
80
- return key in self.additional_properties
@@ -1,58 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="DeleteExecutionResponse200")
9
-
10
-
11
- @_attrs_define
12
- class DeleteExecutionResponse200:
13
- """
14
- Attributes:
15
- result (Union[Unset, str]): Example: execution deleted.
16
- """
17
-
18
- result: Union[Unset, str] = UNSET
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- result = self.result
23
-
24
- field_dict: Dict[str, Any] = {}
25
- field_dict.update(self.additional_properties)
26
- field_dict.update({})
27
- if result is not UNSET:
28
- field_dict["result"] = result
29
-
30
- return field_dict
31
-
32
- @classmethod
33
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
34
- d = src_dict.copy()
35
- result = d.pop("result", UNSET)
36
-
37
- delete_execution_response_200 = cls(
38
- result=result,
39
- )
40
-
41
- delete_execution_response_200.additional_properties = d
42
- return delete_execution_response_200
43
-
44
- @property
45
- def additional_keys(self) -> List[str]:
46
- return list(self.additional_properties.keys())
47
-
48
- def __getitem__(self, key: str) -> Any:
49
- return self.additional_properties[key]
50
-
51
- def __setitem__(self, key: str, value: Any) -> None:
52
- self.additional_properties[key] = value
53
-
54
- def __delitem__(self, key: str) -> None:
55
- del self.additional_properties[key]
56
-
57
- def __contains__(self, key: str) -> bool:
58
- return key in self.additional_properties
@@ -1,58 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="DeleteExecutionResponse404")
9
-
10
-
11
- @_attrs_define
12
- class DeleteExecutionResponse404:
13
- """
14
- Attributes:
15
- error (Union[Unset, str]): Example: Execution not found.
16
- """
17
-
18
- error: Union[Unset, str] = UNSET
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- error = self.error
23
-
24
- field_dict: Dict[str, Any] = {}
25
- field_dict.update(self.additional_properties)
26
- field_dict.update({})
27
- if error is not UNSET:
28
- field_dict["error"] = error
29
-
30
- return field_dict
31
-
32
- @classmethod
33
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
34
- d = src_dict.copy()
35
- error = d.pop("error", UNSET)
36
-
37
- delete_execution_response_404 = cls(
38
- error=error,
39
- )
40
-
41
- delete_execution_response_404.additional_properties = d
42
- return delete_execution_response_404
43
-
44
- @property
45
- def additional_keys(self) -> List[str]:
46
- return list(self.additional_properties.keys())
47
-
48
- def __getitem__(self, key: str) -> Any:
49
- return self.additional_properties[key]
50
-
51
- def __setitem__(self, key: str, value: Any) -> None:
52
- self.additional_properties[key] = value
53
-
54
- def __delitem__(self, key: str) -> None:
55
- del self.additional_properties[key]
56
-
57
- def __contains__(self, key: str) -> bool:
58
- return key in self.additional_properties
@@ -1,58 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="DeleteWorkflowResponse200")
9
-
10
-
11
- @_attrs_define
12
- class DeleteWorkflowResponse200:
13
- """
14
- Attributes:
15
- result (Union[Unset, str]): Example: workflow deleted.
16
- """
17
-
18
- result: Union[Unset, str] = UNSET
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- result = self.result
23
-
24
- field_dict: Dict[str, Any] = {}
25
- field_dict.update(self.additional_properties)
26
- field_dict.update({})
27
- if result is not UNSET:
28
- field_dict["result"] = result
29
-
30
- return field_dict
31
-
32
- @classmethod
33
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
34
- d = src_dict.copy()
35
- result = d.pop("result", UNSET)
36
-
37
- delete_workflow_response_200 = cls(
38
- result=result,
39
- )
40
-
41
- delete_workflow_response_200.additional_properties = d
42
- return delete_workflow_response_200
43
-
44
- @property
45
- def additional_keys(self) -> List[str]:
46
- return list(self.additional_properties.keys())
47
-
48
- def __getitem__(self, key: str) -> Any:
49
- return self.additional_properties[key]
50
-
51
- def __setitem__(self, key: str, value: Any) -> None:
52
- self.additional_properties[key] = value
53
-
54
- def __delitem__(self, key: str) -> None:
55
- del self.additional_properties[key]
56
-
57
- def __contains__(self, key: str) -> bool:
58
- return key in self.additional_properties
@@ -1,58 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="DeleteWorkflowResponse404")
9
-
10
-
11
- @_attrs_define
12
- class DeleteWorkflowResponse404:
13
- """
14
- Attributes:
15
- error (Union[Unset, str]): Example: Workflow not found.
16
- """
17
-
18
- error: Union[Unset, str] = UNSET
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- error = self.error
23
-
24
- field_dict: Dict[str, Any] = {}
25
- field_dict.update(self.additional_properties)
26
- field_dict.update({})
27
- if error is not UNSET:
28
- field_dict["error"] = error
29
-
30
- return field_dict
31
-
32
- @classmethod
33
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
34
- d = src_dict.copy()
35
- error = d.pop("error", UNSET)
36
-
37
- delete_workflow_response_404 = cls(
38
- error=error,
39
- )
40
-
41
- delete_workflow_response_404.additional_properties = d
42
- return delete_workflow_response_404
43
-
44
- @property
45
- def additional_keys(self) -> List[str]:
46
- return list(self.additional_properties.keys())
47
-
48
- def __getitem__(self, key: str) -> Any:
49
- return self.additional_properties[key]
50
-
51
- def __setitem__(self, key: str, value: Any) -> None:
52
- self.additional_properties[key] = value
53
-
54
- def __delitem__(self, key: str) -> None:
55
- del self.additional_properties[key]
56
-
57
- def __contains__(self, key: str) -> bool:
58
- return key in self.additional_properties