beamlit 0.0.47rc94__tar.gz → 0.0.48__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/PKG-INFO +1 -1
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/pyproject.toml +1 -1
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/agents/decorator.py +3 -3
- beamlit-0.0.48/src/beamlit/api/accounts/delete_account.py +161 -0
- beamlit-0.0.48/src/beamlit/api/accounts/get_account.py +154 -0
- beamlit-0.0.48/src/beamlit/api/accounts/list_accounts.py +139 -0
- beamlit-0.0.48/src/beamlit/api/accounts/update_account.py +176 -0
- beamlit-0.0.47rc94/src/beamlit/api/model_providers/create_model_provider.py → beamlit-0.0.48/src/beamlit/api/default/create_account.py +30 -30
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/__init__.py +10 -4
- beamlit-0.0.47rc94/src/beamlit/models/agent_metadata.py → beamlit-0.0.48/src/beamlit/models/account.py +93 -15
- beamlit-0.0.47rc94/src/beamlit/models/function_metadata.py → beamlit-0.0.48/src/beamlit/models/account_metadata.py +13 -40
- beamlit-0.0.48/src/beamlit/models/account_spec.py +123 -0
- beamlit-0.0.47rc94/src/beamlit/models/function_render.py → beamlit-0.0.48/src/beamlit/models/account_spec_address.py +6 -6
- beamlit-0.0.48/src/beamlit/models/billing_address.py +133 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/workspace.py +9 -0
- beamlit-0.0.47rc94/src/beamlit/api/model_providers/delete_model_provider.py +0 -154
- beamlit-0.0.47rc94/src/beamlit/api/model_providers/get_model_provider.py +0 -154
- beamlit-0.0.47rc94/src/beamlit/api/model_providers/list_model_providers.py +0 -139
- beamlit-0.0.47rc94/src/beamlit/api/model_providers/update_model_provider.py +0 -176
- beamlit-0.0.47rc94/src/beamlit/models/agent_render.py +0 -45
- beamlit-0.0.47rc94/src/beamlit/models/core_status.py +0 -45
- beamlit-0.0.47rc94/src/beamlit/models/increase_and_rate_metric.py +0 -61
- beamlit-0.0.47rc94/src/beamlit/models/integration_config.py +0 -45
- beamlit-0.0.47rc94/src/beamlit/models/integration_connection_config.py +0 -45
- beamlit-0.0.47rc94/src/beamlit/models/integration_connection_secret.py +0 -61
- beamlit-0.0.47rc94/src/beamlit/models/model_metadata.py +0 -146
- beamlit-0.0.47rc94/src/beamlit/models/model_provider.py +0 -173
- beamlit-0.0.47rc94/src/beamlit/models/model_render.py +0 -45
- beamlit-0.0.47rc94/src/beamlit/models/pod_template.py +0 -45
- beamlit-0.0.47rc94/src/beamlit/models/provider_config.py +0 -94
- beamlit-0.0.47rc94/src/beamlit/models/qps.py +0 -61
- beamlit-0.0.47rc94/src/beamlit/models/repository_type_0.py +0 -70
- beamlit-0.0.47rc94/src/beamlit/models/resource_deployment_metrics.py +0 -176
- beamlit-0.0.47rc94/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +0 -77
- beamlit-0.0.47rc94/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +0 -75
- beamlit-0.0.47rc94/src/beamlit/models/resource_environment_metrics_inference_per_region.py +0 -77
- beamlit-0.0.47rc94/src/beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +0 -77
- beamlit-0.0.47rc94/src/beamlit/models/resource_environment_metrics_query_per_region_per_code.py +0 -75
- beamlit-0.0.47rc94/src/beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +0 -75
- beamlit-0.0.47rc94/src/beamlit/models/resource_metrics.py +0 -96
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/.gitignore +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/LICENSE +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/README.md +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/beamlit.yaml +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/agents/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/agents/chain.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/agents/chat.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/agents/thread.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/__init__.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/agents → beamlit-0.0.48/src/beamlit/api/accounts}/__init__.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/configurations → beamlit-0.0.48/src/beamlit/api/agents}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/create_agent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/create_agent_release.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/delete_agent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/delete_agent_history.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/get_agent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/get_agent_environment_logs.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/get_agent_history.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/get_agent_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/get_agent_trace_ids.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/list_agent_history.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/list_agents.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/put_agent_history.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/agents/update_agent.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/default → beamlit-0.0.48/src/beamlit/api/configurations}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/configurations/get_configuration.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/environments → beamlit-0.0.48/src/beamlit/api/default}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/default/get_trace.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/default/get_trace_ids.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/default/get_trace_logs.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/functions → beamlit-0.0.48/src/beamlit/api/environments}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/environments/create_environment.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/environments/delete_environment.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/environments/get_environment.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/environments/get_environment_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/environments/list_environments.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/environments/update_environment.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/history → beamlit-0.0.48/src/beamlit/api/functions}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/create_function.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/create_function_release.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/delete_function.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/get_function.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/get_function_environment_logs.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/get_function_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/get_function_trace_ids.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/list_functions.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/functions/update_function.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/integrations → beamlit-0.0.48/src/beamlit/api/history}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/history/get_agents_history.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/history/list_agents_history.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/invitations → beamlit-0.0.48/src/beamlit/api/integrations}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/create_integration_connection.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/delete_integration_connection.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/get_integration.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/get_integration_connection.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/get_integration_connection_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/get_integration_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/list_integration_connection_models.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/list_integration_connections.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/list_integration_models.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/integrations/update_integration_connection.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/locations → beamlit-0.0.48/src/beamlit/api/invitations}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/invitations/list_all_pending_invitations.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/metrics → beamlit-0.0.48/src/beamlit/api/locations}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/locations/list_locations.py +0 -0
- {beamlit-0.0.47rc94/src/beamlit/api/model_providers → beamlit-0.0.48/src/beamlit/api/metrics}/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/metrics/get_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/create_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/delete_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/get_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/get_model_environment_logs.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/get_model_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/get_model_trace_ids.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/list_models.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/release_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/models/update_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/policies/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/policies/create_policy.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/policies/delete_policy.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/policies/get_policy.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/policies/list_policies.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/policies/update_policy.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/create_private_cluster.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/delete_private_cluster.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/get_private_cluster.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/get_private_cluster_health.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/list_private_clusters.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/update_private_cluster.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/privateclusters/update_private_cluster_health.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/create_api_key_for_service_account.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/create_workspace_service_account.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/delete_api_key_for_service_account.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/delete_workspace_service_account.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/get_workspace_service_accounts.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/list_api_keys_for_service_account.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/service_accounts/update_workspace_service_account.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/store/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/store/get_store_agent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/store/get_store_function.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/store/list_store_agents.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/store/list_store_functions.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/accept_workspace_invitation.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/create_worspace.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/decline_workspace_invitation.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/delete_workspace.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/get_workspace.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/invite_workspace_user.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/leave_workspace.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/list_workspace_users.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/list_workspaces.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/remove_workspace_user.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/update_workspace.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/update_workspace_user_role.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/api/workspaces/workspace_quotas_request.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/authentication/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/authentication/apikey.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/authentication/authentication.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/authentication/clientcredentials.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/authentication/credentials.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/authentication/device_mode.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/client.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/error.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/instrumentation.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/logger.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/secrets.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/settings.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/slugify.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/common/utils.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/deploy/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/deploy/deploy.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/deploy/format.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/deploy/parser.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/errors.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/functions/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/functions/common.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/functions/decorator.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/functions/mcp/mcp.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/functions/remote/remote.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/acl.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/agent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/agent_chain.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/agent_history.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/agent_history_event.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/agent_release.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/agent_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/api_key.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/configuration.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/continent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/core_event.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/core_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/core_spec_configurations.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/country.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/create_api_key_for_service_account_body.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/create_workspace_service_account_body.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/create_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/delete_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/environment.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/environment_metadata.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/environment_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/environment_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/flavor.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/function.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/function_kit.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/function_release.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/function_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/get_trace_ids_response_200.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/get_trace_logs_response_200.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/get_trace_response_200.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/get_workspace_service_accounts_response_200_item.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/histogram_bucket.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/histogram_stats.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/integration_connection.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/integration_connection_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/integration_connection_spec_config.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/integration_connection_spec_secret.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/integration_model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/integration_repository.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/invite_workspace_user_body.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/last_n_requests_metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/latency_metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/location_response.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/metadata.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/metadata_labels.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/metrics_models.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/metrics_request_total_per_code.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/metrics_rps_per_code.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/model.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/model_private_cluster.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/model_release.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/model_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/owner_fields.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/pending_invitation.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/pending_invitation_accept.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/pending_invitation_render.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/pending_invitation_render_invited_by.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/pending_invitation_render_workspace.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/pending_invitation_workspace_details.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/pod_template_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/policy.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/policy_location.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/policy_max_tokens.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/policy_spec.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/private_cluster.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/private_location.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/repository.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_duration_over_time_metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_duration_over_time_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_total_by_origin_metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_total_by_origin_metric_request_total_by_origin.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_total_by_origin_metric_request_total_by_origin_and_code.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_total_metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_total_metric_request_total_per_code.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/request_total_metric_rps_per_code.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/resource_environment_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/resource_environment_metrics_request_total_per_code.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/resource_environment_metrics_rps_per_code.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/resource_log.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/runtime.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/runtime_readiness_probe.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/runtime_resources.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/serverless_config.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/spec_configuration.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_agent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_agent_labels.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_configuration.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_configuration_option.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_function.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_function_kit.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_function_labels.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/store_function_parameter.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/time_fields.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/token_rate_metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/token_rate_metrics.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/token_total_metric.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/trace_ids_response.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/update_workspace_service_account_body.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/update_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/update_workspace_user_role_body.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/websocket_channel.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/workspace_labels.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/models/workspace_user.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/py.typed +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/run.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/serve/app.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/serve/middlewares/__init__.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/serve/middlewares/accesslog.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/serve/middlewares/processtime.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/beamlit/types.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/integrationtest/agent.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/integrationtest/beamlit.yaml +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/integrationtest/chat.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/integrationtest/functions/helloworld.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/integrationtest/main.py +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/integrationtest/pyproject.toml +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/src/integrationtest/uv.lock +0 -0
- {beamlit-0.0.47rc94 → beamlit-0.0.48}/uv.lock +0 -0
@@ -11,7 +11,7 @@ from beamlit.authentication import new_client
|
|
11
11
|
from beamlit.common.settings import init
|
12
12
|
from beamlit.errors import UnexpectedStatus
|
13
13
|
from beamlit.functions import get_functions
|
14
|
-
from beamlit.models import Agent,
|
14
|
+
from beamlit.models import Agent, AgentSpec, EnvironmentMetadata
|
15
15
|
|
16
16
|
from .chat import get_chat_model_full
|
17
17
|
|
@@ -60,7 +60,7 @@ def agent(
|
|
60
60
|
return wrapped
|
61
61
|
|
62
62
|
if agent is not None:
|
63
|
-
metadata =
|
63
|
+
metadata = EnvironmentMetadata(**agent.get("metadata", {}))
|
64
64
|
spec = AgentSpec(**agent.get("spec", {}))
|
65
65
|
agent = Agent(metadata=metadata, spec=spec)
|
66
66
|
if agent.spec.model and chat_model is None:
|
@@ -141,7 +141,7 @@ def agent(
|
|
141
141
|
except AttributeError: # special case for azure-marketplace where it uses the old OpenAI interface (no tools)
|
142
142
|
logger.warning("Using the old OpenAI interface for Azure Marketplace, no tools available")
|
143
143
|
_agent = create_react_agent(chat_model, [], checkpointer=memory)
|
144
|
-
|
144
|
+
|
145
145
|
settings.agent.agent = _agent
|
146
146
|
else:
|
147
147
|
settings.agent.agent = override_agent
|
@@ -0,0 +1,161 @@
|
|
1
|
+
from http import HTTPStatus
|
2
|
+
from typing import Any, Optional, Union, cast
|
3
|
+
|
4
|
+
import httpx
|
5
|
+
|
6
|
+
from ... import errors
|
7
|
+
from ...client import AuthenticatedClient, Client
|
8
|
+
from ...models.account import Account
|
9
|
+
from ...types import Response
|
10
|
+
|
11
|
+
|
12
|
+
def _get_kwargs(
|
13
|
+
account_id: str,
|
14
|
+
) -> dict[str, Any]:
|
15
|
+
_kwargs: dict[str, Any] = {
|
16
|
+
"method": "delete",
|
17
|
+
"url": f"/accounts/{account_id}",
|
18
|
+
}
|
19
|
+
|
20
|
+
return _kwargs
|
21
|
+
|
22
|
+
|
23
|
+
def _parse_response(
|
24
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
25
|
+
) -> Optional[Union[Account, Any]]:
|
26
|
+
if response.status_code == 200:
|
27
|
+
response_200 = Account.from_dict(response.json())
|
28
|
+
|
29
|
+
return response_200
|
30
|
+
if response.status_code == 404:
|
31
|
+
response_404 = cast(Any, None)
|
32
|
+
return response_404
|
33
|
+
if client.raise_on_unexpected_status:
|
34
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
35
|
+
else:
|
36
|
+
return None
|
37
|
+
|
38
|
+
|
39
|
+
def _build_response(
|
40
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
41
|
+
) -> Response[Union[Account, Any]]:
|
42
|
+
return Response(
|
43
|
+
status_code=HTTPStatus(response.status_code),
|
44
|
+
content=response.content,
|
45
|
+
headers=response.headers,
|
46
|
+
parsed=_parse_response(client=client, response=response),
|
47
|
+
)
|
48
|
+
|
49
|
+
|
50
|
+
def sync_detailed(
|
51
|
+
account_id: str,
|
52
|
+
*,
|
53
|
+
client: AuthenticatedClient,
|
54
|
+
) -> Response[Union[Account, Any]]:
|
55
|
+
"""Delete account
|
56
|
+
|
57
|
+
Deletes an account by name.
|
58
|
+
|
59
|
+
Args:
|
60
|
+
account_id (str):
|
61
|
+
|
62
|
+
Raises:
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
65
|
+
|
66
|
+
Returns:
|
67
|
+
Response[Union[Account, Any]]
|
68
|
+
"""
|
69
|
+
|
70
|
+
kwargs = _get_kwargs(
|
71
|
+
account_id=account_id,
|
72
|
+
)
|
73
|
+
|
74
|
+
response = client.get_httpx_client().request(
|
75
|
+
**kwargs,
|
76
|
+
)
|
77
|
+
|
78
|
+
return _build_response(client=client, response=response)
|
79
|
+
|
80
|
+
|
81
|
+
def sync(
|
82
|
+
account_id: str,
|
83
|
+
*,
|
84
|
+
client: AuthenticatedClient,
|
85
|
+
) -> Optional[Union[Account, Any]]:
|
86
|
+
"""Delete account
|
87
|
+
|
88
|
+
Deletes an account by name.
|
89
|
+
|
90
|
+
Args:
|
91
|
+
account_id (str):
|
92
|
+
|
93
|
+
Raises:
|
94
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
95
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
96
|
+
|
97
|
+
Returns:
|
98
|
+
Union[Account, Any]
|
99
|
+
"""
|
100
|
+
|
101
|
+
return sync_detailed(
|
102
|
+
account_id=account_id,
|
103
|
+
client=client,
|
104
|
+
).parsed
|
105
|
+
|
106
|
+
|
107
|
+
async def asyncio_detailed(
|
108
|
+
account_id: str,
|
109
|
+
*,
|
110
|
+
client: AuthenticatedClient,
|
111
|
+
) -> Response[Union[Account, Any]]:
|
112
|
+
"""Delete account
|
113
|
+
|
114
|
+
Deletes an account by name.
|
115
|
+
|
116
|
+
Args:
|
117
|
+
account_id (str):
|
118
|
+
|
119
|
+
Raises:
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
122
|
+
|
123
|
+
Returns:
|
124
|
+
Response[Union[Account, Any]]
|
125
|
+
"""
|
126
|
+
|
127
|
+
kwargs = _get_kwargs(
|
128
|
+
account_id=account_id,
|
129
|
+
)
|
130
|
+
|
131
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
132
|
+
|
133
|
+
return _build_response(client=client, response=response)
|
134
|
+
|
135
|
+
|
136
|
+
async def asyncio(
|
137
|
+
account_id: str,
|
138
|
+
*,
|
139
|
+
client: AuthenticatedClient,
|
140
|
+
) -> Optional[Union[Account, Any]]:
|
141
|
+
"""Delete account
|
142
|
+
|
143
|
+
Deletes an account by name.
|
144
|
+
|
145
|
+
Args:
|
146
|
+
account_id (str):
|
147
|
+
|
148
|
+
Raises:
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
151
|
+
|
152
|
+
Returns:
|
153
|
+
Union[Account, Any]
|
154
|
+
"""
|
155
|
+
|
156
|
+
return (
|
157
|
+
await asyncio_detailed(
|
158
|
+
account_id=account_id,
|
159
|
+
client=client,
|
160
|
+
)
|
161
|
+
).parsed
|
@@ -0,0 +1,154 @@
|
|
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 ...models.account import Account
|
9
|
+
from ...types import Response
|
10
|
+
|
11
|
+
|
12
|
+
def _get_kwargs(
|
13
|
+
account_id: str,
|
14
|
+
) -> dict[str, Any]:
|
15
|
+
_kwargs: dict[str, Any] = {
|
16
|
+
"method": "get",
|
17
|
+
"url": f"/accounts/{account_id}",
|
18
|
+
}
|
19
|
+
|
20
|
+
return _kwargs
|
21
|
+
|
22
|
+
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Account]:
|
24
|
+
if response.status_code == 200:
|
25
|
+
response_200 = Account.from_dict(response.json())
|
26
|
+
|
27
|
+
return response_200
|
28
|
+
if client.raise_on_unexpected_status:
|
29
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
30
|
+
else:
|
31
|
+
return None
|
32
|
+
|
33
|
+
|
34
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Account]:
|
35
|
+
return Response(
|
36
|
+
status_code=HTTPStatus(response.status_code),
|
37
|
+
content=response.content,
|
38
|
+
headers=response.headers,
|
39
|
+
parsed=_parse_response(client=client, response=response),
|
40
|
+
)
|
41
|
+
|
42
|
+
|
43
|
+
def sync_detailed(
|
44
|
+
account_id: str,
|
45
|
+
*,
|
46
|
+
client: AuthenticatedClient,
|
47
|
+
) -> Response[Account]:
|
48
|
+
"""Get account by name
|
49
|
+
|
50
|
+
Returns an account by name.
|
51
|
+
|
52
|
+
Args:
|
53
|
+
account_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[Account]
|
61
|
+
"""
|
62
|
+
|
63
|
+
kwargs = _get_kwargs(
|
64
|
+
account_id=account_id,
|
65
|
+
)
|
66
|
+
|
67
|
+
response = client.get_httpx_client().request(
|
68
|
+
**kwargs,
|
69
|
+
)
|
70
|
+
|
71
|
+
return _build_response(client=client, response=response)
|
72
|
+
|
73
|
+
|
74
|
+
def sync(
|
75
|
+
account_id: str,
|
76
|
+
*,
|
77
|
+
client: AuthenticatedClient,
|
78
|
+
) -> Optional[Account]:
|
79
|
+
"""Get account by name
|
80
|
+
|
81
|
+
Returns an account by name.
|
82
|
+
|
83
|
+
Args:
|
84
|
+
account_id (str):
|
85
|
+
|
86
|
+
Raises:
|
87
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
88
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
89
|
+
|
90
|
+
Returns:
|
91
|
+
Account
|
92
|
+
"""
|
93
|
+
|
94
|
+
return sync_detailed(
|
95
|
+
account_id=account_id,
|
96
|
+
client=client,
|
97
|
+
).parsed
|
98
|
+
|
99
|
+
|
100
|
+
async def asyncio_detailed(
|
101
|
+
account_id: str,
|
102
|
+
*,
|
103
|
+
client: AuthenticatedClient,
|
104
|
+
) -> Response[Account]:
|
105
|
+
"""Get account by name
|
106
|
+
|
107
|
+
Returns an account by name.
|
108
|
+
|
109
|
+
Args:
|
110
|
+
account_id (str):
|
111
|
+
|
112
|
+
Raises:
|
113
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
114
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
115
|
+
|
116
|
+
Returns:
|
117
|
+
Response[Account]
|
118
|
+
"""
|
119
|
+
|
120
|
+
kwargs = _get_kwargs(
|
121
|
+
account_id=account_id,
|
122
|
+
)
|
123
|
+
|
124
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
125
|
+
|
126
|
+
return _build_response(client=client, response=response)
|
127
|
+
|
128
|
+
|
129
|
+
async def asyncio(
|
130
|
+
account_id: str,
|
131
|
+
*,
|
132
|
+
client: AuthenticatedClient,
|
133
|
+
) -> Optional[Account]:
|
134
|
+
"""Get account by name
|
135
|
+
|
136
|
+
Returns an account by name.
|
137
|
+
|
138
|
+
Args:
|
139
|
+
account_id (str):
|
140
|
+
|
141
|
+
Raises:
|
142
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
143
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
144
|
+
|
145
|
+
Returns:
|
146
|
+
Account
|
147
|
+
"""
|
148
|
+
|
149
|
+
return (
|
150
|
+
await asyncio_detailed(
|
151
|
+
account_id=account_id,
|
152
|
+
client=client,
|
153
|
+
)
|
154
|
+
).parsed
|
@@ -0,0 +1,139 @@
|
|
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 ...models.account import Account
|
9
|
+
from ...types import Response
|
10
|
+
|
11
|
+
|
12
|
+
def _get_kwargs() -> dict[str, Any]:
|
13
|
+
_kwargs: dict[str, Any] = {
|
14
|
+
"method": "get",
|
15
|
+
"url": "/accounts",
|
16
|
+
}
|
17
|
+
|
18
|
+
return _kwargs
|
19
|
+
|
20
|
+
|
21
|
+
def _parse_response(
|
22
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
23
|
+
) -> Optional[list["Account"]]:
|
24
|
+
if response.status_code == 200:
|
25
|
+
response_200 = []
|
26
|
+
_response_200 = response.json()
|
27
|
+
for response_200_item_data in _response_200:
|
28
|
+
response_200_item = Account.from_dict(response_200_item_data)
|
29
|
+
|
30
|
+
response_200.append(response_200_item)
|
31
|
+
|
32
|
+
return response_200
|
33
|
+
if client.raise_on_unexpected_status:
|
34
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
35
|
+
else:
|
36
|
+
return None
|
37
|
+
|
38
|
+
|
39
|
+
def _build_response(
|
40
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
41
|
+
) -> Response[list["Account"]]:
|
42
|
+
return Response(
|
43
|
+
status_code=HTTPStatus(response.status_code),
|
44
|
+
content=response.content,
|
45
|
+
headers=response.headers,
|
46
|
+
parsed=_parse_response(client=client, response=response),
|
47
|
+
)
|
48
|
+
|
49
|
+
|
50
|
+
def sync_detailed(
|
51
|
+
*,
|
52
|
+
client: AuthenticatedClient,
|
53
|
+
) -> Response[list["Account"]]:
|
54
|
+
"""List accounts
|
55
|
+
|
56
|
+
Returns a list of all accounts.
|
57
|
+
|
58
|
+
Raises:
|
59
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
60
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
61
|
+
|
62
|
+
Returns:
|
63
|
+
Response[list['Account']]
|
64
|
+
"""
|
65
|
+
|
66
|
+
kwargs = _get_kwargs()
|
67
|
+
|
68
|
+
response = client.get_httpx_client().request(
|
69
|
+
**kwargs,
|
70
|
+
)
|
71
|
+
|
72
|
+
return _build_response(client=client, response=response)
|
73
|
+
|
74
|
+
|
75
|
+
def sync(
|
76
|
+
*,
|
77
|
+
client: AuthenticatedClient,
|
78
|
+
) -> Optional[list["Account"]]:
|
79
|
+
"""List accounts
|
80
|
+
|
81
|
+
Returns a list of all accounts.
|
82
|
+
|
83
|
+
Raises:
|
84
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
85
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
86
|
+
|
87
|
+
Returns:
|
88
|
+
list['Account']
|
89
|
+
"""
|
90
|
+
|
91
|
+
return sync_detailed(
|
92
|
+
client=client,
|
93
|
+
).parsed
|
94
|
+
|
95
|
+
|
96
|
+
async def asyncio_detailed(
|
97
|
+
*,
|
98
|
+
client: AuthenticatedClient,
|
99
|
+
) -> Response[list["Account"]]:
|
100
|
+
"""List accounts
|
101
|
+
|
102
|
+
Returns a list of all accounts.
|
103
|
+
|
104
|
+
Raises:
|
105
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
106
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
107
|
+
|
108
|
+
Returns:
|
109
|
+
Response[list['Account']]
|
110
|
+
"""
|
111
|
+
|
112
|
+
kwargs = _get_kwargs()
|
113
|
+
|
114
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
115
|
+
|
116
|
+
return _build_response(client=client, response=response)
|
117
|
+
|
118
|
+
|
119
|
+
async def asyncio(
|
120
|
+
*,
|
121
|
+
client: AuthenticatedClient,
|
122
|
+
) -> Optional[list["Account"]]:
|
123
|
+
"""List accounts
|
124
|
+
|
125
|
+
Returns a list of all accounts.
|
126
|
+
|
127
|
+
Raises:
|
128
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
129
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
130
|
+
|
131
|
+
Returns:
|
132
|
+
list['Account']
|
133
|
+
"""
|
134
|
+
|
135
|
+
return (
|
136
|
+
await asyncio_detailed(
|
137
|
+
client=client,
|
138
|
+
)
|
139
|
+
).parsed
|
@@ -0,0 +1,176 @@
|
|
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 ...models.account import Account
|
9
|
+
from ...types import Response
|
10
|
+
|
11
|
+
|
12
|
+
def _get_kwargs(
|
13
|
+
account_id: str,
|
14
|
+
*,
|
15
|
+
body: Account,
|
16
|
+
) -> dict[str, Any]:
|
17
|
+
headers: dict[str, Any] = {}
|
18
|
+
|
19
|
+
_kwargs: dict[str, Any] = {
|
20
|
+
"method": "put",
|
21
|
+
"url": f"/accounts/{account_id}",
|
22
|
+
}
|
23
|
+
|
24
|
+
_body = body.to_dict()
|
25
|
+
|
26
|
+
_kwargs["json"] = _body
|
27
|
+
headers["Content-Type"] = "application/json"
|
28
|
+
|
29
|
+
_kwargs["headers"] = headers
|
30
|
+
return _kwargs
|
31
|
+
|
32
|
+
|
33
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Account]:
|
34
|
+
if response.status_code == 200:
|
35
|
+
response_200 = Account.from_dict(response.json())
|
36
|
+
|
37
|
+
return response_200
|
38
|
+
if client.raise_on_unexpected_status:
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
40
|
+
else:
|
41
|
+
return None
|
42
|
+
|
43
|
+
|
44
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Account]:
|
45
|
+
return Response(
|
46
|
+
status_code=HTTPStatus(response.status_code),
|
47
|
+
content=response.content,
|
48
|
+
headers=response.headers,
|
49
|
+
parsed=_parse_response(client=client, response=response),
|
50
|
+
)
|
51
|
+
|
52
|
+
|
53
|
+
def sync_detailed(
|
54
|
+
account_id: str,
|
55
|
+
*,
|
56
|
+
client: AuthenticatedClient,
|
57
|
+
body: Account,
|
58
|
+
) -> Response[Account]:
|
59
|
+
"""Update account
|
60
|
+
|
61
|
+
Updates an account by name.
|
62
|
+
|
63
|
+
Args:
|
64
|
+
account_id (str):
|
65
|
+
body (Account): Account
|
66
|
+
|
67
|
+
Raises:
|
68
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
69
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
70
|
+
|
71
|
+
Returns:
|
72
|
+
Response[Account]
|
73
|
+
"""
|
74
|
+
|
75
|
+
kwargs = _get_kwargs(
|
76
|
+
account_id=account_id,
|
77
|
+
body=body,
|
78
|
+
)
|
79
|
+
|
80
|
+
response = client.get_httpx_client().request(
|
81
|
+
**kwargs,
|
82
|
+
)
|
83
|
+
|
84
|
+
return _build_response(client=client, response=response)
|
85
|
+
|
86
|
+
|
87
|
+
def sync(
|
88
|
+
account_id: str,
|
89
|
+
*,
|
90
|
+
client: AuthenticatedClient,
|
91
|
+
body: Account,
|
92
|
+
) -> Optional[Account]:
|
93
|
+
"""Update account
|
94
|
+
|
95
|
+
Updates an account by name.
|
96
|
+
|
97
|
+
Args:
|
98
|
+
account_id (str):
|
99
|
+
body (Account): Account
|
100
|
+
|
101
|
+
Raises:
|
102
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
103
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
104
|
+
|
105
|
+
Returns:
|
106
|
+
Account
|
107
|
+
"""
|
108
|
+
|
109
|
+
return sync_detailed(
|
110
|
+
account_id=account_id,
|
111
|
+
client=client,
|
112
|
+
body=body,
|
113
|
+
).parsed
|
114
|
+
|
115
|
+
|
116
|
+
async def asyncio_detailed(
|
117
|
+
account_id: str,
|
118
|
+
*,
|
119
|
+
client: AuthenticatedClient,
|
120
|
+
body: Account,
|
121
|
+
) -> Response[Account]:
|
122
|
+
"""Update account
|
123
|
+
|
124
|
+
Updates an account by name.
|
125
|
+
|
126
|
+
Args:
|
127
|
+
account_id (str):
|
128
|
+
body (Account): Account
|
129
|
+
|
130
|
+
Raises:
|
131
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
132
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
133
|
+
|
134
|
+
Returns:
|
135
|
+
Response[Account]
|
136
|
+
"""
|
137
|
+
|
138
|
+
kwargs = _get_kwargs(
|
139
|
+
account_id=account_id,
|
140
|
+
body=body,
|
141
|
+
)
|
142
|
+
|
143
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
144
|
+
|
145
|
+
return _build_response(client=client, response=response)
|
146
|
+
|
147
|
+
|
148
|
+
async def asyncio(
|
149
|
+
account_id: str,
|
150
|
+
*,
|
151
|
+
client: AuthenticatedClient,
|
152
|
+
body: Account,
|
153
|
+
) -> Optional[Account]:
|
154
|
+
"""Update account
|
155
|
+
|
156
|
+
Updates an account by name.
|
157
|
+
|
158
|
+
Args:
|
159
|
+
account_id (str):
|
160
|
+
body (Account): Account
|
161
|
+
|
162
|
+
Raises:
|
163
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
164
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
165
|
+
|
166
|
+
Returns:
|
167
|
+
Account
|
168
|
+
"""
|
169
|
+
|
170
|
+
return (
|
171
|
+
await asyncio_detailed(
|
172
|
+
account_id=account_id,
|
173
|
+
client=client,
|
174
|
+
body=body,
|
175
|
+
)
|
176
|
+
).parsed
|