Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

chore(sdk): sync OpenAPI spec from infra, regenerate clients (#1357)

Mish Ushakov2691c73d1cf6
diff --git a/.changeset/sync-openapi-spec.md b/.changeset/sync-openapi-spec.md
new file mode 100644
index 000000000..8dc8fb6fb
--- /dev/null
+++ b/.changeset/sync-openapi-spec.md
@@ -0,0 +1,6 @@
+---
+'e2b': minor
+'@e2b/python-sdk': minor
+---
+
+Sync OpenAPI spec from `e2b-dev/infra`. Notable changes: `SandboxMetrics` gains `memCache` / `mem_cache` (cached memory in bytes), `NodeStatus` gains `standby`, `TeamUser.email` is now nullable and deprecated, and `POST /v3/templates` can now return `403`.
diff --git a/packages/js-sdk/src/api/schema.gen.ts b/packages/js-sdk/src/api/schema.gen.ts
index 3ae5bdad6..cf9751a40 100644
--- a/packages/js-sdk/src/api/schema.gen.ts
+++ b/packages/js-sdk/src/api/schema.gen.ts
@@ -295,7 +295,7 @@ export interface paths {
cookie?: never;
};
get?: never;
- /** @description Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting a field clears it. */
+ /** @description Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it. */
put: {
parameters: {
query?: never;
@@ -1585,6 +1585,7 @@ export interface paths {
};
400: components["responses"]["400"];
401: components["responses"]["401"];
+ 403: components["responses"]["403"];
500: components["responses"]["500"];
};
};
@@ -2136,10 +2137,13 @@ export interface components {
memoryUsedBytes: number;
};
/**
- * @description Status of the node
+ * @description Status of the node.
+ * - draining: the node is bound to be shut down. It will not accept new sandboxes and will stop once all existing sandboxes are done.
+ * - standby: the node is not actively used, but it can return to ready and continue serving traffic.
+ *
* @enum {string}
*/
- NodeStatus: "ready" | "draining" | "connecting" | "unhealthy";
+ NodeStatus: "ready" | "draining" | "connecting" | "unhealthy" | "standby";
NodeStatusChange: {
/**
* Format: uuid
@@ -2300,6 +2304,11 @@ export interface components {
* @description Disk used in bytes
*/
diskUsed: number;
+ /**
+ * Format: int64
+ * @description Cached memory (page cache) in bytes
+ */
+ memCache: number;
/**
* Format: int64
* @description Total memory in bytes
@@ -2334,7 +2343,8 @@ export interface components {
denyOut?: string[];
/** @description Specify host mask which will be used for all sandbox requests */
maskRequestHost?: string;
- /** @description Per-domain transform rules applied to matching egress HTTP/HTTPS requests. Keys are domains (e.g. "api.example.com", "example.com"). A domain listed here is not automatically allowed - use allowOut to permit the traffic. */
+ /** @description Per-domain transform rules applied to matching egress HTTP/HTTPS requests. Keys are domains (e.g. "api.example.com", "example.com"). A domain listed here is not automatically allowed - use allowOut to permit the traffic.
+ * */
rules?: {
[key: string]: components["schemas"]["SandboxNetworkRule"][];
};
@@ -2345,7 +2355,8 @@ export interface components {
};
/** @description Transformations applied to matching egress requests before forwarding. */
SandboxNetworkTransform: {
- /** @description HTTP headers to inject or override in matching requests. An existing header with the same name is replaced. Values are plain strings; secret resolution happens client-side before sending to the API. */
+ /** @description HTTP headers to inject or override in matching requests. An existing header with the same name is replaced. Values are plain strings; secret resolution happens client-side before sending to the API.
+ * */
headers?: {
[key: string]: string;
};
@@ -2441,8 +2452,12 @@ export interface components {
timestampUnix: number;
};
TeamUser: {
- /** @description Email of the user */
- email: string;
+ /**
+ * @deprecated
+ * @description Email of the user
+ * @default null
+ */
+ email: string | null;
/**
* Format: uuid
* @description Identifier of the user
diff --git a/packages/js-sdk/src/sandbox/sandboxApi.ts b/packages/js-sdk/src/sandbox/sandboxApi.ts
index 04d53722f..5141e56c8 100644
--- a/packages/js-sdk/src/sandbox/sandboxApi.ts
+++ b/packages/js-sdk/src/sandbox/sandboxApi.ts
@@ -530,6 +530,11 @@ export interface SandboxMetrics {
*/
memTotal: number
+ /**
+ * Cached memory (page cache) in bytes.
+ */
+ memCache: number
+
/**
* Used disk space in bytes.
*/
@@ -724,6 +729,7 @@ export class SandboxApi {
cpuCount: metric.cpuCount,
memUsed: metric.memUsed,
memTotal: metric.memTotal,
+ memCache: metric.memCache,
diskUsed: metric.diskUsed,
diskTotal: metric.diskTotal,
})) ?? []
diff --git a/packages/python-sdk/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py b/packages/python-sdk/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py
index 965cc9546..64dad4655 100644
--- a/packages/python-sdk/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py
+++ b/packages/python-sdk/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py
@@ -76,7 +76,7 @@ def sync_detailed(
body: SandboxNetworkUpdateConfig,
) -> Response[Union[Any, Error]]:
"""Update the network configuration for a running sandbox. Replaces the current egress rules with the
- provided configuration. Omitting a field clears it.
+ provided configuration. Omitting field clears it.
Args:
sandbox_id (str):
@@ -111,7 +111,7 @@ def sync(
body: SandboxNetworkUpdateConfig,
) -> Optional[Union[Any, Error]]:
"""Update the network configuration for a running sandbox. Replaces the current egress rules with the
- provided configuration. Omitting a field clears it.
+ provided configuration. Omitting field clears it.
Args:
sandbox_id (str):
@@ -141,7 +141,7 @@ async def asyncio_detailed(
body: SandboxNetworkUpdateConfig,
) -> Response[Union[Any, Error]]:
"""Update the network configuration for a running sandbox. Replaces the current egress rules with the
- provided configuration. Omitting a field clears it.
+ provided configuration. Omitting field clears it.
Args:
sandbox_id (str):
@@ -174,7 +174,7 @@ async def asyncio(
body: SandboxNetworkUpdateConfig,
) -> Optional[Union[Any, Error]]:
"""Update the network configuration for a running sandbox. Replaces the current egress rules with the
- provided configuration. Omitting a field clears it.
+ provided configuration. Omitting field clears it.
Args:
sandbox_id (str):
diff --git a/packages/python-sdk/e2b/api/client/api/templates/post_v3_templates.py b/packages/python-sdk/e2b/api/client/api/templates/post_v3_templates.py
index 4a39ba3f2..d46b256a1 100644
--- a/packages/python-sdk/e2b/api/client/api/templates/post_v3_templates.py
+++ b/packages/python-sdk/e2b/api/client/api/templates/post_v3_templates.py
@@ -45,6 +45,10 @@ def _parse_response(
response_401 = Error.from_dict(response.json())
return response_401
+ if response.status_code == 403:
+ response_403 = Error.from_dict(response.json())
+
+ return response_403
if response.status_code == 500:
response_500 = Error.from_dict(response.json())
diff --git a/packages/python-sdk/e2b/api/client/models/node.py b/packages/python-sdk/e2b/api/client/models/node.py
index fc60b7fc2..f7d2a47f6 100644
--- a/packages/python-sdk/e2b/api/client/models/node.py
+++ b/packages/python-sdk/e2b/api/client/models/node.py
@@ -28,7 +28,10 @@ class Node:
sandbox_count (int): Number of sandboxes running on the node
sandbox_starting_count (int): Number of starting Sandboxes
service_instance_id (str): Service instance identifier of the node
- status (NodeStatus): Status of the node
+ status (NodeStatus): Status of the node.
+ - draining: the node is bound to be shut down. It will not accept new sandboxes and will stop once all existing
+ sandboxes are done.
+ - standby: the node is not actively used, but it can return to ready and continue serving traffic.
version (str): Version of the orchestrator
"""
diff --git a/packages/python-sdk/e2b/api/client/models/node_detail.py b/packages/python-sdk/e2b/api/client/models/node_detail.py
index 03c736280..a5c1f61d3 100644
--- a/packages/python-sdk/e2b/api/client/models/node_detail.py
+++ b/packages/python-sdk/e2b/api/client/models/node_detail.py
@@ -28,7 +28,10 @@ class NodeDetail:
metrics (NodeMetrics): Node metrics
sandbox_count (int): Number of sandboxes running on the node
service_instance_id (str): Service instance identifier of the node
- status (NodeStatus): Status of the node
+ status (NodeStatus): Status of the node.
+ - draining: the node is bound to be shut down. It will not accept new sandboxes and will stop once all existing
+ sandboxes are done.
+ - standby: the node is not actively used, but it can return to ready and continue serving traffic.
version (str): Version of the orchestrator
"""
diff --git a/packages/python-sdk/e2b/api/client/models/node_status.py b/packages/python-sdk/e2b/api/client/models/node_status.py
index 4529e3b54..9f7aa1f1b 100644
--- a/packages/python-sdk/e2b/api/client/models/node_status.py
+++ b/packages/python-sdk/e2b/api/client/models/node_status.py
@@ -5,6 +5,7 @@ class NodeStatus(str, Enum):
CONNECTING = "connecting"
DRAINING = "draining"
READY = "ready"
+ STANDBY = "standby"
UNHEALTHY = "unhealthy"
def __str__(self) -> str:
diff --git a/packages/python-sdk/e2b/api/client/models/node_status_change.py b/packages/python-sdk/e2b/api/client/models/node_status_change.py
index b628e429c..06d09a1bb 100644
--- a/packages/python-sdk/e2b/api/client/models/node_status_change.py
+++ b/packages/python-sdk/e2b/api/client/models/node_status_change.py
@@ -15,7 +15,10 @@ T = TypeVar("T", bound="NodeStatusChange")
class NodeStatusChange:
"""
Attributes:
- status (NodeStatus): Status of the node
+ status (NodeStatus): Status of the node.
+ - draining: the node is bound to be shut down. It will not accept new sandboxes and will stop once all existing
+ sandboxes are done.
+ - standby: the node is not actively used, but it can return to ready and continue serving traffic.
cluster_id (Union[Unset, UUID]): Identifier of the cluster
"""
diff --git a/packages/python-sdk/e2b/api/client/models/sandbox_metric.py b/packages/python-sdk/e2b/api/client/models/sandbox_metric.py
index eb7442fd9..cbfb9eeb7 100644
--- a/packages/python-sdk/e2b/api/client/models/sandbox_metric.py
+++ b/packages/python-sdk/e2b/api/client/models/sandbox_metric.py
@@ -18,6 +18,7 @@ class SandboxMetric:
cpu_used_pct (float): CPU usage percentage
disk_total (int): Total disk space in bytes
disk_used (int): Disk used in bytes
+ mem_cache (int): Cached memory (page cache) in bytes
mem_total (int): Total memory in bytes
mem_used (int): Memory used in bytes
timestamp (datetime.datetime): Timestamp of the metric entry
@@ -28,6 +29,7 @@ class SandboxMetric:
cpu_used_pct: float
disk_total: int
disk_used: int
+ mem_cache: int
mem_total: int
mem_used: int
timestamp: datetime.datetime
@@ -43,6 +45,8 @@ class SandboxMetric:
disk_used = self.disk_used
+ mem_cache = self.mem_cache
+
mem_total = self.mem_total
mem_used = self.mem_used
@@ -59,6 +63,7 @@ class SandboxMetric:
"cpuUsedPct": cpu_used_pct,
"diskTotal": disk_total,
"diskUsed": disk_used,
+ "memCache": mem_cache,
"memTotal": mem_total,
"memUsed": mem_used,
"timestamp": timestamp,
@@ -79,6 +84,8 @@ class SandboxMetric:
disk_used = d.pop("diskUsed")
+ mem_cache = d.pop("memCache")
+
mem_total = d.pop("memTotal")
mem_used = d.pop("memUsed")
@@ -92,6 +99,7 @@ class SandboxMetric:
cpu_used_pct=cpu_used_pct,
disk_total=disk_total,
disk_used=disk_used,
+ mem_cache=mem_cache,
mem_total=mem_total,
mem_used=mem_used,
timestamp=timestamp,
diff --git a/packages/python-sdk/e2b/api/client/models/team_user.py b/packages/python-sdk/e2b/api/client/models/team_user.py
index cd42f7fc5..26491f7b8 100644
--- a/packages/python-sdk/e2b/api/client/models/team_user.py
+++ b/packages/python-sdk/e2b/api/client/models/team_user.py
@@ -1,5 +1,5 @@
from collections.abc import Mapping
-from typing import Any, TypeVar
+from typing import Any, TypeVar, Union, cast
from uuid import UUID
from attrs import define as _attrs_define
@@ -12,15 +12,16 @@ T = TypeVar("T", bound="TeamUser")
class TeamUser:
"""
Attributes:
- email (str): Email of the user
+ email (Union[None, str]): Email of the user
id (UUID): Identifier of the user
"""
- email: str
+ email: Union[None, str]
id: UUID
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
def to_dict(self) -> dict[str, Any]:
+ email: Union[None, str]
email = self.email
id = str(self.id)
@@ -39,7 +40,13 @@ class TeamUser:
@classmethod
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
d = dict(src_dict)
- email = d.pop("email")
+
+ def _parse_email(data: object) -> Union[None, str]:
+ if data is None:
+ return data
+ return cast(Union[None, str], data)
+
+ email = _parse_email(d.pop("email"))
id = UUID(d.pop("id"))
diff --git a/packages/python-sdk/e2b/sandbox/sandbox_api.py b/packages/python-sdk/e2b/sandbox/sandbox_api.py
index 6ed58ed51..530bf506c 100644
--- a/packages/python-sdk/e2b/sandbox/sandbox_api.py
+++ b/packages/python-sdk/e2b/sandbox/sandbox_api.py
@@ -541,6 +541,8 @@ class SandboxMetrics:
"""Total memory in bytes."""
mem_used: int
"""Memory used in bytes."""
+ mem_cache: int
+ """Cached memory (page cache) in bytes."""
timestamp: datetime
"""Timestamp of the metric entry."""
diff --git a/packages/python-sdk/e2b/sandbox_async/sandbox_api.py b/packages/python-sdk/e2b/sandbox_async/sandbox_api.py
index a0159cb34..ac1740bfc 100644
--- a/packages/python-sdk/e2b/sandbox_async/sandbox_api.py
+++ b/packages/python-sdk/e2b/sandbox_async/sandbox_api.py
@@ -317,6 +317,7 @@ class SandboxApi(SandboxBase):
disk_used=metric.disk_used,
mem_total=metric.mem_total,
mem_used=metric.mem_used,
+ mem_cache=metric.mem_cache,
timestamp=metric.timestamp,
)
for metric in res.parsed
diff --git a/packages/python-sdk/e2b/sandbox_sync/sandbox_api.py b/packages/python-sdk/e2b/sandbox_sync/sandbox_api.py
index 93cbbed6f..45c5b5561 100644
--- a/packages/python-sdk/e2b/sandbox_sync/sandbox_api.py
+++ b/packages/python-sdk/e2b/sandbox_sync/sandbox_api.py
@@ -306,6 +306,7 @@ class SandboxApi(SandboxBase):
disk_used=metric.disk_used,
mem_total=metric.mem_total,
mem_used=metric.mem_used,
+ mem_cache=metric.mem_cache,
timestamp=metric.timestamp,
)
for metric in res.parsed
diff --git a/spec/openapi.yml b/spec/openapi.yml
index 87b369ad7..5d3a54235 100644
--- a/spec/openapi.yml
+++ b/spec/openapi.yml
@@ -27,6 +27,16 @@ components:
type: apiKey
in: header
name: X-Supabase-Team
+ # AuthProviderBearerAuth / AuthProviderTeamAuth: B before T in the name
+ # so Bearer is validated before Team (same reason as Supabase1/2 above).
+ AuthProviderBearerAuth:
+ type: http
+ scheme: bearer
+ bearerFormat: access_token
+ AuthProviderTeamAuth:
+ type: apiKey
+ in: header
+ name: X-Team-ID
AdminTokenAuth:
type: apiKey
in: header
@@ -184,6 +194,9 @@ components:
description: Identifier of the user
email:
type: string
+ nullable: true
+ deprecated: true
+ default: null
description: Email of the user
TemplateUpdateRequest:
@@ -284,7 +297,10 @@ components:
description: Specify host mask which will be used for all sandbox requests
rules:
type: object
- description: Per-domain transform rules applied to matching egress HTTP/HTTPS requests. Keys are domains (e.g. "api.example.com", "example.com"). A domain listed here is not automatically allowed - use allowOut to permit the traffic.
+ description: >
+ Per-domain transform rules applied to matching egress HTTP/HTTPS requests.
+ Keys are domains (e.g. "api.example.com", "example.com").
+ A domain listed here is not automatically allowed - use allowOut to permit the traffic.
additionalProperties:
type: array
items:
@@ -330,7 +346,10 @@ components:
properties:
headers:
type: object
- description: HTTP headers to inject or override in matching requests. An existing header with the same name is replaced. Values are plain strings; secret resolution happens client-side before sending to the API.
+ description: >
+ HTTP headers to inject or override in matching requests.
+ An existing header with the same name is replaced. Values are plain strings;
+ secret resolution happens client-side before sending to the API.
additionalProperties:
type: string
@@ -346,7 +365,7 @@ components:
- enabled
properties:
enabled:
- $ref: "#/components/schemas/SandboxAutoResumeEnabled"
+ $ref: '#/components/schemas/SandboxAutoResumeEnabled'
SandboxOnTimeout:
type: string
@@ -366,7 +385,7 @@ components:
type: boolean
description: Whether the sandbox can auto-resume.
onTimeout:
- $ref: "#/components/schemas/SandboxOnTimeout"
+ $ref: '#/components/schemas/SandboxOnTimeout'
SandboxLog:
description: Log entry with timestamp and line
@@ -439,6 +458,7 @@ components:
- cpuUsedPct
- memUsed
- memTotal
+ - memCache
- diskUsed
- diskTotal
properties:
@@ -467,6 +487,10 @@ components:
type: integer
format: int64
description: Total memory in bytes
+ memCache:
+ type: integer
+ format: int64
+ description: Cached memory (page cache) in bytes
diskUsed:
type: integer
format: int64
@@ -1373,17 +1397,22 @@ components:
NodeStatus:
type: string
- description: Status of the node
+ description: |
+ Status of the node.
+ - draining: the node is bound to be shut down. It will not accept new sandboxes and will stop once all existing sandboxes are done.
+ - standby: the node is not actively used, but it can return to ready and continue serving traffic.
enum:
- ready
- draining
- connecting
- unhealthy
+ - standby
x-enum-varnames:
- NodeStatusReady
- NodeStatusDraining
- NodeStatusConnecting
- NodeStatusUnhealthy
+ - NodeStatusStandby
NodeStatusChange:
required:
@@ -1862,6 +1891,7 @@ paths:
security:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
+ - AuthProviderBearerAuth: []
responses:
'200':
description: Successfully returned all teams
@@ -1885,6 +1915,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/teamID'
- in: query
@@ -1927,6 +1959,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/teamID'
- in: query
@@ -1974,6 +2008,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- name: metadata
in: query
@@ -2004,6 +2040,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -2032,6 +2070,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- name: metadata
in: query
@@ -2076,6 +2116,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- name: sandbox_ids
in: query
@@ -2111,6 +2153,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
- in: query
@@ -2150,6 +2194,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
- in: query
@@ -2206,6 +2252,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
responses:
@@ -2229,6 +2277,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
responses:
@@ -2249,6 +2299,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
- in: query
@@ -2293,6 +2345,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
responses:
@@ -2316,6 +2370,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
requestBody:
@@ -2348,6 +2404,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
requestBody:
@@ -2385,6 +2443,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
tags: [sandboxes]
requestBody:
content:
@@ -2413,11 +2473,13 @@ paths:
/sandboxes/{sandboxID}/network:
put:
- description: Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting a field clears it.
+ description: Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.
security:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
tags: [sandboxes]
requestBody:
required: true
@@ -2446,6 +2508,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
tags: [sandboxes]
requestBody:
content:
@@ -2476,6 +2540,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/sandboxID'
requestBody:
@@ -2512,6 +2578,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- name: sandboxID
in: query
@@ -2543,6 +2611,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -2561,6 +2631,8 @@ paths:
$ref: '#/components/responses/400'
'401':
$ref: '#/components/responses/401'
+ '403':
+ $ref: '#/components/responses/403'
'500':
$ref: '#/components/responses/500'
@@ -2573,6 +2645,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -2603,6 +2677,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
- in: path
@@ -2637,6 +2713,8 @@ paths:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- in: query
required: false
@@ -2666,6 +2744,8 @@ paths:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -2695,6 +2775,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
- $ref: '#/components/parameters/paginationNextToken'
@@ -2718,6 +2800,8 @@ paths:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
requestBody:
@@ -2746,6 +2830,8 @@ paths:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
responses:
@@ -2764,6 +2850,8 @@ paths:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
requestBody:
@@ -2791,6 +2879,8 @@ paths:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
- $ref: '#/components/parameters/buildID'
@@ -2810,6 +2900,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
- $ref: '#/components/parameters/buildID'
@@ -2836,6 +2928,8 @@ paths:
- AccessTokenAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
requestBody:
@@ -2867,6 +2961,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
- $ref: '#/components/parameters/buildID'
@@ -2914,6 +3010,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
- $ref: '#/components/parameters/buildID'
@@ -2968,6 +3066,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -2996,6 +3096,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -3022,6 +3124,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/templateID'
responses:
@@ -3050,6 +3154,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- name: alias
in: path
@@ -3079,6 +3185,14 @@ paths:
tags: [admin]
security:
- AdminTokenAuth: []
+ parameters:
+ - in: query
+ name: clusterID
+ description: Identifier of the cluster
+ required: false
+ schema:
+ type: string
+ format: uuid
responses:
'200':
description: Successfully returned all nodes
@@ -3202,12 +3316,80 @@ paths:
'500':
$ref: '#/components/responses/500'
+ /admin/teams/{teamID}/api-keys:
+ post:
+ summary: Create team API key as admin
+ description: Creates a team API key for internal service workflows.
+ tags: [admin]
+ security:
+ - AdminTokenAuth: []
+ parameters:
+ - name: teamID
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ description: Team ID
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/NewTeamAPIKey'
+ responses:
+ '201':
+ description: Team API key created successfully
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreatedTeamAPIKey'
+ '400':
+ $ref: '#/components/responses/400'
+ '401':
+ $ref: '#/components/responses/401'
+ '403':
+ $ref: '#/components/responses/403'
+ '404':
+ $ref: '#/components/responses/404'
+ '500':
+ $ref: '#/components/responses/500'
+
+ /admin/teams/{teamID}/api-keys/{apiKeyID}:
+ delete:
+ summary: Delete team API key as admin
+ description: Deletes a team API key for internal service workflows.
+ tags: [admin]
+ security:
+ - AdminTokenAuth: []
+ parameters:
+ - name: teamID
+ in: path
+ required: true
+ schema:
+ type: string
+ format: uuid
+ description: Team ID
+ - $ref: '#/components/parameters/apiKeyID'
+ responses:
+ '204':
+ description: Team API key deleted successfully
+ '400':
+ $ref: '#/components/responses/400'
+ '401':
+ $ref: '#/components/responses/401'
+ '404':
+ $ref: '#/components/responses/404'
+ '500':
+ $ref: '#/components/responses/500'
+
/access-tokens:
post:
description: Create a new access token
tags: [access-tokens]
security:
- Supabase1TokenAuth: []
+ - AuthProviderBearerAuth: []
requestBody:
required: true
content:
@@ -3232,6 +3414,7 @@ paths:
tags: [access-tokens]
security:
- Supabase1TokenAuth: []
+ - AuthProviderBearerAuth: []
parameters:
- $ref: '#/components/parameters/accessTokenID'
responses:
@@ -3251,6 +3434,8 @@ paths:
security:
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
responses:
'200':
description: Successfully returned all team API keys
@@ -3270,6 +3455,8 @@ paths:
security:
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -3295,6 +3482,8 @@ paths:
security:
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/apiKeyID'
requestBody:
@@ -3318,6 +3507,8 @@ paths:
security:
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/apiKeyID'
responses:
@@ -3338,6 +3529,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
responses:
'200':
description: Successfully listed all team volumes
@@ -3359,6 +3552,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
requestBody:
required: true
content:
@@ -3387,6 +3582,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/volumeID'
responses:
@@ -3410,6 +3607,8 @@ paths:
- ApiKeyAuth: []
- Supabase1TokenAuth: []
Supabase2TeamAuth: []
+ - AuthProviderBearerAuth: []
+ AuthProviderTeamAuth: []
parameters:
- $ref: '#/components/parameters/volumeID'
responses: