From 377c8aec5b6fce0076767c1aff6792bccc607089 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 31 Aug 2026 10:10:57 +0000 Subject: [PATCH] chore: refresh LangSmith platform OpenAPI spec Automated refresh from api.smith.langchain.com with fleet and internal endpoints filtered for public documentation. --- src/langsmith/langsmith-platform-openapi.json | 34221 +++++++++------- 1 file changed, 18954 insertions(+), 15267 deletions(-) diff --git a/src/langsmith/langsmith-platform-openapi.json b/src/langsmith/langsmith-platform-openapi.json index 1629573955..8260b7c0dc 100644 --- a/src/langsmith/langsmith-platform-openapi.json +++ b/src/langsmith/langsmith-platform-openapi.json @@ -6,28 +6,6 @@ "version": "0.1.0" }, "paths": { - "/api/v1/info": { - "get": { - "tags": [ - "info" - ], - "summary": "Get Server Info", - "description": "Get information about the current deployment of LangSmith.", - "operationId": "get_server_info_api_v1_info_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InfoGetResponse" - } - } - } - } - } - } - }, "/api/v1/info/health": { "get": { "tags": [ @@ -47,51 +25,8 @@ } } } - } - } - }, - "/api/v1/metrics/queue/{queue_name}": { - "get": { - "tags": [ - "metrics" - ], - "summary": "Get Queue Metrics", - "description": "Return cached SAQ queue counts for the requested queue.", - "operationId": "get_queue_metrics_api_v1_metrics_queue__queue_name__get", - "parameters": [ - { - "name": "queue_name", - "in": "path", - "required": true, - "schema": { - "type": "string", - "title": "Queue Name" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueueInfoResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } }, - "x-hidden": true + "x-public": true } }, "/api/v1/sessions/{session_id}/dashboard": { @@ -172,7 +107,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}": { @@ -181,7 +117,7 @@ "tracer-sessions" ], "summary": "Read Tracer Session", - "description": "Get a specific session.", + "description": "Get a specific project.", "operationId": "read_tracer_session_api_v1_sessions__session_id__get", "security": [ { @@ -270,14 +206,15 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ "tracer-sessions" ], "summary": "Update Tracer Session", - "description": "Update a session.", + "description": "Update a project.", "operationId": "update_tracer_session_api_v1_sessions__session_id__patch", "security": [ { @@ -333,14 +270,15 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ "tracer-sessions" ], "summary": "Delete Tracer Session", - "description": "Delete a specific session.", + "description": "Delete a specific project.", "operationId": "delete_tracer_session_api_v1_sessions__session_id__delete", "security": [ { @@ -384,7 +322,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions": { @@ -393,7 +332,7 @@ "tracer-sessions" ], "summary": "Read Tracer Sessions", - "description": "Get all sessions.", + "description": "List all projects.", "operationId": "read_tracer_sessions_api_v1_sessions_get", "security": [ { @@ -761,14 +700,15 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ "tracer-sessions" ], "summary": "Create Tracer Session", - "description": "Create a new session.", + "description": "Create a new project.", "operationId": "create_tracer_session_api_v1_sessions_post", "security": [ { @@ -824,14 +764,15 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ "tracer-sessions" ], "summary": "Delete Tracer Sessions", - "description": "Delete sessions.", + "description": "Delete projects.", "operationId": "delete_tracer_sessions_api_v1_sessions_delete", "security": [ { @@ -878,7 +819,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/metadata": { @@ -990,7 +932,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/views": { @@ -1065,7 +1008,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -1128,7 +1072,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/views/{view_id}": { @@ -1193,7 +1138,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -1266,7 +1212,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -1327,7 +1274,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/views/{view_id}/rename": { @@ -1402,7 +1350,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/insights": { @@ -1513,7 +1462,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -1576,7 +1526,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/insights/configs": { @@ -1641,7 +1592,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -1704,7 +1656,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/insights/configs/generate": { @@ -1769,7 +1722,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/insights/configs/{config_id}": { @@ -1844,7 +1798,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -1907,7 +1862,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/insights/{job_id}": { @@ -1972,7 +1928,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -2045,7 +2002,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -2108,7 +2066,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/insights/{job_id}/clusters/{cluster_id}": { @@ -2183,7 +2142,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sessions/{session_id}/insights/{job_id}/runs": { @@ -2324,7 +2284,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces": { @@ -2377,7 +2338,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -2451,7 +2413,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/{workspace_id}": { @@ -2516,7 +2479,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -2566,7 +2530,89 @@ } } } - } + }, + "x-public": true + }, + "get": { + "tags": [ + "workspaces" + ], + "summary": "Get Workspace", + "description": "Get a single workspace by ID, scoped to the current org and identity.", + "operationId": "get_workspace_api_v1_workspaces__workspace_id__get", + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "workspace_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Workspace Id" + } + }, + { + "name": "include_deleted", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Include Deleted" + } + }, + { + "name": "data_plane_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Data Plane Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TenantForUser" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true } }, "/api/v1/workspaces/current/stats": { @@ -2630,7 +2676,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/usage_limits": { @@ -2662,7 +2709,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/shared": { @@ -2730,7 +2778,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -2779,7 +2828,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/secrets": { @@ -2815,7 +2865,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -2867,7 +2918,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/secrets/encrypted": { @@ -2960,7 +3012,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/tag-keys": { @@ -2996,7 +3049,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -3046,7 +3100,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/tag-keys/{tag_key_id}": { @@ -3110,7 +3165,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -3162,7 +3218,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -3212,7 +3269,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/tag-keys/{tag_key_id}/tag-values": { @@ -3276,7 +3334,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -3332,7 +3391,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/tag-keys/{tag_key_id}/tag-values/{tag_value_id}": { @@ -3396,7 +3456,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -3468,7 +3529,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -3528,7 +3590,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/taggings": { @@ -3580,7 +3643,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -3643,7 +3707,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/taggings/{tagging_id}": { @@ -3695,7 +3760,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/tags": { @@ -3705,33 +3771,62 @@ ], "summary": "List Tags", "operationId": "list_tags_api_v1_workspaces_current_tags_get", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "resource_type", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ResourceType" + }, + { + "type": "null" + } + ], + "title": "Resource Type" + } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { + "type": "array", "items": { "$ref": "#/components/schemas/TagKeyWithValues" }, - "type": "array", "title": "Response List Tags Api V1 Workspaces Current Tags Get" } } } - } - }, - "security": [ - { - "API Key": [] }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } - ] + }, + "x-public": true } }, "/api/v1/workspaces/current/tags/resource": { @@ -3797,7 +3892,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/tags/resources": { @@ -3863,7 +3959,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/audit-logs": { @@ -3981,6 +4078,71 @@ "title": "Operations" }, "description": "Filter by operation names. If omitted, all operations are returned." + }, + { + "name": "actor_ls_user_ids", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + { + "type": "null" + } + ], + "description": "Filter by human actor (ls_user_id).", + "title": "Actor Ls User Ids" + }, + "description": "Filter by human actor (ls_user_id)." + }, + { + "name": "actor_api_key_ids", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + { + "type": "null" + } + ], + "description": "Filter by API key actor (api_key_id).", + "title": "Actor Api Key Ids" + }, + "description": "Filter by API key actor (api_key_id)." + }, + { + "name": "resource_ids", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "description": "Filter by resource ID. Matches if any resource ID is present on the log.", + "title": "Resource Ids" + }, + "description": "Filter by resource ID. Matches if any resource ID is present on the log." } ], "responses": { @@ -4004,7 +4166,42 @@ } } } - } + }, + "x-public": true + } + }, + "/api/v1/audit-logs/operations": { + "get": { + "tags": [ + "audit-logs" + ], + "summary": "List Audit Log Operations", + "description": "List all possible audit log operation names, for populating filter UI.\n\nIndependent of any operations actually recorded so far for the organization.", + "operationId": "list_audit_log_operations_api_v1_audit_logs_operations_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListAuditLogOperationsResponse" + } + } + } + } + }, + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true } }, "/api/v1/ttl-settings": { @@ -4041,7 +4238,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -4091,7 +4289,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/ttl-settings": { @@ -4128,7 +4327,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -4178,27 +4378,8 @@ { "Bearer Auth": [] } - ] - } - }, - "/api/v1/ok": { - "get": { - "tags": [ - "health" ], - "summary": "Ok", - "operationId": "ok_api_v1_ok_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - } - }, - "x-hidden": true + "x-public": true } }, "/api/v1/examples/count": { @@ -4371,7 +4552,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples/{example_id}": { @@ -4463,7 +4645,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -4524,7 +4707,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -4575,7 +4759,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples": { @@ -4773,6 +4958,10 @@ "name", "dataset_id", "source_run_id", + "source_session_id", + "source_run_start_time", + "source_trace_id", + "source_thread_id", "metadata", "inputs", "outputs" @@ -4838,7 +5027,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -4906,6 +5096,42 @@ ], "title": "Source Run Id" }, + "source_session_id": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Session Id" + }, + "source_run_start_time": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Run Start Time" + }, + "source_trace_id": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Trace Id" + }, "metadata": { "anyOf": [ { @@ -4992,7 +5218,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -5046,7 +5273,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples/bulk": { @@ -5092,6 +5320,42 @@ ], "title": "Source Run Id" }, + "source_session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Session Id" + }, + "source_run_start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Source Run Start Time" + }, + "source_trace_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Trace Id" + }, "metadata": { "anyOf": [ { @@ -5216,7 +5480,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "patch": { "tags": [ @@ -5269,7 +5534,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/examples/upload/{dataset_id}": { @@ -5338,7 +5604,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples/validate": { @@ -5371,7 +5638,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/examples/validate/bulk": { @@ -5408,7 +5676,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets": { @@ -5638,7 +5907,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -5689,7 +5959,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -5744,7 +6015,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/stream": { @@ -5949,7 +6221,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}": { @@ -6004,7 +6277,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -6055,7 +6329,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -6126,7 +6401,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/upload": { @@ -6179,7 +6455,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/upload-experiment": { @@ -6232,7 +6509,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/{dataset_id}/versions": { @@ -6347,7 +6625,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/versions/diff": { @@ -6436,7 +6715,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/version": { @@ -6524,7 +6804,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/tags": { @@ -6589,7 +6870,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/openai": { @@ -6661,7 +6943,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/openai_ft": { @@ -6733,7 +7016,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/csv": { @@ -6805,7 +7089,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/jsonl": { @@ -6877,7 +7162,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/runs": { @@ -6888,6 +7174,7 @@ "summary": "Read Examples With Runs", "description": "Fetch examples for a dataset, and fetch the runs for each example if they are associated with the given session_ids.", "operationId": "read_examples_with_runs_api_v1_datasets__dataset_id__runs_post", + "deprecated": true, "security": [ { "API Key": [] @@ -6973,17 +7260,18 @@ } } } - } + }, + "x-public": true } }, - "/api/v1/datasets/{dataset_id}/group/runs": { - "post": { + "/api/v1/datasets/{dataset_id}/share": { + "get": { "tags": [ "datasets" ], - "summary": "Read Examples With Runs Grouped", - "description": "Fetch examples for a dataset, and fetch the runs for each example if they are associated with the given session_ids.", - "operationId": "read_examples_with_runs_grouped_api_v1_datasets__dataset_id__group_runs_post", + "summary": "Read Dataset Share State", + "description": "Get the state of sharing a dataset", + "operationId": "read_dataset_share_state_api_v1_datasets__dataset_id__share_get", "security": [ { "API Key": [] @@ -7007,23 +7295,21 @@ } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryGroupedExamplesWithRuns" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupedExamplesWithRunsResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/DatasetShareSchema" + }, + { + "type": "null" + } + ], + "title": "Response Read Dataset Share State Api V1 Datasets Dataset Id Share Get" } } } @@ -7038,269 +7324,16 @@ } } } - } - } - }, - "/api/v1/datasets/{dataset_id}/runs/delta": { - "post": { + }, + "x-public": true + }, + "put": { "tags": [ "datasets" ], - "summary": "Read Delta", - "description": "Fetch the number of regressions/improvements for each example in a dataset, between sessions[0] and sessions[1].", - "operationId": "read_delta_api_v1_datasets__dataset_id__runs_delta_post", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryFeedbackDelta" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SessionFeedbackDelta" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/datasets/{dataset_id}/runs/delta/stream": { - "post": { - "tags": [ - "datasets" - ], - "summary": "Read Delta Stream", - "description": "Stream feedback deltas for multiple feedback keys.\n\nReturns results in chunks as they become available. Each chunk contains\nresults for one or more feedback keys. Errors for individual chunks are\nincluded in the response rather than failing the entire operation.\n\nResponse format (SSE):\n event: data\n data: {\"feedback_deltas\": {\"key1\": {session_id: {...}}, ...}, \"errors\": null}\n\n event: data\n data: {\"feedback_deltas\": {\"key2\": {...}}, \"errors\": null}\n\n event: end", - "operationId": "read_delta_stream_api_v1_datasets__dataset_id__runs_delta_stream_post", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryFeedbackDeltaBatch" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/datasets/{dataset_id}/experiments/grouped": { - "post": { - "tags": [ - "datasets" - ], - "summary": "Read Grouped Experiments", - "description": "Stream grouped and aggregated experiments.", - "operationId": "read_grouped_experiments_api_v1_datasets__dataset_id__experiments_grouped_post", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupedExperimentsRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/datasets/{dataset_id}/share": { - "get": { - "tags": [ - "datasets" - ], - "summary": "Read Dataset Share State", - "description": "Get the state of sharing a dataset", - "operationId": "read_dataset_share_state_api_v1_datasets__dataset_id__share_get", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/DatasetShareSchema" - }, - { - "type": "null" - } - ], - "title": "Response Read Dataset Share State Api V1 Datasets Dataset Id Share Get" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - }, - "put": { - "tags": [ - "datasets" - ], - "summary": "Share Dataset", - "description": "Share a dataset.", - "operationId": "share_dataset_api_v1_datasets__dataset_id__share_put", + "summary": "Share Dataset", + "description": "Share a dataset.", + "operationId": "share_dataset_api_v1_datasets__dataset_id__share_put", "security": [ { "API Key": [] @@ -7355,7 +7388,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -7406,160 +7440,8 @@ } } } - } - } - }, - "/api/v1/datasets/{dataset_id}/comparative": { - "get": { - "tags": [ - "datasets" - ], - "summary": "Read Comparative Experiments", - "description": "Get all comparative experiments for a given dataset.", - "operationId": "read_comparative_experiments_api_v1_datasets__dataset_id__comparative_get", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - } - }, - { - "name": "name", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - } - }, - { - "name": "name_contains", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name Contains" - } - }, - { - "name": "id", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - } - }, - { - "type": "null" - } - ], - "title": "Id" - } - }, - { - "name": "offset", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 0, - "default": 0, - "title": "Offset" - } - }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "default": 100, - "title": "Limit" - } - }, - { - "name": "sort_by", - "in": "query", - "required": false, - "schema": { - "$ref": "#/components/schemas/SortByComparativeExperimentColumn", - "default": "created_at" - } - }, - { - "name": "sort_by_desc", - "in": "query", - "required": false, - "schema": { - "type": "boolean", - "default": true, - "title": "Sort By Desc" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ComparativeExperiment" - }, - "title": "Response Read Comparative Experiments Api V1 Datasets Dataset Id Comparative Get" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } + }, + "x-public": true } }, "/api/v1/datasets/comparative": { @@ -7612,7 +7494,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/comparative/{comparative_experiment_id}": { @@ -7665,7 +7548,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/clone": { @@ -7723,7 +7607,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/{dataset_id}/splits": { @@ -7801,7 +7686,8 @@ } } } - } + }, + "x-public": true }, "put": { "tags": [ @@ -7868,7 +7754,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/generate": { @@ -7931,7 +7818,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/studio_experiment": { @@ -7983,7 +7871,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/rules": { @@ -8169,7 +8058,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -8220,7 +8110,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/validate": { @@ -8278,7 +8169,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/rules/{rule_id}": { @@ -8343,7 +8235,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -8394,7 +8287,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/threads/{thread_id}": { @@ -8496,7 +8390,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/logs": { @@ -8629,7 +8524,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/logs/v2": { @@ -8773,7 +8669,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/last_applied": { @@ -8838,7 +8735,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/trigger": { @@ -8877,9 +8775,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/RunRulesSchema" - } + "schema": {} } } }, @@ -8893,7 +8789,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/trigger": { @@ -8944,7 +8841,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/{run_id}": { @@ -8955,6 +8853,7 @@ "summary": "Read Run", "description": "Get a specific run.", "operationId": "read_run_api_v1_runs__run_id__get", + "deprecated": true, "security": [ { "API Key": [] @@ -9063,15 +8962,10 @@ } } } - } + }, + "x-public": true }, "patch": { - "tags": [ - "run" - ], - "summary": "Update Run", - "description": "Update a run.", - "operationId": "update_run_api_v1_runs__run_id__patch", "security": [ { "API Key": [] @@ -9083,37 +8977,120 @@ "Bearer Auth": [] } ], + "description": "Updates a run identified by its ID. The body should contain only the fields to be changed; unknown fields are ignored.", + "tags": [ + "runs" + ], + "summary": "Update a Run", "parameters": [ { + "description": "Run ID", "name": "run_id", "in": "path", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Run Id" + "format": "uuid" } } ], "responses": { - "200": { - "description": "Successful Response", + "202": { + "description": "Run updated", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } } } }, "422": { - "description": "Validation Error", + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.Run" + } + } + } } } }, @@ -9125,6 +9102,7 @@ "summary": "Read Run Share State", "description": "Get the state of sharing of a run.", "operationId": "read_run_share_state_api_v1_runs__run_id__share_get", + "deprecated": true, "security": [ { "API Key": [] @@ -9177,7 +9155,8 @@ } } } - } + }, + "x-public": true }, "put": { "tags": [ @@ -9186,6 +9165,7 @@ "summary": "Share Run", "description": "Share a run.", "operationId": "share_run_api_v1_runs__run_id__share_put", + "deprecated": true, "security": [ { "API Key": [] @@ -9230,7 +9210,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -9239,6 +9220,7 @@ "summary": "Unshare Run", "description": "Unshare a run.", "operationId": "unshare_run_api_v1_runs__run_id__share_delete", + "deprecated": true, "security": [ { "API Key": [] @@ -9281,7 +9263,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/query/validate": { @@ -9323,7 +9306,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/query": { @@ -9365,6 +9349,7 @@ } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -9375,7 +9360,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/generate-query": { @@ -9428,7 +9414,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/stats": { @@ -9492,27 +9479,121 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs": { "post": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Queues a single run for ingestion. The request body must be a JSON-encoded run object that follows the Run schema.", "tags": [ - "run" + "runs" ], - "summary": "Create Run Proxy", - "description": "Create a new run.", - "operationId": "create_run_proxy_api_v1_runs_post", + "summary": "Create a Run", + "parameters": [], "responses": { "202": { - "description": "Successful Response", + "description": "Run created", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } } } } }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.Run" + } + } + } + } + } + }, + "/api/v1/runs/batch": { + "post": { "security": [ { "API Key": [] @@ -9523,27 +9604,129 @@ { "Bearer Auth": [] } - ] - } - }, - "/api/v1/runs/batch": { - "post": { + ], + "description": "Ingests a batch of runs in a single JSON payload. The payload must have `post` and/or `patch` arrays containing run objects.\nPrefer this endpoint over single‑run ingestion when submitting hundreds of runs, but `/runs/multipart` offers better handling for very large fields and attachments.", "tags": [ - "run" + "runs" ], - "summary": "Create Runs Batch Proxy", - "description": "Proxy POST /runs/batch to Go backend for tests.", - "operationId": "create_runs_batch_proxy_api_v1_runs_batch_post", + "summary": "Ingest Runs (Batch JSON)", + "parameters": [], "responses": { "202": { - "description": "Successful Response", + "description": "Runs batch ingested", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } } } } }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "patch": { + "type": "array", + "items": { + "$ref": "#/components/schemas/runs.Run" + } + }, + "post": { + "type": "array", + "items": { + "$ref": "#/components/schemas/runs.Run" + } + } + } + } + } + } + } + } + }, + "/api/v1/runs/multipart": { + "post": { "security": [ { "API Key": [] @@ -9554,38 +9737,141 @@ { "Bearer Auth": [] } - ] - } - }, - "/api/v1/runs/multipart": { - "post": { + ], + "description": "Ingests multiple runs, feedback objects, and binary attachments in a single `multipart/form-data` request.\n**Part‑name pattern**: `.[.]` where `event` ∈ {`post`, `patch`, `feedback`, `attachment`}.\n* `post|patch.` – JSON run payload.\n* `post|patch..` – out‑of‑band run data (`inputs`, `outputs`, `events`, `error`, `extra`, `serialized`).\n* `feedback.` – JSON feedback payload (must include `trace_id` and `session_id`).\n* `attachment..` – arbitrary binary attachment stored in S3.\n**Headers**: every part must set `Content-Type` **and** either a `Content-Length` header or `length` parameter. Per‑part `Content-Encoding` is **not** allowed; the top‑level request may be `Content-Encoding: gzip` or `Content-Encoding: zstd`.\n**Best performance** for high‑volume ingestion.", "tags": [ - "run" + "runs" ], - "summary": "Create Runs Multipart Proxy", - "description": "Proxy POST /runs/multipart to Go backend for tests.", - "operationId": "create_runs_multipart_proxy_api_v1_runs_multipart_post", + "summary": "Ingest Runs (Multipart)", + "parameters": [], "responses": { "202": { - "description": "Successful Response", + "description": "Accepted", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } } } - } - }, - "security": [ - { - "API Key": [] }, - { - "Tenant ID": [] + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } }, - { - "Bearer Auth": [] + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "501": { + "description": "a feedback part needs session_id in current db deployment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } } - ] + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "post.{run_id}": { + "type": "string", + "format": "binary", + "description": "Run to create (JSON)" + }, + "patch.{run_id}": { + "type": "string", + "format": "binary", + "description": "Run to update (JSON)" + }, + "post.{run_id}.inputs": { + "type": "string", + "format": "binary", + "description": "Large inputs object (JSON) stored out‑of‑band" + }, + "patch.{run_id}.outputs": { + "type": "string", + "format": "binary", + "description": "Large outputs object (JSON) stored out‑of‑band" + }, + "feedback.{run_id}": { + "type": "string", + "format": "binary", + "description": "Feedback object (JSON) – must include trace_id and session_id" + }, + "attachment.{run_id}.{filename}": { + "type": "string", + "format": "binary", + "description": "Binary attachment linked to run {run_id}" + } + } + } + } + } + } } }, "/api/v1/runs/group": { @@ -9654,7 +9940,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/group/stats": { @@ -9707,7 +9994,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/delete/traces": { @@ -9758,7 +10046,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/delete": { @@ -9767,7 +10056,7 @@ "run" ], "summary": "Delete Runs", - "description": "Delete specific runs by trace IDs or metadata key-value pairs.", + "description": "DELETE with body payload — removes the runs identified by the request payload.\n\nDelete runs by trace ID, or every run in a time range.\n\nSupply `session_id` and `trace_ids` to delete a known list of traces, or\n`metadata` with `start_time` to delete matching traces from that time\nonward. Add `end_time` to bound the range; with both bounds set `metadata`\nis optional, and omitting it deletes every trace that started in the range.", "operationId": "delete_runs_api_v1_runs_delete_post", "requestBody": { "content": { @@ -9808,7 +10097,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/experiments/{experiment_id}/evaluate": { @@ -9875,7 +10165,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/formulas": { @@ -9884,8 +10175,9 @@ "feedback" ], "summary": "Create Feedback Formula Ep", - "description": "Create a new feedback formula", + "description": "Create a new feedback formula\n\nDeprecated: use POST /api/v1/feedback/composite-evaluators instead to create a code evaluator from the feedback formula.", "operationId": "create_feedback_formula_ep_api_v1_feedback_formulas_post", + "deprecated": true, "security": [ { "API Key": [] @@ -9928,15 +10220,17 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ "feedback" ], "summary": "List Feedback Formula Ep", - "description": "List feedback formulas for a given dataset or tracing project", + "description": "List feedback formulas for a given dataset or tracing project\n\nDeprecated: superseded by composite-feedback v2, where composites are code evaluators with run rules.", "operationId": "list_feedback_formula_ep_api_v1_feedback_formulas_get", + "deprecated": true, "security": [ { "API Key": [] @@ -10029,7 +10323,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/formulas/{feedback_formula_id}": { @@ -10038,8 +10333,9 @@ "feedback" ], "summary": "Get Feedback Formula Ep", - "description": "Get a feedback formula by id", + "description": "Get a feedback formula by id\n\nDeprecated: superseded by composite-feedback v2, where composites are code evaluators with run rules", "operationId": "get_feedback_formula_ep_api_v1_feedback_formulas__feedback_formula_id__get", + "deprecated": true, "security": [ { "API Key": [] @@ -10084,15 +10380,17 @@ } } } - } + }, + "x-public": true }, "put": { "tags": [ "feedback" ], "summary": "Update Feedback Formula Ep", - "description": "Update a feedback formula", + "description": "Update a feedback formula\n\nDeprecated: superseded by composite-feedback v2, where composites are code evaluators with run rules", "operationId": "update_feedback_formula_ep_api_v1_feedback_formulas__feedback_formula_id__put", + "deprecated": true, "security": [ { "API Key": [] @@ -10147,15 +10445,17 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ "feedback" ], "summary": "Delete Feedback Formula Endpoint", - "description": "Delete a feedback formula by id", + "description": "Delete a feedback formula by id\n\nDeprecated: superseded by composite-feedback v2, where composites are run\nrules (see DELETE /api/v1/runs/rules/{rule_id}). Tenants on v2 receive HTTP 410.", "operationId": "delete_feedback_formula_endpoint_api_v1_feedback_formulas__feedback_formula_id__delete", + "deprecated": true, "security": [ { "API Key": [] @@ -10198,7 +10498,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/{feedback_id}": { @@ -10269,7 +10570,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -10332,7 +10634,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -10383,7 +10686,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback": { @@ -10617,6 +10921,22 @@ "title": "Min Created At" } }, + { + "name": "feedback_thread_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Feedback Thread Id" + } + }, { "name": "include_user_names", "in": "query", @@ -10676,14 +10996,15 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ "feedback" ], "summary": "Create Feedback", - "description": "Create a new feedback.", + "description": "Create a new feedback.\n\n`session_id` is required: it identifies the tracing project the feedback\nbelongs to.", "operationId": "create_feedback_api_v1_feedback_post", "security": [ { @@ -10727,60 +11048,8 @@ } } } - } - } - }, - "/api/v1/feedback/eager": { - "post": { - "tags": [ - "feedback" - ], - "summary": "Eagerly Create Feedback", - "description": "Create a new feedback.\n\nThis method is invoked under the assumption that the run\nis already visible in the app, thus already present in DB", - "operationId": "eagerly_create_feedback_api_v1_feedback_eager_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FeedbackCreateSchema" - } - } - }, - "required": true }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FeedbackSchema" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/feedback/tokens": { @@ -10855,7 +11124,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -10912,7 +11182,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/tokens/{token}": { @@ -10956,6 +11227,16 @@ "title": "Score" } }, + { + "name": "extend_trace_retention", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": true, + "title": "Extend Trace Retention" + } + }, { "name": "value", "in": "query", @@ -11033,7 +11314,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -11083,7 +11365,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/run": { @@ -11137,7 +11420,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/run/{id}": { @@ -11148,6 +11432,7 @@ "summary": "Get Shared Run By Id", "description": "Get the shared run.", "operationId": "get_shared_run_by_id_api_v1_public__share_token__run__id__get", + "deprecated": true, "parameters": [ { "name": "id", @@ -11201,7 +11486,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/runs/query": { @@ -11212,6 +11498,7 @@ "summary": "Query Shared Runs", "description": "Get run by ids or the shared run if not specifed.", "operationId": "query_shared_runs_api_v1_public__share_token__runs_query_post", + "deprecated": true, "parameters": [ { "name": "share_token", @@ -11255,7 +11542,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/feedbacks": { @@ -11471,7 +11759,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets": { @@ -11557,7 +11846,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/examples/count": { @@ -11674,7 +11964,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/examples": { @@ -11840,7 +12131,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/sessions": { @@ -11965,6 +12257,22 @@ "title": "Sort By Feedback Key" } }, + { + "name": "sort_by_feedback_source", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Sort By Feedback Source" + } + }, { "name": "offset", "in": "query", @@ -11998,6 +12306,68 @@ "title": "Facets" } }, + { + "name": "use_approx_stats", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Use Approx Stats" + } + }, + { + "name": "stats_start_time", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Stats Start Time" + } + }, + { + "name": "stats_select", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "title": "Stats Select" + } + }, + { + "name": "stats_filter", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Stats Filter" + } + }, { "name": "accept", "in": "header", @@ -12040,7 +12410,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/datasets/sessions-bulk": { @@ -12090,181 +12461,8 @@ } } } - } - } - }, - "/api/v1/public/{share_token}/examples/runs": { - "post": { - "tags": [ - "public" - ], - "summary": "Read Shared Dataset Examples With Runs", - "description": "Get examples with associated runs from sessions in a dataset that has been shared.", - "operationId": "read_shared_dataset_examples_with_runs_api_v1_public__share_token__examples_runs_post", - "parameters": [ - { - "name": "share_token", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Share Token" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryExampleSchemaWithRuns" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/PublicExampleWithRuns" - } - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/ExampleWithRunsCH" - } - } - ], - "title": "Response Read Shared Dataset Examples With Runs Api V1 Public Share Token Examples Runs Post" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/public/{share_token}/datasets/runs/delta": { - "post": { - "tags": [ - "public" - ], - "summary": "Read Shared Delta", - "description": "Fetch the number of regressions/improvements for each example in a dataset, between sessions[0] and sessions[1].", - "operationId": "read_shared_delta_api_v1_public__share_token__datasets_runs_delta_post", - "parameters": [ - { - "name": "share_token", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Share Token" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryFeedbackDelta" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SessionFeedbackDelta" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/public/{share_token}/datasets/runs/delta/stream": { - "post": { - "tags": [ - "public" - ], - "summary": "Read Shared Delta Stream", - "description": "Stream feedback deltas for multiple feedback keys.\n\nReturns results in chunks as they become available. Each chunk contains\nresults for one or more feedback keys. Errors for individual chunks are\nincluded in the response rather than failing the entire operation.\n\nResponse format (SSE):\n event: data\n data: {\"feedback_deltas\": {\"key1\": {session_id: {...}}, ...}, \"errors\": null}\n\n event: data\n data: {\"feedback_deltas\": {\"key2\": {...}}, \"errors\": null}\n\n event: end", - "operationId": "read_shared_delta_stream_api_v1_public__share_token__datasets_runs_delta_stream_post", - "parameters": [ - { - "name": "share_token", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Share Token" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryFeedbackDeltaBatch" - } - } - } }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/query": { @@ -12318,7 +12516,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/generate-query": { @@ -12372,7 +12571,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/stats": { @@ -12400,7 +12600,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RunStatsQueryParams" + "$ref": "#/components/schemas/RunStatsQueryParamsPublic" } } } @@ -12426,7 +12626,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/{run_id}": { @@ -12490,7 +12691,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/feedback": { @@ -12707,7 +12909,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/comparative": { @@ -12829,7 +13032,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/message.json": { @@ -12869,7 +13073,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/tooldef.json": { @@ -12909,7 +13114,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues": { @@ -13125,7 +13331,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -13175,7 +13382,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -13230,7 +13438,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/populate": { @@ -13281,7 +13490,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}": { @@ -13333,7 +13543,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -13393,7 +13604,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13445,7 +13657,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs": { @@ -13455,6 +13668,7 @@ ], "summary": "Add Runs To Annotation Queue", "operationId": "add_runs_to_annotation_queue_api_v1_annotation_queues__queue_id__runs_post", + "deprecated": true, "security": [ { "API Key": [] @@ -13476,6 +13690,16 @@ "format": "uuid", "title": "Queue Id" } + }, + { + "name": "extend_trace_retention", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Extend Trace Retention" + } } ], "requestBody": { @@ -13534,7 +13758,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13542,6 +13767,7 @@ ], "summary": "Get Runs From Annotation Queue", "operationId": "get_runs_from_annotation_queue_api_v1_annotation_queues__queue_id__runs_get", + "deprecated": true, "security": [ { "API Key": [] @@ -13666,7 +13892,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/by-key": { @@ -13675,7 +13902,9 @@ "annotation-queues" ], "summary": "Add Runs To Annotation Queue By Key", + "description": "Self-hosted deployments require LangSmith `v0.16` or later.", "operationId": "add_runs_to_annotation_queue_by_key_api_v1_annotation_queues__queue_id__runs_by_key_post", + "deprecated": true, "security": [ { "API Key": [] @@ -13697,6 +13926,16 @@ "format": "uuid", "title": "Queue Id" } + }, + { + "name": "extend_trace_retention", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Extend Trace Retention" + } } ], "requestBody": { @@ -13738,7 +13977,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/export": { @@ -13800,7 +14040,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/run/{index}": { @@ -13811,6 +14052,7 @@ "summary": "Get Run From Annotation Queue", "description": "Get a run from an annotation queue", "operationId": "get_run_from_annotation_queue_api_v1_annotation_queues__queue_id__run__index__get", + "deprecated": true, "security": [ { "API Key": [] @@ -13874,7 +14116,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{run_id}/queues": { @@ -13932,7 +14175,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/{queue_run_id}": { @@ -13942,6 +14186,7 @@ ], "summary": "Update Run In Annotation Queue", "operationId": "update_run_in_annotation_queue_api_v1_annotation_queues__queue_id__runs__queue_run_id__patch", + "deprecated": true, "security": [ { "API Key": [] @@ -14004,7 +14249,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -14012,6 +14258,7 @@ ], "summary": "Delete Run From Annotation Queue", "operationId": "delete_run_from_annotation_queue_api_v1_annotation_queues__queue_id__runs__queue_run_id__delete", + "deprecated": true, "security": [ { "API Key": [] @@ -14064,7 +14311,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/delete": { @@ -14074,6 +14322,7 @@ ], "summary": "Delete Runs From Annotation Queue", "operationId": "delete_runs_from_annotation_queue_api_v1_annotation_queues__queue_id__runs_delete_post", + "deprecated": true, "security": [ { "API Key": [] @@ -14126,7 +14375,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_size": { @@ -14136,6 +14386,7 @@ ], "summary": "Get Total Size From Annotation Queue", "operationId": "get_total_size_from_annotation_queue_api_v1_annotation_queues__queue_id__total_size_get", + "deprecated": true, "security": [ { "API Key": [] @@ -14180,7 +14431,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_archived": { @@ -14190,6 +14442,7 @@ ], "summary": "Get Total Archived From Annotation Queue", "operationId": "get_total_archived_from_annotation_queue_api_v1_annotation_queues__queue_id__total_archived_get", + "deprecated": true, "security": [ { "API Key": [] @@ -14268,7 +14521,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/size": { @@ -14278,6 +14532,7 @@ ], "summary": "Get Size From Annotation Queue", "operationId": "get_size_from_annotation_queue_api_v1_annotation_queues__queue_id__size_get", + "deprecated": true, "security": [ { "API Key": [] @@ -14343,7 +14598,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/status/{annotation_queue_run_id}": { @@ -14353,6 +14609,7 @@ ], "summary": "Create Identity Annotation Queue Run Status", "operationId": "create_identity_annotation_queue_run_status_api_v1_annotation_queues_status__annotation_queue_run_id__post", + "deprecated": true, "security": [ { "API Key": [] @@ -14405,7 +14662,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/resolve/{queue_run_id}": { @@ -14416,6 +14674,7 @@ "summary": "Resolve Annotation Queue Run", "description": "Resolve a queue run ID to its section and run data for deep linking.", "operationId": "resolve_annotation_queue_run_api_v1_annotation_queues__queue_id__runs_resolve__queue_run_id__get", + "deprecated": true, "security": [ { "API Key": [] @@ -14470,7 +14729,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/ace/execute": { @@ -14525,7 +14785,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/bulk-exports": { @@ -14536,73 +14797,6 @@ "summary": "Get Bulk Exports", "description": "Get the current workspace's bulk exports", "operationId": "get_bulk_exports_api_v1_bulk_exports_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/BulkExport" - }, - "type": "array", - "title": "Response Get Bulk Exports Api V1 Bulk Exports Get" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] - }, - "post": { - "tags": [ - "bulk-exports" - ], - "summary": "Create Bulk Export", - "description": "Create a new bulk export", - "operationId": "create_bulk_export_api_v1_bulk_exports_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExportCreate" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExport" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, "security": [ { "API Key": [] @@ -14613,125 +14807,35 @@ { "Bearer Auth": [] } - ] - } - }, - "/api/v1/bulk-exports/destinations": { - "get": { - "tags": [ - "bulk-exports" ], - "summary": "Get Bulk Export Destinations", - "description": "Get the current workspace's bulk export destinations", - "operationId": "get_bulk_export_destinations_api_v1_bulk_exports_destinations_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/BulkExportDestination" - }, - "type": "array", - "title": "Response Get Bulk Export Destinations Api V1 Bulk Exports Destinations Get" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, + "parameters": [ { - "Bearer Auth": [] - } - ] - }, - "post": { - "tags": [ - "bulk-exports" - ], - "summary": "Create Bulk Export Destination", - "description": "Create a new bulk export destination", - "operationId": "create_bulk_export_destination_api_v1_bulk_exports_destinations_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExportDestinationCreate" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExportDestination" + "name": "limit", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer", + "maximum": 1000, + "minimum": 1 + }, + { + "type": "null" } - } + ], + "title": "Limit" } }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] - } - }, - "/api/v1/bulk-exports/runs": { - "get": { - "tags": [ - "bulk-exports" - ], - "summary": "Get Bulk Export Runs Filtered", - "description": "Get all bulk export runs for exports that were created from a scheduled bulk export", - "operationId": "get_bulk_export_runs_filtered_api_v1_bulk_exports_runs_get", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ { - "name": "source_bulk_export_id", + "name": "offset", "in": "query", - "required": true, + "required": false, "schema": { - "type": "string", - "format": "uuid", - "title": "Source Bulk Export Id" + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" } } ], @@ -14743,9 +14847,9 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/BulkExportRun" + "$ref": "#/components/schemas/BulkExport" }, - "title": "Response Get Bulk Export Runs Filtered Api V1 Bulk Exports Runs Get" + "title": "Response Get Bulk Exports Api V1 Bulk Exports Get" } } } @@ -14760,17 +14864,16 @@ } } } - } - } - }, - "/api/v1/bulk-exports/{bulk_export_id}": { - "get": { + }, + "x-public": true + }, + "post": { "tags": [ "bulk-exports" ], - "summary": "Get Bulk Export", - "description": "Get a single bulk export by ID", - "operationId": "get_bulk_export_api_v1_bulk_exports__bulk_export_id__get", + "summary": "Create Bulk Export", + "description": "Create a new bulk export", + "operationId": "create_bulk_export_api_v1_bulk_exports_post", "security": [ { "API Key": [] @@ -14782,18 +14885,16 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "bulk_export_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Bulk Export Id" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExportCreate" + } } } - ], + }, "responses": { "200": { "description": "Successful Response", @@ -14815,7 +14916,243 @@ } } } - } + }, + "x-public": true + } + }, + "/api/v1/bulk-exports/destinations": { + "get": { + "tags": [ + "bulk-exports" + ], + "summary": "Get Bulk Export Destinations", + "description": "Get the current workspace's bulk export destinations", + "operationId": "get_bulk_export_destinations_api_v1_bulk_exports_destinations_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/BulkExportDestination" + }, + "type": "array", + "title": "Response Get Bulk Export Destinations Api V1 Bulk Exports Destinations Get" + } + } + } + } + }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true + }, + "post": { + "tags": [ + "bulk-exports" + ], + "summary": "Create Bulk Export Destination", + "description": "Create a new bulk export destination", + "operationId": "create_bulk_export_destination_api_v1_bulk_exports_destinations_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExportDestinationCreate" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExportDestination" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true + } + }, + "/api/v1/bulk-exports/runs": { + "get": { + "tags": [ + "bulk-exports" + ], + "summary": "Get Bulk Export Runs Filtered", + "description": "Get bulk export runs for exports that were created from a scheduled bulk export", + "operationId": "get_bulk_export_runs_filtered_api_v1_bulk_exports_runs_get", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "source_bulk_export_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Source Bulk Export Id" + } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer", + "maximum": 1000, + "minimum": 1 + }, + { + "type": "null" + } + ], + "title": "Limit" + } + }, + { + "name": "offset", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkExportRun" + }, + "title": "Response Get Bulk Export Runs Filtered Api V1 Bulk Exports Runs Get" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true + } + }, + "/api/v1/bulk-exports/{bulk_export_id}": { + "get": { + "tags": [ + "bulk-exports" + ], + "summary": "Get Bulk Export", + "description": "Get a single bulk export by ID", + "operationId": "get_bulk_export_api_v1_bulk_exports__bulk_export_id__get", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "bulk_export_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Bulk Export Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExport" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true }, "patch": { "tags": [ @@ -14878,7 +15215,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/destinations/{destination_id}": { @@ -14933,7 +15271,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -14996,7 +15335,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs": { @@ -15028,6 +15368,35 @@ "format": "uuid", "title": "Bulk Export Id" } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer", + "maximum": 1000, + "minimum": 1 + }, + { + "type": "null" + } + ], + "title": "Limit" + } + }, + { + "name": "offset", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" + } } ], "responses": { @@ -15055,7 +15424,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs/{run_id}": { @@ -15120,7 +15490,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback-configs": { @@ -15253,7 +15624,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -15303,7 +15675,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15353,7 +15726,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15398,7 +15772,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/model-price-map": { @@ -15408,16 +15783,93 @@ ], "summary": "Read Model Price Map", "operationId": "read_model_price_map_api_v1_model_price_map_get", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "offset", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" + } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "default": 100, + "title": "Limit" + } + }, + { + "name": "q", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string", + "maxLength": 200 + }, + { + "type": "null" + } + ], + "title": "Q" + } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ModelPriceMapSchema" + }, + "title": "Response Read Model Price Map Api V1 Model Price Map Get" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } } } } }, + "x-public": true + }, + "post": { + "tags": [ + "model-price-map" + ], + "summary": "Create New Model Price", + "operationId": "create_new_model_price_api_v1_model_price_map_post", "security": [ { "API Key": [] @@ -15428,23 +15880,16 @@ { "Bearer Auth": [] } - ] - }, - "post": { - "tags": [ - "model-price-map" ], - "summary": "Create New Model Price", - "operationId": "create_new_model_price_api_v1_model_price_map_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ModelPriceMapCreateSchema" } } - }, - "required": true + } }, "responses": { "200": { @@ -15466,17 +15911,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/model-price-map/{id}": { @@ -15538,7 +15973,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15588,7 +16024,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompts/invoke_prompt": { @@ -15627,7 +16064,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompts/canvas": { @@ -15677,7 +16115,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/prompt-webhooks": { @@ -15714,7 +16153,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -15765,7 +16205,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/prompt-webhooks/{webhook_id}": { @@ -15820,7 +16261,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15883,7 +16325,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15934,7 +16377,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompt-webhooks/test": { @@ -15991,33 +16435,18 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/playground-settings": { - "get": { + "post": { "tags": [ "playground-settings" ], - "summary": "List Playground Settings", - "description": "Get all playground settings for this tenant id.", - "operationId": "list_playground_settings_api_v1_playground_settings_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/PlaygroundSettingsResponse" - }, - "type": "array", - "title": "Response List Playground Settings Api V1 Playground Settings Get" - } - } - } - } - }, + "summary": "Create Playground Settings", + "description": "Create playground settings.", + "operationId": "create_playground_settings_api_v1_playground_settings_post", "security": [ { "API Key": [] @@ -16028,24 +16457,16 @@ { "Bearer Auth": [] } - ] - }, - "post": { - "tags": [ - "playground-settings" ], - "summary": "Create Playground Settings", - "description": "Create playground settings.", - "operationId": "create_playground_settings_api_v1_playground_settings_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaygroundSettingsCreateRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -16069,6 +16490,15 @@ } } }, + "x-public": true + }, + "get": { + "tags": [ + "playground-settings" + ], + "summary": "List Playground Settings", + "description": "Get all playground settings for this tenant id.", + "operationId": "list_playground_settings_api_v1_playground_settings_get", "security": [ { "API Key": [] @@ -16079,7 +16509,56 @@ { "Bearer Auth": [] } - ] + ], + "parameters": [ + { + "name": "scope", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "enum": [ + "workspace", + "organization" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Scope" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PlaygroundSettingsResponse" + }, + "title": "Response List Playground Settings Api V1 Playground Settings Get" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true } }, "/api/v1/playground-settings/{playground_settings_id}": { @@ -16133,7 +16612,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -16195,7 +16675,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16245,7 +16726,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/clone": { @@ -16298,7 +16780,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/section": { @@ -16460,7 +16943,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -16511,7 +16995,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts": { @@ -16564,7 +17049,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/preview": { @@ -16617,7 +17103,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/create": { @@ -16626,13 +17113,33 @@ "charts" ], "summary": "Create Chart", - "description": "Create a new chart.", + "description": "Create a chart or dashboard text block.", "operationId": "create_chart_api_v1_charts_create_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomChartCreate" + "oneOf": [ + { + "$ref": "#/components/schemas/CustomChartCreate" + }, + { + "$ref": "#/components/schemas/CustomTextBlockCreate" + } + ], + "title": "Chart", + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/CustomChartCreate", + "bar": "#/components/schemas/CustomChartCreate", + "table": "#/components/schemas/CustomChartCreate", + "kpi": "#/components/schemas/CustomChartCreate", + "top-k": "#/components/schemas/CustomChartCreate", + "pie": "#/components/schemas/CustomChartCreate", + "text": "#/components/schemas/CustomTextBlockCreate" + } + } } } }, @@ -16644,7 +17151,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomChartResponse" + "oneOf": [ + { + "$ref": "#/components/schemas/CustomChartResponse" + }, + { + "$ref": "#/components/schemas/CustomTextBlockResponse" + } + ], + "title": "Response Create Chart Api V1 Charts Create Post", + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/CustomChartResponse", + "bar": "#/components/schemas/CustomChartResponse", + "table": "#/components/schemas/CustomChartResponse", + "kpi": "#/components/schemas/CustomChartResponse", + "top-k": "#/components/schemas/CustomChartResponse", + "pie": "#/components/schemas/CustomChartResponse", + "text": "#/components/schemas/CustomTextBlockResponse" + } + } } } } @@ -16670,7 +17197,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/{chart_id}": { @@ -16679,7 +17207,7 @@ "charts" ], "summary": "Read Single Chart", - "description": "Get a single chart by ID.", + "description": "Get a single chart or text block by ID.", "operationId": "read_single_chart_api_v1_charts__chart_id__post", "security": [ { @@ -16720,7 +17248,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SingleCustomChartResponse" + "oneOf": [ + { + "$ref": "#/components/schemas/SingleCustomChartResponse" + }, + { + "$ref": "#/components/schemas/CustomTextBlockResponse" + } + ], + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/SingleCustomChartResponse", + "bar": "#/components/schemas/SingleCustomChartResponse", + "table": "#/components/schemas/SingleCustomChartResponse", + "kpi": "#/components/schemas/SingleCustomChartResponse", + "top-k": "#/components/schemas/SingleCustomChartResponse", + "pie": "#/components/schemas/SingleCustomChartResponse", + "text": "#/components/schemas/CustomTextBlockResponse" + } + }, + "title": "Response Read Single Chart Api V1 Charts Chart Id Post" } } } @@ -16735,14 +17283,15 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ "charts" ], "summary": "Update Chart", - "description": "Update a chart.", + "description": "Update a chart or text block.", "operationId": "update_chart_api_v1_charts__chart_id__patch", "security": [ { @@ -16783,7 +17332,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomChartResponse" + "oneOf": [ + { + "$ref": "#/components/schemas/CustomChartResponse" + }, + { + "$ref": "#/components/schemas/CustomTextBlockResponse" + } + ], + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/CustomChartResponse", + "bar": "#/components/schemas/CustomChartResponse", + "table": "#/components/schemas/CustomChartResponse", + "kpi": "#/components/schemas/CustomChartResponse", + "top-k": "#/components/schemas/CustomChartResponse", + "pie": "#/components/schemas/CustomChartResponse", + "text": "#/components/schemas/CustomTextBlockResponse" + } + }, + "title": "Response Update Chart Api V1 Charts Chart Id Patch" } } } @@ -16798,7 +17367,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16849,7 +17419,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/{section_id}": { @@ -16914,7 +17485,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -16977,7 +17549,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -17028,7 +17601,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/org-charts/section": { @@ -17037,8 +17611,19 @@ "charts" ], "summary": "Org Read Sections", - "description": "Get all sections for the tenant.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_sections_api_v1_org_charts_section_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17050,155 +17635,26 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "limit", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "default": 100, - "title": "Limit" - } - }, - { - "name": "offset", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 0, - "default": 0, - "title": "Offset" - } - }, - { - "name": "title_contains", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Title Contains" - } - }, - { - "name": "ids", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - } - }, - { - "type": "null" - } - ], - "title": "Ids" - } - }, - { - "name": "sort_by", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "created_at", - "title": "Sort By" - } - }, - { - "name": "sort_by_desc", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "default": true, - "title": "Sort By Desc" - } - }, - { - "name": "tag_value_id", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - } - }, - { - "type": "null" - } - ], - "title": "Tag Value Id" - } - } + "x-public": true + }, + "post": { + "tags": [ + "charts" ], + "summary": "Org Create Section", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_create_section_api_v1_org_charts_section_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomChartsSectionResponse" - }, - "title": "Response Org Read Sections Api V1 Org Charts Section Get" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } - } - }, - "post": { - "tags": [ - "charts" - ], - "summary": "Org Create Section", - "description": "Create a new section.", - "operationId": "org_create_section_api_v1_org_charts_section_post", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17210,38 +17666,7 @@ "Bearer Auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionCreate" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } + "x-public": true } }, "/api/v1/org-charts": { @@ -17250,40 +17675,19 @@ "charts" ], "summary": "Org Read Charts", - "description": "Get all charts for the tenant.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_charts_api_v1_org_charts_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsRequest" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -17294,7 +17698,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/preview": { @@ -17303,40 +17708,19 @@ "charts" ], "summary": "Org Read Chart Preview", - "description": "Get a preview for a chart without actually creating it.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_chart_preview_api_v1_org_charts_preview_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartPreviewRequest" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SingleCustomChartResponseBase" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -17347,7 +17731,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/create": { @@ -17356,40 +17741,19 @@ "charts" ], "summary": "Org Create Chart", - "description": "Create a new chart.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_create_chart_api_v1_org_charts_create_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartCreate" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -17400,7 +17764,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/{chart_id}": { @@ -17409,8 +17774,19 @@ "charts" ], "summary": "Org Read Single Chart", - "description": "Get a single chart by ID.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_single_chart_api_v1_org_charts__chart_id__post", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17422,58 +17798,26 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "chart_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Chart Id" - } - } + "x-public": true + }, + "delete": { + "tags": [ + "charts" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsRequest" - } - } - } - }, + "summary": "Org Delete Chart", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_delete_chart_api_v1_org_charts__chart_id__delete", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SingleCustomChartResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } - } - }, - "patch": { - "tags": [ - "charts" - ], - "summary": "Org Update Chart", - "description": "Update a chart.", - "operationId": "org_update_chart_api_v1_org_charts__chart_id__patch", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17485,58 +17829,26 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "chart_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Chart Id" - } - } + "x-public": true + }, + "patch": { + "tags": [ + "charts" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartUpdate" - } - } - } - }, + "summary": "Org Update Chart", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_update_chart_api_v1_org_charts__chart_id__patch", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } - } - }, - "delete": { - "tags": [ - "charts" - ], - "summary": "Org Delete Chart", - "description": "Delete a chart.", - "operationId": "org_delete_chart_api_v1_org_charts__chart_id__delete", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17548,18 +17860,17 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "chart_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Chart Id" - } - } + "x-public": true + } + }, + "/api/v1/org-charts/section/{section_id}": { + "post": { + "tags": [ + "charts" ], + "summary": "Org Read Single Section", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_read_single_section_api_v1_org_charts_section__section_id__post", "responses": { "200": { "description": "Successful Response", @@ -17568,28 +17879,9 @@ "schema": {} } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } } - } - } - }, - "/api/v1/org-charts/section/{section_id}": { - "post": { - "tags": [ - "charts" - ], - "summary": "Org Read Single Section", - "description": "Get a single section by ID.", - "operationId": "org_read_single_section_api_v1_org_charts_section__section_id__post", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17601,58 +17893,57 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "section_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Section Id" - } - } + "x-public": true + }, + "delete": { + "tags": [ + "charts" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsRequestBase" - } - } - } - }, + "summary": "Org Delete Section", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_delete_section_api_v1_org_charts_section__section_id__delete", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSection" - } + "schema": {} } } + } + }, + "deprecated": true, + "security": [ + { + "API Key": [] }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } + { + "Organization ID": [] + }, + { + "Bearer Auth": [] } - } + ], + "x-public": true }, "patch": { "tags": [ "charts" ], "summary": "Org Update Section", - "description": "Update a section.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_update_section_api_v1_org_charts_section__section_id__patch", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17664,112 +17955,18 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "section_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Section Id" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionUpdate" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - }, - "delete": { - "tags": [ - "charts" - ], - "summary": "Org Delete Section", - "description": "Delete a section.", - "operationId": "org_delete_section_api_v1_org_charts_section__section_id__delete", - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "section_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Section Id" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/mcp/tools": { - "get": { - "tags": [ - "mcp" - ], - "summary": "Get Tools", - "description": "Return MCP tools — from cache if fresh, otherwise by fetching from remote.\n\nOn cache miss, tries manifest fetch first (fast), then falls back to full\nMCP handshake. Caches the result before returning.\n\nPass force_refresh=true to bypass the cache and always fetch from the\nremote server (the result is still cached via upsert for future requests).\n\nThe ls_user_id query parameter allows service-key callers (which don't carry\nls_user_id in auth) to specify the user for per-user OAuth cache lookups.", - "operationId": "get_tools_api_v1_mcp_tools_get", - "security": [ + "x-public": true + } + }, + "/api/v1/mcp/tools": { + "get": { + "tags": [ + "mcp" + ], + "summary": "Get Tools", + "description": "Return MCP tools — from cache if fresh, otherwise by fetching from remote.\n\nOn cache miss, tries manifest fetch first (fast), then falls back to full\nMCP handshake. Caches the result before returning.\n\nPass force_refresh=true to bypass the cache and always fetch from the\nremote server (the result is still cached via upsert for future requests).\n\n``agent_id`` lets deployment/service-key callers name an agent OAuth\nsubject. ``ls_user_id`` overrides are limited to service identities.", + "operationId": "get_tools_api_v1_mcp_tools_get", + "security": [ { "API Key": [] }, @@ -17822,6 +18019,22 @@ "title": "Ls User Id" } }, + { + "name": "agent_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Agent Id" + } + }, { "name": "force_refresh", "in": "query", @@ -17852,7 +18065,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -17934,7 +18148,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/mcp/proxy": { @@ -18005,7 +18220,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18053,7 +18269,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs": { @@ -18116,7 +18333,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18160,7 +18378,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/setup": { @@ -18192,7 +18411,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current": { @@ -18224,7 +18444,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/info": { @@ -18256,7 +18477,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "patch": { "tags": [ @@ -18306,7 +18528,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing": { @@ -18338,7 +18561,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/dashboard": { @@ -18406,7 +18630,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/payment-method": { @@ -18456,7 +18681,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/business-info": { @@ -18488,7 +18714,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18536,7 +18763,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/plan": { @@ -18586,7 +18814,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles": { @@ -18622,7 +18851,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18672,7 +18902,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles/{role_id}": { @@ -18726,7 +18957,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -18788,7 +19020,73 @@ } } } - } + }, + "x-public": true + } + }, + "/api/v1/orgs/current/roles/{role_id}/restriction": { + "put": { + "tags": [ + "orgs" + ], + "summary": "Set Role Restriction", + "operationId": "set_role_restriction_api_v1_orgs_current_roles__role_id__restriction_put", + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Role Id" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRestrictionUpdate" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true } }, "/api/v1/orgs/permissions": { @@ -18818,7 +19116,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/pending": { @@ -18849,7 +19148,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members": { @@ -18881,7 +19181,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18931,7 +19232,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/active": { @@ -19101,7 +19403,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/pending": { @@ -19226,7 +19529,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/batch": { @@ -19287,7 +19591,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/basic/batch": { @@ -19348,7 +19653,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}/pending": { @@ -19401,39 +19707,57 @@ } } } - } - } - }, - "/api/v1/orgs/pending/{organization_id}": { - "delete": { + }, + "x-public": true + }, + "patch": { "tags": [ "orgs" ], - "summary": "Delete Pending Organization Invite", - "operationId": "delete_pending_organization_invite_api_v1_orgs_pending__organization_id__delete", + "summary": "Patch Current Org Pending Member", + "description": "Update the role on a pending org member invite.", + "operationId": "patch_current_org_pending_member_api_v1_orgs_current_members__identity_id__pending_patch", "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, { "Bearer Auth": [] } ], "parameters": [ { - "name": "organization_id", + "name": "identity_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", - "title": "Organization Id" + "title": "Identity Id" } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingIdentityPatch" + } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/OrgPendingIdentity" + } } } }, @@ -19447,16 +19771,64 @@ } } } - } + }, + "x-public": true } }, - "/api/v1/orgs/pending/{organization_id}/claim": { - "post": { + "/api/v1/orgs/pending/{organization_id}": { + "delete": { "tags": [ "orgs" ], - "summary": "Claim Pending Organization Invite", - "operationId": "claim_pending_organization_invite_api_v1_orgs_pending__organization_id__claim_post", + "summary": "Delete Pending Organization Invite", + "operationId": "delete_pending_organization_invite_api_v1_orgs_pending__organization_id__delete", + "security": [ + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Organization Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true + } + }, + "/api/v1/orgs/pending/{organization_id}/claim": { + "post": { + "tags": [ + "orgs" + ], + "summary": "Claim Pending Organization Invite", + "operationId": "claim_pending_organization_invite_api_v1_orgs_pending__organization_id__claim_post", "security": [ { "Bearer Auth": [] @@ -19495,7 +19867,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}": { @@ -19548,7 +19921,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -19609,7 +19983,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/members/basic": { @@ -19660,7 +20035,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings": { @@ -19697,7 +20073,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -19748,7 +20125,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings/{id}": { @@ -19813,7 +20191,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -19866,7 +20245,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/login-methods": { @@ -19921,7 +20301,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing/usage": { @@ -19999,7 +20380,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage": { @@ -20008,7 +20390,7 @@ "orgs" ], "summary": "Get Granular Usage", - "description": "Get granular usage data with flexible grouping.\n\n`kind` selects the billable usage domain:\n- `traces` (default): trace counts.\n- `langsmith_deployments`: LangSmith Deployment metrics (nodes\n executed, agent runs, agent uptime). The three Deployment fields\n are populated and `traces` is `0`.\n\n`trace_tier` (only meaningful for `kind=traces`) optionally restricts\nresults to a single retention tier (longlived = extended retention,\nshortlived = standard retention). When `group_by=trace_tier`, results\nare split into one record per retention tier per time bucket.\n\n`workspace_ids` filters results to the specified workspaces. Only\nworkspaces the user has read access to are included.", + "description": "Get granular usage data with flexible grouping.\n\n`kind` selects the billable usage domain:\n- `traces` (default): trace counts.\n- `langsmith_deployments`: LangSmith Deployment metrics (nodes\n executed, agent runs, agent uptime). The three Deployment fields\n are populated and `traces` is `0`.\n\n`trace_tier` (only meaningful for `kind=traces`) optionally restricts\nresults to a single retention tier (longlived = extended retention,\nshortlived = standard retention). When `group_by=trace_tier`, results\nare split into one record per retention tier per time bucket.\n\n`workspace_ids` filters results to the specified workspaces. Only\nworkspaces the user has read access to are included. When omitted, all\nworkspaces the user can read are included (avoids enumerating every\nworkspace id in the URL, which can exceed proxy header limits).", "operationId": "get_granular_usage_api_v1_orgs_current_billing_granular_usage_get", "security": [ { @@ -20045,13 +20427,20 @@ { "name": "workspace_ids", "in": "query", - "required": true, + "required": false, "schema": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + { + "type": "null" + } + ], "title": "Workspace Ids" } }, @@ -20111,7 +20500,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage/export": { @@ -20157,13 +20547,20 @@ { "name": "workspace_ids", "in": "query", - "required": true, + "required": false, "schema": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + { + "type": "null" + } + ], "title": "Workspace Ids" } }, @@ -20221,7 +20618,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/user/login-methods": { @@ -20258,7 +20656,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_checkout_session": { @@ -20309,7 +20708,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_account_links": { @@ -20360,7 +20760,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/service-keys": { @@ -20370,22 +20771,68 @@ ], "summary": "List Org Service Keys", "operationId": "list_org_service_keys_api_v1_orgs_current_service_keys_get", + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "workspace_ids", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "default": [], + "title": "Workspace Ids" + } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { + "type": "array", "items": { "$ref": "#/components/schemas/APIKeyGetResponse" }, - "type": "array", "title": "Response List Org Service Keys Api V1 Orgs Current Service Keys Get" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } }, + "x-public": true + }, + "post": { + "tags": [ + "orgs" + ], + "summary": "Create Org Service Key", + "description": "Create org-scoped service key. If workspaces is None, key is org-wide.", + "operationId": "create_org_service_key_api_v1_orgs_current_service_keys_post", "security": [ { "API Key": [] @@ -20396,24 +20843,16 @@ { "Bearer Auth": [] } - ] - }, - "post": { - "tags": [ - "orgs" ], - "summary": "Create Org Service Key", - "description": "Create org-scoped service key. If workspaces is None, key is org-wide.", - "operationId": "create_org_service_key_api_v1_orgs_current_service_keys_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/APIKeyCreateRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -20437,17 +20876,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/orgs/current/service-keys/{api_key_id}": { @@ -20501,7 +20930,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -20564,7 +20994,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens": { @@ -20574,22 +21005,67 @@ ], "summary": "List Org Personal Access Tokens", "operationId": "list_org_personal_access_tokens_api_v1_orgs_current_personal_access_tokens_get", + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "workspace_ids", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "default": [], + "title": "Workspace Ids" + } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { + "type": "array", "items": { "$ref": "#/components/schemas/APIKeyGetResponse" }, - "type": "array", "title": "Response List Org Personal Access Tokens Api V1 Orgs Current Personal Access Tokens Get" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } }, + "x-public": true + }, + "post": { + "tags": [ + "orgs" + ], + "summary": "Create Org Personal Access Token", + "operationId": "create_org_personal_access_token_api_v1_orgs_current_personal_access_tokens_post", "security": [ { "API Key": [] @@ -20600,23 +21076,16 @@ { "Bearer Auth": [] } - ] - }, - "post": { - "tags": [ - "orgs" ], - "summary": "Create Org Personal Access Token", - "operationId": "create_org_personal_access_token_api_v1_orgs_current_personal_access_tokens_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/APIKeyCreateRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -20640,17 +21109,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens/{pat_id}": { @@ -20704,7 +21163,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/set-default-sso-provision": { @@ -20739,7 +21199,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/login": { @@ -20760,7 +21221,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/send": { @@ -20809,7 +21271,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/sso/email-verification/status": { @@ -20851,7 +21314,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/confirm": { @@ -20895,7 +21359,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/settings/{sso_login_slug}": { @@ -20942,7 +21407,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-lookup": { @@ -20988,7 +21454,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key": { @@ -21025,14 +21492,15 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ "api-key" ], "summary": "Generate Api Key", - "description": "Generate an api key for the user", + "description": "Generate an api key for the user.", "operationId": "generate_api_key_api_v1_api_key_post", "requestBody": { "content": { @@ -21079,7 +21547,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/{api_key_id}": { @@ -21134,7 +21603,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key/current": { @@ -21172,7 +21642,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21226,7 +21697,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/current/{pat_id}": { @@ -21282,7 +21754,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/tenants": { @@ -21345,7 +21818,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -21390,7 +21864,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/onboarding_state": { @@ -21417,7 +21892,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21442,7 +21918,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/me/onboarding_state/{field}": { @@ -21490,7 +21967,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/ls_user_id": { @@ -21518,7 +21996,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts": { @@ -21555,7 +22034,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21606,7 +22086,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts/{service_account_id}": { @@ -21661,7 +22142,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending": { @@ -21692,7 +22174,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/pending/{id}": { @@ -21738,7 +22221,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending/{workspace_id}/claim": { @@ -21785,7 +22269,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members": { @@ -21817,7 +22302,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21868,7 +22354,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/active": { @@ -22038,7 +22525,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/pending": { @@ -22163,7 +22651,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/batch": { @@ -22195,7 +22684,7 @@ "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/PendingIdentity" + "$ref": "#/components/schemas/WorkspaceInviteResult" }, "type": "array", "title": "Response Add Members To Current Workspace Batch Api V1 Workspaces Current Members Batch Post" @@ -22227,7 +22716,8 @@ { "Organization ID": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/{identity_id}": { @@ -22279,7 +22769,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -22339,10 +22830,75 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/{identity_id}/pending": { + "patch": { + "tags": [ + "workspaces" + ], + "summary": "Patch Current Workspace Pending Member", + "description": "Update the role on a pending workspace member invite.", + "operationId": "patch_current_workspace_pending_member_api_v1_workspaces_current_members__identity_id__pending_patch", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "identity_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity Id" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingIdentityPatch" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingIdentity" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true + }, "delete": { "tags": [ "workspaces" @@ -22391,7 +22947,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/usage-limits": { @@ -22428,7 +22985,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -22479,7 +23037,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/org": { @@ -22516,7 +23075,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/{usage_limit_id}": { @@ -22569,7 +23129,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/settings": { @@ -22602,7 +23163,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/settings/handle": { @@ -22655,7 +23217,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/repos": { @@ -22688,6 +23251,16 @@ "title": "With Latest Manifest" } }, + { + "name": "include_owners", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Include Owners" + } + }, { "name": "limit", "in": "query", @@ -23017,7 +23590,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -23068,7 +23642,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23123,7 +23698,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}": { @@ -23186,7 +23762,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -23257,7 +23834,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23316,7 +23894,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/fork": { @@ -23389,7 +23968,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/tags": { @@ -23697,7 +24277,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/optimize-job": { @@ -23750,7 +24331,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/likes/{owner}/{repo}": { @@ -23823,7 +24405,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}": { @@ -23893,7 +24476,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -23976,7 +24560,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}": { @@ -24071,7 +24656,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24151,7 +24737,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}/like": { @@ -24225,7 +24812,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24297,7 +24885,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags": { @@ -24354,7 +24943,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24425,7 +25015,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags/{tag_name}": { @@ -24487,7 +25078,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -24567,7 +25159,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24635,7 +25228,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/owners": { @@ -24698,7 +25292,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24769,7 +25364,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24838,7 +25434,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs": { @@ -24896,7 +25493,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24958,7 +25556,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}": { @@ -25013,7 +25612,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -25076,7 +25676,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25127,7 +25728,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs": { @@ -25186,7 +25788,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -25249,7 +25852,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs/{log_id}": { @@ -25304,7 +25908,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25355,7 +25960,8 @@ } } } - } + }, + "x-public": true } }, "/.well-known/oauth-authorization-server": { @@ -25398,10 +26004,34 @@ } } }, + "x-public": true, "parameters": [] } }, - "/api/v1/hub/environments": { + "/.well-known/openid-configuration": { + "get": { + "description": "Returns the OpenID Connect discovery document (OpenID Connect Discovery 1.0), advertising the authorization, token, userinfo, and JWKS endpoints plus supported scopes, response types, and signing algorithms.", + "tags": [ + "oauth" + ], + "summary": "Get OpenID Connect provider configuration", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.OIDCProviderMetadata" + } + } + } + } + }, + "x-public": true, + "parameters": [] + } + }, + "/api/v1/commits/{owner}/{repo}": { "get": { "security": [ { @@ -25414,18 +26044,80 @@ "Bearer Auth": [] } ], - "description": "Returns the hub environments model for the current tenant.\nReturns 404 if no custom configuration exists.", + "description": "List commits for a repository, with pagination support.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repositories; unauthenticated users can only access public repositories.\nThe include_stats parameter controls whether download and view statistics are computed (defaults to true).", "tags": [ - "hub_environments" + "commits" + ], + "summary": "List commits", + "parameters": [ + { + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "IncludeStats determines whether to compute num_downloads and num_views", + "name": "include_stats", + "in": "query", + "schema": { + "default": true, + "type": "boolean", + "title": "Include Stats" + } + }, + { + "description": "Limit is the pagination limit", + "name": "limit", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "minimum": 1, + "maximum": 100, + "title": "Limit" + } + }, + { + "description": "Offset is the pagination offset", + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "minimum": 0, + "title": "Offset" + } + }, + { + "description": "Tag filters commits to only those with a specific tag (e.g. \"production\", \"staging\")", + "name": "tag", + "in": "query", + "schema": { + "type": "string", + "title": "Tag" + } + } ], - "summary": "List hub environments", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" + "$ref": "#/components/schemas/commits.ListCommitsResponse" } } } @@ -25435,7 +26127,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25445,7 +26137,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25455,13 +26147,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true }, "post": { "security": [ @@ -25475,19 +26167,38 @@ "Bearer Auth": [] } ], - "description": "Creates the hub environments configuration for the current tenant.", + "description": "Creates a new commit in a repository.\nRequires authentication and write access to the repository.", "tags": [ - "hub_environments" + "commits" + ], + "summary": "Create a commit", + "parameters": [ + { + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create hub environments model", - "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" + "$ref": "#/components/schemas/commits.CreateCommitResponse" } } } @@ -25497,17 +26208,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25517,26 +26238,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.CreateEnvironmentsRequest" + "$ref": "#/components/schemas/commits.CreateCommitReq" } } } } } }, - "/api/v1/hub/environments/{id}": { - "delete": { + "/api/v1/commits/{owner}/{repo}/{commit}": { + "get": { "security": [ { "API Key": [] @@ -25548,20 +26270,75 @@ "Bearer Auth": [] } ], - "description": "Deletes the hub environments configuration. Tenant reverts to defaults.", + "description": "Retrieves a specific commit by hash, tag, or \"latest\" for a repository.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repos, while unauthenticated users can only access public repos.\nCommit resolution logic:\n- \"latest\" or empty: Get the most recent commit\n- Less than 8 characters: Only check for tags\n- 8 or more characters: Prioritize commit hash over tag, check both", "tags": [ - "hub_environments" + "commits" ], - "summary": "Delete hub environments model", + "summary": "Get a commit", "parameters": [ { - "description": "Model ID", - "name": "id", + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Commit hash, tag, or 'latest'", + "name": "commit", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "get_examples", + "in": "query", + "schema": { + "default": false, + "type": "boolean", + "title": "Get Examples" + } + }, + { + "description": "Comma-separated list of optional fields: \"model\", \"is_draft\"", + "name": "include", + "in": "query", + "schema": { + "type": "string", + "title": "Include" + } + }, + { + "description": "Deprecated: use Include instead", + "name": "include_model", + "in": "query", + "schema": { + "default": false, + "type": "boolean", + "title": "Include Model" + } + }, + { + "name": "is_view", + "in": "query", + "schema": { + "default": false, + "type": "boolean", + "title": "Is View" + } } ], "responses": { @@ -25570,10 +26347,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/commits.CommitResponse" } } } @@ -25583,7 +26357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25593,7 +26367,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25603,14 +26377,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } - } - }, - "patch": { + }, + "x-public": true + } + }, + "/api/v1/hub/environments": { + "get": { "security": [ { "API Key": [] @@ -25622,22 +26399,11 @@ "Bearer Auth": [] } ], - "description": "Replaces the environments array on an existing model.", + "description": "Returns the hub environments model for the current tenant.\nReturns 404 if no custom configuration exists.", "tags": [ "hub_environments" ], - "summary": "Update hub environments model", - "parameters": [ - { - "description": "Model ID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], + "summary": "List hub environments", "responses": { "200": { "description": "OK", @@ -25680,20 +26446,10 @@ } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/hub_environments.UpdateEnvironmentsRequest" - } - } - } - } - } - }, - "/auth/public": { - "get": { + "x-public": true, + "parameters": [] + }, + "post": { "security": [ { "API Key": [] @@ -25705,28 +26461,69 @@ "Bearer Auth": [] } ], - "description": "Returns public authentication information for the current workspace-level session.", + "description": "Creates the hub environments configuration for the current tenant.", "tags": [ - "auth" + "hub_environments" ], - "summary": "Get public auth info", + "summary": "Create hub environments model", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authn.PublicAuthInfo" + "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.CreateEnvironmentsRequest" + } + } + } + } } }, - "/auth/sandbox-access": { - "get": { + "/api/v1/hub/environments/{id}": { + "delete": { "security": [ { "API Key": [] @@ -25738,30 +26535,19 @@ "Bearer Auth": [] } ], - "description": "Combines authn + per-sandbox authz for runtime access. Returns the caller's PublicAuthInfo on allow (HTTP 200) or a 403 with the deny reason on deny.", + "description": "Deletes the hub environments configuration. Tenant reverts to defaults.", "tags": [ - "sandboxes" + "hub_environments" ], - "summary": "Get sandbox access decision", + "summary": "Delete hub environments model", "parameters": [ { - "description": "Sandbox UUID", - "name": "sandbox_id", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Sandbox Id" - } - }, - { - "description": "Runtime action: exec | file | tunnel | proxy", - "name": "action", - "in": "query", + "description": "Model ID", + "name": "id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Action" + "type": "string" } } ], @@ -25771,7 +26557,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authn.PublicAuthInfo" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -25781,27 +26570,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "sandbox access denied: ", - "content": { - "application/json": { - "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -25811,42 +26580,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/aws-marketplace/register": { - "post": { - "description": "Receives the x-amzn-marketplace-token posted by AWS Marketplace when a customer clicks \"Set Up Account\", resolves the customer identity, stores it in the DB, and redirects to the thank-you page.", - "tags": [ - "aws_marketplace" - ], - "summary": "AWS Marketplace fulfillment URL registration", - "parameters": [], - "responses": { - "303": { - "description": "Redirect to thank-you page" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -25856,35 +26590,15 @@ "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "x-amzn-marketplace-token": { - "type": "string", - "description": "Registration token from AWS Marketplace" - } - }, - "required": [ - "x-amzn-marketplace-token" - ] - } - } - } - } - } - }, - "/commits/{owner}/{repo}": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -25896,71 +26610,20 @@ "Bearer Auth": [] } ], - "description": "Lists all commits for a repository with pagination support.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repos, while unauthenticated users can only access public repos.\nThe include_stats parameter controls whether download and view statistics are computed (defaults to true).", + "description": "Replaces the environments array on an existing model.", "tags": [ - "commits" + "hub_environments" ], - "summary": "List commits", + "summary": "Update hub environments model", "parameters": [ { - "description": "Repository owner (tenant handle) or '-' for private repos", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", + "description": "Model ID", + "name": "id", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "description": "IncludeStats determines whether to compute num_downloads and num_views", - "name": "include_stats", - "in": "query", - "schema": { - "default": true, - "type": "boolean", - "title": "Include Stats" - } - }, - { - "description": "Limit is the pagination limit", - "name": "limit", - "in": "query", - "schema": { - "default": 20, - "type": "integer", - "maximum": 100, - "minimum": 1, - "title": "Limit" - } - }, - { - "description": "Offset is the pagination offset", - "name": "offset", - "in": "query", - "schema": { - "default": 0, - "type": "integer", - "minimum": 0, - "title": "Offset" - } - }, - { - "description": "Tag filters commits to only those with a specific tag (e.g. \"production\", \"staging\")", - "name": "tag", - "in": "query", - "schema": { - "type": "string", - "title": "Tag" - } } ], "responses": { @@ -25969,7 +26632,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ListCommitsResponse" + "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" } } } @@ -25979,7 +26642,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -25989,7 +26652,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -25999,14 +26662,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.UpdateEnvironmentsRequest" + } + } + } } - }, - "post": { + } + }, + "/api/v1/info": { + "get": { "security": [ { "API Key": [] @@ -26018,24 +26694,49 @@ "Bearer Auth": [] } ], - "description": "Creates a new commit in a repository.\nRequires authentication and write access to the repository.", + "description": "Returns information about the current LangSmith deployment: version,\ninstance feature flags, batch-ingest limits, and max SDK versions.\nUnauthenticated by default; set FF_INFO_ENDPOINT_AUTH_REQUIRED=true to require auth.", "tags": [ - "commits" + "info" ], - "summary": "Create a commit", - "parameters": [ - { - "description": "Repository owner (tenant handle) or '-' for private repos", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" + "summary": "Get server info", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/info.InfoGetResponse" + } + } } + } + }, + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/alerts/{session_id}": { + "post": { + "security": [ + { + "API Key": [] }, { - "description": "Repository handle", - "name": "repo", + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Creates a new alert rule. The request body must be a JSON-encoded alert rule object that follows the CreateAlertRuleRequest schema.", + "tags": [ + "alert_rules" + ], + "summary": "Create an alert rule", + "parameters": [ + { + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -26045,21 +26746,21 @@ ], "responses": { "201": { - "description": "Created", + "description": "Alert rule created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CreateCommitResponse" + "$ref": "#/components/schemas/alerts.AlertRuleResponse" } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } @@ -26069,46 +26770,57 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "429": { + "description": "Alert Rule Limit Reached", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CreateCommitReq" + "$ref": "#/components/schemas/alerts.CreateAlertRuleRequest" } } } } } }, - "/commits/{owner}/{repo}/{commit}": { - "get": { + "/api/v1/platform/alerts/{session_id}/test": { + "post": { "security": [ { "API Key": [] @@ -26120,24 +26832,15 @@ "Bearer Auth": [] } ], - "description": "Retrieves a specific commit by hash, tag, or \"latest\" for a repository.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repos, while unauthenticated users can only access public repos.\nCommit resolution logic:\n- \"latest\" or empty: Get the most recent commit\n- Less than 8 characters: Only check for tags\n- 8 or more characters: Prioritize commit hash over tag, check both", + "description": "Tests an alert action which will fire a notification to all configured recipients if the configuration is valid.", "tags": [ - "commits" + "alert_rules" ], - "summary": "Get a commit", + "summary": "Test an alert action to determine if configuration is valid", "parameters": [ { - "description": "Repository owner (tenant handle) or '-' for private repos", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -26145,97 +26848,86 @@ } }, { - "description": "Commit hash, tag, or 'latest'", - "name": "commit", + "description": "Alert rule ID", + "name": "alert_rule_id", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "name": "get_examples", - "in": "query", - "schema": { - "default": false, - "type": "boolean", - "title": "Get Examples" - } - }, - { - "description": "Comma-separated list of optional fields: \"model\", \"is_draft\"", - "name": "include", - "in": "query", - "schema": { - "type": "string", - "title": "Include" - } - }, - { - "description": "Deprecated: use Include instead", - "name": "include_model", - "in": "query", - "schema": { - "default": false, - "type": "boolean", - "title": "Include Model" - } - }, - { - "name": "is_view", - "in": "query", - "schema": { - "default": false, - "type": "boolean", - "title": "Is View" - } } ], "responses": { "200": { - "description": "OK", + "description": "Alert action fired successfully", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CommitResponse" + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } - } + }, + "x-public": true } }, - "/datasets/{dataset_id}/experiment-view-overrides": { + "/api/v1/platform/alerts/{session_id}/{alert_rule_id}": { "get": { "security": [ { @@ -26248,94 +26940,97 @@ "Bearer Auth": [] } ], - "description": "Retrieves all experiment view override configurations for a specific dataset.\nThis endpoint returns column display overrides including color gradients,\nprecision settings, and column visibility configurations that customize how\nexperiment results are displayed in the UI.\n\nThe response includes all column overrides with their display settings:\n- Column identifiers (must start with inputs, outputs, reference_outputs, feedback, metrics, attachments, or metadata)\n- Color gradients for numeric data visualization\n- Precision settings for numeric columns (1-6 decimal places)\n- Hide flags to control column visibility", + "description": "Gets an alert rule.", "tags": [ - "experiment-view-overrides" + "alert_rules" ], - "summary": "Get experiment view override configurations for a dataset", + "summary": "Get an alert rule", "parameters": [ { - "example": "\"550e8400-e29b-41d4-a716-446655440000\"", - "description": "Dataset ID", - "name": "dataset_id", + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Alert rule ID", + "name": "alert_rule_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } } ], "responses": { "200": { - "description": "Successfully retrieved experiment view override configurations", + "description": "Alert rule", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" - } + "$ref": "#/components/schemas/alerts.AlertRuleResponse" } } } }, "400": { - "description": "Invalid dataset ID format\" example({\"error\":\"invalid dataset ID format\"})", + "description": "Bad request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "404": { - "description": "Dataset not found or not accessible\" example({\"error\":\"dataset not found or not accessible\"})", + "description": "Not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "description": "Internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } - } - } - }, - "post": { - "security": [ + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + } + }, + "x-public": true + }, + "delete": { + "security": [ { "API Key": [] }, @@ -26346,128 +27041,239 @@ "Bearer Auth": [] } ], - "description": "Creates a new experiment view override configuration for a dataset with column display settings.\nThis endpoint allows you to customize how experiment results are displayed by configuring\ncolumn-specific overrides including colors, precision, and visibility.\n\nThe request must include a 'column_overrides' array with at least one override configuration.\nEach column override can specify:\n- column: Required field name (must start with inputs, outputs, reference_outputs, feedback, metrics, attachments, or metadata)\n- color_gradient: Optional array of [number, color] tuples for numeric data visualization\n- precision: Optional number (1-6) for decimal places in numeric columns\n- hide: Optional boolean to control column visibility\n\nExample request body:\n{\n\"column_overrides\": [\n{\n\"column\": \"outputs.accuracy\",\n\"color_gradient\": [[0.0, \"#ff0000\"], [0.5, \"#ffff00\"], [1.0, \"#00ff00\"]],\n\"precision\": 3\n},\n{\n\"column\": \"inputs.model_type\",\n\"hide\": false\n}\n]\n}\n\nThis operation fails if an override already exists for the dataset (use PATCH to update).", + "description": "Deletes an alert rule", "tags": [ - "experiment-view-overrides" + "alert_rules" ], - "summary": "Create new experiment view override configuration for a dataset", + "summary": "Delete an alert rule", "parameters": [ { - "example": "\"550e8400-e29b-41d4-a716-446655440000\"", - "description": "Dataset ID", - "name": "dataset_id", + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Alert rule ID", + "name": "alert_rule_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } } ], "responses": { - "201": { - "description": "Successfully created experiment view override", + "200": { + "description": "Alert rule deleted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } } } } }, "400": { - "description": "Invalid request data\" example({\"error\":\"column_overrides field is required\"})", + "description": "Bad request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "404": { - "description": "Dataset not found\" example({\"error\":\"dataset not found or not accessible\"})", + "description": "Not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "409": { - "description": "Override already exists\" example({\"error\":\"experiment view override already exists\"})", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "422": { - "description": "Validation error\" example({\"error\":\"column name at index 0 must start with one of: inputs, outputs, reference_outputs, feedback, metrics, attachments, metadata\"})", + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + } + }, + "x-public": true + }, + "patch": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Updates an alert rule.", + "tags": [ + "alert_rules" + ], + "summary": "Update an alert rule", + "parameters": [ + { + "description": "Session ID", + "name": "session_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Alert rule ID", + "name": "alert_rule_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Alert rule updated", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { - "type": "string" + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] } } } } }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "description": "Internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePostRequest" + "$ref": "#/components/schemas/alerts.UpdateAlertRuleRequest" } } } } } }, - "/datasets/{dataset_id}/experiment-view-overrides/{id}": { - "get": { + "/api/v1/platform/annotation-queues/items/{queue_item_id}/status": { + "post": { "security": [ { "API Key": [] @@ -26479,101 +27285,89 @@ "Bearer Auth": [] } ], - "description": "Retrieves a specific experiment view override configuration using both dataset ID and override ID.\nThis endpoint provides more precise access to experiment view overrides when you have\nthe specific override ID, useful for direct links or cached references.\n\nThe response includes the same column override information as the dataset-level endpoint:\n- Column identifiers with validation prefixes\n- Color gradient settings for numeric data visualization\n- Numeric precision configurations\n- Column visibility controls\n\nBoth the dataset and override must exist and be accessible by the authenticated user.", + "description": "Log the caller's reviewer status for a RUN or THREAD annotation queue item. A null status re-shows the item for this reviewer.", "tags": [ - "experiment-view-overrides" + "annotation_queues" ], - "summary": "Get experiment view override configuration by specific ID", + "summary": "Create annotation queue item status", "parameters": [ { - "example": "\"550e8400-e29b-41d4-a716-446655440000\"", - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "example": "\"123e4567-e89b-12d3-a456-426614174000\"", - "description": "Experiment view override ID", - "name": "id", + "description": "Annotation queue item ID", + "name": "queue_item_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], "responses": { "200": { - "description": "Successfully retrieved experiment view override configuration", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + "$ref": "#/components/schemas/annotationqueues.CreateAnnotationQueueItemStatusResponse" } } } }, "400": { - "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/annotationqueues.CreateAnnotationQueueItemStatusRequest" + } + } + } } - }, - "delete": { + } + }, + "/api/v1/platform/annotation-queues/{queue_id}/items": { + "get": { "security": [ { "API Key": [] @@ -26585,94 +27379,128 @@ "Bearer Auth": [] } ], - "description": "Permanently deletes an experiment view override configuration for a dataset.\nThis operation removes all column override settings including color gradients,\nprecision configurations, and visibility settings.\n\nAfter deletion, the experiment view will revert to default column display settings.\nThis action cannot be undone - you will need to recreate the override configuration\nif you want to restore custom column settings.\n\nBoth the dataset and override must exist and be accessible by the authenticated user.\nThe operation will fail if the override doesn't exist or if the user doesn't have\nappropriate permissions for the dataset.", + "description": "List RUN and THREAD items in a single annotation queue for one review status section, with opaque cursor pagination. Optional item_type=RUN|THREAD filters the page. direction=backward returns items before the supplied cursor. The response contains item metadata only, not expanded run or thread payloads. status=archived returns items whose queue review requirements have been satisfied, not merely items the caller personally marked completed.", "tags": [ - "experiment-view-overrides" + "annotation_queues" ], - "summary": "Delete experiment view override configuration", + "summary": "List annotation queue items", "parameters": [ { - "example": "\"550e8400-e29b-41d4-a716-446655440000\"", - "description": "Dataset ID", - "name": "dataset_id", + "description": "Annotation queue ID", + "name": "queue_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { - "example": "\"123e4567-e89b-12d3-a456-426614174000\"", - "description": "Experiment view override ID", - "name": "id", - "in": "path", + "description": "Review section: needs_my_review, needs_others_review, or archived", + "name": "status", + "in": "query", "required": true, "schema": { "type": "string", - "format": "uuid" + "enum": [ + "needs_my_review", + "needs_others_review", + "archived" + ], + "title": "Status" + } + }, + { + "description": "Page size (max 100)", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" + } + }, + { + "description": "Filter to RUN or THREAD", + "name": "item_type", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "RUN", + "THREAD" + ], + "title": "Item Type" + } + }, + { + "description": "Pagination direction. backward requires cursor", + "name": "direction", + "in": "query", + "schema": { + "default": "forward", + "type": "string", + "enum": [ + "forward", + "backward" + ], + "title": "Direction" } } ], "responses": { - "204": { - "description": "Successfully deleted experiment view override (no content returned)" - }, - "400": { - "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/annotationqueues.ListAnnotationQueueItemsResponse" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true }, - "patch": { + "post": { "security": [ { "API Key": [] @@ -26684,125 +27512,97 @@ "Bearer Auth": [] } ], - "description": "Updates an existing experiment view override configuration by completely replacing\nthe column overrides for the specified dataset and override ID.\n\nThis endpoint performs a complete replacement of the column overrides configuration.\nAll existing column overrides will be replaced with the new configuration provided\nin the request body. To add or modify individual columns, include the complete\ndesired configuration in the request.\n\nThe request format is identical to the create endpoint:\n- column_overrides: Required array with at least one override configuration\n- Each override can specify color gradients, precision, and visibility\n\nExample request body:\n{\n\"column_overrides\": [\n{\n\"column\": \"metrics.f1_score\",\n\"color_gradient\": [[0.0, \"#ff4444\"], [0.8, \"#44ff44\"]],\n\"precision\": 4\n},\n{\n\"column\": \"feedback.rating\",\n\"hide\": false\n}\n]\n}\n\nBoth the dataset and override must exist and be accessible by the authenticated user.", + "description": "Add RUN or THREAD items to a single annotation queue. RUN items require run_id unless they are created from a suggested example. THREAD items require thread_id and project_id.", "tags": [ - "experiment-view-overrides" + "annotation_queues" ], - "summary": "Update existing experiment view override configuration", + "summary": "Add annotation queue items", "parameters": [ { - "example": "\"550e8400-e29b-41d4-a716-446655440000\"", - "description": "Dataset ID", - "name": "dataset_id", + "description": "Annotation queue ID", + "name": "queue_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { - "example": "\"123e4567-e89b-12d3-a456-426614174000\"", - "description": "Experiment view override ID", - "name": "id", - "in": "path", - "required": true, + "description": "Extend trace retention for added run items", + "name": "extend_trace_retention", + "in": "query", "schema": { - "type": "string", - "format": "uuid" + "type": "boolean", + "title": "Extend Trace Retention" } } ], "responses": { - "200": { - "description": "Successfully updated experiment view override", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + "$ref": "#/components/schemas/annotationqueues.AddAnnotationQueueItemsResponse" } } } }, "400": { - "description": "Invalid request data\" example({\"error\":\"invalid experiment view override ID format\"})", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "422": { - "description": "Validation error\" example({\"error\":\"'precision' must be between 1 and 6 for column at index 0\"})", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePatchRequest" + "$ref": "#/components/schemas/annotationqueues.AddAnnotationQueueItemsRequest" } } } } } }, - "/issues-agent/lcu-spend": { + "/api/v1/platform/annotation-queues/{queue_id}/items/count": { "get": { "security": [ { @@ -26815,28 +27615,47 @@ "Bearer Auth": [] } ], - "description": "Returns one flat row per (tenant, session) pair in the\ncaller's organization that has Engine spend in the\nwindow, each carrying its workspace name, project\n(session) name, and Engine LCU spend. The caller groups\nrows by tenant for display and sums the `lcu_total`\nfield across items for the org-wide total (the UI tile\ndoes both). The window defaults to the current calendar\nmonth (UTC) and can be overridden with `start` and `end`\n(RFC 3339, capped at 31 days). Hours where the rate card\ndid not price a (provider, model) pair are excluded from\neach row's `lcu_total` and surfaced as\n`lcu_unpriced_row_count` so callers can detect billing\ncoverage gaps without inflating the spend number.", + "description": "Returns the number of annotation queue items for the requested reviewer-specific or archived bucket.", "tags": [ - "issues-agent" + "annotation_queues" ], - "summary": "Get issues-agent (Engine) LCU spend per project for the calling org", + "summary": "Get the annotation queue item count", "parameters": [ { - "description": "Inclusive window start, RFC 3339. Defaults to first instant of current calendar month (UTC).", - "name": "start", + "description": "Queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Count bucket: all, needs_my_review, needs_others_review, or archived.", + "name": "status", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Status" + } + }, + { + "description": "Exclusive lower bound for archived item timestamp", + "name": "start_time", "in": "query", "schema": { "type": "string", - "title": "Start" + "title": "Start Time" } }, { - "description": "Exclusive window end, RFC 3339. Defaults to first instant of next calendar month (UTC).", - "name": "end", + "description": "Exclusive upper bound for archived item timestamp", + "name": "end_time", "in": "query", "schema": { "type": "string", - "title": "End" + "title": "End Time" } } ], @@ -26846,7 +27665,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendResponse" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemCountResponse" } } } @@ -26856,7 +27675,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -26866,7 +27688,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -26876,16 +27727,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true } }, - "/me/providers/{providerType}": { - "get": { + "/api/v1/platform/annotation-queues/{queue_id}/items/delete": { + "post": { "security": [ { "API Key": [] @@ -26897,15 +27752,15 @@ "Bearer Auth": [] } ], - "description": "Returns the provider user ID associated with the authenticated user for a given provider type, or null if not set. Scoped to the current tenant.", + "description": "Remove RUN or THREAD items from a single annotation queue by item ID.", "tags": [ - "me" + "annotation_queues" ], - "summary": "Get the authenticated user's provider user ID", + "summary": "Delete annotation queue items", "parameters": [ { - "description": "Provider type (e.g. slack, github)", - "name": "providerType", + "description": "Annotation queue ID", + "name": "queue_id", "in": "path", "required": true, "schema": { @@ -26919,8 +27774,11 @@ "content": { "application/json": { "schema": { - "type": "string" - } + "type": "object", + "additionalProperties": { + "type": "string" + } + } } } }, @@ -26929,36 +27787,57 @@ "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/annotationqueues.DeleteAnnotationQueueItemsRequest" + } + } } } } }, - "/oauth/authorize": { - "get": { + "/api/v1/platform/annotation-queues/{queue_id}/items/{item_id}": { + "patch": { "security": [ { "API Key": [] @@ -26970,118 +27849,38 @@ "Bearer Auth": [] } ], - "description": "Validates authorization request parameters and redirects to the frontend consent page per RFC 6749.", + "description": "Partially update mutable timestamps (added_at, last_reviewed_time) for a RUN or THREAD annotation queue item. Omit a field, or pass JSON null, to leave it unchanged.", "tags": [ - "oauth" + "annotation_queues" ], - "summary": "Initiate OAuth2 authorization", + "summary": "Update an annotation queue item", "parameters": [ { - "description": "Must be 'code'", - "name": "response_type", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Response Type" - } - }, - { - "description": "OAuth2 client ID", - "name": "client_id", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Client Id" - } - }, - { - "description": "Redirect URI registered with the client", - "name": "redirect_uri", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Redirect Uri" - } - }, - { - "description": "PKCE code challenge", - "name": "code_challenge", - "in": "query", + "description": "Annotation queue ID", + "name": "queue_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Code Challenge" + "type": "string" } }, { - "description": "PKCE method, must be 'S256'", - "name": "code_challenge_method", - "in": "query", + "description": "Annotation queue item ID", + "name": "item_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Code Challenge Method" - } - }, - { - "description": "Opaque state value to prevent CSRF", - "name": "state", - "in": "query", - "schema": { - "type": "string", - "title": "State" - } - } - ], - "responses": { - "302": { - "description": "Found" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" - } - } + "type": "string" } } - } - } - }, - "/oauth/authorize/approve": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Issues an authorization code after the authenticated user approves the request. Called by the frontend consent page. Requires authentication.", - "tags": [ - "oauth" ], - "summary": "Approve OAuth2 authorization request", - "parameters": [], "responses": { "200": { - "description": "JSON body with redirect_uri the frontend should navigate the browser to", + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItem" } } } @@ -27091,102 +27890,86 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "organization_id": { - "type": "string", - "description": "Organization ID; must match the authenticated org" - }, - "workspace_id": { - "type": "string", - "description": "Default workspace ID; must belong to organization and be accessible to user" - }, - "client_id": { - "type": "string", - "description": "OAuth2 client ID" - }, - "redirect_uri": { - "type": "string", - "description": "Redirect URI registered with the client" - }, - "code_challenge": { - "type": "string", - "description": "PKCE code challenge" - }, - "code_challenge_method": { - "type": "string", - "description": "PKCE method, must be 'S256'" - }, - "state": { - "type": "string", - "description": "Opaque state value to prevent CSRF" - } - }, - "required": [ - "organization_id", - "client_id", - "redirect_uri", - "code_challenge", - "code_challenge_method" - ] + "$ref": "#/components/schemas/annotationqueues.PatchAnnotationQueueItemRequest" } } } } } }, - "/oauth/client/{clientID}": { + "/api/v1/platform/annotation-queues/{queue_id}/items/{item_id}/placement": { "get": { - "description": "Returns the display metadata (name, logo, homepage/terms/privacy links) for a registered OAuth2 client. Used by the consent screen to show a human-readable client identity instead of the raw client_id. Public endpoint; exposes only non-sensitive display fields.", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Resolve a RUN or THREAD item to its current review section and zero-based position for deep linking.", "tags": [ - "oauth" + "annotation_queues" ], - "summary": "Get public OAuth2 client metadata", + "summary": "Get annotation queue item placement", "parameters": [ { - "description": "OAuth2 client ID", - "name": "clientID", + "description": "Annotation queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Annotation queue item ID", + "name": "item_id", "in": "path", "required": true, "schema": { @@ -27200,7 +27983,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.ClientPublicMetadata" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemPlacementResponse" } } } @@ -27210,7 +27993,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -27220,15 +28013,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true } }, - "/oauth/device/authorize": { + "/api/v1/platform/annotation-queues/{queue_id}/reviewers": { "post": { "security": [ { @@ -27241,22 +28035,29 @@ "Bearer Auth": [] } ], - "description": "Marks a device code as authorized for the authenticated user. Called by the /activate page when the user enters their user code. Requires authentication.", + "description": "Assigns a single identity as a reviewer for the queue. Idempotent.", "tags": [ - "oauth" + "annotation_queues" + ], + "summary": "Add a reviewer to an annotation queue", + "parameters": [ + { + "description": "Queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Authorize a device code", - "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/annotationqueues.AddReviewerResponse" } } } @@ -27266,64 +28067,56 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "organization_id": { - "type": "string", - "description": "Organization ID; must match the authenticated org" - }, - "workspace_id": { - "type": "string", - "description": "Default workspace ID; must belong to organization and be accessible to user" - }, - "user_code": { - "type": "string", - "description": "User code displayed on the device" - } - }, - "required": [ - "organization_id", - "user_code" - ] + "$ref": "#/components/schemas/annotationqueues.AddReviewerRequest" } } } } } }, - "/oauth/device/code": { - "post": { + "/api/v1/platform/annotation-queues/{queue_id}/reviewers/{identity_id}": { + "delete": { "security": [ { "API Key": [] @@ -27335,29 +28128,57 @@ "Bearer Auth": [] } ], - "description": "Issues a device code and user code for the device authorization flow per RFC 8628.", + "description": "Unassigns an identity as a reviewer for the queue. Idempotent.", "tags": [ - "oauth" + "annotation_queues" + ], + "summary": "Remove a reviewer from an annotation queue", + "parameters": [ + { + "description": "Queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Identity ID of the reviewer to remove", + "name": "identity_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Request OAuth2 device authorization", - "parameters": [], "responses": { - "200": { - "description": "OK", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.DeviceCodeResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -27367,34 +28188,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "description": "OAuth2 client ID" - } - }, - "required": [ - "client_id" - ] - } - } - } - } + "x-public": true } }, - "/oauth/register": { + "/api/v1/platform/datasets/examples/delete": { "post": { "security": [ { @@ -27407,19 +28213,19 @@ "Bearer Auth": [] } ], - "description": "Public RFC 7591 Dynamic Client Registration endpoint. Only mints public clients with allowed loopback, HTTPS, or native client redirect URIs. Body limit 8 KB.", + "description": "This endpoint hard deletes *all* versions of a dataset example(s).\nDeletion is performed by setting inputs, outputs, and metadata to null and deleting attachment files while keeping the example ID, dataset ID, and creation timestamp.\nIMPORTANT: attachment files can take up to 7 days to be deleted. inputs, outputs and metadata are nullified immediately.", "tags": [ - "oauth" + "examples" ], - "summary": "Register an OAuth2 dynamic client", + "summary": "Hard Delete Examples", "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.ClientRegistrationResponse" + "$ref": "#/components/schemas/examples.ExamplesDeletedResponse" } } } @@ -27429,45 +28235,56 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "413": { - "description": "Request Entity Too Large", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/examples.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.ClientRegistrationRequest" + "$ref": "#/components/schemas/examples.DeleteExamplesRequest" } } } } } }, - "/oauth/revoke": { + "/api/v1/platform/datasets/{dataset_id}/examples": { "post": { "security": [ { @@ -27480,64 +28297,30 @@ "Bearer Auth": [] } ], - "description": "Revokes an access token or refresh token per RFC 7009. Always returns 200 regardless of whether the token was found.", + "description": "This endpoint allows clients to upload examples to a specified dataset by sending a multipart/form-data POST request.\nEach form part contains either JSON-encoded data or binary attachment files associated with an example.", "tags": [ - "oauth" + "examples" ], - "summary": "Revoke an OAuth2 token", - "parameters": [], - "responses": { - "200": { - "description": "OK" - } - }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "token": { - "type": "string", - "description": "Token to revoke (access token or refresh token)" - } - }, - "required": [ - "token" - ] - } - } - } - } - } - }, - "/oauth/token": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, + "summary": "Upload Examples", + "parameters": [ { - "Bearer Auth": [] + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } } ], - "description": "Token endpoint that dispatches by grant_type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token.", - "tags": [ - "oauth" - ], - "summary": "Exchange grant for OAuth2 tokens", - "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenResponse" + "$ref": "#/components/schemas/examples.ExamplesCreatedResponse" } } } @@ -27547,260 +28330,215 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "grant_type": { - "type": "string", - "description": "Grant type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token" - }, - "client_id": { - "type": "string", - "description": "OAuth2 client ID" - }, - "code": { - "type": "string", - "description": "Authorization code (authorization_code grant)" - }, - "code_verifier": { - "type": "string", - "description": "PKCE code verifier (authorization_code grant)" - }, - "redirect_uri": { - "type": "string", - "description": "Redirect URI (authorization_code grant)" - }, - "device_code": { - "type": "string", - "description": "Device code (device_code grant)" - }, - "refresh_token": { - "type": "string", - "description": "Refresh token (refresh_token grant)" - } - }, - "required": [ - "grant_type", - "client_id" - ] - } - } - } - } - } - }, - "/orgs/current/data-planes": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns up to 50 data planes owned by the caller's organization. Sorted status priority (active first), then newest first. Requires BYOC to be enabled for the org.", - "tags": [ - "data_planes" - ], - "summary": "List data planes for the current organization", - "responses": { - "200": { - "description": "Data planes", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/data_planes.ListPublicDataPlanesResponse" - } - } - } - }, - "400": { - "description": "Invalid organization ID", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "403": { - "description": "BYOC not enabled for this organization", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "{example_id}": { + "type": "string", + "format": "binary", + "description": "The Example info as JSON. Can have fields 'metadata', 'split', 'use_source_run_io', 'source_run_id', 'created_at', 'modified_at'" + }, + "{example_id}.inputs": { + "type": "string", + "format": "binary", + "description": "The Example inputs as JSON" + }, + "{example_id}.outputs": { + "type": "string", + "format": "binary", + "description": "THe Example outputs as JSON" + }, + "{example_id}.attachments.{name}": { + "type": "string", + "format": "binary", + "description": "File attachment named {name}" } - } + }, + "required": [ + "{example_id}", + "{example_id}.inputs" + ] } } } - }, - "parameters": [] + } }, - "post": { + "patch": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Creates a new data plane object. Persists the rendered data plane spec, and returns 202 with the data plane in status=requested. Requires BYOC enabled org and org admin.", + "description": "This endpoint allows clients to update existing examples in a specified dataset by sending a multipart/form-data PATCH request.\nEach form part contains either JSON-encoded data or binary attachment files to update an example.", "tags": [ - "data_planes" + "examples" + ], + "summary": "Update Examples", + "parameters": [ + { + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } ], - "summary": "Create a new data plane", - "parameters": [], "responses": { - "202": { - "description": "Data plane requested", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/data_planes.PublicDataPlane" + "$ref": "#/components/schemas/examples.ExamplesUpdatedResponse" } } } }, "400": { - "description": "Invalid input", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "403": { - "description": "BYOC not enabled or insufficient permissions", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, "409": { - "description": "Name already exists for this organization", + "description": "Conflict", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "500": { - "description": "Internal server error", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/data_planes.CreateDataPlaneRequestAws" + "type": "object", + "properties": { + "{example_id}": { + "type": "string", + "format": "binary", + "description": "The Example update info as JSON. Can have fields 'metadata', 'split'" + }, + "{example_id}.inputs": { + "type": "string", + "format": "binary", + "description": "The updated Example inputs as JSON" + }, + "{example_id}.outputs": { + "type": "string", + "format": "binary", + "description": "The updated Example outputs as JSON" + }, + "{example_id}.attachments_operations": { + "type": "string", + "format": "binary", + "description": "JSON describing attachment operations (retain, rename)" + }, + "{example_id}.attachment.{name}": { + "type": "string", + "format": "binary", + "description": "New file attachment named {name}" + } + }, + "required": [ + "{example_id}" + ] } } } } } }, - "/repos/{owner}/{repo}/tags/{tag_name}/history": { + "/api/v1/platform/evaluators": { "get": { "security": [ { @@ -27813,57 +28551,102 @@ "Bearer Auth": [] } ], - "description": "Returns the paginated audit log of transitions for a specific\ntag in a repository. Each entry records a commit change\n(from_commit → to_commit) along with who performed it.", + "description": "List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.", "tags": [ - "tag-transitions" + "evaluators" ], - "summary": "Get tag transition history", + "summary": "List evaluators", "parameters": [ { - "description": "Repository owner (tenant handle)", - "name": "owner", - "in": "path", - "required": true, + "description": "Filter by evaluator type", + "name": "type", + "in": "query", "schema": { - "type": "string" + "type": "string", + "title": "Type" } }, { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, + "description": "Filter by name substring (also searches creator names)", + "name": "name_contains", + "in": "query", "schema": { - "type": "string" + "type": "string", + "title": "Name Contains" } }, { - "description": "Tag name", - "name": "tag_name", - "in": "path", - "required": true, + "description": "Filter by tag value IDs", + "name": "tag_value_id", + "in": "query", + "style": "form", + "explode": false, "schema": { - "type": "string" + "items": { + "type": "string" + }, + "type": "array", + "title": "Tag Value Id" + } + }, + { + "description": "Filter by feedback key", + "name": "feedback_key", + "in": "query", + "schema": { + "type": "string", + "title": "Feedback Key" + } + }, + { + "description": "Filter by resource IDs", + "name": "resource_id", + "in": "query", + "style": "form", + "explode": false, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Resource Id" + } + }, + { + "description": "Field to sort by", + "name": "sort_by", + "in": "query", + "schema": { + "type": "string", + "title": "Sort By" + } + }, + { + "description": "Sort in descending order", + "name": "sort_by_desc", + "in": "query", + "schema": { + "type": "boolean", + "title": "Sort By Desc" } }, { + "description": "Maximum number of results (1-100)", "name": "limit", "in": "query", "schema": { - "default": 50, + "default": 100, "type": "integer", - "maximum": 100, - "minimum": 1, "title": "Limit" } }, { + "description": "Offset for pagination", "name": "offset", "in": "query", "schema": { "default": 0, "type": "integer", - "minimum": 0, "title": "Offset" } } @@ -27874,7 +28657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.TagTransitionHistoryResponse" + "$ref": "#/components/schemas/evaluators.ListEvaluatorsResponse" } } } @@ -27884,17 +28667,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -27904,15 +28697,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } - } - } - }, - "/runs": { + }, + "x-public": true + }, "post": { "security": [ { @@ -27925,34 +28717,19 @@ "Bearer Auth": [] } ], - "description": "Queues a single run for ingestion. The request body must be a JSON-encoded run object that follows the Run schema.", + "description": "Create a new LLM or code evaluator for the current workspace.", "tags": [ - "runs" + "evaluators" ], - "summary": "Create a Run", + "summary": "Create evaluator", "parameters": [], "responses": { - "202": { - "description": "Run created", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/evaluators.CreateEvaluatorResponse" } } } @@ -27962,66 +28739,55 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "429": { - "description": "Too Many Requests", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.Run" + "$ref": "#/components/schemas/evaluators.CreateEvaluatorRequest" } } } } - } - }, - "/runs/batch": { - "post": { + }, + "delete": { "security": [ { "API Key": [] @@ -28033,34 +28799,44 @@ "Bearer Auth": [] } ], - "description": "Ingests a batch of runs in a single JSON payload. The payload must have `post` and/or `patch` arrays containing run objects.\nPrefer this endpoint over single‑run ingestion when submitting hundreds of runs, but `/runs/multipart` offers better handling for very large fields and attachments.", + "description": "Delete multiple evaluators by their IDs. Returns per-item success/failure.", "tags": [ - "runs" + "evaluators" + ], + "summary": "Bulk delete evaluators", + "parameters": [ + { + "description": "Evaluator IDs to delete", + "name": "evaluator_ids", + "in": "query", + "required": true, + "style": "form", + "explode": false, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Evaluator Ids" + } + }, + { + "description": "When true, delete all run rules for this evaluator before deleting the evaluator", + "name": "delete_run_rules", + "in": "query", + "schema": { + "type": "boolean", + "title": "Delete Run Rules" + } + } ], - "summary": "Ingest Runs (Batch JSON)", - "parameters": [], "responses": { - "202": { - "description": "Runs batch ingested", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/evaluators.BulkDeleteEvaluatorsResponse" } } } @@ -28070,117 +28846,164 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "413": { - "description": "Request Entity Too Large", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } + } + }, + "x-public": true + } + }, + "/api/v1/platform/evaluators/spend": { + "get": { + "security": [ + { + "API Key": [] }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } + { + "Tenant ID": [] }, - "429": { - "description": "Too Many Requests", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } + { + "Bearer Auth": [] } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "patch": { - "type": "array", - "items": { - "$ref": "#/components/schemas/runs.Run" - } - }, - "post": { - "type": "array", - "items": { - "$ref": "#/components/schemas/runs.Run" - } - } - } - } + ], + "description": "Returns per-day LLM evaluator spend for the requested 7-day period, grouped by evaluator, resource, or run rule. Exactly one of group_by, evaluator_id, session_id, or dataset_id is required. resource_id, type, feedback_key, and tag_value_id may be supplied with group_by to narrow listing aggregations.", + "tags": [ + "evaluators" + ], + "summary": "Get evaluator spend", + "parameters": [ + { + "description": "Aggregation mode: 'evaluator', 'resource', or 'run_rule'. Mutually exclusive with entity filters.", + "name": "group_by", + "in": "query", + "schema": { + "type": "string", + "title": "Group By" } - } - } - } - }, - "/runs/multipart": { - "post": { - "security": [ + }, { - "API Key": [] + "description": "Filter to a specific evaluator (UUID). Mutually exclusive with group_by.", + "name": "evaluator_id", + "in": "query", + "schema": { + "type": "string", + "title": "Evaluator Id" + } }, { - "Tenant ID": [] + "description": "Filter to a specific project (UUID). Mutually exclusive with group_by.", + "name": "session_id", + "in": "query", + "schema": { + "type": "string", + "title": "Session Id" + } }, { - "Bearer Auth": [] + "description": "Filter to a specific dataset (UUID). Mutually exclusive with group_by.", + "name": "dataset_id", + "in": "query", + "schema": { + "type": "string", + "title": "Dataset Id" + } + }, + { + "description": "Filter grouped results to evaluators attached to all supplied project or dataset IDs. Only valid with group_by.", + "name": "resource_id", + "in": "query", + "style": "form", + "explode": false, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Resource Id" + } + }, + { + "description": "Filter grouped results by evaluator type: 'llm' or 'code'. Only valid with group_by.", + "name": "type", + "in": "query", + "schema": { + "type": "string", + "title": "Type" + } + }, + { + "description": "Filter grouped results by evaluator feedback key. Only valid with group_by.", + "name": "feedback_key", + "in": "query", + "schema": { + "type": "string", + "title": "Feedback Key" + } + }, + { + "description": "Filter grouped results to evaluators, projects, or datasets tagged with all supplied tag value IDs. Only valid with group_by.", + "name": "tag_value_id", + "in": "query", + "style": "form", + "explode": false, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Tag Value Id" + } + }, + { + "description": "Start of the 7-day window (YYYY-MM-DD).", + "name": "period_start", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Period Start" + } } ], - "description": "Ingests multiple runs, feedback objects, and binary attachments in a single `multipart/form-data` request.\n**Part‑name pattern**: `.[.]` where `event` ∈ {`post`, `patch`, `feedback`, `attachment`}.\n* `post|patch.` – JSON run payload.\n* `post|patch..` – out‑of‑band run data (`inputs`, `outputs`, `events`, `error`, `extra`, `serialized`).\n* `feedback.` – JSON feedback payload (must include `trace_id`).\n* `attachment..` – arbitrary binary attachment stored in S3.\n**Headers**: every part must set `Content-Type` **and** either a `Content-Length` header or `length` parameter. Per‑part `Content-Encoding` is **not** allowed; the top‑level request may be `Content-Encoding: gzip` or `Content-Encoding: zstd`.\n**Best performance** for high‑volume ingestion.", - "tags": [ - "runs" - ], - "summary": "Ingest Runs (Multipart)", - "parameters": [], "responses": { - "202": { - "description": "Accepted", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.GetEvaluatorSpendResponse" } } } @@ -28190,108 +29013,57 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "413": { - "description": "Request Entity Too Large", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "429": { - "description": "Too Many Requests", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "post.{run_id}": { - "type": "string", - "format": "binary", - "description": "Run to create (JSON)" - }, - "patch.{run_id}": { - "type": "string", - "format": "binary", - "description": "Run to update (JSON)" - }, - "post.{run_id}.inputs": { - "type": "string", - "format": "binary", - "description": "Large inputs object (JSON) stored out‑of‑band" - }, - "patch.{run_id}.outputs": { - "type": "string", - "format": "binary", - "description": "Large outputs object (JSON) stored out‑of‑band" - }, - "feedback.{run_id}": { - "type": "string", - "format": "binary", - "description": "Feedback object (JSON) – must include trace_id" - }, - "attachment.{run_id}.{filename}": { - "type": "string", - "format": "binary", - "description": "Binary attachment linked to run {run_id}" - } - } - } - } - } - } + "x-public": true } }, - "/runs/{run_id}": { - "patch": { + "/api/v1/platform/evaluators/{evaluator_id}": { + "get": { "security": [ { "API Key": [] @@ -28303,45 +29075,29 @@ "Bearer Auth": [] } ], - "description": "Updates a run identified by its ID. The body should contain only the fields to be changed; unknown fields are ignored.", + "description": "Retrieve a single evaluator by its ID.", "tags": [ - "runs" + "evaluators" ], - "summary": "Update a Run", + "summary": "Get evaluator", "parameters": [ { - "description": "Run ID", - "name": "run_id", + "description": "Evaluator ID", + "name": "evaluator_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], "responses": { - "202": { - "description": "Run updated", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/evaluators.Evaluator" } } } @@ -28351,76 +29107,55 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "429": { - "description": "Too Many Requests", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.Run" - } - } - } - } - } - }, - "/v1/agent-builder/integrations": { - "get": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -28432,31 +29167,51 @@ "Bearer Auth": [] } ], - "description": "Returns default policy, integration overrides, and known integrations for the current workspace.", + "description": "Delete an evaluator. When delete_run_rules is true, all run rules referencing this evaluator are deleted first (same tenant). Associated llm_evaluators and code_evaluators rows are removed by foreign-key cascade when the evaluator row is deleted.", "tags": [ - "integrations" + "evaluators" + ], + "summary": "Delete evaluator", + "parameters": [ + { + "description": "Evaluator ID", + "name": "evaluator_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "When true, delete all run rules for this evaluator before deleting the evaluator", + "name": "delete_run_rules", + "in": "query", + "schema": { + "type": "boolean", + "title": "Delete Run Rules" + } + } ], - "summary": "Get Agent Builder integrations settings", "responses": { - "200": { - "description": "OK", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28466,10 +29221,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28479,10 +29231,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28492,18 +29251,15 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true }, - "put": { + "patch": { "security": [ { "API Key": [] @@ -28515,19 +29271,29 @@ "Bearer Auth": [] } ], - "description": "Replaces default policy and integration overrides for the current workspace.", + "description": "Update an existing evaluator's name, LLM configuration, or code configuration.", "tags": [ - "integrations" + "evaluators" + ], + "summary": "Update evaluator", + "parameters": [ + { + "description": "Evaluator ID", + "name": "evaluator_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Update Agent Builder integrations settings", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" + "$ref": "#/components/schemas/evaluators.UpdateEvaluatorResponse" } } } @@ -28537,10 +29303,27 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28550,10 +29333,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28563,29 +29343,27 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsUpdatePayload" + "$ref": "#/components/schemas/evaluators.UpdateEvaluatorRequest" } } } } } }, - "/v1/beacon/usage-snapshot": { - "post": { + "/api/v1/platform/features": { + "get": { "security": [ { "API Key": [] @@ -28597,24 +29375,20 @@ "Bearer Auth": [] } ], - "description": "Records aggregate entity counts (workspaces, projects, datasets, active users, etc.)\nfrom a self-hosted deployment or BYOC data plane.\nSelf-hosted authenticates via license_key in the body.\nBYOC data planes authenticate via the X-Data-Plane-Auth JWT header.", + "description": "Returns a consolidated view of default models and disabled models per feature for the workspace.", "tags": [ - "beacon" + "features" ], - "summary": "Submit a usage snapshot", - "parameters": [], + "summary": "List feature configurations", "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" + "type": "array", + "items": { + "$ref": "#/components/schemas/features.FeatureConfig" } } } @@ -28625,10 +29399,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28638,10 +29409,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28651,30 +29419,18 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/features.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/beacon.SubmitUsageSnapshotPayload" - } - } - } - }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/deepagents/auth-sessions": { - "post": { + "/api/v1/platform/features/{feature}/default-model": { + "put": { "security": [ { "API Key": [] @@ -28686,39 +29442,184 @@ "Bearer Auth": [] } ], - "description": "Initiates an OAuth flow for the caller. If the user is already authorized, returns a completed session that references an existing token. Otherwise, returns a pending session containing a verification URL the user must visit to complete authorization.", + "description": "Sets or replaces the default model for a feature in the workspace.", "tags": [ - "fleet auth" + "features" + ], + "summary": "Set default model for a feature", + "parameters": [ + { + "description": "Feature name", + "name": "feature", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Start an authorization session", - "parameters": [], "responses": { - "200": { - "description": "Existing token reused; no new session created.", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "201": { - "description": "New pending session created; visit verification_url to complete.", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "$ref": "#/components/schemas/features.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.ErrorResponse" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.UpsertDefaultModelRequest" + } + } + } + } + }, + "delete": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Removes the default model for a feature in the workspace.", + "tags": [ + "features" + ], + "summary": "Delete default model for a feature", + "parameters": [ + { + "description": "Feature name", + "name": "feature", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.ErrorResponse" } } } + } + }, + "x-public": true + } + }, + "/api/v1/platform/features/{feature}/disabled-models": { + "put": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Adds a model to the disabled list for a feature in the workspace.", + "tags": [ + "features" + ], + "summary": "Disable a model for a feature", + "parameters": [ + { + "description": "Feature name", + "name": "feature", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28728,37 +29629,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionRequest" + "$ref": "#/components/schemas/features.DisableModelRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/deepagents/auth-sessions/{session_id}": { - "get": { + "/api/v1/platform/features/{feature}/disabled-models/{model}": { + "delete": { "security": [ { "API Key": [] @@ -28770,15 +29681,15 @@ "Bearer Auth": [] } ], - "description": "Returns the current status of an in-flight authorization session. The optional `wait_seconds` query param (1-25, default 1) keeps the request open up to that many seconds, returning early if the session completes. Poll until status is COMPLETED.", + "description": "Removes a model from the disabled list for a feature in the workspace.", "tags": [ - "fleet auth" + "features" ], - "summary": "Get an authorization session", + "summary": "Re-enable a disabled model for a feature", "parameters": [ { - "description": "Authorization session ID", - "name": "session_id", + "description": "Feature name", + "name": "feature", "in": "path", "required": true, "schema": { @@ -28786,32 +29697,25 @@ } }, { - "description": "Long-poll window in seconds (1-25, default 1)", - "name": "wait_seconds", - "in": "query", + "description": "Model name (URL-encoded)", + "name": "model", + "in": "path", + "required": true, "schema": { - "type": "integer", - "title": "Wait Seconds" + "type": "string" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.GetSessionResponse" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28821,60 +29725,76 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/deepagents/mcp-servers": { + "/api/v1/platform/gateway-policies": { "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Returns MCP servers visible to the caller after ABAC filtering. Service-key callers may pass X-Ls-User-Id to resolve per-user OAuth providers.", + "description": "Returns every gateway policy in the current organization.\nThe response includes both admin-created policies and\nruntime-materialized children of `default_spend_cap` and\n`default_rate_limit` policies (children carry `parent_policy_id`).\n\n**Spend tracking:** each spend-cap policy carries\n`current_spend_usd` — the spend accumulated in the policy's\nactive window.\n\n**Filters** (all optional):\n- `policy_type` — `spend_cap`, `default_spend_cap`, `guard`, `route_config`, `model_fallback`, `rate_limit`, or `default_rate_limit`\n- `subject_matcher_key` + `subject_matcher_value` — narrow to\npolicies whose subject_matchers contain `{key, value}`\n\nFor batch lookups by a set of subject values (e.g. many\nrun_rule_ids at once), use POST\n`/v1/platform/gateway-policies/search`; it accepts the\nvalues in a JSON body and avoids the URL-length ceiling\nthat a repeated query param would hit at scale.", "tags": [ - "fleet mcp" + "gateway-policies" ], - "summary": "List MCP servers", + "summary": "List gateway policies", "parameters": [ { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", + "description": "Filter by policy_type", + "name": "policy_type", + "in": "query", "schema": { - "type": "string" + "type": "string", + "title": "Policy Type" + } + }, + { + "description": "Filter by subject matcher key", + "name": "subject_matcher_key", + "in": "query", + "schema": { + "type": "string", + "title": "Subject Matcher Key" + } + }, + { + "description": "Filter by subject matcher value (paired with subject_matcher_key)", + "name": "subject_matcher_value", + "in": "query", + "schema": { + "type": "string", + "title": "Subject Matcher Value" } } ], @@ -28886,38 +29806,28 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -28927,41 +29837,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, - "x-hidden": true + "x-public": true }, "post": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "description": "Creates a gateway policy for the calling organization.\n\n**policy_type** is one of `spend_cap`, `default_spend_cap`,\n`guard`, `route_config`, `model_fallback`, `rate_limit`, or `default_rate_limit`.\nThe shape of `config` depends on policy_type:\n- `spend_cap` / `default_spend_cap`:\n`{\"window\": \"hourly\"|\"daily\"|\"weekly\"|\"monthly\", \"limit_usd\": }`\n- `guard`:\n`{\"version\": 1, \"detect\": {\"pii\": , \"secrets\": }, \"timeout_seconds\": , \"timeout_action\": \"allow\"|\"block\"}`\n`timeout_seconds` (optional, 0.1–30) caps guard pipeline execution time; defaults to 2s. `timeout_action` defaults to `allow`.\n- `route_config`:\n`{\"strategy\": \"priority_fallback\", \"triggers\": {\"status_codes\": []}, \"fallbacks\": [{\"model_configs\": [{\"model_config_id\": \"\"}]}]}`\n`triggers` is required, with no default: `status_codes` must be a non-empty list (include 502 and 504 for upstream transport failures). `fallbacks` contains an entry whose `model_configs` are tried in priority order (1–5). `subject_matchers` must be a single `workspace_id` entry.\n- `model_fallback`:\n`{\"strategy\": \"priority_fallback\", \"triggers\": {\"status_codes\": [429, 502, 503, 504]}, \"chain\": {\"selector\": {\"type\": \"provider_model\", \"provider\": \"openai\", \"model\": \"gpt-4o\"}, \"candidates\": [{\"type\": \"provider_model\", \"provider\": \"openai\", \"model\": \"gpt-4o-mini\"}, {\"type\": \"model_config\", \"model_config_id\": \"\"}]}}`\n`chain.candidates` is an ordered list of 1–5 direct provider models or saved workspace model configurations. A non-empty `workspace_id` matcher is required. `provider_model` selectors are workspace-only; `alias` selectors may be narrowed by `user_id` or `api_key_id`. Provider/model selectors are unique within a workspace, while alias names are reserved across the organization and may intentionally shadow a model name.\n- `rate_limit` / `default_rate_limit`:\n`{\"version\": 1, \"limits\": [{\"metric\": \"requests\"|\"tokens\", \"window\": \"minute\"|\"hour\", \"value\": }]}`\n`limits` must be non-empty; each `metric`/`window` pair may appear at most once. `value` is 1..1000000000000000.\n\n**subject_matchers** is a list of `{key, value}` pairs. Built-in\nkeys are `organization_id`, `workspace_id`, `user_id`, `api_key_id`,\nand `run_rule_id`. Values under the same key are ORed; distinct keys\nare ANDed. A default policy uses an empty built-in matcher value so\nthe runtime materializes a child for each subject it sees. A\n`default_spend_cap` and `default_rate_limit` may add one empty custom\nmetadata key to bucket each subject by the corresponding\n`X-Gateway-*` request header; the materialized child stores both values.\n\n**action** is currently always `block`. Spend caps reject the\nrequest with 402 when the limit is hit; rate limits reject with\n429 (with a `Retry-After` hint) when a limit is exceeded; guard\npolicies redact matched content in-place before forwarding upstream.\n\n**Upsert by matchers:** for `spend_cap`, `default_spend_cap`,\n`rate_limit`, `default_rate_limit`, and `guard`, if a policy with\nthe same `subject_matchers` already exists in this organization,\nthe existing policy is updated in place instead of a duplicate\nbeing created. `id` is preserved. `route_config` and `model_fallback` do not upsert\nby matchers — name must be unique per organization (409 on\nconflict). Returns 201 either way.", "tags": [ - "fleet mcp" + "gateway-policies" ], - "summary": "Create MCP server", + "summary": "Create a gateway policy", "parameters": [], "responses": { "201": { @@ -28969,47 +29866,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid auth", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "LLM Gateway not enabled for the organization, or caller lacks OrganizationManage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "409": { - "description": "Conflict", + "description": "policy name conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29019,61 +29916,150 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" + } + } + } + } + }, + "x-codeSamples": [ + { + "label": "spend_cap", + "lang": "json", + "source": "{\n \"name\": \"monthly-cap\",\n \"policy_type\": \"spend_cap\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 100}\n}" + }, + { + "label": "guard", + "lang": "json", + "source": "{\n \"name\": \"redact-pii\",\n \"policy_type\": \"guard\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 3}\n}" + }, + { + "label": "route_config", + "lang": "json", + "source": "{\n \"name\": \"gpt-fallback\",\n \"policy_type\": \"route_config\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\": \"workspace_id\", \"value\": \"\"}],\n \"config\": {\"strategy\": \"priority_fallback\", \"triggers\": {\"status_codes\": [429, 500, 502, 503, 504]}, \"fallbacks\": [{\"model_configs\": [{\"model_config_id\": \"11111111-1111-1111-1111-111111111111\"}]}]}\n}" + } + ], + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/gateway_policies.CreateGatewayPolicyRequest" + } + } + } + } + } + }, + "/api/v1/platform/gateway-policies/search": { + "post": { + "security": [ + { + "API Key": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Batch variant of GET /v1/platform/gateway-policies for\nfetching policies that match a set of subject_matcher_values\nunder one subject_matcher_key. Accepts the values in a JSON\nbody so callers can include hundreds of subject ids without\nbumping into per-server URL-length limits.\n\nVisibility, response shape, and matcher semantics are\nidentical to the GET list. With `subject_matcher_values`\nempty (or omitted) this returns the same result as GET\nwith only `policy_type` set.", + "tags": [ + "gateway-policies" + ], + "summary": "Search gateway policies by subject value set", + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + } + } + } + } + }, + "400": { + "description": "validation error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/gateway_policies.errorResponse" + } + } + } + }, + "403": { + "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/gateway_policies.errorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" + "$ref": "#/components/schemas/gateway_policies.SearchGatewayPoliciesRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/deepagents/mcp-servers/{mcp_server_id}": { + "/api/v1/platform/gateway-policies/{id}": { "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "description": "Returns a single gateway policy by id. Cross-org access is\nrejected with 404\n\n**Spend tracking:** spend-cap policies include\n`current_spend_usd` for the active window so callers can\nread per-policy cost without hitting a separate endpoint.\nGuard policies leave it null.", "tags": [ - "fleet mcp" + "gateway-policies" ], - "summary": "Get MCP server", + "summary": "Get a gateway policy", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Policy ID", + "name": "id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], @@ -29083,17 +30069,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29103,27 +30089,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "404": { - "description": "Not Found", + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29133,49 +30119,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, - "x-hidden": true + "x-public": true }, "delete": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "description": "Deletes a gateway policy. Subsequent reads return 404.\n\n**default cascade:** deleting a `default_spend_cap` or\n`default_rate_limit` also deletes every child policy\nmaterialized from it.", "tags": [ - "fleet mcp" + "gateway-policies" ], - "summary": "Delete MCP server", + "summary": "Delete a gateway policy", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Policy ID", + "name": "id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], @@ -29184,11 +30158,11 @@ "description": "No Content" }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29198,27 +30172,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "404": { - "description": "Not Found", + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29228,49 +30202,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, - "x-hidden": true + "x-public": true }, "patch": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "description": "Partially updates a gateway policy. Only fields present in\nthe request body are applied; absent fields are left\nunchanged. `policy_type` is immutable — to change a\npolicy's type, delete it and create a new one.\n\n**config** if supplied must match the policy's type:\n- spend-cap: `{\"window\": ..., \"limit_usd\": ...}`\n- guard: `{\"version\": 1, \"detect\": {...}, \"timeout_seconds\": , \"timeout_action\": \"allow\"|\"block\"}`\n- rate-limit: `{\"version\": 1, \"limits\": [{\"metric\": \"requests\"|\"tokens\", \"window\": \"minute\"|\"hour\", \"value\": }]}`\nMismatched shapes are rejected with 400.\n\n**default cascade:** editing a `default_spend_cap` or\n`default_rate_limit` updates the config/action/enabled/priority\non every attached child policy so the template stays the source\nof truth across rollouts.", "tags": [ - "fleet mcp" + "gateway-policies" ], - "summary": "Update MCP server", + "summary": "Update a gateway policy", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Policy ID", + "name": "id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], @@ -29280,17 +30242,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29300,67 +30262,84 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "404": { - "description": "Not Found", + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "409": { + "description": "matcher edit collides with another policy in the same family", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, + "x-codeSamples": [ + { + "label": "spend_cap", + "lang": "json", + "source": "{\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 200},\n \"enabled\": false\n}" + }, + { + "label": "guard", + "lang": "json", + "source": "{\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 5},\n \"enabled\": true\n}" + }, + { + "label": "rate_limit", + "lang": "json", + "source": "{\n \"config\": {\"version\": 1, \"limits\": [{\"metric\": \"requests\", \"window\": \"minute\", \"value\": 100}]},\n \"enabled\": true\n}" + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" + "$ref": "#/components/schemas/gateway_policies.UpdateGatewayPolicyRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/deepagents/mcp-servers/{mcp_server_id}/oauth-provider": { - "post": { + "/api/v1/platform/hub/repos/{owner}/{repo}/directories": { + "get": { "security": [ { "API Key": [] @@ -29372,20 +30351,38 @@ "Bearer Auth": [] } ], - "description": "Discovers and registers an OAuth provider for the authenticated user against a Deep Agents MCP server configured with per-user dynamic client mode. Idempotent when a mapping already exists.", + "description": "Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.", "tags": [ - "fleet mcp" + "directories" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "Get directory contents", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Commit hash/tag to resolve (defaults to latest)", + "name": "commit", + "in": "query", + "schema": { + "type": "string", + "title": "Commit" + } } ], "responses": { @@ -29394,7 +30391,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" + "$ref": "#/components/schemas/directory.GetDirectoryResponse" } } } @@ -29404,7 +30401,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29414,7 +30411,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29424,7 +30421,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29434,7 +30431,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29444,37 +30441,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/directory.errorResponse" } } } } }, - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/deepagents/mcp/tools": { - "get": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -29486,47 +30461,137 @@ "Bearer Auth": [] } ], - "description": "Returns tools from a remote MCP server. Serves cached results when fresh, otherwise fetches from the remote server and caches the response.", + "description": "Deletes an agent or skill repository and its owned child file repositories.", "tags": [ - "fleet mcp" + "directories" ], - "summary": "List MCP tools", + "summary": "Delete directory repository", "parameters": [ { - "description": "MCP server URL to fetch tools from", - "name": "url", - "in": "query", + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Url" + "type": "string" } }, { - "description": "OAuth provider ID for token-based auth", - "name": "oauth_provider_id", - "in": "query", - "schema": { - "type": "string", - "title": "Oauth Provider Id" + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, { - "description": "Skip cache and fetch fresh tools", - "name": "force_refresh", + "description": "Repository type to delete; a different type is treated as not found", + "name": "repo_type", "in": "query", "schema": { - "type": "boolean", - "title": "Force Refresh" + "type": "string", + "enum": [ + "agent", + "skill" + ], + "title": "Repo Type" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.errorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.errorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.errorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.errorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.errorResponse" + } + } } + } + }, + "x-public": true + } + }, + "/api/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { + "post": { + "security": [ + { + "API Key": [] }, { - "description": "User ID override (service-key callers)", - "name": "ls_user_id", - "in": "query", + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations.", + "tags": [ + "directories" + ], + "summary": "Create directory commit", + "parameters": [ + { + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Ls User Id" + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" } } ], @@ -29536,7 +30601,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ListToolsResponse" + "$ref": "#/components/schemas/directory.CommitResponse" } } } @@ -29546,7 +30611,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29556,7 +30621,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29566,7 +30631,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29576,26 +30641,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.errorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.CreateDirectoryCommitRequest" + } + } + } + } } }, - "/v1/fleet/agents": { + "/api/v1/platform/issues": { "get": { "security": [ { @@ -29608,90 +30693,192 @@ "Bearer Auth": [] } ], - "description": "Returns the agents the authenticated user has access to. The\ndefault `audience=user` view returns the agents the caller owns\nplus any agents that have been directly shared with the caller\nvia `permissions.shared_users`. The alternate `audience=tenant`\nview returns only the workspace-shared agents (those whose\n`permissions.visibility` is `tenant`). System-created defaults\nare always excluded.\n\nEach item carries two caller-relative fields that describe the\nauthenticated user's relationship to that agent:\n* `is_owner` — `true` if the caller is the agent's owner.\n* `access_level` — one of `READ`, `RUN`, or `WRITE`. Owners\nget `WRITE`. Direct shares get the level matching the\n`shared_users` list they appear in. Tenant-shared rows get\nthe agent's `tenant_access_level`. The maximum applicable\nlevel always wins.\n\nResults are cursor-paginated. Pass the `cursor` value from the\nprevious response to fetch the next page; `next_cursor` is\nomitted when no further pages exist.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns issues for the authenticated tenant, optionally filtered\nby session, status, severity, tag, linked trace, or last modified time.", "tags": [ - "agents" + "issues" ], - "summary": "List agents", + "summary": "[Beta] List issues", "parameters": [ { - "description": "Items per page (1-100). Default 20.", - "name": "page_size", + "description": "Filter by session ID (UUID)", + "name": "session_id", "in": "query", "schema": { - "type": "integer", - "title": "Page Size" + "type": "string", + "title": "Session Id" } }, { - "description": "Opaque pagination cursor returned by the previous list call.", - "name": "cursor", + "description": "Filter by session name (exact match)", + "name": "session_name", "in": "query", "schema": { "type": "string", - "title": "Cursor" + "title": "Session Name" } }, { - "description": "Case-insensitive substring filter on the agent name.", - "name": "name", + "description": "Filter by status", + "name": "status", "in": "query", "schema": { "type": "string", - "title": "Name" + "enum": [ + "open", + "fixing", + "watching", + "completed", + "ignored" + ], + "title": "Status" } }, { - "description": "Scope of agents to return. `user` (default) returns owned + directly-shared. `tenant` returns workspace-shared only.", - "name": "audience", + "description": "Filter by severity", + "name": "severity", "in": "query", "schema": { - "default": "user", - "type": "string", + "type": "integer", "enum": [ - "user", - "tenant" + 0, + 1, + 2, + 3 ], - "title": "Audience" + "title": "Severity" + } + }, + { + "description": "Filter by exact severity (repeatable; OR semantics)", + "name": "severity_exact", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "integer" + }, + "type": "array", + "title": "Severity Exact" + } + }, + { + "description": "Filter by Engine activity (repeatable; OR semantics)", + "name": "activity", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + "fixing", + "watching", + "recurred" + ], + "type": "string" + }, + "type": "array", + "title": "Activity" + } + }, + { + "description": "Filter by tag (exact match)", + "name": "tag", + "in": "query", + "schema": { + "type": "string", + "title": "Tag" + } + }, + { + "description": "Return only issues with a linked run in this trace", + "name": "trace_id", + "in": "query", + "schema": { + "type": "string", + "format": "uuid", + "title": "Trace Id" + } + }, + { + "description": "Return only issues updated at or after this RFC3339 timestamp", + "name": "updated_at", + "in": "query", + "schema": { + "type": "string", + "title": "Updated At" } }, { - "description": "Field to sort by.", + "description": "Sort field", "name": "sort_by", "in": "query", "schema": { - "default": "updated_at", "type": "string", "enum": [ + "default", "created_at", "updated_at", - "name" + "last_seen", + "last_updated", + "trace_count", + "severity" ], "title": "Sort By" } }, { - "description": "Sort direction.", - "name": "sort_order", + "description": "Group results by issue lifecycle status before applying sort_by", + "name": "status_first", "in": "query", "schema": { - "default": "desc", - "type": "string", - "enum": [ - "asc", - "desc" - ], - "title": "Sort Order" + "type": "boolean", + "title": "Status First" + } + }, + { + "description": "Page size (positive integer; defaults to 50, capped at 500)", + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Page offset (non-negative integer; at most 100000)", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" } } ], "responses": { "200": { "description": "OK", + "headers": { + "X-Pagination-Total": { + "description": "Total number of matching issues", + "schema": { + "type": "string" + } + } + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ListAgentsResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/issues.Issue" + } } } } @@ -29701,7 +30888,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -29711,7 +30898,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -29721,7 +30908,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -29731,35 +30918,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { + "x-public": true + } + }, + "/api/v1/platform/issues-agent": { + "get": { "security": [ { "API Key": [] @@ -29771,29 +30940,21 @@ "Bearer Auth": [] } ], - "description": "Creates an agent with the given metadata, runtime configuration,\nand optional file tree. Returns the agent's identity, ownership,\nand a revision token identifying the initial file tree.\nCreation is atomic — either the agent is fully created or no\nstate is persisted.\n\nThe agent is a file tree. Typed fields are ergonomic shortcuts\nthat the server renders into specific paths:\n* `system_prompt` → `AGENTS.md`\n* `tools` → `tools.json`\n* `subagents[i]` → `subagents//AGENTS.md` (system prompt +\ngenerated frontmatter) + `subagents//tools.json`\n\nAdd skills through the `files` map: write `skills//SKILL.md`\n(plus any supporting files) for an inline skill, or a `files` entry\nwith `type: \"skill\"` and a `repo_handle` to link a shared workspace\nskill. (A typed `skills[]` field exists but is deprecated.)\n\nAll file paths in the top-level `files` map must be relative —\nno leading `/`, no `..` segments.\n\nBeyond the file tree, typed blocks configure the agent itself:\n* `model` — **required** — the model to run, referenced by its catalog\n`id` from `GET /v1/fleet/models`. A built-in (default) model uses a\n`provider:model` id, e.g. `{\"id\": \"anthropic:claude-sonnet-4-6\"}`.\nA custom (workspace) model uses the workspace model id, e.g.\n`{\"id\": \"beeb2ec7-3311-423b-89a3-9c95a59593af\"}`. The server\nresolves the id against the catalog; an unknown id returns 422.\n* `display` — presentation metadata (`icon`, `icon_color`).\n* `backend` — execution backend: `state` (no computer, files\nlive in LangGraph state) or `sandbox` (an isolated computer).\nFor `sandbox`, the nested `sandbox_config` sets the `scope`\n(`thread` = one sandbox per thread, `agent` = one shared\nacross threads — required) plus optional `sandbox_id`, `snapshot_id`,\n`policy_ids`, and TTLs. `sandbox_config` is only valid when `type` is\n`sandbox`. When `backend` (or `backend.type`) is omitted it\ndefaults to the `state` backend, which is thread-scoped:\nfiles live in LangGraph thread state and persist across turns\nwithin a thread but are not shared across threads.\n* `options` — behavioural flags such as `trace_inputs_outputs`.\n\n`tools.interrupt_config` maps a tool name to its human-in-the-loop\nrule. Each value is either a boolean (`true` = require approval\nbefore the tool runs, `false` = run automatically) or an object\n`{ \"allowed_decisions\": [...], \"description\": \"...\", \"args_schema\": {...} }`\nwhere `allowed_decisions` is a subset of `approve`, `edit`,\n`reject`, `respond`. `{}` means no interrupts.\n\nUse `files` for paths the typed fields don't cover. Setting both\na typed field and the `files` entry that resolves to the same path\nreturns 422.\n\nExample request body:\n```json\n{\n\"name\": \"researcher\",\n\"description\": \"Researches topics and summarises findings.\",\n\"permissions\": {\"identity\": \"personal\", \"visibility\": \"tenant\", \"tenant_access_level\": \"read\"},\n\"model\": {\"id\": \"anthropic:claude-sonnet-4-6\"},\n\"display\": {\"icon\": \"Rocket02\", \"icon_color\": \"blue\"},\n\"backend\": {\"type\": \"sandbox\", \"sandbox_config\": {\"scope\": \"thread\", \"snapshot_id\": \"550e8400-e29b-41d4-a716-446655440000\"}},\n\"options\": {\"trace_inputs_outputs\": true, \"triggers_paused\": false, \"skip_memory_write_protection\": false, \"tools_url\": \"https://tools.example.com/mcp\", \"slack_oauth_provider_id\": \"prov_123\"},\n\"system_prompt\": \"You are a helpful research agent.\",\n\"tools\": {\n\"tools\": [\n{\"name\": \"read_url_content\", \"mcp_server_url\": \"https://tools.example.com\"}\n],\n\"interrupt_config\": {\"read_url_content\": true}\n},\n\"subagents\": [\n{\"name\": \"summarizer\", \"description\": \"Summarises text\", \"system_prompt\": \"You summarise text.\"}\n],\n\"files\": {\n\"skills/summarize/SKILL.md\": {\"type\": \"file\", \"content\": \"# Summarize\\n\\nGive a one-paragraph summary.\"},\n\"skills/shared-helper\": {\"type\": \"skill\", \"repo_handle\": \"shared-helper\"}\n}\n}\n```", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns every issues agent config configured for the authenticated tenant.", "tags": [ - "agents" - ], - "summary": "Create an agent", - "parameters": [ - { - "description": "Echo the agent's file tree in the response", - "name": "include_files", - "in": "query", - "schema": { - "type": "boolean", - "title": "Include Files" - } - } + "issues-agent" ], + "summary": "[Beta] List issues agent configs", "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "type": "array", + "items": { + "$ref": "#/components/schemas/agent.IssuesAgent" + } } } } @@ -29803,37 +30964,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -29843,46 +30994,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CreateAgentRequest" - } - } - } - }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/fleet/agents/{agent_id}": { + "/api/v1/platform/issues/{id}": { "get": { "security": [ { @@ -29895,29 +31017,28 @@ "Bearer Auth": [] } ], - "description": "Returns the specified agent: its metadata (name, description,\npermissions, runtime, extras) plus the parsed\nfile tree (system prompt, tools, subagents, skills) at the\nlatest commit. Pass `include_files=true` to also receive the\nraw file map.\n\nResponses include `system_prompt` and `instructions` with the\nsame value; `instructions` is deprecated.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns one issue for the authenticated tenant.", "tags": [ - "agents" + "issues" ], - "summary": "Get an agent", + "summary": "[Beta] Get issue", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Issue ID (UUID)", + "name": "id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { - "description": "Include the raw file map in the response", - "name": "include_files", + "description": "Include current Linear workflow state and validated linked GitHub pull request URLs", + "name": "include_linear_context", "in": "query", "schema": { "type": "boolean", - "title": "Include Files" + "title": "Include Linear Context" } } ], @@ -29927,7 +31048,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/issues.Issue" } } } @@ -29937,7 +31058,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -29947,7 +31068,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -29957,7 +31078,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -29967,7 +31088,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -29977,35 +31098,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } } }, - "x-hidden": true - }, - "delete": { + "x-public": true + } + }, + "/api/v1/platform/issues/{id}/views": { + "post": { "security": [ { "API Key": [] @@ -30017,20 +31120,19 @@ "Bearer Auth": [] } ], - "description": "Deletes the agent and all of its associated state. The call is\nidempotent — deleting a non-existent agent returns 204.", + "description": "**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.", "tags": [ - "agents" + "issues" ], - "summary": "Delete an agent", + "summary": "[Beta] Mark issue viewed", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Issue ID (UUID)", + "name": "id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], @@ -30043,7 +31145,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -30053,7 +31155,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -30063,7 +31165,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -30073,35 +31185,71 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" + } + } + } + } + }, + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors": { + "get": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Returns the catalog of available MCP vendors.", + "tags": [ + "mcp_vendors" + ], + "summary": "List MCP vendors", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" } } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}": { + "get": { "security": [ { "API Key": [] @@ -30113,29 +31261,19 @@ "Bearer Auth": [] } ], - "description": "Updates the specified agent. All request fields are optional;\nomitted fields are left unchanged.\n\nMerge semantics follow PATCH conventions:\n* Top-level scalars (`name`, `description`) merge field-by-field —\nsending one does not affect the other.\n* Nested objects (`runtime`, `backend`, `permissions`, `display`,\n`options`, `tools`, `subagents`, `skills`, `extras`) are replaced\nin full when any of their fields is provided. To preserve\nexisting nested values, include them in your PATCH.\n* Providing any of `system_prompt`, `tools`, `subagents`, `skills`,\nor `files` triggers a new file tree commit.\n\nEntries under `files` are created or replaced by path. The call is\natomic per request: if any entry fails validation, no changes are\napplied.", + "description": "Returns vendor metadata and current settings.", "tags": [ - "agents" + "mcp_vendors" ], - "summary": "Update an agent", + "summary": "Get MCP vendor", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "description": "Echo the agent's file tree in the response", - "name": "include_files", - "in": "query", - "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string" } } ], @@ -30145,17 +31283,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/mcp_vendors.GetMcpVendorResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30165,7 +31303,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30175,47 +31313,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.UpdateAgentRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/agents/{agent_id}/clone": { - "post": { + "/api/v1/platform/mcp-vendors/{vendor_slug}/account": { + "get": { "security": [ { "API Key": [] @@ -30227,39 +31335,29 @@ "Bearer Auth": [] } ], - "description": "Creates a new agent that mirrors the source agent's behaviour\nbut is owned by the calling identity. Creation is atomic — the\nclone is either fully created or no state is persisted.\n\nWhat is copied from the source:\n* `description`\n* `runtime` (model configuration)\n* `backend` (backend type + sandbox configuration)\n* `system_prompt`, `tools`, `subagents`, `skills`\n* any leftover files outside the typed fields above (e.g.\n`docs/README.md` attached via the escape `files` field)\n\nWhat the caller can override (sent in the request body):\n* `name` — defaults to `\" (Copy)\"`\n* `permissions` — defaults to the source's `identity` with\n`visibility=user` and `tenant_access_level=read`. When\nsupplied the object fully replaces the default; PATCH-style\nmerging does not apply.\n\nWhat is always reset for the clone (you cannot override these):\n* agent ID, agent version, owner, timestamps\n* stamped user context (`user_email`, `user_name`,\n`user_timezone` — taken from the calling identity + the\n`X-User-Timezone` header)\n\nWhat is never copied (start fresh on the clone):\n* `extras` (caller-defined metadata bag, e.g. icon\ncustomisations, template IDs)\n* caller-defined `configurable` bag entries\n* sharing state, tokens, triggers, and schedules\n\nCloning a built-in system template returns 422.", + "description": "Resolves OAuth token and returns the vendor's account info.", "tags": [ - "agents" + "mcp_vendors" ], - "summary": "Clone an agent", + "summary": "Get vendor account", "parameters": [ { - "description": "Source agent ID", - "name": "agent_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "description": "Echo the new agent's file tree in the response", - "name": "include_files", - "in": "query", - "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" } } } @@ -30269,7 +31367,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30279,7 +31377,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30289,7 +31387,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30299,66 +31397,138 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } - }, - "500": { - "description": "Internal Server Error", + } + }, + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}/mcp-servers": { + "get": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Returns the MCP gateways from the vendor for the workspace's configured org/project.", + "tags": [ + "mcp_vendors" + ], + "summary": "List MCP servers for a vendor", + "parameters": [ + { + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Max items to return (default 100)", + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Number of items to skip (default 0)", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" + } + } + ], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ListMcpGatewaysResponse" } } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } - } - }, - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CloneAgentRequest" + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "502": { + "description": "Bad Gateway", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/agents/{agent_id}/connections": { + "/api/v1/platform/mcp-vendors/{vendor_slug}/settings": { "get": { "security": [ { @@ -30371,15 +31541,15 @@ "Bearer Auth": [] } ], - "description": "Lists the OAuth connections for an agent.", + "description": "Returns the current vendor-specific settings.", "tags": [ - "agents" + "mcp_vendors" ], - "summary": "List an agent's connections", + "summary": "Get vendor settings", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { @@ -30393,7 +31563,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ListConnectionsResponse" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" } } } @@ -30403,7 +31573,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30413,23 +31593,105 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } + } + }, + "x-public": true + }, + "put": { + "security": [ + { + "API Key": [] }, - "502": { - "description": "Bad Gateway", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Replaces vendor settings.", + "tags": [ + "mcp_vendors" + ], + "summary": "Replace vendor settings", + "parameters": [ + { + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" + } + } + } + } }, "post": { "security": [ @@ -30443,15 +31705,15 @@ "Bearer Auth": [] } ], - "description": "Associates an existing auth token with an agent so the agent can act with that token.", + "description": "Initializes vendor settings.", "tags": [ - "agents" + "mcp_vendors" ], - "summary": "Create a connection for an agent", + "summary": "Create vendor settings", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { @@ -30465,7 +31727,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Connection" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" } } } @@ -30475,7 +31737,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30485,56 +31747,54 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.CreateConnectionRequest" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" } } } - }, - "x-hidden": true - } - }, - "/v1/fleet/agents/{agent_id}/connections/{connection_id}": { + } + }, "delete": { "security": [ { @@ -30547,24 +31807,15 @@ "Bearer Auth": [] } ], - "description": "Removes a single connection from an agent. The underlying token is not revoked.", + "description": "Removes vendor settings.", "tags": [ - "agents" + "mcp_vendors" ], - "summary": "Remove an agent's connection", + "summary": "Delete vendor settings", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Connection Id", - "name": "connection_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { @@ -30573,44 +31824,51 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + } + } + } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/agents/{agent_id}/health": { + "/api/v1/platform/mcp-vendors/{vendor_slug}/tools": { "get": { "security": [ { @@ -30623,20 +31881,37 @@ "Bearer Auth": [] } ], - "description": "Returns a per-MCP-server health summary for the agent. Each MCP\nserver referenced by the agent (its tools.json plus every\nsubagent's tools.json) is probed in parallel by issuing a single\nMCP initialize JSON-RPC call. Credentials are resolved per\n(tenant, server) using the configured authentication method.\nPer-server failures surface as\n`ok=false` with an `error_code` (auth_failed | unreachable |\ninvalid_response) and a human-readable `error` string.\n`mcp_check.ok` is `true` only when every server returns a\nhealthy response; an empty server list is treated as healthy.", + "description": "Returns the tool catalog for this vendor.", "tags": [ - "agents" + "mcp_vendors" ], - "summary": "Check agent MCP-server health", + "summary": "List tools for a vendor", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Max tools to return (default 50)", + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Number of tools to skip (default 0)", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" } } ], @@ -30646,7 +31921,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.HealthResponse" + "$ref": "#/components/schemas/mcp_vendors.ListVendorToolsResponse" } } } @@ -30656,36 +31931,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/auth-providers": { + "/api/v1/platform/oauth/authorized-apps": { "get": { "security": [ { @@ -30698,40 +31973,42 @@ "Bearer Auth": [] } ], - "description": "Lists the OAuth providers configured for your organization. Each provider defines how a third-party service (GitHub, Google, Slack, etc.) authorizes connections.", + "description": "Lists the third-party applications the authenticated user has authorized to sign in with LangSmith.", "tags": [ - "fleet auth" + "oauth" ], - "summary": "List OAuth providers", + "summary": "List authorized applications", "responses": { "200": { - "description": "OK" - }, - "401": { - "description": "Unauthorized", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/oauth.AuthorizedAppView" + } } } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - }, - "post": { + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/oauth/authorized-apps/{clientID}": { + "delete": { "security": [ { "API Key": [] @@ -30743,51 +32020,83 @@ "Bearer Auth": [] } ], - "description": "Registers an OAuth provider configuration for your organization. End users can then start authorization sessions against this provider.", + "description": "Revokes the authenticated user's authorization for an application and invalidates that application's active tokens for the user.", "tags": [ - "fleet auth" + "oauth" + ], + "summary": "Revoke an authorized application", + "parameters": [ + { + "description": "OAuth client ID", + "name": "clientID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Register an OAuth provider", "responses": { - "201": { - "description": "Created" + "204": { + "description": "No Content" }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } + } + }, + "x-public": true + } + }, + "/api/v1/platform/oauth/clients": { + "get": { + "security": [ + { + "API Key": [] }, - "502": { - "description": "Bad Gateway", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Lists the OAuth clients owned by the caller's organization.", + "tags": [ + "oauth" + ], + "summary": "List OAuth clients", + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/oauth.OAuthClientListResponse" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/fleet/auth-providers/discover": { + "x-public": true, + "parameters": [] + }, "post": { "security": [ { @@ -30800,51 +32109,58 @@ "Bearer Auth": [] } ], - "description": "Auto-discovers an OAuth provider's metadata from an MCP server URL and registers it for your organization in one step.", + "description": "Registers a new OAuth 2.0 / OIDC client owned by the caller's organization. For confidential clients the response includes a client_secret that is shown only once.", "tags": [ - "fleet auth" + "oauth" ], - "summary": "Discover and register an OAuth provider", + "summary": "Create an OAuth client", + "parameters": [], "responses": { "201": { - "description": "Created" - }, - "400": { - "description": "Bad Request", + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.CreateOAuthClientRequest" + } + } + } + } } }, - "/v1/fleet/auth-providers/{provider_id}": { + "/api/v1/platform/oauth/clients/{id}": { "get": { "security": [ { @@ -30857,15 +32173,14 @@ "Bearer Auth": [] } ], - "description": "Returns a single OAuth provider by ID.", "tags": [ - "fleet auth" + "oauth" ], - "summary": "Get an OAuth provider", + "summary": "Get an OAuth client", "parameters": [ { - "description": "Provider ID", - "name": "provider_id", + "description": "Client UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -30875,14 +32190,11 @@ ], "responses": { "200": { - "description": "OK" - }, - "401": { - "description": "Unauthorized", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/oauth.OAuthClientView" } } } @@ -30892,23 +32204,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "x-hidden": true + "x-public": true }, "delete": { "security": [ @@ -30922,15 +32224,14 @@ "Bearer Auth": [] } ], - "description": "Deletes an OAuth provider. Tokens previously issued for this provider are revoked.", "tags": [ - "fleet auth" + "oauth" ], - "summary": "Delete an OAuth provider", + "summary": "Delete an OAuth client", "parameters": [ { - "description": "Provider ID", - "name": "provider_id", + "description": "Client UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -30942,38 +32243,18 @@ "204": { "description": "No Content" }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } - } - } - }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "x-hidden": true + "x-public": true }, "patch": { "security": [ @@ -30987,15 +32268,14 @@ "Bearer Auth": [] } ], - "description": "Updates an OAuth provider's configuration. Sent fields replace the stored values; absent fields are left unchanged.", "tags": [ - "fleet auth" + "oauth" ], - "summary": "Update an OAuth provider", + "summary": "Update an OAuth client", "parameters": [ { - "description": "Provider ID", - "name": "provider_id", + "description": "Client UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -31005,24 +32285,21 @@ ], "responses": { "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/oauth.OAuthClientView" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } @@ -31032,26 +32309,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.UpdateOAuthClientRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/auth-scopes/{scope_slug}/credentials": { + "/api/v1/platform/oauth/clients/{id}/rotate-secret": { "post": { "security": [ { @@ -31064,15 +32341,15 @@ "Bearer Auth": [] } ], - "description": "Registers a credential (e.g. a static bearer token) under an auth scope and binds it to one or more targets such as MCP servers. The response never includes the secret token.", + "description": "Generates a new client secret for a confidential client, invalidating the previous one. The new secret is shown only once.", "tags": [ - "fleet credentials" + "oauth" ], - "summary": "Create a credential under an auth scope", + "summary": "Rotate an OAuth client secret", "parameters": [ { - "description": "Auth scope slug (currently only \\", - "name": "scope_slug", + "description": "Client UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -31081,12 +32358,12 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.response" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } @@ -31096,17 +32373,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } @@ -31116,380 +32383,302 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/auth-sessions": { + "/api/v1/platform/ops/backfills/restart": { "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Initiates an OAuth flow for the caller. If the user is already authorized, returns a completed session that references an existing token. Otherwise, returns a pending session containing a verification URL the user must visit to complete authorization.", + "description": "Deletes the backfill job record, causing the backfill to restart from the beginning on the next cron tick. Requires instance admin access.", "tags": [ - "fleet auth" + "backfills" ], - "summary": "Start an authorization session", + "summary": "Restart a backfill job", "parameters": [], "responses": { "200": { - "description": "Existing token reused; no new session created.", + "description": "Backfill restarted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "201": { - "description": "New pending session created; visit verification_url to complete.", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Backfill not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionRequest" + "$ref": "#/components/schemas/backfills.restartBackfillRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/auth-sessions/{session_id}": { + "/api/v1/platform/orgs/current/access-policies": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns the current status of an in-flight authorization session. The optional `wait_seconds` query param (1-25, default 1) keeps the request open up to that many seconds, returning early if the session completes. Poll until status is COMPLETED.", + "description": "Lists all access policies for the organization.", "tags": [ - "fleet auth" - ], - "summary": "Get an authorization session", - "parameters": [ - { - "description": "Authorization session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Long-poll window in seconds (1-25, default 1)", - "name": "wait_seconds", - "in": "query", - "schema": { - "type": "integer", - "title": "Wait Seconds" - } - } + "access_policies" ], + "summary": "List access policies", "responses": { "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.GetSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", + "description": "List of access policies", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/authz_internal.ListAccessPoliciesResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/auth-tokens": { - "get": { + "x-public": true, + "parameters": [] + }, + "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Lists the active OAuth tokens belonging to the caller. Optionally filter by provider or agent. Accepts page_size and cursor for forward compatibility; pagination is not yet enforced and all matching tokens are returned in one page.", + "description": "Creates a new access policy.", "tags": [ - "fleet auth" - ], - "summary": "List your connection tokens", - "parameters": [ - { - "description": "Filter by provider ID", - "name": "provider_id", - "in": "query", - "schema": { - "type": "string", - "title": "Provider Id" - } - }, - { - "description": "Filter to default (true) or secondary (false) tokens. Omit to return both.", - "name": "is_default", - "in": "query", - "schema": { - "type": "boolean", - "title": "Is Default" - } - }, - { - "description": "Items per page (1-100, default 20). Currently advisory; all matching tokens are returned.", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor. Currently accepted but ignored.", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" - } - } + "access_policies" ], + "summary": "Create an access policy", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Access policy created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.ListTokensResponse" + "$ref": "#/components/schemas/authz_internal.AccessPolicyCreateResponse" } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Role or access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/auth-tokens/{token_id}": { - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Revokes a single connection token by ID. The user is disconnected from the corresponding service.", - "tags": [ - "fleet auth" - ], - "summary": "Revoke a connection token", - "parameters": [ - { - "description": "Token ID", - "name": "token_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - }, - "patch": { + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.CreateAccessPolicyPayload" + } + } + } + } + } + }, + "/api/v1/platform/orgs/current/access-policies/roles/{role_id}/access-policies": { + "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Updates a token's metadata such as label or default flag.", + "description": "Attaches one or more access policies to a specific role. The request body must contain an array of access policy IDs.", "tags": [ - "fleet auth" + "access_policies" ], - "summary": "Update a connection token", + "summary": "Attach access policies to a role", "parameters": [ { - "description": "Token ID", - "name": "token_id", + "description": "Role ID", + "name": "role_id", "in": "path", "required": true, "schema": { @@ -31498,127 +32687,129 @@ } ], "responses": { - "200": { - "description": "OK" + "204": { + "description": "Access policies attached successfully" }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "Role or access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "422": { + "description": "Semantic validation failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" + } + } + } + } } }, - "/v1/fleet/integrations": { + "/api/v1/platform/orgs/current/access-policies/{access_policy_id}": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns integrations available to the workspace.", + "description": "Gets a specific access policy by ID.", "tags": [ - "fleet integrations" + "access_policies" ], - "summary": "List integrations", + "summary": "Get an access policy", "parameters": [ { - "description": "Filter by source (e.g. langchain, custom)", - "name": "source", - "in": "query", - "schema": { - "type": "string", - "title": "Source" - } - }, - { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor", - "name": "cursor", - "in": "query", + "description": "Access Policy ID", + "name": "access_policy_id", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Cursor" + "type": "string" } } ], "responses": { "200": { - "description": "OK", + "description": "Access policy details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ListResponse" + "$ref": "#/components/schemas/authz_internal.AccessPolicy" } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -31628,108 +32819,65 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Registers a new custom integration. Type is forced to CUSTOM.", - "tags": [ - "fleet integrations" - ], - "summary": "Create a custom integration", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.CreateRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/integrations/{id}": { - "get": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], + "description": "Deletes a specific access policy by ID.", "tags": [ - "fleet integrations" + "access_policies" ], - "summary": "Get an integration", + "summary": "Delete an access policy", "parameters": [ { - "description": "Integration id", - "name": "id", + "description": "Access Policy ID", + "name": "access_policy_id", "in": "path", "required": true, "schema": { @@ -31738,70 +32886,73 @@ } ], "responses": { - "200": { - "description": "OK", + "204": { + "description": "Access policy deleted successfully" + }, + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true + "x-public": true }, - "delete": { + "patch": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Idempotent. Returns 204 whether or not the integration existed.", + "description": "Updates one or more fields on an access policy.", "tags": [ - "fleet integrations" + "access_policies" ], - "summary": "Delete a custom integration", + "summary": "Update an access policy", "parameters": [ { - "description": "Integration id", - "name": "id", + "description": "Access Policy ID", + "name": "access_policy_id", "in": "path", "required": true, "schema": { @@ -31810,171 +32961,128 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "Updated access policy", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/authz_internal.AccessPolicy" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "x-hidden": true - }, - "patch": { - "security": [ - { - "API Key": [] }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates mutable fields. URL is immutable.", - "tags": [ - "fleet integrations" - ], - "summary": "Update a custom integration", - "parameters": [ - { - "description": "Integration id", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.UpdateRequest" + "$ref": "#/components/schemas/authz_internal.UpdateAccessPolicyPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/integrations/{id}/auth-methods": { - "put": { + "/api/v1/platform/orgs/current/info": { + "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Replaces the integration's full list of supported auth methods.", + "description": "Returns organization info for the authenticated user's current organization.", "tags": [ - "fleet integrations" - ], - "summary": "Replace integration auth methods", - "parameters": [ - { - "description": "Integration id", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "Organizations" ], + "summary": "Get current organization info", "responses": { "200": { - "description": "OK", + "description": "Organization info", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/orgs.OrganizationInfo" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid organization ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -31984,93 +33092,201 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ReplaceAuthMethodsRequest" - } - } - } - }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/fleet/mcp-servers": { + "/api/v1/platform/orgs/current/members": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns MCP servers visible to the caller after ABAC filtering. Service-key callers may pass X-Ls-User-Id to resolve per-user OAuth providers.", + "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", "tags": [ - "fleet mcp" + "orgs" ], - "summary": "List MCP servers", + "summary": "List org members with workspace roles", "parameters": [ { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", + "description": "Page size (default 50, max 500)", + "name": "limit", + "in": "query", "schema": { - "type": "string" + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Page offset (default 0)", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Filter: true = only active members; false = only pending members", + "name": "active_is", + "in": "query", + "schema": { + "type": "boolean", + "title": "Active Is" + } + }, + { + "description": "Filter: true = only pending members; false = only active members", + "name": "pending_is", + "in": "query", + "schema": { + "type": "boolean", + "title": "Pending Is" + } + }, + { + "description": "Glob filter on display name; use * as wildcard (repeatable, matches any)", + "name": "name_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Name Like" + } + }, + { + "description": "Glob filter on email; use * as wildcard (repeatable, matches any)", + "name": "email_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Email Like" + } + }, + { + "description": "Glob filter on workspace name or ID; use * as wildcard (repeatable, matches any)", + "name": "workspace_name_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Workspace Name Like" + } + }, + { + "description": "Glob filter on organization role name; use * as wildcard (repeatable, matches any)", + "name": "organization_role_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Organization Role Like" + } + }, + { + "description": "Glob filter on workspace role name; use * as wildcard (repeatable, matches any)", + "name": "workspace_role_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Workspace Role Like" } } ], "responses": { "200": { - "description": "OK", + "description": "Org members", + "headers": { + "X-Members-Anonymity-Restricted": { + "description": "Set to 'true' when the response was restricted by the organization's anonymity setting.", + "schema": { + "type": "string" + } + }, + "X-Members-List-All-Workspaces": { + "description": "true if caller has organization:manage", + "schema": { + "type": "string" + } + }, + "X-Pagination-Total": { + "description": "Total number of matching members", + "schema": { + "type": "string" + } + } + }, "content": { "application/json": { "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/orgs.OrgMemberEnriched" } } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -32080,288 +33296,276 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true - }, + "x-public": true + } + }, + "/api/v1/platform/orgs/current/roles/{role_id}/access-policies": { "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "description": "Attaches one or more access policies to a specific role. The request body must contain an array of access policy IDs.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Create MCP server", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } + "summary": "Attach access policies to a role", + "parameters": [ + { + "description": "Role ID", + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } + } + ], + "responses": { + "204": { + "description": "Access policies attached successfully" }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Role or access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" + "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" } } } - }, - "x-hidden": true - } - }, - "/v1/fleet/mcp-servers/{mcp_server_id}": { - "get": { + } + }, + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "description": "Detaches one or more access policies from a specific role.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Get MCP server", + "summary": "Detach access policies from a role", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Role ID", + "name": "role_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Access policy IDs to detach", + "name": "access_policy_ids", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Access Policy Ids" + } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } + "204": { + "description": "Access policies detached successfully" }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Role not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - }, - "delete": { + "x-public": true + } + }, + "/api/v1/platform/orgs/current/scim/tokens": { + "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "description": "List all SCIM bearer tokens for the current organization. The full token values are not returned.", "tags": [ - "fleet mcp" - ], - "summary": "Delete MCP server", - "parameters": [ - { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "SCIM Tokens" ], + "summary": "List SCIM tokens", "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "List of SCIM tokens", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "array", + "items": { + "$ref": "#/components/schemas/scim.ScimTokenResponse" + } } } } @@ -32371,99 +33575,70 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "404": { - "description": "Not Found", + "description": "Forbidden - requires OrganizationRead permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "parameters": [] }, - "patch": { + "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "description": "Create a new SCIM bearer token for the current organization. The full token value is only returned once upon creation.", "tags": [ - "fleet mcp" - ], - "summary": "Update MCP server", - "parameters": [ - { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "SCIM Tokens" ], + "summary": "Create a SCIM token", + "parameters": [], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } - }, - "400": { - "description": "Bad Request", + "201": { + "description": "Created SCIM token with full token value", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ScimTokenSensitiveResponse" } } } @@ -32473,87 +33648,77 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "404": { - "description": "Not Found", + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" + "$ref": "#/components/schemas/scim.CreateScimTokenPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/mcp-servers/{mcp_server_id}/oauth-provider": { - "post": { + "/api/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { + "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Discovers and registers an OAuth provider for a user against an MCP server configured with per-user dynamic client mode. Idempotent when a mapping already exists.", + "description": "Retrieve a specific SCIM token by ID for the current organization. The full token value is not returned.", "tags": [ - "fleet mcp" + "SCIM Tokens" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "Get a SCIM token", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "SCIM Token ID", + "name": "scim_token_id", "in": "path", "required": true, "schema": { @@ -32563,246 +33728,188 @@ ], "responses": { "200": { - "description": "OK", + "description": "SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden - requires OrganizationRead permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "404": { - "description": "Not Found", + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/mcp/tools": { - "get": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns tools from a remote MCP server. Serves cached results when fresh, otherwise fetches from the remote server and caches the response.", + "description": "Delete a SCIM bearer token from the current organization.", "tags": [ - "fleet mcp" + "SCIM Tokens" ], - "summary": "List MCP tools", + "summary": "Delete a SCIM token", "parameters": [ { - "description": "MCP server URL to fetch tools from", - "name": "url", - "in": "query", + "description": "SCIM Token ID", + "name": "scim_token_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Url" - } - }, - { - "description": "OAuth provider ID for token-based auth", - "name": "oauth_provider_id", - "in": "query", - "schema": { - "type": "string", - "title": "Oauth Provider Id" - } - }, - { - "description": "Skip cache and fetch fresh tools", - "name": "force_refresh", - "in": "query", - "schema": { - "type": "boolean", - "title": "Force Refresh" - } - }, - { - "description": "User ID override (service-key callers)", - "name": "ls_user_id", - "in": "query", - "schema": { - "type": "string", - "title": "Ls User Id" + "type": "string" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcptools.ListToolsResponse" - } - } - } + "204": { + "description": "No content - token deleted successfully" }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/models": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns models available for Fleet agent configuration.", + "description": "Update the description of an existing SCIM token for the current organization.", "tags": [ - "fleet" + "SCIM Tokens" ], - "summary": "List Fleet models", + "summary": "Update a SCIM token", "parameters": [ { - "description": "Include the served Fleet default model group.", - "name": "include_served_default", - "in": "query", - "schema": { - "type": "boolean", - "title": "Include Served Default" - } - }, - { - "description": "Include optional OSS model group.", - "name": "include_oss_models", - "in": "query", + "description": "SCIM Token ID", + "name": "scim_token_id", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "title": "Include Oss Models" + "type": "string" } } ], "responses": { "200": { - "description": "OK", + "description": "Updated SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ListModelsResponse" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } @@ -32812,38 +33919,68 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/skills": { - "get": { - "security": [ + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" + } + } + } + } + } + }, + "/api/v1/platform/sessions/{sessionID}/agent-versions": { + "get": { + "security": [ { "API Key": [] }, @@ -32854,57 +33991,45 @@ "Bearer Auth": [] } ], - "description": "Returns the skills in the caller's workspace, paginated.", + "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", "tags": [ - "skills" + "sessions" ], - "summary": "List skills", + "summary": "List agent versions for a project", "parameters": [ { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" - } - }, - { - "description": "Include each skill's file contents (default true). When false, returns a lightweight list: file contents and commit_id are omitted and name falls back to the repo handle. Fetch a skill directly for full metadata.", - "name": "include_files", - "in": "query", + "description": "Tracing project (session) UUID", + "name": "sessionID", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string" } } ], "responses": { "200": { - "description": "OK", + "description": "Agent versions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ListSkillsResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" + } } } } }, "400": { - "description": "Bad Request", + "description": "Invalid session ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -32914,35 +34039,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true - }, - "post": { + "x-public": true + } + }, + "/api/v1/platform/sessions/{session_id}/issues-agent": { + "get": { "security": [ { "API Key": [] @@ -32954,19 +34064,29 @@ "Bearer Auth": [] } ], - "description": "Creates a workspace skill with the supplied file tree.\nSkills support file entries only — linked agent/skill entries\nare rejected.\n\nCleanup is best-effort: if the initial commit fails the empty\nrepo is deleted, but a transport failure during rollback can\nleave an orphan repo with no commits. Subsequent creates with\nthe same name will then 409; delete the orphan and retry.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns the issues agent config attached to the given tracer session.", "tags": [ - "skills" + "issues-agent" + ], + "summary": "[Beta] Get the issues agent config for a session", + "parameters": [ + { + "description": "Tracer session ID (UUID)", + "name": "session_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create a skill", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/agent.IssuesAgent" } } } @@ -32976,37 +34096,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33016,27 +34136,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.CreateSkillRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/skills/{skillID}": { - "get": { + "x-public": true + }, + "post": { "security": [ { "API Key": [] @@ -33048,15 +34156,15 @@ "Bearer Auth": [] } ], - "description": "Returns the specified skill, including its full file tree.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nConfigures the issues agent for the given tracer session and enqueues\nthe initial scan. Fails if an agent already exists for the session.", "tags": [ - "skills" + "issues-agent" ], - "summary": "Get a skill", + "summary": "[Beta] Create the issues agent for a session", "parameters": [ { - "description": "Skill ID", - "name": "skillID", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -33065,12 +34173,22 @@ } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.IssuesAgent" + } + } + } + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33080,7 +34198,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33090,17 +34208,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33110,13 +34228,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.CreateIssuesAgentRequest" + } + } + } + } }, "delete": { "security": [ @@ -33130,15 +34258,15 @@ "Bearer Auth": [] } ], - "description": "Deletes the skill and all of its files. Idempotent: deleting an\nalready-deleted skill returns 204.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nRemoves the agent config, its issues, and the agent-overview hub repo.", "tags": [ - "skills" + "issues-agent" ], - "summary": "Delete a skill", + "summary": "[Beta] Delete the issues agent for a session", "parameters": [ { - "description": "Skill ID", - "name": "skillID", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -33150,12 +34278,22 @@ "204": { "description": "No Content" }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.ErrorResponse" + } + } + } + }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33165,7 +34303,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33175,13 +34323,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true }, "patch": { "security": [ @@ -33195,15 +34343,15 @@ "Bearer Auth": [] } ], - "description": "Applies a sparse patch to the skill's file tree. Each entry in\n`files` is keyed by relative path: a non-null value upserts\nthat file, an explicit null deletes it, and absent paths are\nleft unchanged. SKILL.md cannot be deleted via this endpoint —\nuse DELETE on the skill instead. Skills support file entries\nonly — linked agent/skill entries are rejected. The commit is\natomic: on validation failure no changes are applied.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nPatches the agent config. All side effects (clearing fix fields when\nthe GitHub repo changes, setting agent_overview_repo_id) happen in a\nsingle CRUD transaction. Omitted fields are left unchanged.", "tags": [ - "skills" + "issues-agent" ], - "summary": "Update a skill", + "summary": "[Beta] Update the issues agent config for a session", "parameters": [ { - "description": "Skill ID", - "name": "skillID", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -33217,7 +34365,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/agent.IssuesAgent" } } } @@ -33227,37 +34375,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33267,27 +34415,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.UpdateSkillRequest" + "$ref": "#/components/schemas/agent.UpdateIssuesAgentRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/threads": { - "get": { + "/api/v1/platform/sessions/{session_id}/issues-agent/overview": { + "patch": { "security": [ { "API Key": [] @@ -33299,81 +34447,19 @@ "Bearer Auth": [] } ], - "description": "Returns one page of recent non-test threads for a single\nagent, ordered by latest conversation activity. Designed\nfor the Agent Builder thread sidebar; returns a slim summary\nper thread without full LangGraph thread state.\n\nSort order is fixed to recency descending — `state_updated_at`\ndesc nulls last, then `updated_at` desc nulls last, then\n`created_at` desc. By default only non-test threads are\nreturned (`test_run=false`); pass `test_run=true` to list\ntest-run threads instead. Pagination is cursor-based; pass\n`next_cursor` from the previous response to fetch the next page.\n\nWhen `requires_attention=true`, the endpoint fans out to the\nthree buckets that need user action — `interrupted`,\n`error`, and idle threads with `metadata.read_status=false` —\nand merges them into a single recency-ordered page. It\ncannot be combined with `status`.\n\nNote: `is_pinned` is supported as a temporary filter while\npinning lives in metadata; it will be removed once pinning\nbecomes a first-class field.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nSaves the issues agent overview content server-side, creating or updating\nthe backing private Prompt Hub repo and linking it to the issues agent config.", "tags": [ - "fleet threads" + "issues-agent" ], - "summary": "List threads for an agent", + "summary": "[Beta] Save the agent overview for a session", "parameters": [ { - "description": "Agent UUID. Required.", - "name": "agent_id", - "in": "query", + "description": "Tracer session ID (UUID)", + "name": "session_id", + "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid", - "title": "Agent Id" - } - }, - { - "description": "Items per page (1-20). Default 20.", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor returned by the previous list call.", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" - } - }, - { - "description": "Filter to a single thread status.", - "name": "status", - "in": "query", - "schema": { - "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ], - "title": "Status" - } - }, - { - "description": "Filter by pinned state. Temporary; will be removed once pinning is first-class.", - "name": "is_pinned", - "in": "query", - "schema": { - "type": "boolean", - "title": "Is Pinned" - } - }, - { - "description": "Return test-run threads instead of non-test threads. Default false.", - "name": "test_run", - "in": "query", - "schema": { - "type": "boolean", - "title": "Test Run" - } - }, - { - "description": "Return only threads that need user action (interrupted, errored, or unread idle). Cannot be combined with status.", - "name": "requires_attention", - "in": "query", - "schema": { - "type": "boolean", - "title": "Requires Attention" + "type": "string" } } ], @@ -33383,7 +34469,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ListThreadsResponse" + "$ref": "#/components/schemas/agent.SaveOverviewResponse" } } } @@ -33393,7 +34479,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33403,7 +34489,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33413,24 +34499,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "x-hidden": true - }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.SaveOverviewRequest" + } + } + } + } + } + }, + "/api/v1/platform/sessions/{session_id}/issues-agent/webhooks/{id}/roll-secret": { "post": { "security": [ { @@ -33443,19 +34551,38 @@ "Bearer Auth": [] } ], - "description": "Create a thread, optionally bound to an agent. Subsequent runs are started on it via `POST /v1/fleet/threads/{thread_id}/runs/stream`.", + "description": "Replaces the signing secret for the given generic URL issues agent webhook. Slack\nand Jira destinations do not have signing secrets. The new secret is returned once in this\nresponse; future deliveries use it immediately. URL and header values are redacted;\nonly a safe URL display and header names are returned.", "tags": [ - "fleet threads" + "issues-agent" + ], + "summary": "Roll an issues agent webhook signing secret", + "parameters": [ + { + "description": "Tracer session ID (UUID)", + "name": "session_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Webhook ID (UUID)", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create a thread", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.Thread" + "$ref": "#/components/schemas/tracer_session_issues_agent_webhooks.IssuesAgentWebhook" } } } @@ -33465,7 +34592,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -33475,7 +34605,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -33485,47 +34618,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CreateThreadRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/threads/bulk-modify": { - "post": { + "/api/v1/platform/sessions/{session_id}/issues/views": { + "get": { "security": [ { "API Key": [] @@ -33537,19 +34669,29 @@ "Bearer Auth": [] } ], - "description": "Applies one thread update payload to multiple threads in a single call. `data` uses the same shape as the single-thread update payload. The request may include at most 50 thread IDs. Returns one result per thread in the same order as `thread_ids`; the overall response is 200 even when individual threads fail.", + "description": "**Beta:** Returns the issues in this session that the current\nuser has opened, with timestamps. Used by the UI to derive\nthe per-row \"unread\" indicator and the Engine tab badge.", "tags": [ - "fleet threads" + "issues" + ], + "summary": "[Beta] List viewed issues for a session", + "parameters": [ + { + "description": "Session ID (UUID)", + "name": "session_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Bulk update threads", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsResponse" + "$ref": "#/components/schemas/issues.ListViewsResponse" } } } @@ -33559,7 +34701,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -33569,7 +34711,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -33579,36 +34721,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/threads/count": { + "/api/v1/platform/tools": { "get": { "security": [ { @@ -33621,20 +34753,37 @@ "Bearer Auth": [] } ], - "description": "Returns the caller's inbox `attention_count`: the number of threads needing user action — unread idle threads (`metadata.read_status=false`) plus interrupted plus errored. Scoped to deep-agent threads (`graph_id=deep_agent`); test-run threads (`options.test_run=true`) are always excluded.", + "description": "Returns a paginated list of tools in the workspace.", "tags": [ - "internal" + "tools" ], - "summary": "Inbox attention count", + "summary": "List tools", "parameters": [ { - "description": "Optional agent UUID to scope all buckets to a single agent", - "name": "agent_id", + "description": "Maximum number of tools to return", + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Number of tools to skip", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Search query to filter tools by name or description", + "name": "query", "in": "query", "schema": { "type": "string", - "format": "uuid", - "title": "Agent Id" + "title": "Query" } } ], @@ -33644,7 +34793,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.CountResponse" + "$ref": "#/components/schemas/tools.ListToolsResponse" } } } @@ -33654,7 +34803,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33664,7 +34813,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33674,26 +34823,24 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/runs": { + "x-public": true + }, "post": { "security": [ { @@ -33706,29 +34853,19 @@ "Bearer Auth": [] } ], - "description": "Creates a thread bound to `agent_id` and starts a run on it in one call. Returns the upstream run record (pending/running, not yet complete). Run kwargs are passed through; thread-creation flags go in the optional `thread` envelope. The new thread is rolled back if the run fails to start.", + "description": "Creates a new tool in the workspace.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Create a thread and start a run", + "summary": "Create a tool", "parameters": [], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, "201": { "description": "Created", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -33738,7 +34875,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33748,7 +34885,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33758,17 +34895,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33778,47 +34905,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.CreateThreadAndRunRequest" + "$ref": "#/components/schemas/tools.CreateToolPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/threads/search": { - "post": { + "/api/v1/platform/tools/id/{id}": { + "get": { "security": [ { "API Key": [] @@ -33830,21 +34947,29 @@ "Bearer Auth": [] } ], - "description": "Searches threads. Request and response bodies are proxied unchanged to the upstream agent runtime.", + "description": "Returns a tool identified by its UUID.", "tags": [ - "fleet threads" + "tools" + ], + "summary": "Get a tool by ID", + "parameters": [ + { + "description": "Tool UUID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Search threads", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object" - } + "$ref": "#/components/schemas/tools.Tool" } } } @@ -33854,7 +34979,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33864,7 +34989,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33874,38 +34999,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}": { - "get": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -33917,15 +35039,15 @@ "Bearer Auth": [] } ], - "description": "Returns thread metadata, status, and runtime state for the given thread id.", + "description": "Deletes a tool identified by its UUID.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Get thread", + "summary": "Delete a tool by ID", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tool UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -33934,12 +35056,15 @@ } ], "responses": { - "200": { - "description": "OK", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ThreadDetail" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33949,7 +35074,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33959,7 +35084,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33969,25 +35094,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true }, - "delete": { + "patch": { "security": [ { "API Key": [] @@ -33999,15 +35124,15 @@ "Bearer Auth": [] } ], - "description": "Deletes a thread and all of its runs. Idempotent: deleting a thread that does not exist returns 204.", + "description": "Updates an existing tool identified by its UUID.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Delete thread", + "summary": "Update a tool by ID", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tool UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -34016,15 +35141,22 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.Tool" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34034,7 +35166,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34044,25 +35176,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.UpdateToolPayload" + } + } + } + } + } + }, + "/api/v1/platform/tools/{handle}": { + "get": { "security": [ { "API Key": [] @@ -34074,15 +35228,15 @@ "Bearer Auth": [] } ], - "description": "Updates thread fields such as title and metadata. Omitted fields are unchanged; null values clear fields where supported.", + "description": "Returns a tool identified by its handle.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Update a thread", + "summary": "Get a tool by handle", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tool handle", + "name": "handle", "in": "path", "required": true, "schema": { @@ -34096,7 +35250,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadResponse" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -34106,7 +35260,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34116,7 +35270,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34126,7 +35280,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34136,47 +35290,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/resolve-interrupt": { - "post": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -34188,15 +35320,15 @@ "Bearer Auth": [] } ], - "description": "Completes a human-interrupt pause on the thread without sending new input, allowing execution to continue or finish. On success the response has no body.", + "description": "Deletes a tool identified by its handle.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Resolve an interrupted thread", + "summary": "Delete a tool by handle", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tool handle", + "name": "handle", "in": "path", "required": true, "schema": { @@ -34213,7 +35345,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34223,7 +35355,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34233,7 +35365,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34243,47 +35375,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/runs": { - "post": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -34295,15 +35405,15 @@ "Bearer Auth": [] } ], - "description": "Starts a run on the thread. The request body must include `assistant_id` (the assistant to execute). Include run inputs and options in the body as supported by this API.", + "description": "Updates an existing tool identified by its handle.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Create thread run", + "summary": "Update a tool by handle", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tool handle", + "name": "handle", "in": "path", "required": true, "schema": { @@ -34317,17 +35427,7 @@ "content": { "application/json": { "schema": { - "type": "object" - } - } - } - }, - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "type": "object" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -34337,7 +35437,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34347,7 +35447,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34357,7 +35457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34367,47 +35467,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.UpdateToolPayload" + } + } + } + } } }, - "/v1/fleet/threads/{thread_id}/runs/stream": { + "/api/v2/datasets/public/{share_token}/experiment-runs": { "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Start a run on a thread and stream its output as Server-Sent Events. The connection stays open until the run completes; the client is responsible for closing it.", + "description": "Public share-token variant of POST /v2/datasets/{dataset_id}/experiment-runs.\nReturns a paginated page of dataset examples with runs from the requested experiments.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet threads" + "datasets" ], - "summary": "Stream a thread run", + "summary": "Fetch shared experiment runs for dataset examples", "parameters": [ { - "description": "Thread ID", - "name": "thread_id", + "description": "Dataset share token", + "name": "share_token", "in": "path", "required": true, "schema": { @@ -34417,11 +35516,11 @@ ], "responses": { "200": { - "description": "SSE event stream", + "description": "OK", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsResponseBody" } } } @@ -34431,37 +35530,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -34471,73 +35570,80 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsRequestBody" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/trigger-templates": { - "get": { + "/api/v2/datasets/{dataset_id}/experiment-runs": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Lists trigger templates with their config schema and auth requirements (paginated).", + "description": "Returns a paginated page of dataset examples with runs from the requested experiments.\nResponse uses the canonical `{items, next_cursor}` envelope.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet trigger-templates" + "datasets" ], - "summary": "List trigger templates", + "summary": "Fetch experiment runs for dataset examples", "parameters": [ { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor returned by a prior response", - "name": "cursor", - "in": "query", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Cursor" + "type": "string" } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsResponseBody" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -34547,7 +35653,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -34557,131 +35683,118 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsRequestBody" + } + } + } + } } }, - "/v1/fleet/trigger-templates/{template_id}": { + "/api/v2/public/threads/{share_token}": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a single trigger template by id.", + "description": "Returns the thread and project a share token is scoped to, plus the project's conversations config.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet trigger-templates" + "threads" ], - "summary": "Get trigger template", + "summary": "Get a public shared thread's manifest", "parameters": [ { - "description": "Trigger template id", - "name": "template_id", + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "OK" - }, - "401": { - "description": "Unauthorized", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/threadshare.ThreadManifest" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token or shared thread not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/triggers": { + "/api/v2/public/threads/{share_token}/messages": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Lists triggers for the calling user (paginated). Filter by agent_id and/or template_id.", + "description": "Streams the thread's conversation as server-sent events. SSE only.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet triggers" + "threads" ], - "summary": "List triggers", + "summary": "Stream messages for a public shared thread", "parameters": [ { - "description": "Filter by agent id", - "name": "agent_id", - "in": "query", + "description": "must be text/event-stream", + "name": "Accept", + "in": "header", + "required": true, "schema": { - "type": "string", - "title": "Agent Id" + "type": "string" } }, { - "description": "Filter by trigger template id", - "name": "template_id", - "in": "query", + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, "schema": { "type": "string", - "title": "Template Id" + "format": "uuid" } }, { - "description": "Items per page (default 20, max 100)", + "description": "messages page size", "name": "page_size", "in": "query", "schema": { @@ -34690,22 +35803,32 @@ } }, { - "description": "Opaque pagination cursor returned by a prior response", + "description": "opaque cursor from a previous page", "name": "cursor", "in": "query", "schema": { "type": "string", "title": "Cursor" } + }, + { + "description": "anchor the page on this trace", + "name": "trace_id", + "in": "query", + "schema": { + "type": "string", + "format": "uuid", + "title": "Trace Id" + } } ], "responses": { "200": { - "description": "OK", + "description": "text/event-stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/triggers.TriggerListResponse" + "type": "string" } } } @@ -34715,69 +35838,107 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "share token or shared thread not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - }, - "post": { - "security": [ + "x-public": true + } + }, + "/api/v2/public/threads/{share_token}/runs/{run_id}": { + "get": { + "description": "Returns a single run, including full inputs and outputs, provided its trace root belongs to the shared thread.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", + "tags": [ + "threads" + ], + "summary": "Get one run in a public shared thread", + "parameters": [ { - "API Key": [] + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } }, { - "Tenant ID": [] + "description": "Run UUID", + "name": "run_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } }, { - "Bearer Auth": [] + "description": "Run start_time coordinate (RFC3339)", + "name": "start_time", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "date-time", + "title": "Start Time" + } + }, + { + "description": "repeatable public run fields to include", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Selects" + } } ], - "description": "Creates a trigger for an agent and returns the created trigger instance.", - "tags": [ - "fleet triggers" - ], - "summary": "Create trigger", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/query.RunResponse" } } } @@ -34787,258 +35948,299 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token, run, or shared thread not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.CreateTriggerRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/triggers/{trigger_id}": { + "/api/v2/public/threads/{share_token}/stats": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a single trigger by id for the calling user.", + "description": "Returns aggregate stats for the thread identified by the share token.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet triggers" + "threads" ], - "summary": "Get trigger", + "summary": "Get stats for a public shared thread", "parameters": [ { - "description": "Trigger id (UUID)", - "name": "trigger_id", - "in": "path", - "required": true, + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.Trigger" - } - } + }, + { + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } }, - "400": { - "description": "Bad Request", + { + "description": "repeatable public thread stats fields to include", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Selects" + } + } + ], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token or shared thread not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes a trigger by id for the calling user. The operation is idempotent - deleting a trigger that does not exist (or that belongs to another user) still returns 204.", + "x-public": true + } + }, + "/api/v2/public/threads/{share_token}/traces": { + "get": { + "description": "Returns a page of root traces belonging to the thread identified by the share token. The share token supplies the tenant, project, and thread scope.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet triggers" + "threads" ], - "summary": "Delete trigger", + "summary": "List traces in a public shared thread", "parameters": [ { - "description": "Trigger id (UUID)", - "name": "trigger_id", + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "description": "repeatable public thread trace fields to include", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Selects" + } + }, + { + "description": "opaque cursor from a previous page", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" + } + }, + { + "description": "page size (default 20, max 100)", + "name": "page_size", + "in": "query", + "schema": { + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "ASC or DESC", + "name": "order", + "in": "query", + "schema": { + "type": "string", + "title": "Order" } } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/threads.QueryThreadTracesResponseBody" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "share token or shared thread not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates a trigger by id for the calling user. agent_id is not mutable.", + "x-public": true + } + }, + "/api/v2/public/threads/{share_token}/traces/{trace_id}/runs": { + "get": { + "description": "Returns every run in the given trace, provided that trace's root belongs to the shared thread.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet triggers" + "threads" ], - "summary": "Update trigger", + "summary": "List runs of one trace in a public shared thread", "parameters": [ { - "description": "Trigger id (UUID)", - "name": "trigger_id", + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "description": "Trace root UUID", + "name": "trace_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "description": "repeatable public run fields to include", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], @@ -35048,7 +36250,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/threads.PublicSharedThreadTraceRunsResponseBody" } } } @@ -35058,308 +36260,333 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token, trace, or shared thread not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.UpdateTriggerRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/alerts/{session_id}": { - "post": { - "security": [ + "/api/v2/public/{share_token}/run/{run_id}": { + "get": { + "description": "Returns one run within the trace identified by the share token. The request supplies only the run ID and that run's exact start_time coordinate.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", + "tags": [ + "runs" + ], + "summary": "Get a public shared trace run", + "parameters": [ { - "API Key": [] + "description": "application/json", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } }, { - "Tenant ID": [] + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } }, { - "Bearer Auth": [] - } - ], - "description": "Creates a new alert rule. The request body must be a JSON-encoded alert rule object that follows the CreateAlertRuleRequest schema.", - "tags": [ - "alert_rules" - ], - "summary": "Create an alert rule", - "parameters": [ - { - "description": "Session ID", - "name": "session_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "description": "Run start_time coordinate (RFC3339)", + "name": "start_time", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "date-time", + "title": "Start Time" + } + }, + { + "description": "repeatable public run fields to include", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], "responses": { - "201": { - "description": "Alert rule created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.AlertRuleResponse" + "$ref": "#/components/schemas/query.RunResponse" } } } }, "400": { - "description": "Bad request", + "description": "bad request (missing or malformed start_time)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token or run not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "429": { - "description": "Alert Rule Limit Reached", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal server error", + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.CreateAlertRuleRequest" + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } } } } - } + }, + "x-public": true } }, - "/v1/platform/alerts/{session_id}/test": { + "/api/v2/public/{share_token}/runs/query": { "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Tests an alert action which will fire a notification to all configured recipients if the configuration is valid.", + "description": "Returns all runs within the trace identified by the share token. The share token supplies the tenant, project, and trace scope.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "alert_rules" + "runs" ], - "summary": "Test an alert action to determine if configuration is valid", + "summary": "Query public shared trace runs", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "application/json", + "name": "Content-Type", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "Alert action fired successfully", + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } }, "400": { - "description": "Bad request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token or shared trace not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal server error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.PublicSharedTraceRunsRequestBody" + } + } + } } } }, - "/v1/platform/alerts/{session_id}/{alert_rule_id}": { - "get": { + "/api/v2/runs/query": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Gets an alert rule.", + "description": "Returns a paginated list of runs for the given projects within min/max start_time. Supports filters, cursor pagination, and `selects` to select fields to return.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "alert_rules" + "runs" ], - "summary": "Get an alert rule", + "summary": "Query runs", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", - "in": "path", - "required": true, + "description": "application/json (required for JSON body)", + "name": "Content-Type", + "in": "header", "schema": { "type": "string" } @@ -35367,183 +36594,345 @@ ], "responses": { "200": { - "description": "Alert rule", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.AlertRuleResponse" + "$ref": "#/components/schemas/query.QueryRunsResponseBody" } } } }, "400": { - "description": "Bad request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "401": { + "description": "missing or invalid authentication", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal server error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "V2 filter syntax is unavailable for this deployment; use legacy function-style filters or set SMITHDB_QUERY_ENABLED=true", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.QueryRunsRequestBody" + } + } + } } - }, - "delete": { + } + }, + "/api/v2/runs/{run_id}": { + "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Deletes an alert rule", + "description": "Returns one run by ID for the given session. Use the `selects` query parameter (repeatable) to select fields to return.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "alert_rules" + "runs" ], - "summary": "Delete an alert rule", + "summary": "Get a single run", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "description": "`project_id` is the UUID of the tracing project that owns the run.", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Project Id" + } + }, + { + "description": "`selects` lists which properties to include on the returned run (repeatable query parameter). Accepts any value of the `RunSelectField` enum. If omitted, only `id` is returned.", + "name": "selects", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + "ID", + "NAME", + "RUN_TYPE", + "STATUS", + "START_TIME", + "END_TIME", + "LATENCY_SECONDS", + "FIRST_TOKEN_TIME", + "ERROR", + "ERROR_PREVIEW", + "EXTRA", + "METADATA", + "EVENTS", + "INPUTS", + "INPUTS_PREVIEW", + "OUTPUTS", + "OUTPUTS_PREVIEW", + "MANIFEST", + "PARENT_RUN_IDS", + "PROJECT_ID", + "TRACE_ID", + "THREAD_ID", + "DOTTED_ORDER", + "IS_ROOT", + "REFERENCE_EXAMPLE_ID", + "REFERENCE_DATASET_ID", + "TOTAL_TOKENS", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_COST", + "PROMPT_COST", + "COMPLETION_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "PRICE_MODEL_ID", + "TAGS", + "APP_PATH", + "ATTACHMENTS", + "THREAD_EVALUATION_TIME", + "IS_IN_DATASET", + "LAST_QUEUED_AT", + "SHARE_URL", + "FEEDBACK_STATS" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" + } + }, + { + "description": "`start_time` is the run's `start_time` (RFC3339 date-time). Providing it speeds up retrieval.", + "name": "start_time", + "in": "query", + "schema": { + "type": "string", + "format": "date-time", + "title": "Start Time" } } ], "responses": { "200": { - "description": "Alert rule deleted", + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/query.RunResponse" } } } }, "400": { - "description": "Bad request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "403": { + "description": "forbidden (insufficient permission)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not found", + "description": "run or session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal server error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "not implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "patch": { + }, + "x-public": true + } + }, + "/api/v2/runs/{run_id}/share": { + "post": { "security": [ { "API Key": [] @@ -35555,63 +36944,50 @@ "Bearer Auth": [] } ], - "description": "Updates an alert rule.", + "description": "Creates or returns a share token for a run. Child runs share their trace root.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "alert_rules" + "runs" ], - "summary": "Update an alert rule", + "summary": "Share a run", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "Alert rule updated", + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/share.CreateShareTokenResponseBody" } } } }, "400": { - "description": "Bad request", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35621,147 +36997,169 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal server error", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.UpdateAlertRuleRequest" + "$ref": "#/components/schemas/share.CreateShareTokenRequestBody" } } } } } }, - "/v1/platform/annotation-queues/{queue_id}/reviewers": { - "post": { + "/api/v2/runs/{run_id}/url": { + "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Assigns a single identity as a reviewer for the queue. Idempotent.", + "description": "Returns the URL to view a specific run in the LangSmith UI. The caller must supply the\nrun's project_id and trace_id as query parameters; start_time is optional.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "annotation_queues" + "runs" ], - "summary": "Add a reviewer to an annotation queue", + "summary": "Get the LangSmith UI URL for a run", "parameters": [ { - "description": "Queue ID", - "name": "queue_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "description": "Project (session) UUID", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Project Id" + } + }, + { + "description": "Trace UUID", + "name": "trace_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Trace Id" + } + }, + { + "description": "Run start time in RFC3339 format; omit if unknown", + "name": "start_time", + "in": "query", + "schema": { + "type": "string", + "title": "Start Time" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/annotationqueues.AddReviewerResponse" + "$ref": "#/components/schemas/query.RunURLResponse" } } } }, "400": { - "description": "Bad Request", + "description": "missing or invalid query parameters", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/annotationqueues.AddReviewerRequest" + }, + "404": { + "description": "project not found or does not belong to this workspace", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } } } } - } + }, + "x-public": true } }, - "/v1/platform/annotation-queues/{queue_id}/reviewers/{identity_id}": { + "/api/v2/runs/{trace_id}/share": { "delete": { "security": [ { @@ -35774,28 +37172,20 @@ "Bearer Auth": [] } ], - "description": "Unassigns an identity as a reviewer for the queue. Idempotent.", + "description": "Deletes the share token for the trace identified by trace_id and session_id. Idempotent: returns 204 whether or not a share token existed.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "annotation_queues" + "runs" ], - "summary": "Remove a reviewer from an annotation queue", + "summary": "Unshare a run", "parameters": [ { - "description": "Queue ID", - "name": "queue_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Identity ID of the reviewer to remove", - "name": "identity_id", + "description": "Trace root UUID", + "name": "trace_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], @@ -35808,79 +37198,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - } - } - }, - "/v1/platform/datasets/examples/delete": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "This endpoint hard deletes *all* versions of a dataset example(s).\nDeletion is performed by setting inputs, outputs, and metadata to null and deleting attachment files while keeping the example ID, dataset ID, and creation timestamp.\nIMPORTANT: attachment files can take up to 7 days to be deleted. inputs, outputs and metadata are nullified immediately.", - "tags": [ - "examples" - ], - "summary": "Hard Delete Examples", - "parameters": [], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ExamplesDeletedResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35890,46 +37218,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.DeleteExamplesRequest" + "$ref": "#/components/schemas/share.DeleteShareTokenRequestBody" } } } } } }, - "/v1/platform/datasets/{dataset_id}/examples": { - "post": { + "/api/v2/sandboxes/boxes": { + "get": { "security": [ { "API Key": [] @@ -35939,42 +37268,145 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "This endpoint allows clients to upload examples to a specified dataset by sending a multipart/form-data POST request.\nEach form part contains either JSON-encoded data or binary attachment files associated with an example.", + "description": "List sandboxes for the authenticated tenant, with optional filtering, sorting, and pagination.\nPage with page_size and cursor: replay the response's next_cursor until it comes back null, which is the only signal that no pages remain.\nCursors are opaque and only valid on this endpoint; do not parse or construct one.", "tags": [ - "examples" + "sandboxes" ], - "summary": "Upload Examples", + "summary": "List sandboxes", "parameters": [ { - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, + "description": "Number of results per page", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "title": "Cursor" + } + }, + { + "description": "Deprecated: use page_size. Maximum number of results", + "name": "limit", + "in": "query", + "schema": { + "default": 50, + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Deprecated: use cursor. Pagination offset", + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Filter by name substring", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" + } + }, + { + "description": "Filter by status (provisioning, ready, failed, stopped, deleting)", + "name": "status", + "in": "query", + "schema": { + "type": "string", + "title": "Status" + } + }, + { + "description": "Filter by creator identity. Only 'me' is supported.", + "name": "created_by", + "in": "query", + "schema": { + "type": "string", + "title": "Created By" + } + }, + { + "description": "Filter by label. Repeatable; all must match. Use 'key' to match on key presence or 'key=value' for equality.", + "name": "label", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Label" + } + }, + { + "description": "Sort column (name, status, created_at, stopped_at, idle_ttl_seconds, delete_after_stop_seconds)", + "name": "sort_by", + "in": "query", + "schema": { + "default": "created_at", + "type": "string", + "title": "Sort By" + } + }, + { + "description": "Sort direction (asc, desc)", + "name": "sort_order", + "in": "query", + "schema": { + "default": "desc", + "type": "string", + "title": "Sort Order" + } + }, + { + "description": "Deprecated: use sort_order. Sort direction (asc, desc)", + "name": "sort_direction", + "in": "query", + "schema": { + "default": "desc", + "type": "string", + "title": "Sort Direction" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ExamplesCreatedResponse" + "$ref": "#/components/schemas/sandboxes.SandboxListResponse" } } } }, "400": { - "description": "Bad Request", + "description": "invalid page_size, cursor, or sort_order, or a deprecated parameter combined with its replacement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -35984,70 +37416,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "invalid limit or offset", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "{example_id}": { - "type": "string", - "format": "binary", - "description": "The Example info as JSON. Can have fields 'metadata', 'split', 'use_source_run_io', 'source_run_id', 'created_at', 'modified_at'" - }, - "{example_id}.inputs": { - "type": "string", - "format": "binary", - "description": "The Example inputs as JSON" - }, - "{example_id}.outputs": { - "type": "string", - "format": "binary", - "description": "THe Example outputs as JSON" - }, - "{example_id}.attachments.{name}": { - "type": "string", - "format": "binary", - "description": "File attachment named {name}" - } - }, - "required": [ - "{example_id}", - "{example_id}.inputs" - ] - } - } - } - } + "x-public": true }, - "patch": { + "post": { "security": [ { "API Key": [] @@ -36057,147 +37454,120 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "This endpoint allows clients to update existing examples in a specified dataset by sending a multipart/form-data PATCH request.\nEach form part contains either JSON-encoded data or binary attachment files to update an example.", + "description": "Create a new sandbox from a snapshot. Provide at most one of `snapshot_id` or `snapshot_name`; if neither is provided, the server uses the default snapshot. `snapshot_name` accepts a Docker-style `name` or `name:tag` reference (a bare name resolves to `name:latest`).", "tags": [ - "examples" - ], - "summary": "Update Examples", - "parameters": [ - { - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } + "sandboxes" ], + "summary": "Create a sandbox", + "parameters": [], "responses": { "201": { "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ExamplesUpdatedResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, "400": { - "description": "Bad Request", + "description": "Snapshot not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "409": { + "description": "Name already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "429": { + "description": "Quota exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Sandbox creation failed or internal error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - }, + }, + "504": { + "description": "Sandbox did not become ready in time", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + } + }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "{example_id}": { - "type": "string", - "format": "binary", - "description": "The Example update info as JSON. Can have fields 'metadata', 'split'" - }, - "{example_id}.inputs": { - "type": "string", - "format": "binary", - "description": "The updated Example inputs as JSON" - }, - "{example_id}.outputs": { - "type": "string", - "format": "binary", - "description": "The updated Example outputs as JSON" - }, - "{example_id}.attachments_operations": { - "type": "string", - "format": "binary", - "description": "JSON describing attachment operations (retain, rename)" - }, - "{example_id}.attachment.{name}": { - "type": "string", - "format": "binary", - "description": "New file attachment named {name}" - } - }, - "required": [ - "{example_id}" - ] + "$ref": "#/components/schemas/sandboxes.CreateSandboxPayload" } } } } } }, - "/v1/platform/engine/trial-response": { + "/api/v2/sandboxes/boxes/batch-delete": { "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Records a user's response to the Engine trial ending modal.\naction must be \"acknowledge\", \"opt_out\", or \"mark_seen\".", + "description": "Delete multiple sandboxes by name or UUID in a single request.", "tags": [ - "engine-trial" + "sandboxes" ], - "summary": "Respond to Engine trial ending notice", + "summary": "Batch delete sandboxes", "parameters": [], "responses": { "200": { @@ -36205,10 +37575,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.BatchDeleteResponse" } } } @@ -36218,36 +37585,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36257,28 +37605,26 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/engine_trial.trialResponseRequest" + "$ref": "#/components/schemas/sandboxes.BatchDeleteRequest" } } } } } }, - "/v1/platform/evaluators": { + "/api/v2/sandboxes/boxes/{name}": { "get": { "security": [ { @@ -36289,105 +37635,24 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.", + "description": "Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "List evaluators", + "summary": "Get a sandbox", "parameters": [ { - "description": "Filter by evaluator type", - "name": "type", - "in": "query", - "schema": { - "type": "string", - "title": "Type" - } - }, - { - "description": "Filter by name substring (also searches creator names)", - "name": "name_contains", - "in": "query", - "schema": { - "type": "string", - "title": "Name Contains" - } - }, - { - "description": "Filter by tag value IDs", - "name": "tag_value_id", - "in": "query", - "style": "form", - "explode": false, - "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Tag Value Id" - } - }, - { - "description": "Filter by feedback key", - "name": "feedback_key", - "in": "query", - "schema": { - "type": "string", - "title": "Feedback Key" - } - }, - { - "description": "Filter by resource IDs", - "name": "resource_id", - "in": "query", - "style": "form", - "explode": false, - "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Resource Id" - } - }, - { - "description": "Field to sort by", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "title": "Sort By" - } - }, - { - "description": "Sort in descending order", - "name": "sort_by_desc", - "in": "query", - "schema": { - "type": "boolean", - "title": "Sort By Desc" - } - }, - { - "description": "Maximum number of results (1-100)", - "name": "limit", - "in": "query", - "schema": { - "default": 100, - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Offset for pagination", - "name": "offset", - "in": "query", + "description": "Sandbox display name", + "name": "name", + "in": "path", + "required": true, "schema": { - "default": 0, - "type": "integer", - "title": "Offset" + "type": "string" } } ], @@ -36397,37 +37662,75 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ListEvaluatorsResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } + } + }, + "x-public": true + }, + "delete": { + "security": [ + { + "API Key": [] }, - "403": { - "description": "Forbidden", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + }, + { + "X-Service-Key": [] + } + ], + "description": "Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.", + "tags": [ + "sandboxes" + ], + "summary": "Delete a sandbox", + "parameters": [ + { + "description": "Sandbox display name or UUID", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No content" + }, + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36437,14 +37740,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } + }, + "x-public": true }, - "post": { + "patch": { "security": [ { "API Key": [] @@ -36454,51 +37758,64 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Create a new LLM or code evaluator for the current workspace.", + "description": "Update a sandbox's display name, retention, resources, tags, or proxy configuration. The name must be unique within the tenant. Proxy configuration sent to a sandbox that is not running is stored and applied when it next starts.", "tags": [ - "evaluators" + "sandboxes" + ], + "summary": "Update a sandbox", + "parameters": [ + { + "description": "Current sandbox display name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create evaluator", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.CreateEvaluatorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "409": { + "description": "Name already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36508,24 +37825,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.CreateEvaluatorRequest" + "$ref": "#/components/schemas/sandboxes.UpdateSandboxPayload" } } } } - }, - "delete": { + } + }, + "/api/v2/sandboxes/boxes/{name}/download-url": { + "post": { "security": [ { "API Key": [] @@ -36537,34 +37857,19 @@ "Bearer Auth": [] } ], - "description": "Delete multiple evaluators by their IDs. Returns per-item success/failure.", + "description": "Generate a tokenized link that downloads a single file from a sandbox with no further authentication. This mints a token rather than creating an addressable resource, so it returns 200 with no Location header. The token pins the sandbox, the file path, and the response content type and disposition, so a link cannot be repointed at another file. Links never expire unless expires_in_seconds is set. The link is served from the sandbox service domain, not the API host.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Bulk delete evaluators", + "summary": "Generate a sandbox file download link", "parameters": [ { - "description": "Evaluator IDs to delete", - "name": "evaluator_ids", - "in": "query", + "description": "Sandbox ID or name", + "name": "name", + "in": "path", "required": true, - "style": "form", - "explode": false, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Evaluator Ids" - } - }, - { - "description": "When true, delete all run rules for this evaluator before deleting the evaluator", - "name": "delete_run_rules", - "in": "query", - "schema": { - "type": "boolean", - "title": "Delete Run Rules" + "type": "string" } } ], @@ -36574,7 +37879,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.BulkDeleteEvaluatorsResponse" + "$ref": "#/components/schemas/sandboxes.DownloadURLResponse" } } } @@ -36584,27 +37889,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36614,16 +37919,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } + }, + "501": { + "description": "Not Implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.DownloadURLPayload" + } + } } } } }, - "/v1/platform/evaluators/spend": { - "get": { + "/api/v2/sandboxes/boxes/{name}/service-url": { + "post": { "security": [ { "API Key": [] @@ -36635,88 +37961,19 @@ "Bearer Auth": [] } ], - "description": "Returns per-day LLM evaluator spend for the requested 7-day period, grouped by evaluator, resource, or run rule. Exactly one of group_by, evaluator_id, session_id, or dataset_id is required. resource_id, type, and feedback_key may be supplied with group_by to narrow listing aggregations.", + "description": "Create a short-lived JWT for accessing an HTTP service running on a specific port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw token, and its expiry.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Get evaluator spend", + "summary": "Generate a service access token", "parameters": [ { - "description": "Aggregation mode: 'evaluator', 'resource', or 'run_rule'. Mutually exclusive with entity filters.", - "name": "group_by", - "in": "query", - "schema": { - "type": "string", - "title": "Group By" - } - }, - { - "description": "Filter to a specific evaluator (UUID). Mutually exclusive with group_by.", - "name": "evaluator_id", - "in": "query", - "schema": { - "type": "string", - "title": "Evaluator Id" - } - }, - { - "description": "Filter to a specific project (UUID). Mutually exclusive with group_by.", - "name": "session_id", - "in": "query", - "schema": { - "type": "string", - "title": "Session Id" - } - }, - { - "description": "Filter to a specific dataset (UUID). Mutually exclusive with group_by.", - "name": "dataset_id", - "in": "query", - "schema": { - "type": "string", - "title": "Dataset Id" - } - }, - { - "description": "Filter grouped results to evaluators attached to all supplied project or dataset IDs. Only valid with group_by.", - "name": "resource_id", - "in": "query", - "style": "form", - "explode": false, - "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Resource Id" - } - }, - { - "description": "Filter grouped results by evaluator type: 'llm' or 'code'. Only valid with group_by.", - "name": "type", - "in": "query", - "schema": { - "type": "string", - "title": "Type" - } - }, - { - "description": "Filter grouped results by evaluator feedback key. Only valid with group_by.", - "name": "feedback_key", - "in": "query", - "schema": { - "type": "string", - "title": "Feedback Key" - } - }, - { - "description": "Start of the 7-day window (YYYY-MM-DD).", - "name": "period_start", - "in": "query", + "description": "Sandbox display name", + "name": "name", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Period Start" + "type": "string" } } ], @@ -36726,7 +37983,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.GetEvaluatorSpendResponse" + "$ref": "#/components/schemas/sandboxes.ServiceURLResponse" } } } @@ -36736,56 +37993,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ServiceURLPayload" + } + } + } } } }, - "/v1/platform/evaluators/{evaluator_id}": { - "get": { + "/api/v2/sandboxes/boxes/{name}/snapshot": { + "post": { "security": [ { "API Key": [] @@ -36797,15 +38065,15 @@ "Bearer Auth": [] } ], - "description": "Retrieve a single evaluator by its ID.", + "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Get evaluator", + "summary": "Capture a snapshot from a sandbox", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -36814,12 +38082,12 @@ } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.Evaluator" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } @@ -36829,17 +38097,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36849,7 +38107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36859,110 +38117,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Delete an evaluator. When delete_run_rules is true, all run rules referencing this evaluator are deleted first (same tenant). Associated llm_evaluators and code_evaluators rows are removed by foreign-key cascade when the evaluator row is deleted.", - "tags": [ - "evaluators" - ], - "summary": "Delete evaluator", - "parameters": [ - { - "description": "Evaluator ID", - "name": "evaluator_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "When true, delete all run rules for this evaluator before deleting the evaluator", - "name": "delete_run_rules", - "in": "query", - "schema": { - "type": "boolean", - "title": "Delete Run Rules" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { + "409": { + "description": "sandbox must be running for Docker image export", + "headers": { + "X-Should-Retry": { + "description": "false for deterministic state conflicts", "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "string" } } - } - }, - "404": { - "description": "Not Found", + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36972,14 +38155,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" + } + } + } } - }, - "patch": { + } + }, + "/api/v2/sandboxes/boxes/{name}/start": { + "post": { "security": [ { "API Key": [] @@ -36991,15 +38187,15 @@ "Bearer Auth": [] } ], - "description": "Update an existing evaluator's name, LLM configuration, or code configuration.", + "description": "Start a stopped or failed sandbox. This endpoint is not idempotent.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Update evaluator", + "summary": "Start a sandbox", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37008,12 +38204,12 @@ } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.UpdateEvaluatorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } @@ -37023,17 +38219,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37043,7 +38229,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37053,7 +38239,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37063,25 +38249,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.UpdateEvaluatorRequest" - } - } - } - } + "x-public": true } }, - "/v1/platform/features": { + "/api/v2/sandboxes/boxes/{name}/status": { "get": { "security": [ { @@ -37092,43 +38269,44 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns a consolidated view of default models and disabled models per feature for the workspace.", + "description": "Retrieve the lightweight status of a sandbox for polling.", "tags": [ - "features" + "sandboxes" + ], + "summary": "Get sandbox status", + "parameters": [ + { + "description": "Sandbox display name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "List feature configurations", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/features.FeatureConfig" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxStatusResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37138,17 +38316,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true } }, - "/v1/platform/features/{feature}/default-model": { - "put": { + "/api/v2/sandboxes/boxes/{name}/stop": { + "post": { "security": [ { "API Key": [] @@ -37160,15 +38338,15 @@ "Bearer Auth": [] } ], - "description": "Sets or replaces the default model for a feature in the workspace.", + "description": "Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.", "tags": [ - "features" + "sandboxes" ], - "summary": "Set default model for a feature", + "summary": "Stop a sandbox", "parameters": [ { - "description": "Feature name", - "name": "feature", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37178,34 +38356,34 @@ ], "responses": { "204": { - "description": "No Content" + "description": "Sandbox stopped" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37215,24 +38393,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.UpsertDefaultModelRequest" - } - } - } - } - }, - "delete": { + "x-public": true + } + }, + "/api/v2/sandboxes/registries": { + "get": { "security": [ { "API Key": [] @@ -37244,32 +38415,57 @@ "Bearer Auth": [] } ], - "description": "Removes the default model for a feature in the workspace.", + "description": "List sandbox registries for pulling private images.", "tags": [ - "features" + "sandboxes" ], - "summary": "Delete default model for a feature", + "summary": "List registries", "parameters": [ { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, + "description": "Maximum number of registries to return", + "name": "limit", + "in": "query", "schema": { - "type": "string" + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Number of registries to skip", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Filter to registries whose name contains this substring", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" } } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.RegistryListResponse" + } + } + } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37279,7 +38475,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37289,16 +38485,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/features/{feature}/disabled-models": { - "put": { + }, + "x-public": true + }, + "post": { "security": [ { "API Key": [] @@ -37310,52 +38505,49 @@ "Bearer Auth": [] } ], - "description": "Adds a model to the disabled list for a feature in the workspace.", + "description": "Create a sandbox registry for pulling private images.", "tags": [ - "features" - ], - "summary": "Disable a model for a feature", - "parameters": [ - { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "sandboxes" ], + "summary": "Create a registry", + "parameters": [], "responses": { - "204": { - "description": "No Content" + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.RegistryResponse" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37365,26 +38557,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.DisableModelRequest" + "$ref": "#/components/schemas/sandboxes.CreateRegistryPayload" } } } } } }, - "/v1/platform/features/{feature}/disabled-models/{model}": { - "delete": { + "/api/v2/sandboxes/registries/{name}": { + "get": { "security": [ { "API Key": [] @@ -37396,24 +38589,15 @@ "Bearer Auth": [] } ], - "description": "Removes a model from the disabled list for a feature in the workspace.", + "description": "Get a sandbox registry by name.", "tags": [ - "features" + "sandboxes" ], - "summary": "Re-enable a disabled model for a feature", + "summary": "Get a registry", "parameters": [ { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Model name (URL-encoded)", - "name": "model", + "description": "Registry name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37422,35 +38606,32 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37460,16 +38641,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/fleet-webhooks/{webhook_id}/run": { - "post": { + }, + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -37481,15 +38661,15 @@ "Bearer Auth": [] } ], - "description": "Sends the request payload to the webhook's stored URL and returns the upstream response in a JSON envelope.", + "description": "Delete a sandbox registry by name.", "tags": [ - "fleet_webhooks" + "sandboxes" ], - "summary": "Run a fleet webhook", + "summary": "Delete a registry", "parameters": [ { - "description": "Webhook UUID", - "name": "webhook_id", + "description": "Registry name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37498,62 +38678,43 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agent_builder_webhooks.WebhookTestResult" - } - } - } + "204": { + "description": "No Content" }, - "400": { - "description": "invalid request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "webhook not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "webhook request failed", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/mcp-servers": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -37565,16 +38726,17 @@ "Bearer Auth": [] } ], - "description": "Returns MCP servers visible to the caller after ABAC filtering. Service-key callers may pass X-Ls-User-Id to resolve per-user OAuth providers.", + "description": "Update a sandbox registry's name and/or credentials.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "List MCP servers", + "summary": "Update a registry", "parameters": [ { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", + "description": "Registry name", + "name": "name", + "in": "path", + "required": true, "schema": { "type": "string" } @@ -37586,10 +38748,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } @@ -37599,55 +38758,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.UpdateRegistryPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/snapshots": { + "get": { "security": [ { "API Key": [] @@ -37659,99 +38830,178 @@ "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "description": "List sandbox snapshots for the authenticated tenant, with optional filtering, sorting, and pagination.\nPage with page_size and cursor: replay the response's next_cursor until it comes back null, which is the only signal that no pages remain.\nCursors are opaque and only valid on this endpoint; do not parse or construct one.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Create MCP server", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } + "summary": "List snapshots", + "parameters": [ + { + "description": "Number of results per page", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "title": "Page Size" } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } + { + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" } }, - "401": { - "description": "Unauthorized", + { + "description": "Deprecated: use page_size. Maximum number of results", + "name": "limit", + "in": "query", + "schema": { + "default": 50, + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Deprecated: use cursor. Pagination offset", + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Filter by name substring", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" + } + }, + { + "description": "Filter by status (building, ready, failed, deleting)", + "name": "status", + "in": "query", + "schema": { + "type": "string", + "title": "Status" + } + }, + { + "description": "Filter by creator identity. Only 'me' is supported.", + "name": "created_by", + "in": "query", + "schema": { + "type": "string", + "title": "Created By" + } + }, + { + "description": "Filter by label. Repeatable; all must match. Use 'key' to match on key presence or 'key=value' for equality.", + "name": "label", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Label" + } + }, + { + "description": "Sort column (name, status, created_at)", + "name": "sort_by", + "in": "query", + "schema": { + "default": "created_at", + "type": "string", + "title": "Sort By" + } + }, + { + "description": "Sort direction (asc, desc)", + "name": "sort_order", + "in": "query", + "schema": { + "default": "desc", + "type": "string", + "title": "Sort Order" + } + }, + { + "description": "Deprecated: use sort_order. Sort direction (asc, desc)", + "name": "sort_direction", + "in": "query", + "schema": { + "default": "desc", + "type": "string", + "title": "Sort Direction" + } + } + ], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.SnapshotListResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "invalid page_size, cursor, or sort_order, or a deprecated parameter combined with its replacement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "422": { + "description": "invalid limit or offset", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/mcp-servers/{mcp_server_id}": { - "get": { + "x-public": true + }, + "post": { "security": [ { "API Key": [] @@ -37763,29 +39013,19 @@ "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "description": "Create a snapshot from a Docker image (async build).", "tags": [ - "fleet mcp" - ], - "summary": "Get MCP server", - "parameters": [ - { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "sandboxes" ], + "summary": "Create a snapshot", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } @@ -37795,17 +39035,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37815,17 +39045,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37835,25 +39055,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CreateSnapshotPayload" } } } - }, - "x-hidden": true - }, - "delete": { + } + } + }, + "/api/v2/sandboxes/snapshots-by-name/{name}": { + "get": { "security": [ { "API Key": [] @@ -37865,15 +39087,15 @@ "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "description": "Get a snapshot name and every tag under it, with the snapshot each tag resolves to. To fetch one snapshot, use /api/v2/sandboxes/snapshots/{snapshot_id}.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Delete MCP server", + "summary": "Get a snapshot name", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Snapshot name, without a tag", + "name": "name", "in": "path", "required": true, "schema": { @@ -37882,25 +39104,22 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.SnapshotNameResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37910,7 +39129,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37920,7 +39139,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37930,25 +39149,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { + "x-public": true + } + }, + "/api/v2/sandboxes/snapshots/{snapshot_id}": { + "get": { "security": [ { "API Key": [] @@ -37960,15 +39171,15 @@ "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "description": "Get a sandbox snapshot by ID or by a Docker-style reference. A bare name means name:latest, falling back to the newest ready untagged snapshot of that name. To list the tags under a name, use /api/v2/sandboxes/snapshots-by-name/{name}.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Update MCP server", + "summary": "Get a snapshot", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Snapshot UUID, a name:tag reference, or a bare snapshot name", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -37982,7 +39193,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } @@ -37992,17 +39203,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38012,7 +39213,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38022,7 +39223,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38032,37 +39233,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/mcp-servers/{mcp_server_id}/oauth-provider": { - "post": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -38074,15 +39253,15 @@ "Bearer Auth": [] } ], - "description": "Discovers and registers an OAuth provider for a user against an MCP server configured with per-user dynamic client mode. Idempotent when a mapping already exists.", + "description": "Delete a snapshot by ID or by a Docker-style name[:tag] reference. The underlying storage is reclaimed asynchronously.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "Delete a snapshot", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Snapshot UUID, or a name[:tag] reference", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -38091,32 +39270,25 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" - } - } - } + "204": { + "description": "Snapshot deleted" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38126,7 +39298,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38136,37 +39308,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/providers/github-app/auth": { - "post": { + "/api/v2/sandboxes/usage": { + "get": { "security": [ { "API Key": [] @@ -38176,50 +39328,43 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Generate a GitHub OAuth link for the current user to connect their GitHub account.", + "description": "Get current sandbox resource usage and quota limits for the workspace", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "Get GitHub OAuth authorization link", + "summary": "Get sandbox resource usage", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserAuthLinkResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.UsageResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/platform/fleet/providers/github-app/connection": { + "/api/v2/sandboxes/{sandbox_id}/download": { "get": { "security": [ { @@ -38232,18 +39377,59 @@ "Bearer Auth": [] } ], - "description": "Return the current user's GitHub connection status and metadata.", + "description": "Download file contents from a sandbox filesystem path. Supports HTTP range requests: send a Range header (for example `bytes=0-1023`) to receive a 206 with only that byte range. Every response carries an ETag; send it back as If-Range to resume safely (a changed file returns 200 with the whole file instead of mismatched bytes) or as If-None-Match to get a 304 when the file is unchanged. HEAD returns the same headers, including the file's size in Content-Length, without the body.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Download a sandbox file", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "File path to download", + "name": "path", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Path" + } + }, + { + "description": "Byte range to return, e.g. bytes=0-1023", + "name": "Range", + "in": "header", + "schema": { + "type": "string" + } + } ], - "summary": "Get GitHub user connection status", "responses": { "200": { - "description": "OK", + "description": "File content", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "type": "string", + "format": "binary" + } + } + } + }, + "206": { + "description": "Partial file content", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" } } } @@ -38253,71 +39439,45 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - }, - "parameters": [], - "x-hidden": true - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Remove the current user's GitHub connection and all linked installations.", - "tags": [ - "fleet github-app" - ], - "summary": "Delete GitHub user connection", - "responses": { - "204": { - "description": "No Content" }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "416": { + "description": "Requested range not satisfiable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "type": "string" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true }, - "patch": { + "head": { "security": [ { "API Key": [] @@ -38329,19 +39489,59 @@ "Bearer Auth": [] } ], - "description": "Update the actor preference for the current user's GitHub connection.", + "description": "Download file contents from a sandbox filesystem path. Supports HTTP range requests: send a Range header (for example `bytes=0-1023`) to receive a 206 with only that byte range. Every response carries an ETag; send it back as If-Range to resume safely (a changed file returns 200 with the whole file instead of mismatched bytes) or as If-None-Match to get a 304 when the file is unchanged. HEAD returns the same headers, including the file's size in Content-Length, without the body.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Download a sandbox file", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "File path to download", + "name": "path", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Path" + } + }, + { + "description": "Byte range to return, e.g. bytes=0-1023", + "name": "Range", + "in": "header", + "schema": { + "type": "string" + } + } ], - "summary": "Update GitHub user connection", - "parameters": [], "responses": { "200": { - "description": "OK", + "description": "File content", "content": { - "application/json": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "206": { + "description": "Partial file content", + "content": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "type": "string", + "format": "binary" } } } @@ -38351,7 +39551,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38361,36 +39571,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "416": { + "description": "Requested range not satisfiable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "type": "string" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.UpdateUserConnectionRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/providers/github-app/install": { + "/api/v2/sandboxes/{sandbox_id}/execute": { "post": { "security": [ { @@ -38403,18 +39603,29 @@ "Bearer Auth": [] } ], - "description": "Generate a link to install the GitHub App for the current organization.", + "description": "Execute a command inside a sandbox and return stdout, stderr, and exit code. Use the streaming execute endpoints for long-running commands that may exceed the synchronous request deadline.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Execute a sandbox command", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Get GitHub App install link", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.InstallLinkResponse" + "$ref": "#/components/schemas/sandboxes.ExecResponse" } } } @@ -38424,7 +39635,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38434,64 +39655,43 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "409": { + "description": "The sandbox closed its connection during execution", + "headers": { + "X-Should-Retry": { + "description": "false; the interrupted command is not safe to replay", + "schema": { + "type": "string" + } + } + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations": { - "get": { - "security": [ - { - "API Key": [] }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Return GitHub App installations linked to the current user from\nour database. This is a cache — it does not hit the GitHub API.\nUse POST /installations/refresh to force a fresh sync from GitHub.", - "tags": [ - "fleet github-app" - ], - "summary": "List GitHub App installations", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { + "422": { + "description": "Synchronous execution exceeded the request deadline", + "headers": { + "X-Should-Retry": { + "description": "false; use streaming execute for long-running commands", "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "type": "string" } } - } - }, - "400": { - "description": "Bad Request", + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -38501,17 +39701,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ExecRequest" + } + } + } + } } }, - "/v1/platform/fleet/providers/github-app/installations/refresh": { + "/api/v2/sandboxes/{sandbox_id}/execute/stream/resume": { "post": { "security": [ { @@ -38524,21 +39733,29 @@ "Bearer Auth": [] } ], - "description": "Trigger a live sync with GitHub for the current user's GitHub App\ninstallations. Upserts new installations, deletes stale ones, and\nreturns the refreshed list. Requires an existing GitHub connection.", + "description": "Continue streaming a command started by the stream start endpoint. The offsets are also the ack for everything below them, which frees the sandbox's output buffer and unpauses a command waiting for room. Attaches only: a command the sandbox no longer has returns 404 rather than running again.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Resume a streamed sandbox command", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Refresh GitHub App installations", "responses": { "200": { - "description": "OK", + "description": "SSE event stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "type": "string" } } } @@ -38548,7 +39765,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38558,28 +39785,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ExecStreamResumeRequest" + } + } + } + } } }, - "/v1/platform/fleet/providers/github-app/installations/{id}": { - "delete": { + "/api/v2/sandboxes/{sandbox_id}/execute/stream/start": { + "post": { "security": [ { "API Key": [] @@ -38591,15 +39837,15 @@ "Bearer Auth": [] } ], - "description": "Remove a GitHub App installation link for the current user.", + "description": "Execute a command inside a sandbox and stream stdout/stderr as Server-Sent Events with base64 payloads. Requires a sandbox on the v2 runtime. Passing a command_id reuses a running command instead of starting a second one. The response ends with an ack_required event when the sandbox's output buffer needs an ack; continue from the reported offsets with the resume endpoint.", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "Delete a GitHub App installation", + "summary": "Start a streamed sandbox command", "parameters": [ { - "description": "Installation ID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -38608,15 +39854,32 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "SSE event stream", + "content": { + "text/event-stream": { + "schema": { + "type": "string" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38626,16 +39889,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ExecStreamRequest" + } + } + } + } } }, - "/v1/platform/fleet/providers/github-app/installations/{id}/repos": { + "/api/v2/sandboxes/{sandbox_id}/execute/ws": { "get": { "security": [ { @@ -38648,15 +39941,15 @@ "Bearer Auth": [] } ], - "description": "Return repositories accessible to the specified GitHub App installation.", + "description": "Open a WebSocket connection for streaming command execution inside a sandbox.", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "List repositories for a GitHub App installation", + "summary": "Execute a sandbox command over WebSocket", "parameters": [ { - "description": "Installation ID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -38665,25 +39958,25 @@ } ], "responses": { - "200": { - "description": "OK", + "101": { + "description": "WebSocket upgrade" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Repository" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38693,26 +39986,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/providers/github-app/tokens": { + "/api/v2/sandboxes/{sandbox_id}/glob": { "post": { "security": [ { @@ -38725,19 +40018,29 @@ "Bearer Auth": [] } ], - "description": "Return a short-lived GitHub access token scoped to the given repository.", + "description": "Find files under a root path matching a glob pattern (supports **). Entries are returned in lexical order by path.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Glob a sandbox filesystem", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Request a GitHub access token", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserTokenResponse" + "$ref": "#/components/schemas/sandboxes.GlobResponse" } } } @@ -38747,73 +40050,57 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.TokenRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/webhooks": { - "post": { - "description": "Process GitHub App webhooks (installation lifecycle, installation_repositories). GitHub may deliver the same event more than once; handling re-applies the current repository-selection state and is safe to repeat.", - "tags": [ - "fleet github-app" - ], - "summary": "Handle GitHub App webhook events", - "responses": { - "200": { - "description": "OK" }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.GlobRequest" + } + } + } + } } }, - "/v1/platform/fleet/usage/agents": { - "get": { + "/api/v2/sandboxes/{sandbox_id}/grep": { + "post": { "security": [ { "API Key": [] @@ -38825,60 +40112,19 @@ "Bearer Auth": [] } ], - "description": "Returns the top agents in the workspace with cost data for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change. Data is sourced entirely from ClickHouse run metadata.", + "description": "Search files under a root path for a literal text pattern (not a regex).", "tags": [ - "fleet usage" + "sandboxes" ], - "summary": "List fleet agents with usage", + "summary": "Grep a sandbox filesystem", "parameters": [ { - "description": "Max results (max 100)", - "name": "limit", - "in": "query", - "schema": { - "default": 20, - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Start of cost window (ISO8601)", - "name": "start_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Start Time" - } - }, - { - "description": "End of cost window (ISO8601)", - "name": "end_time", - "in": "query", + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "End Time" - } - }, - { - "description": "Sort field (cost, runs, last_used, first_used)", - "name": "sort_by", - "in": "query", - "schema": { - "default": "cost", - "type": "string", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", - "schema": { - "default": "desc", - "type": "string", - "title": "Sort Order" + "type": "string" } } ], @@ -38888,7 +40134,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.AgentUsageResponse" + "$ref": "#/components/schemas/sandboxes.GrepResponse" } } } @@ -38898,7 +40144,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38908,16 +40174,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.GrepRequest" + } + } + } + } } }, - "/v1/platform/fleet/usage/models": { + "/api/v2/sandboxes/{sandbox_id}/tunnel": { "get": { "security": [ { @@ -38930,80 +40206,60 @@ "Bearer Auth": [] } ], - "description": "Returns the top models used in the workspace with aggregated cost and distinct run counts for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change.", + "description": "Open a WebSocket tunnel to a specific port inside a sandbox.", "tags": [ - "fleet usage" + "sandboxes" ], - "summary": "List fleet models with usage", + "summary": "Open a sandbox TCP tunnel", "parameters": [ { - "description": "Max results (max 100)", - "name": "limit", - "in": "query", - "schema": { - "default": 20, - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Start of window (ISO8601)", - "name": "start_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Start Time" - } - }, - { - "description": "End of window (ISO8601)", - "name": "end_time", - "in": "query", + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "End Time" - } - }, - { - "description": "Sort field (cost, runs, last_used)", - "name": "sort_by", - "in": "query", - "schema": { - "default": "cost", - "type": "string", - "title": "Sort By" + "type": "string" } }, { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", + "description": "Target sandbox TCP port", + "name": "X-Sandbox-Port", + "in": "header", "schema": { - "default": "desc", - "type": "string", - "title": "Sort Order" + "type": "integer" } } ], "responses": { - "200": { - "description": "OK", + "101": { + "description": "WebSocket upgrade" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.ModelUsageResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39013,17 +40269,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/usage/tools": { - "get": { + "/api/v2/sandboxes/{sandbox_id}/upload": { + "post": { "security": [ { "API Key": [] @@ -39035,60 +40291,29 @@ "Bearer Auth": [] } ], - "description": "Returns the top tools in the workspace with run counts, latency, and agent counts for the given time window. Defaults to sorting by runs descending; pass sort_by and sort_order to change.", + "description": "Upload a file to a sandbox filesystem path.", "tags": [ - "fleet usage" + "sandboxes" ], - "summary": "List fleet tools with usage", + "summary": "Upload a sandbox file", "parameters": [ { - "description": "Max results (max 100)", - "name": "limit", - "in": "query", - "schema": { - "default": 20, - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Start of window (ISO8601)", - "name": "start_time", - "in": "query", + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Start Time" + "type": "string" } }, { - "description": "End of window (ISO8601)", - "name": "end_time", + "description": "Destination file path", + "name": "path", "in": "query", "required": true, "schema": { "type": "string", - "title": "End Time" - } - }, - { - "description": "Sort field (runs, avg_latency_ms, agent_count, last_used)", - "name": "sort_by", - "in": "query", - "schema": { - "default": "runs", - "type": "string", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", - "schema": { - "default": "desc", - "type": "string", - "title": "Sort Order" + "title": "Path" } } ], @@ -39098,7 +40323,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.ToolUsageResponse" + "$ref": "#/components/schemas/sandboxes.UploadResponse" } } } @@ -39108,7 +40333,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39118,244 +40363,255 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary", + "description": "File to upload" + } + }, + "required": [ + "file" + ] + } + } + } + } } }, - "/v1/platform/fleet/usage/users": { - "get": { + "/api/v2/threads/query": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns the top users with aggregated cost data for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change.", + "description": "Query threads within a project (session), with cursor-based pagination.\nReturns threads matching the given time range and optional filters.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "fleet usage" + "threads" ], - "summary": "List fleet users with usage", - "parameters": [ - { - "description": "Max results (max 100)", - "name": "limit", - "in": "query", - "schema": { - "default": 20, - "type": "integer", - "title": "Limit" + "summary": "Query Threads", + "parameters": [], + "responses": { + "200": { + "description": "items and pagination", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/threads.QueryThreadsResponseBody" + } + } } }, - { - "description": "Start of cost window (ISO8601)", - "name": "start_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Start Time" - } - }, - { - "description": "End of cost window (ISO8601)", - "name": "end_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "End Time" + "400": { + "description": "bad request (malformed JSON or invalid parameters)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } } }, - { - "description": "Sort field (cost, runs, agent_count, last_used, first_used)", - "name": "sort_by", - "in": "query", - "schema": { - "default": "cost", - "type": "string", - "title": "Sort By" + "401": { + "description": "missing or invalid authentication", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } } }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", - "schema": { - "default": "desc", - "type": "string", - "title": "Sort Order" - } - } - ], - "responses": { - "200": { - "description": "OK", + "403": { + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.UserUsageResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "x-hidden": true - } - }, - "/v1/platform/gateway-policies": { - "get": { - "security": [ - { - "API Key": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Returns every gateway policy in the current organization.\nThe response includes both admin-created policies and\nruntime-materialized children of `default_spend_cap`\npolicies (children carry `parent_policy_id`).\n\n**Spend tracking:** each spend-cap policy carries\n`current_spend_usd` — the spend accumulated in the policy's\nactive window.", - "tags": [ - "gateway-policies" - ], - "summary": "List gateway policies", - "responses": { - "200": { - "description": "OK", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "501": { + "description": "V2 filter syntax or thread_filters are unavailable for this deployment; use legacy function-style filters without thread_filters or set SMITHDB_QUERY_ENABLED=true", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "504": { + "description": "gateway timeout or deadline exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "parameters": [] - }, - "post": { + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/threads.QueryThreadsRequestBody" + } + } + } + } + } + }, + "/api/v2/threads/{thread_id}/share": { + "get": { "security": [ { "API Key": [] }, + { + "Tenant ID": [] + }, { "Bearer Auth": [] } ], - "description": "Creates a gateway policy for the calling organization.\n\n**policy_type** is one of `spend_cap`, `default_spend_cap`, or\n`guard`. The shape of `config` depends on policy_type:\n- `spend_cap` / `default_spend_cap`:\n`{\"window\": \"hourly\"|\"daily\"|\"weekly\"|\"monthly\", \"limit_usd\": }`\n- `guard`:\n`{\"version\": 1, \"detect\": {\"pii\": , \"secrets\": }, \"timeout_seconds\": }`\n`timeout_seconds` (optional, 0.1–30) caps guard pipeline execution time; defaults to 2s.\n\n**subject_matchers** is a list of `{key, value}` pairs.\n`key` is one of `organization_id`, `workspace_id`, `user_id`,\n`api_key_id`, or `run_rule_id`. Multiple matchers AND together. A\n`default_spend_cap` uses `{key, value: \"\"}` so the runtime\nmaterializes a per-subject child for every distinct subject\nof that kind it sees in request metadata.\n\n**action** is currently always `block`. Spend caps reject the\nrequest with 402 when the limit is hit; guard policies redact\nmatched content in-place before forwarding upstream.\n\n**Upsert by matchers:** if a policy with the same\n`subject_matchers` already exists in this organization, the\nexisting policy is updated in place instead of a duplicate\nbeing created. `id` is preserved. Returns 201 either way.", + "description": "Returns the share token for a thread, or 404 when it is not\nshared. Gated on runs:share so the control's state matches the\ncontrol's permission.", "tags": [ - "gateway-policies" + "threads" + ], + "summary": "Read a thread's share state", + "parameters": [ + { + "description": "Thread ID", + "name": "thread_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Project UUID", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Project Id" + } + } ], - "summary": "Create a gateway policy", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/threadshare.ShareTokenResponseBody" } } } }, "400": { - "description": "validation failure (bad matchers, unknown policy_type, missing required field)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "missing or invalid auth", + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "LLM Gateway not enabled for the organization, or caller lacks OrganizationManage", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "policy name conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39365,60 +40621,39 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-codeSamples": [ - { - "label": "spend_cap", - "lang": "json", - "source": "{\n \"name\": \"monthly-cap\",\n \"policy_type\": \"spend_cap\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 100}\n}" - }, - { - "label": "guard", - "lang": "json", - "source": "{\n \"name\": \"redact-pii\",\n \"policy_type\": \"guard\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 3}\n}" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.CreateGatewayPolicyRequest" - } - } - } - } - } - }, - "/v1/platform/gateway-policies/{id}": { - "get": { + "x-public": true + }, + "post": { "security": [ { "API Key": [] }, + { + "Tenant ID": [] + }, { "Bearer Auth": [] } ], - "description": "Returns a single gateway policy by id. Cross-org access is\nrejected with 404\n\n**Spend tracking:** spend-cap policies include\n`current_spend_usd` for the active window so callers can\nread per-policy cost without hitting a separate endpoint.\nGuard policies leave it null.", + "description": "Mints a public share token for a thread. Idempotent: sharing an\nalready-shared thread returns the existing token.", "tags": [ - "gateway-policies" + "threads" ], - "summary": "Get a gateway policy", + "summary": "Share a thread", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], @@ -39428,7 +40663,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/threadshare.ShareTokenResponseBody" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39438,27 +40683,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "policy not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39468,11 +40713,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "Not Implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/threadshare.CreateShareTokenRequestBody" + } + } + } } }, "delete": { @@ -39480,24 +40746,37 @@ { "API Key": [] }, + { + "Tenant ID": [] + }, { "Bearer Auth": [] } ], - "description": "Deletes a gateway policy. Subsequent reads return 404.\n\n**default_spend_cap cascade:** deleting a `default_spend_cap`\nalso deletes every child policy materialized from it.", + "description": "Deletes the share token for a thread. Idempotent: returns 204\nwhether or not a share token existed. Deliberately does not\nverify the thread still exists.", "tags": [ - "gateway-policies" + "threads" ], - "summary": "Delete a gateway policy", + "summary": "Unshare a thread", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Project UUID", + "name": "project_id", + "in": "query", + "required": true, "schema": { "type": "string", - "format": "uuid" + "format": "uuid", + "title": "Project Id" } } ], @@ -39505,32 +40784,32 @@ "204": { "description": "No Content" }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "policy not found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39540,157 +40819,217 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "patch": { + }, + "x-public": true + } + }, + "/api/v2/threads/{thread_id}/stats": { + "get": { "security": [ { - "API Key": [] + "API Key": [], + "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Partially updates a gateway policy. Only fields present in\nthe request body are applied; absent fields are left\nunchanged. `policy_type` is immutable — to change a\npolicy's type, delete it and create a new one.\n\n**config** if supplied must match the policy's type:\n- spend-cap: `{\"window\": ..., \"limit_usd\": ...}`\n- guard: `{\"version\": 1, \"detect\": {...}, \"timeout_seconds\": }`\nMismatched shapes are rejected with 400.\n\n**default_spend_cap cascade:** editing a `default_spend_cap`\nupdates the config/action/enabled/priority on every\nattached child policy so the template stays the source of\ntruth across rollouts.", + "description": "Compute aggregate stats for a single thread (turn count, latency percentiles, token/cost sums, and detail breakdowns) within a project.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "gateway-policies" + "threads" ], - "summary": "Update a gateway policy", + "summary": "Query Single Thread Stats", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "`filter` narrows which of the thread's traces are aggregated, using a LangSmith filter expression. For example: lt(start_time, \"2025-01-01T00:00:00Z\") or eq(trace_id, \"0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "name": "filter", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "title": "Filter" + } + }, + { + "example": [ + "TURNS", + "LATENCY_P50" + ], + "description": "`selects` lists which aggregate stats to compute and return (repeatable query parameter). At least one value is required. Accepts any value of `SingleThreadStatsSelectField`.", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + "TURNS", + "FIRST_START_TIME", + "LAST_START_TIME", + "LAST_END_TIME", + "LATENCY_P50", + "LATENCY_P99", + "PROMPT_TOKENS", + "PROMPT_COST", + "COMPLETION_TOKENS", + "COMPLETION_COST", + "TOTAL_TOKENS", + "TOTAL_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "FEEDBACK_STATS" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" + } + }, + { + "description": "`session_id` is the tracing project (session) UUID (required).", + "name": "session_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Session Id" } } ], "responses": { "200": { - "description": "OK", + "description": "aggregate stats for the thread", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" } } } }, "400": { - "description": "validation failure", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "policy not found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "matcher edit collides with another policy in the same family", + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "x-codeSamples": [ - { - "label": "spend_cap", - "lang": "json", - "source": "{\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 200},\n \"enabled\": false\n}" }, - { - "label": "guard", - "lang": "json", - "source": "{\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 5},\n \"enabled\": true\n}" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.UpdateGatewayPolicyRequest" + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } } } } - } + }, + "x-public": true } }, - "/v1/platform/hub/repos/{owner}/{repo}/directories": { + "/api/v2/threads/{thread_id}/traces": { "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.", + "description": "Retrieve all traces belonging to a specific thread within a project.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "directories" + "threads" ], - "summary": "Get directory contents", + "summary": "Query Thread Traces", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, "schema": { @@ -39698,465 +41037,474 @@ } }, { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, + "description": "`cursor` is the opaque string from a previous response's `next_cursor`. Omit on the first request; pass the returned cursor to fetch the next page.", + "name": "cursor", + "in": "query", "schema": { - "type": "string" + "type": "string", + "title": "Cursor" } }, { - "description": "Commit hash/tag to resolve (defaults to latest)", - "name": "commit", + "description": "`filter` narrows which traces are returned for this thread, using a LangSmith filter expression evaluated against each root trace run.\nFor example: eq(status, \"success\") or has(tags, \"production\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "name": "filter", "in": "query", "schema": { "type": "string", - "title": "Commit" + "title": "Filter" + } + }, + { + "example": 20, + "description": "`page_size` is the maximum number of traces to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set.", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "minimum": 1, + "maximum": 100, + "title": "Page Size" + } + }, + { + "description": "`project_id` is the tracing project UUID (required).", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Project Id" + } + }, + { + "example": [ + "NAME", + "START_TIME" + ], + "description": "`selects` lists which properties to include on each returned trace (repeatable query parameter). Accepts any value of the `ThreadTraceSelectField` enum. Properties not listed are omitted from each trace object; `trace_id` is always returned.", + "name": "selects", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + "THREAD_ID", + "TRACE_ID", + "OP", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_TOKENS", + "START_TIME", + "END_TIME", + "LATENCY", + "FIRST_TOKEN_TIME", + "INPUTS_PREVIEW", + "OUTPUTS_PREVIEW", + "INPUTS", + "OUTPUTS", + "ERROR", + "PROMPT_COST", + "COMPLETION_COST", + "TOTAL_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "NAME", + "ERROR_PREVIEW" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], "responses": { "200": { - "description": "OK", + "description": "items and pagination", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.GetDirectoryResponse" + "$ref": "#/components/schemas/threads.QueryThreadTracesResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "session not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "V2 filter syntax is unavailable for this deployment; use legacy function-style filters or set SMITHDB_QUERY_ENABLED=true", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "delete": { + }, + "x-public": true + } + }, + "/api/v2/traces/query": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Deletes an agent or skill repository and its owned child file repositories.", + "description": "Returns a paginated list of traces (root runs) for a single tracing project. Each item carries the trace's root run plus optional trace-wide aggregates (`total_tokens`, `total_cost`, `first_token_time`) under `trace_aggregates`, so clients never have to merge by `trace_id`.\n\nTraces are scanned within a `start_time` window: `min_start_time` defaults to 24 hours before the request, `max_start_time` defaults to the request time. Set either explicitly to widen or narrow the window.\n\nSupports filters (`trace_filter`, `tree_filter`), cursor pagination (`cursor`), and field projection (`selects`).\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "directories" + "runs" ], - "summary": "Delete directory repository", + "summary": "Query traces", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, + "description": "application/json (required for JSON body)", + "name": "Content-Type", + "in": "header", "schema": { "type": "string" } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "403": { - "description": "Forbidden", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/query.QueryTracesResponseBody" } } } }, - "404": { - "description": "Not Found", + "400": { + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - } - }, - "/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations.", - "tags": [ - "directories" - ], - "summary": "Create directory commit", - "parameters": [ - { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } }, - { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", + "403": { + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.CommitResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "session not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "501": { + "description": "V2 filter syntax is unavailable for this deployment; use legacy function-style filters or set SMITHDB_QUERY_ENABLED=true", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "504": { + "description": "gateway timeout or deadline exceeded", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.CreateDirectoryCommitRequest" + "$ref": "#/components/schemas/query.QueryTracesRequestBody" } } } } } }, - "/v1/platform/issues": { + "/api/v2/traces/{trace_id}/runs": { "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns issues for the authenticated tenant, optionally filtered\nby session, status, severity, tag, or last modified time.", + "description": "Returns runs for a trace ID within min/max start time. Optional `filter`; repeatable `selects` to select fields to return.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "issues" + "runs" ], - "summary": "[Beta] List issues", + "summary": "List runs in a trace", "parameters": [ { - "description": "Filter by session ID (UUID)", - "name": "session_id", - "in": "query", + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { - "type": "string", - "title": "Session Id" + "type": "string" } }, { - "description": "Filter by session name (exact match)", - "name": "session_name", - "in": "query", + "description": "Trace UUID", + "name": "trace_id", + "in": "path", + "required": true, "schema": { "type": "string", - "title": "Session Name" + "format": "uuid" } }, { - "description": "Filter by status", - "name": "status", + "description": "`filter` narrows which runs within this trace are returned, using a LangSmith filter expression evaluated against each run. For example: `eq(run_type, \"llm\")` for LLM runs only, or `eq(status, \"error\")` for failed runs.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "name": "filter", "in": "query", "schema": { "type": "string", - "enum": [ - "open", - "completed", - "ignored" - ], - "title": "Status" - } - }, - { - "description": "Filter by severity", - "name": "severity", - "in": "query", - "schema": { - "type": "integer", - "enum": [ - 0, - 1, - 2, - 3 - ], - "title": "Severity" + "title": "Filter" } }, { - "description": "Filter by tag (exact match)", - "name": "tag", + "description": "`max_start_time` is the optional inclusive upper bound for run `start_time` (RFC3339 date-time). Required together with `min_start_time`.", + "name": "max_start_time", "in": "query", "schema": { "type": "string", - "title": "Tag" + "format": "date-time", + "title": "Max Start Time" } }, { - "description": "Return only issues updated at or after this RFC3339 timestamp", - "name": "updated_at", + "description": "`min_start_time` is the optional inclusive lower bound for run `start_time` (RFC3339 date-time). Required together with `max_start_time`.", + "name": "min_start_time", "in": "query", "schema": { "type": "string", - "title": "Updated At" + "format": "date-time", + "title": "Min Start Time" } }, { - "description": "Sort field", - "name": "sort_by", + "description": "`project_id` is the UUID of the tracing project that owns the trace.", + "name": "project_id", "in": "query", + "required": true, "schema": { "type": "string", - "enum": [ - "created_at", - "updated_at", - "severity" - ], - "title": "Sort By" - } - }, - { - "description": "Page size (positive integer)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "title": "Limit" + "format": "uuid", + "title": "Project Id" } }, { - "description": "Page offset (non-negative integer)", - "name": "offset", + "description": "`selects` lists which properties to include on each returned run (repeatable query parameter). Accepts any value of the `RunSelectField` enum. If omitted, only `id` is returned.", + "name": "selects", "in": "query", + "style": "form", + "explode": true, "schema": { - "type": "integer", - "title": "Offset" + "items": { + "enum": [ + "ID", + "NAME", + "RUN_TYPE", + "STATUS", + "START_TIME", + "END_TIME", + "LATENCY_SECONDS", + "FIRST_TOKEN_TIME", + "ERROR", + "ERROR_PREVIEW", + "EXTRA", + "METADATA", + "EVENTS", + "INPUTS", + "INPUTS_PREVIEW", + "OUTPUTS", + "OUTPUTS_PREVIEW", + "MANIFEST", + "PARENT_RUN_IDS", + "PROJECT_ID", + "TRACE_ID", + "THREAD_ID", + "DOTTED_ORDER", + "IS_ROOT", + "REFERENCE_EXAMPLE_ID", + "REFERENCE_DATASET_ID", + "TOTAL_TOKENS", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_COST", + "PROMPT_COST", + "COMPLETION_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "PRICE_MODEL_ID", + "TAGS", + "APP_PATH", + "ATTACHMENTS", + "THREAD_EVALUATION_TIME", + "IS_IN_DATASET", + "LAST_QUEUED_AT", + "SHARE_URL", + "FEEDBACK_STATS" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], @@ -40166,135 +41514,107 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues.Issue" - } + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - } - }, - "/v1/platform/issues-agent": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] - } - ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns every issues agent config configured for the authenticated tenant.", - "tags": [ - "issues-agent" - ], - "summary": "[Beta] List issues agent configs", - "responses": { - "200": { - "description": "OK", + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "501": { + "description": "V2 filter syntax is unavailable for this deployment; use legacy function-style filters or set SMITHDB_QUERY_ENABLED=true", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "504": { + "description": "gateway timeout or deadline exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "parameters": [] + "x-public": true } }, - "/v1/platform/issues/{id}/views": { - "post": { + "/auth/public": { + "get": { "security": [ { "API Key": [] @@ -40306,133 +41626,83 @@ "Bearer Auth": [] } ], - "description": "**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.", + "description": "Returns public authentication information for the current workspace-level session.", "tags": [ - "issues" - ], - "summary": "[Beta] Mark issue viewed", - "parameters": [ - { - "description": "Issue ID (UUID)", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "auth" ], + "summary": "Get public auth info", "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/authn.PublicAuthInfo" } } } } - } + }, + "x-public": true, + "parameters": [] } }, - "/v1/platform/mcp-vendors": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the catalog of available MCP vendors.", + "/aws-marketplace/register": { + "post": { + "description": "Receives the x-amzn-marketplace-token posted by AWS Marketplace when a customer clicks \"Set Up Account\", resolves the customer identity, stores it in the DB, and redirects to the thank-you page.", "tags": [ - "mcp_vendors" + "aws_marketplace" ], - "summary": "List MCP vendors", + "summary": "AWS Marketplace fulfillment URL registration", + "parameters": [], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" - } - } - } + "303": { + "description": "Redirect to thank-you page" }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "string" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "string" } } } } }, - "parameters": [] + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "x-amzn-marketplace-token": { + "type": "string", + "description": "Registration token from AWS Marketplace" + } + }, + "required": [ + "x-amzn-marketplace-token" + ] + } + } + } + } } }, - "/v1/platform/mcp-vendors/{vendor_slug}": { + "/datasets/{dataset_id}/experiment-view-overrides": { "get": { "security": [ { @@ -40445,68 +41715,94 @@ "Bearer Auth": [] } ], - "description": "Returns vendor metadata and current settings.", + "description": "Retrieves all experiment view override configurations for a specific dataset.\nThis endpoint returns column display overrides including color gradients,\nprecision settings, and column visibility configurations that customize how\nexperiment results are displayed in the UI.\n\nThe response includes all column overrides with their display settings:\n- Column identifiers (must start with inputs, outputs, reference_outputs, feedback, metrics, attachments, or metadata)\n- Color gradients for numeric data visualization\n- Precision settings for numeric columns (1-6 decimal places)\n- Hide flags to control column visibility", "tags": [ - "mcp_vendors" + "experiment-view-overrides" ], - "summary": "Get MCP vendor", + "summary": "Get experiment view override configurations for a dataset", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "OK", + "description": "Successfully retrieved experiment view override configurations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.GetMcpVendorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + } } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Invalid dataset ID format\" example({\"error\":\"invalid dataset ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "Not Found", + "description": "Dataset not found or not accessible\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/account": { - "get": { + }, + "x-public": true + }, + "post": { "security": [ { "API Key": [] @@ -40518,87 +41814,128 @@ "Bearer Auth": [] } ], - "description": "Resolves OAuth token and returns the vendor's account info.", + "description": "Creates a new experiment view override configuration for a dataset with column display settings.\nThis endpoint allows you to customize how experiment results are displayed by configuring\ncolumn-specific overrides including colors, precision, and visibility.\n\nThe request must include a 'column_overrides' array with at least one override configuration.\nEach column override can specify:\n- column: Required field name (must start with inputs, outputs, reference_outputs, feedback, metrics, attachments, or metadata)\n- color_gradient: Optional array of [number, color] tuples for numeric data visualization\n- precision: Optional number (1-6) for decimal places in numeric columns\n- hide: Optional boolean to control column visibility\n\nExample request body:\n{\n\"column_overrides\": [\n{\n\"column\": \"outputs.accuracy\",\n\"color_gradient\": [[0.0, \"#ff0000\"], [0.5, \"#ffff00\"], [1.0, \"#00ff00\"]],\n\"precision\": 3\n},\n{\n\"column\": \"inputs.model_type\",\n\"hide\": false\n}\n]\n}\n\nThis operation fails if an override already exists for the dataset (use PATCH to update).", "tags": [ - "mcp_vendors" + "experiment-view-overrides" ], - "summary": "Get vendor account", + "summary": "Create new experiment view override configuration for a dataset", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Successfully created experiment view override", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid request data\" example({\"error\":\"column_overrides field is required\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "401": { - "description": "Unauthorized", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Dataset not found\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "409": { + "description": "Override already exists\" example({\"error\":\"experiment view override already exists\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "502": { - "description": "Bad Gateway", + "422": { + "description": "Validation error\" example({\"error\":\"column name at index 0 must start with one of: inputs, outputs, reference_outputs, feedback, metrics, attachments, metadata\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } + }, + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePostRequest" + } + } } } } }, - "/v1/platform/mcp-vendors/{vendor_slug}/mcp-servers": { + "/datasets/{dataset_id}/experiment-view-overrides/{id}": { "get": { "security": [ { @@ -40611,106 +41948,102 @@ "Bearer Auth": [] } ], - "description": "Returns the MCP gateways from the vendor for the workspace's configured org/project.", + "description": "Retrieves a specific experiment view override configuration using both dataset ID and override ID.\nThis endpoint provides more precise access to experiment view overrides when you have\nthe specific override ID, useful for direct links or cached references.\n\nThe response includes the same column override information as the dataset-level endpoint:\n- Column identifiers with validation prefixes\n- Color gradient settings for numeric data visualization\n- Numeric precision configurations\n- Column visibility controls\n\nBoth the dataset and override must exist and be accessible by the authenticated user.", "tags": [ - "mcp_vendors" + "experiment-view-overrides" ], - "summary": "List MCP servers for a vendor", + "summary": "Get experiment view override configuration by specific ID", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" - } - }, - { - "description": "Max items to return (default 100)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "title": "Limit" + "type": "string", + "format": "uuid" } }, { - "description": "Number of items to skip (default 0)", - "name": "offset", - "in": "query", + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, "schema": { - "type": "integer", - "title": "Offset" + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "OK", + "description": "Successfully retrieved experiment view override configuration", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListMcpGatewaysResponse" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "Not Found", + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/settings": { - "get": { + }, + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -40722,157 +42055,95 @@ "Bearer Auth": [] } ], - "description": "Returns the current vendor-specific settings.", + "description": "Permanently deletes an experiment view override configuration for a dataset.\nThis operation removes all column override settings including color gradients,\nprecision configurations, and visibility settings.\n\nAfter deletion, the experiment view will revert to default column display settings.\nThis action cannot be undone - you will need to recreate the override configuration\nif you want to restore custom column settings.\n\nBoth the dataset and override must exist and be accessible by the authenticated user.\nThe operation will fail if the override doesn't exist or if the user doesn't have\nappropriate permissions for the dataset.", "tags": [ - "mcp_vendors" + "experiment-view-overrides" ], - "summary": "Get vendor settings", + "summary": "Delete experiment view override configuration", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } + "type": "string", + "format": "uuid" } - } - } - }, - "put": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, { - "Bearer Auth": [] - } - ], - "description": "Replaces vendor settings.", - "tags": [ - "mcp_vendors" - ], - "summary": "Replace vendor settings", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" - } - } - } + "204": { + "description": "Successfully deleted experiment view override (no content returned)" }, "400": { - "description": "Bad Request", + "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "401": { - "description": "Unauthorized", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" - } - } - } - } + "x-public": true }, - "post": { + "patch": { "security": [ { "API Key": [] @@ -40884,96 +42155,127 @@ "Bearer Auth": [] } ], - "description": "Initializes vendor settings.", + "description": "Updates an existing experiment view override configuration by completely replacing\nthe column overrides for the specified dataset and override ID.\n\nThis endpoint performs a complete replacement of the column overrides configuration.\nAll existing column overrides will be replaced with the new configuration provided\nin the request body. To add or modify individual columns, include the complete\ndesired configuration in the request.\n\nThe request format is identical to the create endpoint:\n- column_overrides: Required array with at least one override configuration\n- Each override can specify color gradients, precision, and visibility\n\nExample request body:\n{\n\"column_overrides\": [\n{\n\"column\": \"metrics.f1_score\",\n\"color_gradient\": [[0.0, \"#ff4444\"], [0.8, \"#44ff44\"]],\n\"precision\": 4\n},\n{\n\"column\": \"feedback.rating\",\n\"hide\": false\n}\n]\n}\n\nBoth the dataset and override must exist and be accessible by the authenticated user.", "tags": [ - "mcp_vendors" + "experiment-view-overrides" ], - "summary": "Create vendor settings", + "summary": "Update existing experiment view override configuration", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "Successfully updated experiment view override", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid request data\" example({\"error\":\"invalid experiment view override ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "401": { - "description": "Unauthorized", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Validation error\" example({\"error\":\"'precision' must be between 1 and 6 for column at index 0\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "409": { - "description": "Conflict", + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePatchRequest" } } } } - }, - "delete": { + } + }, + "/me/providers/{providerType}": { + "get": { "security": [ { "API Key": [] @@ -40985,15 +42287,15 @@ "Bearer Auth": [] } ], - "description": "Removes vendor settings.", + "description": "Returns the provider user ID associated with the authenticated user for a given provider type, or null if not set. Scoped to the current tenant.", "tags": [ - "mcp_vendors" + "me" ], - "summary": "Delete vendor settings", + "summary": "Get the authenticated user's provider user ID", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Provider type (e.g. slack, github)", + "name": "providerType", "in": "path", "required": true, "schema": { @@ -41007,45 +42309,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "type": "string" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "string" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "string" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "type": "string" } } } } - } + }, + "x-public": true } }, - "/v1/platform/mcp-vendors/{vendor_slug}/tools": { + "/oauth/authorize": { "get": { "security": [ { @@ -41058,103 +42361,112 @@ "Bearer Auth": [] } ], - "description": "Returns the tool catalog for this vendor.", + "description": "Validates authorization request parameters and redirects to the frontend consent page per RFC 6749.", "tags": [ - "mcp_vendors" + "oauth" ], - "summary": "List tools for a vendor", + "summary": "Initiate OAuth2 authorization", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", + "description": "Must be 'code'", + "name": "response_type", + "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "title": "Response Type" } }, { - "description": "Max tools to return (default 50)", - "name": "limit", + "description": "OAuth2 client ID", + "name": "client_id", "in": "query", + "required": true, "schema": { - "type": "integer", - "title": "Limit" + "type": "string", + "title": "Client Id" } }, { - "description": "Number of tools to skip (default 0)", - "name": "offset", + "description": "Redirect URI registered with the client", + "name": "redirect_uri", "in": "query", + "required": true, "schema": { - "type": "integer", - "title": "Offset" + "type": "string", + "title": "Redirect Uri" } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListVendorToolsResponse" - } - } + }, + { + "description": "PKCE code challenge", + "name": "code_challenge", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Code Challenge" } }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } + { + "description": "PKCE method, must be 'S256'", + "name": "code_challenge_method", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Code Challenge Method" } }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } + { + "description": "Opaque state value to prevent CSRF", + "name": "state", + "in": "query", + "schema": { + "type": "string", + "title": "State" } + } + ], + "responses": { + "302": { + "description": "Found" }, - "404": { - "description": "Not Found", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } - } + }, + "x-public": true } }, - "/v1/platform/nps/response": { + "/oauth/authorize/approve": { "post": { "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, { "Bearer Auth": [] } ], - "description": "Records the authenticated user's NPS score and optional comment.", + "description": "Issues an authorization code after the authenticated user approves the request. Called by the frontend consent page. Requires authentication.", "tags": [ - "nps" + "oauth" ], - "summary": "Submit an NPS response", + "summary": "Approve OAuth2 authorization request", "parameters": [], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "JSON body with redirect_uri the frontend should navigate the browser to", "content": { "application/json": { "schema": { @@ -41166,55 +42478,172 @@ } } }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/nps.SubmitResponseRequest" + "type": "object", + "properties": { + "organization_id": { + "type": "string", + "description": "Organization ID; must match the authenticated org" + }, + "workspace_id": { + "type": "string", + "description": "Default workspace ID; must belong to organization and be accessible to user" + }, + "client_id": { + "type": "string", + "description": "OAuth2 client ID" + }, + "redirect_uri": { + "type": "string", + "description": "Redirect URI registered with the client" + }, + "code_challenge": { + "type": "string", + "description": "PKCE code challenge" + }, + "code_challenge_method": { + "type": "string", + "description": "PKCE method, must be 'S256'" + }, + "state": { + "type": "string", + "description": "Opaque state value to prevent CSRF" + } + }, + "required": [ + "organization_id", + "client_id", + "redirect_uri", + "code_challenge", + "code_challenge_method" + ] + } + } + } + } + } + }, + "/oauth/client/{clientID}": { + "get": { + "description": "Returns the display metadata (name, logo, homepage/terms/privacy links) for a registered OAuth2 client. Used by the consent screen to show a human-readable client identity instead of the raw client_id. Public endpoint; exposes only non-sensitive display fields.", + "tags": [ + "oauth" + ], + "summary": "Get public OAuth2 client metadata", + "parameters": [ + { + "description": "OAuth2 client ID", + "name": "clientID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.ClientPublicMetadata" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/ops/backfills/restart": { + "/oauth/device/authorize": { "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes the backfill job record, causing the backfill to restart from the beginning on the next cron tick. Requires instance admin access.", + "description": "Marks a device code as authorized for the authenticated user. Called by the /activate page when the user enters their user code. Requires authentication.", "tags": [ - "backfills" + "oauth" ], - "summary": "Restart a backfill job", + "summary": "Authorize a device code", "parameters": [], "responses": { "200": { - "description": "Backfill restarted", + "description": "OK", "content": { "application/json": { "schema": { @@ -41227,321 +42656,359 @@ } }, "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "404": { - "description": "Backfill not found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "500": { - "description": "Internal server error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/backfills.restartBackfillRequest" + "type": "object", + "properties": { + "organization_id": { + "type": "string", + "description": "Organization ID; must match the authenticated org" + }, + "workspace_id": { + "type": "string", + "description": "Default workspace ID; must belong to organization and be accessible to user" + }, + "user_code": { + "type": "string", + "description": "User code displayed on the device" + } + }, + "required": [ + "organization_id", + "user_code" + ] } } } } } }, - "/v1/platform/orgs/current/access-policies": { - "get": { + "/oauth/device/code": { + "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Lists all access policies for the organization.", + "description": "Issues a device code and user code for the device authorization flow per RFC 8628.", "tags": [ - "access_policies" + "oauth" ], - "summary": "List access policies", + "summary": "Request OAuth2 device authorization", + "parameters": [], "responses": { "200": { - "description": "List of access policies", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.ListAccessPoliciesResponse" + "$ref": "#/components/schemas/oauth.DeviceCodeResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, "500": { - "description": "Internal server error", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "description": "OAuth2 client ID" + } + }, + "required": [ + "client_id" + ] } } } - }, - "parameters": [] - }, + } + } + }, + "/oauth/register": { "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Creates a new access policy.", + "description": "Public RFC 7591 Dynamic Client Registration endpoint. Only mints public clients with allowed loopback, HTTPS, or native client redirect URIs. Body limit 8 KB.", "tags": [ - "access_policies" + "oauth" ], - "summary": "Create an access policy", + "summary": "Register an OAuth2 dynamic client", "parameters": [], "responses": { "201": { - "description": "Access policy created", + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.AccessPolicyCreateResponse" + "$ref": "#/components/schemas/oauth.ClientRegistrationResponse" } } } }, "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "404": { - "description": "Role not found", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.CreateAccessPolicyPayload" + "$ref": "#/components/schemas/oauth.ClientRegistrationRequest" } } } } } }, - "/v1/platform/orgs/current/access-policies/roles/{role_id}/access-policies": { + "/oauth/revoke": { "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Attaches one or more access policies to a specific role. The request body must contain an array of access policy IDs.", + "description": "Revokes an access token or refresh token per RFC 7009. Always returns 200 regardless of whether the token was found.", "tags": [ - "access_policies" - ], - "summary": "Attach access policies to a role", - "parameters": [ - { - "description": "Role ID", - "name": "role_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "Revoke an OAuth2 token", + "parameters": [], "responses": { - "204": { - "description": "Access policies attached successfully" - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } + "200": { + "description": "OK" + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "Token to revoke (access token or refresh token)" + } + }, + "required": [ + "token" + ] } } + } + } + } + }, + "/oauth/token": { + "post": { + "security": [ + { + "API Key": [] }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } + { + "Tenant ID": [] }, - "404": { - "description": "Role not found", + { + "Bearer Auth": [] + } + ], + "description": "Token endpoint that dispatches by grant_type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token.", + "tags": [ + "oauth" + ], + "summary": "Exchange grant for OAuth2 tokens", + "parameters": [], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenResponse" } } } }, - "500": { - "description": "Internal server error", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" + "type": "object", + "properties": { + "grant_type": { + "type": "string", + "description": "Grant type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token" + }, + "client_id": { + "type": "string", + "description": "OAuth2 client ID" + }, + "code": { + "type": "string", + "description": "Authorization code (authorization_code grant)" + }, + "code_verifier": { + "type": "string", + "description": "PKCE code verifier (authorization_code grant)" + }, + "redirect_uri": { + "type": "string", + "description": "Redirect URI (authorization_code grant)" + }, + "device_code": { + "type": "string", + "description": "Device code (device_code grant)" + }, + "refresh_token": { + "type": "string", + "description": "Refresh token (refresh_token grant)" + } + }, + "required": [ + "grant_type", + "client_id" + ] } } } } } }, - "/v1/platform/orgs/current/access-policies/{access_policy_id}": { + "/orgs/current/data-planes": { "get": { "security": [ { @@ -41554,59 +43021,57 @@ "Bearer Auth": [] } ], - "description": "Gets a specific access policy by ID.", + "description": "Returns up to 50 data planes owned by the caller's organization. Sorted status priority (active first), then newest first. Requires BYOC to be enabled for the org.", "tags": [ - "access_policies" - ], - "summary": "Get an access policy", - "parameters": [ - { - "description": "Access Policy ID", - "name": "access_policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "data_planes" ], + "summary": "List data planes for the current organization", "responses": { "200": { - "description": "Access policy details", + "description": "Data planes", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.AccessPolicy" + "$ref": "#/components/schemas/data_planes.ListPublicDataPlanesResponse" } } } }, "400": { - "description": "Bad request", + "description": "Invalid organization ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Access policy not found", + "403": { + "description": "BYOC not enabled for this organization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -41616,24 +43081,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true, + "parameters": [] }, - "delete": { + "post": { "security": [ { "API Key": [] @@ -41645,71 +43105,99 @@ "Bearer Auth": [] } ], - "description": "Deletes a specific access policy by ID.", + "description": "Creates a new data plane object. Persists the rendered data plane spec, and returns 202 with the data plane in status=requested. Requires BYOC enabled org and org admin.", "tags": [ - "access_policies" - ], - "summary": "Delete an access policy", - "parameters": [ - { - "description": "Access Policy ID", - "name": "access_policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "data_planes" ], + "summary": "Create a new data plane", + "parameters": [], "responses": { - "204": { - "description": "Access policy deleted successfully" - }, - "400": { - "description": "Bad request", + "202": { + "description": "Data plane requested", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Invalid input", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, - "500": { - "description": "Internal server error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, - "503": { - "description": "Service unavailable", + "403": { + "description": "BYOC not enabled or insufficient permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.ErrorResponse" + } + } + } + }, + "409": { + "description": "Name already exists for this organization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.ErrorResponse" + } + } + } + }, + "422": { + "description": "Customer AWS resource conflict or quota exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.CreateErrorResponse" + } + } + } + }, + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.CreateDataPlaneRequestAws" + } + } + } } } }, - "/v1/platform/orgs/current/info": { - "get": { + "/orgs/current/data-planes/{id}": { + "delete": { "security": [ { "API Key": [] @@ -41721,24 +43209,45 @@ "Bearer Auth": [] } ], - "description": "Returns organization info for the authenticated user's current organization.", + "description": "Verifies that the stored customer AWS role has delete permissions, removes linked workspaces, and starts asynchronous deprovisioning for a data plane owned by the caller's organization. Requires BYOC to be enabled for the org and org admin permissions.", "tags": [ - "Organizations" + "data_planes" + ], + "summary": "Delete a data plane", + "parameters": [ + { + "description": "Data plane ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Get current organization info", "responses": { - "200": { - "description": "Organization info", + "202": { + "description": "Data plane deprovisioning started", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/orgs.OrganizationInfo" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, "400": { - "description": "Invalid organization ID", + "description": "Invalid data plane ID or confirmed missing delete permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -41750,8 +43259,34 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "BYOC not enabled or insufficient permissions", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "404": { + "description": "Data plane not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "409": { + "description": "Data plane is not active", "content": { "application/json": { "schema": { @@ -41777,11 +43312,9 @@ } } }, - "parameters": [] - } - }, - "/v1/platform/orgs/current/members": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -41793,626 +43326,660 @@ "Bearer Auth": [] } ], - "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", + "description": "Update specific settings for a data plane owned by the caller's organization.", "tags": [ - "orgs" + "data_planes" ], - "summary": "List org members with workspace roles", + "summary": "Update data plane settings", "parameters": [ { - "description": "Page size (default 50, max 500)", - "name": "limit", - "in": "query", + "description": "Data plane ID", + "name": "id", + "in": "path", + "required": true, "schema": { - "type": "integer", - "title": "Limit" + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Updated data plane", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.PublicDataPlane" + } + } } }, - { - "description": "Page offset (default 0)", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "title": "Offset" + "400": { + "description": "Invalid request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } } }, - { - "description": "Filter: true = only active members; false = only pending members", - "name": "active_is", - "in": "query", - "schema": { - "type": "boolean", - "title": "Active Is" + "403": { + "description": "BYOC not enabled or insufficient permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } } }, - { - "description": "Filter: true = only pending members; false = only active members", - "name": "pending_is", - "in": "query", - "schema": { - "type": "boolean", - "title": "Pending Is" + "409": { + "description": "Data plane is not ready or its status does not allow updates", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.UpdateDataPlaneRequest" + } } + } + } + } + }, + "/repos/{owner}/{repo}/tags/{tag_name}/history": { + "get": { + "security": [ + { + "API Key": [] }, { - "description": "Glob filter on display name; use * as wildcard (repeatable, matches any)", - "name": "name_like", - "in": "query", - "style": "form", - "explode": true, + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Returns the paginated audit log of transitions for a specific\ntag in a repository. Each entry records a commit change\n(from_commit → to_commit) along with who performed it.", + "tags": [ + "tag-transitions" + ], + "summary": "Get tag transition history", + "parameters": [ + { + "description": "Repository owner (tenant handle)", + "name": "owner", + "in": "path", + "required": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Name Like" + "type": "string" } }, { - "description": "Glob filter on email; use * as wildcard (repeatable, matches any)", - "name": "email_like", - "in": "query", - "style": "form", - "explode": true, + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Email Like" + "type": "string" } }, { - "description": "Glob filter on workspace name or ID; use * as wildcard (repeatable, matches any)", - "name": "workspace_name_like", - "in": "query", - "style": "form", - "explode": true, + "description": "Tag name", + "name": "tag_name", + "in": "path", + "required": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Workspace Name Like" + "type": "string" } }, { - "description": "Glob filter on organization role name; use * as wildcard (repeatable, matches any)", - "name": "organization_role_like", + "name": "limit", "in": "query", - "style": "form", - "explode": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Organization Role Like" + "default": 50, + "type": "integer", + "minimum": 1, + "maximum": 100, + "title": "Limit" } }, { - "description": "Glob filter on workspace role name; use * as wildcard (repeatable, matches any)", - "name": "workspace_role_like", + "name": "offset", "in": "query", - "style": "form", - "explode": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Workspace Role Like" + "default": 0, + "type": "integer", + "minimum": 0, + "title": "Offset" } } ], "responses": { "200": { - "description": "Org members", - "headers": { - "X-Members-List-All-Workspaces": { - "description": "true if caller has organization:manage", + "description": "OK", + "content": { + "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/tag_transitions.TagTransitionHistoryResponse" } - }, - "X-Pagination-Total": { - "description": "Total number of matching members", + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } - }, + } + }, + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orgs.OrgMemberEnriched" - } + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } }, - "400": { - "description": "Bad request", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } - }, - "401": { - "description": "Unauthorized", + } + }, + "x-public": true + } + }, + "/userinfo": { + "get": { + "security": [ + { + "Bearer Auth": [] + } + ], + "description": "Returns identity claims for the user represented by a LangSmith access token whose audience is the identity resource or the API resource. The token is passed as a Bearer credential in the Authorization header (OpenID Connect Core 1.0 §5.3).", + "tags": [ + "oauth" + ], + "summary": "Get OpenID Connect userinfo", + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.UserinfoResponse" } } } }, - "500": { - "description": "Internal server error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } - } + }, + "x-public": true, + "parameters": [] } }, - "/v1/platform/orgs/current/scim/tokens": { + "/v1/agent-builder/integrations": { "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "List all SCIM bearer tokens for the current organization. The full token values are not returned.", + "description": "Returns default policy, integration overrides, and known integrations for the current workspace.", "tags": [ - "SCIM Tokens" + "integrations" ], - "summary": "List SCIM tokens", + "summary": "Get Agent Builder integrations settings", "responses": { "200": { - "description": "List of SCIM tokens", + "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" - } + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "403": { - "description": "Forbidden - requires OrganizationRead permission", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "parameters": [] }, - "post": { + "put": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Create a new SCIM bearer token for the current organization. The full token value is only returned once upon creation.", + "description": "Replaces default policy and integration overrides for the current workspace.", "tags": [ - "SCIM Tokens" + "integrations" ], - "summary": "Create a SCIM token", + "summary": "Update Agent Builder integrations settings", "parameters": [], "responses": { - "201": { - "description": "Created SCIM token with full token value", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ScimTokenSensitiveResponse" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden - requires OrganizationManage permission", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.CreateScimTokenPayload" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsUpdatePayload" } } } } } }, - "/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { + "/v1/fleet/orgs": { "get": { "security": [ { "API Key": [] }, - { - "Organization ID": [] - }, { "Bearer Auth": [] } ], - "description": "Retrieve a specific SCIM token by ID for the current organization. The full token value is not returned.", + "description": "Returns the organizations the authenticated caller belongs to. This endpoint does not require X-Tenant-Id and is the entry point for Fleet bootstrap: take an organization's `id` and list its workspaces via GET /v1/fleet/orgs/{org_id}/tenants, then call workspace-scoped endpoints with that tenant's id in X-Tenant-Id.", "tags": [ - "SCIM Tokens" + "fleet orgs" ], - "summary": "Get a SCIM token", + "summary": "List organizations", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", - "in": "path", - "required": true, + "description": "Items per page (default 20, max 20)", + "name": "page_size", + "in": "query", "schema": { - "type": "string" + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor returned by a prior response", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" } } ], "responses": { "200": { - "description": "SCIM token details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/orgs.ListOrgsResponse" } } } }, - "403": { - "description": "Forbidden - requires OrganizationRead permission", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } }, - "404": { - "description": "Token not found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } }, "500": { - "description": "Internal server error", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } } - } - }, - "delete": { + }, + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/orgs/{org_id}/tenants": { + "get": { "security": [ { "API Key": [] }, - { - "Organization ID": [] - }, { "Bearer Auth": [] } ], - "description": "Delete a SCIM bearer token from the current organization.", + "description": "Returns the LangSmith tenants/workspaces visible to the authenticated caller in the requested organization. This endpoint does not require X-Tenant-Id and is intended for Fleet bootstrap.", "tags": [ - "SCIM Tokens" + "fleet tenants" ], - "summary": "Delete a SCIM token", + "summary": "List tenants", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", + "description": "Organization ID", + "name": "org_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Items per page (default 20, max 20)", + "name": "page_size", + "in": "query", + "schema": { + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor returned by a prior response", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" + } } ], "responses": { - "204": { - "description": "No content - token deleted successfully" - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/tenants.ListTenantsResponse" } } } }, - "403": { - "description": "Forbidden - requires OrganizationManage permission", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } }, - "404": { - "description": "Token not found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } } - } - }, - "patch": { + }, + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/secrets": { + "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Update the description of an existing SCIM token for the current organization.", + "description": "Lists the names of secrets configured for the workspace. Use this to check which model API keys (see a model's required_secrets) are already set. Secret values are never returned. Secrets are a single shared namespace per workspace. Any agent (triggered by any member) can use them, and any member whose role grants workspaces:manage-secrets (Workspace Admins by default) can overwrite or delete them. Setting an existing name replaces its value for everyone. Treat them as shared team credentials, not personal keys.", "tags": [ - "SCIM Tokens" + "fleet secrets" ], - "summary": "Update a SCIM token", + "summary": "List workspace secret names", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", - "in": "path", - "required": true, + "description": "Items per page (1-100, default 20)", + "name": "page_size", + "in": "query", "schema": { - "type": "string" + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" } } ], "responses": { "200": { - "description": "Updated SCIM token details", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" + "$ref": "#/components/schemas/secrets.ListResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "403": { - "description": "Forbidden - requires OrganizationManage permission", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "404": { - "description": "Token not found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" - } - } - } - } - } - }, - "/v1/platform/sessions/{sessionID}/agent-versions": { - "get": { + "x-public": true, + "x-hidden": true + }, + "post": { "security": [ { "API Key": [] @@ -42424,67 +43991,66 @@ "Bearer Auth": [] } ], - "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", + "description": "Sets or deletes multiple workspace secrets in one request, mirroring the upstream SecretUpsert contract. A null value deletes the key; a non-null value sets it. Values are never returned. Secrets are a single shared namespace per workspace. Any agent (triggered by any member) can use them, and any member whose role grants workspaces:manage-secrets (Workspace Admins by default) can overwrite or delete them. Setting an existing name replaces its value for everyone. Treat them as shared team credentials, not personal keys.", "tags": [ - "sessions" - ], - "summary": "List agent versions for a project", - "parameters": [ - { - "description": "Tracing project (session) UUID", - "name": "sessionID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "fleet secrets" ], + "summary": "Bulk set or delete workspace secrets", + "parameters": [], "responses": { - "200": { - "description": "Agent versions", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" - } + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "400": { - "description": "Invalid session ID", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } } - } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/secrets.bulkUpsertItem" + } + } + } + } + }, + "x-hidden": true } }, - "/v1/platform/sessions/{session_id}/issues-agent": { - "get": { + "/v1/fleet/secrets/{name}": { + "put": { "security": [ { "API Key": [] @@ -42496,15 +44062,15 @@ "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns the issues agent config attached to the given tracer session.", + "description": "Creates or updates a single workspace secret by name. The value is write-only and is never returned by any endpoint. Secrets are a single shared namespace per workspace. Any agent (triggered by any member) can use them, and any member whose role grants workspaces:manage-secrets (Workspace Admins by default) can overwrite or delete them. Setting an existing name replaces its value for everyone. Treat them as shared team credentials, not personal keys.", "tags": [ - "issues-agent" + "fleet secrets" ], - "summary": "[Beta] Get the issues agent config for a session", + "summary": "Set a workspace secret", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", + "description": "Secret name (e.g. ANTHROPIC_API_KEY)", + "name": "name", "in": "path", "required": true, "schema": { @@ -42513,22 +44079,15 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -42538,7 +44097,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -42548,34 +44107,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.putRequest" } } } - } + }, + "x-hidden": true }, - "post": { + "delete": { "security": [ { "API Key": [] @@ -42587,15 +44138,15 @@ "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nConfigures the issues agent for the given tracer session and enqueues\nthe initial scan. Fails if an agent already exists for the session.", + "description": "Removes a single workspace secret by name. Succeeds whether or not the secret currently exists. Secrets are a single shared namespace per workspace. Any agent (triggered by any member) can use them, and any member whose role grants workspaces:manage-secrets (Workspace Admins by default) can overwrite or delete them. Setting an existing name replaces its value for everyone. Treat them as shared team credentials, not personal keys.", "tags": [ - "issues-agent" + "fleet secrets" ], - "summary": "[Beta] Create the issues agent for a session", + "summary": "Delete a workspace secret", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", + "description": "Secret name (e.g. ANTHROPIC_API_KEY)", + "name": "name", "in": "path", "required": true, "schema": { @@ -42604,22 +44155,15 @@ } ], "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -42629,7 +44173,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -42639,64 +44183,44 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.CreateIssuesAgentRequest" - } - } - } - } - }, - "delete": { + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/tenants/{tenant_id}/users/{id}": { + "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nRemoves the agent config, its issues, and the agent-overview hub repo.", + "description": "Resolves a LangSmith user by ID within a tenant/workspace the caller can access. This endpoint does not require X-Tenant-Id because the tenant is part of the path.", "tags": [ - "issues-agent" + "fleet users" ], - "summary": "[Beta] Delete the issues agent for a session", + "summary": "Get Fleet user in tenant", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", + "description": "Tenant ID", + "name": "tenant_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "User ID", + "name": "id", "in": "path", "required": true, "schema": { @@ -42705,15 +44229,22 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/users.UserRef" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42723,7 +44254,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42733,7 +44264,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42743,7 +44274,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42753,14 +44284,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } } - } - }, - "patch": { + }, + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/users": { + "get": { "security": [ { "API Key": [] @@ -42772,19 +44307,40 @@ "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nPatches the agent config. All side effects (clearing fix fields when\nthe GitHub repo changes, setting agent_overview_repo_id) happen in a\nsingle CRUD transaction. Omitted fields are left unchanged.", + "description": "Lists members of the caller's current workspace, optionally filtered by a search string. Use this to resolve a colleague's email or full name into the user ID that agent sharing takes (`permissions.shared_users`). A member's `name` in the response can come from a separately configured display name, which `search` does not match. The tenant is taken from the X-Tenant-Id header. Members your organization hides from other members are omitted.", "tags": [ - "issues-agent" + "fleet users" ], - "summary": "[Beta] Update the issues agent config for a session", + "summary": "List Fleet users", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, + "description": "Case-insensitive substring matched against member email and full name. Omit to list every member.", + "name": "search", + "in": "query", "schema": { - "type": "string" + "type": "string", + "title": "Search" + } + }, + { + "description": "Items per page", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "minimum": 1, + "maximum": 100, + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" } } ], @@ -42794,7 +44350,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" + "$ref": "#/components/schemas/users.ListResponse" } } } @@ -42804,7 +44360,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42814,7 +44370,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42824,17 +44380,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42844,70 +44390,38 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.UpdateIssuesAgentRequest" - } - } - } - } + "x-public": true, + "x-hidden": true } }, - "/v1/platform/sessions/{session_id}/issues-agent/overview": { - "patch": { + "/v1/fleet/users/current": { + "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nSaves the issues agent overview content server-side, creating or updating\nthe backing private Prompt Hub repo and linking it to the issues agent config.", + "description": "Returns the authenticated Fleet caller's user profile. This endpoint does not require X-Tenant-Id and is intended for Fleet bootstrap.", "tags": [ - "issues-agent" - ], - "summary": "[Beta] Save the agent overview for a session", - "parameters": [ - { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "fleet users" ], + "summary": "Get current Fleet user", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.User" } } } @@ -42917,17 +44431,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42937,7 +44441,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -42947,26 +44451,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewRequest" - } - } - } - } + "x-public": true, + "parameters": [], + "x-hidden": true } }, - "/v1/platform/sessions/{session_id}/issues-agent/webhooks/{id}/roll-secret": { - "post": { + "/workspaces/current/ttl-settings": { + "get": { "security": [ { "API Key": [] @@ -42978,38 +44475,18 @@ "Bearer Auth": [] } ], - "description": "Replaces the signing secret for the given issues agent webhook and returns the\nupdated webhook. Future deliveries are signed with the new secret immediately.", + "description": "Get the longlived trace TTL settings for a workspace", "tags": [ - "issues-agent" - ], - "summary": "Roll an issues agent webhook signing secret", - "parameters": [ - { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Webhook ID (UUID)", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "TTL Settings" ], + "summary": "Get workspace TTL settings", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent_webhooks.IssuesAgentWebhook" + "$ref": "#/components/schemas/ttl_settings.TTLSettingsResponse" } } } @@ -43027,32 +44504,6 @@ } } }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, "404": { "description": "Not Found", "content": { @@ -43079,11 +44530,11 @@ } } } - } - } - }, - "/v1/platform/sessions/{session_id}/issues/views": { - "get": { + }, + "x-public": true, + "parameters": [] + }, + "put": { "security": [ { "API Key": [] @@ -43095,2801 +44546,12 @@ "Bearer Auth": [] } ], - "description": "**Beta:** Returns the issues in this session that the current\nuser has opened, with timestamps. Used by the UI to derive\nthe per-row \"unread\" indicator and the Engine tab badge.", + "description": "Update the longlived trace TTL for a workspace.", "tags": [ - "issues" - ], - "summary": "[Beta] List viewed issues for a session", - "parameters": [ - { - "description": "Session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "TTL Settings" ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ListViewsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/tools": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a paginated list of tools in the workspace.", - "tags": [ - "tools" - ], - "summary": "List tools", - "parameters": [ - { - "description": "Maximum number of tools to return", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Number of tools to skip", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "title": "Offset" - } - }, - { - "description": "Search query to filter tools by name or description", - "name": "query", - "in": "query", - "schema": { - "type": "string", - "title": "Query" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ListToolsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Creates a new tool in the workspace.", - "tags": [ - "tools" - ], - "summary": "Create a tool", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.Tool" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.CreateToolPayload" - } - } - } - } - } - }, - "/v1/platform/tools/id/{id}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a tool identified by its UUID.", - "tags": [ - "tools" - ], - "summary": "Get a tool by ID", - "parameters": [ - { - "description": "Tool UUID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.Tool" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes a tool identified by its UUID.", - "tags": [ - "tools" - ], - "summary": "Delete a tool by ID", - "parameters": [ - { - "description": "Tool UUID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates an existing tool identified by its UUID.", - "tags": [ - "tools" - ], - "summary": "Update a tool by ID", - "parameters": [ - { - "description": "Tool UUID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.Tool" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.UpdateToolPayload" - } - } - } - } - } - }, - "/v1/platform/tools/{handle}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a tool identified by its handle.", - "tags": [ - "tools" - ], - "summary": "Get a tool by handle", - "parameters": [ - { - "description": "Tool handle", - "name": "handle", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.Tool" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes a tool identified by its handle.", - "tags": [ - "tools" - ], - "summary": "Delete a tool by handle", - "parameters": [ - { - "description": "Tool handle", - "name": "handle", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates an existing tool identified by its handle.", - "tags": [ - "tools" - ], - "summary": "Update a tool by handle", - "parameters": [ - { - "description": "Tool handle", - "name": "handle", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.Tool" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.UpdateToolPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, - { - "X-Service-Key": [] - } - ], - "description": "List sandboxes for the authenticated tenant, with optional filtering, sorting, and pagination.", - "tags": [ - "sandboxes" - ], - "summary": "List sandboxes", - "parameters": [ - { - "description": "Maximum number of results", - "name": "limit", - "in": "query", - "schema": { - "default": 50, - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Pagination offset", - "name": "offset", - "in": "query", - "schema": { - "default": 0, - "type": "integer", - "title": "Offset" - } - }, - { - "description": "Filter by name substring", - "name": "name_contains", - "in": "query", - "schema": { - "type": "string", - "title": "Name Contains" - } - }, - { - "description": "Filter by status (provisioning, ready, failed, stopped, deleting)", - "name": "status", - "in": "query", - "schema": { - "type": "string", - "title": "Status" - } - }, - { - "description": "Filter by creator identity. Only 'me' is supported.", - "name": "created_by", - "in": "query", - "schema": { - "type": "string", - "title": "Created By" - } - }, - { - "description": "Sort column (name, status, created_at)", - "name": "sort_by", - "in": "query", - "schema": { - "default": "created_at", - "type": "string", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_direction", - "in": "query", - "schema": { - "default": "desc", - "type": "string", - "title": "Sort Direction" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxListResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, - { - "X-Service-Key": [] - } - ], - "description": "Create a new sandbox from a snapshot. Provide at most one of `snapshot_id` or `snapshot_name`; if neither is provided, the server uses the default static blueprint.", - "tags": [ - "sandboxes" - ], - "summary": "Create a sandbox", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" - } - } - } - }, - "400": { - "description": "Snapshot not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "409": { - "description": "Name already exists", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "422": { - "description": "Validation error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "429": { - "description": "Quota exceeded", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Sandbox creation failed or internal error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "504": { - "description": "Sandbox did not become ready in time", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.CreateSandboxPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/batch-delete": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Delete multiple sandboxes by name or UUID in a single request.", - "tags": [ - "sandboxes" - ], - "summary": "Batch delete sandboxes", - "parameters": [], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.BatchDeleteResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.BatchDeleteRequest" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, - { - "X-Service-Key": [] - } - ], - "description": "Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.", - "tags": [ - "sandboxes" - ], - "summary": "Get a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, - { - "X-Service-Key": [] - } - ], - "description": "Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.", - "tags": [ - "sandboxes" - ], - "summary": "Delete a sandbox", - "parameters": [ - { - "description": "Sandbox display name or UUID", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No content" - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, - { - "X-Service-Key": [] - } - ], - "description": "Update a sandbox's display name. The name must be unique within the tenant.", - "tags": [ - "sandboxes" - ], - "summary": "Update a sandbox", - "parameters": [ - { - "description": "Current sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "409": { - "description": "Name already exists", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "422": { - "description": "Validation error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.UpdateSandboxPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}/service-url": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Create a short-lived JWT for accessing an HTTP service running on a specific port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw token, and its expiry.", - "tags": [ - "sandboxes" - ], - "summary": "Generate a service access token", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ServiceURLResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "501": { - "description": "Not Implemented", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ServiceURLPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}/snapshot": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", - "tags": [ - "sandboxes" - ], - "summary": "Capture a snapshot from a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}/start": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Start a stopped or failed sandbox. This endpoint is not idempotent.", - "tags": [ - "sandboxes" - ], - "summary": "Start a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "202": { - "description": "Accepted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}/status": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, - { - "X-Service-Key": [] - } - ], - "description": "Retrieve the lightweight status of a sandbox for polling.", - "tags": [ - "sandboxes" - ], - "summary": "Get sandbox status", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxStatusResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}/stop": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.", - "tags": [ - "sandboxes" - ], - "summary": "Stop a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Sandbox stopped" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/v2/sandboxes/internal/start/{name}": { - "post": { - "description": "Called by the sandbox-router to wake stopped sandboxes. Blocks until the sandbox is ready or times out. The name parameter accepts either the display name or route name (sb-).", - "tags": [ - "sandboxes-internal" - ], - "summary": "Internal: start a stopped sandbox (service-to-service)", - "parameters": [ - { - "description": "Sandbox display name or route name (sb-)", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Tenant ID", - "name": "X-Tenant-Id", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v2/sandboxes/snapshots": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "List sandbox snapshots for the authenticated tenant, with optional filtering, sorting, and pagination.", - "tags": [ - "sandboxes" - ], - "summary": "List snapshots", - "parameters": [ - { - "description": "Maximum number of results", - "name": "limit", - "in": "query", - "schema": { - "default": 50, - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Pagination offset", - "name": "offset", - "in": "query", - "schema": { - "default": 0, - "type": "integer", - "title": "Offset" - } - }, - { - "description": "Filter by name substring", - "name": "name_contains", - "in": "query", - "schema": { - "type": "string", - "title": "Name Contains" - } - }, - { - "description": "Filter by status (building, ready, failed, deleting)", - "name": "status", - "in": "query", - "schema": { - "type": "string", - "title": "Status" - } - }, - { - "description": "Filter by creator identity. Only 'me' is supported.", - "name": "created_by", - "in": "query", - "schema": { - "type": "string", - "title": "Created By" - } - }, - { - "description": "Sort column (name, status, created_at)", - "name": "sort_by", - "in": "query", - "schema": { - "default": "created_at", - "type": "string", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_direction", - "in": "query", - "schema": { - "default": "desc", - "type": "string", - "title": "Sort Direction" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotListResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Create a snapshot from a Docker image (async build).", - "tags": [ - "sandboxes" - ], - "summary": "Create a snapshot", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.CreateSnapshotPayload" - } - } - } - } - } - }, - "/v2/sandboxes/snapshots/{snapshot_id}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Get a sandbox snapshot by ID.", - "tags": [ - "sandboxes" - ], - "summary": "Get a snapshot", - "parameters": [ - { - "description": "Snapshot UUID", - "name": "snapshot_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Delete a snapshot by ID. The underlying storage is reclaimed asynchronously.", - "tags": [ - "sandboxes" - ], - "summary": "Delete a snapshot", - "parameters": [ - { - "description": "Snapshot UUID", - "name": "snapshot_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Snapshot deleted" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/v2/sandboxes/usage": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, - { - "X-Service-Key": [] - } - ], - "description": "Get current sandbox resource usage and quota limits for the workspace", - "tags": [ - "sandboxes" - ], - "summary": "Get sandbox resource usage", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.UsageResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "parameters": [] - } - }, - "/v2/sandboxes/{sandbox_id}/download": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Download file contents from a sandbox filesystem path.", - "tags": [ - "sandboxes" - ], - "summary": "Download a sandbox file", - "parameters": [ - { - "description": "Sandbox ID or name", - "name": "sandbox_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "File path to download", - "name": "path", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Path" - } - } - ], - "responses": { - "200": { - "description": "File content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/v2/sandboxes/{sandbox_id}/execute": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Execute a command inside a sandbox and return stdout, stderr, and exit code.", - "tags": [ - "sandboxes" - ], - "summary": "Execute a sandbox command", - "parameters": [ - { - "description": "Sandbox ID or name", - "name": "sandbox_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ExecResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ExecRequest" - } - } - } - } - } - }, - "/v2/sandboxes/{sandbox_id}/execute/ws": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Open a WebSocket connection for streaming command execution inside a sandbox.", - "tags": [ - "sandboxes" - ], - "summary": "Execute a sandbox command over WebSocket", - "parameters": [ - { - "description": "Sandbox ID or name", - "name": "sandbox_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "101": { - "description": "WebSocket upgrade" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/v2/sandboxes/{sandbox_id}/tunnel": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Open a WebSocket tunnel to a specific port inside a sandbox.", - "tags": [ - "sandboxes" - ], - "summary": "Open a sandbox TCP tunnel", - "parameters": [ - { - "description": "Sandbox ID or name", - "name": "sandbox_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Target sandbox TCP port", - "name": "X-Sandbox-Port", - "in": "header", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "101": { - "description": "WebSocket upgrade" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/v2/sandboxes/{sandbox_id}/upload": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Upload a file to a sandbox filesystem path.", - "tags": [ - "sandboxes" - ], - "summary": "Upload a sandbox file", - "parameters": [ - { - "description": "Sandbox ID or name", - "name": "sandbox_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Destination file path", - "name": "path", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Path" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.UploadResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary", - "description": "File to upload" - } - }, - "required": [ - "file" - ] - } - } - } - } - } - }, - "/workspaces/current/ttl-settings": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Get the longlived trace TTL settings for a workspace", - "tags": [ - "TTL Settings" - ], - "summary": "Get workspace TTL settings", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ttl_settings.TTLSettingsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - }, - "parameters": [] - }, - "put": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Update the longlived trace TTL for a workspace.", - "tags": [ - "TTL Settings" - ], - "summary": "Update workspace TTL settings", - "parameters": [], + "summary": "Update workspace TTL settings", + "parameters": [], "responses": { "200": { "description": "OK", @@ -45941,6 +44603,7 @@ } } }, + "x-public": true, "requestBody": { "required": true, "content": { @@ -46387,6 +45050,17 @@ } ] }, + "created_by": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Created By" + }, "key": { "type": "string", "title": "Key" @@ -46517,6 +45191,17 @@ "type": "null" } ] + }, + "created_by": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Created By" } }, "type": "object", @@ -46916,6 +45601,28 @@ } ], "title": "Is Assertion" + }, + "regex_validator": { + "anyOf": [ + { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Missing" + } + ], + "maxLength": 500 + }, + { + "type": "null" + } + ], + "title": "Regex Validator", + "default": { + "__missing__": "__missing__" + } } }, "type": "object", @@ -48049,11 +46756,13 @@ "create_role", "update_role", "delete_role", + "upsert_role_restriction", "invite_user_to_org", "invite_users_to_org_batch", "add_basic_auth_users_to_org", "update_basic_auth_user", "delete_org_pending_member", + "update_org_pending_member", "delete_org_member", "update_org_member", "create_sso_settings", @@ -48077,8 +46786,15 @@ "delete_workspace_member", "update_workspace_member", "delete_workspace_pending_member", + "update_workspace_pending_member", + "read_workspace_encrypted_secrets", "update_workspace_secrets", + "delete_workspace_secret", + "update_org_secrets", "unshare_entities", + "upsert_github_app_configuration", + "update_github_app_configuration", + "delete_github_app_configuration", "set_tenant_handle", "create_tag_key", "update_tag_key", @@ -48092,6 +46808,10 @@ "delete_tracer_session", "delete_tracer_sessions", "delete_runs", + "share_run", + "unshare_run", + "share_thread", + "unshare_thread", "create_dataset", "create_csv_dataset", "create_experiment_via_upload", @@ -48111,6 +46831,7 @@ "create_examples", "update_example", "update_examples", + "update_examples_metadata", "sync_examples", "delete_example", "delete_examples", @@ -48149,7 +46870,9 @@ "delete_access_policy", "list_access_policies", "read_access_policy", + "update_access_policy", "attach_access_policies", + "detach_access_policies", "read_role_access_policies", "create_scim_token", "update_scim_token", @@ -48166,6 +46889,8 @@ "create_fleet_usage_limit", "update_fleet_usage_limit", "delete_fleet_usage_limit", + "update_credential", + "delete_credential", "create_experiment_view_override", "update_experiment_view_override", "delete_experiment_view_override", @@ -48179,15 +46904,28 @@ "trigger_forge_configuration", "add_annotation_queue_reviewer", "remove_annotation_queue_reviewer", + "add_items_to_annotation_queue", + "delete_annotation_queue_item", + "update_annotation_queue_item", + "get_annotation_queue_items", "submit_nps_response", "create_mcp_server", "update_mcp_server", "delete_mcp_server", "register_mcp_server_oauth", "create_credential", + "read_credential_secret", + "read_credential_oauth2", + "create_oauth_provider", + "update_oauth_provider", + "delete_oauth_provider", + "start_oauth_connection", "create_tool", "update_tool", "delete_tool", + "create_connection", + "update_connection", + "delete_connection", "create_mcp_vendor_settings", "update_mcp_vendor_settings", "delete_mcp_vendor_settings", @@ -48213,6 +46951,7 @@ "update_gateway_policy", "delete_gateway_policy", "invoke_gateway", + "purchase_prepaid_gateway_provider_credits", "create_sandbox_proxy_profile", "update_sandbox_proxy_profile", "delete_sandbox_proxy_profile", @@ -48229,6 +46968,7 @@ "start_sandbox_claim", "stop_sandbox_claim", "generate_sandbox_service_url", + "generate_sandbox_download_url", "capture_sandbox_snapshot", "list_sandbox_snapshots", "get_sandbox_snapshot", @@ -48240,6 +46980,8 @@ "update_sandbox_registry", "delete_sandbox_registry", "create_data_plane", + "delete_data_plane", + "update_data_plane", "create_annotation_queue", "populate_annotation_queue", "delete_annotation_queue", @@ -48251,6 +46993,7 @@ "delete_annotation_queue_run", "delete_annotation_queue_runs", "create_annotation_queue_run_status", + "create_annotation_queue_item_status", "login", "send_sso_email_confirmation", "confirm_sso_user_email", @@ -48383,9 +47126,12 @@ "stream_feedback_delta", "read_comparative_experiments", "stream_grouped_experiments", + "get_run_url", "query_run", "query_runs", + "batch_query_runs", "query_trace", + "query_traces", "query_trace_messages", "batch_query_trace_messages", "query_thread_messages", @@ -48408,10 +47154,19 @@ "create_self_hosted_customer", "update_self_hosted_customer", "update_self_hosted_license", + "get_self_hosted_customer", + "get_provisioned_saas_org", + "update_provisioned_saas_org", + "create_oauth_client", + "update_oauth_client", + "delete_oauth_client", + "rotate_oauth_client_secret", + "revoke_oauth_grant", "test_op_generic" ], "title": "AuditLogOperation", - "description": "Operations that are logged in audit_logs database table." + "description": "Operations that are logged in audit_logs database table.", + "x-extensible-enum": true }, "AuthProvider": { "type": "string", @@ -48600,43 +47355,6 @@ "type": "object", "title": "BasicAuthUserPatch" }, - "BatchIngestConfig": { - "properties": { - "use_multipart_endpoint": { - "type": "boolean", - "title": "Use Multipart Endpoint", - "default": true - }, - "scale_up_qsize_trigger": { - "type": "integer", - "title": "Scale Up Qsize Trigger", - "default": 1000 - }, - "scale_up_nthreads_limit": { - "type": "integer", - "title": "Scale Up Nthreads Limit", - "default": 16 - }, - "scale_down_nempty_trigger": { - "type": "integer", - "title": "Scale Down Nempty Trigger", - "default": 4 - }, - "size_limit": { - "type": "integer", - "title": "Size Limit", - "default": 100 - }, - "size_limit_bytes": { - "type": "integer", - "title": "Size Limit Bytes", - "default": 20971520 - } - }, - "type": "object", - "title": "BatchIngestConfig", - "description": "Batch ingest config." - }, "BodyParamsForRunSchema": { "properties": { "id": { @@ -48664,7 +47382,8 @@ "type": "null" } ], - "title": "Trace" + "title": "Trace", + "description": "Filter runs by trace ID. When set, limit and cursor-based pagination are not applied — all runs in the trace are returned in a single response." }, "parent_run": { "anyOf": [ @@ -48874,6 +47593,7 @@ "maximum": 100.0, "minimum": 1.0, "title": "Limit", + "description": "Maximum number of runs to return. Not applied when trace is set — all runs in the trace are returned in a single response.", "default": 100 }, "select": { @@ -48971,7 +47691,8 @@ "type": "null" } ], - "title": "Trace" + "title": "Trace", + "description": "Filter runs by trace ID. When set, limit and cursor-based pagination are not applied — all runs in the trace are returned in a single response." }, "parent_run": { "anyOf": [ @@ -49061,342 +47782,371 @@ } ], "title": "End Time" - }, - "error": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Error" - }, - "query": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Query" - }, - "filter": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Filter" - }, - "trace_filter": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Trace Filter" - }, - "tree_filter": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Tree Filter" - }, - "is_root": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Is Root" - }, - "data_source_type": { - "anyOf": [ - { - "$ref": "#/components/schemas/RunsFilterDataSourceTypeEnum" - }, - { - "type": "null" - } - ] - }, - "skip_pagination": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Skip Pagination" - }, - "search_filter": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Search Filter" - }, - "use_experimental_search": { - "type": "boolean", - "title": "Use Experimental Search", - "default": false - }, - "cursor": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Cursor" - }, - "limit": { - "type": "integer", - "maximum": 100.0, - "minimum": 1.0, - "title": "Limit", - "default": 100 - }, - "select": { - "items": { - "$ref": "#/components/schemas/RunSelect" - }, - "type": "array", - "title": "Select", - "default": [ - "id", - "name", - "run_type", - "start_time", - "end_time", - "status", - "error", - "extra", - "events", - "inputs", - "outputs", - "parent_run_id", - "manifest_id", - "manifest_s3_id", - "manifest", - "session_id", - "serialized", - "reference_example_id", - "reference_dataset_id", - "total_tokens", - "prompt_tokens", - "prompt_token_details", - "completion_tokens", - "completion_token_details", - "total_cost", - "prompt_cost", - "prompt_cost_details", - "completion_cost", - "completion_cost_details", - "price_model_id", - "first_token_time", - "trace_id", - "dotted_order", - "last_queued_at", - "feedback_stats", - "parent_run_ids", - "tags", - "in_dataset", - "app_path", - "share_token", - "trace_tier", - "trace_first_received_at", - "ttl_seconds", - "trace_upgrade", - "thread_id" - ] - }, - "order": { - "$ref": "#/components/schemas/RunDateOrder", - "default": "desc" - }, - "skip_prev_cursor": { - "type": "boolean", - "title": "Skip Prev Cursor", - "default": false - } - }, - "type": "object", - "title": "BodyParamsForRunsQuerySchema", - "description": "Query params for runs query endpoint." - }, - "Body_clone_dataset_api_v1_datasets_clone_post": { - "properties": { - "target_dataset_id": { - "type": "string", - "format": "uuid", - "title": "Target Dataset Id" - }, - "source_dataset_id": { - "type": "string", - "format": "uuid", - "title": "Source Dataset Id" - }, - "as_of": { - "anyOf": [ - { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "string" - } - ], - "description": "Only modifications made on or before this time are included. If None, the latest version of the dataset is used." - }, - { - "type": "null" - } - ], - "title": "As Of" - }, - "examples": { - "items": { - "type": "string", - "format": "uuid" - }, - "type": "array", - "title": "Examples", - "default": [] - }, - "split": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Split" - } - }, - "type": "object", - "required": [ - "target_dataset_id", - "source_dataset_id" - ], - "title": "Body_clone_dataset_api_v1_datasets_clone_post" - }, - "Body_delete_runs_abac_api_v1_runs_delete_traces_post": { - "properties": { - "session_id": { - "type": "string", - "format": "uuid", - "title": "Session Id" - }, - "trace_ids": { - "items": { - "type": "string", - "format": "uuid" - }, - "type": "array", - "title": "Trace Ids" - } - }, - "type": "object", - "required": [ - "session_id", - "trace_ids" - ], - "title": "Body_delete_runs_abac_api_v1_runs_delete_traces_post" - }, - "Body_delete_runs_api_v1_runs_delete_post": { - "properties": { - "session_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Session Id" - }, - "trace_ids": { - "anyOf": [ - { - "items": { - "type": "string", - "format": "uuid" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Trace Ids" - }, - "metadata": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Metadata" - }, - "delete_examples": { - "type": "boolean", - "title": "Delete Examples", - "default": false - }, - "start_time": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Start Time" + }, + "error": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Error" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Query" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "trace_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Trace Filter" + }, + "tree_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tree Filter" + }, + "is_root": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Root" + }, + "data_source_type": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunsFilterDataSourceTypeEnum" + }, + { + "type": "null" + } + ] + }, + "skip_pagination": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Skip Pagination" + }, + "search_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Search Filter" + }, + "use_experimental_search": { + "type": "boolean", + "title": "Use Experimental Search", + "default": false + }, + "cursor": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Cursor" + }, + "limit": { + "type": "integer", + "maximum": 100.0, + "minimum": 1.0, + "title": "Limit", + "description": "Maximum number of runs to return. Not applied when trace is set — all runs in the trace are returned in a single response.", + "default": 100 + }, + "select": { + "items": { + "$ref": "#/components/schemas/RunSelect" + }, + "type": "array", + "title": "Select", + "default": [ + "id", + "name", + "run_type", + "start_time", + "end_time", + "status", + "error", + "extra", + "events", + "inputs", + "outputs", + "parent_run_id", + "manifest_id", + "manifest_s3_id", + "manifest", + "session_id", + "serialized", + "reference_example_id", + "reference_dataset_id", + "total_tokens", + "prompt_tokens", + "prompt_token_details", + "completion_tokens", + "completion_token_details", + "total_cost", + "prompt_cost", + "prompt_cost_details", + "completion_cost", + "completion_cost_details", + "price_model_id", + "first_token_time", + "trace_id", + "dotted_order", + "last_queued_at", + "feedback_stats", + "parent_run_ids", + "tags", + "in_dataset", + "app_path", + "share_token", + "trace_tier", + "trace_first_received_at", + "ttl_seconds", + "trace_upgrade", + "thread_id" + ] + }, + "order": { + "$ref": "#/components/schemas/RunDateOrder", + "default": "desc" + }, + "skip_prev_cursor": { + "type": "boolean", + "title": "Skip Prev Cursor", + "default": false + } + }, + "type": "object", + "title": "BodyParamsForRunsQuerySchema", + "description": "Query params for runs query endpoint." + }, + "Body_clone_dataset_api_v1_datasets_clone_post": { + "properties": { + "target_dataset_id": { + "type": "string", + "format": "uuid", + "title": "Target Dataset Id" + }, + "source_dataset_id": { + "type": "string", + "format": "uuid", + "title": "Source Dataset Id" + }, + "as_of": { + "anyOf": [ + { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "string" + } + ], + "description": "Only modifications made on or before this time are included. If None, the latest version of the dataset is used." + }, + { + "type": "null" + } + ], + "title": "As Of" + }, + "examples": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Examples", + "default": [] + }, + "split": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Split" + }, + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" + } + }, + "type": "object", + "required": [ + "target_dataset_id", + "source_dataset_id" + ], + "title": "Body_clone_dataset_api_v1_datasets_clone_post" + }, + "Body_delete_runs_abac_api_v1_runs_delete_traces_post": { + "properties": { + "session_id": { + "type": "string", + "format": "uuid", + "title": "Session Id" + }, + "trace_ids": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Trace Ids" + } + }, + "type": "object", + "required": [ + "session_id", + "trace_ids" + ], + "title": "Body_delete_runs_abac_api_v1_runs_delete_traces_post" + }, + "Body_delete_runs_api_v1_runs_delete_post": { + "properties": { + "session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Session Id" + }, + "trace_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Trace Ids" + }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "delete_examples": { + "type": "boolean", + "title": "Delete Examples", + "default": false + }, + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" + }, + "end_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "End Time" } }, "type": "object", @@ -49457,8 +48207,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49574,6 +48324,17 @@ } ], "title": "Metadata Key Mappings" + }, + "tag_value_ids": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" } }, "type": "object", @@ -49587,8 +48348,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49745,7 +48506,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -49905,7 +48666,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -50162,13 +48923,30 @@ "BulkExportDestinationUpdate": { "properties": { "credentials": { - "$ref": "#/components/schemas/BulkExportDestinationS3Credentials" + "anyOf": [ + { + "$ref": "#/components/schemas/BulkExportDestinationS3Credentials" + }, + { + "type": "null" + } + ] + }, + "aws_role_arn": { + "anyOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "null" + } + ], + "title": "Aws Role Arn", + "description": "AWS IAM role ARN that LangSmith assumes instead of using static credentials." } }, "type": "object", - "required": [ - "credentials" - ], "title": "BulkExportDestinationUpdate" }, "BulkExportFormat": { @@ -50439,13 +49217,17 @@ "disabled", "developer", "developer_01_2026", + "developer_07_2026", "plus", "plus_01_2026", + "plus_07_2026", "startup", "startup_v0", + "startup_07_2026", "partner", "premier", - "free" + "free", + "free_07_2026" ], "title": "ChangePaymentPlanReq", "description": "Enum for payment plans that the user can change to. Developer plans are permanent and enterprise plans will be changed manually." @@ -50454,6 +49236,17 @@ "properties": { "tier": { "$ref": "#/components/schemas/ChangePaymentPlanReq" + }, + "display_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Display Name" } }, "type": "object", @@ -51077,6 +49870,81 @@ "title": "ComparativeExperimentCreate", "description": "Create class for ComparativeExperiment." }, + "CompositeEvaluatorCreated": { + "properties": { + "rule_id": { + "type": "string", + "format": "uuid", + "title": "Rule Id" + }, + "evaluator_id": { + "type": "string", + "format": "uuid", + "title": "Evaluator Id" + } + }, + "type": "object", + "required": [ + "rule_id", + "evaluator_id" + ], + "title": "CompositeEvaluatorCreated", + "description": "Result of creating a composite score as a code evaluator + run rule." + }, + "CompositeMigrationRequest": { + "properties": { + "formula_ids": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Formula Ids" + } + }, + "type": "object", + "required": [ + "formula_ids" + ], + "title": "CompositeMigrationRequest", + "description": "A batch of feedback_formulas ids to migrate to the v2 model.\n\nAll ids are processed in the tenant of the calling service-key token; ids for\nother tenants (or already migrated / nonexistent) are reported as skipped,\nnever migrated. Both session-scoped and dataset-scoped formulas are migrated." + }, + "CompositeMigrationResult": { + "properties": { + "migrated": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Migrated" + }, + "skipped": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Skipped" + }, + "failed": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Failed" + } + }, + "type": "object", + "required": [ + "migrated", + "skipped", + "failed" + ], + "title": "CompositeMigrationResult", + "description": "Per-id outcome of a composite migration batch." + }, "ConfiguredBy": { "type": "string", "enum": [ @@ -51217,6 +50085,22 @@ }, "CreateRepoRequest": { "properties": { + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" + }, "repo_handle": { "type": "string", "title": "Repo Handle" @@ -51448,7 +50332,452 @@ ], "title": "Summary Prompt" }, - "filter": { + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Name" + }, + "attribute_schemas": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Attribute Schemas" + }, + "user_context": { + "anyOf": [ + { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "User Context" + }, + "model": { + "type": "string", + "enum": [ + "openai", + "anthropic" + ], + "title": "Model", + "default": "openai" + }, + "cluster_model": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Cluster Model" + }, + "summary_model": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Summary Model" + }, + "is_scheduled": { + "type": "boolean", + "title": "Is Scheduled", + "default": false + }, + "validate_model_secrets": { + "type": "boolean", + "title": "Validate Model Secrets", + "default": true + } + }, + "type": "object", + "title": "CreateRunClusteringJobRequest", + "description": "Request to create a run clustering job." + }, + "CreateRunClusteringJobResponse": { + "properties": { + "id": { + "type": "string", + "format": "uuid", + "title": "Id" + }, + "name": { + "type": "string", + "title": "Name" + }, + "status": { + "type": "string", + "title": "Status" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Error" + } + }, + "type": "object", + "required": [ + "id", + "name", + "status" + ], + "title": "CreateRunClusteringJobResponse", + "description": "Response to creating a run clustering job." + }, + "CustomChartCreate": { + "properties": { + "title": { + "type": "string", + "title": "Title" + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Description" + }, + "index": { + "anyOf": [ + { + "type": "integer", + "maximum": 100.0, + "minimum": 0.0 + }, + { + "type": "null" + } + ], + "title": "Index" + }, + "chart_type": { + "type": "string", + "enum": [ + "line", + "bar", + "table", + "kpi", + "top-k", + "pie" + ], + "title": "Chart Type" + }, + "series": { + "items": { + "$ref": "#/components/schemas/CustomChartSeriesCreate" + }, + "type": "array", + "title": "Series" + }, + "section_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Section Id" + }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "common_filters": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartSeriesFilters" + }, + { + "type": "null" + } + ] + } + }, + "type": "object", + "required": [ + "title", + "chart_type", + "series" + ], + "title": "CustomChartCreate" + }, + "CustomChartCreatePreview": { + "properties": { + "series": { + "items": { + "$ref": "#/components/schemas/CustomChartSeries-Input" + }, + "type": "array", + "title": "Series" + }, + "common_filters": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartSeriesFilters" + }, + { + "type": "null" + } + ] + } + }, + "type": "object", + "required": [ + "series" + ], + "title": "CustomChartCreatePreview" + }, + "CustomChartFeedbackCountMetric": { + "properties": { + "type": { + "type": "string", + "const": "count", + "title": "Type", + "default": "count" + }, + "entity": { + "type": "string", + "const": "feedback", + "title": "Entity" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "params": { + "$ref": "#/components/schemas/CustomChartFeedbackCountMetricParams" + } + }, + "type": "object", + "required": [ + "entity", + "params" + ], + "title": "CustomChartFeedbackCountMetric" + }, + "CustomChartFeedbackCountMetricParams": { + "properties": { + "feedback_key": { + "type": "string", + "title": "Feedback Key" + } + }, + "type": "object", + "required": [ + "feedback_key" + ], + "title": "CustomChartFeedbackCountMetricParams" + }, + "CustomChartFeedbackScoreMetricPercentile": { + "properties": { + "type": { + "type": "string", + "const": "percentile", + "title": "Type" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "field": { + "type": "string", + "const": "feedback_score", + "title": "Field" + }, + "params": { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentileParams" + } + }, + "type": "object", + "required": [ + "type", + "field", + "params" + ], + "title": "CustomChartFeedbackScoreMetricPercentile" + }, + "CustomChartFeedbackScoreMetricPercentileParams": { + "properties": { + "p": { + "type": "number", + "maximum": 1.0, + "minimum": 0.0, + "title": "P" + }, + "feedback_key": { + "type": "string", + "title": "Feedback Key" + } + }, + "type": "object", + "required": [ + "p", + "feedback_key" + ], + "title": "CustomChartFeedbackScoreMetricPercentileParams" + }, + "CustomChartFeedbackScoreMetricScalar": { + "properties": { + "type": { + "anyOf": [ + { + "type": "string", + "const": "sum" + }, + { + "type": "string", + "const": "max" + }, + { + "type": "string", + "const": "min" + }, + { + "type": "string", + "const": "avg" + } + ], + "title": "Type" + }, + "field": { + "type": "string", + "const": "feedback_score", + "title": "Field" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "params": { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalarParams" + } + }, + "type": "object", + "required": [ + "type", + "field", + "params" + ], + "title": "CustomChartFeedbackScoreMetricScalar" + }, + "CustomChartFeedbackScoreMetricScalarParams": { + "properties": { + "feedback_key": { + "type": "string", + "title": "Feedback Key" + } + }, + "type": "object", + "required": [ + "feedback_key" + ], + "title": "CustomChartFeedbackScoreMetricScalarParams" + }, + "CustomChartFilterByDataset": { + "properties": { + "source_type": { + "type": "string", + "const": "dataset", + "title": "Source Type" + }, + "dataset_ids": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Dataset Ids" + } + }, + "type": "object", + "required": [ + "source_type", + "dataset_ids" + ], + "title": "CustomChartFilterByDataset" + }, + "CustomChartFilterByTracingProject": { + "properties": { + "source_type": { + "type": "string", + "const": "tracing_project", + "title": "Source Type" + }, + "run_filter": { "anyOf": [ { "type": "string" @@ -51457,9 +50786,9 @@ "type": "null" } ], - "title": "Filter" + "title": "Run Filter" }, - "name": { + "trace_filter": { "anyOf": [ { "type": "string" @@ -51468,55 +50797,137 @@ "type": "null" } ], - "title": "Name" + "title": "Trace Filter" }, - "attribute_schemas": { + "tree_filter": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "type": "string" }, { "type": "null" } ], - "title": "Attribute Schemas" + "title": "Tree Filter" }, - "user_context": { + "project_ids": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Project Ids" + } + }, + "type": "object", + "required": [ + "source_type", + "project_ids" + ], + "title": "CustomChartFilterByTracingProject" + }, + "CustomChartGroupByComplex": { + "properties": { + "attribute": { "anyOf": [ { - "additionalProperties": { - "type": "string" - }, - "type": "object" + "type": "string", + "const": "metadata" }, { - "type": "null" + "type": "string", + "const": "feedback_label" } ], - "title": "User Context" + "title": "Attribute" }, - "model": { + "path": { "type": "string", - "enum": [ - "openai", - "anthropic" - ], - "title": "Model", - "default": "openai" - }, - "cluster_model": { + "title": "Path" + } + }, + "type": "object", + "required": [ + "attribute", + "path" + ], + "title": "CustomChartGroupByComplex" + }, + "CustomChartGroupByPlain": { + "properties": { + "attribute": { "anyOf": [ { - "type": "string" + "type": "string", + "const": "name" }, { - "type": "null" + "type": "string", + "const": "run_type" + }, + { + "type": "string", + "const": "tag" + }, + { + "type": "string", + "const": "project" + }, + { + "type": "string", + "const": "status" } ], - "title": "Cluster Model" + "title": "Attribute" + } + }, + "type": "object", + "required": [ + "attribute" + ], + "title": "CustomChartGroupByPlain" + }, + "CustomChartMetric": { + "type": "string", + "enum": [ + "run_count", + "latency_p50", + "latency_p99", + "latency_avg", + "first_token_p50", + "first_token_p99", + "total_tokens", + "prompt_tokens", + "completion_tokens", + "median_tokens", + "completion_tokens_p50", + "prompt_tokens_p50", + "tokens_p99", + "completion_tokens_p99", + "prompt_tokens_p99", + "feedback", + "feedback_score_avg", + "feedback_values", + "total_cost", + "prompt_cost", + "completion_cost", + "error_rate", + "streaming_rate", + "cost_p50", + "cost_p99" + ], + "title": "CustomChartMetric", + "description": "Metrics you can chart. Feedback metrics are not available for organization-scoped charts." + }, + "CustomChartMetricCount": { + "properties": { + "type": { + "type": "string", + "const": "count", + "title": "Type", + "default": "count" }, - "summary_model": { + "filter": { "anyOf": [ { "type": "string" @@ -51525,39 +50936,35 @@ "type": "null" } ], - "title": "Summary Model" - }, - "is_scheduled": { - "type": "boolean", - "title": "Is Scheduled", - "default": false - }, - "validate_model_secrets": { - "type": "boolean", - "title": "Validate Model Secrets", - "default": true + "title": "Filter" } }, "type": "object", - "title": "CreateRunClusteringJobRequest", - "description": "Request to create a run clustering job." + "title": "CustomChartMetricCount" }, - "CreateRunClusteringJobResponse": { + "CustomChartMetricField": { + "type": "string", + "enum": [ + "latency_seconds", + "first_token_seconds", + "total_tokens", + "prompt_tokens", + "completion_tokens", + "total_cost", + "prompt_cost", + "completion_cost", + "feedback_score" + ], + "title": "CustomChartMetricField" + }, + "CustomChartMetricPercentile": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "name": { - "type": "string", - "title": "Name" - }, - "status": { + "type": { "type": "string", - "title": "Status" + "const": "percentile", + "title": "Type" }, - "error": { + "filter": { "anyOf": [ { "type": "string" @@ -51566,158 +50973,206 @@ "type": "null" } ], - "title": "Error" + "title": "Filter" + }, + "field": { + "$ref": "#/components/schemas/CustomChartMetricField" + }, + "params": { + "$ref": "#/components/schemas/CustomChartMetricPercentileParams" } }, "type": "object", "required": [ - "id", - "name", - "status" + "type", + "field", + "params" ], - "title": "CreateRunClusteringJobResponse", - "description": "Response to creating a run clustering job." + "title": "CustomChartMetricPercentile" }, - "CustomChartCreate": { + "CustomChartMetricPercentileParams": { "properties": { - "title": { + "p": { + "type": "number", + "maximum": 1.0, + "minimum": 0.0, + "title": "P" + } + }, + "type": "object", + "required": [ + "p" + ], + "title": "CustomChartMetricPercentileParams" + }, + "CustomChartMetricRatio-Input": { + "properties": { + "type": { "type": "string", - "title": "Title" + "const": "ratio", + "title": "Type" }, - "description": { + "numerator": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" }, { - "type": "null" - } - ], - "title": "Description" - }, - "index": { - "anyOf": [ + "$ref": "#/components/schemas/CustomChartMetricCount" + }, { - "type": "integer", - "maximum": 100.0, - "minimum": 0.0 + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" }, { - "type": "null" + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" } ], - "title": "Index" - }, - "chart_type": { - "$ref": "#/components/schemas/CustomChartType" - }, - "series": { - "items": { - "$ref": "#/components/schemas/CustomChartSeriesCreate" - }, - "type": "array", - "title": "Series" + "title": "Numerator" }, - "section_id": { + "denominator": { "anyOf": [ { - "type": "string", - "format": "uuid" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" }, { - "type": "null" + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" } ], - "title": "Section Id" + "title": "Denominator" + } + }, + "type": "object", + "required": [ + "type", + "numerator", + "denominator" + ], + "title": "CustomChartMetricRatio" + }, + "CustomChartMetricRatio-Output": { + "properties": { + "type": { + "type": "string", + "const": "ratio", + "title": "Type" }, - "metadata": { + "numerator": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" }, { - "type": "null" + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" } ], - "title": "Metadata" + "title": "Numerator" }, - "common_filters": { + "denominator": { "anyOf": [ { - "$ref": "#/components/schemas/CustomChartSeriesFilters" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" }, { - "type": "null" + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" } - ] + ], + "title": "Denominator" } }, "type": "object", "required": [ - "title", - "chart_type", - "series" + "type", + "numerator", + "denominator" ], - "title": "CustomChartCreate" + "title": "CustomChartMetricRatio" }, - "CustomChartCreatePreview": { + "CustomChartMetricScalar": { "properties": { - "series": { - "items": { - "$ref": "#/components/schemas/CustomChartSeries" - }, - "type": "array", - "title": "Series" + "type": { + "anyOf": [ + { + "type": "string", + "const": "sum" + }, + { + "type": "string", + "const": "max" + }, + { + "type": "string", + "const": "min" + }, + { + "type": "string", + "const": "avg" + } + ], + "title": "Type" }, - "common_filters": { + "field": { + "$ref": "#/components/schemas/CustomChartMetricField" + }, + "filter": { "anyOf": [ { - "$ref": "#/components/schemas/CustomChartSeriesFilters" + "type": "string" }, { "type": "null" } - ] + ], + "title": "Filter" } }, "type": "object", "required": [ - "series" - ], - "title": "CustomChartCreatePreview" - }, - "CustomChartMetric": { - "type": "string", - "enum": [ - "run_count", - "latency_p50", - "latency_p99", - "latency_avg", - "first_token_p50", - "first_token_p99", - "total_tokens", - "prompt_tokens", - "completion_tokens", - "median_tokens", - "completion_tokens_p50", - "prompt_tokens_p50", - "tokens_p99", - "completion_tokens_p99", - "prompt_tokens_p99", - "feedback", - "feedback_score_avg", - "feedback_values", - "total_cost", - "prompt_cost", - "completion_cost", - "error_rate", - "streaming_rate", - "cost_p50", - "cost_p99" + "type", + "field" ], - "title": "CustomChartMetric", - "description": "Metrics you can chart. Feedback metrics are not available for organization-scoped charts." + "title": "CustomChartMetricScalar" }, "CustomChartPreviewRequest": { "properties": { @@ -51762,7 +51217,16 @@ "title": "Index" }, "chart_type": { - "$ref": "#/components/schemas/CustomChartType" + "type": "string", + "enum": [ + "line", + "bar", + "table", + "kpi", + "top-k", + "pie" + ], + "title": "Chart Type" }, "section_id": { "type": "string", @@ -51785,7 +51249,7 @@ "anyOf": [ { "items": { - "$ref": "#/components/schemas/CustomChartSeries" + "$ref": "#/components/schemas/CustomChartSeries-Output" }, "type": "array" }, @@ -51807,12 +51271,189 @@ ], "title": "CustomChartResponse" }, - "CustomChartSeries": { + "CustomChartSeries-Input": { + "properties": { + "name": { + "type": "string", + "title": "Name" + }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "filters": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartSeriesFilters" + }, + { + "type": "null" + } + ] + }, + "metric": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartMetric" + }, + { + "type": "null" + } + ] + }, + "project_metric": { + "anyOf": [ + { + "$ref": "#/components/schemas/HostProjectChartMetric" + }, + { + "type": "null" + } + ] + }, + "feedback_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Feedback Key" + }, + "workspace_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Workspace Id" + }, + "metric_definition": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" + }, + { + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricRatio-Input" + }, + { + "type": "null" + } + ], + "title": "Metric Definition" + }, + "group_by_definitions": { + "anyOf": [ + { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartGroupByPlain" + }, + { + "$ref": "#/components/schemas/CustomChartGroupByComplex" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Group By Definitions" + }, + "filter_definition": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartFilterByTracingProject" + }, + { + "$ref": "#/components/schemas/CustomChartFilterByDataset" + }, + { + "type": "null" + } + ], + "title": "Filter Definition" + }, + "id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "string" + } + ], + "title": "Id" + }, + "group_by": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunStatsGroupBySeriesResponse" + }, + { + "type": "null" + } + ] + } + }, + "type": "object", + "required": [ + "name", + "id" + ], + "title": "CustomChartSeries" + }, + "CustomChartSeries-Output": { "properties": { "name": { "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -51824,7 +51465,24 @@ ] }, "metric": { - "$ref": "#/components/schemas/CustomChartMetric" + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartMetric" + }, + { + "type": "null" + } + ] + }, + "project_metric": { + "anyOf": [ + { + "$ref": "#/components/schemas/HostProjectChartMetric" + }, + { + "type": "null" + } + ] }, "feedback_key": { "anyOf": [ @@ -51849,15 +51507,69 @@ ], "title": "Workspace Id" }, - "project_metric": { + "metric_definition": { "anyOf": [ { - "$ref": "#/components/schemas/HostProjectChartMetric" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" + }, + { + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricRatio-Output" }, { "type": "null" } - ] + ], + "title": "Metric Definition" + }, + "group_by_definitions": { + "anyOf": [ + { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartGroupByPlain" + }, + { + "$ref": "#/components/schemas/CustomChartGroupByComplex" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Group By Definitions" + }, + "filter_definition": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartFilterByTracingProject" + }, + { + "$ref": "#/components/schemas/CustomChartFilterByDataset" + }, + { + "type": "null" + } + ], + "title": "Filter Definition" }, "id": { "anyOf": [ @@ -51885,7 +51597,6 @@ "type": "object", "required": [ "name", - "metric", "id" ], "title": "CustomChartSeries" @@ -51896,6 +51607,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -51907,7 +51630,24 @@ ] }, "metric": { - "$ref": "#/components/schemas/CustomChartMetric" + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartMetric" + }, + { + "type": "null" + } + ] + }, + "project_metric": { + "anyOf": [ + { + "$ref": "#/components/schemas/HostProjectChartMetric" + }, + { + "type": "null" + } + ] }, "feedback_key": { "anyOf": [ @@ -51932,15 +51672,69 @@ ], "title": "Workspace Id" }, - "project_metric": { + "metric_definition": { "anyOf": [ { - "$ref": "#/components/schemas/HostProjectChartMetric" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" + }, + { + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricRatio-Input" }, { "type": "null" } - ] + ], + "title": "Metric Definition" + }, + "group_by_definitions": { + "anyOf": [ + { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartGroupByPlain" + }, + { + "$ref": "#/components/schemas/CustomChartGroupByComplex" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Group By Definitions" + }, + "filter_definition": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartFilterByTracingProject" + }, + { + "$ref": "#/components/schemas/CustomChartFilterByDataset" + }, + { + "type": "null" + } + ], + "title": "Filter Definition" }, "group_by": { "anyOf": [ @@ -51955,8 +51749,7 @@ }, "type": "object", "required": [ - "name", - "metric" + "name" ], "title": "CustomChartSeriesCreate" }, @@ -52020,6 +51813,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -52031,7 +51836,24 @@ ] }, "metric": { - "$ref": "#/components/schemas/CustomChartMetric" + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartMetric" + }, + { + "type": "null" + } + ] + }, + "project_metric": { + "anyOf": [ + { + "$ref": "#/components/schemas/HostProjectChartMetric" + }, + { + "type": "null" + } + ] }, "feedback_key": { "anyOf": [ @@ -52056,15 +51878,69 @@ ], "title": "Workspace Id" }, - "project_metric": { + "metric_definition": { "anyOf": [ { - "$ref": "#/components/schemas/HostProjectChartMetric" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" + }, + { + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricRatio-Input" }, { "type": "null" } - ] + ], + "title": "Metric Definition" + }, + "group_by_definitions": { + "anyOf": [ + { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartGroupByPlain" + }, + { + "$ref": "#/components/schemas/CustomChartGroupByComplex" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Group By Definitions" + }, + "filter_definition": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartFilterByTracingProject" + }, + { + "$ref": "#/components/schemas/CustomChartFilterByDataset" + }, + { + "type": "null" + } + ], + "title": "Filter Definition" }, "group_by": { "anyOf": [ @@ -52091,16 +51967,91 @@ }, "type": "object", "required": [ - "name", - "metric" + "name" ], "title": "CustomChartSeriesUpdate" }, + "CustomChartSeriesV2Equivalent": { + "properties": { + "metric_definition": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" + }, + { + "$ref": "#/components/schemas/CustomChartMetricCount" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, + { + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricPercentile" + }, + { + "$ref": "#/components/schemas/CustomChartMetricRatio-Output" + }, + { + "type": "null" + } + ], + "title": "Metric Definition" + }, + "group_by_definitions": { + "anyOf": [ + { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartGroupByPlain" + }, + { + "$ref": "#/components/schemas/CustomChartGroupByComplex" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Group By Definitions" + }, + "filter_definition": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartFilterByTracingProject" + }, + { + "$ref": "#/components/schemas/CustomChartFilterByDataset" + }, + { + "type": "null" + } + ], + "title": "Filter Definition" + } + }, + "type": "object", + "title": "CustomChartSeriesV2Equivalent", + "description": "A V1 series' translated V2 equivalent, for display only — does not\nmean the series itself has been migrated.\n\nKept separate from metric_definition/group_by_definitions/\nfilter_definition, since merging would violate CustomChartSeriesBase's\nexactly-one-of-metric-or-metric_definition invariant for V1 series." + }, "CustomChartType": { "type": "string", "enum": [ "line", - "bar" + "bar", + "table", + "kpi", + "top-k", + "pie", + "text" ], "title": "CustomChartType", "description": "Enum for custom chart types." @@ -52234,6 +52185,20 @@ "default": { "__missing__": "__missing__" } + }, + "markdown": { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Missing" + } + ], + "title": "Markdown", + "default": { + "__missing__": "__missing__" + } } }, "type": "object", @@ -52480,7 +52445,26 @@ }, "charts": { "items": { - "$ref": "#/components/schemas/SingleCustomChartResponse" + "oneOf": [ + { + "$ref": "#/components/schemas/SingleCustomChartResponse" + }, + { + "$ref": "#/components/schemas/CustomTextBlock" + } + ], + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "bar": "#/components/schemas/SingleCustomChartResponse", + "kpi": "#/components/schemas/SingleCustomChartResponse", + "line": "#/components/schemas/SingleCustomChartResponse", + "pie": "#/components/schemas/SingleCustomChartResponse", + "table": "#/components/schemas/SingleCustomChartResponse", + "text": "#/components/schemas/CustomTextBlock", + "top-k": "#/components/schemas/SingleCustomChartResponse" + } + } }, "type": "array", "title": "Charts" @@ -52498,6 +52482,16 @@ } ], "title": "Sub Sections" + }, + "layout": { + "anyOf": [ + { + "$ref": "#/components/schemas/DashboardLayout-Output" + }, + { + "type": "null" + } + ] } }, "type": "object", @@ -52723,6 +52717,23 @@ "default": { "__missing__": "__missing__" } + }, + "layout": { + "anyOf": [ + { + "$ref": "#/components/schemas/DashboardLayout-Input" + }, + { + "$ref": "#/components/schemas/Missing" + }, + { + "type": "null" + } + ], + "title": "Layout", + "default": { + "__missing__": "__missing__" + } } }, "type": "object", @@ -52758,24 +52769,146 @@ "type": "object", "title": "CustomChartsSectionsCloneRequest" }, - "CustomerInfo": { + "CustomTextBlock": { "properties": { - "customer_id": { + "id": { "type": "string", - "title": "Customer Id" + "format": "uuid", + "title": "Id" }, - "customer_name": { + "chart_type": { + "type": "string", + "const": "text", + "title": "Chart Type" + }, + "markdown": { "type": "string", - "title": "Customer Name" + "title": "Markdown" + }, + "index": { + "type": "integer", + "title": "Index" + }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" } }, "type": "object", "required": [ - "customer_id", - "customer_name" + "id", + "chart_type", + "markdown", + "index" ], - "title": "CustomerInfo", - "description": "Customer info." + "title": "CustomTextBlock" + }, + "CustomTextBlockCreate": { + "properties": { + "index": { + "anyOf": [ + { + "type": "integer", + "maximum": 100.0, + "minimum": 0.0 + }, + { + "type": "null" + } + ], + "title": "Index" + }, + "chart_type": { + "type": "string", + "const": "text", + "title": "Chart Type" + }, + "section_id": { + "type": "string", + "format": "uuid", + "title": "Section Id" + }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "markdown": { + "type": "string", + "title": "Markdown" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "chart_type", + "section_id", + "markdown" + ], + "title": "CustomTextBlockCreate" + }, + "CustomTextBlockResponse": { + "properties": { + "id": { + "type": "string", + "format": "uuid", + "title": "Id" + }, + "chart_type": { + "type": "string", + "const": "text", + "title": "Chart Type" + }, + "markdown": { + "type": "string", + "title": "Markdown" + }, + "index": { + "type": "integer", + "title": "Index" + }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, + "section_id": { + "type": "string", + "format": "uuid", + "title": "Section Id" + } + }, + "type": "object", + "required": [ + "id", + "chart_type", + "markdown", + "index", + "section_id" + ], + "title": "CustomTextBlockResponse" }, "CustomerVisiblePlanInfo": { "properties": { @@ -52808,6 +52941,148 @@ "title": "CustomerVisiblePlanInfo", "description": "Customer visible plan information." }, + "DashboardBreakpointLayout-Input": { + "properties": { + "rows": { + "items": { + "$ref": "#/components/schemas/DashboardLayoutRow" + }, + "type": "array", + "title": "Rows" + } + }, + "type": "object", + "required": [ + "rows" + ], + "title": "DashboardBreakpointLayout" + }, + "DashboardBreakpointLayout-Output": { + "properties": { + "rows": { + "items": { + "$ref": "#/components/schemas/DashboardLayoutRow" + }, + "type": "array", + "title": "Rows" + } + }, + "type": "object", + "required": [ + "rows" + ], + "title": "DashboardBreakpointLayout" + }, + "DashboardLayout-Input": { + "properties": { + "version": { + "type": "integer", + "const": 1, + "title": "Version" + }, + "breakpoints": { + "$ref": "#/components/schemas/DashboardLayoutBreakpoints-Input" + } + }, + "type": "object", + "required": [ + "version", + "breakpoints" + ], + "title": "DashboardLayout" + }, + "DashboardLayout-Output": { + "properties": { + "version": { + "type": "integer", + "const": 1, + "title": "Version" + }, + "breakpoints": { + "$ref": "#/components/schemas/DashboardLayoutBreakpoints-Output" + } + }, + "type": "object", + "required": [ + "version", + "breakpoints" + ], + "title": "DashboardLayout" + }, + "DashboardLayoutBreakpoints-Input": { + "properties": { + "sm": { + "$ref": "#/components/schemas/DashboardBreakpointLayout-Input" + }, + "md": { + "$ref": "#/components/schemas/DashboardBreakpointLayout-Input" + } + }, + "type": "object", + "required": [ + "sm", + "md" + ], + "title": "DashboardLayoutBreakpoints" + }, + "DashboardLayoutBreakpoints-Output": { + "properties": { + "sm": { + "$ref": "#/components/schemas/DashboardBreakpointLayout-Output" + }, + "md": { + "$ref": "#/components/schemas/DashboardBreakpointLayout-Output" + } + }, + "type": "object", + "required": [ + "sm", + "md" + ], + "title": "DashboardLayoutBreakpoints" + }, + "DashboardLayoutItem": { + "properties": { + "chart_id": { + "type": "string", + "format": "uuid", + "title": "Chart Id" + }, + "width_units": { + "type": "integer", + "minimum": 20.0, + "title": "Width Units" + } + }, + "type": "object", + "required": [ + "chart_id", + "width_units" + ], + "title": "DashboardLayoutItem" + }, + "DashboardLayoutRow": { + "properties": { + "height_units": { + "type": "integer", + "title": "Height Units" + }, + "items": { + "items": { + "$ref": "#/components/schemas/DashboardLayoutItem" + }, + "type": "array", + "minItems": 1, + "title": "Items" + } + }, + "type": "object", + "required": [ + "height_units", + "items" + ], + "title": "DashboardLayoutRow" + }, "DataType": { "type": "string", "enum": [ @@ -52981,6 +53256,22 @@ }, "DatasetCreate": { "properties": { + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" + }, "name": { "type": "string", "title": "Name" @@ -53691,6 +53982,51 @@ "title": "EvaluateExperimentRequest", "description": "Request body for evaluating an experiment." }, + "EvaluatorSpendDefaultBody": { + "properties": { + "limit_usd": { + "type": "number", + "exclusiveMinimum": 0.0, + "title": "Limit Usd" + }, + "window": { + "type": "string", + "enum": [ + "hourly", + "daily", + "weekly", + "monthly" + ], + "title": "Window" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "limit_usd", + "window" + ], + "title": "EvaluatorSpendDefaultBody", + "description": "Request shape for PUT. Matchers, name, type, action, and priority\nare server-defined; only limit and window are caller-controlled." + }, + "EvaluatorSpendDefaultResponse": { + "properties": { + "limit_usd": { + "type": "number", + "title": "Limit Usd" + }, + "window": { + "type": "string", + "title": "Window" + } + }, + "type": "object", + "required": [ + "limit_usd", + "window" + ], + "title": "EvaluatorSpendDefaultResponse" + }, "EvaluatorStructuredOutput": { "properties": { "hub_ref": { @@ -53776,6 +54112,17 @@ } ], "title": "Model" + }, + "playground_settings_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Model Configuration ID" } }, "type": "object", @@ -53825,6 +54172,42 @@ ], "title": "Source Run Id" }, + "source_session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Session Id" + }, + "source_run_start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Source Run Start Time" + }, + "source_trace_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Trace Id" + }, "metadata": { "anyOf": [ { @@ -53868,6 +54251,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -53922,7 +54316,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54045,7 +54440,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54056,7 +54452,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54106,6 +54503,10 @@ "name", "dataset_id", "source_run_id", + "source_session_id", + "source_run_start_time", + "source_trace_id", + "source_thread_id", "metadata", "inputs", "outputs", @@ -54445,6 +54846,42 @@ ], "title": "Source Run Id" }, + "source_session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Session Id" + }, + "source_run_start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Source Run Start Time" + }, + "source_trace_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Trace Id" + }, "metadata": { "anyOf": [ { @@ -54488,6 +54925,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -54658,6 +55106,22 @@ }, "ExperimentResultsUpload": { "properties": { + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" + }, "experiment_name": { "type": "string", "title": "Experiment Name" @@ -55036,159 +55500,183 @@ ], "title": "Comparative Experiment Id" }, - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "feedback_source": { - "anyOf": [ - { - "oneOf": [ - { - "$ref": "#/components/schemas/AppFeedbackSource" - }, - { - "$ref": "#/components/schemas/APIFeedbackSource" - }, - { - "$ref": "#/components/schemas/ModelFeedbackSource" - }, - { - "$ref": "#/components/schemas/AutoEvalFeedbackSource" - } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "api": "#/components/schemas/APIFeedbackSource", - "app": "#/components/schemas/AppFeedbackSource", - "auto_eval": "#/components/schemas/AutoEvalFeedbackSource", - "model": "#/components/schemas/ModelFeedbackSource" - } - } - }, - { - "type": "null" - } - ], - "title": "Feedback Source" - }, - "feedback_config": { - "anyOf": [ - { - "$ref": "#/components/schemas/FeedbackConfig" - }, - { - "type": "null" - } - ] - }, - "extra": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Extra" - } - }, - "type": "object", - "required": [ - "key" - ], - "title": "FeedbackCreateCoreSchema", - "description": "Schema used for creating feedback without run id or session id." - }, - "FeedbackCreateSchema": { - "properties": { - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" - }, - "modified_at": { - "type": "string", - "format": "date-time", - "title": "Modified At" - }, - "key": { - "type": "string", - "maxLength": 180, - "title": "Key" - }, - "score": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "integer" - }, - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Score" - }, - "value": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "integer" - }, - { - "type": "boolean" - }, - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Value" - }, - "comment": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Comment" - }, - "correction": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Correction" - }, - "feedback_group_id": { + "id": { + "type": "string", + "format": "uuid", + "title": "Id" + }, + "feedback_source": { + "anyOf": [ + { + "oneOf": [ + { + "$ref": "#/components/schemas/AppFeedbackSource" + }, + { + "$ref": "#/components/schemas/APIFeedbackSource" + }, + { + "$ref": "#/components/schemas/ModelFeedbackSource" + }, + { + "$ref": "#/components/schemas/AutoEvalFeedbackSource" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "api": "#/components/schemas/APIFeedbackSource", + "app": "#/components/schemas/AppFeedbackSource", + "auto_eval": "#/components/schemas/AutoEvalFeedbackSource", + "model": "#/components/schemas/ModelFeedbackSource" + } + } + }, + { + "type": "null" + } + ], + "title": "Feedback Source" + }, + "feedback_config": { + "anyOf": [ + { + "$ref": "#/components/schemas/FeedbackConfig" + }, + { + "type": "null" + } + ] + }, + "extra": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Extra" + } + }, + "type": "object", + "required": [ + "key" + ], + "title": "FeedbackCreateCoreSchema", + "description": "Schema used for creating feedback without run id or session id." + }, + "FeedbackCreateSchema": { + "properties": { + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + }, + "modified_at": { + "type": "string", + "format": "date-time", + "title": "Modified At" + }, + "key": { + "type": "string", + "maxLength": 180, + "title": "Key" + }, + "score": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Score" + }, + "value": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "integer" + }, + { + "type": "boolean" + }, + { + "type": "string" + }, + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Value" + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Comment" + }, + "correction": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Correction" + }, + "feedback_group_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Feedback Group Id" + }, + "comparative_experiment_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Comparative Experiment Id" + }, + "run_id": { "anyOf": [ { "type": "string", @@ -55198,9 +55686,9 @@ "type": "null" } ], - "title": "Feedback Group Id" + "title": "Run Id" }, - "comparative_experiment_id": { + "session_id": { "anyOf": [ { "type": "string", @@ -55210,9 +55698,10 @@ "type": "null" } ], - "title": "Comparative Experiment Id" + "title": "Session Id", + "description": "Required. The ID of the tracing project (session) the feedback belongs to." }, - "run_id": { + "trace_id": { "anyOf": [ { "type": "string", @@ -55222,43 +55711,35 @@ "type": "null" } ], - "title": "Run Id" + "title": "Trace Id" }, - "session_id": { + "start_time": { "anyOf": [ { "type": "string", - "format": "uuid" + "format": "date-time" }, { "type": "null" } ], - "title": "Session Id" + "title": "Start Time" }, - "trace_id": { + "feedback_thread_id": { "anyOf": [ { - "type": "string", - "format": "uuid" + "type": "string" }, { "type": "null" } ], - "title": "Trace Id" + "title": "Feedback Thread Id" }, - "start_time": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Start Time" + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": true }, "id": { "type": "string", @@ -55346,6 +55827,11 @@ ], "title": "Score" }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": true + }, "value": { "anyOf": [ { @@ -56153,6 +56639,17 @@ ], "title": "Tree Filter String" }, + "thread_filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Thread Filter String" + }, "display_name": { "type": "string", "title": "Display Name" @@ -56172,6 +56669,11 @@ "$ref": "#/components/schemas/FilterViewType", "default": "runs" }, + "syntax_version": { + "type": "integer", + "title": "Syntax Version", + "default": 1 + }, "start_time": { "anyOf": [ { @@ -56279,6 +56781,17 @@ ], "title": "Tree Filter String" }, + "thread_filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Thread Filter String" + }, "display_name": { "type": "string", "title": "Display Name" @@ -56298,6 +56811,15 @@ "$ref": "#/components/schemas/FilterViewType", "default": "runs" }, + "syntax_version": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "title": "Syntax Version", + "default": 1 + }, "start_time": { "anyOf": [ { @@ -56430,6 +56952,17 @@ ], "title": "Tree Filter String" }, + "thread_filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Thread Filter String" + }, "type": { "anyOf": [ { @@ -56440,6 +56973,21 @@ } ] }, + "syntax_version": { + "anyOf": [ + { + "type": "integer", + "enum": [ + 1, + 2 + ] + }, + { + "type": "null" + } + ], + "title": "Syntax Version" + }, "start_time": { "anyOf": [ { @@ -56481,6 +57029,22 @@ }, "ForkRepoRequest": { "properties": { + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" + }, "repo_handle": { "type": "string", "title": "Repo Handle" @@ -57513,7 +58077,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57524,7 +58089,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57535,7 +58101,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57829,7 +58396,8 @@ "lg_run_count", "responses_per_second", "error_responses_per_second", - "p95_latency" + "p95_latency", + "run_queue_wait_time" ], "title": "HostProjectChartMetric", "description": "LGP Metrics you can chart." @@ -58182,69 +58750,6 @@ ], "title": "IdentityPatch" }, - "InfoGetResponse": { - "properties": { - "version": { - "type": "string", - "title": "Version" - }, - "git_sha": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Git Sha" - }, - "license_expiration_time": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "License Expiration Time" - }, - "batch_ingest_config": { - "$ref": "#/components/schemas/BatchIngestConfig", - "default": { - "use_multipart_endpoint": true, - "scale_up_qsize_trigger": 1000, - "scale_up_nthreads_limit": 16, - "scale_down_nempty_trigger": 4, - "size_limit": 100, - "size_limit_bytes": 20971520 - } - }, - "instance_flags": { - "additionalProperties": true, - "type": "object", - "title": "Instance Flags" - }, - "customer_info": { - "anyOf": [ - { - "$ref": "#/components/schemas/CustomerInfo" - }, - { - "type": "null" - } - ] - } - }, - "type": "object", - "required": [ - "version" - ], - "title": "InfoGetResponse", - "description": "The LangSmith server info." - }, "InputTokenDetails": { "properties": { "audio": { @@ -58260,6 +58765,7 @@ "title": "Cache Read" } }, + "additionalProperties": true, "type": "object", "title": "InputTokenDetails", "description": "Breakdown of input token counts.\n\nDoes *not* need to sum to full input token count. Does *not* need to have all keys.\n\nExample:\n ```python\n {\n \"audio\": 10,\n \"cache_creation\": 200,\n \"cache_read\": 100,\n }\n ```\n\nMay also hold extra provider-specific keys.\n\n!!! version-added \"Added in `langchain-core` 0.3.9\"" @@ -58401,6 +58907,7 @@ "title": "Extras" } }, + "additionalProperties": true, "type": "object", "required": [ "type", @@ -58475,6 +58982,22 @@ ], "title": "LikeRepoResponse" }, + "ListAuditLogOperationsResponse": { + "properties": { + "operations": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Operations" + } + }, + "type": "object", + "required": [ + "operations" + ], + "title": "ListAuditLogOperationsResponse" + }, "ListAuditLogsOCSFResponse": { "properties": { "cursor": { @@ -58997,7 +59520,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Prompt Cost" @@ -59008,7 +59532,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Completion Cost" @@ -59022,7 +59547,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59043,7 +59569,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59077,6 +59604,121 @@ "title": "ModelPriceMapCreateSchema", "description": "Model price map create schema." }, + "ModelPriceMapSchema": { + "properties": { + "id": { + "type": "string", + "format": "uuid", + "title": "Id" + }, + "name": { + "type": "string", + "title": "Name" + }, + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" + }, + "tenant_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Tenant Id" + }, + "match_path": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Match Path", + "default": [ + "model", + "model_name", + "model_id", + "model_path", + "endpoint_name" + ] + }, + "match_pattern": { + "type": "string", + "title": "Match Pattern" + }, + "prompt_cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Prompt Cost" + }, + "completion_cost": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", + "title": "Completion Cost" + }, + "prompt_cost_details": { + "anyOf": [ + { + "additionalProperties": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Prompt Cost Details" + }, + "completion_cost_details": { + "anyOf": [ + { + "additionalProperties": { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Completion Cost Details" + }, + "provider": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Provider" + } + }, + "type": "object", + "required": [ + "name", + "match_pattern", + "prompt_cost", + "completion_cost" + ], + "title": "ModelPriceMapSchema", + "description": "Model price map schema." + }, "ModelPriceMapUpdateSchema": { "properties": { "name": { @@ -59119,7 +59761,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Prompt Cost" @@ -59130,7 +59773,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Completion Cost" @@ -59144,7 +59788,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59165,7 +59810,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59877,6 +60523,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -59904,6 +60561,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -59976,17 +60644,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -60202,6 +60859,11 @@ "title": "Marketplace Payouts Enabled", "default": false }, + "byoc_create_saas_workspace_enabled": { + "type": "boolean", + "title": "Byoc Create Saas Workspace Enabled", + "default": true + }, "default_sso_provision": { "type": "boolean", "title": "Default Sso Provision", @@ -60402,6 +61064,17 @@ "title": "Max Workspaces", "default": 1 }, + "code_evaluator_execution_batch_size": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Code Evaluator Execution Batch Size" + }, "can_use_rbac": { "type": "boolean", "title": "Can Use Rbac", @@ -60480,6 +61153,11 @@ "title": "Sandbox Enabled", "default": false }, + "sandbox_restricted_egress": { + "type": "boolean", + "title": "Sandbox Restricted Egress", + "default": false + }, "max_sandboxes": { "type": "integer", "title": "Max Sandboxes", @@ -60550,11 +61228,6 @@ "title": "Enable Thread View Playground", "default": false }, - "enable_org_usage_charts": { - "type": "boolean", - "title": "Enable Org Usage Charts", - "default": false - }, "use_exact_search_for_prompts": { "type": "boolean", "title": "Use Exact Search For Prompts", @@ -60657,11 +61330,6 @@ "title": "Can Restrict Browser Secrets", "default": false }, - "enable_monthly_usage_charts": { - "type": "boolean", - "title": "Enable Monthly Usage Charts", - "default": false - }, "new_rule_evaluator_creation_version": { "type": "integer", "title": "New Rule Evaluator Creation Version", @@ -60702,6 +61370,43 @@ "title": "Agent Builder Enabled", "default": true }, + "fleet_builtin_models_enabled": { + "type": "boolean", + "title": "Fleet Builtin Models Enabled", + "default": false + }, + "models_connect_via_langsmith_enabled": { + "type": "boolean", + "title": "Models Connect Via Langsmith Enabled", + "default": false + }, + "dev_zero_deployments_enabled": { + "type": "boolean", + "title": "Dev Zero Deployments Enabled", + "default": false + }, + "fleet_lcu_spend_limit_monthly": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Fleet Lcu Spend Limit Monthly" + }, + "langchain_provider_spend_limit_monthly": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Langchain Provider Spend Limit Monthly" + }, "max_agent_builder_assistants": { "type": "integer", "title": "Max Agent Builder Assistants", @@ -60715,7 +61420,8 @@ "enable_burndown_vs_commit_view": { "type": "boolean", "title": "Enable Burndown Vs Commit View", - "default": false + "default": false, + "deprecated": true }, "max_agent_builder_runs": { "type": "integer", @@ -60737,15 +61443,41 @@ "title": "Llm Gateway Enabled", "default": false }, + "tuned_evals_enabled": { + "type": "boolean", + "title": "Tuned Evals Enabled", + "default": false + }, + "gateway_data_protection_enabled": { + "type": "boolean", + "title": "Gateway Data Protection Enabled", + "default": true + }, + "gateway_pii_redaction_enabled": { + "type": "boolean", + "title": "Gateway Pii Redaction Enabled", + "default": false + }, "managed_deep_agents_enabled": { "type": "boolean", "title": "Managed Deep Agents Enabled", "default": false + }, + "is_anonymous": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Anonymous" } }, "type": "object", "title": "OrganizationConfig", - "description": "Organization level configuration. May include any field that exists in tenant config and additional fields." + "description": "Organization level configuration. May include any field that exists in tenant config and additional fields.\n\nEach field's type annotation drives how Metronome custom-field values are validated\nwhen resolving config (see smith-backend's ``_parse_metronome_value`` and smith-go's\n``rejectInvalidMetronomeValue``): a value that doesn't fit the annotated type is\ndropped and the field keeps whatever value was already resolved for it, rather than\nraising. Changing a field's type here changes what Metronome values are accepted for it." }, "OrganizationCreate": { "properties": { @@ -60855,7 +61587,8 @@ "engine_lcu_spend_limit_monthly": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -60941,6 +61674,11 @@ "title": "Workspace Admin Can Invite To Org", "default": false }, + "byoc_create_saas_workspace_enabled": { + "type": "boolean", + "title": "Byoc Create Saas Workspace Enabled", + "default": true + }, "marketplace_payouts_enabled": { "type": "boolean", "title": "Marketplace Payouts Enabled", @@ -61039,6 +61777,13 @@ "title": "Ip Allowlist Enabled", "default": false }, + "disabled_model_providers": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Disabled Model Providers" + }, "restrict_browser_secrets": { "anyOf": [ { @@ -61064,12 +61809,18 @@ ], "title": "Llm Auth Proxy Allowed Urls" }, - "engine_show_trial_modal": { - "type": "boolean", - "title": "Engine Show Trial Modal", - "default": false + "managed_evals_enabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Managed Evals Enabled" }, - "engine_trial_modal_seen_at": { + "managed_eval_terms_accepted_at": { "anyOf": [ { "type": "string" @@ -61078,7 +61829,7 @@ "type": "null" } ], - "title": "Engine Trial Modal Seen At" + "title": "Managed Eval Terms Accepted At" } }, "type": "object", @@ -61238,6 +61989,17 @@ "title": "Workspace Admin Can Invite To Org", "default": false }, + "byoc_create_saas_workspace_enabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Byoc Create Saas Workspace Enabled" + }, "default_sso_provision": { "type": "boolean", "title": "Default Sso Provision", @@ -61328,6 +62090,20 @@ ], "title": "Ip Allowlist" }, + "disabled_model_providers": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Disabled Model Providers" + }, "restrict_browser_secrets": { "anyOf": [ { @@ -61367,13 +62143,25 @@ "engine_lcu_spend_limit_monthly": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" } ], "title": "Engine Lcu Spend Limit Monthly" + }, + "managed_evals_enabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Managed Evals Enabled" } }, "type": "object", @@ -61547,6 +62335,20 @@ ], "title": "Ip Allowlist" }, + "disabled_model_providers": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Disabled Model Providers" + }, "restrict_browser_secrets": { "anyOf": [ { @@ -61558,6 +62360,17 @@ ], "title": "Restrict Browser Secrets" }, + "byoc_create_saas_workspace_enabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Byoc Create Saas Workspace Enabled" + }, "llm_auth_proxy_allowed_urls": { "anyOf": [ { @@ -61589,7 +62402,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -61613,6 +62427,7 @@ "title": "Reasoning" } }, + "additionalProperties": true, "type": "object", "title": "OutputTokenDetails", "description": "Breakdown of output token counts.\n\nDoes *not* need to sum to full output token count. Does *not* need to have all keys.\n\nExample:\n ```python\n {\n \"audio\": 10,\n \"reasoning\": 200,\n }\n ```\n\nMay also hold extra provider-specific keys.\n\n!!! version-added \"Added in `langchain-core` 0.3.9\"" @@ -61634,15 +62449,19 @@ "no_plan", "developer", "developer_01_2026", + "developer_07_2026", "plus", "plus_01_2026", + "plus_07_2026", "enterprise", "developer_legacy", "plus_legacy", "free", + "free_07_2026", "enterprise_legacy", "startup", "startup_v0", + "startup_07_2026", "partner", "premier" ], @@ -61672,6 +62491,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61699,6 +62529,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61771,17 +62612,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -61838,6 +62668,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61865,6 +62706,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61894,6 +62746,35 @@ ], "title": "PendingIdentityCreate" }, + "PendingIdentityPatch": { + "properties": { + "role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Role Id" + }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + } + }, + "type": "object", + "title": "PendingIdentityPatch" + }, "PendingUpload": { "properties": { "target_cursor": { @@ -62147,6 +63028,15 @@ "title": "Settings Type", "default": "complex" }, + "scope": { + "type": "string", + "enum": [ + "workspace", + "organization" + ], + "title": "Scope", + "default": "workspace" + }, "oauth_enabled": { "anyOf": [ { @@ -62280,6 +63170,18 @@ ], "title": "Name" }, + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" + }, "created_at": { "type": "string", "format": "date-time", @@ -62715,6 +63617,11 @@ }, "type": "array", "title": "Session Ids" + }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": false } }, "type": "object", @@ -63697,6 +64604,28 @@ } ], "title": "Oauth Provider Id" + }, + "ls_user_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Ls User Id" + }, + "agent_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Agent Id" } }, "type": "object", @@ -63817,6 +64746,42 @@ ], "title": "Source Run Id" }, + "source_session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Session Id" + }, + "source_run_start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Source Run Start Time" + }, + "source_trace_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Source Trace Id" + }, "metadata": { "anyOf": [ { @@ -63860,6 +64825,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -64258,6 +65234,7 @@ "format": "uuid" }, "type": "array", + "maxItems": 10, "minItems": 1, "title": "Session Ids" }, @@ -64269,6 +65246,7 @@ }, "limit": { "type": "integer", + "maximum": 20.0, "minimum": 1.0, "title": "Limit", "default": 10 @@ -64833,6 +65811,20 @@ "type": "null" } ] + }, + "owners": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/RepoOwner" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Owners" } }, "type": "object", @@ -64928,6 +65920,8 @@ "ResourceType": { "type": "string", "enum": [ + "agent", + "custom_app", "dashboard", "dataset", "deployment", @@ -64938,7 +65932,9 @@ "project", "prompt", "queue", - "sandbox" + "sandbox", + "skill", + "snapshot_name" ], "title": "ResourceType" }, @@ -65013,6 +66009,11 @@ "type": "null" } ] + }, + "is_restricted": { + "type": "boolean", + "title": "Is Restricted", + "default": false } }, "type": "object", @@ -65025,6 +66026,19 @@ ], "title": "Role" }, + "RoleRestrictionUpdate": { + "properties": { + "is_restricted": { + "type": "boolean", + "title": "Is Restricted" + } + }, + "type": "object", + "required": [ + "is_restricted" + ], + "title": "RoleRestrictionUpdate" + }, "RootModel_Dict_str__list_str___": { "additionalProperties": { "items": { @@ -65114,6 +66128,18 @@ ], "title": "Run Session Id" }, + "run_trace_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Run Trace Id" + }, "start_time": { "type": "string", "format": "date-time", @@ -66208,7 +67234,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66219,7 +67246,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66230,7 +67258,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66242,7 +67271,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66256,7 +67286,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66698,7 +67729,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66709,7 +67741,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66720,7 +67753,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66732,7 +67766,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66746,7 +67781,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66816,7 +67852,8 @@ "exclusiveMinimum": 0.0 }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Limit Usd" @@ -66836,6 +67873,7 @@ "properties": { "limit_usd": { "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Limit Usd" }, "window": { @@ -66969,6 +68007,49 @@ "title": "Extend Only", "default": false }, + "is_tracing_disabled": { + "type": "boolean", + "title": "Is Tracing Disabled", + "default": false + }, + "extend_evaluator_trace_retention": { + "type": "boolean", + "title": "Extend Evaluator Trace Retention", + "default": false + }, + "extend_dataset_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Dataset Trace Retention" + }, + "extend_annotation_queue_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Annotation Queue Trace Retention" + }, + "extend_webhook_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Webhook Trace Retention" + }, "transient": { "type": "boolean", "title": "Transient", @@ -67031,6 +68112,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -67391,6 +68479,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "alerts": { "anyOf": [ { @@ -67424,6 +68519,60 @@ "title": "Extend Only", "default": false }, + "is_managed_evaluator": { + "type": "boolean", + "title": "Is Managed Evaluator", + "default": false + }, + "is_tracing_disabled": { + "type": "boolean", + "title": "Is Tracing Disabled", + "default": false + }, + "extend_evaluator_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Evaluator Trace Retention" + }, + "extend_dataset_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Dataset Trace Retention" + }, + "extend_annotation_queue_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Annotation Queue Trace Retention" + }, + "extend_webhook_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Webhook Trace Retention" + }, "include_extended_stats": { "type": "boolean", "title": "Include Extended Stats", @@ -67529,6 +68678,17 @@ ], "title": "Evaluator Id" }, + "evaluator_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluator Name" + }, "alignment_annotation_queue_id": { "anyOf": [ { @@ -67705,6 +68865,61 @@ "title": "Extend Only", "default": false }, + "is_tracing_disabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Tracing Disabled" + }, + "extend_evaluator_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Evaluator Trace Retention" + }, + "extend_dataset_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Dataset Trace Retention" + }, + "extend_annotation_queue_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Annotation Queue Trace Retention" + }, + "extend_webhook_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Webhook Trace Retention" + }, "transient": { "type": "boolean", "title": "Transient", @@ -67767,6 +68982,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -67963,6 +69185,49 @@ "title": "Extend Only", "default": false }, + "is_tracing_disabled": { + "type": "boolean", + "title": "Is Tracing Disabled", + "default": false + }, + "extend_evaluator_trace_retention": { + "type": "boolean", + "title": "Extend Evaluator Trace Retention", + "default": false + }, + "extend_dataset_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Dataset Trace Retention" + }, + "extend_annotation_queue_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Annotation Queue Trace Retention" + }, + "extend_webhook_trace_retention": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Extend Webhook Trace Retention" + }, "transient": { "type": "boolean", "title": "Transient", @@ -68025,6 +69290,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -68167,6 +69439,22 @@ } ], "title": "Test Attachments" + }, + "test_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Test Thread Id" + }, + "validate_project_compatibility": { + "type": "boolean", + "title": "Validate Project Compatibility", + "default": false } }, "type": "object", @@ -68175,7 +69463,7 @@ "sampling_rate" ], "title": "RunRulesValidateSchema", - "description": "Schema for validating rules without creating them.\n\nExtends RunRulesCreateSchema with test data fields for validation.\nOnly LLM-as-judge rules (evaluators) are supported, not code_evaluators." + "description": "Schema for validating rules without creating them.\n\nExtends RunRulesCreateSchema with test data fields for validation.\nOnly LLM-as-judge rules (evaluators) are supported, not code_evaluators.\n\nFor trace-level evaluators, provide test_inputs / test_outputs.\nFor thread evaluators (group_by=\"thread_id\"), provide test_thread_id +\nsession_id instead; the backend fetches and assembles all turns automatically." }, "RunRulesWebhookSchema": { "properties": { @@ -68578,7 +69866,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -68589,7 +69878,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -68600,7 +69890,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -68612,7 +69903,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -68626,7 +69918,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69104,10 +70397,23 @@ ], "title": "Completion Tokens" }, + "first_token_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "First Token Time" + }, "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69118,7 +70424,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69129,7 +70436,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69554,7 +70862,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69565,7 +70874,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69576,7 +70886,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69588,7 +70899,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69602,7 +70914,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69917,6 +71230,11 @@ "format": "uuid", "title": "Run Id" }, + "shared_trace_id": { + "type": "string", + "format": "uuid", + "title": "Shared Trace Id" + }, "share_token": { "type": "string", "format": "uuid", @@ -69926,6 +71244,7 @@ "type": "object", "required": [ "run_id", + "shared_trace_id", "share_token" ], "title": "RunShareSchema" @@ -70368,7 +71687,294 @@ "type": "null" } ], - "title": "Trace" + "title": "Trace", + "description": "Filter runs by trace ID. When set, limit and cursor-based pagination are not applied — all runs in the trace are returned in a single response." + }, + "parent_run": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Parent Run" + }, + "run_type": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunTypeEnum" + }, + { + "type": "null" + } + ] + }, + "session": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "minItems": 1, + "title": "Session" + }, + "reference_example": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Reference Example" + }, + "execution_order": { + "anyOf": [ + { + "type": "integer", + "maximum": 1.0, + "minimum": 1.0 + }, + { + "type": "null" + } + ], + "title": "Execution Order" + }, + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" + }, + "end_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "End Time" + }, + "error": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Error" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Query" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "trace_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Trace Filter" + }, + "tree_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tree Filter" + }, + "is_root": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Root" + }, + "data_source_type": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunsFilterDataSourceTypeEnum" + }, + { + "type": "null" + } + ] + }, + "skip_pagination": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Skip Pagination" + }, + "search_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Search Filter" + }, + "use_experimental_search": { + "type": "boolean", + "title": "Use Experimental Search", + "default": false + }, + "group_by": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunStatsGroupBy" + }, + { + "type": "null" + } + ] + }, + "groups": { + "anyOf": [ + { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Groups" + }, + "select": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/RunStatsSelect" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Select" + }, + "reference_dataset_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Reference Dataset Id" + }, + "include_details": { + "type": "boolean", + "title": "Include Details", + "default": false + } + }, + "type": "object", + "required": [ + "session" + ], + "title": "RunStatsQueryParams", + "description": "Query params for run stats." + }, + "RunStatsQueryParamsPublic": { + "properties": { + "id": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Id" + }, + "trace": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Trace", + "description": "Filter runs by trace ID. When set, limit and cursor-based pagination are not applied — all runs in the trace are returned in a single response." }, "parent_run": { "anyOf": [ @@ -70606,11 +72212,28 @@ } ], "title": "Select" + }, + "reference_dataset_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Reference Dataset Id" + }, + "include_details": { + "type": "boolean", + "title": "Include Details", + "default": false } }, "type": "object", - "title": "RunStatsQueryParams", - "description": "Query params for run stats." + "title": "RunStatsQueryParamsPublic", + "description": "Query params for run stats on a shared dataset." }, "RunStatsSelect": { "type": "string", @@ -70644,6 +72267,7 @@ "session_feedback_stats", "all_run_stats", "all_token_stats", + "group_count", "prompt_token_details", "completion_token_details", "prompt_cost_details", @@ -71564,8 +73188,7 @@ "latency_p50", "latency_p99", "error_rate", - "feedback", - "runs_count" + "feedback" ], "title": "SessionSortableColumns" }, @@ -71603,6 +73226,25 @@ "description": "Simple experiment info schema for use with comparative experiments" }, "SingleCustomChartResponse": { + "$ref": "#/components/schemas/SingleCustomChartResponseSerialized" + }, + "SingleCustomChartResponseBase": { + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/CustomChartsDataPoint" + }, + "type": "array", + "title": "Data" + } + }, + "type": "object", + "required": [ + "data" + ], + "title": "SingleCustomChartResponseBase" + }, + "SingleCustomChartResponseSerialized": { "properties": { "data": { "items": { @@ -71655,11 +73297,20 @@ "title": "Index" }, "chart_type": { - "$ref": "#/components/schemas/CustomChartType" + "type": "string", + "enum": [ + "line", + "bar", + "table", + "kpi", + "top-k", + "pie" + ], + "title": "Chart Type" }, "series": { "items": { - "$ref": "#/components/schemas/CustomChartSeries" + "$ref": "#/components/schemas/CustomChartSeries-Output" }, "type": "array", "title": "Series" @@ -71684,23 +73335,7 @@ "chart_type", "series" ], - "title": "SingleCustomChartResponse" - }, - "SingleCustomChartResponseBase": { - "properties": { - "data": { - "items": { - "$ref": "#/components/schemas/CustomChartsDataPoint" - }, - "type": "array", - "title": "Data" - } - }, - "type": "object", - "required": [ - "data" - ], - "title": "SingleCustomChartResponseBase" + "title": "SingleCustomChartResponseSerialized" }, "SingleCustomChartSubSectionResponse": { "properties": { @@ -72863,6 +74498,14 @@ }, "TaggingsByResourceType": { "properties": { + "agents": { + "items": { + "$ref": "#/components/schemas/Resource" + }, + "type": "array", + "title": "Agents", + "default": [] + }, "alerts": { "items": { "$ref": "#/components/schemas/Resource" @@ -72950,6 +74593,22 @@ "type": "array", "title": "Sandboxes", "default": [] + }, + "skills": { + "items": { + "$ref": "#/components/schemas/Resource" + }, + "type": "array", + "title": "Skills", + "default": [] + }, + "snapshot_names": { + "items": { + "$ref": "#/components/schemas/Resource" + }, + "type": "array", + "title": "Snapshot Names", + "default": [] } }, "type": "object", @@ -73318,6 +74977,53 @@ ], "title": "TenantShareRunToken" }, + "TenantShareThreadToken": { + "properties": { + "type": { + "type": "string", + "const": "thread", + "title": "Type" + }, + "share_token": { + "type": "string", + "title": "Share Token" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + }, + "thread_id": { + "type": "string", + "title": "Thread Id" + }, + "session_id": { + "type": "string", + "format": "uuid", + "title": "Session Id" + }, + "session_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Session Name" + } + }, + "type": "object", + "required": [ + "type", + "share_token", + "created_at", + "thread_id", + "session_id" + ], + "title": "TenantShareThreadToken" + }, "TenantShareTokensResponse": { "properties": { "entities": { @@ -73328,13 +75034,17 @@ }, { "$ref": "#/components/schemas/TenantShareDatasetToken" + }, + { + "$ref": "#/components/schemas/TenantShareThreadToken" } ], "discriminator": { "propertyName": "type", "mapping": { "dataset": "#/components/schemas/TenantShareDatasetToken", - "run": "#/components/schemas/TenantShareRunToken" + "run": "#/components/schemas/TenantShareRunToken", + "thread": "#/components/schemas/TenantShareThreadToken" } } }, @@ -73382,6 +75092,10 @@ "evaluator_count": { "type": "integer", "title": "Evaluator Count" + }, + "custom_app_count": { + "type": "integer", + "title": "Custom App Count" } }, "type": "object", @@ -73393,7 +75107,8 @@ "annotation_queue_count", "deployment_count", "dashboards_count", - "evaluator_count" + "evaluator_count", + "custom_app_count" ], "title": "TenantStats", "description": "Stats for a tenant." @@ -73531,6 +75246,7 @@ "title": "Type" } }, + "additionalProperties": true, "type": "object", "required": [ "name", @@ -73592,6 +75308,7 @@ "title": "Type" } }, + "additionalProperties": true, "type": "object", "required": [ "name", @@ -73962,7 +75679,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -73973,7 +75691,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -73984,7 +75703,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74114,6 +75834,22 @@ }, "TracerSessionCreate": { "properties": { + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" + }, "start_time": { "type": "string", "format": "date-time", @@ -74204,22 +75940,6 @@ ], "title": "Id" }, - "tag_value_ids": { - "anyOf": [ - { - "items": { - "type": "string", - "format": "uuid" - }, - "type": "array", - "maxItems": 100 - }, - { - "type": "null" - } - ], - "title": "Tag Value Ids" - }, "num_examples": { "anyOf": [ { @@ -74763,6 +76483,34 @@ "type": "string", "format": "uuid", "title": "Id" + }, + "scope": { + "$ref": "#/components/schemas/UsageLimitScope", + "default": "workspace" + }, + "session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Session Id" + }, + "identity_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Identity Id" } }, "type": "object", @@ -74787,6 +76535,34 @@ "format": "uuid", "title": "Id" }, + "scope": { + "$ref": "#/components/schemas/UsageLimitScope", + "default": "workspace" + }, + "session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Session Id" + }, + "identity_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Identity Id" + }, "tenant_id": { "type": "string", "format": "uuid", @@ -74814,6 +76590,16 @@ "title": "UsageLimit", "description": "Usage limit model." }, + "UsageLimitScope": { + "type": "string", + "enum": [ + "workspace", + "project", + "user" + ], + "title": "UsageLimitScope", + "description": "Granularity a limit applies to within a tenant." + }, "UsageLimitType": { "type": "string", "enum": [ @@ -74844,6 +76630,7 @@ "$ref": "#/components/schemas/OutputTokenDetails" } }, + "additionalProperties": true, "type": "object", "required": [ "input_tokens", @@ -75080,6 +76867,196 @@ "title": "WorkspaceCreate", "description": "Creation model for the workspace." }, + "WorkspaceInviteResult": { + "properties": { + "email": { + "type": "string", + "title": "Email" + }, + "read_only": { + "type": "boolean", + "title": "Read Only", + "default": false, + "deprecated": true + }, + "role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Role Id" + }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, + "workspace_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Workspace Ids" + }, + "workspace_role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Id" + }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, + "password": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Password" + }, + "full_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Full Name" + }, + "access_scope": { + "$ref": "#/components/schemas/AccessScope", + "default": "workspace" + }, + "id": { + "type": "string", + "format": "uuid", + "title": "Id" + }, + "user_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "User Id" + }, + "tenant_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Tenant Id" + }, + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + }, + "org_role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Org Role Id" + }, + "org_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Org Role Name" + }, + "ls_user_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Ls User Id" + } + }, + "type": "object", + "required": [ + "email", + "id", + "created_at" + ], + "title": "WorkspaceInviteResult", + "description": "Response type for the batch workspace invite endpoint.\n\nExtends PendingIdentity so existing clients continue to work. When the\ninvitee was already an active org member, ``ls_user_id`` is populated\nand ``email`` is filled from the request payload." + }, "WorkspacePatch": { "properties": { "display_name": { @@ -75215,739 +77192,323 @@ "title": "Tenant", "description": "Tenant schema." }, - "abac.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string", - "example": "Invalid request: missing required fields" - } - } - }, - "agent_builder_webhooks.WebhookTestResult": { - "type": "object", - "properties": { - "upstream_body": { - "type": "string" - }, - "upstream_content_type": { - "type": "string" - }, - "upstream_status_code": { - "type": "integer" - } - } - }, - "agents.Agent": { + "agent.CreateIssuesAgentRequest": { "type": "object", "properties": { - "access_level": { + "analysis_level": { + "description": "AnalysisLevel is how thoroughly Engine monitors the project: \"standard\"\n(the default), \"reduced\" (fewer traces at lower cost), or \"expanded\" (more\ntraces per run, for projects with enough tracing volume). Omit for\n\"standard\".", "type": "string", "enum": [ - "READ", - "RUN", - "WRITE" + "standard", + "reduced", + "expanded" ] }, - "backend": { - "$ref": "#/components/schemas/agents.AgentBackend" - }, - "created_at": { - "type": "string", - "format": "date-time" + "auto_open_fix_pr": { + "description": "AutoOpenFixPR opens a draft pull request for every fix the agent\nproduces, instead of waiting for one to be opened from the issue. Has no\neffect without github_repo_url, since a fix has nowhere to open. Omit for\nfalse.", + "type": "boolean" }, - "description": { + "context_hub_repo_handle": { "type": "string" }, - "display": { - "$ref": "#/components/schemas/agents.AgentDisplay" - }, - "extras": { - "type": "object", - "additionalProperties": {} - }, - "files": { - "description": "Raw file map. Returned only when `include_files=true`.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/agents.FileEntry" - } - }, - "id": { - "type": "string", - "format": "uuid" - }, - "instructions": { - "description": "Deprecated: use `system_prompt`. Echoed alongside `system_prompt` with\nthe same value for backwards compatibility.", + "github_base_branch": { "type": "string" }, - "is_owner": { - "type": "boolean" - }, - "model": { - "$ref": "#/components/schemas/agents.AgentModel" - }, - "name": { + "github_repo_subdir": { "type": "string" }, - "options": { - "$ref": "#/components/schemas/agents.AgentOptions" - }, - "owner_id": { - "type": "string", - "format": "uuid" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - }, - "revision": { + "github_repo_url": { "type": "string" }, - "subagents": { - "description": "Subagents parsed from `subagents//AGENTS.md` + `subagents//tools.json`.", + "priorities": { "type": "array", "items": { - "$ref": "#/components/schemas/agents.SubagentSpec" + "type": "string" } }, - "system_prompt": { - "description": "Agent system prompt parsed from `AGENTS.md`.", + "run_filter": { + "description": "Runs-filter-DSL trace scope; omit/null/empty for no scope.", "type": "string" - }, - "tools": { - "description": "Tool config parsed from `tools.json`.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.ToolsConfig" - } - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" } } }, - "agents.AgentBackend": { + "agent.ErrorResponse": { "type": "object", "properties": { - "sandbox_config": { - "description": "Sandbox configuration. Required when `type` is `sandbox`, rejected otherwise.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.SandboxConfig" - } - ] - }, - "type": { - "description": "Execution backend. Defaults to `state` when omitted (along with the whole\n`backend` object). `state` runs without a sandbox: files live in LangGraph\nthread state, which is thread-scoped — they persist across turns within a\nthread but are not shared across threads. `sandbox` provisions an isolated\ncomputer.", - "type": "string", - "enum": [ - "state", - "sandbox" - ], - "example": "sandbox" - } - } - }, - "agents.AgentDisplay": { - "type": "object", - "properties": { - "icon": { - "type": "string", - "example": "Rocket02" - }, - "icon_color": { - "type": "string", - "example": "blue" - } - } - }, - "agents.AgentModel": { - "type": "object", - "properties": { - "id": { - "description": "Model id from GET /v1/fleet/models. Built-in ids are `provider:model`\n(e.g. anthropic:claude-sonnet-4-6); workspace (custom) models use the\nworkspace model id.", - "type": "string", - "example": "anthropic:claude-sonnet-4-6" - } - } - }, - "agents.AgentOptions": { - "type": "object", - "properties": { - "skip_memory_write_protection": { - "description": "Internal. Disables the human approval interrupt before memory writes.", - "type": "boolean" - }, - "slack_oauth_provider_id": { - "description": "Internal. Slack OAuth provider the agent posts replies as.", - "type": "string" - }, - "tools_url": { - "description": "Internal. MCP tool server the agent connects to; defaults to the platform server when empty.", + "error": { "type": "string" - }, - "trace_inputs_outputs": { - "description": "Whether the agent records run inputs/outputs to its tracing project.", - "type": "boolean" - }, - "triggers_paused": { - "description": "Internal. Not needed.", - "type": "boolean" - } - } - }, - "agents.AgentPermissions": { - "type": "object", - "properties": { - "identity": { - "type": "string", - "enum": [ - "personal", - "shared" - ] - }, - "shared_users": { - "$ref": "#/components/schemas/agents.SharedUsers" - }, - "tenant_access_level": { - "type": "string", - "enum": [ - "read", - "run", - "write" - ] - }, - "visibility": { - "type": "string", - "enum": [ - "tenant", - "user" - ] } } }, - "agents.AgentSummary": { + "agent.IssuesAgent": { "type": "object", "properties": { - "access_level": { - "type": "string", - "enum": [ - "READ", - "RUN", - "WRITE" - ] - }, - "backend": { - "$ref": "#/components/schemas/agents.AgentBackend" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "description": { - "type": "string" - }, - "display": { - "$ref": "#/components/schemas/agents.AgentDisplay" - }, - "extras": { - "type": "object", - "additionalProperties": {} - }, - "id": { - "type": "string", - "format": "uuid" - }, - "is_owner": { + "agent_overview_accepted": { "type": "boolean" }, - "model": { - "$ref": "#/components/schemas/agents.AgentModel" - }, - "name": { - "type": "string" - }, - "options": { - "$ref": "#/components/schemas/agents.AgentOptions" - }, - "owner_id": { - "type": "string", - "format": "uuid" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - }, - "agents.CloneAgentRequest": { - "type": "object", - "properties": { - "name": { + "analysis_level": { + "description": "AnalysisLevel controls coverage vs cost: \"standard\" (default), \"reduced\"\n(one scan a day, fewer traces per scan), or \"expanded\" (2x traces per\nrun). Stored NULL in the DB means standard; reads always return a\nconcrete value.", "type": "string", - "example": "Researcher (Copy)" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - } - } - }, - "agents.Connection": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" + "enum": [ + "standard", + "reduced", + "expanded" + ] + }, + "auto_open_fix_pr": { + "description": "When true, every fix run on this board opens a pull request instead of\nparking the fix for someone to publish. Defaults to false.", + "type": "boolean" }, - "auth_token_id": { + "context_hub_repo_handle": { "type": "string" }, "created_at": { "type": "string" }, - "created_by": { - "type": "string" + "cron_enabled": { + "type": "boolean" }, - "expires_at": { + "cron_schedule": { "type": "string" }, - "id": { + "engine_version": { "type": "string" }, - "provider_account_label": { + "github_base_branch": { "type": "string" }, - "provider_id": { + "github_repo_subdir": { "type": "string" }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "agents.CreateAgentRequest": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "backend": { - "$ref": "#/components/schemas/agents.AgentBackend" - }, - "configurable": { - "description": "Caller-defined key/value tracking merged into the agent's runtime\nconfiguration. Typed runtime fields win on key collision.", - "type": "object", - "additionalProperties": {} + "github_repo_url": { + "type": "string" }, - "description": { + "id": { "type": "string" }, - "display": { - "$ref": "#/components/schemas/agents.AgentDisplay" + "issue_count": { + "type": "integer" }, - "extras": { - "description": "Deprecated: metadata is fully typed via `permissions` and `display`.\nCaller-defined key/value tracking attached to the agent's metadata.\nSunset tracked in AB-2553: https://linear.app/langchain/issue/AB-2553", - "type": "object", - "additionalProperties": {} + "latest_run_id": { + "type": "string" }, - "files": { - "description": "Raw file map for paths the typed fields don't cover. Setting a typed\nfield and the corresponding `files` entry returns 422.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/agents.FileEntry" - } + "latest_thread_id": { + "description": "IDs of the latest run on LangSmith Deployments; NULL until first trigger.", + "type": "string" }, - "model": { - "$ref": "#/components/schemas/agents.AgentModel" + "linear_available": { + "type": "boolean" }, - "name": { - "type": "string" + "linear_integration": { + "$ref": "#/components/schemas/agent.LinearIntegration" }, - "options": { - "$ref": "#/components/schemas/agents.AgentOptions" + "linear_sync_health": { + "$ref": "#/components/schemas/agent.LinearSyncHealth" }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" + "preview_verify_enabled": { + "description": "PreviewVerifyEnabled lets this board's fix runs use preview deployments\nwhen issue validation is enabled for its tracing project.", + "type": "boolean" }, - "subagents": { - "description": "Subagents. Each entry is written to `subagents//AGENTS.md` and `subagents//tools.json`.", + "priorities": { "type": "array", "items": { - "$ref": "#/components/schemas/agents.SubagentSpec" + "type": "string" } }, - "system_prompt": { - "description": "Agent system prompt. Written to `AGENTS.md`.", - "type": "string", - "example": "You are a helpful agent. Use the available tools to answer the user's question." - }, - "tools": { - "description": "Tool config. Written to `tools.json`.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.ToolsConfig" - } - ] - } - } - }, - "agents.CreateConnectionRequest": { - "type": "object", - "properties": { - "auth_token_id": { - "type": "string" - } - } - }, - "agents.ErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "detail": { + "run_filter": { + "description": "RunFilter is a runs-filter-DSL string scoping which traces Engine analyzes\n(prompt guidance, not an enforced query). NULL = no scope. Clamped by\nvalidateRunFilter.", "type": "string" }, - "status": { + "selected_trace_count": { + "description": "SelectedTraceCount is the number of traces Engine inspected in the last 14 days.", "type": "integer" }, - "type": { + "session_agent_overview_repo_id": { "type": "string" - } - } - }, - "agents.FileEntry": { - "type": "object", - "properties": { - "commit_id": { - "description": "Optional pin to a specific skill commit (`type=skill` only). Defaults to\nthe repo's latest commit.", + }, + "session_id": { "type": "string" }, - "content": { - "description": "File contents as a UTF-8 string. Required for `file` entries; must be\nempty for `skill` entries.", - "type": "string", - "example": "# AGENTS.md\n\nYou are a helpful agent." + "session_lcu_spend_limit_monthly": { + "description": "SessionLCUSpendLimitMonthly is the per-project monthly Engine LCU spend\nlimit: NULL/negative = no limit; 0 or positive = monthly cap (spend is\nnever negative, so a cap of 0 always reads as reached). Enforced in\naddition to (and independently of) the org-level limit. Serialized as a\nstring to preserve NUMERIC(28,6) precision.", + "type": "string" }, - "repo_handle": { - "description": "Workspace skill repo handle. Required when `type=skill`, otherwise empty.", - "type": "string", - "example": "summarizer" + "session_name": { + "description": "JOINed from tracer_session", + "type": "string" }, - "type": { - "description": "Entry kind. `file` (default) carries inline `content`; `skill` links a\nshared workspace skill repo via `repo_handle`.", - "type": "string", - "enum": [ - "file", - "skill" - ], - "example": "file" - } - } - }, - "agents.HealthResponse": { - "type": "object", - "properties": { - "agent_id": { + "tenant_id": { "type": "string" }, - "checked_at": { - "type": "string", - "format": "date-time" + "tenant_name": { + "description": "JOINed from tenants (workspace label); resolved server-side so the org-admin list can label rows across workspaces the caller isn't a member of", + "type": "string" }, - "mcp_check": { - "$ref": "#/components/schemas/agents.MCPCheck" - } - } - }, - "agents.InterruptRule": { - "type": "object" - }, - "agents.ListAgentsResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.AgentSummary" - } + "updated_at": { + "type": "string" }, - "next_cursor": { + "user_instructions": { + "description": "User-owned freeform preferences. Engine reads this as authoritative\ncontext and reconciles it into the Agent Overview on the next scan, but\nnever edits it. NULL when the user hasn't set any.", "type": "string" } } }, - "agents.ListConnectionsResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.Connection" - } - } - } - }, - "agents.MCPCheck": { + "agent.LinearIntegration": { "type": "object", "properties": { - "ok": { + "enabled": { "type": "boolean" }, - "servers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.MCPServerHealth" - } - } - } - }, - "agents.MCPServerHealth": { - "type": "object", - "properties": { - "error": { + "project_id": { "type": "string" }, - "error_code": { - "$ref": "#/components/schemas/mcptools.MCPErrorCode" + "project_name": { + "type": "string" }, - "is_default": { - "type": "boolean" + "team_id": { + "type": "string" }, - "name": { + "team_key": { "type": "string" }, - "ok": { - "type": "boolean" + "team_name": { + "type": "string" }, - "url": { + "workspace_id": { + "type": "string" + }, + "workspace_name": { "type": "string" } } }, - "agents.SandboxConfig": { + "agent.LinearIntegrationPatch": { "type": "object", "properties": { - "delete_after_stop_seconds": { - "description": "Time after a sandbox is stopped before it is deleted, in seconds.", - "type": "integer", - "example": 1200 + "enabled": { + "type": "boolean" }, - "idle_ttl_seconds": { - "description": "Idle timeout after which an unused sandbox is paused, in seconds.", - "type": "integer", - "example": 600 + "project_id": { + "type": "string" }, - "policy_ids": { - "description": "Sandbox policies governing tool execution.", - "type": "array", - "items": { - "type": "string" - } + "project_name": { + "type": "string" }, - "sandbox_id": { - "description": "Pinned sandbox instance the agent reuses across runs.", + "team_id": { "type": "string" }, - "scope": { - "description": "Sandbox lifecycle. `thread` gives each thread its own sandbox; `agent`\nshares one sandbox across all of the agent's threads. Required when\n`backend.type` is `sandbox`.", - "type": "string", - "enum": [ - "thread", - "agent" - ], - "example": "thread" + "team_key": { + "type": "string" }, - "snapshot_id": { - "description": "Snapshot used when creating new sandbox-backed computers.", - "type": "string", - "example": "550e8400-e29b-41d4-a716-446655440000" - } - } - }, - "agents.SharedUsers": { - "type": "object", - "properties": { - "read": { - "description": "User IDs allowed to read the agent.", - "type": "array", - "items": { - "type": "string" - } + "team_name": { + "type": "string" }, - "run": { - "description": "User IDs allowed to run the agent.", - "type": "array", - "items": { - "type": "string" - } + "workspace_id": { + "type": "string" }, - "update": { - "description": "User IDs allowed to update the agent.", - "type": "array", - "items": { - "type": "string" - } + "workspace_name": { + "type": "string" } } }, - "agents.SubagentSpec": { + "agent.LinearSyncHealth": { "type": "object", "properties": { - "description": { - "description": "Short human-readable description.", - "type": "string", - "example": "Researches a topic and summarises findings." - }, - "instructions": { - "description": "Deprecated: use `system_prompt`. Accepted for backwards compatibility;\n`system_prompt` takes precedence when both are set.", - "type": "string" + "auth_required": { + "type": "integer" }, - "model": { - "description": "Model for this subagent. Inherits the parent agent's model when omitted.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.AgentModel" - } - ] + "failed": { + "type": "integer" }, - "name": { - "description": "Subagent slug. Becomes `subagents//AGENTS.md`.", - "type": "string", - "example": "researcher" + "paused": { + "type": "integer" }, - "system_prompt": { - "description": "Subagent system prompt. Written to `subagents//AGENTS.md`.", - "type": "string", - "example": "You are a research assistant. Use the available tools to gather information." + "pending": { + "type": "integer" }, - "tools": { - "description": "Subagent tool config. Written to `subagents//tools.json`.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.ToolsConfig" - } - ] + "synced": { + "type": "integer" } } }, - "agents.ToolSpec": { + "agent.SaveOverviewRequest": { "type": "object", "properties": { - "display_name": { - "description": "Display name for the tool. Defaults to the tool name when empty.", - "type": "string", - "example": "read_url_content" - }, - "mcp_server_name": { - "description": "Display name for the MCP server. Defaults to the URL when empty.", - "type": "string", - "example": "Fleet" - }, - "mcp_server_url": { - "description": "URL of the MCP server hosting this tool.", - "type": "string", - "example": "https://tools.example.com" - }, - "name": { - "description": "Tool name as exposed by the MCP server.", - "type": "string", - "example": "read_url_content" + "content": { + "type": "string" } } }, - "agents.ToolsConfig": { + "agent.SaveOverviewResponse": { "type": "object", "properties": { - "interrupt_config": { - "description": "Per-tool interrupt rules keyed by tool name. Each value is `true`/`false`\n(require approval or not) or an object (see InterruptOnConfig). `{}` = no\ninterrupts.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/agents.InterruptRule" - } + "commit_hash": { + "type": "string" }, - "tools": { - "description": "MCP tools available to the agent. Serialised to `tools.json`.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.ToolSpec" - } + "session_agent_overview_repo_id": { + "type": "string" } } }, - "agents.UpdateAgentRequest": { + "agent.UpdateIssuesAgentRequest": { "type": "object", "properties": { - "backend": { - "$ref": "#/components/schemas/agents.AgentBackend" + "agent_overview_accepted": { + "type": "boolean" }, - "configurable": { - "description": "Caller-defined key/value tracking merged into the agent's runtime\nconfiguration. Typed runtime fields win on key collision.", - "type": "object", - "additionalProperties": {} + "analysis_level": { + "description": "AnalysisLevel: \"standard\", \"reduced\", or \"expanded\". Switching to or from\n\"reduced\" also resets the scan cadence. nil = don't change.", + "type": "string", + "enum": [ + "standard", + "reduced", + "expanded" + ] }, - "deleted_paths": { - "description": "Paths to remove from the file tree. Relative paths only.", - "type": "array", - "items": { - "type": "string" - } + "auto_open_fix_pr": { + "type": "boolean" }, - "description": { + "context_hub_repo_handle": { "type": "string" }, - "display": { - "$ref": "#/components/schemas/agents.AgentDisplay" - }, - "extras": { - "description": "Caller-defined key/value tracking attached to the agent's metadata.", - "type": "object", - "additionalProperties": {} + "cron_enabled": { + "type": "boolean" }, - "files": { - "description": "Raw file entries created or replaced by path. Triggers a new commit.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/agents.FileEntry" - } + "github_base_branch": { + "type": "string" }, - "model": { - "$ref": "#/components/schemas/agents.AgentModel" + "github_repo_subdir": { + "type": "string" }, - "name": { + "github_repo_url": { "type": "string" }, - "options": { - "$ref": "#/components/schemas/agents.AgentOptions" + "linear_integration": { + "$ref": "#/components/schemas/agent.LinearIntegrationPatch" }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" + "preview_verify_enabled": { + "type": "boolean" }, - "subagents": { - "description": "Subagents. Each entry is written to `subagents//AGENTS.md` and `subagents//tools.json`. Triggers a new commit.", + "priorities": { "type": "array", "items": { - "$ref": "#/components/schemas/agents.SubagentSpec" + "type": "string" } }, - "system_prompt": { - "description": "Agent system prompt. Written to `AGENTS.md`. Triggers a new commit.", - "type": "string", - "example": "You are a helpful agent. Use the available tools to answer the user's question." + "run_filter": { + "description": "Trace-scope DSL. nil = don't change; \"\" clears it.", + "type": "string" }, - "tools": { - "description": "Tool config. Written to `tools.json`. Triggers a new commit.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.ToolsConfig" - } - ] + "session_agent_overview_repo_id": { + "type": "string" + }, + "session_lcu_spend_limit_monthly": { + "description": "SessionLCUSpendLimitMonthly sets the per-project monthly LCU spend limit.\nTri-state: absent (nil) = don't change; 0 or positive = monthly cap (a cap\nof 0 is always reached, blocking new runs); negative clears it (stored as\nNULL = no limit). The frontend sends a negative number to clear rather\nthan null, since null is indistinguishable from \"absent\". Serialized as a\nstring to preserve NUMERIC precision.", + "type": "string" + }, + "user_instructions": { + "description": "Freeform user preferences. Send \"\" to clear (the frontend must not send null).", + "type": "string" } } }, @@ -75975,7 +77536,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] }, "updated_at": { @@ -76004,7 +77566,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] } } @@ -76204,6 +77767,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76231,6 +77795,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76240,6 +77805,29 @@ } } }, + "annotationqueues.AddAnnotationQueueItemsRequest": { + "type": "object", + "properties": { + "items": { + "type": "array", + "maxItems": 100, + "items": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemInput" + } + } + } + }, + "annotationqueues.AddAnnotationQueueItemsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItem" + } + } + } + }, "annotationqueues.AddReviewerRequest": { "type": "object", "required": [ @@ -76259,153 +77847,249 @@ } } }, - "auth.CreateSessionRequest": { + "annotationqueues.AnnotationQueueItem": { "type": "object", "properties": { - "agent_id": { + "added_at": { "type": "string" }, - "is_default": { - "type": "boolean" - }, - "provider_id": { + "id": { "type": "string" }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "strategy": { - "$ref": "#/components/schemas/auth.SessionStrategy" + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" }, - "token_id": { + "last_reviewed_time": { + "description": "LastReviewedTime is always present on the wire (null until reviewed).", "type": "string" - } - } - }, - "auth.CreateSessionResponse": { - "type": "object", - "properties": { - "id": { + }, + "project_id": { "type": "string" }, - "metadata": { - "type": "object", - "additionalProperties": {} + "queue_id": { + "type": "string" }, - "provider_id": { + "run_id": { "type": "string" }, - "status": { - "$ref": "#/components/schemas/auth.SessionStatus" + "source_proposed_example_id": { + "type": "string" }, - "token": { + "start_time": { "type": "string" }, - "verification_url": { + "thread_id": { "type": "string" } } }, - "auth.GetSessionResponse": { + "annotationqueues.AnnotationQueueItemCountResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/auth.SessionStatus" + "count": { + "type": "integer" } } }, - "auth.ListTokensResponse": { + "annotationqueues.AnnotationQueueItemInput": { "type": "object", "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/auth.TokenSummary" - } + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" }, - "next_cursor": { + "project_id": { + "type": "string" + }, + "run_id": { + "description": "RUN fields", + "type": "string" + }, + "session_id": { + "description": "SessionID is an alias for project_id.", + "type": "string" + }, + "source_proposed_example_id": { + "description": "SourceProposedExampleID links the queue item to the suggested example\nit was created from, when applicable.", + "type": "string" + }, + "start_time": { + "type": "string", + "format": "date-time" + }, + "thread_id": { "type": "string" } } }, - "auth.SessionStatus": { + "annotationqueues.AnnotationQueueItemListStatus": { "type": "string", "enum": [ - "PENDING", - "COMPLETED", - "CONNECTION_REQUIRED", - "TOKEN_EXPIRED" + "needs_my_review", + "needs_others_review", + "archived" ], "x-enum-varnames": [ - "SessionStatusPending", - "SessionStatusCompleted", - "SessionStatusConnectionRequired", - "SessionStatusTokenExpired" + "AnnotationQueueItemStatusNeedsMyReview", + "AnnotationQueueItemStatusNeedsOthersReview", + "AnnotationQueueItemStatusArchived" ] }, - "auth.SessionStrategy": { + "annotationqueues.AnnotationQueueItemPlacementResponse": { + "type": "object", + "properties": { + "cursor": { + "type": "string" + }, + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" + }, + "position": { + "type": "integer" + }, + "section": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemListStatus" + } + } + }, + "annotationqueues.AnnotationQueueItemType": { "type": "string", "enum": [ - "REUSE", - "CREATE" + "RUN", + "THREAD" ], "x-enum-varnames": [ - "SessionStrategyReuse", - "SessionStrategyCreate" + "AnnotationQueueItemTypeRun", + "AnnotationQueueItemTypeThread" ] }, - "auth.TokenSummary": { + "annotationqueues.AnnotationQueueListItem": { "type": "object", "properties": { - "created_at": { + "added_at": { "type": "string" }, - "expires_at": { + "completed_by": { + "type": "array", + "items": { + "type": "string" + } + }, + "effective_added_at": { "type": "string" }, "id": { "type": "string" }, - "is_default": { - "type": "boolean" + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" }, - "label": { + "last_reviewed_time": { + "description": "LastReviewedTime is always present on the wire (null until reviewed).", "type": "string" }, - "provider_id": { + "project_id": { "type": "string" }, - "scopes": { + "queue_id": { + "type": "string" + }, + "reserved_by": { "type": "array", "items": { "type": "string" } }, - "updated_at": { + "run_id": { + "type": "string" + }, + "source_proposed_example_id": { + "type": "string" + }, + "start_time": { + "type": "string" + }, + "thread_id": { "type": "string" } } }, - "auth.errorResponse": { + "annotationqueues.AnnotationQueueReviewStatus": { + "type": "string", + "enum": [ + "viewed", + "completed" + ], + "x-enum-varnames": [ + "AnnotationQueueReviewStatusViewed", + "AnnotationQueueReviewStatusCompleted" + ] + }, + "annotationqueues.CreateAnnotationQueueItemStatusRequest": { "type": "object", "properties": { - "code": { + "override_added_at": { "type": "string" }, - "detail": { + "status": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueReviewStatus" + } + } + }, + "annotationqueues.CreateAnnotationQueueItemStatusResponse": { + "type": "object", + "properties": { + "is_archived": { + "type": "boolean" + }, + "override_added_at": { + "type": "string" + }, + "queue_item_id": { "type": "string" }, "status": { - "type": "integer" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueReviewStatus" + } + } + }, + "annotationqueues.DeleteAnnotationQueueItemsRequest": { + "type": "object", + "properties": { + "item_ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "annotationqueues.ListAnnotationQueueItemsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueListItem" + } }, - "type": { + "next_cursor": { "type": "string" + }, + "previous_cursor": { + "type": "string" + } + } + }, + "annotationqueues.PatchAnnotationQueueItemRequest": { + "type": "object", + "properties": { + "added_at": { + "type": "string", + "format": "date-time" + }, + "last_reviewed_time": { + "type": "string", + "format": "date-time" } } }, @@ -76480,6 +78164,10 @@ "description": "CLIOEnabled indicates whether CLIO is enabled for this org.", "type": "boolean" }, + "code_evaluator_execution_batch_size": { + "description": "CodeEvaluatorExecutionBatchSize is a per-org override for how many code-evaluator\nexecutions are grouped into a single ACE /execute request. nil uses the global\ndefault (RUN_RULES_CODE_EXECUTE_BATCH_SIZE). Consumed only by smith-backend; carried\nhere so the value survives the org-config JSON round-trip into the Python auth payload.", + "type": "integer" + }, "datadog_rum_session_sample_rate": { "description": "DatadogRumSessionSampleRate indicates the sampling rate for datadog RUM sessions.", "type": "integer" @@ -76488,12 +78176,16 @@ "description": "DemoLgpNewGraphEnabled indicates whether this org can use the demo page for creating new graphs.", "type": "boolean" }, + "dev_zero_deployments_enabled": { + "description": "DevZeroDeploymentsEnabled indicates whether the org can create development deployments that scale to zero.", + "type": "boolean" + }, "enable_align_evaluators": { "description": "EnableAlignEvaluators indicates whether to enable the align evaluators flow for this org.", "type": "boolean" }, "enable_burndown_vs_commit_view": { - "description": "EnableBurndownVsCommitView indicates whether the org can view contract usage (burndown vs commitment).", + "description": "Deprecated: EnableBurndownVsCommitView is retained for backward compatibility and is always false; contract-usage visibility is no longer gated on it.", "type": "boolean" }, "enable_granular_usage_reporting": { @@ -76512,14 +78204,6 @@ "description": "EnableMarkdownInTracing indicates whether markdown is enabled in tracing", "type": "boolean" }, - "enable_monthly_usage_charts": { - "description": "EnableMonthlyUsageCharts indicates whether to show monthly organization usage charts backed by Metronome for self hosted customers", - "type": "boolean" - }, - "enable_org_usage_charts": { - "description": "EnableOrgUsageCharts indicates whether to show organization usage charts backed by ClickHouse queries instead of Metronome.", - "type": "boolean" - }, "enable_pricing_redesign": { "description": "EnablePricingRedesign indicates whether the pricing redesign is enabled", "type": "boolean" @@ -76541,21 +78225,45 @@ "type": "boolean" }, "engine_default_enabled": { - "description": "EngineDefaultEnabled indicates whether Engine is enabled by default for this organization's plan.", + "description": "EngineDefaultEnabled is the plan-level Engine entitlement. An explicit false\ndisables Engine for the organization outright; true and nil both defer to the\norganization's own engine_enabled setting.", "type": "boolean" }, "engine_lcu_spend_limit_monthly": { "description": "EngineLCUSpendLimitMonthly is an optional Metronome-set monthly LCU spend limit\nfor Engine. nil means no limit at this layer. Both the Metronome plan and customer\ncustom fields use this single key; the plan-then-customer config merge means the\ncustomer value (when set) overwrites the plan value, so only the resolved value\narrives here. The effective enforced limit is the minimum of this and the org admin\nlimit (organizations.engine_lcu_spend_limit_monthly).", "type": "number" }, + "fleet_builtin_models_enabled": { + "description": "FleetBuiltinModelsEnabled indicates whether the org can use Fleet's served\nbuilt-in models (the Fast/Pro/Max tiers). Resolved from the Metronome\nplan/customer custom field, falling back to organizations.config; code\ndefault false (paid feature, fail-closed).", + "type": "boolean" + }, + "fleet_lcu_spend_limit_monthly": { + "description": "FleetLCUSpendLimitMonthly caps an org's monthly Fleet LCU spend, resolved from\nMetronome custom fields. nil or negative means unlimited; 0 blocks all runs.", + "type": "number" + }, + "gateway_data_protection_enabled": { + "description": "GatewayDataProtectionEnabled indicates whether this org can use gateway\ndata protection (the \"guard\" policy type, backed by Presidio).\nSet by Metronome entitlement, not admin-patchable. Defaults on, so orgs\nwithout an explicit entitlement value can configure guard policies.", + "type": "boolean" + }, + "gateway_pii_redaction_enabled": { + "description": "GatewayPIIRedactionEnabled indicates whether this org can use PII\ndetection/redaction inside gateway data protection (guard) policies.\nSub-gate beneath GatewayDataProtectionEnabled: when this is off,\nPII-configured guard policies are unavailable as a whole.\nSet by Metronome entitlement, not admin-patchable.", + "type": "boolean" + }, "ip_allowlist_enabled": { "description": "IPAllowlistEnabled indicates whether this org can configure and enforce IP allowlists.\nSet by Metronome entitlement, not admin-patchable.", "type": "boolean" }, + "is_anonymous": { + "description": "IsAnonymous, when true, restricts members to viewing only themselves in\nmember-listing endpoints.", + "type": "boolean" + }, "kv_dataset_message_support": { "description": "KvDatasetMessageSupport indicates whether to use the new messages experience for KV datasets.", "type": "boolean" }, + "langchain_provider_spend_limit_monthly": { + "description": "LangChainProviderSpendLimitMonthly caps monthly at-cost Connect via LangSmith\nspend (USD). nil means unset, -1 means unlimited, and any other non-positive\nvalue blocks usage.", + "type": "number" + }, "langgraph_deploy_own_cloud_enabled": { "description": "LangGraphDeployOwnCloudEnabled indicates whether the org can deploy LangGraph cloud to their own cloud.", "type": "boolean" @@ -76608,7 +78316,7 @@ "type": "integer" }, "max_prompt_webhooks": { - "description": "MaxPromptWebhooks is the maximum number of prompt webhooks allowed for this org.", + "description": "MaxPromptWebhooks independently limits each org's Prompt Hub and Context Hub webhook collections.", "type": "integer" }, "max_sandbox_cpu": { @@ -76627,6 +78335,10 @@ "description": "MaxWorkspaces is the maximum number of workspaces allowed in this org. -1 means no limit.", "type": "integer" }, + "models_connect_via_langsmith_enabled": { + "description": "ModelsConnectViaLangSmithEnabled indicates whether the org can use Connect via\nLangSmith for /langchain gateway model requests. Defaults false.", + "type": "boolean" + }, "new_rule_evaluator_creation_version": { "description": "New Evaluator Version", "type": "integer" @@ -76651,6 +78363,10 @@ "description": "SandboxEnabled indicates whether this org can use sandboxes.", "type": "boolean" }, + "sandbox_restricted_egress": { + "description": "SandboxRestrictedEgress forces sandboxes onto the curated restricted-egress\nallowlist, regardless of access control supplied by the caller.", + "type": "boolean" + }, "show_playground_prompt_canvas": { "description": "ShowPlaygroundPromptCanvas indicates whether to show the playground prompt canvas.", "type": "boolean" @@ -76671,6 +78387,10 @@ "description": "TenantSkipTopkFacets indicates whether the tenant should skip topk facets in run stats.", "type": "boolean" }, + "tuned_evals_enabled": { + "description": "TunedEvalsEnabled indicates whether this org's plan entitles it to\nuse LangChain Tuned Evaluators. Set by Metronome entitlement.", + "type": "boolean" + }, "use_exact_search_for_prompts": { "description": "UseExactSearchForPrompts indicates whether to use exact search for prompts.", "type": "boolean" @@ -76874,10 +78594,18 @@ "charts:delete", "charts:read", "charts:update", + "custom-apps:create", + "custom-apps:delete", + "custom-apps:download", + "custom-apps:read", + "custom-apps:update", + "datasets:clone", "datasets:create", "datasets:delete", + "datasets:download", "datasets:read", "datasets:share", + "datasets:tag-on-create", "datasets:update", "deployments:create", "deployments:delete", @@ -76887,6 +78615,9 @@ "feedback:delete", "feedback:read", "feedback:update", + "feedback-configs:create", + "feedback-configs:update", + "feedback-configs:delete", "experiments:run", "issues:create", "issues:delete", @@ -76895,31 +78626,43 @@ "projects:create", "projects:delete", "projects:read", + "projects:tag-on-create", "projects:update", "projects:increase-trace-tier", "projects:decrease-trace-tier", "prompts:create", "prompts:delete", "prompts:read", + "prompts:tag-on-create", "prompts:update", "prompts:share", "rules:create", "rules:delete", "rules:read", "rules:update", + "rules:configure-retention", "runs:create", "runs:read", "runs:share", "runs:delete", + "model-price-map:create", + "model-price-map:read", + "model-price-map:update", + "model-price-map:delete", "sandboxes:create", "sandboxes:delete", "sandboxes:read", + "sandboxes:tag-on-create", "sandboxes:update", "sandboxes:exec", + "snapshots:create", + "snapshots:delete", + "snapshots:update", "workspaces:manage-members", "workspaces:manage-secrets", "workspaces:manage", "workspaces:manage-model-configs", + "workspaces:manage-keys", "workspaces:read", "alerts:create", "alerts:update", @@ -76937,7 +78680,9 @@ "fleet:write-admin-config", "organization:pats:create", "organization:read", - "organization:manage" + "organization:manage", + "organization:manage-model-configs", + "organization:manage-model-secrets" ], "x-enum-varnames": [ "AnnotationQueuesCreate", @@ -76948,10 +78693,18 @@ "ChartsDelete", "ChartsRead", "ChartsUpdate", + "CustomAppsCreate", + "CustomAppsDelete", + "CustomAppsDownload", + "CustomAppsRead", + "CustomAppsUpdate", + "DatasetsClone", "DatasetsCreate", "DatasetsDelete", + "DatasetsDownload", "DatasetsRead", "DatasetsShare", + "DatasetsTagOnCreate", "DatasetsUpdate", "DeploymentsCreate", "DeploymentsDelete", @@ -76961,6 +78714,9 @@ "FeedbackDelete", "FeedbackRead", "FeedbackUpdate", + "FeedbackConfigsCreate", + "FeedbackConfigsUpdate", + "FeedbackConfigsDelete", "ExperimentsRun", "IssuesCreate", "IssuesDelete", @@ -76969,31 +78725,43 @@ "ProjectsCreate", "ProjectsDelete", "ProjectsRead", + "ProjectsTagOnCreate", "ProjectsUpdate", "ProjectsIncreaseTraceTier", "ProjectsDecreaseTraceTier", "PromptsCreate", "PromptsDelete", "PromptsRead", + "PromptsTagOnCreate", "PromptsUpdate", "PromptsShare", "RulesCreate", "RulesDelete", "RulesRead", "RulesUpdate", + "RulesConfigureRetention", "RunsCreate", "RunsRead", "RunsShare", "RunsDelete", + "ModelPriceMapCreate", + "ModelPriceMapRead", + "ModelPriceMapUpdate", + "ModelPriceMapDelete", "SandboxesCreate", "SandboxesDelete", "SandboxesRead", + "SandboxesTagOnCreate", "SandboxesUpdate", "SandboxesExec", + "SnapshotsCreate", + "SnapshotsDelete", + "SnapshotsUpdate", "WorkspacesManageMembers", "WorkspacesManageSecrets", "WorkspacesManage", "WorkspacesManageModelConfigs", + "WorkspacesManageKeys", "WorkspacesRead", "AlertsCreate", "AlertsUpdate", @@ -77011,33 +78779,42 @@ "FleetWriteAdminConfig", "OrganizationPATsCreate", "OrganizationRead", - "OrganizationManage" + "OrganizationManage", + "OrganizationManageModelConfigs", + "OrganizationManageModelSecrets" ] }, - "backfills.restartBackfillRequest": { + "authz_internal.UpdateAccessPolicyPayload": { "type": "object", "properties": { - "backfill_name": { + "condition_groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/authz_internal.ConditionGroup" + } + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "effect": { + "type": "string" + }, + "name": { "type": "string" } } }, - "beacon.SubmitUsageSnapshotPayload": { + "backfills.restartBackfillRequest": { "type": "object", "properties": { - "from_timestamp": { - "type": "string" - }, - "license_key": { - "type": "string" - }, - "measures": { - "type": "object", - "additionalProperties": { - "type": "integer" - } - }, - "to_timestamp": { + "backfill_name": { "type": "string" } } @@ -77216,90 +78993,106 @@ } } }, - "credentials.ErrorResponse": { + "data_planes.CreateDataPlaneRequestAws": { "type": "object", "properties": { - "code": { + "external_id": { "type": "string" }, - "detail": { + "name": { "type": "string" }, - "status": { - "type": "integer" + "public_load_balancer": { + "type": "boolean" }, - "type": { + "region": { "type": "string" - } - } - }, - "credentials.bindingPayload": { - "type": "object", - "required": [ - "kind", - "url" - ], - "properties": { - "kind": { - "type": "string", - "enum": [ - "mcp_server" - ] }, - "url": { + "role_arn": { + "type": "string" + }, + "vpc_cidr": { "type": "string" } } }, - "credentials.response": { + "data_planes.CreateErrorResponse": { "type": "object", + "required": [ + "code", + "detail", + "status", + "title", + "type" + ], "properties": { - "auth_type": { + "code": { "type": "string" }, - "bindings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/credentials.bindingPayload" - } - }, - "created_at": { + "detail": { "type": "string" }, - "description": { + "instance": { "type": "string" }, - "display_name": { - "type": "string" + "status": { + "type": "integer" }, - "id": { + "title": { "type": "string" }, - "scope_slug": { + "type": { "type": "string" } } }, - "data_planes.CreateDataPlaneRequestAws": { + "data_planes.DataPlaneFirewallSettings": { "type": "object", + "required": [ + "allowed_domains" + ], "properties": { - "external_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "public_load_balancer": { + "allowed_domains": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "data_planes.DataPlaneTTLSettings": { + "type": "object", + "required": [ + "enabled", + "long_days", + "short_days" + ], + "properties": { + "enabled": { "type": "boolean" }, - "region": { - "type": "string" + "long_days": { + "type": "integer" }, - "role_arn": { + "short_days": { + "type": "integer" + } + } + }, + "data_planes.ErrorResponse": { + "type": "object", + "properties": { + "code": { "type": "string" }, - "vpc_cidr": { + "error": { "type": "string" + }, + "missing_permissions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/data_planes.MissingPermission" + } } } }, @@ -77314,6 +79107,20 @@ } } }, + "data_planes.MissingPermission": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "decision": { + "type": "string" + }, + "resource_arn": { + "type": "string" + } + } + }, "data_planes.PublicDataPlane": { "type": "object", "properties": { @@ -77323,9 +79130,15 @@ "created_at": { "type": "string" }, + "firewall": { + "$ref": "#/components/schemas/data_planes.DataPlaneFirewallSettings" + }, "id": { "type": "string" }, + "maintenance_window": { + "type": "string" + }, "name": { "type": "string" }, @@ -77338,6 +79151,9 @@ "status_updated_at": { "type": "string" }, + "ttl": { + "$ref": "#/components/schemas/data_planes.DataPlaneTTLSettings" + }, "workspaces": { "type": "array", "items": { @@ -77364,6 +79180,7 @@ "provisioning", "provisioning_failed", "active", + "updating", "inactive", "deprovisioning", "deleted", @@ -77374,13 +79191,198 @@ "DataPlaneStatusProvisioning", "DataPlaneStatusProvisioningFailed", "DataPlaneStatusActive", + "DataPlaneStatusUpdating", "DataPlaneStatusInactive", "DataPlaneStatusDeprovisioning", "DataPlaneStatusDeleted", "DataPlaneStatusRevoked" ] }, - "directories.CommitInfo": { + "data_planes.UpdateDataPlaneFirewallSettings": { + "type": "object", + "properties": { + "allowed_domains": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "data_planes.UpdateDataPlaneRequest": { + "type": "object", + "properties": { + "firewall": { + "$ref": "#/components/schemas/data_planes.UpdateDataPlaneFirewallSettings" + }, + "maintenance_window": { + "description": "MaintenanceWindow is the two-hour weekly maintenance window in UTC.", + "type": "string" + }, + "ttl": { + "$ref": "#/components/schemas/data_planes.UpdateDataPlaneTTLSettings" + } + } + }, + "data_planes.UpdateDataPlaneTTLSettings": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "long_days": { + "type": "integer" + }, + "short_days": { + "type": "integer" + } + } + }, + "datasets.V2DatasetsExperimentRunsRequestBody": { + "type": "object", + "properties": { + "comparative_experiment_id": { + "description": "`comparative_experiment_id` scopes pairwise-annotation feedback (optional).", + "type": "string" + }, + "cursor": { + "description": "`cursor` is the opaque string from a previous response's `next_cursor`. Absent for the first page.", + "type": "string" + }, + "example_ids": { + "description": "`example_ids` optionally restricts the page to these dataset example UUIDs (max 1000).", + "type": "array", + "items": { + "type": "string" + } + }, + "experiment_ids": { + "description": "`experiment_ids` lists the experiment (tracing session) UUIDs to query. Required, non-empty.", + "type": "array", + "items": { + "type": "string" + } + }, + "filters": { + "description": "`filters` maps a project (session) UUID string to a list of filter expressions (optional).", + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "page_size": { + "description": "`page_size` is the maximum number of examples to return. Defaults to 20, max 100.", + "type": "integer" + }, + "selects": { + "description": "`selects` lists which run properties to include. Omitted => only `id`. Tokens mirror /v2/runs/query.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunSelectField" + } + }, + "sort": { + "description": "`sort` controls feedback-score sorting (single project only).", + "allOf": [ + { + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsSort" + } + ] + } + } + }, + "datasets.V2DatasetsExperimentRunsResponseBody": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/datasets.V2ExampleWithRuns" + } + }, + "next_cursor": { + "type": "string" + } + } + }, + "datasets.V2DatasetsExperimentRunsSort": { + "type": "object", + "properties": { + "by": { + "description": "`by` is the feedback selector, e.g. `feedback.correctness` (the `feedback.` prefix is optional).", + "type": "string" + }, + "order": { + "description": "`order` is `ASC` or `DESC` (defaults to `DESC`).", + "type": "string" + } + } + }, + "datasets.V2ExampleWithRuns": { + "type": "object", + "properties": { + "attachment_urls": { + "description": "`attachment_urls` maps each attachment name to a pre-signed download URL.", + "type": "object" + }, + "created_at": { + "description": "`created_at` is when the example was created (RFC3339 date-time).", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:30:00.000Z" + }, + "dataset_id": { + "description": "`dataset_id` is the parent dataset UUID.", + "type": "string", + "format": "uuid", + "example": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" + }, + "id": { + "description": "`id` is the dataset example UUID.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + }, + "inputs": { + "description": "`inputs` is the example input payload (arbitrary JSON object).", + "type": "object" + }, + "metadata": { + "description": "`metadata` is arbitrary user-defined JSON metadata on the example.", + "type": "object" + }, + "modified_at": { + "description": "`modified_at` is when the example was last modified (RFC3339 date-time).", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:30:00.000Z" + }, + "name": { + "description": "`name` is the example's optional name.", + "type": "string" + }, + "outputs": { + "description": "`outputs` is the example reference-output payload (arbitrary JSON object).", + "type": "object" + }, + "runs": { + "description": "`runs` is the list of experiment runs produced for this example.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunResponse" + } + }, + "source_run_id": { + "description": "`source_run_id` is the run UUID the example was created from, if any.", + "type": "string", + "format": "uuid" + } + } + }, + "directory.CommitInfo": { "type": "object", "properties": { "commit_hash": { @@ -77394,15 +79396,15 @@ } } }, - "directories.CommitResponse": { + "directory.CommitResponse": { "type": "object", "properties": { "commit": { - "$ref": "#/components/schemas/directories.CommitInfo" + "$ref": "#/components/schemas/directory.CommitInfo" } } }, - "directories.CreateDirectoryCommitRequest": { + "directory.CreateDirectoryCommitRequest": { "type": "object", "properties": { "files": { @@ -77412,10 +79414,14 @@ }, "parent_commit": { "type": "string" + }, + "skip_webhooks": { + "description": "SkipWebhooks, when true, suppresses Context Hub commit webhooks for this\ncommit. Deliberately a plain bool, not the any (bool | []string) shape of\nthe prompt-hub CreateCommitReq.SkipWebhooks: Context Hub v1 has no\nper-webhook filtering, so a bool is the correct shape.", + "type": "boolean" } } }, - "directories.GetDirectoryResponse": { + "directory.GetDirectoryResponse": { "type": "object", "properties": { "commit_hash": { @@ -77430,17 +79436,41 @@ } } }, - "engine_trial.trialResponseRequest": { + "directory.errorResponse": { "type": "object", + "required": [ + "detail", + "status", + "title", + "type" + ], "properties": { - "action": { + "code": { + "type": "string" + }, + "conflicting_path": { + "type": "string" + }, + "detail": { + "type": "string" + }, + "path": { + "type": "string" + }, + "rule": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "title": { + "type": "string" + }, + "type": { "type": "string" } } }, - "errutil.InternalError": { - "type": "object" - }, "errutil.UserError": { "type": "object" }, @@ -77478,12 +79508,27 @@ "code": { "type": "string" }, + "dependencies": { + "type": "string" + }, + "evaluator_build_error": { + "type": "string" + }, + "evaluator_build_status": { + "$ref": "#/components/schemas/evaluators.EvaluatorBuildStatus" + }, "evaluator_id": { "type": "string" }, "language": { "description": "Default: \"python\"", "type": "string" + }, + "workspace_secrets_keys": { + "type": "array", + "items": { + "type": "string" + } } } }, @@ -77493,9 +79538,18 @@ "code": { "type": "string" }, + "dependencies": { + "type": "string" + }, "language": { "description": "Default: \"python\"", "type": "string" + }, + "workspace_secrets_keys": { + "type": "array", + "items": { + "type": "string" + } } } }, @@ -77530,6 +79584,10 @@ "commit_hash_or_tag": { "type": "string" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -77568,6 +79626,10 @@ "id": { "type": "string" }, + "is_managed": { + "description": "IsManaged marks a LangChain Tuned Evaluator (currently the tuned\nPerceived Error judge). NULL in the DB is read as false via COALESCE.", + "type": "boolean" + }, "llm_evaluator": { "description": "Embedded child evaluator (populated based on type)", "allOf": [ @@ -77596,6 +79658,21 @@ } } }, + "evaluators.EvaluatorBuildStatus": { + "type": "string", + "enum": [ + "ENQUEUED", + "BUILDING", + "READY", + "FAILED" + ], + "x-enum-varnames": [ + "EvaluatorBuildStatusEnqueued", + "EvaluatorBuildStatusBuilding", + "EvaluatorBuildStatusReady", + "EvaluatorBuildStatusFailed" + ] + }, "evaluators.EvaluatorRunRule": { "type": "object", "properties": { @@ -77632,7 +79709,7 @@ ] }, "spend_usd": { - "description": "Per-rule spend for the current ISO week (omitted when feature is disabled).\nLLM-evaluator rules are initialized to 0; code-evaluator rules remain nil.", + "description": "Per-rule usage for the current ISO week (omitted when feature is disabled).\nLLM-evaluator rules are initialized to 0; code-evaluator rules include trace counts only.", "type": "number" }, "trace_count": { @@ -77839,6 +79916,10 @@ "num_few_shot_examples": { "type": "integer" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -78062,6 +80143,7 @@ "type": "string" }, "disabled_models": { + "description": "DisabledModels is the effective disabled set for the feature: the union of\nthis workspace's own disabled providers/models and the org-wide disabled\nproviders. Every consumer (pickers, Fleet catalog) hides these.", "type": "array", "items": { "type": "string" @@ -78069,6 +80151,13 @@ }, "feature": { "type": "string" + }, + "org_disabled_providers": { + "description": "OrgDisabledProviders is the subset of DisabledModels that is enforced at the\norganization level. The workspace settings UI renders these locked so a\nworkspace admin cannot re-enable them.", + "type": "array", + "items": { + "type": "string" + } } } }, @@ -78131,6 +80220,13 @@ "description": "CurrentSpendUSD is the spend in the policy's current window. Set for\nany spend_cap policy regardless of enabled state — disabled policies\nstill surface usage so users can see what would have been counted.\nNil for non-spend_cap policies or when the spend lookup failed.", "type": "number" }, + "current_usage": { + "description": "CurrentUsage is the consumed units in each configured limit's current\nwindow. Set for any rate_limit policy regardless of enabled state, one\nentry per limit in the config. Nil for non-rate_limit policies or when\nthe usage lookup failed.", + "type": "array", + "items": { + "$ref": "#/components/schemas/gateway_policies.RateLimitUsage" + } + }, "description": { "type": "string" }, @@ -78150,7 +80246,7 @@ "type": "string" }, "parent_policy_id": { - "description": "ParentPolicyID is set on materialized children of a default_spend_cap\nto the default's id, and cleared (NULL) only when an admin Create\nwith the same matchers takes over the materialized row. Update on a\nchild preserves the link; Delete on the parent cascade-soft-deletes\nevery child rather than detaching them.", + "description": "ParentPolicyID is set on materialized children of a default_spend_cap\nto the default's id. An explicit Update or a Create with the same\nmatchers clears the link and takes ownership of the materialized row.\nDelete on the parent cascade-soft-deletes children still attached.", "type": "string" }, "policy_type": { @@ -78170,6 +80266,70 @@ } } }, + "gateway_policies.RateLimitMetric": { + "type": "string", + "enum": [ + "requests", + "tokens" + ], + "x-enum-varnames": [ + "RateLimitMetricRequests", + "RateLimitMetricTokens" + ] + }, + "gateway_policies.RateLimitUsage": { + "type": "object", + "properties": { + "metric": { + "description": "Metric is the counted usage dimension: requests or tokens.", + "allOf": [ + { + "$ref": "#/components/schemas/gateway_policies.RateLimitMetric" + } + ] + }, + "value": { + "description": "Value is the units consumed so far in the current window.", + "type": "integer" + }, + "window": { + "description": "Window is the time window the usage is measured over.", + "allOf": [ + { + "$ref": "#/components/schemas/gateway_policies.RateLimitWindow" + } + ] + } + } + }, + "gateway_policies.RateLimitWindow": { + "type": "string", + "enum": [ + "minute", + "hour" + ], + "x-enum-varnames": [ + "RateLimitWindowMinute", + "RateLimitWindowHour" + ] + }, + "gateway_policies.SearchGatewayPoliciesRequest": { + "type": "object", + "properties": { + "policy_type": { + "type": "string" + }, + "subject_matcher_key": { + "type": "string" + }, + "subject_matcher_values": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "gateway_policies.SubjectMatcher": { "type": "object", "properties": { @@ -78223,143 +80383,23 @@ } } }, - "github_app.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - }, - "github_app.InstallLinkResponse": { - "type": "object", - "properties": { - "install_url": { - "type": "string" - } - } - }, - "github_app.Installation": { - "type": "object", - "properties": { - "account_login": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "id": { - "type": "string" - }, - "installation_id": { - "type": "string" - }, - "metadata": { - "type": "object" - }, - "organization_id": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "user_id": { - "type": "string" - } - } - }, - "github_app.Repository": { + "httperr.ErrorResponse": { "type": "object", "properties": { - "default_branch": { - "type": "string" - }, - "full_name": { + "code": { "type": "string" }, - "html_url": { + "detail": { "type": "string" }, - "id": { + "status": { "type": "integer" }, - "name": { - "type": "string" - }, - "private": { - "type": "boolean" - } - } - }, - "github_app.TokenRequest": { - "type": "object", - "properties": { - "repository": { - "type": "string" - }, "type": { "type": "string" } } }, - "github_app.UpdateUserConnectionRequest": { - "type": "object", - "properties": { - "actor_preference": { - "type": "string" - } - } - }, - "github_app.UserAuthLinkResponse": { - "type": "object", - "properties": { - "auth_url": { - "type": "string" - } - } - }, - "github_app.UserConnectionMetadata": { - "type": "object", - "properties": { - "github_username": { - "type": "string" - } - } - }, - "github_app.UserConnectionStatus": { - "type": "object", - "properties": { - "actor_preference": { - "type": "string" - }, - "is_connected": { - "type": "boolean" - }, - "metadata": { - "$ref": "#/components/schemas/github_app.UserConnectionMetadata" - }, - "type": { - "type": "string" - } - } - }, - "github_app.UserTokenResponse": { - "type": "object", - "properties": { - "expires_at": { - "type": "string" - }, - "token": { - "type": "string" - }, - "token_type": { - "type": "string" - } - } - }, "hub_environments.CreateEnvironmentsRequest": { "type": "object", "required": [ @@ -78426,151 +80466,115 @@ } } }, - "integrations.AgentBuilderIntegrationsPayload": { + "info.BatchIngestConfig": { "type": "object", "properties": { - "integration_catalog": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.IntegrationCatalogEntry" - } + "scale_down_nempty_trigger": { + "type": "integer" }, - "integration_overrides": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.IntegrationOverride" - } + "scale_up_nthreads_limit": { + "type": "integer" }, - "integrations_enabled_by_default": { - "type": "boolean" - } - } - }, - "integrations.AgentBuilderIntegrationsUpdatePayload": { - "type": "object", - "properties": { - "integration_overrides": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.IntegrationOverrideUpdate" - } + "scale_up_qsize_trigger": { + "type": "integer" }, - "integrations_enabled_by_default": { + "size_limit": { + "type": "integer" + }, + "size_limit_bytes": { + "type": "integer" + }, + "use_multipart_endpoint": { "type": "boolean" } } }, - "integrations.AuthMethod": { + "info.CustomerInfo": { "type": "object", "properties": { - "provider_match": { - "$ref": "#/components/schemas/integrations.ProviderMatch" + "customer_id": { + "type": "string" }, - "type": { - "$ref": "#/components/schemas/integrations.AuthType" + "customer_name": { + "type": "string" } } }, - "integrations.AuthType": { - "type": "string", - "enum": [ - "oauth2", - "headers", - "api_key", - "none" - ], - "x-enum-varnames": [ - "AuthTypeOAuth2", - "AuthTypeHeaders", - "AuthTypeAPIKey", - "AuthTypeNone" - ] - }, - "integrations.CreateRequest": { + "info.InfoGetResponse": { "type": "object", - "required": [ - "name", - "url" - ], "properties": { - "category": { - "type": "string" + "batch_ingest_config": { + "$ref": "#/components/schemas/info.BatchIngestConfig" }, - "description": { - "type": "string" + "customer_info": { + "$ref": "#/components/schemas/info.CustomerInfo" }, - "icon_url": { + "git_sha": { "type": "string" }, - "name": { - "type": "string" + "instance_flags": { + "type": "object", + "additionalProperties": {} }, - "source": { + "license_expiration_time": { "type": "string" }, - "url": { + "sdk_versions": { + "$ref": "#/components/schemas/info.SDKVersions" + }, + "version": { "type": "string" } } }, - "integrations.ErrorResponse": { + "info.SDKVersions": { "type": "object", "properties": { - "code": { + "max_go_sdk_version": { "type": "string" }, - "detail": { + "max_java_sdk_version": { "type": "string" }, - "status": { - "type": "integer" + "max_js_sdk_version": { + "type": "string" }, - "type": { + "max_python_sdk_version": { "type": "string" } } }, - "integrations.Integration": { + "integrations.AgentBuilderIntegrationsPayload": { "type": "object", "properties": { - "auth_methods": { + "integration_catalog": { "type": "array", "items": { - "$ref": "#/components/schemas/integrations.AuthMethod" + "$ref": "#/components/schemas/integrations.IntegrationCatalogEntry" } }, - "category": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "description": { - "type": "string" + "integration_overrides": { + "type": "array", + "items": { + "$ref": "#/components/schemas/integrations.IntegrationOverride" + } }, - "enabled": { + "integrations_enabled_by_default": { "type": "boolean" + } + } + }, + "integrations.AgentBuilderIntegrationsUpdatePayload": { + "type": "object", + "properties": { + "integration_overrides": { + "type": "array", + "items": { + "$ref": "#/components/schemas/integrations.IntegrationOverrideUpdate" + } }, - "icon_url": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source": { - "type": "string" - }, - "transport": { - "$ref": "#/components/schemas/integrations.Transport" - }, - "updated_at": { - "type": "string" - }, - "url": { - "type": "string" + "integrations_enabled_by_default": { + "type": "boolean" } } }, @@ -78613,292 +80617,222 @@ } } }, - "integrations.ListResponse": { + "issues.ErrorResponse": { "type": "object", "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.Integration" - } - }, - "next_cursor": { + "error": { "type": "string" } } }, - "integrations.MatchBy": { - "type": "string", - "enum": [ - "kind", - "id" - ], - "x-enum-varnames": [ - "MatchByKind", - "MatchByID" - ] - }, - "integrations.ProviderMatch": { + "issues.Issue": { "type": "object", "properties": { - "by": { - "$ref": "#/components/schemas/integrations.MatchBy" + "actions": { + "type": "object" }, - "value": { + "auto_resolution_evidence": { + "type": "object" + }, + "auto_resolution_state": { + "description": "Nil unless eligible: \"auto_close\" or \"prompt\". Evidence carries the deciding gate.", "type": "string" - } - } - }, - "integrations.ReplaceAuthMethodsRequest": { - "type": "object", - "properties": { - "auth_methods": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.AuthMethod" - } - } - } - }, - "integrations.Transport": { - "type": "string", - "enum": [ - "mcp_http" - ], - "x-enum-varnames": [ - "TransportMCPHTTP" - ] - }, - "integrations.UpdateRequest": { - "type": "object", - "properties": { - "category": { + }, + "created_at": { "type": "string" }, "description": { "type": "string" }, - "enabled": { - "type": "boolean" - }, - "icon_url": { + "first_seen_at": { "type": "string" }, - "name": { - "type": "string" - } - } - }, - "issues_agent_usage.LCUSpendErrorResponse": { - "type": "object", - "properties": { - "error": { + "fix_branch": { "type": "string" - } - } - }, - "issues_agent_usage.LCUSpendItem": { - "type": "object", - "properties": { - "lcu_total": { + }, + "fix_dispatched_at": { "type": "string" }, - "lcu_unpriced_row_count": { + "fix_pr_number": { "type": "integer" }, - "session_id": { + "fix_prompt": { "type": "string" }, - "session_name": { + "fix_verification": { + "type": "object" + }, + "id": { "type": "string" }, - "tenant_id": { + "last_seen_at": { "type": "string" }, - "tenant_name": { + "linear_context": { + "$ref": "#/components/schemas/issues.LinearContext" + }, + "linear_sync": { + "$ref": "#/components/schemas/issues.LinearSync" + }, + "name": { "type": "string" - } - } - }, - "issues_agent_usage.LCUSpendResponse": { - "type": "object", - "properties": { - "items": { + }, + "proposed_context_fixes": { "type": "array", "items": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendItem" + "type": "object" } }, - "organization_id": { - "type": "string" + "proposed_examples": { + "type": "array", + "items": { + "type": "object" + } }, - "period_end": { + "proposed_fix": { "type": "string" }, - "period_start": { - "type": "string" + "proposed_prompt_fixes": { + "type": "array", + "items": { + "type": "object" + } }, - "resolved_monthly_spend_limit_lcu": { - "description": "ResolvedMonthlySpendLimitLCU is the effective monthly LCU spend limit enforced for\nthis org — the minimum of the finance, plan, and admin layers — or null when\nunlimited. Surfaced so the UI can render spend against the true enforced limit\nrather than the admin layer alone. Serialized as a string for NUMERIC precision.", - "type": "string" - } - } - }, - "langchain_com_smith_fleet_mcp_servers.AuthType": { - "type": "string", - "enum": [ - "headers", - "oauth" - ], - "x-enum-varnames": [ - "AuthTypeHeaders", - "AuthTypeOAuth" - ] - }, - "langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload": { - "type": "object", - "required": [ - "name", - "url" - ], - "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" + "recurrences_since_watching": { + "description": "RecurrencesSinceWatching counts linked traces whose run start_time is after\nwatching_since — i.e. recurrences observed during the current watch period.", + "type": "integer" }, - "external_system_id": { + "session_id": { "type": "string" }, - "headers": { + "severity": { + "$ref": "#/components/schemas/issues.Severity" + }, + "status": { + "$ref": "#/components/schemas/issues.Status" + }, + "tags": { "type": "array", "items": { - "type": "object", - "additionalProperties": true + "type": "string" } }, - "name": { + "tenant_id": { "type": "string" }, - "oauth_mode": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.OAuthMode" - }, - "oauth_provider_id": { - "type": "string" + "traces": { + "type": "object" }, - "url": { + "updated_at": { "type": "string" }, - "vendor_id": { + "watching_since": { "type": "string" } } }, - "langchain_com_smith_fleet_mcp_servers.McpServer": { + "issues.LinearContext": { "type": "object", "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" - }, - "can_invoke": { - "type": "boolean" - }, - "created_at": { - "type": "string" - }, - "external_system_id": { - "type": "string" - }, - "headers": { + "github_pr_urls": { "type": "array", "items": { - "type": "object", - "additionalProperties": true + "type": "string" } }, - "id": { + "workflow_state": { "type": "string" - }, - "mcp_vendor_id": { + } + } + }, + "issues.LinearSync": { + "type": "object", + "properties": { + "identifier": { "type": "string" }, - "name": { + "issue_id": { "type": "string" }, - "oauth_mode": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.OAuthMode" + "last_attempted_at": { + "type": "string", + "format": "date-time" }, - "oauth_provider_id": { + "last_error": { "type": "string" }, - "tenant_id": { - "type": "string" + "last_synced_at": { + "type": "string", + "format": "date-time" }, - "updated_at": { + "linear_issue_id": { "type": "string" }, - "url": { - "type": "string" + "state": { + "type": "string", + "enum": [ + "pending", + "synced", + "failed", + "auth_required", + "paused" + ] }, - "vendor_id": { - "type": "string" - } - } - }, - "langchain_com_smith_fleet_mcp_servers.OAuthMode": { - "type": "string", - "enum": [ - "legacy_shared_provider", - "per_user_dynamic_client" - ], - "x-enum-varnames": [ - "OAuthModeLegacySharedProvider", - "OAuthModePerUserDynamicClient" - ] - }, - "langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload": { - "type": "object", - "properties": { - "ls_user_id": { - "description": "Deprecated: user identity is inferred from the authenticated request when available.", - "type": "string" - } - } - }, - "langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse": { - "type": "object", - "properties": { - "oauth_provider_id": { + "url": { "type": "string" } } }, - "langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload": { + "issues.ListViewsResponse": { "type": "object", "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" - }, - "headers": { + "views": { "type": "array", "items": { - "type": "object", - "additionalProperties": true - } - }, - "oauth_provider_id": { - "type": "string" - }, - "url": { - "type": "string" + "$ref": "#/components/schemas/issues.ViewedIssue" + } } } }, - "mcp_servers.McpServerAPIError": { + "issues.Severity": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3 + ], + "x-enum-varnames": [ + "SeverityUrgent", + "SeverityHigh", + "SeverityMed", + "SeverityLow" + ] + }, + "issues.Status": { + "type": "string", + "enum": [ + "open", + "fixing", + "watching", + "completed", + "ignored" + ], + "x-enum-varnames": [ + "StatusOpen", + "StatusFixing", + "StatusWatching", + "StatusCompleted", + "StatusIgnored" + ] + }, + "issues.ViewedIssue": { "type": "object", "properties": { - "detail": { + "issue_id": { "type": "string" }, - "error": { + "viewed_at": { "type": "string" } } @@ -79167,583 +81101,1670 @@ } } }, - "mcptools.ErrorResponse": { + "oauth.AuthorizationServerMetadata": { "type": "object", "properties": { - "code": { + "authorization_endpoint": { "type": "string" }, - "detail": { + "code_challenge_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "device_authorization_endpoint": { "type": "string" }, - "status": { + "grant_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "issuer": { + "type": "string" + }, + "jwks_uri": { + "type": "string" + }, + "protected_resources_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "registration_endpoint": { + "type": "string" + }, + "resource_parameter_supported": { + "type": "boolean" + }, + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "revocation_endpoint": { + "type": "string" + }, + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint": { + "type": "string" + }, + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "oauth.AuthorizedAppView": { + "type": "object", + "properties": { + "authorized_at": { + "type": "string" + }, + "client_id": { + "type": "string" + }, + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "logo_uri": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "oauth.ClientPublicMetadata": { + "type": "object", + "properties": { + "client_id": { + "type": "string" + }, + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "tos_uri": { + "type": "string" + } + } + }, + "oauth.ClientRegistrationRequest": { + "type": "object", + "properties": { + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "grant_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "response_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "scope": { + "type": "string" + }, + "token_endpoint_auth_method": { + "type": "string" + }, + "tos_uri": { + "type": "string" + } + } + }, + "oauth.ClientRegistrationResponse": { + "type": "object", + "properties": { + "client_id": { + "type": "string" + }, + "client_id_issued_at": { "type": "integer" }, - "type": { + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "grant_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "response_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint_auth_method": { + "type": "string" + }, + "tos_uri": { + "type": "string" + } + } + }, + "oauth.CreateOAuthClientRequest": { + "type": "object", + "properties": { + "allowed_scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "client_name": { + "type": "string" + }, + "client_type": { + "description": "\"public\" or \"confidential\"", + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "grant_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "tos_uri": { + "type": "string" + } + } + }, + "oauth.DeviceCodeResponse": { + "type": "object", + "properties": { + "device_code": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "interval": { + "type": "integer" + }, + "user_code": { + "type": "string" + }, + "verification_uri": { + "type": "string" + } + } + }, + "oauth.OAuthClientCredentialsResponse": { + "type": "object", + "properties": { + "client": { + "$ref": "#/components/schemas/oauth.OAuthClientView" + }, + "client_secret": { "type": "string" } } }, - "mcptools.ListToolsResponse": { + "oauth.OAuthClientListResponse": { + "type": "object", + "properties": { + "clients": { + "type": "array", + "items": { + "$ref": "#/components/schemas/oauth.OAuthClientView" + } + } + } + }, + "oauth.OAuthClientView": { "type": "object", "properties": { - "cached": { + "allowed_scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "client_id": { + "type": "string" + }, + "client_name": { + "type": "string" + }, + "client_type": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "disabled": { "type": "boolean" }, - "fetched_at": { + "grant_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { "type": "string" }, - "tools": { + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { "type": "array", "items": { - "$ref": "#/components/schemas/mcptools.Tool" + "type": "string" } + }, + "tos_uri": { + "type": "string" + }, + "updated_at": { + "type": "string" } } }, - "mcptools.MCPErrorCode": { - "type": "string", - "enum": [ - "auth_failed", - "unreachable", - "invalid_response" - ], - "x-enum-varnames": [ - "MCPErrorCodeAuthFailed", - "MCPErrorCodeUnreachable", - "MCPErrorCodeInvalidResponse" - ] + "oauth.OIDCProviderMetadata": { + "type": "object", + "properties": { + "authorization_endpoint": { + "type": "string" + }, + "claims_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "code_challenge_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "grant_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "id_token_signing_alg_values_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "issuer": { + "type": "string" + }, + "jwks_uri": { + "type": "string" + }, + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "subject_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint": { + "type": "string" + }, + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "userinfo_endpoint": { + "type": "string" + } + } }, - "mcptools.Tool": { + "oauth.TokenErrorResponse": { "type": "object", "properties": { - "annotations": { - "type": "object", - "additionalProperties": {} + "error": { + "type": "string" }, - "description": { + "error_description": { + "type": "string" + } + } + }, + "oauth.TokenResponse": { + "type": "object", + "properties": { + "access_token": { "type": "string" }, - "inputSchema": { - "type": "object", - "additionalProperties": {} + "expires_in": { + "type": "integer" + }, + "id_token": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "workspace_id": { + "type": "string" + } + } + }, + "oauth.UpdateOAuthClientRequest": { + "type": "object", + "properties": { + "allowed_scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "tos_uri": { + "type": "string" + } + } + }, + "oauth.UserinfoResponse": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "email_verified": { + "type": "boolean" + }, + "ls_org_id": { + "type": "string" + }, + "ls_org_name": { + "type": "string" }, "name": { "type": "string" + }, + "picture": { + "type": "string" + }, + "sub": { + "type": "string" + } + } + }, + "orgs.LinkedLoginMethod": { + "type": "object", + "properties": { + "provider": { + "type": "string" + }, + "provisioning": { + "description": "provisioning_method", + "type": "string" + } + } + }, + "orgs.ListOrgsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.Org" + } + }, + "next_cursor": { + "type": "string" } } }, - "models.ErrorResponse": { + "orgs.Org": { "type": "object", "properties": { - "code": { + "display_name": { "type": "string" }, - "detail": { + "id": { "type": "string" }, - "status": { - "type": "integer" - }, - "type": { - "type": "string" + "is_personal": { + "type": "boolean" } } }, - "models.FleetModel": { + "orgs.OrgMemberEnriched": { "type": "object", "properties": { + "avatar_url": { + "type": "string" + }, + "created_at": { + "type": "string" + }, "display_name": { + "description": "auth-resolved display name", + "type": "string" + }, + "email": { "type": "string" }, "id": { + "description": "identity_id or pending_identity_id", "type": "string" }, - "is_default": { + "is_disabled": { + "description": "user disabled", "type": "boolean" }, - "playground_settings_id": { + "is_pending": { + "description": "true for pending invitations", + "type": "boolean" + }, + "linked_login_methods": { + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.LinkedLoginMethod" + } + }, + "ls_user_id": { + "description": "nil for pending members", "type": "string" }, - "provider": { + "role_id": { + "description": "org role", + "type": "string" + }, + "role_name": { + "description": "org role name", "type": "string" }, - "required_secrets": { + "scim_groups": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/orgs.SCIMGroup" } }, - "source": { - "type": "string" - } - } - }, - "models.ListModelsResponse": { - "type": "object", - "properties": { - "items": { + "workspace_memberships": { "type": "array", "items": { - "$ref": "#/components/schemas/models.FleetModel" + "$ref": "#/components/schemas/orgs.WorkspaceMembership" } } } }, - "nps.SubmitResponseRequest": { + "orgs.OrganizationInfo": { "type": "object", "properties": { - "comment": { - "type": "string" + "byoc_create_saas_workspace_enabled": { + "type": "boolean" }, - "score": { - "type": "integer" - } - } - }, - "oauth.AuthorizationServerMetadata": { - "type": "object", - "properties": { - "authorization_endpoint": { - "type": "string" + "can_export_usage_backfill": { + "type": "boolean" }, - "code_challenge_methods_supported": { + "config": { + "$ref": "#/components/schemas/authn.OrganizationConfig" + }, + "default_sso_provision": { + "type": "boolean" + }, + "disabled": { + "type": "boolean" + }, + "disabled_model_providers": { "type": "array", "items": { "type": "string" } }, - "device_authorization_endpoint": { + "display_name": { "type": "string" }, - "grant_types_supported": { - "type": "array", - "items": { - "type": "string" - } + "engine_enabled": { + "type": "boolean" }, - "issuer": { + "engine_lcu_spend_limit_monthly": { + "description": "EngineLCUSpendLimitMonthly is the org admin (Layer 3) monthly Engine LCU spend\nlimit; null means the admin set no limit. The effective enforced limit is the\nminimum of this and the finance/plan limits carried on Config.", "type": "string" }, - "jwks_uri": { + "id": { "type": "string" }, - "protected_resources_supported": { + "invites_enabled": { + "type": "boolean" + }, + "ip_allowlist": { "type": "array", "items": { "type": "string" } }, - "registration_endpoint": { - "type": "string" + "ip_allowlist_enabled": { + "type": "boolean" }, - "resource_parameter_supported": { + "is_personal": { "type": "boolean" }, - "response_types_supported": { + "jit_provisioning_enabled": { + "type": "boolean" + }, + "llm_auth_proxy_allowed_urls": { "type": "array", "items": { "type": "string" } }, - "revocation_endpoint": { + "llm_auth_proxy_enabled": { + "type": "boolean" + }, + "llm_auth_proxy_jwt_audience": { "type": "string" }, - "scopes_supported": { + "managed_eval_terms_accepted_at": { + "description": "ManagedEvalTermsAcceptedAt is the raw ISO 8601 timestamp string from the\nconfig JSONB of when an org admin accepted the tuned evaluator terms;\nnull if never accepted. Returned verbatim so the value is byte-identical\nto the smith-backend implementation under weighted routing.", + "type": "string" + }, + "managed_evals_enabled": { + "description": "ManagedEvalsEnabled is the org-level consent flag for tuned evaluators\n(evaluators that spend a LangChain-held provider key).", + "type": "boolean" + }, + "marketplace_payouts_enabled": { + "type": "boolean" + }, + "max_api_key_expiry_days": { + "type": "integer" + }, + "max_pat_expiry_days": { + "type": "integer" + }, + "max_service_key_expiry_days": { + "type": "integer" + }, + "member_disabled": { + "type": "boolean" + }, + "pat_creation_disabled": { + "type": "boolean" + }, + "permissions": { "type": "array", "items": { "type": "string" } }, - "token_endpoint": { + "public_sharing_disabled": { + "type": "boolean" + }, + "reached_max_workspaces": { + "type": "boolean" + }, + "scim_group_name_separator": { "type": "string" }, - "token_endpoint_auth_methods_supported": { - "type": "array", - "items": { - "type": "string" - } + "security_contact": { + "type": "string" + }, + "sso_login_slug": { + "type": "string" + }, + "sso_only": { + "type": "boolean" + }, + "tier": { + "type": "string" + }, + "workspace_admin_can_invite_to_org": { + "type": "boolean" } } }, - "oauth.ClientPublicMetadata": { + "orgs.SCIMGroup": { "type": "object", "properties": { - "client_id": { + "created_at": { "type": "string" }, - "client_name": { + "name": { "type": "string" - }, - "client_uri": { + } + } + }, + "orgs.WorkspaceMembership": { + "type": "object", + "properties": { + "role_id": { "type": "string" }, - "logo_uri": { + "role_name": { "type": "string" }, - "policy_uri": { + "workspace_id": { "type": "string" }, - "tos_uri": { + "workspace_name": { "type": "string" } } }, - "oauth.ClientRegistrationRequest": { + "query.PublicSharedTraceRunsRequestBody": { "type": "object", "properties": { - "client_name": { - "type": "string" + "selects": { + "description": "`selects` lists which public run properties to include on each returned run.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "ID", + "NAME", + "RUN_TYPE", + "STATUS", + "START_TIME", + "END_TIME", + "LATENCY_SECONDS", + "FIRST_TOKEN_TIME", + "ERROR", + "ERROR_PREVIEW", + "EXTRA", + "METADATA", + "INPUTS_PREVIEW", + "OUTPUTS_PREVIEW", + "PARENT_RUN_ID", + "PARENT_RUN_IDS", + "PROJECT_ID", + "TRACE_ID", + "THREAD_ID", + "DOTTED_ORDER", + "IS_ROOT", + "REFERENCE_DATASET_ID", + "TOTAL_TOKENS", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_COST", + "PROMPT_COST", + "COMPLETION_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "PRICE_MODEL_ID", + "TAGS", + "THREAD_EVALUATION_TIME", + "FEEDBACK_STATS" + ] + }, + "example": [ + "ID", + "NAME", + "PROJECT_ID", + "START_TIME", + "RUN_TYPE", + "STATUS", + "INPUTS_PREVIEW", + "OUTPUTS_PREVIEW", + "METADATA" + ] + } + } + }, + "query.QueryRunsRequestBody": { + "type": "object", + "properties": { + "cursor": { + "description": "`cursor` is the opaque string from a previous response's `next_cursor`. Treat it as opaque and pass it back unmodified.", + "type": "string", + "example": "eyJ2IjoxLCJhIjoicnVucy5xdWVyeSIsImsiOiJwYXNzIiwiYiI6InNkYiIsInQiOiJsdChjdXJzb3IsICcyMDI1LTEyLTEyIDE5OjAzOjI4LjQ4MTI1NTAxOWIxM2YyJykifQ" }, - "client_uri": { - "type": "string" + "filter": { + "description": "`filter` narrows results to runs matching this LangSmith filter expression, evaluated against each individual run.\nFor example: and(eq(run_type, \"llm\"), gt(latency, 5)) or eq(status, \"error\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "and(eq(run_type, \"llm\"), gt(latency, 5))" }, - "grant_types": { + "has_error": { + "description": "`has_error` filters to runs that errored (true) or completed without error (false).", + "type": "boolean", + "example": false + }, + "ids": { + "description": "`ids` optionally limits the request to these run UUIDs.", "type": "array", "items": { - "type": "string" - } + "type": "string", + "format": "uuid" + }, + "example": [ + "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327", + "f47ac10b-58cc-4372-a567-0e02b2c3d479" + ] }, - "logo_uri": { - "type": "string" + "is_root": { + "description": "`is_root` returns only root runs (true) or only non-root runs (false).", + "type": "boolean", + "example": true }, - "policy_uri": { - "type": "string" + "max_start_time": { + "description": "`max_start_time` is the upper bound for run `start_time` (RFC3339). Defaults to now.", + "type": "string", + "format": "date-time", + "example": "2024-12-31T23:59:59Z" }, - "redirect_uris": { + "min_start_time": { + "description": "`min_start_time` is the lower bound for run `start_time` (RFC3339). Defaults to 1 day ago.", + "type": "string", + "format": "date-time", + "example": "2024-01-01T00:00:00Z" + }, + "page_size": { + "description": "`page_size` is the maximum number of runs to return in this response. Defaults to 100 when omitted; must be between 1 and 1000 inclusive when set.", + "type": "integer", + "default": 100, + "maximum": 1000, + "minimum": 1, + "example": 100 + }, + "project_ids": { + "description": "`project_ids` lists tracing project UUIDs to query.\nRequired unless `reference_dataset_id` is set. Mutually exclusive with `reference_dataset_id` — set exactly one of them.", "type": "array", "items": { - "type": "string" - } + "type": "string", + "format": "uuid" + }, + "example": [ + "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327", + "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" + ] }, - "response_types": { + "reference_dataset_id": { + "description": "`reference_dataset_id` resolves session IDs server-side from the dataset.\nRequired unless `project_ids` is set. Mutually exclusive with `project_ids` — set exactly one of them.\nWhen provided and `min_start_time` is omitted, the server derives it from the earliest session creation date.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + }, + "reference_examples": { + "description": "`reference_examples` optionally limits to runs linked to these dataset example UUIDs.", "type": "array", "items": { - "type": "string" - } + "type": "string", + "format": "uuid" + }, + "example": [ + "b2c3d4e5-f6a7-4b5c-9d0e-1f2a3b4c5d6e", + "c3d4e5f6-a7b8-4c5d-0e1f-2a3b4c5d6e7f" + ] }, - "scope": { - "type": "string" + "run_type": { + "description": "`run_type`, when set, restricts results to runs whose `run_type` equals this value.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunType" + } + ], + "example": "LLM" }, - "token_endpoint_auth_method": { - "type": "string" + "selects": { + "description": "`selects` lists which properties to include on each returned run. If omitted, only `id` is returned. Properties not listed are omitted from each run object.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunSelectField" + }, + "example": [ + "ID", + "NAME", + "PROJECT_ID", + "START_TIME", + "RUN_TYPE", + "STATUS" + ] }, - "tos_uri": { - "type": "string" + "trace_filter": { + "description": "`trace_filter` narrows results to runs whose root trace matches this LangSmith filter expression.\nUse this to filter by properties of the trace's root run — for example eq(status, \"success\") to include only traces that completed without error.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "eq(status, \"success\")" + }, + "trace_id": { + "description": "`trace_id` optionally limits results to runs belonging to this trace UUID.", + "type": "string", + "format": "uuid", + "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479" + }, + "tree_filter": { + "description": "`tree_filter` narrows results to runs that belong to a trace containing at least one run matching this LangSmith filter expression anywhere in the run tree (not just the root).\nUse this to find runs inside traces that involved a specific tool, tag, or model — for example has(tags, \"production\") or eq(name, \"my_tool\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "has(tags, \"production\")" } } }, - "oauth.ClientRegistrationResponse": { + "query.QueryRunsResponseBody": { "type": "object", "properties": { - "client_id": { + "items": { + "description": "`items` is the page of runs, sorted by `start_time` descending.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunResponse" + } + }, + "next_cursor": { + "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.", + "type": "string", + "example": "eyJ2IjoxLCJhIjoicnVucy5xdWVyeSIsImsiOiJwYXNzIiwiYiI6InNkYiIsInQiOiJsdChjdXJzb3IsICcyMDI1LTEyLTEyIDE5OjAzOjI4LjQ4MTI1NTAxOWIxM2YyJykifQ" + } + } + }, + "query.QueryTraceResponseBody": { + "type": "object", + "properties": { + "items": { + "description": "`items` lists runs in the trace for the requested time window, in `start_time` order.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunResponse" + } + } + } + }, + "query.QueryTracesRequestBody": { + "type": "object", + "properties": { + "cursor": { + "description": "`cursor` is the opaque string returned in a previous response's `next_cursor`.", "type": "string" }, - "client_id_issued_at": { - "type": "integer" + "max_start_time": { + "description": "`max_start_time` is the exclusive upper bound for the root-run start time scan (RFC3339). Defaults to the request time when omitted.", + "type": "string", + "format": "date-time", + "example": "2024-12-31T23:59:59Z" }, - "client_name": { - "type": "string" + "min_start_time": { + "description": "`min_start_time` is the inclusive lower bound for the root-run start time scan (RFC3339). Defaults to 24 hours before the request when omitted.", + "type": "string", + "format": "date-time", + "example": "2024-01-01T00:00:00Z" }, - "client_uri": { - "type": "string" + "page_size": { + "description": "`page_size` is the maximum number of traces to return per page. Defaults to 20; must be between 1 and 100 when set.", + "type": "integer", + "default": 20, + "maximum": 100, + "minimum": 1, + "example": 20 }, - "grant_types": { + "project_id": { + "description": "`project_id` is the UUID of the tracing project that owns the traces. Required.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + }, + "selects": { + "description": "`selects` lists which properties to include on each returned trace. Properties listed here are routed to the appropriate sub-object on each item: `total_tokens`, `total_cost`, and `first_token_time` appear under `trace_aggregates`; everything else appears under `root_run`. If omitted, only `id` is returned on `root_run`.", "type": "array", "items": { - "type": "string" - } - }, - "logo_uri": { - "type": "string" + "$ref": "#/components/schemas/query.RunSelectField" + }, + "example": [ + "ID", + "NAME", + "START_TIME", + "STATUS", + "TOTAL_TOKENS", + "TOTAL_COST", + "FIRST_TOKEN_TIME" + ] }, - "policy_uri": { - "type": "string" + "trace_filter": { + "description": "`trace_filter` narrows results to traces whose root run matches this LangSmith filter expression. This filter targets root runs only — `is_root = true` is implied.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "eq(status, \"error\")" }, - "redirect_uris": { + "trace_ids": { + "description": "`trace_ids` is an optional fast-path restriction to a known set of trace UUIDs. Equivalent in result to including each UUID in a `trace_filter`, but more efficient at scale.", "type": "array", "items": { - "type": "string" + "type": "string", + "format": "uuid" } }, - "response_types": { + "tree_filter": { + "description": "`tree_filter` narrows results to traces containing at least one run anywhere in the run tree (root or descendant) that matches this LangSmith filter expression.", + "type": "string", + "example": "has(tags, \"production\")" + } + } + }, + "query.QueryTracesResponseBody": { + "type": "object", + "properties": { + "items": { + "description": "`items` is the page of traces.", "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/query.Trace" } }, - "token_endpoint_auth_method": { - "type": "string" - }, - "tos_uri": { + "next_cursor": { + "description": "`next_cursor` is the opaque cursor for the next page. Null on the final page.", "type": "string" } } }, - "oauth.DeviceCodeResponse": { + "query.RunAttachmentURLs": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "query.RunCompletionCostDetails": { "type": "object", "properties": { - "device_code": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "interval": { - "type": "integer" - }, - "user_code": { - "type": "string" - }, - "verification_uri": { - "type": "string" + "raw": { + "description": "`raw` maps each category name to its estimated USD cost.", + "type": "object", + "additionalProperties": { + "type": "number", + "format": "float64" + } } } }, - "oauth.TokenErrorResponse": { + "query.RunCompletionTokenDetails": { "type": "object", "properties": { - "error": { - "type": "string" + "raw": { + "description": "`raw` maps each category name to its completion-token count.", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + } + } + }, + "query.RunEvent": { + "type": "object", + "properties": { + "kwargs": { + "description": "`kwargs` is the event payload — an opaque JSON object whose shape depends on `name` and on the emitting SDK. For example LangChain emits `{\"token\": {...}}` for `new_token` events, tool-call start/end details for tool events, and arbitrary user-defined payloads for custom events. Clients should treat `kwargs` as untyped JSON: do not assume specific keys exist for a given `name`, and tolerate additional unknown keys appearing over time.", + "type": "object" }, - "error_description": { - "type": "string" + "name": { + "description": "`name` is the event kind. Common values emitted by the LangChain/LangSmith tracer SDKs include `\"start\"`, `\"end\"`, and `\"new_token\"`, but applications may emit arbitrary strings for their own instrumentation.", + "type": "string", + "example": "new_token" + }, + "time": { + "description": "`time` is when the event occurred (RFC3339 date-time with millisecond precision).", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:30:00.312Z" } } }, - "oauth.TokenResponse": { + "query.RunFeedbackStat": { "type": "object", "properties": { - "access_token": { - "type": "string" + "avg": { + "description": "`avg` is the arithmetic mean of numeric feedback scores for this key on the run, or `null` when no numeric score has been recorded (for example purely categorical feedback).", + "type": "number", + "example": 0.87 }, - "expires_in": { - "type": "integer" + "comments": { + "description": "`comments` is a sample of human-readable comments attached to feedback points for this key, in no particular order. May be empty; is not exhaustive when many comments exist.", + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "good answer", + "needs citation" + ] }, - "refresh_token": { - "type": "string" + "contains_thread_feedback": { + "description": "`contains_thread_feedback` is true when at least one feedback point for this key was submitted at the thread level (rather than at an individual run). Always false on responses that already describe a single run in isolation.", + "type": "boolean", + "example": false }, - "token_type": { - "type": "string" + "errors": { + "description": "`errors` is the number of feedback points recorded as errors rather than successful scores (for example an automated evaluator that raised an exception). Defaults to 0 when no errors occurred.", + "type": "integer", + "default": 0, + "example": 0 }, - "workspace_id": { - "type": "string" + "max": { + "description": "`max` is the largest numeric feedback score recorded for this key on the run, or `null` when no numeric score has been recorded.", + "type": "number", + "example": 0.95 + }, + "min": { + "description": "`min` is the smallest numeric feedback score recorded for this key on the run, or `null` when no numeric score has been recorded.", + "type": "number", + "example": 0.8 + }, + "n": { + "description": "`n` is the number of feedback points recorded for this key on the run. For numeric feedback this is the sample size behind `avg`, `min`, `max`, and `stdev`; for categorical feedback it is the sum of the `values` counts.", + "type": "integer", + "example": 42 + }, + "sources": { + "description": "`sources` is a sample of feedback sources for this key. Each entry is either a plain string identifier (for example `\"api\"`, `\"app\"`, `\"model\"`) or a JSON object describing a synthetic source (for example `{\"type\": \"__ls_composite_feedback\"}` for a computed aggregate). Clients must tolerate both shapes.", + "type": "array", + "items": {} + }, + "stdev": { + "description": "`stdev` is the sample standard deviation of numeric feedback scores for this key on the run, or `null` when it cannot be computed (for example fewer than two numeric scores, or purely categorical feedback).", + "type": "number", + "example": 0.05 + }, + "values": { + "description": "`values` is the distribution of categorical feedback labels for this key, mapping each label to its occurrence count. Empty (`{}`) for purely numeric feedback.", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } } } }, - "orgs.LinkedLoginMethod": { + "query.RunFeedbackStats": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/query.RunFeedbackStat" + } + }, + "query.RunPromptCostDetails": { "type": "object", "properties": { - "provider": { - "type": "string" - }, - "provisioning": { - "description": "provisioning_method", - "type": "string" + "raw": { + "description": "`raw` maps each category name to its estimated USD cost.", + "type": "object", + "additionalProperties": { + "type": "number", + "format": "float64" + } } } }, - "orgs.OrgMemberEnriched": { + "query.RunPromptTokenDetails": { "type": "object", "properties": { - "avatar_url": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "display_name": { - "description": "auth-resolved display name", - "type": "string" + "raw": { + "description": "`raw` maps each category name to its prompt-token count.", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + } + } + }, + "query.RunResponse": { + "type": "object", + "properties": { + "app_path": { + "description": "`app_path` identifies the application code location that produced this run, if recorded.", + "type": "string", + "example": "/app/chains/chat.py:invoke" }, - "email": { - "type": "string" + "attachments": { + "description": "`attachments` maps each attachment file name to a pre-signed HTTPS download URL.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunAttachmentURLs" + } + ], + "example": { + "{\"output.png\"": "\"https://storage.example.com/bucket/key?X-Amz-Signature=abc\"}" + } }, - "id": { - "description": "identity_id or pending_identity_id", - "type": "string" + "completion_cost": { + "description": "`completion_cost` is estimated USD cost for the completion.", + "type": "number", + "example": 0.0003 }, - "is_disabled": { - "description": "user disabled", - "type": "boolean" + "completion_cost_details": { + "description": "`completion_cost_details` is the per-category USD breakdown of `completion_cost`. Categories mirror `completion_token_details`. Returned only when the `COMPLETION_COST_DETAILS` field is requested.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunCompletionCostDetails" + } + ] }, - "is_pending": { - "description": "true for pending invitations", - "type": "boolean" + "completion_token_details": { + "description": "`completion_token_details` is the per-category breakdown of `completion_tokens`. Category names are model-specific (for example `reasoning`, `audio`). Returned only when the `COMPLETION_TOKEN_DETAILS` field is requested.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunCompletionTokenDetails" + } + ] }, - "linked_login_methods": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orgs.LinkedLoginMethod" - } + "completion_tokens": { + "description": "`completion_tokens` is the completion-side token count.", + "type": "integer", + "example": 150 }, - "ls_user_id": { - "description": "nil for pending members", - "type": "string" + "dotted_order": { + "description": "`dotted_order` is the hierarchical ordering key for trace trees.", + "type": "string", + "example": "20240115T103000000000Z018e4c7ea9fb7ef0a5b66ea3a82e9327." }, - "role_id": { - "description": "org role", - "type": "string" + "end_time": { + "description": "`end_time` is when the run ended (RFC3339 date-time). JSON null if the run has not finished yet.", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:30:01.500Z" }, - "role_name": { - "description": "org role name", + "error": { + "description": "`error` is the error message when `status` indicates failure.", + "type": "string", + "example": "context deadline exceeded" + }, + "error_preview": { + "description": "`error_preview` is a truncated plain-text error snippet.", "type": "string" }, - "scim_groups": { + "events": { + "description": "`events` is the ordered list of run events (for example streaming tokens).", "type": "array", "items": { - "$ref": "#/components/schemas/orgs.SCIMGroup" + "$ref": "#/components/schemas/query.RunEvent" } }, - "workspace_memberships": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orgs.WorkspaceMembership" - } - } - } - }, - "orgs.OrganizationInfo": { - "type": "object", - "properties": { - "can_export_usage_backfill": { - "type": "boolean" + "extra": { + "description": "`extra` is additional runtime JSON attached to the run.", + "type": "object" }, - "config": { - "$ref": "#/components/schemas/authn.OrganizationConfig" + "feedback_stats": { + "description": "`feedback_stats` aggregates feedback scores keyed by feedback key.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunFeedbackStats" + } + ] }, - "default_sso_provision": { - "type": "boolean" + "first_token_time": { + "description": "`first_token_time` is when the first output token was produced (RFC3339 date-time), when recorded for streamed runs.", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:30:00.312Z" }, - "disabled": { - "type": "boolean" + "id": { + "description": "`id` is this run's UUID.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "display_name": { + "inputs": { + "description": "`inputs` is the run input payload (arbitrary JSON object).", + "type": "object" + }, + "inputs_preview": { + "description": "`inputs_preview` is a truncated plain-text preview of inputs.", "type": "string" }, - "engine_enabled": { - "type": "boolean" + "is_in_dataset": { + "description": "`is_in_dataset` is true when this run is linked to a dataset example.", + "type": "boolean", + "example": true }, - "engine_lcu_spend_limit_monthly": { - "description": "EngineLCUSpendLimitMonthly is the org admin (Layer 3) monthly Engine LCU spend\nlimit; null means the admin set no limit. The effective enforced limit is the\nminimum of this and the finance/plan limits carried on Config.", - "type": "string" + "is_root": { + "description": "`is_root` is true when this run has no parent (it is the trace root).", + "type": "boolean", + "example": true }, - "engine_show_trial_modal": { - "description": "EngineShowTrialModal is true when Engine is enabled, no user has acknowledged\nthe trial end notice, and the org has not opted out.", - "type": "boolean" + "last_queued_at": { + "description": "`last_queued_at` is the most recent time this run was added to an annotation queue.", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:31:00Z" }, - "engine_trial_modal_seen_at": { - "description": "EngineTrialModalSeenAt is the first time any admin in the org rendered\nthe trial modal. The frontend reads it to skip the mark_seen POST when\nalready set, and the backend's read-time cutoff uses it to treat the\norg as \"notified\" (Engine stays on past June 1).", - "type": "string" + "latency_seconds": { + "description": "`latency_seconds` is wall-clock duration from start to end in seconds.", + "type": "number", + "example": 1.523 }, - "id": { - "type": "string" + "manifest": { + "description": "`manifest` is the serialized configuration of the traced component (for example the model parameters, prompt template, or pipeline definition), when recorded.", + "type": "object" }, - "invites_enabled": { - "type": "boolean" + "metadata": { + "description": "`metadata` is arbitrary user-defined JSON metadata.", + "type": "object" }, - "ip_allowlist": { + "name": { + "description": "`name` is a human-readable label for the run (for example the model name, function name, or step name chosen when the run was traced).", + "type": "string", + "example": "ChatOpenAI" + }, + "outputs": { + "description": "`outputs` is the run output payload (arbitrary JSON object).", + "type": "object" + }, + "outputs_preview": { + "description": "`outputs_preview` is a truncated plain-text preview of outputs.", + "type": "string" + }, + "parent_run_ids": { + "description": "`parent_run_ids` lists ancestor run UUIDs from the trace root down to the direct parent.", "type": "array", "items": { - "type": "string" - } + "type": "string", + "format": "uuid" + }, + "example": [ + "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327", + "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d" + ] }, - "ip_allowlist_enabled": { - "type": "boolean" + "price_model_id": { + "description": "`price_model_id` identifies the pricing model UUID used for cost estimates, when recorded.", + "type": "string", + "format": "uuid", + "example": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b" }, - "is_personal": { - "type": "boolean" + "project_id": { + "description": "`project_id` is the tracing project UUID this run was logged to.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "jit_provisioning_enabled": { - "type": "boolean" + "prompt_cost": { + "description": "`prompt_cost` is estimated USD cost for the prompt.", + "type": "number", + "example": 0.0002 }, - "llm_auth_proxy_allowed_urls": { - "type": "array", - "items": { - "type": "string" - } + "prompt_cost_details": { + "description": "`prompt_cost_details` is the per-category USD breakdown of `prompt_cost`. Categories mirror `prompt_token_details`. Returned only when the `PROMPT_COST_DETAILS` field is requested.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunPromptCostDetails" + } + ] }, - "llm_auth_proxy_enabled": { - "type": "boolean" + "prompt_token_details": { + "description": "`prompt_token_details` is the per-category breakdown of `prompt_tokens`. Category names are model-specific (for example `cache_read`, `cache_write`). Returned only when the `PROMPT_TOKEN_DETAILS` field is requested.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunPromptTokenDetails" + } + ] }, - "llm_auth_proxy_jwt_audience": { - "type": "string" + "prompt_tokens": { + "description": "`prompt_tokens` is the prompt-side token count.", + "type": "integer", + "example": 200 }, - "marketplace_payouts_enabled": { - "type": "boolean" + "reference_dataset_id": { + "description": "`reference_dataset_id` is the dataset UUID for the reference example, if any.", + "type": "string", + "format": "uuid", + "example": "c3d4e5f6-a7b8-4c5d-0e1f-2a3b4c5d6e7f" }, - "max_api_key_expiry_days": { - "type": "integer" + "reference_example_id": { + "description": "`reference_example_id` is the dataset example UUID this run was compared against, if any.", + "type": "string", + "format": "uuid", + "example": "b2c3d4e5-f6a7-4b5c-9d0e-1f2a3b4c5d6e" }, - "max_pat_expiry_days": { - "type": "integer" + "run_type": { + "description": "`run_type` identifies what kind of operation this run represents (for example an LLM call, a tool invocation, or a chain step). See the `RunType` enum for allowed values.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunType" + } + ], + "example": "LLM" }, - "max_service_key_expiry_days": { - "type": "integer" + "share_url": { + "description": "`share_url` is the fully-qualified URL of this run's public view, rooted at the deployment's LangSmith app origin (for example `https://smith.langchain.com/public/4f7a1b2c-8d9e-4a0b-9c1d-2e3f4a5b6c7d/r`). It is returned only when `SHARE_URL` is included in `selects`, and only when the run has been explicitly shared; the URL remains stable until the run is unshared. Anyone with this URL can view the run anonymously, so treat it as a secret and do not log it.", + "type": "string", + "example": "https://smith.langchain.com/public/4f7a1b2c-8d9e-4a0b-9c1d-2e3f4a5b6c7d/r" }, - "member_disabled": { - "type": "boolean" + "start_time": { + "description": "`start_time` is when the run started (RFC3339 date-time).", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:30:00.000Z" }, - "pat_creation_disabled": { - "type": "boolean" + "status": { + "description": "`status` is the completion status of the run.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunStatus" + } + ], + "example": "SUCCESS" }, - "permissions": { + "tags": { + "description": "`tags` lists user-defined tags on this run.", "type": "array", "items": { "type": "string" - } - }, - "public_sharing_disabled": { - "type": "boolean" - }, - "reached_max_workspaces": { - "type": "boolean" - }, - "scim_group_name_separator": { - "type": "string" + }, + "example": [ + "production", + "gpt-4" + ] }, - "security_contact": { - "type": "string" + "thread_evaluation_time": { + "description": "`thread_evaluation_time` is thread-level evaluation timing (RFC3339 date-time), when recorded.", + "type": "string", + "format": "date-time" }, - "sso_login_slug": { - "type": "string" + "thread_id": { + "description": "`thread_id` is the conversation thread UUID this run belongs to, if any.", + "type": "string", + "format": "uuid", + "example": "d4e5f6a7-b8c9-4d5e-1f2a-3b4c5d6e7f8a" }, - "sso_only": { - "type": "boolean" + "total_cost": { + "description": "`total_cost` is total estimated USD cost (prompt plus completion).", + "type": "number", + "example": 0.000525 }, - "tier": { - "type": "string" + "total_tokens": { + "description": "`total_tokens` is prompt plus completion tokens.", + "type": "integer", + "example": 350 }, - "workspace_admin_can_invite_to_org": { - "type": "boolean" + "trace_id": { + "description": "`trace_id` is the root trace UUID; for a root run it matches `id`.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" } } }, - "orgs.SCIMGroup": { + "query.RunSelectField": { + "type": "string", + "enum": [ + "ID", + "NAME", + "RUN_TYPE", + "STATUS", + "START_TIME", + "END_TIME", + "LATENCY_SECONDS", + "FIRST_TOKEN_TIME", + "ERROR", + "ERROR_PREVIEW", + "EXTRA", + "METADATA", + "EVENTS", + "INPUTS", + "INPUTS_PREVIEW", + "OUTPUTS", + "OUTPUTS_PREVIEW", + "MANIFEST", + "PARENT_RUN_IDS", + "PROJECT_ID", + "TRACE_ID", + "THREAD_ID", + "DOTTED_ORDER", + "IS_ROOT", + "REFERENCE_EXAMPLE_ID", + "REFERENCE_DATASET_ID", + "TOTAL_TOKENS", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_COST", + "PROMPT_COST", + "COMPLETION_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "PRICE_MODEL_ID", + "TAGS", + "APP_PATH", + "ATTACHMENTS", + "THREAD_EVALUATION_TIME", + "IS_IN_DATASET", + "LAST_QUEUED_AT", + "SHARE_URL", + "FEEDBACK_STATS" + ], + "x-enum-varnames": [ + "RunSelectID", + "RunSelectName", + "RunSelectRunType", + "RunSelectStatus", + "RunSelectStartTime", + "RunSelectEndTime", + "RunSelectLatencySeconds", + "RunSelectFirstTokenTime", + "RunSelectError", + "RunSelectErrorPreview", + "RunSelectExtra", + "RunSelectMetadata", + "RunSelectEvents", + "RunSelectInputs", + "RunSelectInputsPreview", + "RunSelectOutputs", + "RunSelectOutputsPreview", + "RunSelectManifest", + "RunSelectParentRunIDs", + "RunSelectProjectID", + "RunSelectTraceID", + "RunSelectThreadID", + "RunSelectDottedOrder", + "RunSelectIsRoot", + "RunSelectReferenceExampleID", + "RunSelectReferenceDatasetID", + "RunSelectTotalTokens", + "RunSelectPromptTokens", + "RunSelectCompletionTokens", + "RunSelectTotalCost", + "RunSelectPromptCost", + "RunSelectCompletionCost", + "RunSelectPromptTokenDetails", + "RunSelectCompletionTokenDetails", + "RunSelectPromptCostDetails", + "RunSelectCompletionCostDetails", + "RunSelectPriceModelID", + "RunSelectTags", + "RunSelectAppPath", + "RunSelectAttachments", + "RunSelectThreadEvaluationTime", + "RunSelectIsInDataset", + "RunSelectLastQueuedAt", + "RunSelectShareURL", + "RunSelectFeedbackStats" + ] + }, + "query.RunStatus": { + "type": "string", + "enum": [ + "SUCCESS", + "ERROR", + "PENDING" + ], + "x-enum-varnames": [ + "RunStatusSuccess", + "RunStatusError", + "RunStatusPending" + ] + }, + "query.RunType": { + "type": "string", + "enum": [ + "TOOL", + "CHAIN", + "LLM", + "RETRIEVER", + "EMBEDDING", + "PROMPT", + "PARSER" + ], + "x-enum-varnames": [ + "RunTypeTool", + "RunTypeChain", + "RunTypeLLM", + "RunTypeRetriever", + "RunTypeEmbedding", + "RunTypePrompt", + "RunTypeParser" + ] + }, + "query.RunURLResponse": { "type": "object", "properties": { - "created_at": { - "type": "string" - }, - "name": { + "url": { "type": "string" } } }, - "orgs.WorkspaceMembership": { + "query.Trace": { "type": "object", "properties": { - "role_id": { - "type": "string" + "root_run": { + "description": "`root_run` is the trace's root run. Which properties are populated is controlled by `selects` in the request.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunResponse" + } + ] }, - "role_name": { - "type": "string" + "trace_aggregates": { + "description": "`trace_aggregates` carries trace-wide aggregate metrics. Omitted when no aggregate field was selected, or `null` (then later filled) on the streaming wire while the aggregate values are still being computed.", + "allOf": [ + { + "$ref": "#/components/schemas/query.TraceAggregates" + } + ] + } + } + }, + "query.TraceAggregates": { + "type": "object", + "properties": { + "first_token_time": { + "description": "`first_token_time` is when the first output token was produced anywhere in the trace (RFC3339), when recorded.", + "type": "string", + "format": "date-time" }, - "workspace_id": { - "type": "string" + "total_cost": { + "description": "`total_cost` is total estimated USD cost across every run in the trace.", + "type": "number" }, - "workspace_name": { - "type": "string" + "total_tokens": { + "description": "`total_tokens` is prompt plus completion tokens summed across every run in the trace.", + "type": "integer" } } }, @@ -79852,6 +82873,104 @@ } } }, + "sandboxapi.ContextHubMountSpec": { + "type": "object", + "required": [ + "repo" + ], + "properties": { + "initial_pull_only": { + "description": "InitialPullOnly syncs the repo once at startup instead of polling for\nupdates for the sandbox's lifetime.", + "type": "boolean" + }, + "repo": { + "description": "Repo is the Context Hub repository to sync, as \"owner/repo\"\n(e.g. \"-/my-agent\", where \"-\" is the current workspace). The repo's\nlatest commit tree is mirrored into the mount path.", + "type": "string" + } + } + }, + "sandboxapi.FileInfo": { + "type": "object", + "properties": { + "is_dir": { + "type": "boolean" + }, + "modified_at": { + "type": "string" + }, + "path": { + "type": "string" + }, + "size_bytes": { + "type": "integer" + } + } + }, + "sandboxapi.GCSMountSpec": { + "type": "object", + "required": [ + "bucket" + ], + "properties": { + "bucket": { + "type": "string" + }, + "prefix": { + "type": "string" + } + } + }, + "sandboxapi.GitMountRefSpec": { + "type": "object", + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "branch", + "tag" + ] + } + } + }, + "sandboxapi.GitMountSpec": { + "type": "object", + "required": [ + "remote_url" + ], + "properties": { + "ref": { + "$ref": "#/components/schemas/sandboxapi.GitMountRefSpec" + }, + "refresh_interval_seconds": { + "type": "integer", + "minimum": 1 + }, + "remote_url": { + "type": "string" + } + } + }, + "sandboxapi.GrepMatch": { + "type": "object", + "properties": { + "line": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "text": { + "type": "string" + } + } + }, "sandboxapi.MountCacheSpec": { "type": "object", "properties": { @@ -79868,10 +82987,16 @@ "sandboxapi.MountKind": { "type": "string", "enum": [ - "s3" + "s3", + "gcs", + "git", + "contexthub" ], "x-enum-varnames": [ - "MountKindS3" + "MountKindS3", + "MountKindGCS", + "MountKindGit", + "MountKindContextHub" ] }, "sandboxapi.MountSpec": { @@ -79879,13 +83004,21 @@ "required": [ "id", "mount_path", - "s3", "type" ], "properties": { "cache": { "$ref": "#/components/schemas/sandboxapi.MountCacheSpec" }, + "contexthub": { + "$ref": "#/components/schemas/sandboxapi.ContextHubMountSpec" + }, + "gcs": { + "$ref": "#/components/schemas/sandboxapi.GCSMountSpec" + }, + "git": { + "$ref": "#/components/schemas/sandboxapi.GitMountSpec" + }, "id": { "type": "string", "maxLength": 64 @@ -79901,7 +83034,10 @@ }, "type": { "enum": [ - "s3" + "s3", + "gcs", + "git", + "contexthub" ], "allOf": [ { @@ -79909,13 +83045,35 @@ } ] } - } + }, + "discriminator": { + "mapping": { + "s3": "#/components/schemas/sandboxapi.S3BucketMountSpec", + "gcs": "#/components/schemas/sandboxapi.GCSBucketMountSpec", + "git": "#/components/schemas/sandboxapi.GitRepoMountSpec", + "contexthub": "#/components/schemas/sandboxapi.ContextHubRepoMountSpec" + }, + "propertyName": "type" + }, + "oneOf": [ + { + "$ref": "#/components/schemas/sandboxapi.S3BucketMountSpec" + }, + { + "$ref": "#/components/schemas/sandboxapi.GCSBucketMountSpec" + }, + { + "$ref": "#/components/schemas/sandboxapi.GitRepoMountSpec" + }, + { + "$ref": "#/components/schemas/sandboxapi.ContextHubRepoMountSpec" + } + ] }, "sandboxapi.S3MountSpec": { "type": "object", "required": [ "bucket", - "endpoint_url", "region" ], "properties": { @@ -80036,6 +83194,11 @@ "description": "if omitted, creates a fresh checkpoint from the running VM", "type": "string" }, + "description": { + "description": "Description says what this snapshot's image can do, so a caller can hand it to an agent as a capability summary. At most 1024 characters.", + "type": "string", + "maxLength": 1024 + }, "docker_image": { "description": "sandbox-local Docker image to export", "type": "string" @@ -80048,14 +83211,53 @@ "description": "IncludeMemory, when true, captures a full VM memory snapshot\nalongside the filesystem clone. Only honored when the sandbox is running\nAND Checkpoint is omitted (i.e. a fresh in-VM checkpoint is requested).\nDefaults to false to keep snapshots small unless memory restore is\nexplicitly desired.", "type": "boolean" }, + "labels": { + "description": "Labels seed the captured snapshot's labels.", + "allOf": [ + { + "$ref": "#/components/schemas/sandboxes.Labels" + } + ] + }, + "name": { + "type": "string" + }, + "tag": { + "description": "mutable Docker-style tag; defaults to \"latest\"", + "type": "string" + } + } + }, + "sandboxes.CreateRegistryPayload": { + "type": "object", + "required": [ + "name", + "password", + "url", + "username" + ], + "properties": { "name": { "type": "string" + }, + "password": { + "type": "string" + }, + "url": { + "type": "string" + }, + "username": { + "type": "string" } } }, "sandboxes.CreateSandboxPayload": { "type": "object", "properties": { + "cpu_millicores": { + "description": "CPUMillicores optionally requests CPU at millicore granularity (e.g. 500 = 0.5 vCPU); takes precedence over VCPUs. Fractional (sub-vCPU) values are not available for every sandbox.", + "type": "integer" + }, "delete_after_stop_seconds": { "type": "integer" }, @@ -80069,31 +83271,48 @@ "type": "integer" }, "idle_ttl_seconds": { - "type": "integer" + "type": "integer", + "maximum": 2147483640, + "minimum": 0 + }, + "labels": { + "description": "Labels are free-form key/value metadata persisted with the sandbox and returned on reads. Labels from the source snapshot are inherited unless overridden here.", + "allOf": [ + { + "$ref": "#/components/schemas/sandboxes.Labels" + } + ] }, "mem_bytes": { + "description": "Memory for the sandbox, in bytes. Memory is tied to CPU at 4 GiB per vCPU: omit it and it follows that ratio; set it and it must stay within 50% of the ratio for the requested CPU, so a 1 vCPU sandbox accepts 2-6 GiB. Setting memory without CPU derives the CPU from the same ratio. Maximum 64 GiB.", "type": "integer" }, - "mounts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sandboxapi.MountSpec" - } + "mount_config": { + "$ref": "#/components/schemas/sandboxes.SandboxMountConfig" }, "name": { "type": "string" }, + "preserve_memory_on_stop": { + "description": "PreserveMemoryOnStop, when true, suspends the sandbox's memory on a\nvoluntary stop (idle timeout or explicit stop) so the next start resumes\nfrom where it left off. Default false discards memory and keeps only the\nfilesystem, so the next start is a cold boot. Restarts triggered by\ninfrastructure maintenance always preserve memory regardless of this setting.", + "type": "boolean" + }, "proxy_config": { "$ref": "#/components/schemas/sandboxes.ProxyConfig" }, "restore_memory": { - "description": "RestoreMemory, when non-nil, overrides the server default for\nwhether to resume the sandbox from its captured memory snapshot.\n\n true → resume from the memory snapshot if it exists; cold-boot\n the sandbox otherwise.\n false → always cold-boot, even if a memory snapshot exists.\n nil → use the server default.\n\nApplies to this request only; a later stop+start of the same\nsandbox reverts to the server default.", + "description": "RestoreMemory selects how the sandbox handles a snapshot's captured memory:\n\n nil → if-present: resume from memory when the snapshot has it, else cold-boot (default).\n true → always: resume from memory; rejected if the snapshot has none.\n false → never: always cold-boot.\n\nApplies to this request only.", "type": "boolean" }, + "snapshot": { + "description": "Snapshot is a Docker-style name or name:tag reference to boot from. A bare name resolves to name:latest.", + "type": "string" + }, "snapshot_id": { "type": "string" }, "snapshot_name": { + "description": "SnapshotName is a synonym for Snapshot, accepted for compatibility with clients that predate it. Set one or the other.", "type": "string" }, "tag_value_ids": { @@ -80115,40 +83334,145 @@ "name" ], "properties": { + "description": { + "description": "Description says what this snapshot's image can do, so a caller can hand it to an agent as a capability summary. At most 1024 characters.", + "type": "string", + "maxLength": 1024 + }, "docker_image": { "type": "string" }, "fs_capacity_bytes": { "type": "integer" }, + "labels": { + "description": "Labels seed the snapshot's labels, overriding any label of the same key derived from the Docker image.", + "allOf": [ + { + "$ref": "#/components/schemas/sandboxes.Labels" + } + ] + }, "name": { "type": "string" }, - "registry_id": { + "registry_id": { + "type": "string" + }, + "tag": { + "description": "mutable Docker-style tag; defaults to \"latest\"", + "type": "string" + } + } + }, + "sandboxes.DownloadURLPayload": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "content_disposition": { + "type": "string" + }, + "content_type": { + "type": "string" + }, + "expires_in_seconds": { + "description": "ExpiresInSeconds is optional; a link with no expiry never expires.", + "type": "integer" + }, + "path": { + "type": "string" + } + } + }, + "sandboxes.DownloadURLResponse": { + "type": "object", + "required": [ + "download_url", + "token" + ], + "properties": { + "download_url": { + "type": "string" + }, + "expires_at": { + "description": "ExpiresAt is null for a link that never expires.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "token": { + "type": "string" + } + } + }, + "sandboxes.ErrorResponse": { + "type": "object", + "properties": { + "detail": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "error_id": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "sandboxes.ExecRequest": { + "type": "object", + "properties": { + "command": { + "description": "Command accepts either a shell command string or an argv string array.", + "type": "array", + "items": { + "type": "string" + } + }, + "cwd": { + "type": "string" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "shell": { + "type": "string" + }, + "timeout_seconds": { + "type": "integer" + } + } + }, + "sandboxes.ExecResponse": { + "type": "object", + "properties": { + "exit_code": { + "type": "integer" + }, + "stderr": { + "type": "string" + }, + "stdout": { "type": "string" } } }, - "sandboxes.ErrorResponse": { - "type": "object", - "properties": { - "detail": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "error_id": { - "type": "string" - }, - "message": { - "type": "string" - } - } - } - } - }, - "sandboxes.ExecRequest": { + "sandboxes.ExecStreamRequest": { "type": "object", "properties": { "command": { @@ -80158,6 +83482,10 @@ "type": "string" } }, + "command_id": { + "description": "CommandID makes the request idempotent: a known ID attaches to that\nrunning command instead of starting a second one.", + "type": "string" + }, "cwd": { "type": "string" }, @@ -80167,25 +83495,100 @@ "type": "string" } }, + "idle_timeout_seconds": { + "description": "0 = default, -1 = never idle-kill", + "type": "integer" + }, "shell": { "type": "string" }, + "stdin": { + "description": "Stdin is the process's entire standard input, base64 on the wire. It is\nwritten once when the command is spawned and then closed, so the process\nreads EOF; there is no stdin streaming on this endpoint.", + "type": "string", + "format": "byte" + }, "timeout_seconds": { + "description": "0 = no timeout", + "type": "integer" + }, + "ttl_seconds": { + "description": "0 = default, -1 = keep forever", "type": "integer" } } }, - "sandboxes.ExecResponse": { + "sandboxes.ExecStreamResumeRequest": { "type": "object", "properties": { - "exit_code": { + "command_id": { + "description": "CommandID names the command to attach to.", + "type": "string" + }, + "stderr_offset": { "type": "integer" }, - "stderr": { + "stdout_offset": { + "description": "StdoutOffset and StderrOffset are where to continue from, and are also the\nack for every buffered byte below them. Zero replays from the beginning,\nwhich is what a retry sends when the stream broke before any output arrived.", + "type": "integer" + } + } + }, + "sandboxes.GlobRequest": { + "type": "object", + "properties": { + "limit": { + "type": "integer" + }, + "path": { "type": "string" }, - "stdout": { + "pattern": { + "type": "string" + } + } + }, + "sandboxes.GlobResponse": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxapi.FileInfo" + } + }, + "truncated": { + "type": "boolean" + } + } + }, + "sandboxes.GrepRequest": { + "type": "object", + "properties": { + "glob": { "type": "string" + }, + "limit": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "pattern": { + "type": "string" + } + } + }, + "sandboxes.GrepResponse": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxapi.GrepMatch" + } + }, + "truncated": { + "type": "boolean" } } }, @@ -80202,6 +83605,12 @@ "HeaderTypeWorkspaceSecret" ] }, + "sandboxes.Labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "sandboxes.ProxyAWSConfig": { "type": "object", "required": [ @@ -80229,6 +83638,11 @@ "$ref": "#/components/schemas/sandboxes.Callback" } }, + "description": { + "description": "Description says what this configuration as a whole lets the sandbox reach, complementing the per-rule descriptions. At most 1024 characters.", + "type": "string", + "maxLength": 1024 + }, "no_proxy": { "type": "array", "items": { @@ -80243,6 +83657,25 @@ } } }, + "sandboxes.ProxyGCPConfig": { + "type": "object", + "required": [ + "scopes", + "service_account_json" + ], + "properties": { + "scopes": { + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } + }, + "service_account_json": { + "$ref": "#/components/schemas/sandboxes.ProxySecretValue" + } + } + }, "sandboxes.ProxyHeader": { "type": "object", "required": [ @@ -80282,9 +83715,24 @@ "aws": { "$ref": "#/components/schemas/sandboxes.ProxyAWSConfig" }, + "description": { + "description": "Description says what this rule lets the sandbox reach, so an agent driving the sandbox can be told its capabilities. At most 1024 characters.", + "type": "string", + "maxLength": 1024 + }, "enabled": { "type": "boolean" }, + "env_vars": { + "description": "EnvVars are plaintext env vars set for every command in the sandbox while this rule is enabled. Use them for tools that refuse to run unless a credential env var is present (e.g. gh needs GH_TOKEN) even though this rule injects the real credential on the wire — set a dummy value here so the command starts. Explicit per-sandbox env_vars win over these, and provider-managed (AWS/GCP) vars win over both.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "gcp": { + "$ref": "#/components/schemas/sandboxes.ProxyGCPConfig" + }, "headers": { "type": "array", "items": { @@ -80292,6 +83740,7 @@ } }, "match_hosts": { + "description": "MatchHosts is only accepted for header injection rules. Provider auth\nrules use built-in host matching.", "type": "array", "items": { "type": "string" @@ -80337,13 +83786,92 @@ } } }, + "sandboxes.RegistryListResponse": { + "type": "object", + "properties": { + "offset": { + "type": "integer" + }, + "registries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.RegistryResponse" + } + } + } + }, + "sandboxes.RegistryResponse": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "updated_by": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "sandboxes.SandboxAWSMountAuthConfig": { + "type": "object", + "required": [ + "access_key_id", + "secret_access_key" + ], + "properties": { + "access_key_id": { + "$ref": "#/components/schemas/sandboxes.ProxySecretValue" + }, + "secret_access_key": { + "$ref": "#/components/schemas/sandboxes.ProxySecretValue" + } + } + }, + "sandboxes.SandboxGCPMountAuthConfig": { + "type": "object", + "required": [ + "service_account_json" + ], + "properties": { + "service_account_json": { + "$ref": "#/components/schemas/sandboxes.ProxySecretValue" + } + } + }, "sandboxes.SandboxListResponse": { "type": "object", "properties": { + "items": { + "description": "This page of sandboxes.", + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.SandboxResponse" + } + }, + "next_cursor": { + "description": "Cursor for the next page, or null on the last page. A non-null value is\nthe only signal that more pages exist. Treat it as opaque.", + "type": "string" + }, "offset": { + "description": "Deprecated: use next_cursor. Offset to request for the next page, or 0\nwhen no pages remain.", "type": "integer" }, "sandboxes": { + "description": "Deprecated: use items. Duplicates items.", "type": "array", "items": { "$ref": "#/components/schemas/sandboxes.SandboxResponse" @@ -80351,9 +83879,37 @@ } } }, + "sandboxes.SandboxMountAuthConfig": { + "type": "object", + "properties": { + "aws": { + "$ref": "#/components/schemas/sandboxes.SandboxAWSMountAuthConfig" + }, + "gcp": { + "$ref": "#/components/schemas/sandboxes.SandboxGCPMountAuthConfig" + } + } + }, + "sandboxes.SandboxMountConfig": { + "type": "object", + "properties": { + "auth": { + "$ref": "#/components/schemas/sandboxes.SandboxMountAuthConfig" + }, + "mounts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxapi.MountSpec" + } + } + } + }, "sandboxes.SandboxResponse": { "type": "object", "properties": { + "cpu_millicores": { + "type": "integer" + }, "created_at": { "type": "string" }, @@ -80375,18 +83931,21 @@ "idle_ttl_seconds": { "type": "integer" }, + "labels": { + "$ref": "#/components/schemas/sandboxes.Labels" + }, "mem_bytes": { "type": "integer" }, - "mounts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sandboxapi.MountSpec" - } + "mount_config": { + "$ref": "#/components/schemas/sandboxes.SandboxMountConfig" }, "name": { "type": "string" }, + "preserve_memory_on_stop": { + "type": "boolean" + }, "proxy_config": { "$ref": "#/components/schemas/sandboxes.ProxyConfig" }, @@ -80458,10 +84017,23 @@ "sandboxes.SnapshotListResponse": { "type": "object", "properties": { + "items": { + "description": "This page of snapshots.", + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + } + }, + "next_cursor": { + "description": "Cursor for the next page, or null on the last page. A non-null value is\nthe only signal that more pages exist. Treat it as opaque.", + "type": "string" + }, "offset": { + "description": "Deprecated: use next_cursor. Offset to request for the next page, or 0\nwhen no pages remain.", "type": "integer" }, "snapshots": { + "description": "Deprecated: use items. Duplicates items.", "type": "array", "items": { "$ref": "#/components/schemas/sandboxes.SnapshotResponse" @@ -80469,6 +84041,31 @@ } } }, + "sandboxes.SnapshotNameResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.SnapshotNameTag" + } + } + } + }, + "sandboxes.SnapshotNameTag": { + "type": "object", + "properties": { + "snapshot_id": { + "type": "string" + }, + "tag": { + "type": "string" + } + } + }, "sandboxes.SnapshotResponse": { "type": "object", "properties": { @@ -80478,6 +84075,10 @@ "created_by": { "type": "string" }, + "description": { + "description": "Description says what this snapshot's image can do, so a caller can hand it to an agent as a capability summary.", + "type": "string" + }, "docker_image": { "type": "string" }, @@ -80493,6 +84094,9 @@ "image_digest": { "type": "string" }, + "labels": { + "$ref": "#/components/schemas/sandboxes.Labels" + }, "memory_snapshot_size_bytes": { "description": "MemorySnapshotSizeBytes is non-nil iff the snapshot was captured with\nVM memory state. A non-nil value is the canonical signal that this\nsnapshot can warm-restore from memory; nil means rootfs only.", "type": "integer" @@ -80512,14 +84116,41 @@ "status_message": { "type": "string" }, + "tags": { + "description": "Tags currently resolving to this snapshot, under Name. A snapshot with no\ntags is dangling — addressable only by id.", + "type": "array", + "items": { + "type": "string" + } + }, "updated_at": { "type": "string" } } }, + "sandboxes.UpdateRegistryPayload": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "url": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, "sandboxes.UpdateSandboxPayload": { "type": "object", "properties": { + "cpu_millicores": { + "type": "integer" + }, "delete_after_stop_seconds": { "type": "integer" }, @@ -80527,9 +84158,12 @@ "type": "integer" }, "idle_ttl_seconds": { - "type": "integer" + "type": "integer", + "maximum": 2147483640, + "minimum": 0 }, "mem_bytes": { + "description": "New memory for the sandbox, in bytes. The 4 GiB per vCPU ratio applies when the sandbox is created; a resize enforces only the maximum of 64 GiB.", "type": "integer" }, "name": { @@ -80630,6 +84264,9 @@ "created_at": { "type": "string" }, + "created_by": { + "type": "string" + }, "description": { "type": "string" }, @@ -80654,6 +84291,9 @@ "created_at": { "type": "string" }, + "created_by": { + "type": "string" + }, "description": { "type": "string" }, @@ -80682,26 +84322,7 @@ } } }, - "skills.CreateSkillRequest": { - "type": "object", - "required": [ - "files", - "name" - ], - "properties": { - "files": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/skills.FileEntry" - } - }, - "name": { - "type": "string", - "maxLength": 64 - } - } - }, - "skills.ErrorResponse": { + "secrets.ErrorResponse": { "type": "object", "properties": { "code": { @@ -80718,24 +84339,13 @@ } } }, - "skills.FileEntry": { - "type": "object", - "properties": { - "content": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "skills.ListSkillsResponse": { + "secrets.ListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/secrets.SecretItem" } }, "next_cursor": { @@ -80743,82 +84353,136 @@ } } }, - "skills.Skill": { + "secrets.SecretItem": { "type": "object", "properties": { - "commit_hash": { - "type": "string" - }, - "commit_id": { - "description": "Omitted on the lightweight list (include_files=false): commit_id is not on\nthe upstream repos-list contract, only commit_hash is.", - "type": "string" + "name": { + "type": "string", + "example": "OPENAI_API_KEY" }, - "created_at": { + "set": { + "description": "Set is always true for items returned by the list endpoint — a key only\nappears when it has a value. It lets a client diff this list against a\nmodel's required_secrets to find which required keys are still missing.", + "type": "boolean", + "example": true + } + } + }, + "secrets.bulkUpsertItem": { + "type": "object", + "properties": { + "key": { "type": "string" }, - "description": { + "value": { "type": "string" - }, - "files": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/skills.FileEntry" - } - }, - "id": { + } + } + }, + "secrets.putRequest": { + "type": "object", + "properties": { + "value": { "type": "string" + } + } + }, + "share.CreateShareTokenRequestBody": { + "type": "object", + "properties": { + "session_id": { + "description": "session_id is the tracing project UUID containing the trace.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "name": { + "trace_id": { + "description": "trace_id is the root trace UUID to share.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + } + } + }, + "share.CreateShareTokenResponseBody": { + "type": "object", + "properties": { + "share_token": { + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + } + } + }, + "share.DeleteShareTokenRequestBody": { + "type": "object", + "properties": { + "session_id": { + "description": "session_id is the tracing project UUID containing the trace.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + } + } + }, + "shared.ParseErrorDetails": { + "description": "Structured fields describing an adapter parse failure.", + "type": "object", + "required": [ + "adapter", + "item_type" + ], + "properties": { + "adapter": { "type": "string" }, - "owners": { - "type": "array", - "items": { - "$ref": "#/components/schemas/skills.SkillOwner" - } - }, - "updated_at": { + "item_type": { "type": "string" }, - "visibility": { + "run_id": { "type": "string" } } }, - "skills.SkillOwner": { + "shared.ProblemDetails": { + "description": "RFC 7807 problem details returned on V2 API errors.", "type": "object", "properties": { - "created_at": { + "detail": { "type": "string" }, - "email": { + "details": { + "description": "Details is a LangSmith extension carrying structured fields for ErrorClass.", + "allOf": [ + { + "$ref": "#/components/schemas/shared.ParseErrorDetails" + } + ] + }, + "error_class": { + "description": "ErrorClass is a LangSmith extension sub-categorizing a status code.\nAdditional values require expanding this enum and adding a oneOf\ndiscriminator on Details to keep the class↔details contract typed.", + "type": "string", + "enum": [ + "PARSE_FAILURE" + ] + }, + "instance": { "type": "string" }, - "full_name": { + "remedy": { + "description": "Remedy is a LangSmith extension for user-recoverable errors.", "type": "string" }, - "identity_id": { + "status": { + "type": "integer" + }, + "title": { "type": "string" }, - "ls_user_id": { + "type": { "type": "string" } } }, - "skills.UpdateSkillRequest": { - "type": "object", - "required": [ - "files" - ], - "properties": { - "files": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/skills.FileEntry" - } - } - } - }, "tag_transitions.ErrorResponse": { "type": "object", "properties": { @@ -80870,143 +84534,13 @@ }, "transitions": { "type": "array", - "items": { - "$ref": "#/components/schemas/tag_transitions.TagTransition" - } - } - } - }, - "threads.BulkUpdateThreadResult": { - "type": "object", - "properties": { - "error_code": { - "type": "string" - }, - "id": { - "type": "string", - "format": "uuid" - }, - "message": { - "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "success", - "failure" - ] - } - } - }, - "threads.BulkUpdateThreadsRequest": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/threads.UpdateThreadRequest" - }, - "thread_ids": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "threads.BulkUpdateThreadsResponse": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadResult" - } - } - } - }, - "threads.CountResponse": { - "type": "object", - "properties": { - "attention_count": { - "type": "integer" - } - } - }, - "threads.CreateThreadAndRunRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "example": "11111111-1111-1111-1111-111111111111" - }, - "thread": { - "$ref": "#/components/schemas/threads.CreateThreadAndRunThread" - } - } - }, - "threads.CreateThreadAndRunThread": { - "type": "object", - "properties": { - "if_exists": { - "type": "string", - "enum": [ - "do_nothing", - "raise" - ] - }, - "metadata": { - "type": "object", - "additionalProperties": {} - }, - "options": { - "$ref": "#/components/schemas/threads.CreateThreadOptions" - }, - "thread_id": { - "type": "string", - "format": "uuid" - } - } - }, - "threads.CreateThreadOptions": { - "type": "object", - "properties": { - "skip_memory_write_protection": { - "description": "SkipMemoryWriteProtection lets runs on this thread bypass the default\nlong-term-memory write protection.", - "type": "boolean" - }, - "test_run": { - "description": "TestRun marks the thread as a test run; filtered out of usage and analytics.", - "type": "boolean" - } - } - }, - "threads.CreateThreadRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "example": "11111111-1111-1111-1111-111111111111" - }, - "if_exists": { - "type": "string", - "enum": [ - "do_nothing", - "raise" - ] - }, - "metadata": { - "type": "object", - "additionalProperties": {} - }, - "options": { - "$ref": "#/components/schemas/threads.CreateThreadOptions" - }, - "thread_id": { - "type": "string", - "format": "uuid" + "items": { + "$ref": "#/components/schemas/tag_transitions.TagTransition" + } } } }, - "threads.ErrorResponse": { + "tenants.ErrorResponse": { "type": "object", "properties": { "code": { @@ -81023,593 +84557,728 @@ } } }, - "threads.ListThreadsResponse": { + "tenants.ListTenantsResponse": { "type": "object", "properties": { - "next_cursor": { - "type": "string" - }, - "threads": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/threads.ThreadSummary" + "$ref": "#/components/schemas/tenants.Tenant" } - } - } - }, - "threads.OptionalField-bool": { - "type": "object", - "properties": { - "set": { - "type": "boolean" - }, - "value": { - "type": "boolean" - } - } - }, - "threads.OptionalField-string": { - "type": "object", - "properties": { - "set": { - "type": "boolean" }, - "value": { + "next_cursor": { "type": "string" } } }, - "threads.Thread": { + "tenants.Tenant": { "type": "object", "properties": { - "agent_id": { - "type": "string", - "format": "uuid" - }, "created_at": { - "type": "string", - "format": "date-time" + "type": "string" + }, + "data_plane_url": { + "type": "string" }, "id": { - "type": "string", - "format": "uuid" + "type": "string" }, - "metadata": { - "type": "object", - "additionalProperties": {} + "is_personal": { + "type": "boolean" }, - "status": { - "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ] + "name": { + "type": "string" }, - "updated_at": { - "type": "string", - "format": "date-time" + "organization_id": { + "type": "string" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "tenant_handle": { + "type": "string" } } }, - "threads.ThreadDetail": { + "threads.PublicSharedThreadTraceRunsResponseBody": { "type": "object", + "required": [ + "items" + ], "properties": { - "agent_id": { - "type": "string", - "format": "uuid" - }, - "config": { - "type": "object", - "additionalProperties": {} - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "error": {}, - "id": { - "type": "string", - "format": "uuid" - }, - "interrupts": { - "type": "object", - "additionalProperties": {} - }, - "metadata": { - "type": "object", - "additionalProperties": {} - }, - "state_updated_at": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ] - }, - "thread_id": { - "type": "string", - "format": "uuid" - }, - "title": { - "type": "string" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "values": { - "type": "object", - "additionalProperties": {} + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunResponse" + } } } }, - "threads.ThreadSummary": { + "threads.QuerySingleThreadStatsResponseBody": { "type": "object", "properties": { - "agent_id": { - "type": "string", - "format": "uuid" + "completion_cost": { + "description": "`completion_cost` is the sum of per-trace completion costs across the thread, in USD. Populated when `COMPLETION_COST` is selected.", + "type": "number" }, - "created_at": { - "type": "string", - "format": "date-time" + "completion_cost_details": { + "description": "`completion_cost_details` is the per-sub-category sum of completion cost details across the thread. Populated when `COMPLETION_COST_DETAILS` is selected.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunCompletionCostDetails" + } + ] }, - "has_interrupts": { - "type": "boolean" + "completion_token_details": { + "description": "`completion_token_details` is the per-sub-category sum of completion token details across the thread. Populated when `COMPLETION_TOKEN_DETAILS` is selected.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunCompletionTokenDetails" + } + ] }, - "id": { - "type": "string", - "format": "uuid" + "completion_tokens": { + "description": "`completion_tokens` is the sum of per-trace completion token counts across the thread. Populated when `COMPLETION_TOKENS` is selected.", + "type": "integer" }, - "metadata": { - "type": "object", - "additionalProperties": {} + "feedback_stats": { + "description": "`feedback_stats` aggregates run-level feedback across the thread's traces, keyed by feedback key. Populated when `FEEDBACK_STATS` is selected.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunFeedbackStats" + } + ] }, - "state_updated_at": { + "first_start_time": { + "description": "`first_start_time` is the earliest trace start time in the thread (RFC3339). Populated when `FIRST_START_TIME` is selected.", "type": "string", "format": "date-time" }, - "status": { + "last_end_time": { + "description": "`last_end_time` is the latest trace end time in the thread (RFC3339). Populated when `LAST_END_TIME` is selected.", "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ] - }, - "title": { - "type": "string" + "format": "date-time" }, - "updated_at": { + "last_start_time": { + "description": "`last_start_time` is the latest trace start time in the thread (RFC3339). Populated when `LAST_START_TIME` is selected.", "type": "string", "format": "date-time" - } - } - }, - "threads.UpdateThreadMetadata": { - "type": "object", - "properties": { - "is_pinned": { - "$ref": "#/components/schemas/threads.OptionalField-bool" }, - "is_test_run": { - "$ref": "#/components/schemas/threads.OptionalField-bool" + "latency_p50_seconds": { + "description": "`latency_p50_seconds` is the approximate p50 of trace latency across the thread, in seconds. Populated when `LATENCY_P50` is selected.", + "type": "number" }, - "read_status": { - "$ref": "#/components/schemas/threads.OptionalField-bool" + "latency_p99_seconds": { + "description": "`latency_p99_seconds` is the approximate p99 of trace latency across the thread, in seconds. Populated when `LATENCY_P99` is selected.", + "type": "number" }, - "sandbox_recreated_at": { - "format": "date-time", + "prompt_cost": { + "description": "`prompt_cost` is the sum of per-trace prompt costs across the thread, in USD. Populated when `PROMPT_COST` is selected.", + "type": "number" + }, + "prompt_cost_details": { + "description": "`prompt_cost_details` is the per-sub-category sum of prompt cost details across the thread. Populated when `PROMPT_COST_DETAILS` is selected.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunPromptCostDetails" + } + ] + }, + "prompt_token_details": { + "description": "`prompt_token_details` is the per-sub-category sum of prompt token details across the thread. Populated when `PROMPT_TOKEN_DETAILS` is selected.", "allOf": [ { - "$ref": "#/components/schemas/threads.OptionalField-string" + "$ref": "#/components/schemas/query.RunPromptTokenDetails" } ] }, - "skip_memory_write_protection": { - "$ref": "#/components/schemas/threads.OptionalField-bool" + "prompt_tokens": { + "description": "`prompt_tokens` is the sum of per-trace prompt token counts across the thread. Populated when `PROMPT_TOKENS` is selected.", + "type": "integer" + }, + "total_cost": { + "description": "`total_cost` is the sum of per-trace total costs across the thread, in USD. Populated when `TOTAL_COST` is selected.", + "type": "number" + }, + "total_tokens": { + "description": "`total_tokens` is the sum of per-trace total token counts across the thread. Populated when `TOTAL_TOKENS` is selected.", + "type": "integer" + }, + "turns": { + "description": "`turns` is the number of distinct traces (turns) in the thread. Populated when `TURNS` is selected.", + "type": "integer" } } }, - "threads.UpdateThreadRequest": { + "threads.QueryThreadTracesResponseBody": { "type": "object", "properties": { - "metadata": { - "$ref": "#/components/schemas/threads.UpdateThreadMetadata" + "items": { + "description": "`items` is the page of root traces in this thread. Which properties are populated on each trace depends on the `selects` query parameter.", + "type": "array", + "items": { + "$ref": "#/components/schemas/threads.ThreadTraceListItem" + } }, - "title": { - "$ref": "#/components/schemas/threads.OptionalField-string" + "next_cursor": { + "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.", + "type": "string", + "example": "eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ==" } } }, - "threads.UpdateThreadResponse": { + "threads.QueryThreadsRequestBody": { "type": "object", "properties": { - "agent_id": { - "type": "string", - "format": "uuid" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string", - "format": "uuid" - }, - "metadata": { - "$ref": "#/components/schemas/threads.UpdateThreadMetadata" + "cursor": { + "description": "`cursor` is the opaque string from a previous response's `next_cursor`. Omit on the first request; pass the returned cursor to fetch the next page.", + "type": "string" }, - "title": { + "filter": { + "description": "`filter` narrows which threads are returned, using a LangSmith filter expression evaluated against each thread's root run.\nFor example: has(tags, \"production\") or eq(status, \"error\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", "type": "string" }, - "updated_at": { + "max_start_time": { + "description": "`max_start_time` is the exclusive upper bound on thread activity (RFC3339 date-time). Defaults to now (UTC) when omitted.", "type": "string", "format": "date-time" - } - } - }, - "tools.CreateToolPayload": { - "type": "object", - "required": [ - "description", - "handle", - "name", - "parameters" - ], - "properties": { - "description": { - "type": "string" }, - "enabled": { - "type": "boolean" + "min_start_time": { + "description": "`min_start_time` is the inclusive lower bound on thread activity (RFC3339 date-time). Defaults to 1 day before now (UTC) when omitted.", + "type": "string", + "format": "date-time" }, - "handle": { - "type": "string" + "page_size": { + "description": "`page_size` is the maximum number of threads to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set. The response may contain fewer threads than `page_size` even when `next_cursor` is non-null.", + "type": "integer", + "default": 20, + "maximum": 100, + "minimum": 1, + "example": 20 }, - "metadata": { - "type": "object", - "additionalProperties": true + "project_id": { + "description": "`project_id` is the tracing project UUID.", + "type": "string", + "format": "uuid", + "example": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" }, - "name": { - "type": "string" + "thread_filter": { + "description": "`thread_filter` narrows results using a LangSmith filter expression evaluated against each complete thread summary.\nSelf-hosted deployments require LangSmith v0.17 or later; unsupported deployments return 501.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "gte(turn_count, 3)" }, - "parameters": { - "type": "object", - "additionalProperties": true + "trace_filter": { + "description": "`trace_filter` narrows results to threads containing at least one trace whose root run matches this LangSmith filter expression.\nTrace-level aggregate fields are evaluated using the complete trace summary.\nSelf-hosted deployments require LangSmith v0.17 or later; unsupported deployments return 501.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "eq(status, \"error\")" }, - "returns": { - "type": "object", - "additionalProperties": true - } - } - }, - "tools.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "description": "Error message", - "type": "string" + "tree_filter": { + "description": "`tree_filter` narrows results to threads containing at least one trace with a matching run anywhere in its run tree.\nSelf-hosted deployments require LangSmith v0.17 or later; unsupported deployments return 501.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "has(tags, \"production\")" } } }, - "tools.ListToolsResponse": { + "threads.QueryThreadsResponseBody": { "type": "object", "properties": { - "next_offset": { - "type": "integer" - }, - "tools": { + "items": { + "description": "`items` is the page of thread summaries, sorted by the thread's most recent activity.", "type": "array", "items": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/threads.ThreadListItem" } }, - "total": { - "type": "integer" + "next_cursor": { + "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.", + "type": "string", + "example": "eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ==" } } }, - "tools.Tool": { + "threads.SingleThreadStatsSelectField": { + "type": "string", + "enum": [ + "TURNS", + "FIRST_START_TIME", + "LAST_START_TIME", + "LAST_END_TIME", + "LATENCY_P50", + "LATENCY_P99", + "PROMPT_TOKENS", + "PROMPT_COST", + "COMPLETION_TOKENS", + "COMPLETION_COST", + "TOTAL_TOKENS", + "TOTAL_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "FEEDBACK_STATS" + ], + "x-enum-varnames": [ + "SingleThreadStatsSelectTurns", + "SingleThreadStatsSelectFirstStartTime", + "SingleThreadStatsSelectLastStartTime", + "SingleThreadStatsSelectLastEndTime", + "SingleThreadStatsSelectLatencyP50", + "SingleThreadStatsSelectLatencyP99", + "SingleThreadStatsSelectPromptTokens", + "SingleThreadStatsSelectPromptCost", + "SingleThreadStatsSelectCompletionTokens", + "SingleThreadStatsSelectCompletionCost", + "SingleThreadStatsSelectTotalTokens", + "SingleThreadStatsSelectTotalCost", + "SingleThreadStatsSelectPromptTokenDetails", + "SingleThreadStatsSelectCompletionTokenDetails", + "SingleThreadStatsSelectPromptCostDetails", + "SingleThreadStatsSelectCompletionCostDetails", + "SingleThreadStatsSelectFeedbackStats" + ] + }, + "threads.ThreadListItem": { "type": "object", "properties": { - "created_at": { - "type": "string" + "count": { + "description": "`count` is how many root traces (conversation turns) fall in this thread for the query time range.", + "type": "integer", + "example": 3 }, - "description": { + "feedback_stats": { + "description": "`feedback_stats` is the aggregated feedback across traces in the thread, keyed by feedback key; shape matches `feedback_stats` on a single run.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunFeedbackStats" + } + ] + }, + "first_inputs": { + "description": "`first_inputs` is a truncated preview of inputs from the earliest trace in the thread for the query window.", "type": "string" }, - "enabled": { - "type": "boolean" + "first_trace_id": { + "description": "`first_trace_id` is the root trace UUID for the chronologically first trace in the query time window.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "handle": { + "last_error": { + "description": "`last_error` is a short error summary from the most recent failing trace in the thread. Absent when there is no error in the window.", "type": "string" }, - "id": { + "last_outputs": { + "description": "`last_outputs` is a truncated preview of outputs from the latest trace in the thread for the query window.", "type": "string" }, - "metadata": { - "type": "object", - "additionalProperties": true + "last_trace_id": { + "description": "`last_trace_id` is the root trace UUID for the chronologically last trace in the query time window.", + "type": "string", + "format": "uuid", + "example": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" }, - "name": { - "type": "string" + "latency_p50": { + "description": "`latency_p50` is the approximate median end-to-end latency of traces in the thread, in seconds.", + "type": "number", + "example": 0.15 }, - "parameters": { - "type": "object", - "additionalProperties": true + "latency_p99": { + "description": "`latency_p99` is the approximate 99th percentile end-to-end latency of traces in the thread, in seconds.", + "type": "number", + "example": 0.42 }, - "returns": { - "type": "object", - "additionalProperties": true + "max_start_time": { + "description": "`max_start_time` is the latest trace start time in the thread (RFC3339 date-time).", + "type": "string", + "format": "date-time", + "example": "2025-01-15T12:05:00.000Z" }, - "tenant_id": { - "type": "string" + "min_start_time": { + "description": "`min_start_time` is the earliest trace start time in the thread (RFC3339 date-time).", + "type": "string", + "format": "date-time", + "example": "2025-01-15T12:00:00.000Z" }, - "updated_at": { - "type": "string" - } - } - }, - "tools.UpdateToolPayload": { - "type": "object", - "properties": { - "description": { - "type": "string" + "num_errored_turns": { + "description": "`num_errored_turns` is the count of root traces in the thread (within the query window) whose status was an error.", + "type": "integer", + "example": 1 }, - "enabled": { - "type": "boolean" + "start_time": { + "description": "`start_time` is a reference start time for this row (RFC3339 date-time), such as for sorting.", + "type": "string", + "format": "date-time", + "example": "2025-01-15T12:00:00.000Z" }, - "metadata": { - "type": "object", - "additionalProperties": true + "thread_id": { + "description": "`thread_id` identifies this conversation thread within the project from the request body `project_id`.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "name": { - "type": "string" + "total_cost": { + "description": "`total_cost` is the sum of estimated USD cost across those traces.", + "type": "number", + "example": 0.045 }, - "parameters": { + "total_cost_details": { + "description": "`total_cost_details` sums per-category estimated USD cost across traces in the thread. Keys mirror `total_token_details`.\n\nExample: `{\"cache_read\": 0.012, \"reasoning\": 0.008}`.", "type": "object", - "additionalProperties": true + "additionalProperties": { + "type": "number", + "format": "float64" + } }, - "returns": { + "total_token_details": { + "description": "`total_token_details` sums per-category token counts across traces in the thread. Keys are model-specific category names (for example `cache_read`, `cache_write`, `reasoning`, `audio`).\n\nExample: `{\"cache_read\": 400, \"reasoning\": 120}`.", "type": "object", - "additionalProperties": true - } - } - }, - "tracer_session_issues.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" + "additionalProperties": { + "type": "integer", + "format": "int64" + } + }, + "total_tokens": { + "description": "`total_tokens` is the sum of token usage across those traces.", + "type": "integer", + "example": 450 + }, + "trace_id": { + "description": "`trace_id` is a representative root trace UUID when the summary includes one, for example for deep links.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9328" } } }, - "tracer_session_issues.Issue": { + "threads.ThreadTraceListItem": { "type": "object", "properties": { - "actions": { - "type": "object" + "completion_cost": { + "description": "`completion_cost` is the estimated USD cost for the completion. Omitted unless included in `selects`.", + "type": "number" }, - "created_at": { - "type": "string" + "completion_cost_details": { + "description": "`completion_cost_details` is the USD cost breakdown for completion-side categories; per-category values are under `raw`. Omitted unless included in `selects`.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunCompletionCostDetails" + } + ] }, - "description": { - "type": "string" + "completion_token_details": { + "description": "`completion_token_details` is the completion-side token breakdown by category; per-category counts are under `raw`. Omitted unless included in `selects`.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunCompletionTokenDetails" + } + ] }, - "first_seen_at": { - "type": "string" + "completion_tokens": { + "description": "`completion_tokens` is the completion-side token count. Omitted unless included in `selects`.", + "type": "integer" }, - "fix_branch": { - "type": "string" + "end_time": { + "description": "`end_time` is when the root run ended (RFC3339 date-time). JSON null if the run is still in progress. Omitted unless included in `selects`.", + "type": "string", + "format": "date-time", + "example": "2025-01-15T12:00:01.500Z" }, - "fix_dispatched_at": { + "error": { + "description": "`error` is the full root run error message when the run failed. Omitted unless included in `selects`.", + "type": "string", + "example": "context deadline exceeded" + }, + "error_preview": { + "description": "`error_preview` is a short error summary when the run failed. Omitted unless included in `selects`.", "type": "string" }, - "fix_pr_number": { - "type": "integer" + "first_token_time": { + "description": "`first_token_time` is when the first output token was produced (RFC3339 date-time), for streamed runs when that metadata exists. Omitted unless included in `selects`.", + "type": "string", + "format": "date-time", + "example": "2024-01-15T10:30:00.312Z" }, - "fix_prompt": { - "type": "string" + "inputs": { + "description": "`inputs` is the full root run input payload. Omitted unless included in `selects`.", + "type": "object" }, - "id": { + "inputs_preview": { + "description": "`inputs_preview` is a truncated text preview of inputs. Omitted unless included in `selects`.", "type": "string" }, - "last_seen_at": { - "type": "string" + "latency": { + "description": "`latency` is wall-clock duration from start to end in seconds. Omitted unless included in `selects`.", + "type": "number" }, "name": { + "description": "`name` is a human-readable label for the root run (for example the model name, function name, or step name chosen when the run was traced). Omitted unless included in `selects`.", "type": "string" }, - "proposed_context_fixes": { - "type": "array", - "items": { - "type": "object" - } + "op": { + "description": "`op` is a numeric code identifying the root run's `run_type` (for example LLM vs. tool vs. chain). Encoded as a number for compatibility with legacy clients; prefer the string `run_type` on `RunResponse` when available. Omitted unless included in `selects`.", + "type": "number" }, - "proposed_examples": { - "type": "array", - "items": { - "type": "object" - } + "outputs": { + "description": "`outputs` is the full root run output payload. Omitted unless included in `selects`.", + "type": "object" }, - "proposed_fix": { + "outputs_preview": { + "description": "`outputs_preview` is a truncated text preview of outputs. Omitted unless included in `selects`.", "type": "string" }, - "proposed_prompt_fixes": { - "type": "array", - "items": { - "type": "object" - } + "prompt_cost": { + "description": "`prompt_cost` is the estimated USD cost for the prompt. Omitted unless included in `selects`.", + "type": "number" }, - "session_id": { - "type": "string" + "prompt_cost_details": { + "description": "`prompt_cost_details` is the USD cost breakdown for prompt-side categories; per-category values are under `raw`. Omitted unless included in `selects`.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunPromptCostDetails" + } + ] }, - "severity": { - "$ref": "#/components/schemas/tracer_session_issues.Severity" + "prompt_token_details": { + "description": "`prompt_token_details` is the prompt-side token breakdown by category; per-category counts are under nested `raw`. Omitted unless included in `selects`.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunPromptTokenDetails" + } + ] }, - "status": { - "$ref": "#/components/schemas/tracer_session_issues.Status" + "prompt_tokens": { + "description": "`prompt_tokens` is the prompt-side token count. Omitted unless included in `selects`.", + "type": "integer" }, - "tags": { - "type": "array", - "items": { - "type": "string" - } + "start_time": { + "description": "`start_time` is when the trace started (RFC3339 date-time). Omitted unless included in `selects`.", + "type": "string", + "format": "date-time", + "example": "2025-01-15T12:00:00.000Z" }, - "tenant_id": { - "type": "string" + "thread_id": { + "description": "`thread_id` is the conversation thread UUID that contains this trace. Matches the `thread_id` path parameter of the request. Omitted unless included in `selects`.", + "type": "string", + "format": "uuid", + "example": "d4e5f6a7-b8c9-4d5e-1f2a-3b4c5d6e7f8a" }, - "traces": { - "type": "object" + "total_cost": { + "description": "`total_cost` is the estimated total USD cost for the root run. Omitted unless included in `selects`.", + "type": "number" }, - "updated_at": { - "type": "string" - } - } - }, - "tracer_session_issues.ListViewsResponse": { - "type": "object", - "properties": { - "views": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues.ViewedIssue" - } + "total_tokens": { + "description": "`total_tokens` is the total token count (prompt plus completion). Omitted unless included in `selects`.", + "type": "integer" + }, + "trace_id": { + "description": "`trace_id` is the UUID of this trace (the root run). Returned when `TRACE_ID` is in `selects`,\nor when `selects` is omitted entirely (sole fallback field).", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" } } }, - "tracer_session_issues.Severity": { - "type": "integer", + "threads.ThreadTraceSelectField": { + "type": "string", "enum": [ - 0, - 1, - 2, - 3 + "THREAD_ID", + "TRACE_ID", + "OP", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_TOKENS", + "START_TIME", + "END_TIME", + "LATENCY", + "FIRST_TOKEN_TIME", + "INPUTS_PREVIEW", + "OUTPUTS_PREVIEW", + "INPUTS", + "OUTPUTS", + "ERROR", + "PROMPT_COST", + "COMPLETION_COST", + "TOTAL_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "NAME", + "ERROR_PREVIEW" ], "x-enum-varnames": [ - "SeverityUrgent", - "SeverityHigh", - "SeverityMed", - "SeverityLow" + "ThreadTraceSelectThreadID", + "ThreadTraceSelectTraceID", + "ThreadTraceSelectOp", + "ThreadTraceSelectPromptTokens", + "ThreadTraceSelectCompletionTokens", + "ThreadTraceSelectTotalTokens", + "ThreadTraceSelectStartTime", + "ThreadTraceSelectEndTime", + "ThreadTraceSelectLatency", + "ThreadTraceSelectFirstTokenTime", + "ThreadTraceSelectInputsPreview", + "ThreadTraceSelectOutputsPreview", + "ThreadTraceSelectInputs", + "ThreadTraceSelectOutputs", + "ThreadTraceSelectError", + "ThreadTraceSelectPromptCost", + "ThreadTraceSelectCompletionCost", + "ThreadTraceSelectTotalCost", + "ThreadTraceSelectPromptTokenDetails", + "ThreadTraceSelectCompletionTokenDetails", + "ThreadTraceSelectPromptCostDetails", + "ThreadTraceSelectCompletionCostDetails", + "ThreadTraceSelectName", + "ThreadTraceSelectErrorPreview" ] }, - "tracer_session_issues.Status": { - "type": "string", - "enum": [ - "open", - "completed", - "ignored" + "threadshare.CreateShareTokenRequestBody": { + "type": "object", + "required": [ + "project_id" + ], + "properties": { + "project_id": { + "description": "project_id is the tracing project UUID containing the thread.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + } + } + }, + "threadshare.ShareTokenResponseBody": { + "type": "object", + "required": [ + "share_token" ], - "x-enum-varnames": [ - "StatusOpen", - "StatusCompleted", - "StatusIgnored" - ] + "properties": { + "share_token": { + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + } + } }, - "tracer_session_issues.ViewedIssue": { + "threadshare.ThreadManifest": { "type": "object", + "required": [ + "session_id", + "session_name", + "thread_id" + ], "properties": { - "issue_id": { + "conversations": { + "type": "object" + }, + "session_id": { + "type": "string", + "format": "uuid" + }, + "session_name": { "type": "string" }, - "viewed_at": { + "thread_id": { "type": "string" } } }, - "tracer_session_issues_agent.CreateIssuesAgentRequest": { + "tools.CreateToolPayload": { "type": "object", + "required": [ + "description", + "handle", + "name", + "parameters" + ], "properties": { - "context_hub_repo_handle": { + "description": { "type": "string" }, - "github_base_branch": { - "type": "string" + "enabled": { + "type": "boolean" }, - "github_repo_subdir": { + "handle": { "type": "string" }, - "github_repo_url": { + "metadata": { + "type": "object", + "additionalProperties": true + }, + "name": { "type": "string" }, - "priorities": { - "type": "array", - "items": { - "type": "string" - } + "parameters": { + "type": "object", + "additionalProperties": true + }, + "returns": { + "type": "object", + "additionalProperties": true } } }, - "tracer_session_issues_agent.ErrorResponse": { + "tools.ErrorResponse": { "type": "object", "properties": { "error": { + "description": "Error message", "type": "string" } } }, - "tracer_session_issues_agent.IssuesAgent": { + "tools.ListToolsResponse": { "type": "object", "properties": { - "agent_overview_accepted": { - "type": "boolean" + "next_offset": { + "type": "integer" }, - "context_hub_repo_handle": { - "type": "string" + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/tools.Tool" + } }, + "total": { + "type": "integer" + } + } + }, + "tools.Tool": { + "type": "object", + "properties": { "created_at": { "type": "string" }, - "cron_enabled": { - "type": "boolean" - }, - "cron_schedule": { - "type": "string" - }, - "github_base_branch": { + "description": { "type": "string" }, - "github_repo_subdir": { - "type": "string" + "enabled": { + "type": "boolean" }, - "github_repo_url": { + "handle": { "type": "string" }, "id": { "type": "string" }, - "latest_run_id": { - "type": "string" - }, - "latest_thread_id": { - "description": "IDs of the latest run on LangSmith Deployments; NULL until first trigger.", - "type": "string" - }, - "priorities": { - "type": "array", - "items": { - "type": "string" - } + "metadata": { + "type": "object", + "additionalProperties": true }, - "session_agent_overview_repo_id": { + "name": { "type": "string" }, - "session_id": { - "type": "string" + "parameters": { + "type": "object", + "additionalProperties": true }, - "session_name": { - "description": "JOINed from tracer_session", - "type": "string" + "returns": { + "type": "object", + "additionalProperties": true }, "tenant_id": { "type": "string" @@ -81619,54 +85288,29 @@ } } }, - "tracer_session_issues_agent.SaveOverviewRequest": { - "type": "object", - "properties": { - "content": { - "type": "string" - } - } - }, - "tracer_session_issues_agent.SaveOverviewResponse": { - "type": "object", - "properties": { - "commit_hash": { - "type": "string" - }, - "session_agent_overview_repo_id": { - "type": "string" - } - } - }, - "tracer_session_issues_agent.UpdateIssuesAgentRequest": { + "tools.UpdateToolPayload": { "type": "object", "properties": { - "agent_overview_accepted": { - "type": "boolean" - }, - "context_hub_repo_handle": { + "description": { "type": "string" }, - "cron_enabled": { + "enabled": { "type": "boolean" }, - "github_base_branch": { - "type": "string" - }, - "github_repo_subdir": { - "type": "string" + "metadata": { + "type": "object", + "additionalProperties": true }, - "github_repo_url": { + "name": { "type": "string" }, - "priorities": { - "type": "array", - "items": { - "type": "string" - } + "parameters": { + "type": "object", + "additionalProperties": true }, - "session_agent_overview_repo_id": { - "type": "string" + "returns": { + "type": "object", + "additionalProperties": true } } }, @@ -81676,25 +85320,70 @@ "created_at": { "type": "string" }, + "destination_type": { + "type": "string", + "enum": [ + "webhook", + "jira", + "slack" + ] + }, "event_types": { "type": "array", "items": { "type": "string" } }, + "has_jira_token": { + "type": "boolean" + }, + "has_signing_secret": { + "type": "boolean" + }, + "has_unreadable_credentials": { + "description": "HasUnreadableCredentials marks a row retained in the settings list whose\nencrypted credential envelope could not be opened. No credential-derived\nfields are populated for such a row; it must be deleted and recreated.", + "type": "boolean" + }, + "header_names": { + "description": "HeaderNames lists configured header names for write-only clients.", + "type": "array", + "items": { + "type": "string" + } + }, "headers": { - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } }, "id": { "type": "string" }, + "issue_statuses": { + "type": "array", + "items": { + "type": "string" + } + }, + "organization_id": { + "type": "string" + }, "session_id": { "type": "string" }, "severity_threshold": { - "$ref": "#/components/schemas/tracer_session_issues.Severity" + "$ref": "#/components/schemas/issues.Severity" }, "signing_secret": { + "description": "SigningSecret is present only in successful create, URL-conversion update,\nand roll responses.", + "type": "string" + }, + "slack_channel_id": { + "description": "Keep empty Slack fields in the response. The frontend uses an explicit\nempty string to distinguish URL destinations from Slack destinations.", + "type": "string" + }, + "slack_team_id": { "type": "string" }, "tenant_id": { @@ -81704,6 +85393,11 @@ "type": "string" }, "url": { + "description": "URL and Headers are retained as always-empty fields so a client written\nagainst the pre-write-only contract still parses the response. Use\nURLDisplay and HeaderNames instead.", + "type": "string" + }, + "url_display": { + "description": "URLDisplay contains only the destination hostname.", "type": "string" } } @@ -81719,262 +85413,316 @@ } } }, - "triggers.CreateTriggerRequest": { + "ttl_settings.TTLSettingsResponse": { "type": "object", "properties": { - "agent_id": { - "type": "string" - }, - "config": { - "type": "object", - "additionalProperties": {} - }, - "name": { - "type": "string" - }, - "registration_id": { - "type": "string" + "is_custom": { + "type": "boolean" }, - "status": { - "type": "string" + "longlived_ttl_days": { + "type": "integer" }, - "template_id": { + "tenant_id": { "type": "string" } } }, - "triggers.ErrorResponse": { + "ttl_settings.UpdateTTLSettingsRequest": { "type": "object", "properties": { - "code": { - "type": "string" - }, - "detail": { - "type": "string" - }, - "status": { + "longlived_ttl_days": { "type": "integer" - }, - "type": { - "type": "string" } } }, - "triggers.Trigger": { + "users.ErrorResponse": { "type": "object", "properties": { - "agent_id": { - "type": "string" - }, - "config": { - "type": "object", - "additionalProperties": {} - }, - "created_at": { - "type": "string" - }, - "id": { + "code": { "type": "string" }, - "name": { + "detail": { "type": "string" }, "status": { - "type": "string" - }, - "template_id": { - "type": "string" + "type": "integer" }, - "updated_at": { + "type": { "type": "string" } } }, - "triggers.TriggerListResponse": { + "users.ListResponse": { "type": "object", + "required": [ + "items", + "next_cursor" + ], "properties": { "items": { "type": "array", "items": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/users.User" } }, "next_cursor": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } } }, - "triggers.UpdateTriggerRequest": { + "users.User": { "type": "object", "properties": { - "config": { - "type": "object", - "additionalProperties": {} + "email": { + "type": "string", + "example": "ada@example.com" }, - "name": { - "type": "string" + "id": { + "type": "string", + "format": "uuid" }, - "status": { - "type": "string" + "name": { + "type": "string", + "example": "Ada Lovelace" } } }, - "ttl_settings.TTLSettingsResponse": { + "users.UserRef": { "type": "object", "properties": { - "is_custom": { - "type": "boolean" - }, - "longlived_ttl_days": { - "type": "integer" + "id": { + "type": "string", + "format": "uuid" }, - "tenant_id": { - "type": "string" - } - } - }, - "ttl_settings.UpdateTTLSettingsRequest": { - "type": "object", - "properties": { - "longlived_ttl_days": { - "type": "integer" + "name": { + "type": "string", + "example": "Ada Lovelace" } } }, - "usage.AgentUsage": { + "sandboxapi.S3BucketMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "s3" + ], "properties": { - "agent_name": { - "type": "string" - }, - "assistant_id": { - "type": "string" - }, - "first_used": { - "type": "string" + "cache": { + "$ref": "#/components/schemas/sandboxapi.MountCacheSpec" }, - "last_used": { - "type": "string" + "id": { + "type": "string", + "maxLength": 64 }, - "model_name": { + "mount_path": { "type": "string" }, - "owner_email": { - "type": "string" + "read_only": { + "type": "boolean" }, - "run_count": { - "type": "integer" + "s3": { + "$ref": "#/components/schemas/sandboxapi.S3MountSpec" }, - "total_cost": { - "type": "number" + "type": { + "enum": [ + "s3" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } - } - }, - "usage.AgentUsageResponse": { - "type": "object", - "properties": { - "agents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.AgentUsage" + }, + "not": { + "anyOf": [ + { + "required": [ + "gcs" + ] + }, + { + "required": [ + "git" + ] + }, + { + "required": [ + "contexthub" + ] } - } + ] } }, - "usage.ModelUsage": { + "sandboxapi.GCSBucketMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "gcs" + ], "properties": { - "last_used": { - "type": "string" + "cache": { + "$ref": "#/components/schemas/sandboxapi.MountCacheSpec" + }, + "gcs": { + "$ref": "#/components/schemas/sandboxapi.GCSMountSpec" }, - "model_name": { + "id": { + "type": "string", + "maxLength": 64 + }, + "mount_path": { "type": "string" }, - "run_count": { - "type": "integer" + "read_only": { + "type": "boolean" }, - "total_cost": { - "type": "number" + "type": { + "enum": [ + "gcs" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } - } - }, - "usage.ModelUsageResponse": { - "type": "object", - "properties": { - "models": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.ModelUsage" + }, + "not": { + "anyOf": [ + { + "required": [ + "s3" + ] + }, + { + "required": [ + "git" + ] + }, + { + "required": [ + "contexthub" + ] } - } + ] } }, - "usage.ToolUsage": { + "sandboxapi.GitRepoMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "git" + ], "properties": { - "agent_count": { - "type": "integer" + "git": { + "$ref": "#/components/schemas/sandboxapi.GitMountSpec" }, - "avg_latency_ms": { - "type": "number" + "id": { + "type": "string", + "maxLength": 64 }, - "last_used": { + "mount_path": { "type": "string" }, - "run_count": { - "type": "integer" + "read_only": { + "type": "boolean" }, - "tool_name": { - "type": "string" + "type": { + "enum": [ + "git" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } - } - }, - "usage.ToolUsageResponse": { - "type": "object", - "properties": { - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.ToolUsage" + }, + "not": { + "anyOf": [ + { + "required": [ + "s3" + ] + }, + { + "required": [ + "gcs" + ] + }, + { + "required": [ + "contexthub" + ] } - } + ] } }, - "usage.UserUsage": { + "sandboxapi.ContextHubRepoMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "contexthub" + ], "properties": { - "agent_count": { - "type": "integer" - }, - "first_used": { - "type": "string" - }, - "last_used": { - "type": "string" + "contexthub": { + "$ref": "#/components/schemas/sandboxapi.ContextHubMountSpec" }, - "ls_user_id": { - "type": "string" + "id": { + "type": "string", + "maxLength": 64 }, - "owner_email": { + "mount_path": { "type": "string" }, - "run_count": { - "type": "integer" + "read_only": { + "type": "boolean" }, - "total_cost": { - "type": "number" + "type": { + "enum": [ + "contexthub" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } - } - }, - "usage.UserUsageResponse": { - "type": "object", - "properties": { - "users": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.UserUsage" + }, + "not": { + "anyOf": [ + { + "required": [ + "s3" + ] + }, + { + "required": [ + "gcs" + ] + }, + { + "required": [ + "git" + ] } - } + ] } } }, @@ -82252,81 +86000,20 @@ "x-group": "System" }, { - "name": "agents", - "x-hidden": true - }, - { - "name": "beacon", - "x-hidden": true - }, - { - "name": "engine-trial" - }, - { - "name": "fleet" - }, - { - "name": "fleet auth", - "x-hidden": true - }, - { - "name": "fleet credentials", - "x-hidden": true - }, - { - "name": "fleet github-app", - "x-hidden": true - }, - { - "name": "fleet integrations", - "x-hidden": true - }, - { - "name": "fleet mcp", - "x-hidden": true - }, - { - "name": "fleet threads", - "x-hidden": true - }, - { - "name": "fleet trigger-templates", - "x-hidden": true - }, - { - "name": "fleet triggers", - "x-hidden": true - }, - { - "name": "fleet usage", - "x-hidden": true - }, - { - "name": "fleet_webhooks", - "x-hidden": true - }, - { - "name": "health" - }, - { - "name": "internal", - "x-hidden": true + "name": "threads", + "x-group": "System" }, { - "name": "metrics", - "x-hidden": true + "name": "fleet orgs" }, { - "name": "nps", - "x-hidden": true + "name": "fleet secrets" }, { - "name": "sandboxes-internal", - "x-hidden": true + "name": "fleet tenants" }, { - "name": "skills", - "x-hidden": true + "name": "fleet users" } ] }