beamlit 0.0.20rc3__py3-none-any.whl → 0.0.20rc5__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- beamlit/api/agents/delete_agent_history.py +155 -0
- beamlit/api/agents/get_agent_deployment.py +1 -22
- beamlit/api/agents/get_agent_environment_logs.py +151 -0
- beamlit/api/agents/get_agent_history.py +155 -0
- beamlit/api/agents/list_agent_history.py +151 -0
- beamlit/api/agents/put_agent_history.py +181 -0
- beamlit/api/functions/get_function_environment_logs.py +151 -0
- beamlit/api/models/get_model_environment_logs.py +155 -0
- beamlit/authentication/__init__.py +4 -0
- beamlit/authentication/apikey.py +6 -0
- beamlit/authentication/authentication.py +31 -2
- beamlit/authentication/clientcredentials.py +20 -9
- beamlit/authentication/credentials.py +1 -0
- beamlit/authentication/device_mode.py +10 -1
- beamlit/common/generate.py +8 -3
- beamlit/common/logger.py +2 -0
- beamlit/common/settings.py +1 -5
- beamlit/models/__init__.py +28 -30
- beamlit/models/acl.py +2 -0
- beamlit/models/agent.py +2 -0
- beamlit/models/agent_chain.py +2 -0
- beamlit/models/agent_configuration.py +2 -0
- beamlit/models/agent_deployment.py +44 -99
- beamlit/models/agent_deployment_configuration.py +45 -0
- beamlit/models/agent_deployment_history.py +15 -46
- beamlit/models/agent_deployment_history_event.py +24 -78
- beamlit/models/agent_deployment_pod_template.py +45 -0
- beamlit/models/agent_history.py +165 -0
- beamlit/models/agent_history_event.py +131 -0
- beamlit/models/agent_metadata.py +144 -0
- beamlit/models/agent_release.py +2 -0
- beamlit/models/agent_spec.py +238 -0
- beamlit/models/agent_with_deployments.py +2 -0
- beamlit/models/api_key.py +2 -0
- beamlit/models/authentication_provider_model.py +2 -0
- beamlit/models/authentication_provider_organization.py +2 -0
- beamlit/models/configuration.py +2 -0
- beamlit/models/continent.py +2 -0
- beamlit/models/core_spec.py +179 -0
- beamlit/models/country.py +2 -0
- beamlit/models/create_api_key_for_service_account_body.py +2 -0
- beamlit/models/create_workspace_service_account_body.py +2 -0
- beamlit/models/create_workspace_service_account_response_200.py +2 -0
- beamlit/models/delete_workspace_service_account_response_200.py +2 -0
- beamlit/models/deployment_configuration.py +2 -0
- beamlit/models/deployment_configurations.py +2 -0
- beamlit/models/deployment_serverless_config.py +131 -0
- beamlit/models/environment.py +2 -0
- beamlit/models/environment_metrics.py +2 -0
- beamlit/models/environment_spec.py +61 -0
- beamlit/models/flavor.py +2 -0
- beamlit/models/function.py +2 -0
- beamlit/models/function_configuration.py +2 -0
- beamlit/models/function_deployment.py +44 -99
- beamlit/models/function_deployment_configuration.py +45 -0
- beamlit/models/function_deployment_pod_template.py +45 -0
- beamlit/models/function_kit.py +2 -0
- beamlit/models/function_metadata.py +144 -0
- beamlit/models/function_provider_ref.py +2 -0
- beamlit/models/function_release.py +2 -0
- beamlit/models/function_spec.py +240 -0
- beamlit/models/function_with_deployments.py +2 -0
- beamlit/models/get_workspace_service_accounts_response_200_item.py +2 -0
- beamlit/models/increase_and_rate_metric.py +2 -0
- beamlit/models/integration.py +2 -0
- beamlit/models/integration_config.py +2 -0
- beamlit/models/integration_connection.py +2 -0
- beamlit/models/integration_connection_config.py +2 -0
- beamlit/models/integration_connection_secret.py +2 -0
- beamlit/models/integration_connection_spec.py +99 -0
- beamlit/models/integration_model.py +2 -0
- beamlit/models/integration_secret.py +2 -0
- beamlit/models/invite_workspace_user_body.py +2 -0
- beamlit/models/labels_type_0.py +2 -0
- beamlit/models/location.py +2 -0
- beamlit/models/location_response.py +2 -0
- beamlit/models/metadata.py +135 -0
- beamlit/models/metadata_labels.py +43 -0
- beamlit/models/metric.py +2 -0
- beamlit/models/metrics.py +2 -0
- beamlit/models/model.py +2 -0
- beamlit/models/model_deployment.py +66 -85
- beamlit/models/model_deployment_log.py +2 -0
- beamlit/models/model_deployment_metrics.py +2 -0
- beamlit/models/model_deployment_metrics_inference_per_second_per_region.py +2 -0
- beamlit/models/model_deployment_metrics_query_per_second_per_region_per_code.py +2 -0
- beamlit/models/model_deployment_pod_template.py +45 -0
- beamlit/models/model_metadata.py +144 -0
- beamlit/models/model_metrics.py +2 -0
- beamlit/models/model_provider.py +2 -0
- beamlit/models/model_provider_ref.py +2 -0
- beamlit/models/model_release.py +2 -0
- beamlit/models/model_spec.py +188 -0
- beamlit/models/model_with_deployments.py +2 -0
- beamlit/models/owner_fields.py +68 -0
- beamlit/models/pending_invitation.py +2 -0
- beamlit/models/pending_invitation_accept.py +2 -0
- beamlit/models/pending_invitation_render.py +2 -0
- beamlit/models/pending_invitation_render_invited_by.py +2 -0
- beamlit/models/pending_invitation_render_workspace.py +2 -0
- beamlit/models/pending_invitation_workspace_details.py +2 -0
- beamlit/models/pod_template_spec.py +43 -0
- beamlit/models/policy.py +36 -8
- beamlit/models/policy_location.py +2 -0
- beamlit/models/policy_spec.py +119 -0
- beamlit/models/provider_config.py +2 -0
- beamlit/models/qps.py +2 -0
- beamlit/models/resource_deployment_log.py +2 -0
- beamlit/models/resource_deployment_metrics.py +70 -155
- beamlit/models/resource_deployment_metrics_inference_per_region.py +77 -0
- beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +77 -0
- beamlit/models/resource_deployment_metrics_query_per_region_per_code.py +75 -0
- beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +75 -0
- beamlit/models/resource_environment_metrics.py +172 -0
- beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +75 -0
- beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +73 -0
- beamlit/models/resource_log.py +68 -0
- beamlit/models/resource_metrics.py +2 -0
- beamlit/models/runtime.py +14 -29
- beamlit/models/runtime_readiness_probe.py +45 -0
- beamlit/models/runtime_resources.py +2 -0
- beamlit/models/runtime_type_0.py +111 -0
- beamlit/models/runtime_type_0_readiness_probe.py +43 -0
- beamlit/models/runtime_type_0_readiness_probe_type_0.py +43 -0
- beamlit/models/runtime_type_0_resources.py +59 -0
- beamlit/models/serverless_config.py +2 -0
- beamlit/models/spec_configuration.py +68 -0
- beamlit/models/standard_fields_dynamo_db.py +2 -0
- beamlit/models/store_agent.py +15 -29
- beamlit/models/store_agent_configuration.py +2 -0
- beamlit/models/store_agent_labels.py +45 -0
- beamlit/models/store_configuration.py +6 -15
- beamlit/models/store_configuration_option.py +7 -18
- beamlit/models/store_function.py +15 -29
- beamlit/models/store_function_configuration.py +2 -0
- beamlit/models/store_function_kit.py +2 -0
- beamlit/models/store_function_labels.py +45 -0
- beamlit/models/store_function_parameter.py +2 -0
- beamlit/models/time_fields.py +68 -0
- beamlit/models/update_workspace_service_account_body.py +2 -0
- beamlit/models/update_workspace_service_account_response_200.py +2 -0
- beamlit/models/update_workspace_user_role_body.py +2 -0
- beamlit/models/websocket_channel.py +86 -0
- beamlit/models/workspace.py +2 -0
- beamlit/models/workspace_labels.py +2 -0
- beamlit/models/workspace_user.py +2 -0
- {beamlit-0.0.20rc3.dist-info → beamlit-0.0.20rc5.dist-info}/METADATA +1 -1
- {beamlit-0.0.20rc3.dist-info → beamlit-0.0.20rc5.dist-info}/RECORD +149 -102
- {beamlit-0.0.20rc3.dist-info → beamlit-0.0.20rc5.dist-info}/WHEEL +0 -0
beamlit/models/store_function.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
2
2
|
|
3
3
|
from attrs import define as _attrs_define
|
4
4
|
from attrs import field as _attrs_field
|
@@ -8,7 +8,7 @@ from ..types import UNSET, Unset
|
|
8
8
|
if TYPE_CHECKING:
|
9
9
|
from ..models.store_configuration import StoreConfiguration
|
10
10
|
from ..models.store_function_kit import StoreFunctionKit
|
11
|
-
from ..models.
|
11
|
+
from ..models.store_function_labels import StoreFunctionLabels
|
12
12
|
from ..models.store_function_parameter import StoreFunctionParameter
|
13
13
|
|
14
14
|
|
@@ -29,7 +29,7 @@ class StoreFunction:
|
|
29
29
|
display_name (Union[Unset, str]): Store function display name
|
30
30
|
image (Union[Unset, str]): Store function image
|
31
31
|
kit (Union[Unset, List['StoreFunctionKit']]): Store function kit
|
32
|
-
labels (Union[
|
32
|
+
labels (Union[Unset, StoreFunctionLabels]): Store function labels
|
33
33
|
name (Union[Unset, str]): Store function name
|
34
34
|
parameters (Union[Unset, List['StoreFunctionParameter']]): Store function parameters
|
35
35
|
"""
|
@@ -43,14 +43,12 @@ class StoreFunction:
|
|
43
43
|
display_name: Union[Unset, str] = UNSET
|
44
44
|
image: Union[Unset, str] = UNSET
|
45
45
|
kit: Union[Unset, List["StoreFunctionKit"]] = UNSET
|
46
|
-
labels: Union["
|
46
|
+
labels: Union[Unset, "StoreFunctionLabels"] = UNSET
|
47
47
|
name: Union[Unset, str] = UNSET
|
48
48
|
parameters: Union[Unset, List["StoreFunctionParameter"]] = UNSET
|
49
49
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
50
50
|
|
51
51
|
def to_dict(self) -> dict[str, Any]:
|
52
|
-
from ..models.store_function_labels_type_0 import StoreFunctionLabelsType0
|
53
|
-
|
54
52
|
created_at = self.created_at
|
55
53
|
|
56
54
|
created_by = self.created_by
|
@@ -79,13 +77,9 @@ class StoreFunction:
|
|
79
77
|
kit_item = kit_item_data.to_dict()
|
80
78
|
kit.append(kit_item)
|
81
79
|
|
82
|
-
labels: Union[Dict[str, Any]
|
83
|
-
if isinstance(self.labels, Unset):
|
84
|
-
labels = UNSET
|
85
|
-
elif isinstance(self.labels, StoreFunctionLabelsType0):
|
80
|
+
labels: Union[Unset, Dict[str, Any]] = UNSET
|
81
|
+
if not isinstance(self.labels, Unset):
|
86
82
|
labels = self.labels.to_dict()
|
87
|
-
else:
|
88
|
-
labels = self.labels
|
89
83
|
|
90
84
|
name = self.name
|
91
85
|
|
@@ -130,9 +124,11 @@ class StoreFunction:
|
|
130
124
|
def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
|
131
125
|
from ..models.store_configuration import StoreConfiguration
|
132
126
|
from ..models.store_function_kit import StoreFunctionKit
|
133
|
-
from ..models.
|
127
|
+
from ..models.store_function_labels import StoreFunctionLabels
|
134
128
|
from ..models.store_function_parameter import StoreFunctionParameter
|
135
129
|
|
130
|
+
if not src_dict:
|
131
|
+
return None
|
136
132
|
d = src_dict.copy()
|
137
133
|
created_at = d.pop("created_at", UNSET)
|
138
134
|
|
@@ -162,22 +158,12 @@ class StoreFunction:
|
|
162
158
|
|
163
159
|
kit.append(kit_item)
|
164
160
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
if not isinstance(data, dict):
|
172
|
-
raise TypeError()
|
173
|
-
labels_type_0 = StoreFunctionLabelsType0.from_dict(data)
|
174
|
-
|
175
|
-
return labels_type_0
|
176
|
-
except: # noqa: E722
|
177
|
-
pass
|
178
|
-
return cast(Union["StoreFunctionLabelsType0", None, Unset], data)
|
179
|
-
|
180
|
-
labels = _parse_labels(d.pop("labels", UNSET))
|
161
|
+
_labels = d.pop("labels", UNSET)
|
162
|
+
labels: Union[Unset, StoreFunctionLabels]
|
163
|
+
if isinstance(_labels, Unset):
|
164
|
+
labels = UNSET
|
165
|
+
else:
|
166
|
+
labels = StoreFunctionLabels.from_dict(_labels)
|
181
167
|
|
182
168
|
name = d.pop("name", UNSET)
|
183
169
|
|
@@ -57,6 +57,8 @@ class StoreFunctionKit:
|
|
57
57
|
def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
|
58
58
|
from ..models.store_function_parameter import StoreFunctionParameter
|
59
59
|
|
60
|
+
if not src_dict:
|
61
|
+
return None
|
60
62
|
d = src_dict.copy()
|
61
63
|
description = d.pop("description", UNSET)
|
62
64
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
from typing import Any, 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="StoreFunctionLabels")
|
7
|
+
|
8
|
+
|
9
|
+
@_attrs_define
|
10
|
+
class StoreFunctionLabels:
|
11
|
+
"""Store function labels"""
|
12
|
+
|
13
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
14
|
+
|
15
|
+
def to_dict(self) -> dict[str, Any]:
|
16
|
+
field_dict: dict[str, Any] = {}
|
17
|
+
field_dict.update(self.additional_properties)
|
18
|
+
|
19
|
+
return field_dict
|
20
|
+
|
21
|
+
@classmethod
|
22
|
+
def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
|
23
|
+
if not src_dict:
|
24
|
+
return None
|
25
|
+
d = src_dict.copy()
|
26
|
+
store_function_labels = cls()
|
27
|
+
|
28
|
+
store_function_labels.additional_properties = d
|
29
|
+
return store_function_labels
|
30
|
+
|
31
|
+
@property
|
32
|
+
def additional_keys(self) -> list[str]:
|
33
|
+
return list(self.additional_properties.keys())
|
34
|
+
|
35
|
+
def __getitem__(self, key: str) -> Any:
|
36
|
+
return self.additional_properties[key]
|
37
|
+
|
38
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
39
|
+
self.additional_properties[key] = value
|
40
|
+
|
41
|
+
def __delitem__(self, key: str) -> None:
|
42
|
+
del self.additional_properties[key]
|
43
|
+
|
44
|
+
def __contains__(self, key: str) -> bool:
|
45
|
+
return key in self.additional_properties
|
@@ -0,0 +1,68 @@
|
|
1
|
+
from typing import Any, 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="TimeFields")
|
9
|
+
|
10
|
+
|
11
|
+
@_attrs_define
|
12
|
+
class TimeFields:
|
13
|
+
"""Time fields for Persistance
|
14
|
+
|
15
|
+
Attributes:
|
16
|
+
created_at (Union[Unset, str]): The date and time when the resource was created
|
17
|
+
updated_at (Union[Unset, str]): The date and time when the resource was updated
|
18
|
+
"""
|
19
|
+
|
20
|
+
created_at: Union[Unset, str] = UNSET
|
21
|
+
updated_at: Union[Unset, str] = UNSET
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
23
|
+
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
25
|
+
created_at = self.created_at
|
26
|
+
|
27
|
+
updated_at = self.updated_at
|
28
|
+
|
29
|
+
field_dict: dict[str, Any] = {}
|
30
|
+
field_dict.update(self.additional_properties)
|
31
|
+
field_dict.update({})
|
32
|
+
if created_at is not UNSET:
|
33
|
+
field_dict["createdAt"] = created_at
|
34
|
+
if updated_at is not UNSET:
|
35
|
+
field_dict["updatedAt"] = updated_at
|
36
|
+
|
37
|
+
return field_dict
|
38
|
+
|
39
|
+
@classmethod
|
40
|
+
def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
|
41
|
+
d = src_dict.copy()
|
42
|
+
created_at = d.pop("createdAt", UNSET)
|
43
|
+
|
44
|
+
updated_at = d.pop("updatedAt", UNSET)
|
45
|
+
|
46
|
+
time_fields = cls(
|
47
|
+
created_at=created_at,
|
48
|
+
updated_at=updated_at,
|
49
|
+
)
|
50
|
+
|
51
|
+
time_fields.additional_properties = d
|
52
|
+
return time_fields
|
53
|
+
|
54
|
+
@property
|
55
|
+
def additional_keys(self) -> list[str]:
|
56
|
+
return list(self.additional_properties.keys())
|
57
|
+
|
58
|
+
def __getitem__(self, key: str) -> Any:
|
59
|
+
return self.additional_properties[key]
|
60
|
+
|
61
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
62
|
+
self.additional_properties[key] = value
|
63
|
+
|
64
|
+
def __delitem__(self, key: str) -> None:
|
65
|
+
del self.additional_properties[key]
|
66
|
+
|
67
|
+
def __contains__(self, key: str) -> bool:
|
68
|
+
return key in self.additional_properties
|
@@ -0,0 +1,86 @@
|
|
1
|
+
from typing import Any, 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="WebsocketChannel")
|
9
|
+
|
10
|
+
|
11
|
+
@_attrs_define
|
12
|
+
class WebsocketChannel:
|
13
|
+
"""WebSocket connection details
|
14
|
+
|
15
|
+
Attributes:
|
16
|
+
created_at (Union[Unset, str]): The date and time when the resource was created
|
17
|
+
updated_at (Union[Unset, str]): The date and time when the resource was updated
|
18
|
+
connection_id (Union[Unset, str]): Unique connection ID
|
19
|
+
workspace (Union[Unset, str]): Workspace the connection belongs to
|
20
|
+
"""
|
21
|
+
|
22
|
+
created_at: Union[Unset, str] = UNSET
|
23
|
+
updated_at: Union[Unset, str] = UNSET
|
24
|
+
connection_id: Union[Unset, str] = UNSET
|
25
|
+
workspace: Union[Unset, str] = UNSET
|
26
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
27
|
+
|
28
|
+
def to_dict(self) -> dict[str, Any]:
|
29
|
+
created_at = self.created_at
|
30
|
+
|
31
|
+
updated_at = self.updated_at
|
32
|
+
|
33
|
+
connection_id = self.connection_id
|
34
|
+
|
35
|
+
workspace = self.workspace
|
36
|
+
|
37
|
+
field_dict: dict[str, Any] = {}
|
38
|
+
field_dict.update(self.additional_properties)
|
39
|
+
field_dict.update({})
|
40
|
+
if created_at is not UNSET:
|
41
|
+
field_dict["createdAt"] = created_at
|
42
|
+
if updated_at is not UNSET:
|
43
|
+
field_dict["updatedAt"] = updated_at
|
44
|
+
if connection_id is not UNSET:
|
45
|
+
field_dict["connection_id"] = connection_id
|
46
|
+
if workspace is not UNSET:
|
47
|
+
field_dict["workspace"] = workspace
|
48
|
+
|
49
|
+
return field_dict
|
50
|
+
|
51
|
+
@classmethod
|
52
|
+
def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
|
53
|
+
d = src_dict.copy()
|
54
|
+
created_at = d.pop("createdAt", UNSET)
|
55
|
+
|
56
|
+
updated_at = d.pop("updatedAt", UNSET)
|
57
|
+
|
58
|
+
connection_id = d.pop("connection_id", UNSET)
|
59
|
+
|
60
|
+
workspace = d.pop("workspace", UNSET)
|
61
|
+
|
62
|
+
websocket_channel = cls(
|
63
|
+
created_at=created_at,
|
64
|
+
updated_at=updated_at,
|
65
|
+
connection_id=connection_id,
|
66
|
+
workspace=workspace,
|
67
|
+
)
|
68
|
+
|
69
|
+
websocket_channel.additional_properties = d
|
70
|
+
return websocket_channel
|
71
|
+
|
72
|
+
@property
|
73
|
+
def additional_keys(self) -> list[str]:
|
74
|
+
return list(self.additional_properties.keys())
|
75
|
+
|
76
|
+
def __getitem__(self, key: str) -> Any:
|
77
|
+
return self.additional_properties[key]
|
78
|
+
|
79
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
80
|
+
self.additional_properties[key] = value
|
81
|
+
|
82
|
+
def __delitem__(self, key: str) -> None:
|
83
|
+
del self.additional_properties[key]
|
84
|
+
|
85
|
+
def __contains__(self, key: str) -> bool:
|
86
|
+
return key in self.additional_properties
|
beamlit/models/workspace.py
CHANGED
beamlit/models/workspace_user.py
CHANGED