beamlit 0.0.54rc101__py3-none-any.whl → 0.0.55__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.
- beamlit/agents/chain.py +2 -1
- beamlit/agents/chat.py +2 -1
- beamlit/agents/decorator.py +3 -2
- beamlit/api/integrations/get_integration_connection_model.py +2 -2
- beamlit/api/integrations/{list_integration_models.py → get_integration_connection_model_endpoint_configurations.py} +12 -12
- beamlit/api/{default/create_account.py → knowledgebases/create_knowledgebase.py} +30 -30
- beamlit/api/{accounts/delete_account.py → knowledgebases/delete_knowledgebase.py} +57 -43
- beamlit/api/{accounts/get_account.py → knowledgebases/get_knowledgebase.py} +56 -35
- beamlit/api/{accounts/list_accounts.py → knowledgebases/list_knowledgebases.py} +57 -25
- beamlit/api/{accounts/update_account.py → knowledgebases/update_knowledgebase.py} +43 -43
- beamlit/deploy/deploy.py +2 -0
- beamlit/deploy/format.py +1 -68
- beamlit/models/__init__.py +8 -10
- beamlit/models/agent_chain.py +9 -0
- beamlit/models/agent_spec.py +10 -1
- beamlit/models/integration_model.py +27 -9
- beamlit/models/knowledgebase.py +126 -0
- beamlit/models/knowledgebase_release.py +70 -0
- beamlit/models/knowledgebase_spec.py +143 -0
- beamlit/models/{account_spec_address.py → knowledgebase_spec_options.py} +6 -6
- beamlit/models/model_spec.py +9 -0
- beamlit/models/runtime.py +21 -2
- beamlit/models/store_agent.py +9 -0
- {beamlit-0.0.54rc101.dist-info → beamlit-0.0.55.dist-info}/METADATA +1 -1
- {beamlit-0.0.54rc101.dist-info → beamlit-0.0.55.dist-info}/RECORD +29 -31
- beamlit/api/integrations/get_integration_model.py +0 -104
- beamlit/models/account.py +0 -224
- beamlit/models/account_metadata.py +0 -121
- beamlit/models/account_spec.py +0 -123
- beamlit/models/billing_address.py +0 -133
- /beamlit/api/{accounts → knowledgebases}/__init__.py +0 -0
- {beamlit-0.0.54rc101.dist-info → beamlit-0.0.55.dist-info}/WHEEL +0 -0
- {beamlit-0.0.54rc101.dist-info → beamlit-0.0.55.dist-info}/entry_points.txt +0 -0
- {beamlit-0.0.54rc101.dist-info → beamlit-0.0.55.dist-info}/licenses/LICENSE +0 -0
beamlit/models/model_spec.py
CHANGED
@@ -32,6 +32,7 @@ class ModelSpec:
|
|
32
32
|
runtime (Union[Unset, Runtime]): Set of configurations for a deployment
|
33
33
|
sandbox (Union[Unset, bool]): Sandbox mode
|
34
34
|
serverless_config (Union[Unset, ServerlessConfig]): Configuration for a serverless deployment
|
35
|
+
knowledgebase (Union[Unset, str]): Knowledgebase Name
|
35
36
|
"""
|
36
37
|
|
37
38
|
configurations: Union[Unset, "CoreSpecConfigurations"] = UNSET
|
@@ -44,6 +45,7 @@ class ModelSpec:
|
|
44
45
|
runtime: Union[Unset, "Runtime"] = UNSET
|
45
46
|
sandbox: Union[Unset, bool] = UNSET
|
46
47
|
serverless_config: Union[Unset, "ServerlessConfig"] = UNSET
|
48
|
+
knowledgebase: Union[Unset, str] = UNSET
|
47
49
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
48
50
|
|
49
51
|
def to_dict(self) -> dict[str, Any]:
|
@@ -108,6 +110,8 @@ class ModelSpec:
|
|
108
110
|
elif self.serverless_config and isinstance(self.serverless_config, dict):
|
109
111
|
serverless_config = self.serverless_config
|
110
112
|
|
113
|
+
knowledgebase = self.knowledgebase
|
114
|
+
|
111
115
|
field_dict: dict[str, Any] = {}
|
112
116
|
field_dict.update(self.additional_properties)
|
113
117
|
field_dict.update({})
|
@@ -131,6 +135,8 @@ class ModelSpec:
|
|
131
135
|
field_dict["sandbox"] = sandbox
|
132
136
|
if serverless_config is not UNSET:
|
133
137
|
field_dict["serverlessConfig"] = serverless_config
|
138
|
+
if knowledgebase is not UNSET:
|
139
|
+
field_dict["knowledgebase"] = knowledgebase
|
134
140
|
|
135
141
|
return field_dict
|
136
142
|
|
@@ -196,6 +202,8 @@ class ModelSpec:
|
|
196
202
|
else:
|
197
203
|
serverless_config = ServerlessConfig.from_dict(_serverless_config)
|
198
204
|
|
205
|
+
knowledgebase = d.pop("knowledgebase", UNSET)
|
206
|
+
|
199
207
|
model_spec = cls(
|
200
208
|
configurations=configurations,
|
201
209
|
enabled=enabled,
|
@@ -207,6 +215,7 @@ class ModelSpec:
|
|
207
215
|
runtime=runtime,
|
208
216
|
sandbox=sandbox,
|
209
217
|
serverless_config=serverless_config,
|
218
|
+
knowledgebase=knowledgebase,
|
210
219
|
)
|
211
220
|
|
212
221
|
model_spec.additional_properties = d
|
beamlit/models/runtime.py
CHANGED
@@ -20,24 +20,29 @@ class Runtime:
|
|
20
20
|
Attributes:
|
21
21
|
args (Union[Unset, list[Any]]): The arguments to pass to the deployment runtime
|
22
22
|
command (Union[Unset, list[Any]]): The command to run the deployment
|
23
|
+
endpoint_name (Union[Unset, str]): Endpoint Name of the model. In case of hf_private_endpoint, it is the
|
24
|
+
endpoint name. In case of hf_public_endpoint, it is not used.
|
23
25
|
envs (Union[Unset, list[Any]]): The environment variables to set in the deployment. Should be a list of
|
24
26
|
Kubernetes EnvVar types
|
25
27
|
image (Union[Unset, str]): The Docker image for the deployment
|
26
28
|
metric_port (Union[Unset, int]): The port to serve the metrics on
|
27
|
-
model (Union[Unset, str]): The slug name of the origin model
|
29
|
+
model (Union[Unset, str]): The slug name of the origin model at HuggingFace.
|
30
|
+
organization (Union[Unset, str]): The organization of the model
|
28
31
|
readiness_probe (Union[Unset, RuntimeReadinessProbe]): The readiness probe. Should be a Kubernetes Probe type
|
29
32
|
resources (Union[Unset, RuntimeResources]): The resources for the deployment. Should be a Kubernetes
|
30
33
|
ResourceRequirements type
|
31
34
|
serving_port (Union[Unset, int]): The port to serve the model on
|
32
|
-
type_ (Union[Unset, str]): The type of origin for the deployment
|
35
|
+
type_ (Union[Unset, str]): The type of origin for the deployment (hf_private_endpoint, hf_public_endpoint)
|
33
36
|
"""
|
34
37
|
|
35
38
|
args: Union[Unset, list[Any]] = UNSET
|
36
39
|
command: Union[Unset, list[Any]] = UNSET
|
40
|
+
endpoint_name: Union[Unset, str] = UNSET
|
37
41
|
envs: Union[Unset, list[Any]] = UNSET
|
38
42
|
image: Union[Unset, str] = UNSET
|
39
43
|
metric_port: Union[Unset, int] = UNSET
|
40
44
|
model: Union[Unset, str] = UNSET
|
45
|
+
organization: Union[Unset, str] = UNSET
|
41
46
|
readiness_probe: Union[Unset, "RuntimeReadinessProbe"] = UNSET
|
42
47
|
resources: Union[Unset, "RuntimeResources"] = UNSET
|
43
48
|
serving_port: Union[Unset, int] = UNSET
|
@@ -53,6 +58,8 @@ class Runtime:
|
|
53
58
|
if not isinstance(self.command, Unset):
|
54
59
|
command = self.command
|
55
60
|
|
61
|
+
endpoint_name = self.endpoint_name
|
62
|
+
|
56
63
|
envs: Union[Unset, list[Any]] = UNSET
|
57
64
|
if not isinstance(self.envs, Unset):
|
58
65
|
envs = self.envs
|
@@ -63,6 +70,8 @@ class Runtime:
|
|
63
70
|
|
64
71
|
model = self.model
|
65
72
|
|
73
|
+
organization = self.organization
|
74
|
+
|
66
75
|
readiness_probe: Union[Unset, dict[str, Any]] = UNSET
|
67
76
|
if (
|
68
77
|
self.readiness_probe
|
@@ -90,6 +99,8 @@ class Runtime:
|
|
90
99
|
field_dict["args"] = args
|
91
100
|
if command is not UNSET:
|
92
101
|
field_dict["command"] = command
|
102
|
+
if endpoint_name is not UNSET:
|
103
|
+
field_dict["endpointName"] = endpoint_name
|
93
104
|
if envs is not UNSET:
|
94
105
|
field_dict["envs"] = envs
|
95
106
|
if image is not UNSET:
|
@@ -98,6 +109,8 @@ class Runtime:
|
|
98
109
|
field_dict["metricPort"] = metric_port
|
99
110
|
if model is not UNSET:
|
100
111
|
field_dict["model"] = model
|
112
|
+
if organization is not UNSET:
|
113
|
+
field_dict["organization"] = organization
|
101
114
|
if readiness_probe is not UNSET:
|
102
115
|
field_dict["readinessProbe"] = readiness_probe
|
103
116
|
if resources is not UNSET:
|
@@ -121,6 +134,8 @@ class Runtime:
|
|
121
134
|
|
122
135
|
command = cast(list[Any], d.pop("command", UNSET))
|
123
136
|
|
137
|
+
endpoint_name = d.pop("endpointName", UNSET)
|
138
|
+
|
124
139
|
envs = cast(list[Any], d.pop("envs", UNSET))
|
125
140
|
|
126
141
|
image = d.pop("image", UNSET)
|
@@ -129,6 +144,8 @@ class Runtime:
|
|
129
144
|
|
130
145
|
model = d.pop("model", UNSET)
|
131
146
|
|
147
|
+
organization = d.pop("organization", UNSET)
|
148
|
+
|
132
149
|
_readiness_probe = d.pop("readinessProbe", UNSET)
|
133
150
|
readiness_probe: Union[Unset, RuntimeReadinessProbe]
|
134
151
|
if isinstance(_readiness_probe, Unset):
|
@@ -150,10 +167,12 @@ class Runtime:
|
|
150
167
|
runtime = cls(
|
151
168
|
args=args,
|
152
169
|
command=command,
|
170
|
+
endpoint_name=endpoint_name,
|
153
171
|
envs=envs,
|
154
172
|
image=image,
|
155
173
|
metric_port=metric_port,
|
156
174
|
model=model,
|
175
|
+
organization=organization,
|
157
176
|
readiness_probe=readiness_probe,
|
158
177
|
resources=resources,
|
159
178
|
serving_port=serving_port,
|
beamlit/models/store_agent.py
CHANGED
@@ -28,6 +28,7 @@ class StoreAgent:
|
|
28
28
|
image (Union[Unset, str]): Store agent image
|
29
29
|
labels (Union[Unset, StoreAgentLabels]): Store agent labels
|
30
30
|
name (Union[Unset, str]): Store agent name
|
31
|
+
prompt (Union[Unset, str]): Store agent prompt, this is to define what the agent does
|
31
32
|
"""
|
32
33
|
|
33
34
|
created_at: Union[Unset, str] = UNSET
|
@@ -40,6 +41,7 @@ class StoreAgent:
|
|
40
41
|
image: Union[Unset, str] = UNSET
|
41
42
|
labels: Union[Unset, "StoreAgentLabels"] = UNSET
|
42
43
|
name: Union[Unset, str] = UNSET
|
44
|
+
prompt: Union[Unset, str] = UNSET
|
43
45
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
44
46
|
|
45
47
|
def to_dict(self) -> dict[str, Any]:
|
@@ -72,6 +74,8 @@ class StoreAgent:
|
|
72
74
|
|
73
75
|
name = self.name
|
74
76
|
|
77
|
+
prompt = self.prompt
|
78
|
+
|
75
79
|
field_dict: dict[str, Any] = {}
|
76
80
|
field_dict.update(self.additional_properties)
|
77
81
|
field_dict.update({})
|
@@ -95,6 +99,8 @@ class StoreAgent:
|
|
95
99
|
field_dict["labels"] = labels
|
96
100
|
if name is not UNSET:
|
97
101
|
field_dict["name"] = name
|
102
|
+
if prompt is not UNSET:
|
103
|
+
field_dict["prompt"] = prompt
|
98
104
|
|
99
105
|
return field_dict
|
100
106
|
|
@@ -136,6 +142,8 @@ class StoreAgent:
|
|
136
142
|
|
137
143
|
name = d.pop("name", UNSET)
|
138
144
|
|
145
|
+
prompt = d.pop("prompt", UNSET)
|
146
|
+
|
139
147
|
store_agent = cls(
|
140
148
|
created_at=created_at,
|
141
149
|
updated_at=updated_at,
|
@@ -147,6 +155,7 @@ class StoreAgent:
|
|
147
155
|
image=image,
|
148
156
|
labels=labels,
|
149
157
|
name=name,
|
158
|
+
prompt=prompt,
|
150
159
|
)
|
151
160
|
|
152
161
|
store_agent.additional_properties = d
|
@@ -5,18 +5,13 @@ beamlit/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
5
5
|
beamlit/run.py,sha256=ERZ0tA7TsocV_2LC81QbxPxCokNCSmrZv4kqh9sGEkc,3494
|
6
6
|
beamlit/types.py,sha256=E1hhDh_zXfsSQ0NCt9-uw90_Mr5iIlsdfnfvxv5HarU,1005
|
7
7
|
beamlit/agents/__init__.py,sha256=bWsFaXUbAps3IsL3Prti89m1s714vICXodbQi77h3vY,206
|
8
|
-
beamlit/agents/chain.py,sha256=
|
9
|
-
beamlit/agents/chat.py,sha256=
|
10
|
-
beamlit/agents/decorator.py,sha256=
|
8
|
+
beamlit/agents/chain.py,sha256=xtOTOFQR9Wml-ZwW06cKZB4dIPmkQxpBx1dPyaE3PKk,4333
|
9
|
+
beamlit/agents/chat.py,sha256=ItuS9zXkALgXVa6IevNpCVKvsicwg9OcUf4_VqO1x5Q,8603
|
10
|
+
beamlit/agents/decorator.py,sha256=KdOKKf_svJc7Pa-eyP-_sXqEndZrEIQCV5Yfgz-zoQE,8253
|
11
11
|
beamlit/agents/thread.py,sha256=XNqj2WI3W2roQB7J5mpF1wEuGb3VtfvKQvWaEPx-sx8,1014
|
12
12
|
beamlit/agents/voice/openai.py,sha256=-RDBwl16i4TbUhFo5-77Ci3zmI3Y8U2yf2MmvXR2haQ,9479
|
13
13
|
beamlit/agents/voice/utils.py,sha256=tQidyM40Ewuy12wKqpvJLvfJgneQ0sZf50dqnerPGHg,836
|
14
14
|
beamlit/api/__init__.py,sha256=zTSiG_ujSjAqWPyc435YXaX9XTlpMjiJWBbV-f-YtdA,45
|
15
|
-
beamlit/api/accounts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
|
-
beamlit/api/accounts/delete_account.py,sha256=Mrbhuxl1IF1GDclSixIAvj3YHa7trlFg3JNmllqpBRA,3864
|
17
|
-
beamlit/api/accounts/get_account.py,sha256=_H0IQUlUFuA92WrYDpCmXjsJIzuVqa3oTwtNqMvM7Gg,3640
|
18
|
-
beamlit/api/accounts/list_accounts.py,sha256=rg55vATS7416ECC3ZrSJxXOif2sMwoqQXLt9FQuxv3o,3505
|
19
|
-
beamlit/api/accounts/update_account.py,sha256=1iO87kO87zjy4qlEyHTPmBMGU6vPIj_TVy4Z7UrnHb4,4103
|
20
15
|
beamlit/api/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
16
|
beamlit/api/agents/create_agent.py,sha256=t5Pr62My2EhQlcIY71MrI73-0_q5Djr3a_Ybt9MIiQQ,3587
|
22
17
|
beamlit/api/agents/create_agent_release.py,sha256=cH_GLiSFyMblwN0tayVPugwyGNMVReoahYRF85moGeY,3685
|
@@ -34,7 +29,6 @@ beamlit/api/agents/update_agent.py,sha256=No9iJkjUFJBCHDth1_vpuDfl2Ev3us1OWHXrrR
|
|
34
29
|
beamlit/api/configurations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
30
|
beamlit/api/configurations/get_configuration.py,sha256=BtazLwvVe1OGjt0dJ-NVVipqAqZt1HwemWTGK2iuN9w,3197
|
36
31
|
beamlit/api/default/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
beamlit/api/default/create_account.py,sha256=NJgrP9BPHVFpUELj2r-BkrQDpsYs-xPN1zXi9_YzZ9Q,3721
|
38
32
|
beamlit/api/default/get_trace.py,sha256=2x-qpeu8jpfbq_c4-aAHgliwBQfagLEWEgM77eB_ZiY,3621
|
39
33
|
beamlit/api/default/get_trace_ids.py,sha256=qxT085F7pt4GI0Ir7fpFA19IIR9_NFy47fYL9bPAtJo,6712
|
40
34
|
beamlit/api/default/get_trace_logs.py,sha256=R69_j9GFAwkujsNMp4VTxoZuzw8jFni56l0bRxACT4w,4770
|
@@ -63,14 +57,19 @@ beamlit/api/integrations/create_integration_connection.py,sha256=VoaP3qLQpHCyB-K
|
|
63
57
|
beamlit/api/integrations/delete_integration_connection.py,sha256=DjyhnqA6hn8mTZ9FXI6VcAUaeLvfXMDxDp2iHLJreqc,4188
|
64
58
|
beamlit/api/integrations/get_integration.py,sha256=SOuuztVMIES0TCg4LpVXCA7T9N0fPcks5xLx8bUQ7AI,2473
|
65
59
|
beamlit/api/integrations/get_integration_connection.py,sha256=uKWMH0BuXdciDm0RCzWDmTecQOlNOY2yec78yovYKI4,4173
|
66
|
-
beamlit/api/integrations/get_integration_connection_model.py,sha256
|
67
|
-
beamlit/api/integrations/
|
60
|
+
beamlit/api/integrations/get_integration_connection_model.py,sha256=U3rSVTdCKxA7jfpAGv1HD1Yk3OkYE36fllPbb9LRbUU,2708
|
61
|
+
beamlit/api/integrations/get_integration_connection_model_endpoint_configurations.py,sha256=cqK0tKRwacslh1GKvEohYElmjA9kaFvZGBVyevS71ZE,2588
|
68
62
|
beamlit/api/integrations/list_integration_connection_models.py,sha256=xEND9JaVrqTIXQ5vlBUihfASFkj-P28oTKN-DYYpPeQ,2530
|
69
63
|
beamlit/api/integrations/list_integration_connections.py,sha256=Ol96kXuANQA8DMnBQ_zFL1SLDD5qkgZGhFuU8Rvs9Hw,3900
|
70
|
-
beamlit/api/integrations/list_integration_models.py,sha256=3oxo5R0w_C3Fy7QLI2hNX7UsNcXJnqAORyqrW0_eGlw,2484
|
71
64
|
beamlit/api/integrations/update_integration_connection.py,sha256=aCVzuQjUeebipm9p79PVVBEkHtzubHFhN1gviCILXic,4894
|
72
65
|
beamlit/api/invitations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
73
66
|
beamlit/api/invitations/list_all_pending_invitations.py,sha256=YZxQdPXGNJD7OGXngV1y6UmT6APl5RqFt12ARKO6H2Q,4111
|
67
|
+
beamlit/api/knowledgebases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
68
|
+
beamlit/api/knowledgebases/create_knowledgebase.py,sha256=WS3FEF0Y1bLVrVR7QOGa8uTMn3KyQta_xx-Tf3M-cs4,3923
|
69
|
+
beamlit/api/knowledgebases/delete_knowledgebase.py,sha256=lMuMU5MBz7iALAVO3g6abzblL46sevDcshs7kXC6L8k,4572
|
70
|
+
beamlit/api/knowledgebases/get_knowledgebase.py,sha256=S3jGssOkaWH4L_6Zp3LRvBMk3A9zM5ff4hLxMfiBgYs,4565
|
71
|
+
beamlit/api/knowledgebases/list_knowledgebases.py,sha256=6jTx1D_Y5tY8g4cmq6Ypmov6HTdkkGqPDovYXd7S0ME,4485
|
72
|
+
beamlit/api/knowledgebases/update_knowledgebase.py,sha256=e-JQiDCCAih2L6V3fk0lzP2LnfiuXnaRIcw8bLyzSvk,4389
|
74
73
|
beamlit/api/locations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
75
74
|
beamlit/api/locations/list_locations.py,sha256=6hu06Yt8ky_xPk9BRbN3Y749J0qDfVnVSbX5IwRWF8I,3720
|
76
75
|
beamlit/api/metrics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -141,28 +140,23 @@ beamlit/common/settings.py,sha256=Zf43TPYGVIeqi2WiKXvIfbHVuR6V9cbTeMqjz4WN--Q,53
|
|
141
140
|
beamlit/common/slugify.py,sha256=QPJqa1VrSjRle931RN37t24rUjAbyZEg1UFAp2fLgac,679
|
142
141
|
beamlit/common/utils.py,sha256=eG201z9gMRnhoHkaZGNtfFUbCzfg_Y59JR4ciMgidW8,1465
|
143
142
|
beamlit/deploy/__init__.py,sha256=uRsI_-gTbbki59LlvubeTfG6wfI3o2XqZODW0QXA-Ao,292
|
144
|
-
beamlit/deploy/deploy.py,sha256=
|
145
|
-
beamlit/deploy/format.py,sha256=
|
143
|
+
beamlit/deploy/deploy.py,sha256=V07m0GKEKvQKjyw5r5UR2IsXQxhgyH6OeSgexj3AAtY,11232
|
144
|
+
beamlit/deploy/format.py,sha256=W3ESUHyFv-iZDjVnHOf9YFDDXZSXYIFFbwCoL1GInE0,1162
|
146
145
|
beamlit/deploy/parser.py,sha256=gjRUhOVtfKnc1UNc_FhXsEfj9zrMNuq8W93pNsJBpo0,7586
|
147
146
|
beamlit/functions/__init__.py,sha256=Mnoqpa1dm7TXwjodBbF_40JyD78aXsOYWmqjDSnA1lU,317
|
148
147
|
beamlit/functions/common.py,sha256=IkdxQYrvu6H4cPgqc0OeXquCInMtGvmq6GP2FA1rh7w,9221
|
149
148
|
beamlit/functions/decorator.py,sha256=iQbLwUo0K83DFJ3ub8O5jKtkbSINnku6GZcKJ9h7-5E,2292
|
150
149
|
beamlit/functions/mcp/mcp.py,sha256=M6SAGnBo5xpZcPKB6YE0R2Xp73hHOlbZXc0Q2kFSYuU,5458
|
151
150
|
beamlit/functions/remote/remote.py,sha256=g0M909Ow9GLPgtistrWkUuhcITUwA2iHIOQNpUsp28g,5989
|
152
|
-
beamlit/models/__init__.py,sha256=
|
153
|
-
beamlit/models/account.py,sha256=A8A1nkT-CfkeDIMhQctAnSvVagM9by3S3LfP7QqTAag,7184
|
154
|
-
beamlit/models/account_metadata.py,sha256=SnJxJCJJSH5DGGO3uKsPUWxbi0TXicq0MucpaYuaG_Y,3785
|
155
|
-
beamlit/models/account_spec.py,sha256=2j2r6HMKLZBH9-H2m6lRmADrcLExin62JysEP8LiTwk,3672
|
156
|
-
beamlit/models/account_spec_address.py,sha256=B7ZiP2mWJxZyFfAcScYV6_YYWLGIi9U5dDinNhdViLw,1263
|
151
|
+
beamlit/models/__init__.py,sha256=2yOQDeO7hQ_85q0WTU7ikAe-IfGr7PwlnHXJnLRSuB0,9036
|
157
152
|
beamlit/models/acl.py,sha256=tH67gsl_BMaviSbTaaIkO1g9cWZgJ6VgAnYVjQSzGZY,3952
|
158
153
|
beamlit/models/agent.py,sha256=pkFemfg0OUAuiqebiT3PurXhjAKvgCa_YOPuyqFVE2o,4264
|
159
|
-
beamlit/models/agent_chain.py,sha256=
|
154
|
+
beamlit/models/agent_chain.py,sha256=Vz6galRoT20JRM3mAfaJ_HbOX2pS1pL_fyjYM35b0NI,2566
|
160
155
|
beamlit/models/agent_history.py,sha256=76ZHoaz7oq3-2ikNQj25NmzyXOzx5JIPxOlfUyljRQg,5124
|
161
156
|
beamlit/models/agent_history_event.py,sha256=Ed_xaedwLEPNuM807Ldj5xqUBj4Eua9NqpCzpTRi0Og,3820
|
162
157
|
beamlit/models/agent_release.py,sha256=AXtHX_Ze7cMh2tKnRw2usRWnLf2B9u_iFPTF6WYdJLM,1928
|
163
|
-
beamlit/models/agent_spec.py,sha256=
|
158
|
+
beamlit/models/agent_spec.py,sha256=B6TrOmGwQk8Mu-xNmjRqvaItNpT9mutejQL0M9Q6YLw,12879
|
164
159
|
beamlit/models/api_key.py,sha256=oKuqDF0xe2Z2-6yJqulbzlXEQyM3W7lvQn6FXCktaaU,4278
|
165
|
-
beamlit/models/billing_address.py,sha256=B4u5bZzBH7LLelRGTDjCWL9vJjK3FBcba14RctqYLx4,3844
|
166
160
|
beamlit/models/configuration.py,sha256=KujTXl7iihrPcL0jX0hgxN0xAAwMgJsTaFKcMBpCVLs,2761
|
167
161
|
beamlit/models/continent.py,sha256=_gQJci2_MUmCiGGG4iCMnUDTww9OqcTsNVqwPVigy3U,1880
|
168
162
|
beamlit/models/core_event.py,sha256=L9GQh2rRPM1RC042IUJHEazha1gHqdNb9XN44zjawSs,2321
|
@@ -192,9 +186,13 @@ beamlit/models/integration_connection.py,sha256=w3FZOQTDFqPVMEiXcL5NeLVp_uvIFpa7
|
|
192
186
|
beamlit/models/integration_connection_spec.py,sha256=p0YvnqdAXNDg4mR5hiT8WYr4kCJkMnOG8EokVw2ERMU,4047
|
193
187
|
beamlit/models/integration_connection_spec_config.py,sha256=D-MuemiNwD6jhs-hsvGdazKuzB2akg1O7Mdro1g59pY,1360
|
194
188
|
beamlit/models/integration_connection_spec_secret.py,sha256=UJCjioPQ6gHh5tbq1V2uKvWtQa0_YmmhhaiQoPDL274,1334
|
195
|
-
beamlit/models/integration_model.py,sha256
|
189
|
+
beamlit/models/integration_model.py,sha256=-2_UVeP_5xWqYfP42gU2tckirN43LKTqUyRapwke090,5086
|
196
190
|
beamlit/models/integration_repository.py,sha256=Ac5c_UBdlUHvGflvCzqA5gXzX1_YEDHz3yBgMCGqqDg,2397
|
197
191
|
beamlit/models/invite_workspace_user_body.py,sha256=ITmKPCuOGKTHn4VjnZ2EjIj6PGPoGh-M_rzgo0VMgNM,1612
|
192
|
+
beamlit/models/knowledgebase.py,sha256=EBDrt1hZuObNHtZpLtYIFbgQjovYgpqiEBZID146Kfo,4392
|
193
|
+
beamlit/models/knowledgebase_release.py,sha256=5LMllHTVxquiukS2_k33t_GxoFwgzfjIi0xhgaDILwM,1985
|
194
|
+
beamlit/models/knowledgebase_spec.py,sha256=bWjB1x8If5-NZW27HEsuBhCFAWBCaKdTz0rsbI5Z_l0,5071
|
195
|
+
beamlit/models/knowledgebase_spec_options.py,sha256=F0NfzFhP3bifGOBiyuvpVWh2iI7NABrcmFTg9A9a140,1316
|
198
196
|
beamlit/models/last_n_requests_metric.py,sha256=BYaEhJAeoGE-NtdlT7EkUSkaNManeCsXeVryOcKH57s,2544
|
199
197
|
beamlit/models/latency_metric.py,sha256=8-iz4JaxqI0Mi0a51A9ey_9yGS8gh2yoO_GJKnaAWJU,5527
|
200
198
|
beamlit/models/location_response.py,sha256=Tvs5CdgyB7sPvogk4clT9jMJQa63Ivt3iIEfRP9UcKA,3388
|
@@ -208,7 +206,7 @@ beamlit/models/metrics_rps_per_code.py,sha256=CBhe8-hqpsK3lS4KepgqveAlnJRtjANoYn
|
|
208
206
|
beamlit/models/model.py,sha256=wATVQPhQy8LLtRd2MlmWF0gt21ZoGadOwPhNPajvYiY,4366
|
209
207
|
beamlit/models/model_private_cluster.py,sha256=EojXwmxgDLogsUlTDRw9PvhiQVk_b5nQUSBbWQosQpg,2281
|
210
208
|
beamlit/models/model_release.py,sha256=ql8EDbKc9--kre7zp3o5_XoJjpAoXrsgJdYbjYST4vs,1928
|
211
|
-
beamlit/models/model_spec.py,sha256=
|
209
|
+
beamlit/models/model_spec.py,sha256=5z2aZ4GCv3u76SH_w072aDbQ3vpQxOp7Bb6-0AiP_KY,9659
|
212
210
|
beamlit/models/owner_fields.py,sha256=8LsT7inzzFI1hZQma798gYoOfJpdmwK9T8y_0JrKGSU,2022
|
213
211
|
beamlit/models/pending_invitation.py,sha256=YJaUNHXoq-X1ZTBkOpmRQj31R99S6Y7Ik45dHDss6-M,3797
|
214
212
|
beamlit/models/pending_invitation_accept.py,sha256=KbHS5L7SSPro45RK0_pORp6yhPKPao_izivB_FFYPjk,2550
|
@@ -236,12 +234,12 @@ beamlit/models/resource_environment_metrics.py,sha256=NOF-xh4CncVHKgDRalVhAmNrt_
|
|
236
234
|
beamlit/models/resource_environment_metrics_request_total_per_code.py,sha256=HhGnCuajc2K4chKxNnB2_RfEtwdswG5GlEaHURUyTDI,1448
|
237
235
|
beamlit/models/resource_environment_metrics_rps_per_code.py,sha256=mcAUfxNU759akRuLJIXvqzAJPIVEzspnzSYVm7Uo1vM,1411
|
238
236
|
beamlit/models/resource_log.py,sha256=XV_DaMU4jf6pVk2XyWyWPtMeZ9uJJ9_LTDEYg3BtxHo,2253
|
239
|
-
beamlit/models/runtime.py,sha256=
|
237
|
+
beamlit/models/runtime.py,sha256=VA4fhHBgzYU3uu0J-yngA8SlrJlTsQ0Lj3Qofz_4vIM,7205
|
240
238
|
beamlit/models/runtime_readiness_probe.py,sha256=iqNikZl5CffpNEwsUxVbs9k2_y2IUWpkEyZicf5T4Pk,1317
|
241
239
|
beamlit/models/runtime_resources.py,sha256=6ioyGkvDPn93_MjJTJwB-J33R9vLJpagz4OvFuIExWE,1317
|
242
240
|
beamlit/models/serverless_config.py,sha256=He_W4af-9QoBztQl3i3loSvn9pyHKhbb5fsQsuJSI-M,4989
|
243
241
|
beamlit/models/spec_configuration.py,sha256=oGmMqoZSVEGedarAou-102vfw16bFevHUp4C_OW6h1k,1970
|
244
|
-
beamlit/models/store_agent.py,sha256=
|
242
|
+
beamlit/models/store_agent.py,sha256=8-sFVS8fMhD9cAM4_ZpsTti27Lyseom7QOxnO5RZnHI,6087
|
245
243
|
beamlit/models/store_agent_labels.py,sha256=DDsYO0AXh8B4k1hgLBXHyHH1WwP2kKCyHwZqmd3qbOE,1256
|
246
244
|
beamlit/models/store_configuration.py,sha256=8ppSJsmkC4yjPQXipt8hiju_bskYGEQ37FtmCLuYOiQ,4958
|
247
245
|
beamlit/models/store_configuration_option.py,sha256=ErsfYkkG-b8MXf_xWS837FGdlbZWzTyDMkLtfXzmqQY,2269
|
@@ -265,8 +263,8 @@ beamlit/serve/app.py,sha256=lM59fdUtfkfAYNPWSCU9pkXIPBnhgVGvvgfoMkSVtks,4531
|
|
265
263
|
beamlit/serve/middlewares/__init__.py,sha256=O7fyfE1DIYmajFY9WWdzxCgeAQWZzJfeUjzHGbpWaAk,309
|
266
264
|
beamlit/serve/middlewares/accesslog.py,sha256=lcu33j4epFSHRBaeTpyt8deNb3kaM3K91-andw4fp80,1112
|
267
265
|
beamlit/serve/middlewares/processtime.py,sha256=3x5w1yQexB0xFNKK6fgLbINxT-eLLunfZ6UDV0bIIF4,944
|
268
|
-
beamlit-0.0.
|
269
|
-
beamlit-0.0.
|
270
|
-
beamlit-0.0.
|
271
|
-
beamlit-0.0.
|
272
|
-
beamlit-0.0.
|
266
|
+
beamlit-0.0.55.dist-info/METADATA,sha256=hpUf_exI0FRoWST2SSvMilv1DjwhSjuJxU7HgdEPX0M,3510
|
267
|
+
beamlit-0.0.55.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
268
|
+
beamlit-0.0.55.dist-info/entry_points.txt,sha256=zxhgdn7SP-Otk4rEv7LMPAAa9w4TUCLbu9TJi9-K3xg,115
|
269
|
+
beamlit-0.0.55.dist-info/licenses/LICENSE,sha256=p5PNQvpvyDT_0aYBDgmV1fFI_vAD2aSV0wWG7VTgRis,1069
|
270
|
+
beamlit-0.0.55.dist-info/RECORD,,
|
@@ -1,104 +0,0 @@
|
|
1
|
-
from http import HTTPStatus
|
2
|
-
from typing import Any, Optional, Union
|
3
|
-
|
4
|
-
import httpx
|
5
|
-
|
6
|
-
from ... import errors
|
7
|
-
from ...client import AuthenticatedClient, Client
|
8
|
-
from ...types import Response
|
9
|
-
|
10
|
-
|
11
|
-
def _get_kwargs(
|
12
|
-
integration_name: str,
|
13
|
-
model_id: str,
|
14
|
-
) -> dict[str, Any]:
|
15
|
-
_kwargs: dict[str, Any] = {
|
16
|
-
"method": "get",
|
17
|
-
"url": f"/integrations/{integration_name}/models/{model_id}",
|
18
|
-
}
|
19
|
-
|
20
|
-
return _kwargs
|
21
|
-
|
22
|
-
|
23
|
-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
24
|
-
if response.status_code == 200:
|
25
|
-
return None
|
26
|
-
if client.raise_on_unexpected_status:
|
27
|
-
raise errors.UnexpectedStatus(response.status_code, response.content)
|
28
|
-
else:
|
29
|
-
return None
|
30
|
-
|
31
|
-
|
32
|
-
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
33
|
-
return Response(
|
34
|
-
status_code=HTTPStatus(response.status_code),
|
35
|
-
content=response.content,
|
36
|
-
headers=response.headers,
|
37
|
-
parsed=_parse_response(client=client, response=response),
|
38
|
-
)
|
39
|
-
|
40
|
-
|
41
|
-
def sync_detailed(
|
42
|
-
integration_name: str,
|
43
|
-
model_id: str,
|
44
|
-
*,
|
45
|
-
client: AuthenticatedClient,
|
46
|
-
) -> Response[Any]:
|
47
|
-
"""Get integration model
|
48
|
-
|
49
|
-
Returns a model for an integration by ID.
|
50
|
-
|
51
|
-
Args:
|
52
|
-
integration_name (str):
|
53
|
-
model_id (str):
|
54
|
-
|
55
|
-
Raises:
|
56
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
57
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
58
|
-
|
59
|
-
Returns:
|
60
|
-
Response[Any]
|
61
|
-
"""
|
62
|
-
|
63
|
-
kwargs = _get_kwargs(
|
64
|
-
integration_name=integration_name,
|
65
|
-
model_id=model_id,
|
66
|
-
)
|
67
|
-
|
68
|
-
response = client.get_httpx_client().request(
|
69
|
-
**kwargs,
|
70
|
-
)
|
71
|
-
|
72
|
-
return _build_response(client=client, response=response)
|
73
|
-
|
74
|
-
|
75
|
-
async def asyncio_detailed(
|
76
|
-
integration_name: str,
|
77
|
-
model_id: str,
|
78
|
-
*,
|
79
|
-
client: AuthenticatedClient,
|
80
|
-
) -> Response[Any]:
|
81
|
-
"""Get integration model
|
82
|
-
|
83
|
-
Returns a model for an integration by ID.
|
84
|
-
|
85
|
-
Args:
|
86
|
-
integration_name (str):
|
87
|
-
model_id (str):
|
88
|
-
|
89
|
-
Raises:
|
90
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
91
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
92
|
-
|
93
|
-
Returns:
|
94
|
-
Response[Any]
|
95
|
-
"""
|
96
|
-
|
97
|
-
kwargs = _get_kwargs(
|
98
|
-
integration_name=integration_name,
|
99
|
-
model_id=model_id,
|
100
|
-
)
|
101
|
-
|
102
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
103
|
-
|
104
|
-
return _build_response(client=client, response=response)
|
beamlit/models/account.py
DELETED
@@ -1,224 +0,0 @@
|
|
1
|
-
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
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
|
-
if TYPE_CHECKING:
|
9
|
-
from ..models.account_spec_address import AccountSpecAddress
|
10
|
-
from ..models.metadata_labels import MetadataLabels
|
11
|
-
|
12
|
-
|
13
|
-
T = TypeVar("T", bound="Account")
|
14
|
-
|
15
|
-
|
16
|
-
@_attrs_define
|
17
|
-
class Account:
|
18
|
-
"""Account
|
19
|
-
|
20
|
-
Attributes:
|
21
|
-
created_at (Union[Unset, str]): The date and time when the resource was created
|
22
|
-
updated_at (Union[Unset, str]): The date and time when the resource was updated
|
23
|
-
created_by (Union[Unset, str]): The user or service account who created the resource
|
24
|
-
updated_by (Union[Unset, str]): The user or service account who updated the resource
|
25
|
-
display_name (Union[Unset, str]): Model display name
|
26
|
-
labels (Union[Unset, MetadataLabels]): Labels
|
27
|
-
name (Union[Unset, str]): Model name
|
28
|
-
workspace (Union[Unset, str]): Workspace name
|
29
|
-
address (Union[Unset, AccountSpecAddress]): Billing address
|
30
|
-
admins (Union[Unset, list[Any]]): Admins
|
31
|
-
currency (Union[Unset, str]): Currency
|
32
|
-
owner (Union[Unset, str]): Owner
|
33
|
-
status (Union[Unset, str]): Status
|
34
|
-
tax_id (Union[Unset, str]): Tax ID
|
35
|
-
metadata (Union[Unset, Any]):
|
36
|
-
spec (Union[Unset, Any]):
|
37
|
-
"""
|
38
|
-
|
39
|
-
created_at: Union[Unset, str] = UNSET
|
40
|
-
updated_at: Union[Unset, str] = UNSET
|
41
|
-
created_by: Union[Unset, str] = UNSET
|
42
|
-
updated_by: Union[Unset, str] = UNSET
|
43
|
-
display_name: Union[Unset, str] = UNSET
|
44
|
-
labels: Union[Unset, "MetadataLabels"] = UNSET
|
45
|
-
name: Union[Unset, str] = UNSET
|
46
|
-
workspace: Union[Unset, str] = UNSET
|
47
|
-
address: Union[Unset, "AccountSpecAddress"] = UNSET
|
48
|
-
admins: Union[Unset, list[Any]] = UNSET
|
49
|
-
currency: Union[Unset, str] = UNSET
|
50
|
-
owner: Union[Unset, str] = UNSET
|
51
|
-
status: Union[Unset, str] = UNSET
|
52
|
-
tax_id: Union[Unset, str] = UNSET
|
53
|
-
metadata: Union[Unset, Any] = UNSET
|
54
|
-
spec: Union[Unset, Any] = UNSET
|
55
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
56
|
-
|
57
|
-
def to_dict(self) -> dict[str, Any]:
|
58
|
-
created_at = self.created_at
|
59
|
-
|
60
|
-
updated_at = self.updated_at
|
61
|
-
|
62
|
-
created_by = self.created_by
|
63
|
-
|
64
|
-
updated_by = self.updated_by
|
65
|
-
|
66
|
-
display_name = self.display_name
|
67
|
-
|
68
|
-
labels: Union[Unset, dict[str, Any]] = UNSET
|
69
|
-
if self.labels and not isinstance(self.labels, Unset) and not isinstance(self.labels, dict):
|
70
|
-
labels = self.labels.to_dict()
|
71
|
-
elif self.labels and isinstance(self.labels, dict):
|
72
|
-
labels = self.labels
|
73
|
-
|
74
|
-
name = self.name
|
75
|
-
|
76
|
-
workspace = self.workspace
|
77
|
-
|
78
|
-
address: Union[Unset, dict[str, Any]] = UNSET
|
79
|
-
if self.address and not isinstance(self.address, Unset) and not isinstance(self.address, dict):
|
80
|
-
address = self.address.to_dict()
|
81
|
-
elif self.address and isinstance(self.address, dict):
|
82
|
-
address = self.address
|
83
|
-
|
84
|
-
admins: Union[Unset, list[Any]] = UNSET
|
85
|
-
if not isinstance(self.admins, Unset):
|
86
|
-
admins = self.admins
|
87
|
-
|
88
|
-
currency = self.currency
|
89
|
-
|
90
|
-
owner = self.owner
|
91
|
-
|
92
|
-
status = self.status
|
93
|
-
|
94
|
-
tax_id = self.tax_id
|
95
|
-
|
96
|
-
metadata = self.metadata
|
97
|
-
|
98
|
-
spec = self.spec
|
99
|
-
|
100
|
-
field_dict: dict[str, Any] = {}
|
101
|
-
field_dict.update(self.additional_properties)
|
102
|
-
field_dict.update({})
|
103
|
-
if created_at is not UNSET:
|
104
|
-
field_dict["createdAt"] = created_at
|
105
|
-
if updated_at is not UNSET:
|
106
|
-
field_dict["updatedAt"] = updated_at
|
107
|
-
if created_by is not UNSET:
|
108
|
-
field_dict["createdBy"] = created_by
|
109
|
-
if updated_by is not UNSET:
|
110
|
-
field_dict["updatedBy"] = updated_by
|
111
|
-
if display_name is not UNSET:
|
112
|
-
field_dict["displayName"] = display_name
|
113
|
-
if labels is not UNSET:
|
114
|
-
field_dict["labels"] = labels
|
115
|
-
if name is not UNSET:
|
116
|
-
field_dict["name"] = name
|
117
|
-
if workspace is not UNSET:
|
118
|
-
field_dict["workspace"] = workspace
|
119
|
-
if address is not UNSET:
|
120
|
-
field_dict["address"] = address
|
121
|
-
if admins is not UNSET:
|
122
|
-
field_dict["admins"] = admins
|
123
|
-
if currency is not UNSET:
|
124
|
-
field_dict["currency"] = currency
|
125
|
-
if owner is not UNSET:
|
126
|
-
field_dict["owner"] = owner
|
127
|
-
if status is not UNSET:
|
128
|
-
field_dict["status"] = status
|
129
|
-
if tax_id is not UNSET:
|
130
|
-
field_dict["tax_id"] = tax_id
|
131
|
-
if metadata is not UNSET:
|
132
|
-
field_dict["metadata"] = metadata
|
133
|
-
if spec is not UNSET:
|
134
|
-
field_dict["spec"] = spec
|
135
|
-
|
136
|
-
return field_dict
|
137
|
-
|
138
|
-
@classmethod
|
139
|
-
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
140
|
-
from ..models.account_spec_address import AccountSpecAddress
|
141
|
-
from ..models.metadata_labels import MetadataLabels
|
142
|
-
|
143
|
-
if not src_dict:
|
144
|
-
return None
|
145
|
-
d = src_dict.copy()
|
146
|
-
created_at = d.pop("createdAt", UNSET)
|
147
|
-
|
148
|
-
updated_at = d.pop("updatedAt", UNSET)
|
149
|
-
|
150
|
-
created_by = d.pop("createdBy", UNSET)
|
151
|
-
|
152
|
-
updated_by = d.pop("updatedBy", UNSET)
|
153
|
-
|
154
|
-
display_name = d.pop("displayName", UNSET)
|
155
|
-
|
156
|
-
_labels = d.pop("labels", UNSET)
|
157
|
-
labels: Union[Unset, MetadataLabels]
|
158
|
-
if isinstance(_labels, Unset):
|
159
|
-
labels = UNSET
|
160
|
-
else:
|
161
|
-
labels = MetadataLabels.from_dict(_labels)
|
162
|
-
|
163
|
-
name = d.pop("name", UNSET)
|
164
|
-
|
165
|
-
workspace = d.pop("workspace", UNSET)
|
166
|
-
|
167
|
-
_address = d.pop("address", UNSET)
|
168
|
-
address: Union[Unset, AccountSpecAddress]
|
169
|
-
if isinstance(_address, Unset):
|
170
|
-
address = UNSET
|
171
|
-
else:
|
172
|
-
address = AccountSpecAddress.from_dict(_address)
|
173
|
-
|
174
|
-
admins = cast(list[Any], d.pop("admins", UNSET))
|
175
|
-
|
176
|
-
currency = d.pop("currency", UNSET)
|
177
|
-
|
178
|
-
owner = d.pop("owner", UNSET)
|
179
|
-
|
180
|
-
status = d.pop("status", UNSET)
|
181
|
-
|
182
|
-
tax_id = d.pop("tax_id", UNSET)
|
183
|
-
|
184
|
-
metadata = d.pop("metadata", UNSET)
|
185
|
-
|
186
|
-
spec = d.pop("spec", UNSET)
|
187
|
-
|
188
|
-
account = cls(
|
189
|
-
created_at=created_at,
|
190
|
-
updated_at=updated_at,
|
191
|
-
created_by=created_by,
|
192
|
-
updated_by=updated_by,
|
193
|
-
display_name=display_name,
|
194
|
-
labels=labels,
|
195
|
-
name=name,
|
196
|
-
workspace=workspace,
|
197
|
-
address=address,
|
198
|
-
admins=admins,
|
199
|
-
currency=currency,
|
200
|
-
owner=owner,
|
201
|
-
status=status,
|
202
|
-
tax_id=tax_id,
|
203
|
-
metadata=metadata,
|
204
|
-
spec=spec,
|
205
|
-
)
|
206
|
-
|
207
|
-
account.additional_properties = d
|
208
|
-
return account
|
209
|
-
|
210
|
-
@property
|
211
|
-
def additional_keys(self) -> list[str]:
|
212
|
-
return list(self.additional_properties.keys())
|
213
|
-
|
214
|
-
def __getitem__(self, key: str) -> Any:
|
215
|
-
return self.additional_properties[key]
|
216
|
-
|
217
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
218
|
-
self.additional_properties[key] = value
|
219
|
-
|
220
|
-
def __delitem__(self, key: str) -> None:
|
221
|
-
del self.additional_properties[key]
|
222
|
-
|
223
|
-
def __contains__(self, key: str) -> bool:
|
224
|
-
return key in self.additional_properties
|