@useatlas/types
Advanced tools
+1
-0
@@ -504,2 +504,3 @@ // src/auth.ts | ||
| "billing_blocked", | ||
| "forbidden", | ||
| "internal_error" | ||
@@ -506,0 +507,0 @@ ]; |
+7
-2
@@ -51,2 +51,7 @@ /** | ||
| * string classifiers in `error-envelope.ts`, so no regex branch exists. | ||
| * - `forbidden` — the bound MCP actor lacks the authority for this tool: | ||
| * a missing OAuth scope (e.g. `mcp:write`, #3504), or insufficient RBAC | ||
| * role (#3505/#3508). Retrying won't help; the workspace admin must | ||
| * grant the scope/role. Distinct from `rls_denied` (row-level data | ||
| * policy) and `billing_blocked` (account standing). | ||
| * - `internal_error` — unexpected failure. Includes `request_id` so the | ||
@@ -69,3 +74,3 @@ * user can quote it when filing a support ticket. | ||
| */ | ||
| export type AtlasMcpToolErrorCode = "validation_failed" | "rls_denied" | "query_timeout" | "unknown_entity" | "unknown_metric" | "ambiguous_term" | "rate_limited" | "billing_blocked" | "internal_error"; | ||
| export type AtlasMcpToolErrorCode = "validation_failed" | "rls_denied" | "query_timeout" | "unknown_entity" | "unknown_metric" | "ambiguous_term" | "rate_limited" | "billing_blocked" | "forbidden" | "internal_error"; | ||
| /** | ||
@@ -89,3 +94,3 @@ * Wire shape of a typed MCP tool failure. Agents/SDK consumers parse the | ||
| /** Closed list of every code, useful for table-driven tests and the runtime guard. */ | ||
| export declare const ATLAS_MCP_TOOL_ERROR_CODES: readonly ["validation_failed", "rls_denied", "query_timeout", "unknown_entity", "unknown_metric", "ambiguous_term", "rate_limited", "billing_blocked", "internal_error"]; | ||
| export declare const ATLAS_MCP_TOOL_ERROR_CODES: readonly ["validation_failed", "rls_denied", "query_timeout", "unknown_entity", "unknown_metric", "ambiguous_term", "rate_limited", "billing_blocked", "forbidden", "internal_error"]; | ||
| /** Type guard — checks whether a string is a known `AtlasMcpToolErrorCode`. */ | ||
@@ -92,0 +97,0 @@ export declare function isAtlasMcpToolErrorCode(value: string): value is AtlasMcpToolErrorCode; |
+1
-0
@@ -11,2 +11,3 @@ // src/mcp.ts | ||
| "billing_blocked", | ||
| "forbidden", | ||
| "internal_error" | ||
@@ -13,0 +14,0 @@ ]; |
+1
-1
| { | ||
| "name": "@useatlas/types", | ||
| "version": "0.2.0", | ||
| "version": "0.3.0", | ||
| "description": "Shared types for the Atlas text-to-SQL agent", | ||
@@ -5,0 +5,0 @@ "type": "module", |
242140
0.17%5940
0.12%