scalekit-sdk-python 2.24.0__tar.gz → 2.25.0__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.
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/PKG-INFO +1 -1
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/_version.py +1 -1
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/actions.py +211 -4
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/create_connected_account_request.py +2 -7
- scalekit_sdk_python-2.25.0/scalekit/actions/models/requests/oauth_token.py +24 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/update_connected_account_request.py +2 -7
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/get_connected_account_auth_response.py +3 -3
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/list_connected_accounts_response.py +3 -3
- scalekit_sdk_python-2.25.0/scalekit/actions/models/responses/tool_discovery_responses.py +170 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/types.py +10 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/core.py +1 -1
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/tools.py +82 -6
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/auth_pb2.py +4 -4
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/auth_pb2.pyi +2 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connected_accounts/connected_accounts_pb2.py +28 -26
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connected_accounts/connected_accounts_pb2.pyi +4 -2
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/providers/providers_pb2.py +56 -50
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/providers/providers_pb2.pyi +12 -6
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tools/tools_pb2.py +62 -50
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tools/tools_pb2.pyi +27 -10
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit_sdk_python.egg-info/PKG-INFO +1 -1
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit_sdk_python.egg-info/SOURCES.txt +6 -0
- scalekit_sdk_python-2.25.0/tests/test_actions_tool_discovery.py +208 -0
- scalekit_sdk_python-2.25.0/tests/test_connected_account_unset_timestamps.py +69 -0
- scalekit_sdk_python-2.25.0/tests/test_oauth_token_expires_at.py +124 -0
- scalekit_sdk_python-2.25.0/tests/test_tools_definition_format.py +170 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_transient_error_no_retry.py +5 -2
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/LICENSE +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/README.md +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/buf/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/buf/validate/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/buf/validate/validate_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/buf/validate/validate_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/buf/validate/validate_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/pyproject.toml +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/_convert.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/_proxy_path.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/_resumable_upload.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/connections/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/connections/errors.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/connections/models.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/connections/service.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/frameworks/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/frameworks/google_adk.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/frameworks/langchain.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/frameworks/types/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/frameworks/types/google_adk_tool.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/frameworks/util.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/custom_provider.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/mcp_config.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/mcp_connection_auth_state.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/mcp_instance.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/create_custom_provider_request.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/delete_custom_provider_request.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/list_providers_request.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/mcp_request.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/tool_request.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/requests/update_custom_provider_request.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/create_connected_account_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/create_custom_provider_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/create_mcp_config_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/create_mcp_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/create_mcp_session_token_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/delete_connected_account_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/delete_custom_provider_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/delete_mcp_config_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/delete_mcp_instance_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/ensure_mcp_instance_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/execute_tool_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/get_mcp_instance_auth_state_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/get_mcp_instance_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/get_mcp_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/list_mcp_configs_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/list_mcp_connected_accounts_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/list_mcp_instances_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/list_providers_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/list_tools_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/magic_link_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/update_connected_account_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/update_custom_provider_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/update_mcp_config_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/update_mcp_instance_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/responses/verify_connected_account_user_response.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/tool_input_output.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/tool_mapping.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/trigger_event.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/triggers.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/models/upload_progress.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/modifier.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/actions/triggers.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/auth.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/client.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/common/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/common/_webhook_signature.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/common/exceptions.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/common/scalekit.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/common/user.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/connected_accounts.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/connection.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/constants/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/constants/user.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/directory.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/domain.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/events.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/frameworks/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/frameworks/django.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/frameworks/fastapi.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/frameworks/flask.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/m2m_client.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/mcp.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/middleware/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/middleware/csrf_state.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/middleware/protocol.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/middleware/session_crypto.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/middleware/session_manager.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/organization.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/passwordless.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/permissions.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/providers.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/resource.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/role.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/sessions.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/token.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/triggers.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/users.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/utils/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/utils/directory.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/agentkit_logs/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/agentkit_logs/agentkit_analytics_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/agentkit_logs/agentkit_analytics_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/agentkit_logs/agentkit_analytics_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/agentkit_logs/agentkit_logs_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/agentkit_logs/agentkit_logs_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/agentkit_logs/agentkit_logs_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auditlogs/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auditlogs/auditlogs_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auditlogs/auditlogs_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auditlogs/auditlogs_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/auth_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/passwordless_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/passwordless_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/passwordless_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/totp_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/totp_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/totp_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/webauthn_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/webauthn_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/auth/webauthn_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/billing/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/billing/billing_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/billing/billing_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/billing/billing_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/clients/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/clients/clients_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/clients/clients_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/clients/clients_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/commons/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/commons/commons_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/commons/commons_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/commons/commons_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connected_accounts/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connected_accounts/connected_accounts_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connections/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connections/connections_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connections/connections_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/connections/connections_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/directories/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/directories/directories_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/directories/directories_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/directories/directories_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/domains/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/domains/domains_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/domains/domains_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/domains/domains_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/emails/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/emails/emails_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/emails/emails_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/emails/emails_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/environments/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/environments/environments_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/environments/environments_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/environments/environments_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/errdetails/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/errdetails/errdetails_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/errdetails/errdetails_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/errdetails/errdetails_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/events/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/events/events_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/events/events_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/events/events_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/gateway/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/gateway/gateway_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/gateway/gateway_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/gateway/gateway_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/interceptors/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/interceptors/interceptors_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/interceptors/interceptors_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/interceptors/interceptors_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/keys/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/keys/keys_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/keys/keys_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/keys/keys_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/logstreams/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/logstreams/logstreams_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/logstreams/logstreams_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/logstreams/logstreams_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/mcp/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/mcp/mcp_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/mcp/mcp_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/mcp/mcp_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/members/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/members/members_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/members/members_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/members/members_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/migrations/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/migrations/migrations_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/migrations/migrations_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/migrations/migrations_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/options/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/options/options_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/options/options_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/options/options_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/organizations/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/organizations/organizations_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/organizations/organizations_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/organizations/organizations_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/providers/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/providers/providers_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/roles/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/roles/roles_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/roles/roles_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/roles/roles_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/secrets/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/secrets/secrets_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/secrets/secrets_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/secrets/secrets_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/sessions/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/sessions/sessions_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/sessions/sessions_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/sessions/sessions_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tokens/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tokens/tokens_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tokens/tokens_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tokens/tokens_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tools/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/tools/tools_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/triggers/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/triggers/triggers_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/triggers/triggers_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/triggers/triggers_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/user_attributes/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/user_attributes/user_attributes_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/user_attributes/user_attributes_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/user_attributes/user_attributes_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/users/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/users/users_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/users/users_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/users/users_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/webhooks/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/webhooks/webhooks_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/webhooks/webhooks_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/webhooks/webhooks_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/workspaces/__init__.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/workspaces/workspaces_pb2.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/workspaces/workspaces_pb2.pyi +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/v1/workspaces/workspaces_pb2_grpc.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit/webauthn.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit_sdk_python.egg-info/dependency_links.txt +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit_sdk_python.egg-info/requires.txt +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/scalekit_sdk_python.egg-info/top_level.txt +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/setup.cfg +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/setup.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_actions.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_actions_list_connected_accounts_pagination.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_actions_request_path.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_actions_response_fields.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_agentkit_connections.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_call_timeout.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_connected_accounts.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_connection.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_directory.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_domain.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_events.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_http_timeout.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_keepalive_channel_options.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_list_connected_accounts_query_and_org_wide.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_login.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_m2m_client.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_mcp.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_mcp_connection_session_token.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_mcp_session_token_access_level.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_mcp_tool_exposure.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_middleware_csrf_state.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_middleware_django.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_middleware_fastapi.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_middleware_flask.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_middleware_session_crypto.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_middleware_session_manager.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_multi_issuer.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_org_roles.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_organization.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_organization_session_policy.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_organization_slug_logo.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_passwordless.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_permissions.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_providers.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_resource.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_resumable_upload.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_resumable_upload_live.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_role_defaults_dependent.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_roles.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_sessions.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_sk819_retry_behavior.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_tokens.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_tools.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_trigger_events.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_triggers_api.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_triggers_api_live.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_user_roles_permissions.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_users.py +0 -0
- {scalekit_sdk_python-2.24.0 → scalekit_sdk_python-2.25.0}/tests/test_webauthn_credentials.py +0 -0
|
@@ -29,7 +29,10 @@ from scalekit.common.exceptions import ScalekitNotFoundException
|
|
|
29
29
|
from scalekit.actions.triggers import ActionTriggers
|
|
30
30
|
from scalekit.triggers import TriggersClient
|
|
31
31
|
from scalekit.mcp import _check_connection_token_args
|
|
32
|
-
from scalekit.v1.tools.tools_pb2 import Filter
|
|
32
|
+
from scalekit.v1.tools.tools_pb2 import Filter, ScopedToolFilter
|
|
33
|
+
from scalekit.actions.models.responses.tool_discovery_responses import (
|
|
34
|
+
ListScopedToolsResponse, ListAvailableToolsResponse, SearchToolsResponse,
|
|
35
|
+
)
|
|
33
36
|
from google.protobuf.wrappers_pb2 import BoolValue
|
|
34
37
|
|
|
35
38
|
|
|
@@ -294,6 +297,117 @@ class ActionClient:
|
|
|
294
297
|
|
|
295
298
|
return ListToolsResponse.from_proto(proto_response)
|
|
296
299
|
|
|
300
|
+
def list_scoped_tools(
|
|
301
|
+
self,
|
|
302
|
+
identifier: str,
|
|
303
|
+
providers: Optional[List[str]] = None,
|
|
304
|
+
tool_names: Optional[List[str]] = None,
|
|
305
|
+
connection_names: Optional[List[str]] = None,
|
|
306
|
+
page_size: Optional[int] = None,
|
|
307
|
+
page_token: Optional[str] = None,
|
|
308
|
+
**kwargs
|
|
309
|
+
) -> ListScopedToolsResponse:
|
|
310
|
+
"""
|
|
311
|
+
List the tools an identifier can run, narrowed by provider, tool name or connection.
|
|
312
|
+
|
|
313
|
+
Thin wrapper around ToolsClient.list_scoped_tools. Each result carries the connected
|
|
314
|
+
account the tool runs against. Paginated: follow ``next_page_token`` for the full set.
|
|
315
|
+
|
|
316
|
+
:param identifier: Connected-account identifier: your app's ID for the user, such as user_123 (required)
|
|
317
|
+
:type: str
|
|
318
|
+
:param providers: Only tools from these providers, e.g. ['GMAIL', 'SLACK'] (optional)
|
|
319
|
+
:type: List[str]
|
|
320
|
+
:param tool_names: Only these tools (optional)
|
|
321
|
+
:type: List[str]
|
|
322
|
+
:param connection_names: Only tools on these connections, e.g. ['gmail-ab12cd34'] (optional)
|
|
323
|
+
:type: List[str]
|
|
324
|
+
:param page_size: Maximum number of tools to return per page (optional)
|
|
325
|
+
:type: int
|
|
326
|
+
:param page_token: Token from a previous response for pagination (optional)
|
|
327
|
+
:type: str
|
|
328
|
+
|
|
329
|
+
:returns:
|
|
330
|
+
ListScopedToolsResponse with ``tools`` (each a ScopedTool with ``tool``,
|
|
331
|
+
``identifier`` and ``connected_account_id``) and pagination fields
|
|
332
|
+
"""
|
|
333
|
+
if not identifier:
|
|
334
|
+
raise ValueError("identifier is required")
|
|
335
|
+
result_tuple = self.tools.list_scoped_tools(
|
|
336
|
+
identifier,
|
|
337
|
+
filter=ScopedToolFilter(
|
|
338
|
+
providers=providers or [],
|
|
339
|
+
tool_names=tool_names or [],
|
|
340
|
+
connection_names=connection_names or [],
|
|
341
|
+
),
|
|
342
|
+
page_size=page_size,
|
|
343
|
+
page_token=page_token,
|
|
344
|
+
)
|
|
345
|
+
return ListScopedToolsResponse.from_proto(result_tuple[0])
|
|
346
|
+
|
|
347
|
+
def list_available_tools(
|
|
348
|
+
self,
|
|
349
|
+
identifier: str,
|
|
350
|
+
page_size: Optional[int] = None,
|
|
351
|
+
page_token: Optional[str] = None,
|
|
352
|
+
**kwargs
|
|
353
|
+
) -> ListAvailableToolsResponse:
|
|
354
|
+
"""
|
|
355
|
+
List every tool available to an identifier across all of its connected accounts.
|
|
356
|
+
|
|
357
|
+
Thin wrapper around ToolsClient.list_available_tools. Paginated: follow
|
|
358
|
+
``next_page_token`` for the full set.
|
|
359
|
+
|
|
360
|
+
:param identifier: Connected-account identifier: your app's ID for the user, such as user_123 (required)
|
|
361
|
+
:type: str
|
|
362
|
+
:param page_size: Maximum number of tools to return per page (optional)
|
|
363
|
+
:type: int
|
|
364
|
+
:param page_token: Token from a previous response for pagination (optional)
|
|
365
|
+
:type: str
|
|
366
|
+
|
|
367
|
+
:returns:
|
|
368
|
+
ListAvailableToolsResponse with ``tools`` (the same Tool model as list_tools)
|
|
369
|
+
and pagination fields
|
|
370
|
+
"""
|
|
371
|
+
if not identifier:
|
|
372
|
+
raise ValueError("identifier is required")
|
|
373
|
+
result_tuple = self.tools.list_available_tools(
|
|
374
|
+
identifier, page_size=page_size, page_token=page_token
|
|
375
|
+
)
|
|
376
|
+
return ListAvailableToolsResponse.from_proto(result_tuple[0])
|
|
377
|
+
|
|
378
|
+
def search_tools(
|
|
379
|
+
self,
|
|
380
|
+
query: str,
|
|
381
|
+
identifier: Optional[str] = None,
|
|
382
|
+
top_k: Optional[int] = None,
|
|
383
|
+
**kwargs
|
|
384
|
+
) -> SearchToolsResponse:
|
|
385
|
+
"""
|
|
386
|
+
Find tools that fit a goal, ranked by relevance to a natural-language query.
|
|
387
|
+
|
|
388
|
+
Thin wrapper around ToolsClient.search_tools. Each result's ``score`` is comparable
|
|
389
|
+
only within one response. With ``identifier``, each result's ``connections`` lists
|
|
390
|
+
that identifier's connections for the tool's provider with a ``readiness_state`` of
|
|
391
|
+
READY, NEEDS_CONNECTION or NEEDS_REAUTH; check it before executing. An empty list
|
|
392
|
+
means the identifier has no connection for that provider.
|
|
393
|
+
|
|
394
|
+
:param query: What the agent needs to do, in plain words or keywords (required)
|
|
395
|
+
:type: str
|
|
396
|
+
:param identifier: Connected-account identifier to report readiness for (optional)
|
|
397
|
+
:type: str
|
|
398
|
+
:param top_k: Maximum number of results (optional; server default 10, max 50)
|
|
399
|
+
:type: int
|
|
400
|
+
|
|
401
|
+
:returns:
|
|
402
|
+
SearchToolsResponse with ``tools`` (each a SearchedTool with ``name``,
|
|
403
|
+
``provider``, ``description``, ``score`` and ``connections``)
|
|
404
|
+
"""
|
|
405
|
+
if not query:
|
|
406
|
+
raise ValueError("query is required")
|
|
407
|
+
result = self.tools.search_tools(query, identifier=identifier, top_k=top_k)
|
|
408
|
+
proto_response = result[0] if isinstance(result, tuple) else result
|
|
409
|
+
return SearchToolsResponse.from_proto(proto_response)
|
|
410
|
+
|
|
297
411
|
def get_authorization_link(
|
|
298
412
|
self,
|
|
299
413
|
identifier: Optional[str] = None,
|
|
@@ -1018,7 +1132,38 @@ class ActionClient:
|
|
|
1018
1132
|
:type: str
|
|
1019
1133
|
:param identifier: Connected account identifier (required)
|
|
1020
1134
|
:type: str
|
|
1021
|
-
:param authorization_details: Authorization details (
|
|
1135
|
+
:param authorization_details: Authorization details (optional). One of:
|
|
1136
|
+
|
|
1137
|
+
- ``{"oauth_token": {...}}`` — import an OAuth token obtained outside Scalekit::
|
|
1138
|
+
|
|
1139
|
+
{
|
|
1140
|
+
"oauth_token": {
|
|
1141
|
+
"access_token": "ya29.a0...",
|
|
1142
|
+
"refresh_token": "1//0g...", # optional
|
|
1143
|
+
"scopes": ["openid", "email"], # optional
|
|
1144
|
+
"expires_at": datetime.fromisoformat("2026-11-12T07:18:56+00:00"), # optional
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
``expires_at`` is optional: when the supplied access token expires, as a
|
|
1149
|
+
timezone-aware ``datetime``, sent as UTC. A naive ``datetime`` raises ``ValueError``
|
|
1150
|
+
and any other type raises ``TypeError``. It is read only when importing a token
|
|
1151
|
+
obtained outside Scalekit, which happens only for a connection that uses your own
|
|
1152
|
+
OAuth app; the account then becomes ACTIVE and its ``token_expires_at`` is set to
|
|
1153
|
+
``expires_at``. Without it, the account has no token expiry and the token is used
|
|
1154
|
+
until the provider rejects it. If a ``refresh_token`` was imported, tool calls then
|
|
1155
|
+
refresh and retry automatically, and proxy callers refresh with the refresh connected
|
|
1156
|
+
account tokens API (``POST /api/v1/connected_accounts:refresh_tokens``). Without a
|
|
1157
|
+
``refresh_token``, nothing can be refreshed, and the account must be updated with new
|
|
1158
|
+
tokens or authorized again. To correct the expiry of the current token, update the
|
|
1159
|
+
account with the same ``access_token`` and the new ``expires_at``; the account status
|
|
1160
|
+
does not change. Resending the same ``access_token`` keeps the stored
|
|
1161
|
+
``refresh_token`` and ``scopes`` unless the request supplies new non-empty values.
|
|
1162
|
+
``expires_at`` is never returned; read the expiry back from the account's
|
|
1163
|
+
``token_expires_at``.
|
|
1164
|
+
- ``{"static_auth": {...}}`` — API key / basic auth fields for the connector.
|
|
1165
|
+
- ``{"google_dwd": {"subject": "user@example.com"}}`` — Google domain-wide delegation.
|
|
1166
|
+
- ``{"trusted_idp": {...}}`` — trusted identity-provider credentials.
|
|
1022
1167
|
:type: Optional[Dict[str, Any]]
|
|
1023
1168
|
:param organization_id: Organization ID (optional)
|
|
1024
1169
|
:type: str
|
|
@@ -1081,7 +1226,38 @@ class ActionClient:
|
|
|
1081
1226
|
:type: str
|
|
1082
1227
|
:param identifier: Connected account identifier (required)
|
|
1083
1228
|
:type: str
|
|
1084
|
-
:param authorization_details: Authorization details (
|
|
1229
|
+
:param authorization_details: Authorization details (optional). One of:
|
|
1230
|
+
|
|
1231
|
+
- ``{"oauth_token": {...}}`` — import an OAuth token obtained outside Scalekit::
|
|
1232
|
+
|
|
1233
|
+
{
|
|
1234
|
+
"oauth_token": {
|
|
1235
|
+
"access_token": "ya29.a0...",
|
|
1236
|
+
"refresh_token": "1//0g...", # optional
|
|
1237
|
+
"scopes": ["openid", "email"], # optional
|
|
1238
|
+
"expires_at": datetime.fromisoformat("2026-11-12T07:18:56+00:00"), # optional
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
``expires_at`` is optional: when the supplied access token expires, as a
|
|
1243
|
+
timezone-aware ``datetime``, sent as UTC. A naive ``datetime`` raises ``ValueError``
|
|
1244
|
+
and any other type raises ``TypeError``. It is read only when importing a token
|
|
1245
|
+
obtained outside Scalekit, which happens only for a connection that uses your own
|
|
1246
|
+
OAuth app; the account then becomes ACTIVE and its ``token_expires_at`` is set to
|
|
1247
|
+
``expires_at``. Without it, the account has no token expiry and the token is used
|
|
1248
|
+
until the provider rejects it. If a ``refresh_token`` was imported, tool calls then
|
|
1249
|
+
refresh and retry automatically, and proxy callers refresh with the refresh connected
|
|
1250
|
+
account tokens API (``POST /api/v1/connected_accounts:refresh_tokens``). Without a
|
|
1251
|
+
``refresh_token``, nothing can be refreshed, and the account must be updated with new
|
|
1252
|
+
tokens or authorized again. To correct the expiry of the current token, update the
|
|
1253
|
+
account with the same ``access_token`` and the new ``expires_at``; the account status
|
|
1254
|
+
does not change. Resending the same ``access_token`` keeps the stored
|
|
1255
|
+
``refresh_token`` and ``scopes`` unless the request supplies new non-empty values.
|
|
1256
|
+
``expires_at`` is never returned; read the expiry back from the account's
|
|
1257
|
+
``token_expires_at``.
|
|
1258
|
+
- ``{"static_auth": {...}}`` — API key / basic auth fields for the connector.
|
|
1259
|
+
- ``{"google_dwd": {"subject": "user@example.com"}}`` — Google domain-wide delegation.
|
|
1260
|
+
- ``{"trusted_idp": {...}}`` — trusted identity-provider credentials.
|
|
1085
1261
|
:type: Optional[Dict[str, Any]]
|
|
1086
1262
|
:param organization_id: Organization ID (optional)
|
|
1087
1263
|
:type: str
|
|
@@ -1154,7 +1330,38 @@ class ActionClient:
|
|
|
1154
1330
|
:type: str
|
|
1155
1331
|
:param identifier: Connected account identifier (required)
|
|
1156
1332
|
:type: str
|
|
1157
|
-
:param authorization_details: Authorization details (
|
|
1333
|
+
:param authorization_details: Authorization details (optional). One of:
|
|
1334
|
+
|
|
1335
|
+
- ``{"oauth_token": {...}}`` — import an OAuth token obtained outside Scalekit::
|
|
1336
|
+
|
|
1337
|
+
{
|
|
1338
|
+
"oauth_token": {
|
|
1339
|
+
"access_token": "ya29.a0...",
|
|
1340
|
+
"refresh_token": "1//0g...", # optional
|
|
1341
|
+
"scopes": ["openid", "email"], # optional
|
|
1342
|
+
"expires_at": datetime.fromisoformat("2026-11-12T07:18:56+00:00"), # optional
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
``expires_at`` is optional: when the supplied access token expires, as a
|
|
1347
|
+
timezone-aware ``datetime``, sent as UTC. A naive ``datetime`` raises ``ValueError``
|
|
1348
|
+
and any other type raises ``TypeError``. It is read only when importing a token
|
|
1349
|
+
obtained outside Scalekit, which happens only for a connection that uses your own
|
|
1350
|
+
OAuth app; the account then becomes ACTIVE and its ``token_expires_at`` is set to
|
|
1351
|
+
``expires_at``. Without it, the account has no token expiry and the token is used
|
|
1352
|
+
until the provider rejects it. If a ``refresh_token`` was imported, tool calls then
|
|
1353
|
+
refresh and retry automatically, and proxy callers refresh with the refresh connected
|
|
1354
|
+
account tokens API (``POST /api/v1/connected_accounts:refresh_tokens``). Without a
|
|
1355
|
+
``refresh_token``, nothing can be refreshed, and the account must be updated with new
|
|
1356
|
+
tokens or authorized again. To correct the expiry of the current token, update the
|
|
1357
|
+
account with the same ``access_token`` and the new ``expires_at``; the account status
|
|
1358
|
+
does not change. Resending the same ``access_token`` keeps the stored
|
|
1359
|
+
``refresh_token`` and ``scopes`` unless the request supplies new non-empty values.
|
|
1360
|
+
``expires_at`` is never returned; read the expiry back from the account's
|
|
1361
|
+
``token_expires_at``.
|
|
1362
|
+
- ``{"static_auth": {...}}`` — API key / basic auth fields for the connector.
|
|
1363
|
+
- ``{"google_dwd": {"subject": "user@example.com"}}`` — Google domain-wide delegation.
|
|
1364
|
+
- ``{"trusted_idp": {...}}`` — trusted identity-provider credentials.
|
|
1158
1365
|
:type: Optional[Dict[str, Any]]
|
|
1159
1366
|
:param organization_id: Organization ID (optional)
|
|
1160
1367
|
:type: str
|
|
@@ -3,12 +3,12 @@ from pydantic import BaseModel, Field
|
|
|
3
3
|
from scalekit.v1.connected_accounts.connected_accounts_pb2 import (
|
|
4
4
|
CreateConnectedAccount,
|
|
5
5
|
AuthorizationDetails,
|
|
6
|
-
OauthToken,
|
|
7
6
|
StaticAuth,
|
|
8
7
|
GoogleDWDAuth,
|
|
9
8
|
TrustedIDPAuth
|
|
10
9
|
)
|
|
11
10
|
from google.protobuf import struct_pb2
|
|
11
|
+
from scalekit.actions.models.requests.oauth_token import build_oauth_token
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class CreateConnectedAccountRequest(BaseModel):
|
|
@@ -31,12 +31,7 @@ class CreateConnectedAccountRequest(BaseModel):
|
|
|
31
31
|
auth_details = None
|
|
32
32
|
|
|
33
33
|
if self.authorization_details and "oauth_token" in self.authorization_details:
|
|
34
|
-
|
|
35
|
-
oauth_token = OauthToken(
|
|
36
|
-
access_token=oauth_data.get("access_token", ""),
|
|
37
|
-
refresh_token=oauth_data.get("refresh_token", ""),
|
|
38
|
-
scopes=oauth_data.get("scopes", [])
|
|
39
|
-
)
|
|
34
|
+
oauth_token = build_oauth_token(self.authorization_details["oauth_token"])
|
|
40
35
|
auth_details = AuthorizationDetails(oauth_token=oauth_token)
|
|
41
36
|
|
|
42
37
|
elif self.authorization_details and "static_auth" in self.authorization_details:
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Build an ``OauthToken`` proto from the ``authorization_details["oauth_token"]`` dict."""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
from scalekit._convert import datetime_to_timestamp
|
|
6
|
+
from scalekit.v1.connected_accounts.connected_accounts_pb2 import OauthToken
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def build_oauth_token(oauth_data: Dict[str, Any]) -> OauthToken:
|
|
10
|
+
"""Build the ``OauthToken`` proto sent on create/update connected account.
|
|
11
|
+
|
|
12
|
+
``expires_at`` is optional: a timezone-aware ``datetime``, sent as UTC. It is left unset
|
|
13
|
+
when absent or ``None``. A naive ``datetime`` raises ``ValueError`` and any other type
|
|
14
|
+
raises ``TypeError`` (see ``scalekit._convert.datetime_to_timestamp``).
|
|
15
|
+
"""
|
|
16
|
+
oauth_token = OauthToken(
|
|
17
|
+
access_token=oauth_data.get("access_token", ""),
|
|
18
|
+
refresh_token=oauth_data.get("refresh_token", ""),
|
|
19
|
+
scopes=oauth_data.get("scopes", []),
|
|
20
|
+
)
|
|
21
|
+
expires_at = oauth_data.get("expires_at")
|
|
22
|
+
if expires_at is not None:
|
|
23
|
+
oauth_token.expires_at.CopyFrom(datetime_to_timestamp(expires_at, "expires_at"))
|
|
24
|
+
return oauth_token
|
|
@@ -3,12 +3,12 @@ from pydantic import BaseModel, Field
|
|
|
3
3
|
from scalekit.v1.connected_accounts.connected_accounts_pb2 import (
|
|
4
4
|
UpdateConnectedAccount,
|
|
5
5
|
AuthorizationDetails,
|
|
6
|
-
OauthToken,
|
|
7
6
|
StaticAuth,
|
|
8
7
|
GoogleDWDAuth,
|
|
9
8
|
TrustedIDPAuth
|
|
10
9
|
)
|
|
11
10
|
from google.protobuf import struct_pb2
|
|
11
|
+
from scalekit.actions.models.requests.oauth_token import build_oauth_token
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class UpdateConnectedAccountRequest(BaseModel):
|
|
@@ -32,12 +32,7 @@ class UpdateConnectedAccountRequest(BaseModel):
|
|
|
32
32
|
auth_details = None
|
|
33
33
|
|
|
34
34
|
if self.authorization_details and "oauth_token" in self.authorization_details:
|
|
35
|
-
|
|
36
|
-
oauth_token = OauthToken(
|
|
37
|
-
access_token=oauth_data.get("access_token", ""),
|
|
38
|
-
refresh_token=oauth_data.get("refresh_token", ""),
|
|
39
|
-
scopes=oauth_data.get("scopes", [])
|
|
40
|
-
)
|
|
35
|
+
oauth_token = build_oauth_token(self.authorization_details["oauth_token"])
|
|
41
36
|
auth_details = AuthorizationDetails(oauth_token=oauth_token)
|
|
42
37
|
|
|
43
38
|
elif self.authorization_details and "static_auth" in self.authorization_details:
|
|
@@ -34,15 +34,15 @@ class ConnectedAccount(BaseModel):
|
|
|
34
34
|
"""
|
|
35
35
|
# Convert protobuf timestamps to datetime
|
|
36
36
|
token_expires_at = None
|
|
37
|
-
if proto_account.token_expires_at:
|
|
37
|
+
if proto_account.HasField("token_expires_at"):
|
|
38
38
|
token_expires_at = proto_account.token_expires_at.ToDatetime()
|
|
39
39
|
|
|
40
40
|
updated_at = None
|
|
41
|
-
if proto_account.updated_at:
|
|
41
|
+
if proto_account.HasField("updated_at"):
|
|
42
42
|
updated_at = proto_account.updated_at.ToDatetime()
|
|
43
43
|
|
|
44
44
|
last_used_at = None
|
|
45
|
-
if proto_account.last_used_at:
|
|
45
|
+
if proto_account.HasField("last_used_at"):
|
|
46
46
|
last_used_at = proto_account.last_used_at.ToDatetime()
|
|
47
47
|
|
|
48
48
|
# Convert authorization details
|
|
@@ -67,15 +67,15 @@ class ConnectedAccountForList(BaseModel):
|
|
|
67
67
|
"""
|
|
68
68
|
# Convert protobuf Timestamps to datetime
|
|
69
69
|
token_expires_at = None
|
|
70
|
-
if proto_account.token_expires_at:
|
|
70
|
+
if proto_account.HasField("token_expires_at"):
|
|
71
71
|
token_expires_at = proto_account.token_expires_at.ToDatetime()
|
|
72
72
|
|
|
73
73
|
updated_at = None
|
|
74
|
-
if proto_account.updated_at:
|
|
74
|
+
if proto_account.HasField("updated_at"):
|
|
75
75
|
updated_at = proto_account.updated_at.ToDatetime()
|
|
76
76
|
|
|
77
77
|
last_used_at = None
|
|
78
|
-
if proto_account.last_used_at:
|
|
78
|
+
if proto_account.HasField("last_used_at"):
|
|
79
79
|
last_used_at = proto_account.last_used_at.ToDatetime()
|
|
80
80
|
|
|
81
81
|
return cls(
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"""Response models for the actions tool-discovery methods.
|
|
2
|
+
|
|
3
|
+
``list_scoped_tools``, ``list_available_tools`` and ``search_tools`` on ``client.actions``
|
|
4
|
+
return these instead of the raw protobuf responses, matching ``list_tools``.
|
|
5
|
+
"""
|
|
6
|
+
from typing import List, Optional
|
|
7
|
+
|
|
8
|
+
from pydantic import BaseModel, Field
|
|
9
|
+
|
|
10
|
+
from scalekit.actions.models.responses.list_tools_response import Tool
|
|
11
|
+
from scalekit.v1.tools.tools_pb2 import ToolReadinessState
|
|
12
|
+
|
|
13
|
+
_READINESS_PREFIX = "TOOL_READINESS_STATE_"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _readiness_name(value: int) -> str:
|
|
17
|
+
"""``TOOL_READINESS_STATE_READY`` -> ``READY``; an unknown number comes back as its string."""
|
|
18
|
+
try:
|
|
19
|
+
name = ToolReadinessState.Name(value)
|
|
20
|
+
except ValueError:
|
|
21
|
+
return str(value)
|
|
22
|
+
return name[len(_READINESS_PREFIX):] if name.startswith(_READINESS_PREFIX) else name
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class ScopedTool(BaseModel):
|
|
26
|
+
"""A tool together with the connected account it is scoped to"""
|
|
27
|
+
|
|
28
|
+
tool: Optional[Tool] = Field(None, description="The tool")
|
|
29
|
+
identifier: Optional[str] = Field(None, description="Connected-account identifier the tool is scoped to")
|
|
30
|
+
connected_account_id: Optional[str] = Field(None, description="Connected account the tool runs against")
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_proto(cls, proto_scoped) -> "ScopedTool":
|
|
34
|
+
return cls(
|
|
35
|
+
tool=Tool.from_proto(proto_scoped.tool) if proto_scoped.HasField("tool") else None,
|
|
36
|
+
identifier=proto_scoped.identifier or None,
|
|
37
|
+
connected_account_id=proto_scoped.connected_account_id or None,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> dict:
|
|
41
|
+
return {
|
|
42
|
+
"tool": self.tool.to_dict() if self.tool else None,
|
|
43
|
+
"identifier": self.identifier,
|
|
44
|
+
"connected_account_id": self.connected_account_id,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class ListScopedToolsResponse(BaseModel):
|
|
49
|
+
"""Response of ``client.actions.list_scoped_tools``"""
|
|
50
|
+
|
|
51
|
+
tools: List[ScopedTool] = Field(default_factory=list, description="Tools in this page")
|
|
52
|
+
total_count: Optional[int] = Field(None, description="Total number of matching tools")
|
|
53
|
+
next_page_token: Optional[str] = Field(None, description="Token for the next page; None on the last page")
|
|
54
|
+
previous_page_token: Optional[str] = Field(None, description="Token for the previous page")
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_proto(cls, proto_response) -> "ListScopedToolsResponse":
|
|
58
|
+
return cls(
|
|
59
|
+
tools=[ScopedTool.from_proto(t) for t in proto_response.tools],
|
|
60
|
+
total_count=proto_response.total_size,
|
|
61
|
+
next_page_token=proto_response.next_page_token or None,
|
|
62
|
+
previous_page_token=proto_response.prev_page_token or None,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
def to_dict(self) -> dict:
|
|
66
|
+
return {
|
|
67
|
+
"tools": [t.to_dict() for t in self.tools],
|
|
68
|
+
"total_count": self.total_count,
|
|
69
|
+
"next_page_token": self.next_page_token,
|
|
70
|
+
"previous_page_token": self.previous_page_token,
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class ListAvailableToolsResponse(BaseModel):
|
|
75
|
+
"""Response of ``client.actions.list_available_tools``"""
|
|
76
|
+
|
|
77
|
+
tools: List[Tool] = Field(default_factory=list, description="Tools in this page")
|
|
78
|
+
total_count: Optional[int] = Field(None, description="Total number of available tools")
|
|
79
|
+
next_page_token: Optional[str] = Field(None, description="Token for the next page; None on the last page")
|
|
80
|
+
previous_page_token: Optional[str] = Field(None, description="Token for the previous page")
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_proto(cls, proto_response) -> "ListAvailableToolsResponse":
|
|
84
|
+
return cls(
|
|
85
|
+
tools=[Tool.from_proto(t) for t in proto_response.tools],
|
|
86
|
+
total_count=proto_response.total_size,
|
|
87
|
+
next_page_token=proto_response.next_page_token or None,
|
|
88
|
+
previous_page_token=proto_response.prev_page_token or None,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
def to_dict(self) -> dict:
|
|
92
|
+
return {
|
|
93
|
+
"tools": [t.to_dict() for t in self.tools],
|
|
94
|
+
"total_count": self.total_count,
|
|
95
|
+
"next_page_token": self.next_page_token,
|
|
96
|
+
"previous_page_token": self.previous_page_token,
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class ConnectionReadiness(BaseModel):
|
|
101
|
+
"""Whether one of the identifier's connections can run a searched tool"""
|
|
102
|
+
|
|
103
|
+
connection_name: Optional[str] = Field(None, description="The connection's name")
|
|
104
|
+
connected_account_id: Optional[str] = Field(None, description="Connected account on that connection")
|
|
105
|
+
readiness_state: Optional[str] = Field(
|
|
106
|
+
None, description="READY, NEEDS_CONNECTION or NEEDS_REAUTH (UNSPECIFIED if the server sent none)"
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
@classmethod
|
|
110
|
+
def from_proto(cls, proto_readiness) -> "ConnectionReadiness":
|
|
111
|
+
return cls(
|
|
112
|
+
connection_name=proto_readiness.connection_name or None,
|
|
113
|
+
connected_account_id=proto_readiness.connected_account_id or None,
|
|
114
|
+
readiness_state=_readiness_name(proto_readiness.readiness_state),
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
def to_dict(self) -> dict:
|
|
118
|
+
return {
|
|
119
|
+
"connection_name": self.connection_name,
|
|
120
|
+
"connected_account_id": self.connected_account_id,
|
|
121
|
+
"readiness_state": self.readiness_state,
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class SearchedTool(BaseModel):
|
|
126
|
+
"""One ranked result of ``client.actions.search_tools``"""
|
|
127
|
+
|
|
128
|
+
name: Optional[str] = Field(None, description="Tool name, as passed to execute_tool")
|
|
129
|
+
provider: Optional[str] = Field(None, description="Provider that exposes the tool")
|
|
130
|
+
description: Optional[str] = Field(None, description="What the tool does")
|
|
131
|
+
score: Optional[float] = Field(
|
|
132
|
+
None, description="Relevance score, higher is better; comparable only within one response"
|
|
133
|
+
)
|
|
134
|
+
connections: List[ConnectionReadiness] = Field(
|
|
135
|
+
default_factory=list,
|
|
136
|
+
description="The identifier's connections for this provider; empty when no identifier was given "
|
|
137
|
+
"or the identifier has no connection for the provider",
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
@classmethod
|
|
141
|
+
def from_proto(cls, proto_tool) -> "SearchedTool":
|
|
142
|
+
return cls(
|
|
143
|
+
name=proto_tool.name or None,
|
|
144
|
+
provider=proto_tool.provider or None,
|
|
145
|
+
description=proto_tool.description or None,
|
|
146
|
+
score=proto_tool.score,
|
|
147
|
+
connections=[ConnectionReadiness.from_proto(c) for c in proto_tool.connections],
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
def to_dict(self) -> dict:
|
|
151
|
+
return {
|
|
152
|
+
"name": self.name,
|
|
153
|
+
"provider": self.provider,
|
|
154
|
+
"description": self.description,
|
|
155
|
+
"score": self.score,
|
|
156
|
+
"connections": [c.to_dict() for c in self.connections],
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
class SearchToolsResponse(BaseModel):
|
|
161
|
+
"""Response of ``client.actions.search_tools``"""
|
|
162
|
+
|
|
163
|
+
tools: List[SearchedTool] = Field(default_factory=list, description="Results, most relevant first")
|
|
164
|
+
|
|
165
|
+
@classmethod
|
|
166
|
+
def from_proto(cls, proto_response) -> "SearchToolsResponse":
|
|
167
|
+
return cls(tools=[SearchedTool.from_proto(t) for t in proto_response.tools])
|
|
168
|
+
|
|
169
|
+
def to_dict(self) -> dict:
|
|
170
|
+
return {"tools": [t.to_dict() for t in self.tools]}
|
|
@@ -6,6 +6,10 @@ from .models.responses.execute_tool_response import ExecuteToolResponse
|
|
|
6
6
|
from .models.responses.magic_link_response import MagicLinkResponse
|
|
7
7
|
from .models.responses.list_connected_accounts_response import ListConnectedAccountsResponse
|
|
8
8
|
from .models.responses.list_tools_response import Tool, ListToolsResponse
|
|
9
|
+
from .models.responses.tool_discovery_responses import (
|
|
10
|
+
ScopedTool, ListScopedToolsResponse, ListAvailableToolsResponse,
|
|
11
|
+
ConnectionReadiness, SearchedTool, SearchToolsResponse,
|
|
12
|
+
)
|
|
9
13
|
from .models.responses.delete_connected_account_response import DeleteConnectedAccountResponse
|
|
10
14
|
from .models.responses.get_connected_account_auth_response import GetConnectedAccountAuthResponse, GetConnectedAccountDetailsResponse
|
|
11
15
|
from .models.responses.create_connected_account_response import CreateConnectedAccountResponse
|
|
@@ -108,6 +112,12 @@ __all__ = [
|
|
|
108
112
|
'ListConnectedAccountsResponse',
|
|
109
113
|
'Tool',
|
|
110
114
|
'ListToolsResponse',
|
|
115
|
+
'ScopedTool',
|
|
116
|
+
'ListScopedToolsResponse',
|
|
117
|
+
'ListAvailableToolsResponse',
|
|
118
|
+
'ConnectionReadiness',
|
|
119
|
+
'SearchedTool',
|
|
120
|
+
'SearchToolsResponse',
|
|
111
121
|
'DeleteConnectedAccountResponse',
|
|
112
122
|
'GetConnectedAccountAuthResponse',
|
|
113
123
|
'GetConnectedAccountDetailsResponse',
|
|
@@ -187,7 +187,7 @@ class CoreClient:
|
|
|
187
187
|
|
|
188
188
|
sdk_version = f"Scalekit-Python/{_sdk_version}"
|
|
189
189
|
# YYYYMMDD
|
|
190
|
-
api_version = "
|
|
190
|
+
api_version = "20261113"
|
|
191
191
|
user_agent = f"{sdk_version} Python/{platform.python_version()} ({platform.system()}; {platform.architecture()}"
|
|
192
192
|
|
|
193
193
|
def __init__(
|