diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 64e5492..6ee97b3 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -21,34 +21,33 @@ module.exports = { "scope-enum": [ 2, "always", - [ - "sdk", - "core", - "ai", - "agents", - "audit", - "auth", - "billing", - "blob", - "connectors", - "data", - "governance", - "lineage", - "observability", - "ontology", - "pipelines", - "sandbox", - "schedules", - "webhooks", - "workflows", - "repo", - "deps", - "ci", - "release", - "docs", - "scripts", - "templates", - ], + [ + "sdk", + "core", + "ai", + "agents", + "audit", + "auth", + "billing", + "blob", + "connectors", + "data", + "governance", + "lineage", + "observability", + "ontology", + "pipelines", + "schedules", + "webhooks", + "workflows", + "repo", + "deps", + "ci", + "release", + "docs", + "scripts", + "templates", + ], ], "header-max-length": [2, "always", 100], }, diff --git a/contracts/sdk-endpoints.json b/contracts/sdk-endpoints.json index 011d26b..498b6cd 100644 --- a/contracts/sdk-endpoints.json +++ b/contracts/sdk-endpoints.json @@ -1313,22 +1313,8 @@ "path": "/data/pipelines/pipeline-runs/{param}" } ], - "react": [], - "sandbox": [ - { - "method": "GET", - "path": "/sandbox/languages" - }, - { - "method": "POST", - "path": "/sandbox/self-test" - }, - { - "method": "POST", - "path": "/sandbox/submit" - } - ], - "schedules": [ + "react": [], + "schedules": [ { "method": "DELETE", "path": "/workflows/schedules/{param}" diff --git a/docs/OVERVIEW.md b/docs/OVERVIEW.md index 3cae049..a78ed56 100644 --- a/docs/OVERVIEW.md +++ b/docs/OVERVIEW.md @@ -51,7 +51,7 @@ Each client exposes the same service attributes: `ai`, `agents`, `workflows`, `audit`, `auth`, `billing`, `blob`, `connectors`, `data`, `governance`, `lineage`, `observability`, `ontology`, `pipelines`, -`sandbox`, `schedules`, and `webhooks`. +`schedules`, and `webhooks`. The AI service adds normalized helpers such as `generate_text`, `stream_text`, `embed`, `generate_object`, `generate_speech`, `generate_image`, diff --git a/docs/RESOURCES.md b/docs/RESOURCES.md index ff3f152..c6aceb3 100644 --- a/docs/RESOURCES.md +++ b/docs/RESOURCES.md @@ -10,7 +10,7 @@ | `audit`, `auth`, `billing` | Audit events, authentication, and billing | | `blob`, `connectors`, `data` | Files, integrations, and data operations | | `governance`, `lineage`, `observability` | Governance, lineage, and telemetry | -| `ontology`, `pipelines`, `sandbox` | Ontology, pipelines, and sandbox operations | +| `ontology`, `pipelines` | Ontology and pipelines operations | | `schedules`, `webhooks` | Schedules and webhook operations | ## AI helpers diff --git a/examples/SDKS_GUIDE.md b/examples/SDKS_GUIDE.md index a143d51..ef16dc3 100644 --- a/examples/SDKS_GUIDE.md +++ b/examples/SDKS_GUIDE.md @@ -46,7 +46,7 @@ asyncio.run(main()) Clients expose `ai`, `agents`, `workflows`, `audit`, `auth`, `billing`, `blob`, `connectors`, `data`, `governance`, `lineage`, `observability`, `ontology`, -`pipelines`, `sandbox`, `schedules`, and `webhooks`. The first three also +`pipelines`, `schedules`, and `webhooks`. The first three also provide high-level helpers and validated builders. For example, create an agent with `client.agents.define(name).trigger(event).can_read(entity).create()` or define a workflow with `client.workflows.define(name).manual().task(...).create()`. diff --git a/frontal_sdk/client.py b/frontal_sdk/client.py index ea5ca8c..07213ec 100644 --- a/frontal_sdk/client.py +++ b/frontal_sdk/client.py @@ -25,7 +25,6 @@ Observability, Ontology, Pipelines, - Sandbox, Schedules, SyncAI, Webhooks, @@ -126,7 +125,6 @@ def __init__( self.pipelines: Pipelines[JSONValue, bytes, Iterator[ServerEvent]] = Pipelines( http ) - self.sandbox: Sandbox[JSONValue, bytes, Iterator[ServerEvent]] = Sandbox(http) self.schedules: Schedules[JSONValue, bytes, Iterator[ServerEvent]] = Schedules( http ) @@ -214,9 +212,6 @@ def __init__( self.pipelines: Pipelines[ _AsyncJSONResult, _AsyncBytesResult, _AsyncStreamResult ] = Pipelines(http) - self.sandbox: Sandbox[ - _AsyncJSONResult, _AsyncBytesResult, _AsyncStreamResult - ] = Sandbox(http) self.schedules: Schedules[ _AsyncJSONResult, _AsyncBytesResult, _AsyncStreamResult ] = Schedules(http) diff --git a/frontal_sdk/resources/__init__.py b/frontal_sdk/resources/__init__.py index 3966054..c32445f 100644 --- a/frontal_sdk/resources/__init__.py +++ b/frontal_sdk/resources/__init__.py @@ -13,7 +13,6 @@ from frontal_sdk.resources.observability import Observability from frontal_sdk.resources.ontology import Ontology from frontal_sdk.resources.pipelines import Pipelines -from frontal_sdk.resources.sandbox import Sandbox from frontal_sdk.resources.schedules import Schedules from frontal_sdk.resources.webhooks import Webhooks from frontal_sdk.resources.workflows import ( @@ -42,7 +41,6 @@ "Observability", "Ontology", "Pipelines", - "Sandbox", "Schedules", "Webhooks", "WorkflowAccessor", diff --git a/frontal_sdk/resources/sandbox.py b/frontal_sdk/resources/sandbox.py deleted file mode 100644 index 63e7de3..0000000 --- a/frontal_sdk/resources/sandbox.py +++ /dev/null @@ -1,52 +0,0 @@ -"""Typed API resource for the sandbox endpoints.""" - -from __future__ import annotations - -from typing import Generic - -from frontal_sdk.core.operation import Operation -from frontal_sdk.models import QueryParams -from frontal_sdk.models.requests import UNSET, RequestBodyInput -from frontal_sdk.resources._base import ( - APIResource, - BytesResultT, - JSONResultT, - StreamResultT, -) - - -class Sandbox( - APIResource[JSONResultT, BytesResultT, StreamResultT], - Generic[JSONResultT, BytesResultT, StreamResultT], -): - """Methods for the sandbox API endpoints.""" - - def list_languages(self, *, query: QueryParams | None = None) -> JSONResultT: - """Call GET /sandbox/languages.""" - return self._request( - Operation("GET", "/sandbox/languages"), - path_params=(), - query=query, - ) - - def post_sandbox_self_test( - self, *, query: QueryParams | None = None, body: RequestBodyInput = UNSET - ) -> JSONResultT: - """Call POST /sandbox/self-test.""" - return self._request( - Operation("POST", "/sandbox/self-test"), - path_params=(), - query=query, - body=body, - ) - - def post_sandbox_submit( - self, *, query: QueryParams | None = None, body: RequestBodyInput = UNSET - ) -> JSONResultT: - """Call POST /sandbox/submit.""" - return self._request( - Operation("POST", "/sandbox/submit"), - path_params=(), - query=query, - body=body, - )