diff --git a/src/langsmith/langsmith-platform-openapi.json b/src/langsmith/langsmith-platform-openapi.json index 1629573955..7734ec46b4 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,56 +8962,134 @@ } } } - } + }, + "x-public": true }, "patch": { + "description": "Updates a run identified by its ID. The body should contain only the fields to be changed; unknown fields are ignored.", "tags": [ - "run" - ], - "summary": "Update Run", - "description": "Update a run.", - "operationId": "update_run_api_v1_runs__run_id__patch", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } + "runs" ], + "summary": "Update a Run", "parameters": [ { + "description": "Run ID", "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string", "format": "uuid", - "title": "Run Id" + "type": "string" } } ], "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" + } + } + } + } + }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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,23 +9479,91 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs": { "post": { + "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" + } } } } @@ -9523,23 +9578,111 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.Run" + } + } + } + } } }, "/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" + } } } } @@ -9554,23 +9697,123 @@ { "Bearer Auth": [] } - ] + ], + "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": { + "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" + } + } + } + } + }, + "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" + } + } + } + }, + "501": { + "description": "a feedback part needs session_id in current db deployment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } } } } @@ -9585,7 +9828,50 @@ { "Bearer Auth": [] } - ] + ], + "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": [ { @@ -10706,48 +11027,6 @@ } } }, - "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" - } - } - } - } - } - } - }, - "/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", @@ -10770,17 +11049,7 @@ } } }, - "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": { @@ -12059,7 +12430,8 @@ "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "format": "uuid" }, "title": "Share Tokens" } @@ -12090,181 +12462,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 +12517,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/generate-query": { @@ -12372,7 +12572,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/stats": { @@ -12400,7 +12601,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RunStatsQueryParams" + "$ref": "#/components/schemas/RunStatsQueryParamsPublic" } } } @@ -12426,7 +12627,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/{run_id}": { @@ -12490,7 +12692,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/feedback": { @@ -12707,7 +12910,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/comparative": { @@ -12829,7 +13033,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/message.json": { @@ -12869,7 +13074,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/tooldef.json": { @@ -12909,7 +13115,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues": { @@ -13125,7 +13332,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -13175,7 +13383,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -13230,7 +13439,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/populate": { @@ -13281,7 +13491,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}": { @@ -13333,7 +13544,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -13393,7 +13605,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13445,7 +13658,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs": { @@ -13455,6 +13669,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 +13691,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 +13759,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13542,6 +13768,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 +13893,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/by-key": { @@ -13675,7 +13903,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 +13927,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 +13978,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/export": { @@ -13800,7 +14041,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/run/{index}": { @@ -13811,6 +14053,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 +14117,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{run_id}/queues": { @@ -13932,7 +14176,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/{queue_run_id}": { @@ -13942,6 +14187,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 +14250,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -14012,6 +14259,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 +14312,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/delete": { @@ -14074,6 +14323,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 +14376,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_size": { @@ -14136,6 +14387,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 +14432,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_archived": { @@ -14190,6 +14443,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 +14522,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/size": { @@ -14278,6 +14533,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 +14599,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/status/{annotation_queue_run_id}": { @@ -14353,6 +14610,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 +14663,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/resolve/{queue_run_id}": { @@ -14416,6 +14675,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 +14730,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/ace/execute": { @@ -14525,7 +14786,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/bulk-exports": { @@ -14536,73 +14798,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 +14808,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 +14848,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 +14865,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 +14886,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 +14917,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 +15216,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/destinations/{destination_id}": { @@ -14933,7 +15272,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -14996,7 +15336,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs": { @@ -15028,6 +15369,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 +15425,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs/{run_id}": { @@ -15120,7 +15491,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback-configs": { @@ -15253,7 +15625,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -15303,7 +15676,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15353,7 +15727,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15398,7 +15773,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/model-price-map": { @@ -15408,16 +15784,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 +15881,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 +15912,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/model-price-map/{id}": { @@ -15538,7 +15974,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15588,7 +16025,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompts/invoke_prompt": { @@ -15627,57 +16065,8 @@ } } } - } - } - }, - "/api/v1/prompts/canvas": { - "post": { - "tags": [ - "prompts" - ], - "summary": "Prompt Canvas", - "operationId": "prompt_canvas_api_v1_prompts_canvas_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PlaygroundPromptCanvasPayload" - } - } - }, - "required": true }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/prompt-webhooks": { @@ -15714,7 +16103,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -15765,7 +16155,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/prompt-webhooks/{webhook_id}": { @@ -15820,7 +16211,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15883,7 +16275,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15934,7 +16327,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompt-webhooks/test": { @@ -15991,33 +16385,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 +16407,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 +16440,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 +16459,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}": { @@ -16108,6 +16537,7 @@ "required": true, "schema": { "type": "string", + "format": "uuid", "title": "Playground Settings Id" } } @@ -16133,7 +16563,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -16160,6 +16591,7 @@ "required": true, "schema": { "type": "string", + "format": "uuid", "title": "Playground Settings Id" } } @@ -16195,7 +16627,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16222,6 +16655,7 @@ "required": true, "schema": { "type": "string", + "format": "uuid", "title": "Playground Settings Id" } } @@ -16245,7 +16679,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/clone": { @@ -16298,7 +16733,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/section": { @@ -16460,7 +16896,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -16511,7 +16948,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts": { @@ -16564,7 +17002,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/preview": { @@ -16617,7 +17056,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/create": { @@ -16626,13 +17066,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 +17104,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 +17150,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/{chart_id}": { @@ -16679,7 +17160,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 +17201,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 +17236,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 +17285,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 +17320,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16849,7 +17372,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/{section_id}": { @@ -16914,7 +17438,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -16977,7 +17502,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -17028,7 +17554,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/org-charts/section": { @@ -17037,8 +17564,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 +17588,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 +17619,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 +17628,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 +17651,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/preview": { @@ -17303,40 +17661,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 +17684,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/create": { @@ -17356,40 +17694,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 +17717,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/{chart_id}": { @@ -17409,8 +17727,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 +17751,57 @@ "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" - } + "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 Chart", - "description": "Update a 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": {} + } + } + } + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17485,58 +17813,28 @@ "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" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartUpdate" - } - } - } - }, + "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", "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 +17846,15 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "chart_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Chart Id" - } - } + "x-public": true + }, + "delete": { + "tags": [ + "charts" ], + "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", @@ -17568,28 +17863,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,121 +17877,26 @@ "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/CustomChartsRequestBase" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSection" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } + "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", - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "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" - } + "schema": {} } } } - } - }, - "delete": { - "tags": [ - "charts" - ], - "summary": "Org Delete Section", - "description": "Delete a section.", - "operationId": "org_delete_section_api_v1_org_charts_section__section_id__delete", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17727,38 +17908,7 @@ "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" - } - } - } - } - } + "x-public": true } }, "/api/v1/mcp/tools": { @@ -17767,7 +17917,7 @@ "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.", + "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": [ { @@ -17822,6 +17972,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 +18018,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -17934,7 +18101,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/mcp/proxy": { @@ -18005,7 +18173,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18053,7 +18222,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs": { @@ -18116,7 +18286,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18160,7 +18331,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/setup": { @@ -18192,7 +18364,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current": { @@ -18224,7 +18397,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/info": { @@ -18256,7 +18430,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "patch": { "tags": [ @@ -18306,7 +18481,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing": { @@ -18338,7 +18514,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/dashboard": { @@ -18406,7 +18583,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/payment-method": { @@ -18456,7 +18634,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/business-info": { @@ -18488,7 +18667,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18536,7 +18716,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/plan": { @@ -18586,7 +18767,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles": { @@ -18622,7 +18804,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18672,7 +18855,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles/{role_id}": { @@ -18726,7 +18910,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -18788,7 +18973,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 +19069,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/pending": { @@ -18849,7 +19101,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members": { @@ -18881,7 +19134,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18931,7 +19185,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/active": { @@ -19101,7 +19356,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/pending": { @@ -19226,7 +19482,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/batch": { @@ -19287,7 +19544,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/basic/batch": { @@ -19348,7 +19606,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}/pending": { @@ -19401,39 +19660,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 +19724,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 +19820,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}": { @@ -19548,7 +19874,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -19609,7 +19936,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/members/basic": { @@ -19660,7 +19988,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings": { @@ -19697,7 +20026,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -19748,7 +20078,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings/{id}": { @@ -19813,7 +20144,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -19866,7 +20198,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/login-methods": { @@ -19921,7 +20254,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing/usage": { @@ -19999,7 +20333,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage": { @@ -20008,7 +20343,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 +20380,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 +20453,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage/export": { @@ -20157,13 +20500,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 +20571,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/user/login-methods": { @@ -20258,7 +20609,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_checkout_session": { @@ -20309,7 +20661,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_account_links": { @@ -20360,7 +20713,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/service-keys": { @@ -20370,22 +20724,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 +20796,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 +20829,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/orgs/current/service-keys/{api_key_id}": { @@ -20501,7 +20883,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -20564,7 +20947,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens": { @@ -20574,22 +20958,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 +21029,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 +21062,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens/{pat_id}": { @@ -20704,7 +21116,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/set-default-sso-provision": { @@ -20739,7 +21152,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/login": { @@ -20760,7 +21174,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/send": { @@ -20809,7 +21224,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/sso/email-verification/status": { @@ -20851,7 +21267,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/confirm": { @@ -20895,7 +21312,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/settings/{sso_login_slug}": { @@ -20942,7 +21360,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-lookup": { @@ -20988,7 +21407,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key": { @@ -21025,14 +21445,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 +21500,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/{api_key_id}": { @@ -21134,7 +21556,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key/current": { @@ -21172,7 +21595,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21226,7 +21650,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/current/{pat_id}": { @@ -21282,7 +21707,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/tenants": { @@ -21345,7 +21771,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -21390,7 +21817,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/onboarding_state": { @@ -21417,7 +21845,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21442,7 +21871,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/me/onboarding_state/{field}": { @@ -21490,7 +21920,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/ls_user_id": { @@ -21518,7 +21949,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts": { @@ -21555,7 +21987,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21606,7 +22039,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts/{service_account_id}": { @@ -21661,7 +22095,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending": { @@ -21692,7 +22127,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/pending/{id}": { @@ -21738,7 +22174,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending/{workspace_id}/claim": { @@ -21785,7 +22222,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members": { @@ -21817,7 +22255,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21868,7 +22307,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/active": { @@ -22038,7 +22478,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/pending": { @@ -22163,7 +22604,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/batch": { @@ -22195,7 +22637,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 +22669,8 @@ { "Organization ID": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/{identity_id}": { @@ -22279,7 +22722,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -22339,10 +22783,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 +22900,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/usage-limits": { @@ -22428,7 +22938,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -22479,7 +22990,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/org": { @@ -22516,7 +23028,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/{usage_limit_id}": { @@ -22569,7 +23082,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/settings": { @@ -22602,7 +23116,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/settings/handle": { @@ -22655,7 +23170,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/repos": { @@ -22688,6 +23204,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 +23543,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -23068,7 +23595,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23123,7 +23651,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}": { @@ -23186,7 +23715,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -23257,7 +23787,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23316,7 +23847,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/fork": { @@ -23389,7 +23921,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/tags": { @@ -23697,7 +24230,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/optimize-job": { @@ -23750,7 +24284,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/likes/{owner}/{repo}": { @@ -23823,7 +24358,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}": { @@ -23893,7 +24429,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -23976,7 +24513,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}": { @@ -24071,7 +24609,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24151,7 +24690,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}/like": { @@ -24225,7 +24765,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24297,7 +24838,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags": { @@ -24354,7 +24896,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24425,7 +24968,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags/{tag_name}": { @@ -24487,7 +25031,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -24567,7 +25112,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24635,7 +25181,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/owners": { @@ -24698,7 +25245,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24769,7 +25317,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24838,7 +25387,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs": { @@ -24896,7 +25446,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24958,7 +25509,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}": { @@ -25013,7 +25565,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -25076,7 +25629,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25127,7 +25681,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs": { @@ -25186,7 +25741,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -25249,7 +25805,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs/{log_id}": { @@ -25304,7 +25861,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25355,22 +25913,12 @@ } } } - } + }, + "x-public": true } }, "/.well-known/oauth-authorization-server": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], "description": "Returns OAuth2 authorization server metadata per RFC 8414, including supported endpoints, grant types, and response types.", "tags": [ "oauth" @@ -25398,11 +25946,6 @@ } } }, - "parameters": [] - } - }, - "/api/v1/hub/environments": { - "get": { "security": [ { "API Key": [] @@ -25414,18 +25957,109 @@ "Bearer Auth": [] } ], - "description": "Returns the hub environments model for the current tenant.\nReturns 404 if no custom configuration exists.", + "x-public": true, + "parameters": [] + } + }, + "/.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": [ - "hub_environments" + "oauth" ], - "summary": "List hub environments", + "summary": "Get OpenID Connect provider configuration", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" + "$ref": "#/components/schemas/oauth.OIDCProviderMetadata" + } + } + } + } + }, + "x-public": true, + "parameters": [] + } + }, + "/api/v1/commits/{owner}/{repo}": { + "get": { + "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": [ + "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": { + "maximum": 100, + "default": 20, + "type": "integer", + "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": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/commits.ListCommitsResponse" } } } @@ -25435,7 +26069,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25445,7 +26079,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25455,15 +26089,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } }, - "parameters": [] - }, - "post": { "security": [ { "API Key": [] @@ -25475,19 +26106,41 @@ "Bearer Auth": [] } ], - "description": "Creates the hub environments configuration for the current tenant.", + "x-public": true + }, + "post": { + "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 +26150,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,51 +26180,107 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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": { - "security": [ + "/api/v1/commits/{owner}/{repo}/{commit}": { + "get": { + "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": [ + "commits" + ], + "summary": "Get a commit", + "parameters": [ { - "API Key": [] + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } }, { - "Tenant ID": [] + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } }, { - "Bearer Auth": [] - } - ], - "description": "Deletes the hub environments configuration. Tenant reverts to defaults.", - "tags": [ - "hub_environments" - ], - "summary": "Delete hub environments model", - "parameters": [ - { - "description": "Model ID", - "name": "id", + "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 +26289,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/commits.CommitResponse" } } } @@ -25583,7 +26299,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25593,7 +26309,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25603,14 +26319,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] @@ -25622,22 +26336,16 @@ "Bearer Auth": [] } ], - "description": "Replaces the environments array on an existing model.", + "x-public": true + } + }, + "/api/v1/hub/environments": { + "get": { + "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 +26388,6 @@ } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/hub_environments.UpdateEnvironmentsRequest" - } - } - } - } - } - }, - "/auth/public": { - "get": { "security": [ { "API Key": [] @@ -25705,28 +26399,58 @@ "Bearer Auth": [] } ], - "description": "Returns public authentication information for the current workspace-level session.", + "x-public": true, + "parameters": [] + }, + "post": { + "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": [] - } - }, - "/auth/sandbox-access": { - "get": { "security": [ { "API Key": [] @@ -25738,30 +26462,34 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.CreateEnvironmentsRequest" + } + } + } + } + } + }, + "/api/v1/hub/environments/{id}": { + "delete": { + "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 +26499,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authn.PublicAuthInfo" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -25781,72 +26512,89 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } }, - "403": { - "description": "sandbox access denied: ", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } + } + }, + "security": [ + { + "API Key": [] }, - "404": { - "description": "Not Found", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true + }, + "patch": { + "description": "Replaces the environments array on an existing model.", + "tags": [ + "hub_environments" + ], + "summary": "Update hub environments model", + "parameters": [ + { + "description": "Model ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" } } } }, - "500": { - "description": "Internal Server Error", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.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", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -25856,35 +26604,55 @@ "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "x-amzn-marketplace-token": { - "type": "string", - "description": "Registration token from AWS Marketplace" - } - }, - "required": [ - "x-amzn-marketplace-token" - ] + "$ref": "#/components/schemas/hub_environments.UpdateEnvironmentsRequest" } } } } } }, - "/commits/{owner}/{repo}": { + "/api/v1/info": { "get": { + "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": [ + "info" + ], + "summary": "Get server info", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/info.InfoGetResponse" + } + } + } + } + }, "security": [ { "API Key": [] @@ -25896,117 +26664,90 @@ "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).", + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/alerts/{session_id}": { + "post": { + "description": "Creates a new alert rule. The request body must be a JSON-encoded alert rule object that follows the CreateAlertRuleRequest schema.", "tags": [ - "commits" + "alert_rules" ], - "summary": "List commits", + "summary": "Create an alert rule", "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": { "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": { - "200": { - "description": "OK", + "201": { + "description": "Alert rule created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ListCommitsResponse" + "$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" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "429": { + "description": "Alert Rule Limit Reached", + "content": { + "application/json": { + "schema": { + "$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" } } } } - } - }, - "post": { + }, "security": [ { "API Key": [] @@ -26018,15 +26759,30 @@ "Bearer Auth": [] } ], - "description": "Creates a new commit in a repository.\nRequires authentication and write access to the repository.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.CreateAlertRuleRequest" + } + } + } + } + } + }, + "/api/v1/platform/alerts/{session_id}/test": { + "post": { + "description": "Tests an alert action which will fire a notification to all configured recipients if the configuration is valid.", "tags": [ - "commits" + "alert_rules" ], - "summary": "Create 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", + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -26034,8 +26790,8 @@ } }, { - "description": "Repository handle", - "name": "repo", + "description": "Alert rule ID", + "name": "alert_rule_id", "in": "path", "required": true, "schema": { @@ -26044,22 +26800,37 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "Alert action fired successfully", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CreateCommitResponse" + "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" } } } @@ -26069,46 +26840,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/commits.CreateCommitReq" - } - } - } - } - } - }, - "/commits/{owner}/{repo}/{commit}": { - "get": { "security": [ { "API Key": [] @@ -26120,24 +26877,20 @@ "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", + "x-public": true + } + }, + "/api/v1/platform/alerts/{session_id}/{alert_rule_id}": { + "get": { + "description": "Gets an alert rule.", "tags": [ - "commits" + "alert_rules" ], - "summary": "Get a commit", + "summary": "Get an alert rule", "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,98 +26898,77 @@ } }, { - "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 rule", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CommitResponse" + "$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" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "404": { - "description": "Not Found", + "description": "Not found", "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" } } } } - } - } - }, - "/datasets/{dataset_id}/experiment-view-overrides": { - "get": { + }, "security": [ { "API Key": [] @@ -26248,93 +26980,111 @@ "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", + "x-public": true + }, + "delete": { + "description": "Deletes an alert rule", "tags": [ - "experiment-view-overrides" + "alert_rules" ], - "summary": "Get experiment view override configurations 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": { "200": { - "description": "Successfully retrieved experiment view override configurations", + "description": "Alert rule deleted", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] } } } } }, "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" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } - } - }, - "post": { + }, "security": [ { "API Key": [] @@ -26346,128 +27096,111 @@ "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).", + "x-public": true + }, + "patch": { + "description": "Updates an alert rule.", "tags": [ - "experiment-view-overrides" + "alert_rules" ], - "summary": "Create new experiment view override configuration for a dataset", + "summary": "Update 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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" - } - } - } - }, - "400": { - "description": "Invalid request data\" example({\"error\":\"column_overrides field is required\"})", + "200": { + "description": "Alert rule updated", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { - "type": "string" + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] } } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "400": { + "description": "Bad request", "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\"})", + "403": { + "description": "Forbidden", "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\"})", + "404": { + "description": "Not found", "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\"})", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePostRequest" - } - } - } - } - } - }, - "/datasets/{dataset_id}/experiment-view-overrides/{id}": { - "get": { "security": [ { "API Key": [] @@ -26479,101 +27212,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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.UpdateAlertRuleRequest" + } + } + } + } + } + }, + "/api/v1/platform/annotation-queues/items/{queue_item_id}/status": { + "post": { + "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" } } } } - } - }, - "delete": { + }, "security": [ { "API Key": [] @@ -26585,94 +27306,140 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/annotationqueues.CreateAnnotationQueueItemStatusRequest" + } + } + } + } + } + }, + "/api/v1/platform/annotation-queues/{queue_id}/items": { + "get": { + "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" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] @@ -26684,159 +27451,153 @@ "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.", + "x-public": true + }, + "post": { + "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" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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": [ + "description": "Returns the number of annotation queue items for the requested reviewer-specific or archived bucket.", + "tags": [ + "annotation_queues" + ], + "summary": "Get the annotation queue item count", + "parameters": [ { - "API Key": [] + "description": "Queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } }, { - "Tenant ID": [] + "description": "Count bucket: all, needs_my_review, needs_others_review, or archived.", + "name": "status", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Status" + } }, { - "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.", - "tags": [ - "issues-agent" - ], - "summary": "Get issues-agent (Engine) LCU spend per project for the calling org", - "parameters": [ - { - "description": "Inclusive window start, RFC 3339. Defaults to first instant of current calendar month (UTC).", - "name": "start", + "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 +27607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendResponse" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemCountResponse" } } } @@ -26856,7 +27617,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -26866,46 +27630,79 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } - } - } - } - }, - "/me/providers/{providerType}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "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.", + "x-public": true + } + }, + "/api/v1/platform/annotation-queues/{queue_id}/items/delete": { + "post": { + "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,7 +27716,10 @@ "content": { "application/json": { "schema": { - "type": "string" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -26929,36 +27729,42 @@ "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" } } } } - } - } - }, - "/oauth/authorize": { - "get": { + }, "security": [ { "API Key": [] @@ -26970,118 +27776,53 @@ "Bearer Auth": [] } ], - "description": "Validates authorization request parameters and redirects to the frontend consent page per RFC 6749.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/annotationqueues.DeleteAnnotationQueueItemsRequest" + } + } + } + } + } + }, + "/api/v1/platform/annotation-queues/{queue_id}/items/{item_id}": { + "patch": { + "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 +27832,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" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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.", + "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 +27925,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.ClientPublicMetadata" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemPlacementResponse" } } } @@ -27210,7 +27935,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,16 +27955,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/oauth/device/authorize": { - "post": { + }, "security": [ { "API Key": [] @@ -27241,22 +27972,34 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/annotation-queues/{queue_id}/reviewers": { + "post": { + "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,98 +28009,118 @@ "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" + } } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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": { - "security": [ - { - "API Key": [] - }, + "/api/v1/platform/annotation-queues/{queue_id}/reviewers/{identity_id}": { + "delete": { + "description": "Unassigns an identity as a reviewer for the queue. Idempotent.", + "tags": [ + "annotation_queues" + ], + "summary": "Remove a reviewer from an annotation queue", + "parameters": [ { - "Tenant ID": [] + "description": "Queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } }, { - "Bearer Auth": [] + "description": "Identity ID of the reviewer to remove", + "name": "identity_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], - "description": "Issues a device code and user code for the device authorization flow per RFC 8628.", - "tags": [ - "oauth" - ], - "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,35 +28130,15 @@ "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" - ] - } - } - } - } - } - }, - "/oauth/register": { - "post": { "security": [ { "API Key": [] @@ -27407,19 +28150,24 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/datasets/examples/delete": { + "post": { + "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,46 +28177,42 @@ "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" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/oauth.ClientRegistrationRequest" + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/examples.ErrorResponse" + } } } } - } - } - }, - "/oauth/revoke": { - "post": { + }, "security": [ { "API Key": [] @@ -27480,390 +28224,371 @@ "Bearer Auth": [] } ], - "description": "Revokes an access token or refresh token per RFC 7009. Always returns 200 regardless of whether the token was found.", - "tags": [ - "oauth" - ], - "summary": "Revoke an OAuth2 token", - "parameters": [], - "responses": { - "200": { - "description": "OK" - } - }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "token": { - "type": "string", - "description": "Token to revoke (access token or refresh token)" - } - }, - "required": [ - "token" - ] + "$ref": "#/components/schemas/examples.DeleteExamplesRequest" } } } } } }, - "/oauth/token": { + "/api/v1/platform/datasets/{dataset_id}/examples": { "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Token endpoint that dispatches by grant_type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token.", + "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": "Exchange grant for OAuth2 tokens", - "parameters": [], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/oauth.TokenResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "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": [] - }, + "summary": "Upload Examples", + "parameters": [ { - "Bearer Auth": [] + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } } ], - "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", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/data_planes.ListPublicDataPlanesResponse" + "$ref": "#/components/schemas/examples.ExamplesCreatedResponse" } } } }, "400": { - "description": "Invalid organization ID", + "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 for this organization", + "409": { + "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" } } } } }, - "parameters": [] - }, - "post": { "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.", + "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" + ] + } + } + } + } + }, + "patch": { + "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": { + "format": "uuid", + "type": "string" + } + } ], - "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" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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": [ + "description": "List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.", + "tags": [ + "evaluators" + ], + "summary": "List evaluators", + "parameters": [ { - "API Key": [] + "description": "Filter by evaluator type", + "name": "type", + "in": "query", + "schema": { + "type": "string", + "title": "Type" + } }, { - "Tenant ID": [] + "description": "Filter by name substring (also searches creator names)", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" + } }, { - "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": "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": "Repository owner (tenant handle)", - "name": "owner", - "in": "path", - "required": true, + "description": "Filter by feedback key", + "name": "feedback_key", + "in": "query", "schema": { - "type": "string" + "type": "string", + "title": "Feedback Key" } }, { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, + "description": "Filter by resource IDs", + "name": "resource_id", + "in": "query", + "style": "form", + "explode": false, "schema": { - "type": "string" + "items": { + "type": "string" + }, + "type": "array", + "title": "Resource Id" } }, { - "description": "Tag name", - "name": "tag_name", - "in": "path", - "required": true, + "description": "Field to sort by", + "name": "sort_by", + "in": "query", "schema": { - "type": "string" + "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 +28599,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.TagTransitionHistoryResponse" + "$ref": "#/components/schemas/evaluators.ListEvaluatorsResponse" } } } @@ -27884,17 +28609,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,16 +28639,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } - } - } - }, - "/runs": { - "post": { + }, "security": [ { "API Key": [] @@ -27925,34 +28656,22 @@ "Bearer Auth": [] } ], - "description": "Queues a single run for ingestion. The request body must be a JSON-encoded run object that follows the Run schema.", + "x-public": true + }, + "post": { + "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,105 +28681,104 @@ "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" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } - }, - "429": { - "description": "Too Many Requests", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.Run" + "$ref": "#/components/schemas/evaluators.CreateEvaluatorRequest" } } } } - } - }, - "/runs/batch": { - "post": { - "security": [ - { - "API Key": [] - }, + }, + "delete": { + "description": "Delete multiple evaluators by their IDs. Returns per-item success/failure.", + "tags": [ + "evaluators" + ], + "summary": "Bulk delete evaluators", + "parameters": [ { - "Tenant ID": [] + "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" + } }, { - "Bearer Auth": [] + "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" + } } ], - "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": [ - "runs" - ], - "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,90 +28788,42 @@ "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" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "413": { - "description": "Request Entity Too Large", + "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" } } } } }, - "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" - } - } - } - } - } - } - } - } - }, - "/runs/multipart": { - "post": { "security": [ { "API Key": [] @@ -28165,22 +28835,117 @@ "Bearer Auth": [] } ], - "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.", + "x-public": true + } + }, + "/api/v1/platform/evaluators/spend": { + "get": { + "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": [ - "runs" + "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" + } + }, + { + "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": "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" + } + } ], - "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 +28955,52 @@ "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}" - } - } - } - } - } - } - } - }, - "/runs/{run_id}": { - "patch": { "security": [ { "API Key": [] @@ -28303,45 +29012,34 @@ "Bearer Auth": [] } ], - "description": "Updates a run identified by its ID. The body should contain only the fields to be changed; unknown fields are ignored.", + "x-public": true + } + }, + "/api/v1/platform/evaluators/{evaluator_id}": { + "get": { + "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 +29049,52 @@ "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": { "security": [ { "API Key": [] @@ -28432,31 +29106,54 @@ "Bearer Auth": [] } ], - "description": "Returns default policy, integration overrides, and known integrations for the current workspace.", + "x-public": true + }, + "delete": { + "description": "Delete an evaluator. Returns 409 when a code evaluator build is ENQUEUED or BUILDING, or when run rules still reference the evaluator and delete_run_rules is false. When delete_run_rules is true, all run rules referencing this evaluator are deleted first (same tenant) if the build is not in flight. 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 +29163,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28479,10 +29173,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 +29193,12 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "parameters": [] - }, - "put": { "security": [ { "API Key": [] @@ -28515,19 +29210,32 @@ "Bearer Auth": [] } ], - "description": "Replaces default policy and integration overrides for the current workspace.", + "x-public": true + }, + "patch": { + "description": "Update an existing evaluator's name, LLM configuration, or code configuration. Returns 409 when a code evaluator build is ENQUEUED or BUILDING.", "tags": [ - "integrations" + "evaluators" ], - "summary": "Update Agent Builder integrations settings", - "parameters": [], - "responses": { - "200": { - "description": "OK", + "summary": "Update evaluator", + "parameters": [ + { + "description": "Evaluator ID", + "name": "evaluator_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" + "$ref": "#/components/schemas/evaluators.UpdateEvaluatorResponse" } } } @@ -28537,111 +29245,47 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsUpdatePayload" - } - } - } - } - } - }, - "/v1/beacon/usage-snapshot": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "beacon" - ], - "summary": "Submit a usage snapshot", - "parameters": [], - "responses": { - "204": { - "description": "No Content" }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28651,30 +29295,12 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/beacon.SubmitUsageSnapshotPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/deepagents/auth-sessions": { - "post": { "security": [ { "API Key": [] @@ -28686,79 +29312,71 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.UpdateEvaluatorRequest" + } + } + } + } + } + }, + "/api/v1/platform/features": { + "get": { + "description": "Returns a consolidated view of default models and disabled models per feature for the workspace.", "tags": [ - "fleet auth" + "features" ], - "summary": "Start an authorization session", - "parameters": [], + "summary": "List feature configurations", "responses": { "200": { - "description": "Existing token reused; no new session created.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" - } - } - } - }, - "201": { - "description": "New pending session created; visit verification_url to complete.", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/features.FeatureConfig" + } } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "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" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.CreateSessionRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/deepagents/auth-sessions/{session_id}": { - "get": { "security": [ { "API Key": [] @@ -28770,48 +29388,38 @@ "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.", + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/features/{feature}/default-model": { + "put": { + "description": "Sets or replaces the default model for a feature in the workspace.", "tags": [ - "fleet auth" + "features" ], - "summary": "Get an authorization session", + "summary": "Set default model for a feature", "parameters": [ { - "description": "Authorization session ID", - "name": "session_id", + "description": "Feature name", + "name": "feature", "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" - } } ], "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,37 +29429,32 @@ "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 - } - }, - "/v1/deepagents/mcp-servers": { - "get": { "security": [ { "API Key": [] @@ -28863,51 +29466,45 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.UpsertDefaultModelRequest" + } + } + } + } + }, + "delete": { + "description": "Removes the default model for a feature in the workspace.", "tags": [ - "fleet mcp" + "features" ], - "summary": "List MCP servers", + "summary": "Delete default model for a feature", "parameters": [ { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", + "description": "Feature name", + "name": "feature", + "in": "path", + "required": true, "schema": { "type": "string" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } + "204": { + "description": "No Content" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28917,7 +29514,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28927,25 +29524,12 @@ "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/features.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] @@ -28957,29 +29541,37 @@ "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "x-public": true + } + }, + "/api/v1/platform/features/{feature}/disabled-models": { + "put": { + "description": "Adds a model to the disabled list for a feature in the workspace.", "tags": [ - "fleet mcp" + "features" ], - "summary": "Create MCP server", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } + "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/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28989,7 +29581,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28999,17 +29591,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -29019,37 +29601,12 @@ "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/features.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/deepagents/mcp-servers/{mcp_server_id}": { - "get": { "security": [ { "API Key": [] @@ -29061,15 +29618,39 @@ "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.DisableModelRequest" + } + } + } + } + } + }, + "/api/v1/platform/features/{feature}/disabled-models/{model}": { + "delete": { + "description": "Removes a model from the disabled list for a feature in the workspace.", "tags": [ - "fleet mcp" + "features" ], - "summary": "Get MCP server", + "summary": "Re-enable a disabled model for a feature", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Feature name", + "name": "feature", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Model name (URL-encoded)", + "name": "model", "in": "path", "required": true, "schema": { @@ -29078,22 +29659,15 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -29103,7 +29677,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -29113,17 +29687,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/features.ErrorResponse" } } } @@ -29133,25 +29697,12 @@ "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/features.ErrorResponse" } } } } }, - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] @@ -29163,32 +29714,55 @@ "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "x-public": true + } + }, + "/api/v1/platform/gateway-policies": { + "get": { + "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": "Delete MCP server", + "summary": "List gateway policies", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, + "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" } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "array", + "items": { + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + } } } } @@ -29198,27 +29772,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "404": { - "description": "Not Found", + "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" } } } @@ -29228,99 +29792,76 @@ "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 - }, - "patch": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "x-public": true + }, + "post": { + "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" - ], - "summary": "Update MCP server", - "parameters": [ - { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "gateway-policies" ], + "summary": "Create a gateway policy", + "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/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" } } } }, - "404": { - "description": "Not Found", + "409": { + "description": "policy name conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29330,81 +29871,78 @@ "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" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/deepagents/mcp-servers/{mcp_server_id}/oauth-provider": { - "post": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "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.", - "tags": [ - "fleet mcp" - ], - "summary": "Register per-user MCP OAuth provider", - "parameters": [ + "x-codeSamples": [ { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, - "schema": { - "type": "string" + "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": { + "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": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" + "type": "array", + "items": { + "$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" } } } @@ -29414,27 +29952,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "404": { - "description": "Not Found", + "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" } } } @@ -29444,89 +29972,49 @@ "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" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, "requestBody": { - "required": false, + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload" + "$ref": "#/components/schemas/gateway_policies.SearchGatewayPoliciesRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/deepagents/mcp/tools": { + "/api/v1/platform/gateway-policies/{id}": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant 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": "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": "List MCP tools", + "summary": "Get a gateway policy", "parameters": [ { - "description": "MCP server URL to fetch tools from", - "name": "url", - "in": "query", + "description": "Policy ID", + "name": "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" + "format": "uuid", + "type": "string" } } ], @@ -29536,17 +30024,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ListToolsResponse" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29556,152 +30044,80 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$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/mcptools.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "404": { - "description": "Not Found", + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/agents": { - "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "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.", + "x-public": true + }, + "delete": { + "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": [ - "agents" + "gateway-policies" ], - "summary": "List agents", + "summary": "Delete a gateway policy", "parameters": [ { - "description": "Items per page (1-100). 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": "Case-insensitive substring filter on the agent name.", - "name": "name", - "in": "query", - "schema": { - "type": "string", - "title": "Name" - } - }, - { - "description": "Scope of agents to return. `user` (default) returns owned + directly-shared. `tenant` returns workspace-shared only.", - "name": "audience", - "in": "query", - "schema": { - "default": "user", - "type": "string", - "enum": [ - "user", - "tenant" - ], - "title": "Audience" - } - }, - { - "description": "Field to sort by.", - "name": "sort_by", - "in": "query", - "schema": { - "default": "updated_at", - "type": "string", - "enum": [ - "created_at", - "updated_at", - "name" - ], - "title": "Sort By" - } - }, - { - "description": "Sort direction.", - "name": "sort_order", - "in": "query", + "description": "Policy ID", + "name": "id", + "in": "path", + "required": true, "schema": { - "default": "desc", - "type": "string", - "enum": [ - "asc", - "desc" - ], - "title": "Sort Order" + "format": "uuid", + "type": "string" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ListAgentsResponse" - } - } - } + "204": { + "description": "No Content" }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29711,213 +30127,213 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", + "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "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```", + "x-public": true + }, + "patch": { + "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": [ - "agents" + "gateway-policies" ], - "summary": "Create an agent", + "summary": "Update a gateway policy", "parameters": [ { - "description": "Echo the agent's file tree in the response", - "name": "include_files", - "in": "query", + "description": "Policy ID", + "name": "id", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "title": "Include Files" + "format": "uuid", + "type": "string" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "403": { + "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "matcher edit collides with another policy in the same family", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Bearer Auth": [] + } + ], + "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/agents.CreateAgentRequest" + "$ref": "#/components/schemas/gateway_policies.UpdateGatewayPolicyRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/agents/{agent_id}": { + "/api/v1/platform/hub/repos/{owner}/{repo}/directories": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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": "Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.", "tags": [ - "agents" + "directories" ], - "summary": "Get an agent", + "summary": "Get directory contents", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, { - "description": "Include the raw file map in the response", - "name": "include_files", + "description": "Commit hash/tag to resolve (defaults to latest)", + "name": "commit", "in": "query", "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string", + "title": "Commit" } } ], @@ -29927,7 +30343,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/directory.GetDirectoryResponse" } } } @@ -29937,7 +30353,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29947,7 +30363,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29957,7 +30373,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29967,7 +30383,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -29977,35 +30393,12 @@ "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/directory.errorResponse" } } } } }, - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] @@ -30017,20 +30410,44 @@ "Bearer Auth": [] } ], - "description": "Deletes the agent and all of its associated state. The call is\nidempotent — deleting a non-existent agent returns 204.", + "x-public": true + }, + "delete": { + "description": "Deletes an agent or skill repository and its owned child file repositories.", "tags": [ - "agents" + "directories" ], - "summary": "Delete an agent", + "summary": "Delete directory repository", "parameters": [ { - "description": "Agent ID", - "name": "agent_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": "Repository type to delete; a different type is treated as not found", + "name": "repo_type", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "enum": [ + "agent", + "skill" + ], + "title": "Repo Type" } } ], @@ -30043,7 +30460,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -30053,7 +30470,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -30063,45 +30480,32 @@ "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/directory.errorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } } }, - "x-hidden": true - }, - "patch": { "security": [ { "API Key": [] @@ -30113,29 +30517,33 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { + "post": { + "description": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations. Linked directories default to the LATEST selector; use COMMIT to pin one commit. The legacy commit_id write field is deprecated and resolves as LATEST.", "tags": [ - "agents" + "directories" ], - "summary": "Update an agent", + "summary": "Create directory commit", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { - "description": "Echo the agent's file tree in the response", - "name": "include_files", - "in": "query", + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string" } } ], @@ -30145,7 +30553,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/directory.CommitResponse" } } } @@ -30155,7 +30563,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -30165,7 +30583,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -30175,17 +30593,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } @@ -30195,27 +30613,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directory.errorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.UpdateAgentRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/agents/{agent_id}/clone": { - "post": { "security": [ { "API Key": [] @@ -30227,139 +30630,252 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/directory.CreateDirectoryCommitRequest" + } + } + } + } + } + }, + "/api/v1/platform/issues": { + "get": { + "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": "Clone an agent", + "summary": "[Beta] List issues", "parameters": [ { - "description": "Source agent ID", - "name": "agent_id", - "in": "path", - "required": true, + "description": "Filter by session ID (UUID)", + "name": "session_id", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "title": "Session Id" } }, { - "description": "Echo the new agent's file tree in the response", - "name": "include_files", + "description": "Filter by session name (exact match)", + "name": "session_name", "in": "query", "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string", + "title": "Session Name" } - } - ], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.Agent" - } - } + }, + { + "description": "Filter by status", + "name": "status", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "open", + "fixing", + "watching", + "completed", + "ignored" + ], + "title": "Status" } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } + { + "description": "Filter by severity", + "name": "severity", + "in": "query", + "schema": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3 + ], + "title": "Severity" } }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } + { + "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" } }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { + { + "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": { + "format": "uuid", + "type": "string", + "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": "Sort field", + "name": "sort_by", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "default", + "created_at", + "updated_at", + "last_seen", + "last_updated", + "trace_count", + "severity" + ], + "title": "Sort By" + } + }, + { + "description": "Group results by issue lifecycle status before applying sort_by", + "name": "status_first", + "in": "query", + "schema": { + "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": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "string" } } - } - }, - "404": { - "description": "Not Found", + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/issues.Issue" + } } } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } } }, - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CloneAgentRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/agents/{agent_id}/connections": { - "get": { "security": [ { "API Key": [] @@ -30371,29 +30887,36 @@ "Bearer Auth": [] } ], - "description": "Lists the OAuth connections for an agent.", + "x-public": true + } + }, + "/api/v1/platform/issues-agent": { + "get": { + "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": "List an agent's connections", - "parameters": [ - { - "description": "Agent ID", - "name": "agent_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "issues-agent" ], + "summary": "[Beta] List issues agent configs", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ListConnectionsResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/agent.IssuesAgent" + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -30403,35 +30926,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] @@ -30443,29 +30963,44 @@ "Bearer Auth": [] } ], - "description": "Associates an existing auth token with an agent so the agent can act with that token.", + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/issues/{id}": { + "get": { + "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": "Create a connection for 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" } + }, + { + "description": "Include current Linear workflow state and validated linked GitHub pull request URLs", + "name": "include_linear_context", + "in": "query", + "schema": { + "type": "boolean", + "title": "Include Linear Context" + } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Connection" + "$ref": "#/components/schemas/issues.Issue" } } } @@ -30475,7 +31010,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -30485,57 +31020,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CreateConnectionRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/agents/{agent_id}/connections/{connection_id}": { - "delete": { "security": [ { "API Key": [] @@ -30547,24 +31067,20 @@ "Bearer Auth": [] } ], - "description": "Removes a single connection from an agent. The underlying token is not revoked.", + "x-public": true + } + }, + "/api/v1/platform/issues/{id}/views": { + "post": { + "description": "**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.", "tags": [ - "agents" + "issues" ], - "summary": "Remove an agent's connection", + "summary": "[Beta] Mark issue viewed", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Connection Id", - "name": "connection_id", + "description": "Issue ID (UUID)", + "name": "id", "in": "path", "required": true, "schema": { @@ -30576,12 +31092,32 @@ "204": { "description": "No Content" }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/issues.ErrorResponse" + } + } + } + }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -30591,27 +31127,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/agents/{agent_id}/health": { - "get": { "security": [ { "API Key": [] @@ -30623,30 +31154,23 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors": { + "get": { + "description": "Returns the catalog of available MCP vendors.", "tags": [ - "agents" - ], - "summary": "Check agent MCP-server health", - "parameters": [ - { - "description": "Agent ID", - "name": "agent_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } + "mcp_vendors" ], + "summary": "List MCP vendors", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.HealthResponse" + "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" } } } @@ -30656,37 +31180,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/auth-providers": { - "get": { "security": [ { "API Key": [] @@ -30698,40 +31207,70 @@ "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.", + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}": { + "get": { + "description": "Returns vendor metadata and current settings.", "tags": [ - "fleet auth" + "mcp_vendors" + ], + "summary": "Get MCP vendor", + "parameters": [ + { + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "List OAuth providers", "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.GetMcpVendorResponse" + } + } + } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] @@ -30743,88 +31282,74 @@ "Bearer Auth": [] } ], - "description": "Registers an OAuth provider configuration for your organization. End users can then start authorization sessions against this provider.", + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}/account": { + "get": { + "description": "Resolves OAuth token and returns the vendor's account info.", "tags": [ - "fleet auth" + "mcp_vendors" + ], + "summary": "Get vendor account", + "parameters": [ + { + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Register an OAuth provider", "responses": { - "201": { - "description": "Created" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/fleet/auth-providers/discover": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Auto-discovers an OAuth provider's metadata from an MCP server URL and registers it for your organization in one step.", - "tags": [ - "fleet auth" - ], - "summary": "Discover and register an OAuth provider", - "responses": { - "201": { - "description": "Created" }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30834,18 +31359,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/fleet/auth-providers/{provider_id}": { - "get": { "security": [ { "API Key": [] @@ -30857,32 +31376,82 @@ "Bearer Auth": [] } ], - "description": "Returns a single OAuth provider by ID.", + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}/mcp-servers": { + "get": { + "description": "Returns the MCP gateways from the vendor for the workspace's configured org/project.", "tags": [ - "fleet auth" + "mcp_vendors" ], - "summary": "Get an OAuth provider", + "summary": "List MCP servers for a vendor", "parameters": [ { - "description": "Provider ID", - "name": "provider_id", + "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" + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ListMcpGatewaysResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30892,7 +31461,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30902,15 +31471,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] @@ -30922,15 +31488,20 @@ "Bearer Auth": [] } ], - "description": "Deletes an OAuth provider. Tokens previously issued for this provider are revoked.", + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}/settings": { + "get": { + "description": "Returns the current vendor-specific settings.", "tags": [ - "fleet auth" + "mcp_vendors" ], - "summary": "Delete an OAuth provider", + "summary": "Get vendor settings", "parameters": [ { - "description": "Provider ID", - "name": "provider_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { @@ -30939,43 +31510,47 @@ } ], "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/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { "security": [ { "API Key": [] @@ -30987,15 +31562,18 @@ "Bearer Auth": [] } ], - "description": "Updates an OAuth provider's configuration. Sent fields replace the stored values; absent fields are left unchanged.", + "x-public": true + }, + "put": { + "description": "Replaces vendor settings.", "tags": [ - "fleet auth" + "mcp_vendors" ], - "summary": "Update an OAuth provider", + "summary": "Replace vendor settings", "parameters": [ { - "description": "Provider ID", - "name": "provider_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { @@ -31005,14 +31583,21 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -31022,37 +31607,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/auth-scopes/{scope_slug}/credentials": { - "post": { "security": [ { "API Key": [] @@ -31064,15 +31644,28 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" + } + } + } + } + }, + "post": { + "description": "Initializes vendor settings.", "tags": [ - "fleet credentials" + "mcp_vendors" ], - "summary": "Create a credential under an auth scope", + "summary": "Create vendor settings", "parameters": [ { - "description": "Auth scope slug (currently only \\", - "name": "scope_slug", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { @@ -31086,7 +31679,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.response" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" } } } @@ -31096,7 +31689,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -31106,111 +31699,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/auth-sessions": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant 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.", - "tags": [ - "fleet auth" - ], - "summary": "Start an authorization session", - "parameters": [], - "responses": { - "200": { - "description": "Existing token reused; no new session created.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" - } - } - } - }, - "201": { - "description": "New pending session created; visit verification_url to complete.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.CreateSessionRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/auth-sessions/{session_id}": { - "get": { "security": [ { "API Key": [] @@ -31222,29 +31746,33 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" + } + } + } + } + }, + "delete": { + "description": "Removes vendor settings.", "tags": [ - "fleet auth" + "mcp_vendors" ], - "summary": "Get an authorization session", + "summary": "Delete vendor settings", "parameters": [ { - "description": "Authorization session ID", - "name": "session_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "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" - } } ], "responses": { @@ -31253,17 +31781,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.GetSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" } } } @@ -31273,37 +31791,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/auth-tokens": { - "get": { "security": [ { "API Key": [] @@ -31315,46 +31828,42 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}/tools": { + "get": { + "description": "Returns the tool catalog for this vendor.", "tags": [ - "fleet auth" + "mcp_vendors" ], - "summary": "List your connection tokens", + "summary": "List tools for a vendor", "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", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "title": "Is Default" + "type": "string" } }, { - "description": "Items per page (1-100, default 20). Currently advisory; all matching tokens are returned.", - "name": "page_size", + "description": "Max tools to return (default 50)", + "name": "limit", "in": "query", "schema": { "type": "integer", - "title": "Page Size" + "title": "Limit" } }, { - "description": "Opaque pagination cursor. Currently accepted but ignored.", - "name": "cursor", + "description": "Number of tools to skip (default 0)", + "name": "offset", "in": "query", "schema": { - "type": "string", - "title": "Cursor" + "type": "integer", + "title": "Offset" } } ], @@ -31364,47 +31873,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.ListTokensResponse" + "$ref": "#/components/schemas/mcp_vendors.ListVendorToolsResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/auth-tokens/{token_id}": { - "delete": { "security": [ { "API Key": [] @@ -31416,60 +31920,41 @@ "Bearer Auth": [] } ], - "description": "Revokes a single connection token by ID. The user is disconnected from the corresponding service.", + "x-public": true + } + }, + "/api/v1/platform/oauth/authorized-apps": { + "get": { + "description": "Lists the third-party applications the authenticated user has authorized to sign in with LangSmith.", "tags": [ - "fleet auth" - ], - "summary": "Revoke a connection token", - "parameters": [ - { - "description": "Token ID", - "name": "token_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "List authorized applications", "responses": { - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } - } - } - }, - "404": { - "description": "Not Found", + "200": { + "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" } } } } }, - "x-hidden": true - }, - "patch": { "security": [ { "API Key": [] @@ -31481,15 +31966,21 @@ "Bearer Auth": [] } ], - "description": "Updates a token's metadata such as label or default flag.", + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/oauth/authorized-apps/{clientID}": { + "delete": { + "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": "Update a connection token", + "summary": "Revoke an authorized application", "parameters": [ { - "description": "Token ID", - "name": "token_id", + "description": "OAuth client ID", + "name": "clientID", "in": "path", "required": true, "schema": { @@ -31498,25 +31989,15 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } - } - } + "204": { + "description": "No Content" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -31526,27 +32007,12 @@ "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 - } - }, - "/v1/fleet/integrations": { - "get": { "security": [ { "API Key": [] @@ -31558,85 +32024,28 @@ "Bearer Auth": [] } ], - "description": "Returns integrations available to the workspace.", + "x-public": true + } + }, + "/api/v1/platform/oauth/clients": { + "get": { + "description": "Lists the OAuth clients owned by the caller's organization.", "tags": [ - "fleet integrations" - ], - "summary": "List integrations", - "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", - "schema": { - "type": "string", - "title": "Cursor" - } - } + "oauth" ], + "summary": "List OAuth clients", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ListResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/oauth.OAuthClientListResponse" } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] @@ -31648,11 +32057,15 @@ "Bearer Auth": [] } ], - "description": "Registers a new custom integration. Type is forced to CUSTOM.", + "x-public": true, + "parameters": [] + }, + "post": { + "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 integrations" + "oauth" ], - "summary": "Create a custom integration", + "summary": "Create an OAuth client", "parameters": [], "responses": { "201": { @@ -31660,7 +32073,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } @@ -31670,17 +32083,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } @@ -31690,27 +32093,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.CreateRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/integrations/{id}": { - "get": { "security": [ { "API Key": [] @@ -31722,13 +32110,28 @@ "Bearer Auth": [] } ], + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.CreateOAuthClientRequest" + } + } + } + } + } + }, + "/api/v1/platform/oauth/clients/{id}": { + "get": { "tags": [ - "fleet integrations" + "oauth" ], - "summary": "Get an integration", + "summary": "Get an OAuth client", "parameters": [ { - "description": "Integration id", + "description": "Client UUID", "name": "id", "in": "path", "required": true, @@ -31743,27 +32146,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/oauth.OAuthClientView" } } } @@ -31773,15 +32156,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] @@ -31793,14 +32173,16 @@ "Bearer Auth": [] } ], - "description": "Idempotent. Returns 204 whether or not the integration existed.", + "x-public": true + }, + "delete": { "tags": [ - "fleet integrations" + "oauth" ], - "summary": "Delete a custom integration", + "summary": "Delete an OAuth client", "parameters": [ { - "description": "Integration id", + "description": "Client UUID", "name": "id", "in": "path", "required": true, @@ -31813,30 +32195,17 @@ "204": { "description": "No Content" }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "x-hidden": true - }, - "patch": { "security": [ { "API Key": [] @@ -31848,14 +32217,16 @@ "Bearer Auth": [] } ], - "description": "Updates mutable fields. URL is immutable.", + "x-public": true + }, + "patch": { "tags": [ - "fleet integrations" + "oauth" ], - "summary": "Update a custom integration", + "summary": "Update an OAuth client", "parameters": [ { - "description": "Integration id", + "description": "Client UUID", "name": "id", "in": "path", "required": true, @@ -31870,7 +32241,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientView" } } } @@ -31880,27 +32251,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } @@ -31910,27 +32261,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.UpdateRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/integrations/{id}/auth-methods": { - "put": { "security": [ { "API Key": [] @@ -31942,14 +32278,29 @@ "Bearer Auth": [] } ], - "description": "Replaces the integration's full list of supported auth methods.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.UpdateOAuthClientRequest" + } + } + } + } + } + }, + "/api/v1/platform/oauth/clients/{id}/rotate-secret": { + "post": { + "description": "Generates a new client secret for a confidential client, invalidating the previous one. The new secret is shown only once.", "tags": [ - "fleet integrations" + "oauth" ], - "summary": "Replace integration auth methods", + "summary": "Rotate an OAuth client secret", "parameters": [ { - "description": "Integration id", + "description": "Client UUID", "name": "id", "in": "path", "required": true, @@ -31964,7 +32315,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } @@ -31974,27 +32325,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } @@ -32004,27 +32335,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ReplaceAuthMethodsRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/mcp-servers": { - "get": { "security": [ { "API Key": [] @@ -32036,51 +32352,40 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/ops/backfills/restart": { + "post": { + "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 mcp" - ], - "summary": "List MCP servers", - "parameters": [ - { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", - "schema": { - "type": "string" - } - } + "backfills" ], + "summary": "Restart a backfill job", + "parameters": [], "responses": { "200": { - "description": "OK", + "description": "Backfill restarted", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "type": "object", + "additionalProperties": { + "type": "string" } } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -32090,79 +32395,79 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Backfill not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/backfills.restartBackfillRequest" + } + } + } + } + } + }, + "/api/v1/platform/orgs/current/access-policies": { + "get": { + "description": "Lists all access policies for the organization.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Create MCP server", - "parameters": [], + "summary": "List access policies", "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "List of access policies", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/authz_internal.ListAccessPoliciesResponse" } } } @@ -32172,179 +32477,160 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "409": { - "description": "Conflict", - "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" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/mcp-servers/{mcp_server_id}": { - "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "x-public": true, + "parameters": [] + }, + "post": { + "description": "Creates a new access policy.", "tags": [ - "fleet mcp" - ], - "summary": "Get MCP server", - "parameters": [ - { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "access_policies" ], + "summary": "Create an access policy", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Access policy created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/authz_internal.AccessPolicyCreateResponse" } } } }, "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" } } } }, - "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": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "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": { + "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": "Delete MCP server", + "summary": "Attach access policies to a role", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Role ID", + "name": "role_id", "in": "path", "required": true, "schema": { @@ -32354,92 +32640,104 @@ ], "responses": { "204": { - "description": "No Content" + "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" } } } }, - "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 - }, - "patch": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" + } + } + } + } + } + }, + "/api/v1/platform/orgs/current/access-policies/{access_policy_id}": { + "get": { + "description": "Gets a specific access policy by ID.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Update MCP server", + "summary": "Get an access policy", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Access Policy ID", + "name": "access_policy_id", "in": "path", "required": true, "schema": { @@ -32449,31 +32747,21 @@ ], "responses": { "200": { - "description": "OK", + "description": "Access policy details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/authz_internal.AccessPolicy" } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -32483,77 +32771,65 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "Access policy not found", "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" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/mcp-servers/{mcp_server_id}/oauth-provider": { - "post": { "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.", + "x-public": true + }, + "delete": { + "description": "Deletes a specific access policy by ID.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "Delete an access policy", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Access Policy ID", + "name": "access_policy_id", "in": "path", "required": true, "schema": { @@ -32562,421 +32838,480 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" - } - } - } + "204": { + "description": "Access policy deleted successfully" }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "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" } } } } }, - "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": { "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.", + "x-public": true + }, + "patch": { + "description": "Updates one or more fields on an access policy.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "List MCP tools", + "summary": "Update an access policy", "parameters": [ { - "description": "MCP server URL to fetch tools from", - "name": "url", - "in": "query", + "description": "Access Policy ID", + "name": "access_policy_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", + "description": "Updated access policy", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ListToolsResponse" + "$ref": "#/components/schemas/authz_internal.AccessPolicy" } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "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/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/models": { - "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns models available for Fleet agent configuration.", - "tags": [ - "fleet" - ], - "summary": "List Fleet models", - "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", - "schema": { - "type": "boolean", - "title": "Include Oss Models" + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.UpdateAccessPolicyPayload" + } } } + } + } + }, + "/api/v1/platform/orgs/current/info": { + "get": { + "description": "Returns organization info for the authenticated user's current organization.", + "tags": [ + "Organizations" ], + "summary": "Get current organization info", "responses": { "200": { - "description": "OK", + "description": "Organization info", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ListModelsResponse" + "$ref": "#/components/schemas/orgs.OrganizationInfo" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Invalid organization ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/skills": { - "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns the skills in the caller's workspace, paginated.", + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/orgs/current/members": { + "get": { + "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", "tags": [ - "skills" + "orgs" ], - "summary": "List skills", + "summary": "List org members with workspace roles", "parameters": [ { - "description": "Items per page (default 20, max 100)", - "name": "page_size", + "description": "Page size (default 50, max 500)", + "name": "limit", "in": "query", "schema": { "type": "integer", - "title": "Page Size" + "title": "Limit" } }, { - "description": "Opaque pagination cursor", - "name": "cursor", + "description": "Page offset (default 0)", + "name": "offset", "in": "query", "schema": { - "type": "string", - "title": "Cursor" + "type": "integer", + "title": "Offset" } }, { - "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", + "description": "Filter: true = only active members; false = only pending members", + "name": "active_is", "in": "query", "schema": { "type": "boolean", - "title": "Include Files" + "title": "Active Is" } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { + }, + { + "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": "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": { - "$ref": "#/components/schemas/skills.ListSkillsResponse" + "type": "string" } } - } - }, - "400": { - "description": "Bad Request", + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.OrgMemberEnriched" + } } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "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.", + "x-public": true + } + }, + "/api/v1/platform/orgs/current/roles/{role_id}/access-policies": { + "post": { + "description": "Attaches one or more access policies to a specific role. The request body must contain an array of access policy IDs.", "tags": [ - "skills" + "access_policies" ], - "summary": "Create a skill", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.Skill" - } - } + "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/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -32986,675 +33321,667 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Role or access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "422": { - "description": "Unprocessable Entity", + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.CreateSkillRequest" + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/skills/{skillID}": { - "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns the specified skill, including its full file tree.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" + } + } + } + } + }, + "delete": { + "description": "Detaches one or more access policies from a specific role.", "tags": [ - "skills" + "access_policies" ], - "summary": "Get a skill", + "summary": "Detach access policies from a role", "parameters": [ { - "description": "Skill ID", - "name": "skillID", + "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", + "204": { + "description": "Access policies detached successfully" + }, + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Role not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes the skill and all of its files. Idempotent: deleting an\nalready-deleted skill returns 204.", + "x-public": true + } + }, + "/api/v1/platform/orgs/current/scim/tokens": { + "get": { + "description": "List all SCIM bearer tokens for the current organization. The full token values are not returned.", "tags": [ - "skills" - ], - "summary": "Delete a skill", - "parameters": [ - { - "description": "Skill ID", - "name": "skillID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "SCIM Tokens" ], + "summary": "List SCIM tokens", "responses": { - "204": { - "description": "No Content" + "200": { + "description": "List of SCIM tokens", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/scim.ScimTokenResponse" + } + } + } + } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "Forbidden - requires OrganizationRead permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.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/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "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.", + "x-public": true, + "parameters": [] + }, + "post": { + "description": "Create a new SCIM bearer token for the current organization. The full token value is only returned once upon creation.", "tags": [ - "skills" - ], - "summary": "Update a skill", - "parameters": [ - { - "description": "Skill ID", - "name": "skillID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "SCIM Tokens" ], + "summary": "Create a SCIM token", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created SCIM token with full token value", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/scim.ScimTokenSensitiveResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.UpdateSkillRequest" + "$ref": "#/components/schemas/scim.CreateScimTokenPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/threads": { + "/api/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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": "Retrieve a specific SCIM token by ID for the current organization. The full token value is not returned.", "tags": [ - "fleet threads" + "SCIM Tokens" ], - "summary": "List threads for an agent", + "summary": "Get a SCIM token", "parameters": [ { - "description": "Agent UUID. Required.", - "name": "agent_id", - "in": "query", + "description": "SCIM Token ID", + "name": "scim_token_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" } } ], "responses": { "200": { - "description": "OK", + "description": "SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ListThreadsResponse" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden - requires OrganizationRead permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "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/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "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`.", + "x-public": true + }, + "delete": { + "description": "Delete a SCIM bearer token from the current organization.", "tags": [ - "fleet threads" + "SCIM Tokens" + ], + "summary": "Delete a SCIM token", + "parameters": [ + { + "description": "SCIM Token ID", + "name": "scim_token_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create a thread", - "parameters": [], "responses": { - "201": { - "description": "Created", + "204": { + "description": "No content - token deleted successfully" + }, + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.Thread" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CreateThreadRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/bulk-modify": { - "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "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.", + "x-public": true + }, + "patch": { + "description": "Update the description of an existing SCIM token for the current organization.", "tags": [ - "fleet threads" + "SCIM Tokens" + ], + "summary": "Update a SCIM token", + "parameters": [ + { + "description": "SCIM Token ID", + "name": "scim_token_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Bulk update threads", - "parameters": [], "responses": { "200": { - "description": "OK", + "description": "Updated SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsResponse" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsRequest" + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" + } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/count": { - "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" + } + } + } + } + } + }, + "/api/v1/platform/sessions/{sessionID}/agent-versions": { + "get": { + "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", "tags": [ - "internal" + "sessions" ], - "summary": "Inbox attention count", + "summary": "List agent versions for a project", "parameters": [ { - "description": "Optional agent UUID to scope all buckets to a single agent", - "name": "agent_id", - "in": "query", + "description": "Tracing project (session) UUID", + "name": "sessionID", + "in": "path", + "required": true, "schema": { - "type": "string", - "format": "uuid", - "title": "Agent Id" + "type": "string" } } ], "responses": { "200": { - "description": "OK", + "description": "Agent versions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.CountResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" + } } } } }, "400": { - "description": "Bad Request", + "description": "Invalid session ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -33664,37 +33991,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/runs": { - "post": { "security": [ { "API Key": [] @@ -33706,29 +34011,34 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/sessions/{session_id}/issues-agent": { + "get": { + "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": [ - "fleet threads" + "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 thread and start a run", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "object" - } - } - } - }, - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "type": "object" + "$ref": "#/components/schemas/agent.IssuesAgent" } } } @@ -33738,7 +34048,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33748,7 +34058,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33758,7 +34068,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33768,57 +34078,22 @@ "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/agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CreateThreadAndRunRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/search": { - "post": { "security": [ { "API Key": [] @@ -33830,21 +34105,32 @@ "Bearer Auth": [] } ], - "description": "Searches threads. Request and response bodies are proxied unchanged to the upstream agent runtime.", + "x-public": true + }, + "post": { + "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": [ - "fleet threads" + "issues-agent" + ], + "summary": "[Beta] Create the issues agent for a session", + "parameters": [ + { + "description": "Tracer session ID (UUID)", + "name": "session_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Search threads", "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object" - } + "$ref": "#/components/schemas/agent.IssuesAgent" } } } @@ -33854,7 +34140,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33864,7 +34150,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33874,38 +34160,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}": { - "get": { "security": [ { "API Key": [] @@ -33917,15 +34197,28 @@ "Bearer Auth": [] } ], - "description": "Returns thread metadata, status, and runtime state for the given thread id.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.CreateIssuesAgentRequest" + } + } + } + } + }, + "delete": { + "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": [ - "fleet threads" + "issues-agent" ], - "summary": "Get thread", + "summary": "[Beta] Delete the issues agent for a session", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -33934,12 +34227,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/agent.ErrorResponse" } } } @@ -33949,7 +34245,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33959,7 +34255,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -33969,25 +34265,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] @@ -33999,15 +34292,18 @@ "Bearer Auth": [] } ], - "description": "Deletes a thread and all of its runs. Idempotent: deleting a thread that does not exist returns 204.", + "x-public": true + }, + "patch": { + "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": [ - "fleet threads" + "issues-agent" ], - "summary": "Delete thread", + "summary": "[Beta] Update the issues agent config for a session", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -34016,15 +34312,22 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.IssuesAgent" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -34034,7 +34337,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -34044,25 +34347,32 @@ "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 - }, - "patch": { "security": [ { "API Key": [] @@ -34074,15 +34384,30 @@ "Bearer Auth": [] } ], - "description": "Updates thread fields such as title and metadata. Omitted fields are unchanged; null values clear fields where supported.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/agent.UpdateIssuesAgentRequest" + } + } + } + } + } + }, + "/api/v1/platform/sessions/{session_id}/issues-agent/overview": { + "patch": { + "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": "Update a thread", + "summary": "[Beta] Save the agent overview for a session", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -34096,7 +34421,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadResponse" + "$ref": "#/components/schemas/agent.SaveOverviewResponse" } } } @@ -34106,7 +34431,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -34116,7 +34441,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -34126,7 +34451,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } @@ -34136,47 +34461,22 @@ "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/agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/agent.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/resolve-interrupt": { - "post": { "security": [ { "API Key": [] @@ -34188,15 +34488,39 @@ "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.", + "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": { + "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": "Resolve an interrupted thread", + "summary": "Roll an issues agent webhook signing secret", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "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": { @@ -34205,15 +34529,25 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues_agent_webhooks.IssuesAgentWebhook" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -34223,7 +34557,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -34233,7 +34570,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -34243,47 +34583,28 @@ "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" + "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" + } } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/runs": { - "post": { "security": [ { "API Key": [] @@ -34295,15 +34616,20 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/sessions/{session_id}/issues/views": { + "get": { + "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": "Create thread run", + "summary": "[Beta] List viewed issues for a session", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -34317,17 +34643,7 @@ "content": { "application/json": { "schema": { - "type": "object" - } - } - } - }, - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "type": "object" + "$ref": "#/components/schemas/issues.ListViewsResponse" } } } @@ -34337,7 +34653,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -34347,7 +34663,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/issues.ErrorResponse" } } } @@ -34357,37 +34673,22 @@ "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/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" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/runs/stream": { - "post": { "security": [ { "API Key": [] @@ -34399,29 +34700,52 @@ "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.", + "x-public": true + } + }, + "/api/v1/platform/tools": { + "get": { + "description": "Returns a paginated list of tools in the workspace.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Stream a thread run", + "summary": "List tools", "parameters": [ { - "description": "Thread ID", - "name": "thread_id", - "in": "path", - "required": true, + "description": "Maximum number of tools to return", + "name": "limit", + "in": "query", "schema": { - "type": "string" + "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": "SSE event stream", + "description": "OK", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/tools.ListToolsResponse" } } } @@ -34431,7 +34755,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34441,7 +34765,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34451,47 +34775,22 @@ "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" } } } }, - "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": { - "type": "object" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/trigger-templates": { - "get": { "security": [ { "API Key": [] @@ -34503,41 +34802,42 @@ "Bearer Auth": [] } ], - "description": "Lists trigger templates with their config schema and auth requirements (paginated).", + "x-public": true + }, + "post": { + "description": "Creates a new tool in the workspace.", "tags": [ - "fleet trigger-templates" + "tools" ], - "summary": "List trigger templates", - "parameters": [ - { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" + "summary": "Create a tool", + "parameters": [], + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.Tool" + } + } } }, - { - "description": "Opaque pagination cursor returned by a prior response", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.ErrorResponse" + } + } } - } - ], - "responses": { - "200": { - "description": "OK" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34547,27 +34847,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/trigger-templates/{template_id}": { - "get": { "security": [ { "API Key": [] @@ -34579,15 +34884,30 @@ "Bearer Auth": [] } ], - "description": "Returns a single trigger template by id.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.CreateToolPayload" + } + } + } + } + } + }, + "/api/v1/platform/tools/id/{id}": { + "get": { + "description": "Returns a tool identified by its UUID.", "tags": [ - "fleet trigger-templates" + "tools" ], - "summary": "Get trigger template", + "summary": "Get a tool by ID", "parameters": [ { - "description": "Trigger template id", - "name": "template_id", + "description": "Tool UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -34597,14 +34917,31 @@ ], "responses": { "200": { - "description": "OK" + "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/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34614,7 +34951,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34624,27 +34961,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/triggers": { - "get": { "security": [ { "API Key": [] @@ -34656,66 +34988,35 @@ "Bearer Auth": [] } ], - "description": "Lists triggers for the calling user (paginated). Filter by agent_id and/or template_id.", + "x-public": true + }, + "delete": { + "description": "Deletes a tool identified by its UUID.", "tags": [ - "fleet triggers" + "tools" ], - "summary": "List triggers", + "summary": "Delete a tool by ID", "parameters": [ { - "description": "Filter by agent id", - "name": "agent_id", - "in": "query", - "schema": { - "type": "string", - "title": "Agent Id" - } - }, - { - "description": "Filter by trigger template id", - "name": "template_id", - "in": "query", - "schema": { - "type": "string", - "title": "Template Id" - } - }, - { - "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": "Tool UUID", + "name": "id", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Cursor" + "type": "string" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.TriggerListResponse" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34725,7 +35026,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34735,25 +35036,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.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/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] @@ -34765,19 +35073,32 @@ "Bearer Auth": [] } ], - "description": "Creates a trigger for an agent and returns the created trigger instance.", + "x-public": true + }, + "patch": { + "description": "Updates an existing tool identified by its UUID.", "tags": [ - "fleet triggers" + "tools" + ], + "summary": "Update a tool by ID", + "parameters": [ + { + "description": "Tool UUID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create trigger", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -34787,7 +35108,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34797,7 +35118,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34807,47 +35128,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.CreateTriggerRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/triggers/{trigger_id}": { - "get": { "security": [ { "API Key": [] @@ -34859,15 +35165,30 @@ "Bearer Auth": [] } ], - "description": "Returns a single trigger by id for the calling user.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.UpdateToolPayload" + } + } + } + } + } + }, + "/api/v1/platform/tools/{handle}": { + "get": { + "description": "Returns a tool identified by its handle.", "tags": [ - "fleet triggers" + "tools" ], - "summary": "Get trigger", + "summary": "Get a tool by handle", "parameters": [ { - "description": "Trigger id (UUID)", - "name": "trigger_id", + "description": "Tool handle", + "name": "handle", "in": "path", "required": true, "schema": { @@ -34881,7 +35202,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -34891,7 +35212,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34901,7 +35222,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34911,7 +35232,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34921,25 +35242,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] @@ -34951,15 +35269,18 @@ "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 + }, + "delete": { + "description": "Deletes a tool identified by its handle.", "tags": [ - "fleet triggers" + "tools" ], - "summary": "Delete trigger", + "summary": "Delete a tool by handle", "parameters": [ { - "description": "Trigger id (UUID)", - "name": "trigger_id", + "description": "Tool handle", + "name": "handle", "in": "path", "required": true, "schema": { @@ -34976,7 +35297,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34986,7 +35307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34996,25 +35317,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.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/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { "security": [ { "API Key": [] @@ -35026,15 +35354,18 @@ "Bearer Auth": [] } ], - "description": "Updates a trigger by id for the calling user. agent_id is not mutable.", + "x-public": true + }, + "patch": { + "description": "Updates an existing tool identified by its handle.", "tags": [ - "fleet triggers" + "tools" ], - "summary": "Update trigger", + "summary": "Update a tool by handle", "parameters": [ { - "description": "Trigger id (UUID)", - "name": "trigger_id", + "description": "Tool handle", + "name": "handle", "in": "path", "required": true, "schema": { @@ -35048,7 +35379,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -35058,7 +35389,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -35068,7 +35399,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -35078,7 +35409,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -35088,37 +35419,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.UpdateTriggerRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/alerts/{session_id}": { - "post": { "security": [ { "API Key": [] @@ -35130,15 +35446,30 @@ "Bearer Auth": [] } ], - "description": "Creates a new alert rule. The request body must be a JSON-encoded alert rule object that follows the CreateAlertRuleRequest schema.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.UpdateToolPayload" + } + } + } + } + } + }, + "/api/v2/datasets/public/{share_token}/experiment-runs": { + "post": { + "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": [ - "alert_rules" + "datasets" ], - "summary": "Create an alert rule", + "summary": "Fetch shared experiment runs for dataset examples", "parameters": [ { - "description": "Session ID", - "name": "session_id", + "description": "Dataset share token", + "name": "share_token", "in": "path", "required": true, "schema": { @@ -35147,22 +35478,22 @@ } ], "responses": { - "201": { - "description": "Alert rule created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.AlertRuleResponse" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsResponseBody" } } } }, "400": { - "description": "Bad request", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35172,85 +35503,66 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "429": { - "description": "Alert Rule Limit Reached", + "422": { + "description": "Unprocessable Entity", "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" } } } }, - "503": { - "description": "Service unavailable", + "502": { + "description": "Bad Gateway", "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.CreateAlertRuleRequest" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsRequestBody" } } } } } }, - "/v1/platform/alerts/{session_id}/test": { + "/api/v2/datasets/{dataset_id}/experiment-runs": { "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 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": [ - "alert_rules" + "datasets" ], - "summary": "Test an alert action to determine if configuration is valid", + "summary": "Fetch experiment runs for dataset examples", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { @@ -35260,36 +35572,31 @@ ], "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/datasets.V2DatasetsExperimentRunsResponseBody" } } } }, "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" } } } @@ -35299,412 +35606,404 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "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" } } } }, - "503": { - "description": "Service unavailable", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/alerts/{session_id}/{alert_rule_id}": { - "get": { + }, "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Gets an alert rule.", - "tags": [ - "alert_rules" - ], - "summary": "Get an alert rule", - "parameters": [ - { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsRequestBody" + } } - }, + } + } + } + }, + "/api/v2/public/threads/{share_token}": { + "get": { + "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": [ + "threads" + ], + "summary": "Get a public shared thread's manifest", + "parameters": [ { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } } ], "responses": { "200": { - "description": "Alert rule", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.AlertRuleResponse" - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/threadshare.ThreadManifest" } } } }, "404": { - "description": "Not found", + "description": "share token or shared thread 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" } } } }, - "503": { - "description": "Service unavailable", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes an alert rule", + }, + "x-public": true + } + }, + "/api/v2/public/threads/{share_token}/messages": { + "get": { + "description": "Streams the thread's conversation as server-sent events. SSE only.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "alert_rules" + "threads" ], - "summary": "Delete an alert rule", + "summary": "Stream messages for a public shared thread", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", + "description": "must be text/event-stream", + "name": "Accept", + "in": "header", "required": true, "schema": { "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } + }, + { + "description": "messages page size", + "name": "page_size", + "in": "query", + "schema": { + "type": "integer", + "title": "Page Size" + } + }, + { + "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": { + "format": "uuid", + "type": "string", + "title": "Trace Id" + } } ], "responses": { "200": { - "description": "Alert rule deleted", + "description": "text/event-stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "type": "string" } } } }, "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not found", + "description": "share token or shared thread 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" } } } }, - "503": { - "description": "Service unavailable", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates an alert rule.", + }, + "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": [ - "alert_rules" + "threads" ], - "summary": "Update an alert rule", + "summary": "Get one run in a public shared thread", "parameters": [ { - "description": "Session ID", - "name": "session_id", + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } + }, + { + "description": "Run start_time coordinate (RFC3339)", + "name": "start_time", + "in": "query", + "required": true, + "schema": { + "format": "date-time", + "type": "string", + "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": { "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/query.RunResponse" } } } }, "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not found", + "description": "share token, run, or shared thread 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" } } } }, - "503": { - "description": "Service unavailable", + "501": { + "description": "Not Implemented", "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.UpdateAlertRuleRequest" - } - } - } - } + "x-public": true } }, - "/v1/platform/annotation-queues/{queue_id}/reviewers": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Assigns a single identity as a reviewer for the queue. Idempotent.", + "/api/v2/public/threads/{share_token}/stats": { + "get": { + "description": "Returns aggregate stats for the thread identified by the share token.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "annotation_queues" + "threads" ], - "summary": "Add a reviewer to an annotation queue", + "summary": "Get stats for a public shared thread", "parameters": [ { - "description": "Queue ID", - "name": "queue_id", + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } + }, + { + "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": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/annotationqueues.AddReviewerResponse" + "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" + } + }, + "text/event-stream": { + "schema": { + "type": "string" } } } @@ -35714,23 +36013,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "share token or shared thread not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35740,91 +36033,113 @@ "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" + }, + "501": { + "description": "Not Implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } } } } - } + }, + "x-public": true } }, - "/v1/platform/annotation-queues/{queue_id}/reviewers/{identity_id}": { - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Unassigns an identity as a reviewer for the queue. Idempotent.", + "/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": [ - "annotation_queues" + "threads" ], - "summary": "Remove a reviewer from an annotation queue", + "summary": "List traces in a public shared thread", "parameters": [ { - "description": "Queue ID", - "name": "queue_id", + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } }, { - "description": "Identity ID of the reviewer to remove", - "name": "identity_id", - "in": "path", + "description": "repeatable public thread trace fields to include", + "name": "selects", + "in": "query", "required": true, + "style": "form", + "explode": true, "schema": { - "type": "string" + "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": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "share token or shared thread not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35834,43 +36149,89 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "Not Implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true } }, - "/v1/platform/datasets/examples/delete": { - "post": { - "security": [ + "/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": [ + "threads" + ], + "summary": "List runs of one trace in a public shared thread", + "parameters": [ { - "API Key": [] + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } }, { - "Tenant ID": [] + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } }, { - "Bearer Auth": [] + "description": "Trace root UUID", + "name": "trace_id", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "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": "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/threads.PublicSharedThreadTraceRunsResponseBody" + } + }, + "text/event-stream": { + "schema": { + "type": "string" } } } @@ -35880,514 +36241,560 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.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/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "422": { - "description": "Unprocessable Entity", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.DeleteExamplesRequest" - } - } - } - } + "x-public": true } }, - "/v1/platform/datasets/{dataset_id}/examples": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "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.", + "/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": [ - "examples" + "runs" ], - "summary": "Upload Examples", + "summary": "Get a public shared trace run", "parameters": [ { - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "description": "Run UUID", + "name": "run_id", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "description": "Run start_time coordinate (RFC3339)", + "name": "start_time", + "in": "query", + "required": true, + "schema": { + "format": "date-time", + "type": "string", + "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": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ExamplesCreatedResponse" + "$ref": "#/components/schemas/query.RunResponse" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or malformed start_time)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token or run not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "422": { - "description": "Unprocessable Entity", + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "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" - ] + }, + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } } } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } } - ], - "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.", + }, + "x-public": true + } + }, + "/api/v2/public/{share_token}/runs/query": { + "post": { + "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": [ - "examples" + "runs" ], - "summary": "Update Examples", + "summary": "Query public shared trace runs", "parameters": [ { - "description": "Dataset ID", - "name": "dataset_id", + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "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", - "format": "uuid" + "format": "uuid", + "type": "string" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ExamplesUpdatedResponse" + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.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/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "422": { - "description": "Unprocessable Entity", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.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": { - "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/query.PublicSharedTraceRunsRequestBody" } } } } } }, - "/v1/platform/engine/trial-response": { + "/api/v2/runs/query": { "post": { - "security": [ - { - "API Key": [] - }, + "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": [ + "runs" + ], + "summary": "Query runs", + "parameters": [ { - "Organization ID": [] + "description": "application/json", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } }, { - "Bearer Auth": [] + "description": "application/json (required for JSON body)", + "name": "Content-Type", + "in": "header", + "schema": { + "type": "string" + } } ], - "description": "Records a user's response to the Engine trial ending modal.\naction must be \"acknowledge\", \"opt_out\", or \"mark_seen\".", - "tags": [ - "engine-trial" - ], - "summary": "Respond to Engine trial ending notice", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/query.QueryRunsResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (malformed JSON or invalid 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 (insufficient permission)", + "content": { + "application/json": { + "schema": { + "$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 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" } } } } }, + "security": [ + { + "API Key": [], + "Tenant ID": [] + }, + { + "Bearer Auth": [], + "Tenant ID": [] + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/engine_trial.trialResponseRequest" + "$ref": "#/components/schemas/query.QueryRunsRequestBody" } } } } } }, - "/v1/platform/evaluators": { + "/api/v2/runs/{run_id}": { "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.", + "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": [ - "evaluators" + "runs" ], - "summary": "List evaluators", + "summary": "Get a single run", "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", + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { - "type": "string", - "title": "Name Contains" + "type": "string" } }, { - "description": "Filter by tag value IDs", - "name": "tag_value_id", - "in": "query", - "style": "form", - "explode": false, + "description": "Run UUID", + "name": "run_id", + "in": "path", + "required": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Tag Value Id" + "format": "uuid", + "type": "string" } }, { - "description": "Filter by feedback key", - "name": "feedback_key", + "description": "`project_id` is the UUID of the tracing project that owns the run.", + "name": "project_id", "in": "query", + "required": true, "schema": { + "format": "uuid", "type": "string", - "title": "Feedback Key" + "title": "Project Id" } }, { - "description": "Filter by resource IDs", - "name": "resource_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": false, + "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", + "LS_USER_ID" + ], "type": "string" }, "type": "array", - "title": "Resource Id" + "title": "Selects" } }, { - "description": "Field to sort by", - "name": "sort_by", + "description": "`start_time` is the run's `start_time` (RFC3339 date-time). Providing it speeds up retrieval.", + "name": "start_time", "in": "query", "schema": { + "format": "date-time", "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", - "schema": { - "default": 0, - "type": "integer", - "title": "Offset" + "title": "Start Time" } } ], @@ -36397,174 +36804,131 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ListEvaluatorsResponse" + "$ref": "#/components/schemas/query.RunResponse" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "run or session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - }, - "post": { - "security": [ - { - "API Key": [] }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Create a new LLM or code evaluator for the current workspace.", - "tags": [ - "evaluators" - ], - "summary": "Create evaluator", - "parameters": [], - "responses": { - "201": { - "description": "Created", + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.CreateEvaluatorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "501": { + "description": "not implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.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/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.CreateEvaluatorRequest" - } - } - } - } - }, - "delete": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Delete multiple evaluators by their IDs. Returns per-item success/failure.", + "x-public": true + } + }, + "/api/v2/runs/{run_id}/share": { + "post": { + "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": [ - "evaluators" + "runs" ], - "summary": "Bulk delete evaluators", + "summary": "Share a run", "parameters": [ { - "description": "Evaluator IDs to delete", - "name": "evaluator_ids", - "in": "query", + "description": "Run UUID", + "name": "run_id", + "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" + "format": "uuid", + "type": "string" } } ], @@ -36574,7 +36938,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.BulkDeleteEvaluatorsResponse" + "$ref": "#/components/schemas/share.CreateShareTokenResponseBody" } } } @@ -36584,7 +36948,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -36594,7 +36958,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -36604,27 +36968,43 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - } - }, - "/v1/platform/evaluators/spend": { - "get": { - "security": [ + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + } + }, + "security": [ { "API Key": [] }, @@ -36635,88 +37015,64 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/share.CreateShareTokenRequestBody" + } + } + } + } + } + }, + "/api/v2/runs/{run_id}/url": { + "get": { + "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": [ - "evaluators" + "runs" ], - "summary": "Get evaluator spend", + "summary": "Get the LangSmith UI URL for a run", "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, + "description": "Run UUID", + "name": "run_id", + "in": "path", + "required": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Resource Id" + "format": "uuid", + "type": "string" } }, { - "description": "Filter grouped results by evaluator type: 'llm' or 'code'. Only valid with group_by.", - "name": "type", + "description": "Project (session) UUID", + "name": "project_id", "in": "query", + "required": true, "schema": { "type": "string", - "title": "Type" + "title": "Project Id" } }, { - "description": "Filter grouped results by evaluator feedback key. Only valid with group_by.", - "name": "feedback_key", + "description": "Trace UUID", + "name": "trace_id", "in": "query", + "required": true, "schema": { "type": "string", - "title": "Feedback Key" + "title": "Trace Id" } }, { - "description": "Start of the 7-day window (YYYY-MM-DD).", - "name": "period_start", + "description": "Run start time in RFC3339 format; omit if unknown", + "name": "start_time", "in": "query", - "required": true, "schema": { "type": "string", - "title": "Period Start" + "title": "Start Time" } } ], @@ -36726,110 +37082,94 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.GetEvaluatorSpendResponse" + "$ref": "#/components/schemas/query.RunURLResponse" } } } }, "400": { - "description": "Bad Request", + "description": "missing or invalid query parameters", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", + "description": "project not found or does not belong to this workspace", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/evaluators/{evaluator_id}": { - "get": { + }, "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Retrieve a single evaluator by its ID.", + "x-public": true + } + }, + "/api/v2/runs/{trace_id}/share": { + "delete": { + "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": [ - "evaluators" + "runs" ], - "summary": "Get evaluator", + "summary": "Unshare a run", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Trace root UUID", + "name": "trace_id", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.Evaluator" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -36839,7 +37179,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -36849,17 +37189,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -36869,14 +37209,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "delete": { + }, "security": [ { "API Key": [] @@ -36888,51 +37226,155 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/share.DeleteShareTokenRequestBody" + } + } + } + } + } + }, + "/api/v2/sandboxes/boxes": { + "get": { + "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": [ - "evaluators" + "sandboxes" ], - "summary": "Delete evaluator", + "summary": "List sandboxes", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", - "in": "path", - "required": true, + "description": "Number of results per page", + "name": "page_size", + "in": "query", "schema": { - "type": "string" + "default": 20, + "type": "integer", + "title": "Page Size" } }, { - "description": "When true, delete all run rules for this evaluator before deleting the evaluator", - "name": "delete_run_rules", + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", "in": "query", "schema": { - "type": "boolean", - "title": "Delete Run Rules" + "type": "string", + "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": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxListResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "invalid page_size, cursor, or sort_order, or a deprecated parameter combined with its replacement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36942,27 +37384,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "invalid limit or offset", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36972,14 +37404,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] @@ -36989,100 +37419,92 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Update an existing evaluator's name, LLM configuration, or code configuration.", + "x-public": true + }, + "post": { + "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": [ - "evaluators" - ], - "summary": "Update evaluator", - "parameters": [ - { - "description": "Evaluator ID", - "name": "evaluator_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "sandboxes" ], + "summary": "Create a sandbox", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.UpdateEvaluatorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, "400": { - "description": "Bad Request", + "description": "Snapshot 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" } } } }, - "404": { - "description": "Not Found", + "429": { + "description": "Quota exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Sandbox creation failed or internal error", "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" + }, + "504": { + "description": "Sandbox did not become ready in time", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } } } } - } - } - }, - "/v1/platform/features": { - "get": { + }, "security": [ { "API Key": [] @@ -37092,33 +37514,49 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns a consolidated view of default models and disabled models per feature for the workspace.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CreateSandboxPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/boxes/batch-delete": { + "post": { + "description": "Delete multiple sandboxes by name or UUID in a single request.", "tags": [ - "features" + "sandboxes" ], - "summary": "List feature configurations", + "summary": "Batch delete sandboxes", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/features.FeatureConfig" - } + "$ref": "#/components/schemas/sandboxes.BatchDeleteResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37128,7 +37566,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37138,17 +37576,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [] - } - }, - "/v1/platform/features/{feature}/default-model": { - "put": { "security": [ { "API Key": [] @@ -37160,15 +37593,30 @@ "Bearer Auth": [] } ], - "description": "Sets or replaces the default model for a feature in the workspace.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.BatchDeleteRequest" + } + } + } + } + } + }, + "/api/v2/sandboxes/boxes/{name}": { + "get": { + "description": "Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.", "tags": [ - "features" + "sandboxes" ], - "summary": "Set default model for a feature", + "summary": "Get a sandbox", "parameters": [ { - "description": "Feature name", - "name": "feature", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37177,35 +37625,22 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37215,24 +37650,12 @@ "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": { "security": [ { "API Key": [] @@ -37242,17 +37665,23 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Removes the default model for a feature in the workspace.", + "x-public": true + }, + "delete": { + "description": "Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.", "tags": [ - "features" + "sandboxes" ], - "summary": "Delete default model for a feature", + "summary": "Delete a sandbox", "parameters": [ { - "description": "Feature name", - "name": "feature", + "description": "Sandbox display name or UUID", + "name": "name", "in": "path", "required": true, "schema": { @@ -37262,24 +37691,14 @@ ], "responses": { "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" - } - } - } + "description": "No content" }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37289,16 +37708,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/features/{feature}/disabled-models": { - "put": { + }, "security": [ { "API Key": [] @@ -37308,17 +37723,23 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Adds a model to the disabled list for a feature in the workspace.", + "x-public": true + }, + "patch": { + "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": [ - "features" + "sandboxes" ], - "summary": "Disable a model for a feature", + "summary": "Update a sandbox", "parameters": [ { - "description": "Feature name", - "name": "feature", + "description": "Current sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37327,35 +37748,42 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.SandboxResponse" + } + } + } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "409": { + "description": "Name already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37365,26 +37793,12 @@ "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.DisableModelRequest" - } - } - } - } - } - }, - "/v1/platform/features/{feature}/disabled-models/{model}": { - "delete": { "security": [ { "API Key": [] @@ -37394,26 +37808,35 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Removes a model from the disabled list for a feature in the workspace.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.UpdateSandboxPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/boxes/{name}/download-url": { + "post": { + "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": [ - "features" + "sandboxes" ], - "summary": "Re-enable a disabled model for a feature", + "summary": "Generate a sandbox file download link", "parameters": [ { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Model name (URL-encoded)", - "name": "model", + "description": "Sandbox ID or name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37422,25 +37845,22 @@ } ], "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.DownloadURLResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37450,110 +37870,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/fleet-webhooks/{webhook_id}/run": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Sends the request payload to the webhook's stored URL and returns the upstream response in a JSON envelope.", - "tags": [ - "fleet_webhooks" - ], - "summary": "Run a fleet webhook", - "parameters": [ - { - "description": "Webhook UUID", - "name": "webhook_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agent_builder_webhooks.WebhookTestResult" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "400": { - "description": "invalid request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "webhook not found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "webhook request failed", + "501": { + "description": "Not Implemented", "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": { "security": [ { "API Key": [] @@ -37565,16 +37917,32 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.DownloadURLPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/boxes/{name}/service-url": { + "post": { + "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": [ - "fleet mcp" + "sandboxes" ], - "summary": "List MCP servers", + "summary": "Generate a service access token", "parameters": [ { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", + "description": "Sandbox display name", + "name": "name", + "in": "path", + "required": true, "schema": { "type": "string" } @@ -37586,10 +37954,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } + "$ref": "#/components/schemas/sandboxes.ServiceURLResponse" } } } @@ -37599,27 +37964,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37629,25 +37994,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { "security": [ { "API Key": [] @@ -37659,19 +38021,44 @@ "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ServiceURLPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/boxes/{name}/snapshot": { + "post": { + "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", "tags": [ - "fleet mcp" + "sandboxes" + ], + "summary": "Capture a snapshot from a sandbox", + "parameters": [ + { + "description": "Sandbox display name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create MCP server", - "parameters": [], "responses": { "201": { "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } @@ -37681,77 +38068,70 @@ "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" } } } }, "409": { - "description": "Conflict", + "description": "sandbox must be running for Docker image export", + "headers": { + "X-Should-Retry": { + "description": "false for deterministic state conflicts", + "schema": { + "type": "string" + } + } + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "422": { + "description": "Unprocessable Entity", "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": { "security": [ { "API Key": [] @@ -37763,15 +38143,30 @@ "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/boxes/{name}/start": { + "post": { + "description": "Start a stopped or failed sandbox. This endpoint is not idempotent.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Get MCP server", + "summary": "Start a sandbox", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37780,12 +38175,12 @@ } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } @@ -37795,17 +38190,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,7 +38200,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37825,7 +38210,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37835,25 +38220,12 @@ "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 - }, - "delete": { "security": [ { "API Key": [] @@ -37865,15 +38237,20 @@ "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "x-public": true + } + }, + "/api/v2/sandboxes/boxes/{name}/status": { + "get": { + "description": "Retrieve the lightweight status of a sandbox for polling.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Delete MCP server", + "summary": "Get sandbox status", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37882,35 +38259,12 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "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" - } - } - } - }, - "403": { - "description": "Forbidden", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.SandboxStatusResponse" } } } @@ -37920,7 +38274,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37930,25 +38284,12 @@ "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": { "security": [ { "API Key": [] @@ -37958,17 +38299,25 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "x-public": true + } + }, + "/api/v2/sandboxes/boxes/{name}/stop": { + "post": { + "description": "Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Update MCP server", + "summary": "Stop a sandbox", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37977,32 +38326,15 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } + "204": { + "description": "Sandbox stopped" }, "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/sandboxes.ErrorResponse" } } } @@ -38012,7 +38344,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38022,7 +38354,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38032,37 +38364,12 @@ "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": { "security": [ { "API Key": [] @@ -38074,19 +38381,42 @@ "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.", + "x-public": true + } + }, + "/api/v2/sandboxes/registries": { + "get": { + "description": "List sandbox registries for pulling private images.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "List registries", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", - "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" } } ], @@ -38096,7 +38426,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" + "$ref": "#/components/schemas/sandboxes.RegistryListResponse" } } } @@ -38106,27 +38436,17 @@ "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" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38136,37 +38456,12 @@ "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" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload" - } - } } }, - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/auth": { - "post": { "security": [ { "API Key": [] @@ -38178,18 +38473,22 @@ "Bearer Auth": [] } ], - "description": "Generate a GitHub OAuth link for the current user to connect their GitHub account.", + "x-public": true + }, + "post": { + "description": "Create a sandbox registry for pulling private images.", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "Get GitHub OAuth authorization link", + "summary": "Create a registry", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserAuthLinkResponse" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } @@ -38199,28 +38498,52 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "403": { + "description": "Forbidden", "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" + } + } + } + }, + "501": { + "description": "AWS IAM role authentication is not configured", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/connection": { - "get": { "security": [ { "API Key": [] @@ -38232,28 +38555,64 @@ "Bearer Auth": [] } ], - "description": "Return the current user's GitHub connection status and metadata.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CreateRegistryPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/registries/{name}": { + "get": { + "description": "Get a sandbox registry by name.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Get a registry", + "parameters": [ + { + "description": "Registry name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Get GitHub user connection status", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38263,16 +38622,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - }, - "delete": { "security": [ { "API Key": [] @@ -38284,21 +38639,45 @@ "Bearer Auth": [] } ], - "description": "Remove the current user's GitHub connection and all linked installations.", + "x-public": true + }, + "delete": { + "description": "Delete a sandbox registry by name.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Delete a registry", + "parameters": [ + { + "description": "Registry name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Delete GitHub user connection", "responses": { "204": { "description": "No Content" }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38308,16 +38687,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - }, - "patch": { "security": [ { "API Key": [] @@ -38329,19 +38704,32 @@ "Bearer Auth": [] } ], - "description": "Update the actor preference for the current user's GitHub connection.", + "x-public": true + }, + "patch": { + "description": "Update a sandbox registry's name and/or credentials.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Update a registry", + "parameters": [ + { + "description": "Registry name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Update GitHub user connection", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } @@ -38351,7 +38739,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,7 +38759,17 @@ "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" } } } @@ -38371,91 +38779,217 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "501": { + "description": "AWS IAM role authentication is not configured", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UpdateUserConnectionRequest" + "$ref": "#/components/schemas/sandboxes.UpdateRegistryPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/platform/fleet/providers/github-app/install": { - "post": { - "security": [ + "/api/v2/sandboxes/snapshots": { + "get": { + "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": [ + "sandboxes" + ], + "summary": "List snapshots", + "parameters": [ { - "API Key": [] + "description": "Number of results per page", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "title": "Page Size" + } }, { - "Tenant ID": [] + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" + } }, { - "Bearer Auth": [] + "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" + } } ], - "description": "Generate a link to install the GitHub App for the current organization.", - "tags": [ - "fleet github-app" - ], - "summary": "Get GitHub App install link", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.InstallLinkResponse" + "$ref": "#/components/schemas/sandboxes.SnapshotListResponse" } } } }, "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/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "422": { + "description": "invalid limit or offset", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "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 - } - }, - "/v1/platform/fleet/providers/github-app/installations": { - "get": { "security": [ { "API Key": [] @@ -38467,21 +39001,22 @@ "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.", + "x-public": true + }, + "post": { + "description": "Create a snapshot from a Docker image (async build).", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "List GitHub App installations", + "summary": "Create a snapshot", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } @@ -38491,7 +39026,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" } } } @@ -38501,18 +39046,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations/refresh": { - "post": { "security": [ { "API Key": [] @@ -38524,21 +39063,44 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CreateSnapshotPayload" + } + } + } + } + } + }, + "/api/v2/sandboxes/snapshots-by-name/{name}": { + "get": { + "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 github-app" + "sandboxes" + ], + "summary": "Get a snapshot name", + "parameters": [ + { + "description": "Snapshot name, without a tag", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Refresh GitHub App installations", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "$ref": "#/components/schemas/sandboxes.SnapshotNameResponse" } } } @@ -38548,7 +39110,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 +39130,22 @@ "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" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations/{id}": { - "delete": { "security": [ { "API Key": [] @@ -38591,15 +39157,20 @@ "Bearer Auth": [] } ], - "description": "Remove a GitHub App installation link for the current user.", + "x-public": true + } + }, + "/api/v2/sandboxes/snapshots/{snapshot_id}": { + "get": { + "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 github-app" + "sandboxes" ], - "summary": "Delete a GitHub App installation", + "summary": "Get a snapshot", "parameters": [ { - "description": "Installation ID", - "name": "id", + "description": "Snapshot UUID, a name:tag reference, or a bare snapshot name", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -38608,15 +39179,32 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + } + } + } }, "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,17 +39214,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations/{id}/repos": { - "get": { "security": [ { "API Key": [] @@ -38648,15 +39241,18 @@ "Bearer Auth": [] } ], - "description": "Return repositories accessible to the specified GitHub App installation.", + "x-public": true + }, + "delete": { + "description": "Delete a snapshot by ID or by a Docker-style name[:tag] reference. The underlying storage is reclaimed asynchronously.", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "List repositories for a GitHub App installation", + "summary": "Delete a snapshot", "parameters": [ { - "description": "Installation ID", - "name": "id", + "description": "Snapshot UUID, or a name[:tag] reference", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -38665,25 +39261,25 @@ } ], "responses": { - "200": { - "description": "OK", + "204": { + "description": "Snapshot deleted" + }, + "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,27 +39289,22 @@ "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 - } - }, - "/v1/platform/fleet/providers/github-app/tokens": { - "post": { "security": [ { "API Key": [] @@ -38725,305 +39316,156 @@ "Bearer Auth": [] } ], - "description": "Return a short-lived GitHub access token scoped to the given repository.", + "x-public": true + } + }, + "/api/v2/sandboxes/usage": { + "get": { + "description": "Get current sandbox resource usage and quota limits for the workspace", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "Request a GitHub access token", - "parameters": [], + "summary": "Get sandbox resource usage", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserTokenResponse" + "$ref": "#/components/schemas/sandboxes.UsageResponse" } } } }, - "400": { - "description": "Bad Request", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } - } - } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/usage/agents": { - "get": { - "security": [ - { - "API Key": [] + } + }, + "security": [ + { + "API Key": [] }, { "Tenant ID": [] }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "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.", + "x-public": true, + "parameters": [] + } + }, + "/api/v2/sandboxes/{sandbox_id}/download": { + "get": { + "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 usage" + "sandboxes" ], - "summary": "List fleet agents with usage", + "summary": "Download a sandbox file", "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", + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Start Time" + "type": "string" } }, { - "description": "End of cost window (ISO8601)", - "name": "end_time", + "description": "File path to download", + "name": "path", "in": "query", "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" + "title": "Path" } }, { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", + "description": "Byte range to return, e.g. bytes=0-1023", + "name": "Range", + "in": "header", "schema": { - "default": "desc", - "type": "string", - "title": "Sort Order" + "type": "string" } } ], "responses": { "200": { - "description": "OK", + "description": "File content", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/usage.AgentUsageResponse" + "type": "string", + "format": "binary" } } } }, - "400": { - "description": "Bad Request", + "206": { + "description": "Partial file content", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "type": "string", + "format": "binary" } } } }, - "500": { - "description": "Internal Server Error", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/usage/models": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "fleet usage" - ], - "summary": "List fleet models with usage", - "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", - "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" - } }, - { - "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", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.ModelUsageResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "416": { + "description": "Requested range not satisfiable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "type": "string" } } } } }, - "x-hidden": true - } - }, - "/v1/platform/fleet/usage/tools": { - "get": { "security": [ { "API Key": [] @@ -39035,70 +39477,62 @@ "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.", + "x-public": true + }, + "head": { + "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 usage" + "sandboxes" ], - "summary": "List fleet tools with usage", + "summary": "Download 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": "File path to download", + "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" + "title": "Path" } }, { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", + "description": "Byte range to return, e.g. bytes=0-1023", + "name": "Range", + "in": "header", "schema": { - "default": "desc", - "type": "string", - "title": "Sort Order" + "type": "string" } } ], "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/usage.ToolUsageResponse" + "type": "string", + "format": "binary" } } } @@ -39108,27 +39542,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "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" + } + } + } + }, + "416": { + "description": "Requested range not satisfiable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "type": "string" } } } } }, - "x-hidden": true - } - }, - "/v1/platform/fleet/usage/users": { - "get": { "security": [ { "API Key": [] @@ -39140,60 +39589,24 @@ "Bearer Auth": [] } ], - "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.", + "x-public": true + } + }, + "/api/v2/sandboxes/{sandbox_id}/execute": { + "post": { + "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 usage" + "sandboxes" ], - "summary": "List fleet users with usage", + "summary": "Execute a sandbox command", "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, agent_count, 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" } } ], @@ -39203,7 +39616,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.UserUsageResponse" + "$ref": "#/components/schemas/sandboxes.ExecResponse" } } } @@ -39213,70 +39626,63 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - }, - "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", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "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/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", + "422": { + "description": "Synchronous execution exceeded the request deadline", + "headers": { + "X-Should-Retry": { + "description": "false; use streaming execute for long-running commands", + "schema": { + "type": "string" + } + } + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39286,76 +39692,101 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [] - }, - "post": { "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ExecRequest" + } + } + } + } + } + }, + "/api/v2/sandboxes/{sandbox_id}/execute/stream/resume": { + "post": { + "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": [ - "gateway-policies" + "sandboxes" + ], + "summary": "Resume a streamed sandbox command", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create a gateway policy", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "SSE event stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "type": "string" } } } }, "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/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "missing or invalid auth", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "LLM Gateway not enabled for the organization, or caller lacks OrganizationManage", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "409": { - "description": "policy name conflict", + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39365,172 +39796,188 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-codeSamples": [ + "security": [ { - "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}" + "API Key": [] }, { - "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}" + "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.CreateGatewayPolicyRequest" + "$ref": "#/components/schemas/sandboxes.ExecStreamResumeRequest" } } } } } }, - "/v1/platform/gateway-policies/{id}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "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.", + "/api/v2/sandboxes/{sandbox_id}/execute/stream/start": { + "post": { + "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": [ - "gateway-policies" + "sandboxes" ], - "summary": "Get a gateway policy", + "summary": "Start a streamed sandbox command", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], "responses": { "200": { - "description": "OK", + "description": "SSE event stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "type": "string" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "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/sandboxes.ErrorResponse" } } } }, "404": { - "description": "policy not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - } - }, - "delete": { + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + } + }, "security": [ { "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ExecStreamRequest" + } + } + } + } + } + }, + "/api/v2/sandboxes/{sandbox_id}/execute/ws": { + "get": { + "description": "Open a WebSocket connection for streaming command execution inside a sandbox.", "tags": [ - "gateway-policies" + "sandboxes" ], - "summary": "Delete a gateway policy", + "summary": "Execute a sandbox command over WebSocket", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], "responses": { - "204": { - "description": "No Content" + "101": { + "description": "WebSocket upgrade" }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "policy not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39540,36 +39987,41 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] }, + { + "Tenant ID": [] + }, { "Bearer Auth": [] } ], - "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.", + "x-public": true + } + }, + "/api/v2/sandboxes/{sandbox_id}/glob": { + "post": { + "description": "Find files under a root path matching a glob pattern (supports **). Entries are returned in lexical order by path.", "tags": [ - "gateway-policies" + "sandboxes" ], - "summary": "Update a gateway policy", + "summary": "Glob a sandbox filesystem", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], @@ -39579,57 +40031,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/sandboxes.GlobResponse" } } } }, "400": { - "description": "validation failure", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "policy not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "409": { - "description": "matcher edit collides with another policy in the same family", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39639,81 +40071,52 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-codeSamples": [ + "security": [ { - "label": "spend_cap", - "lang": "json", - "source": "{\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 200},\n \"enabled\": false\n}" + "API Key": [] }, { - "label": "guard", - "lang": "json", - "source": "{\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 5},\n \"enabled\": true\n}" + "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.UpdateGatewayPolicyRequest" + "$ref": "#/components/schemas/sandboxes.GlobRequest" } } } } } }, - "/v1/platform/hub/repos/{owner}/{repo}/directories": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.", + "/api/v2/sandboxes/{sandbox_id}/grep": { + "post": { + "description": "Search files under a root path for a literal text pattern (not a regex).", "tags": [ - "directories" + "sandboxes" ], - "summary": "Get directory contents", + "summary": "Grep a sandbox filesystem", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", + "description": "Sandbox ID or name", + "name": "sandbox_id", "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": { @@ -39722,7 +40125,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.GetDirectoryResponse" + "$ref": "#/components/schemas/sandboxes.GrepResponse" } } } @@ -39732,23 +40135,7 @@ "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" } } } @@ -39758,10 +40145,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39771,10 +40155,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39784,17 +40165,12 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - }, - "delete": { + }, "security": [ { "API Key": [] @@ -39806,15 +40182,30 @@ "Bearer Auth": [] } ], - "description": "Deletes an agent or skill repository and its owned child file repositories.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.GrepRequest" + } + } + } + } + } + }, + "/api/v2/sandboxes/{sandbox_id}/tunnel": { + "get": { + "description": "Open a WebSocket tunnel to a specific port inside a sandbox.", "tags": [ - "directories" + "sandboxes" ], - "summary": "Delete directory repository", + "summary": "Open a sandbox TCP tunnel", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -39822,41 +40213,24 @@ } }, { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, + "description": "Target sandbox TCP port", + "name": "X-Sandbox-Port", + "in": "header", "schema": { - "type": "string" + "type": "integer" } } ], "responses": { - "204": { - "description": "No Content" + "101": { + "description": "WebSocket upgrade" }, "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" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39866,10 +40240,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39879,10 +40250,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39892,19 +40260,12 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { - "post": { + }, "security": [ { "API Key": [] @@ -39916,15 +40277,20 @@ "Bearer Auth": [] } ], - "description": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations.", + "x-public": true + } + }, + "/api/v2/sandboxes/{sandbox_id}/upload": { + "post": { + "description": "Upload a file to a sandbox filesystem path.", "tags": [ - "directories" + "sandboxes" ], - "summary": "Create directory commit", + "summary": "Upload a sandbox file", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -39932,12 +40298,13 @@ } }, { - "description": "Repository handle", - "name": "repo", - "in": "path", + "description": "Destination file path", + "name": "path", + "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "title": "Path" } } ], @@ -39947,7 +40314,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.CommitResponse" + "$ref": "#/components/schemas/sandboxes.UploadResponse" } } } @@ -39957,23 +40324,7 @@ "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" } } } @@ -39983,10 +40334,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -39996,23 +40344,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -40022,29 +40354,12 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/directories.CreateDirectoryCommitRequest" - } - } - } - } - } - }, - "/v1/platform/issues": { - "get": { "security": [ { "API Key": [] @@ -40056,354 +40371,310 @@ "Bearer Auth": [] } ], - "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.", + "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" + ] + } + } + } + } + } + }, + "/api/v2/threads/query": { + "post": { + "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": [ - "issues" + "threads" ], - "summary": "[Beta] List issues", + "summary": "Query Threads", "parameters": [ { - "description": "Filter by session ID (UUID)", - "name": "session_id", - "in": "query", - "schema": { - "type": "string", - "title": "Session Id" - } - }, - { - "description": "Filter by session name (exact match)", - "name": "session_name", - "in": "query", - "schema": { - "type": "string", - "title": "Session Name" - } - }, - { - "description": "Filter by status", - "name": "status", - "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" - } - }, - { - "description": "Filter by tag (exact match)", - "name": "tag", - "in": "query", - "schema": { - "type": "string", - "title": "Tag" - } - }, - { - "description": "Return only issues updated at or after this RFC3339 timestamp", - "name": "updated_at", - "in": "query", - "schema": { - "type": "string", - "title": "Updated At" - } - }, - { - "description": "Sort field", - "name": "sort_by", - "in": "query", - "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" - } - }, - { - "description": "Page offset (non-negative integer)", - "name": "offset", - "in": "query", + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", "schema": { - "type": "integer", - "title": "Offset" + "type": "string" } } ], "responses": { "200": { - "description": "OK", + "description": "items and pagination", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues.Issue" - } + "$ref": "#/components/schemas/threads.QueryThreadsResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (malformed JSON or invalid 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 project 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 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/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": [] - } - }, - "/v1/platform/issues/{id}/views": { - "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.", - "tags": [ - "issues" - ], - "summary": "[Beta] Mark issue viewed", - "parameters": [ - { - "description": "Issue ID (UUID)", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/threads.QueryThreadsRequestBody" + } } } + } + } + }, + "/api/v2/threads/stats": { + "post": { + "description": "GET with body payload — no resources created. Returns aggregate statistics for threads in a tracing project.\nThe response includes the thread counts, run counts, latency percentiles, rates, token totals, and cost totals requested in `select`.\n\nSelf-hosted deployments require LangSmith `v0.17` or later.", + "tags": [ + "threads" ], + "summary": "Query Thread Stats", + "parameters": [], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "aggregate thread statistics", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/threads.QueryThreadStatsResponseBody" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "bad request (malformed JSON or invalid parameters)", "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" } } } }, "404": { - "description": "Not Found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$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/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "SmithDB query is unavailable for this deployment", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/mcp-vendors": { - "get": { + }, "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns the catalog of available MCP vendors.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/threads.QueryThreadStatsRequestBody" + } + } + } + } + } + }, + "/api/v2/threads/{thread_id}/share": { + "get": { + "description": "Returns the share token for a thread. The token is omitted when\nthe thread is not shared. Gated on runs:share so the control's\nstate matches the control's permission.", "tags": [ - "mcp_vendors" + "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": { + "format": "uuid", + "type": "string", + "title": "Project Id" + } + } ], - "summary": "List MCP vendors", "responses": { "200": { - "description": "OK", + "description": "share_token is omitted when the thread is not shared", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" + "$ref": "#/components/schemas/threadshare.ShareTokenResponseBody" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -40413,7 +40684,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -40423,17 +40694,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "parameters": [] - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}": { - "get": { "security": [ { "API Key": [] @@ -40445,15 +40721,18 @@ "Bearer Auth": [] } ], - "description": "Returns vendor metadata and current settings.", + "x-public": true + }, + "post": { + "description": "Mints a public share token for a thread. Idempotent: sharing an\nalready-shared thread returns the existing token.", "tags": [ - "mcp_vendors" + "threads" ], - "summary": "Get MCP vendor", + "summary": "Share a thread", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, "schema": { @@ -40467,7 +40746,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.GetMcpVendorResponse" + "$ref": "#/components/schemas/threadshare.ShareTokenResponseBody" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -40477,7 +40766,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -40487,7 +40776,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -40497,16 +40786,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "Not Implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/account": { - "get": { + }, "security": [ { "API Key": [] @@ -40518,39 +40823,56 @@ "Bearer Auth": [] } ], - "description": "Resolves OAuth token and returns the vendor's account info.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/threadshare.CreateShareTokenRequestBody" + } + } + } + } + }, + "delete": { + "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": [ - "mcp_vendors" + "threads" ], - "summary": "Get vendor account", + "summary": "Unshare a thread", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Project UUID", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "format": "uuid", + "type": "string", + "title": "Project Id" + } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -40560,7 +40882,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -40570,36 +40892,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/mcp-servers": { - "get": { + }, "security": [ { "API Key": [] @@ -40611,15 +40919,20 @@ "Bearer Auth": [] } ], - "description": "Returns the MCP gateways from the vendor for the workspace's configured org/project.", + "x-public": true + } + }, + "/api/v2/threads/{thread_id}/stats": { + "get": { + "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": [ - "mcp_vendors" + "threads" ], - "summary": "List MCP servers for a vendor", + "summary": "Query Single Thread Stats", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, "schema": { @@ -40627,468 +40940,656 @@ } }, { - "description": "Max items to return (default 100)", - "name": "limit", + "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": "integer", - "title": "Limit" + "type": "string", + "title": "Filter" } }, { - "description": "Number of items to skip (default 0)", - "name": "offset", + "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": { - "type": "integer", - "title": "Offset" + "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": { + "format": "uuid", + "type": "string", + "title": "Session Id" } } ], "responses": { "200": { - "description": "OK", + "description": "aggregate stats for the thread", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListMcpGatewaysResponse" + "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$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/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/settings": { - "get": { + }, "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns the current vendor-specific settings.", + "x-public": true + } + }, + "/api/v2/threads/{thread_id}/traces": { + "get": { + "description": "Retrieve all traces belonging to a specific thread within a project.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "mcp_vendors" + "threads" ], - "summary": "Get vendor settings", + "summary": "Query Thread Traces", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "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", + "title": "Cursor" + } + }, + { + "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": "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": { + "maximum": 100, + "default": 20, + "type": "integer", + "minimum": 1, + "title": "Page Size" + } + }, + { + "description": "`project_id` is the tracing project UUID (required).", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "format": "uuid", + "type": "string", + "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/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/threads.QueryThreadTracesResponseBody" + } + } + } + }, + "400": { + "description": "bad request (missing or invalid query parameters)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - }, - "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", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.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/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "504": { + "description": "gateway timeout or deadline exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" - } - } - } - } - }, - "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Initializes vendor settings.", + "x-public": true + } + }, + "/api/v2/traces/query": { + "post": { + "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": [ - "mcp_vendors" + "runs" ], - "summary": "Create vendor settings", + "summary": "Query traces", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, + "description": "application/json (required for JSON body)", + "name": "Content-Type", + "in": "header", "schema": { "type": "string" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/query.QueryTracesResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Removes vendor settings.", - "tags": [ - "mcp_vendors" - ], - "summary": "Delete vendor settings", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$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/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "504": { + "description": "gateway timeout or deadline exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/tools": { - "get": { + }, "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns the tool catalog for this vendor.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.QueryTracesRequestBody" + } + } + } + } + } + }, + "/api/v2/traces/{trace_id}/runs": { + "get": { + "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": [ - "mcp_vendors" + "runs" ], - "summary": "List tools for a vendor", + "summary": "List runs in a trace", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "application/json", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "Trace UUID", + "name": "trace_id", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } }, { - "description": "Max tools to return (default 50)", - "name": "limit", + "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": "integer", - "title": "Limit" + "type": "string", + "title": "Filter" } }, { - "description": "Number of tools to skip (default 0)", - "name": "offset", + "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": "integer", - "title": "Offset" + "format": "date-time", + "type": "string", + "title": "Max Start Time" + } + }, + { + "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": { + "format": "date-time", + "type": "string", + "title": "Min Start Time" + } + }, + { + "description": "`project_id` is the UUID of the tracing project that owns the trace.", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "format": "uuid", + "type": "string", + "title": "Project Id" + } + }, + { + "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": { + "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", + "LS_USER_ID" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], @@ -41098,647 +41599,594 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListVendorToolsResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - } - }, - "/v1/platform/nps/response": { - "post": { - "security": [ - { - "Bearer Auth": [] - } - ], - "description": "Records the authenticated user's NPS score and optional comment.", - "tags": [ - "nps" - ], - "summary": "Submit an NPS response", - "parameters": [], - "responses": { - "204": { - "description": "No Content" }, - "400": { - "description": "Bad Request", + "403": { + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "session not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/nps.SubmitResponseRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/ops/backfills/restart": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Organization 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.", - "tags": [ - "backfills" - ], - "summary": "Restart a backfill job", - "parameters": [], - "responses": { - "200": { - "description": "Backfill restarted", + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad request", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "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" } } } }, - "404": { - "description": "Backfill not found", + "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" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/backfills.restartBackfillRequest" - } - } - } - } - } - }, - "/v1/platform/orgs/current/access-policies": { - "get": { "security": [ { - "API Key": [] - }, - { - "Organization ID": [] + "API Key": [], + "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Lists all access policies for the organization.", + "x-public": true + } + }, + "/auth/public": { + "get": { + "description": "Returns public authentication information for the current workspace-level session.", "tags": [ - "access_policies" + "auth" ], - "summary": "List access policies", + "summary": "Get public auth info", "responses": { "200": { - "description": "List of access policies", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/authz_internal.ListAccessPoliciesResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/authn.PublicAuthInfo" } } } } }, - "parameters": [] - }, - "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Creates a new access policy.", + "x-public": true, + "parameters": [] + } + }, + "/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": [ - "access_policies" + "aws_marketplace" ], - "summary": "Create an access policy", + "summary": "AWS Marketplace fulfillment URL registration", "parameters": [], "responses": { - "201": { - "description": "Access policy created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/authz_internal.AccessPolicyCreateResponse" - } - } - } + "303": { + "description": "Redirect to thank-you page" }, "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "404": { - "description": "Role not found", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "string" } } } }, "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" + "type": "string" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/authz_internal.CreateAccessPolicyPayload" + "type": "object", + "properties": { + "x-amzn-marketplace-token": { + "type": "string", + "description": "Registration token from AWS Marketplace" + } + }, + "required": [ + "x-amzn-marketplace-token" + ] } } } } } }, - "/v1/platform/orgs/current/access-policies/roles/{role_id}/access-policies": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Organization 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.", + "/datasets/{dataset_id}/experiment-view-overrides": { + "get": { + "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": [ - "access_policies" + "experiment-view-overrides" ], - "summary": "Attach access policies to a role", + "summary": "Get experiment view override configurations for a dataset", "parameters": [ { - "description": "Role ID", - "name": "role_id", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } } ], "responses": { - "204": { - "description": "Access policies attached successfully" - }, - "400": { - "description": "Bad request", + "200": { + "description": "Successfully retrieved experiment view override configurations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + } } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Invalid dataset ID format\" example({\"error\":\"invalid dataset ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Role not found", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Dataset not found or not accessible\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" - } - } - } - } - } - }, - "/v1/platform/orgs/current/access-policies/{access_policy_id}": { - "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Gets a specific access policy by ID.", + "x-public": true + }, + "post": { + "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": [ - "access_policies" + "experiment-view-overrides" ], - "summary": "Get an access policy", + "summary": "Create new experiment view override configuration for a dataset", "parameters": [ { - "description": "Access Policy ID", - "name": "access_policy_id", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } } ], "responses": { - "200": { - "description": "Access policy details", + "201": { + "description": "Successfully created experiment view override", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.AccessPolicy" + "$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/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "Access policy not found", + "description": "Dataset not found\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal server error", + "409": { + "description": "Override already exists\" example({\"error\":\"experiment view override already exists\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "Service unavailable", - "content": { + "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": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } - }, - "delete": { + }, "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes a specific access policy by ID.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePostRequest" + } + } + } + } + } + }, + "/datasets/{dataset_id}/experiment-view-overrides/{id}": { + "get": { + "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": [ - "access_policies" + "experiment-view-overrides" ], - "summary": "Delete an access policy", + "summary": "Get experiment view override configuration by specific ID", "parameters": [ { - "description": "Access Policy ID", - "name": "access_policy_id", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", "in": "path", "required": true, "schema": { + "format": "uuid", "type": "string" } } ], "responses": { - "204": { - "description": "Access policy deleted successfully" + "200": { + "description": "Successfully retrieved experiment view override configuration", + "content": { + "application/json": { + "schema": { + "$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/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } - } - }, - "/v1/platform/orgs/current/info": { - "get": { + }, "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns organization info for the authenticated user's current organization.", + "x-public": true + }, + "delete": { + "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": [ - "Organizations" + "experiment-view-overrides" + ], + "summary": "Delete experiment view override configuration", + "parameters": [ + { + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + }, + { + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string" + } + } ], - "summary": "Get current organization info", "responses": { - "200": { - "description": "Organization info", + "204": { + "description": "Successfully deleted experiment view override (no content returned)" + }, + "400": { + "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/orgs.OrganizationInfo" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "400": { - "description": "Invalid organization ID", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { @@ -41750,8 +42198,8 @@ } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { @@ -41764,7 +42212,7 @@ } }, "500": { - "description": "Internal server error", + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { @@ -41777,165 +42225,62 @@ } } }, - "parameters": [] - } - }, - "/v1/platform/orgs/current/members": { - "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", + "x-public": true + }, + "patch": { + "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": [ - "orgs" + "experiment-view-overrides" ], - "summary": "List org members with workspace roles", + "summary": "Update existing experiment view override configuration", "parameters": [ { - "description": "Page size (default 50, max 500)", - "name": "limit", - "in": "query", - "schema": { - "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, + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Organization Role Like" + "format": "uuid", + "type": "string" } }, { - "description": "Glob filter on workspace role name; use * as wildcard (repeatable, matches any)", - "name": "workspace_role_like", - "in": "query", - "style": "form", - "explode": true, + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Workspace Role Like" + "format": "uuid", + "type": "string" } } ], "responses": { "200": { - "description": "Org members", - "headers": { - "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" - } - } - }, + "description": "Successfully updated experiment view override", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orgs.OrgMemberEnriched" - } + "$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": { @@ -41948,7 +42293,7 @@ } }, "401": { - "description": "Unauthorized", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { @@ -41960,8 +42305,8 @@ } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { @@ -41972,189 +42317,69 @@ } } } - } - } - } - }, - "/v1/platform/orgs/current/scim/tokens": { - "get": { - "security": [ - { - "API Key": [] }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "List all SCIM bearer tokens for the current organization. The full token values are not returned.", - "tags": [ - "SCIM Tokens" - ], - "summary": "List SCIM tokens", - "responses": { - "200": { - "description": "List of SCIM tokens", + "422": { + "description": "Validation error\" example({\"error\":\"'precision' must be between 1 and 6 for column at index 0\"})", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" + "type": "object", + "additionalProperties": { + "type": "string" } } } } }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden - requires OrganizationRead permission", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "parameters": [] - }, - "post": { "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.", - "tags": [ - "SCIM Tokens" - ], - "summary": "Create a SCIM token", - "parameters": [], - "responses": { - "201": { - "description": "Created SCIM token with full token value", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ScimTokenSensitiveResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden - requires OrganizationManage permission", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "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.CreateScimTokenPayload" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePatchRequest" } } } } } }, - "/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { + "/me/providers/{providerType}": { "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 provider user ID associated with the authenticated user for a given provider type, or null if not set. Scoped to the current tenant.", "tags": [ - "SCIM Tokens" + "me" ], - "summary": "Get a SCIM token", + "summary": "Get the authenticated user's provider user ID", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", + "description": "Provider type (e.g. slack, github)", + "name": "providerType", "in": "path", "required": true, "schema": { @@ -42164,255 +42389,220 @@ ], "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" + "type": "string" } } } }, - "403": { - "description": "Forbidden - requires OrganizationRead permission", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "string" } } } }, - "404": { - "description": "Token not found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "string" } } } }, "500": { - "description": "Internal server error", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "type": "string" } } } + } + }, + "security": [ + { + "API Key": [] }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ { - "API Key": [] - }, - { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Delete a SCIM bearer token from the current organization.", + "x-public": true + } + }, + "/oauth/authorize": { + "get": { + "description": "Validates authorization request parameters and redirects to the frontend consent page per RFC 6749.", "tags": [ - "SCIM Tokens" + "oauth" ], - "summary": "Delete a SCIM token", + "summary": "Initiate OAuth2 authorization", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", - "in": "path", + "description": "Must be 'code'", + "name": "response_type", + "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "title": "Response Type" } - } - ], - "responses": { - "204": { - "description": "No content - token deleted successfully" }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } + { + "description": "OAuth2 client ID", + "name": "client_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Client Id" } }, - "403": { - "description": "Forbidden - requires OrganizationManage permission", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } + { + "description": "Redirect URI registered with the client", + "name": "redirect_uri", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Redirect Uri" } }, - "404": { - "description": "Token not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } + { + "description": "PKCE code challenge", + "name": "code_challenge", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Code Challenge" } }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } + { + "description": "PKCE method, must be 'S256'", + "name": "code_challenge_method", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Code Challenge Method" } }, - "503": { - "description": "Service unavailable", + { + "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/scim.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Update the description of an existing SCIM token for the current organization.", + "x-public": true + } + }, + "/oauth/authorize/approve": { + "post": { + "description": "Issues an authorization code after the authenticated user approves the request. Called by the frontend consent page. Requires authentication.", "tags": [ - "SCIM Tokens" - ], - "summary": "Update a SCIM token", - "parameters": [ - { - "description": "SCIM Token ID", - "name": "scim_token_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "Approve OAuth2 authorization request", + "parameters": [], "responses": { "200": { - "description": "Updated SCIM token details", + "description": "JSON body with redirect_uri the frontend should navigate the browser to", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "403": { - "description": "Forbidden - requires OrganizationManage permission", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "404": { - "description": "Token not found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, "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/oauth.TokenErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" - } - } - } - } - } - }, - "/v1/platform/sessions/{sessionID}/agent-versions": { - "get": { "security": [ { "API Key": [] @@ -42424,15 +42614,67 @@ "Bearer Auth": [] } ], - "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "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" + ] + } + } + } + } + } + }, + "/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": [ - "sessions" + "oauth" ], - "summary": "List agent versions for a project", + "summary": "Get public OAuth2 client metadata", "parameters": [ { - "description": "Tracing project (session) UUID", - "name": "sessionID", + "description": "OAuth2 client ID", + "name": "clientID", "in": "path", "required": true, "schema": { @@ -42442,83 +42684,57 @@ ], "responses": { "200": { - "description": "Agent versions", + "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" - } + "$ref": "#/components/schemas/oauth.ClientPublicMetadata" } } } }, "400": { - "description": "Invalid session ID", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } - } + }, + "x-public": true } }, - "/v1/platform/sessions/{session_id}/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 the issues agent config attached to the given tracer session.", + "/oauth/device/authorize": { + "post": { + "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": [ - "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" - } - } + "oauth" ], + "summary": "Authorize a device code", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -42528,7 +42744,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -42538,7 +42754,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -42548,34 +42764,12 @@ "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" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } - } - }, - "post": { + }, "security": [ { "API Key": [] @@ -42587,29 +42781,52 @@ "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.", - "tags": [ - "issues-agent" - ], - "summary": "[Beta] Create the issues agent for a session", - "parameters": [ - { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "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" + ] + } } } + } + } + }, + "/oauth/device/code": { + "post": { + "description": "Issues a device code and user code for the device authorization flow per RFC 8628.", + "tags": [ + "oauth" ], + "summary": "Request OAuth2 device authorization", + "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" + "$ref": "#/components/schemas/oauth.DeviceCodeResponse" } } } @@ -42619,37 +42836,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "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" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -42659,24 +42846,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.CreateIssuesAgentRequest" - } - } - } - } - }, - "delete": { "security": [ { "API Key": [] @@ -42688,62 +42863,63 @@ "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.", - "tags": [ - "issues-agent" - ], - "summary": "[Beta] Delete the issues agent for a session", - "parameters": [ - { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" + "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" + ] + } } } + } + } + }, + "/oauth/register": { + "post": { + "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": [ + "oauth" ], + "summary": "Register an OAuth2 dynamic client", + "parameters": [], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.ClientRegistrationResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "404": { - "description": "Not Found", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -42753,14 +42929,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] @@ -42772,29 +42946,80 @@ "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.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.ClientRegistrationRequest" + } + } + } + } + } + }, + "/oauth/revoke": { + "post": { + "description": "Revokes an access token or refresh token per RFC 7009. Always returns 200 regardless of whether the token was found.", "tags": [ - "issues-agent" + "oauth" ], - "summary": "[Beta] Update the issues agent config for a session", - "parameters": [ + "summary": "Revoke an OAuth2 token", + "parameters": [], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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": { + "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/tracer_session_issues_agent.IssuesAgent" + "$ref": "#/components/schemas/oauth.TokenResponse" } } } @@ -42804,110 +43029,189 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } + } + }, + "security": [ + { + "API Key": [] }, - "403": { - "description": "Forbidden", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, + "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": { + "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/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ListPublicDataPlanesResponse" } } } }, - "404": { - "description": "Not Found", + "400": { + "description": "Invalid organization ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.UpdateIssuesAgentRequest" + }, + "403": { + "description": "BYOC not enabled for this organization", + "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/sessions/{session_id}/issues-agent/overview": { - "patch": { + }, "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization 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.", + "x-public": true, + "parameters": [] + }, + "post": { + "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": [ - "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" - } - } + "data_planes" ], + "summary": "Create a new data plane", + "parameters": [], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Data plane requested", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewResponse" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid input", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } @@ -42917,84 +43221,86 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "BYOC not enabled or insufficient permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "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/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/data_planes.CreateErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } } }, + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewRequest" + "$ref": "#/components/schemas/data_planes.CreateDataPlaneRequestAws" } } } } } }, - "/v1/platform/sessions/{session_id}/issues-agent/webhooks/{id}/roll-secret": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", + "/orgs/current/data-planes/{id}": { + "delete": { + "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": [ - "issues-agent" + "data_planes" ], - "summary": "Roll an issues agent webhook signing secret", + "summary": "Delete a data plane", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Webhook ID (UUID)", + "description": "Data plane ID", "name": "id", "in": "path", "required": true, @@ -43004,25 +43310,22 @@ } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Data plane deprovisioning started", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent_webhooks.IssuesAgentWebhook" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid data plane ID or confirmed missing delete permissions", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } @@ -43041,7 +43344,7 @@ } }, "403": { - "description": "Forbidden", + "description": "BYOC not enabled or insufficient permissions", "content": { "application/json": { "schema": { @@ -43054,7 +43357,20 @@ } }, "404": { - "description": "Not Found", + "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": { @@ -43067,7 +43383,7 @@ } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -43079,31 +43395,30 @@ } } } - } - } - }, - "/v1/platform/sessions/{session_id}/issues/views": { - "get": { + }, "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "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.", + "x-public": true + }, + "patch": { + "description": "Update specific settings for a data plane owned by the caller's organization.", "tags": [ - "issues" + "data_planes" ], - "summary": "[Beta] List viewed issues for a session", + "summary": "Update data plane settings", "parameters": [ { - "description": "Session ID (UUID)", - "name": "session_id", + "description": "Data plane ID", + "name": "id", "in": "path", "required": true, "schema": { @@ -43113,103 +43428,125 @@ ], "responses": { "200": { - "description": "OK", + "description": "Updated data plane", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ListViewsResponse" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Invalid request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "BYOC not enabled or insufficient permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "409": { + "description": "Data plane is not ready or its status does not allow updates", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/v1/platform/tools": { - "get": { + }, "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns a paginated list of tools in the workspace.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.UpdateDataPlaneRequest" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/tags/{tag_name}/history": { + "get": { + "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": [ - "tools" + "tag-transitions" ], - "summary": "List tools", + "summary": "Get tag transition history", "parameters": [ { - "description": "Maximum number of tools to return", + "description": "Repository owner (tenant handle)", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Tag name", + "name": "tag_name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { "name": "limit", "in": "query", "schema": { + "maximum": 100, + "default": 50, "type": "integer", + "minimum": 1, "title": "Limit" } }, { - "description": "Number of tools to skip", "name": "offset", "in": "query", "schema": { + "default": 0, "type": "integer", + "minimum": 0, "title": "Offset" } - }, - { - "description": "Search query to filter tools by name or description", - "name": "query", - "in": "query", - "schema": { - "type": "string", - "title": "Query" - } } ], "responses": { @@ -43218,7 +43555,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ListToolsResponse" + "$ref": "#/components/schemas/tag_transitions.TagTransitionHistoryResponse" } } } @@ -43228,27 +43565,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } @@ -43258,14 +43585,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } } - } - }, - "post": { + }, "security": [ { "API Key": [] @@ -43277,39 +43602,74 @@ "Bearer Auth": [] } ], - "description": "Creates a new tool in the workspace.", + "x-public": true + } + }, + "/userinfo": { + "get": { + "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": [ - "tools" + "oauth" ], - "summary": "Create a tool", - "parameters": [], + "summary": "Get OpenID Connect userinfo", "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/oauth.UserinfoResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + } + }, + "security": [ + { + "Bearer Auth": [] + } + ], + "x-public": true, + "parameters": [] + } + }, + "/v1/agent-builder/integrations": { + "get": { + "description": "Returns default policy, integration overrides, and known integrations for the current workspace.", + "tags": [ + "integrations" + ], + "summary": "Get Agent Builder integrations settings", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -43319,17 +43679,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -43339,26 +43705,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.CreateToolPayload" - } - } - } - } - } - }, - "/v1/platform/tools/id/{id}": { - "get": { "security": [ { "API Key": [] @@ -43370,29 +43725,23 @@ "Bearer Auth": [] } ], - "description": "Returns a tool identified by its UUID.", + "x-public": true, + "parameters": [] + }, + "put": { + "description": "Replaces default policy and integration overrides for the current workspace.", "tags": [ - "tools" - ], - "summary": "Get a tool by ID", - "parameters": [ - { - "description": "Tool UUID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "integrations" ], + "summary": "Update Agent Builder integrations settings", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } @@ -43402,27 +43751,10 @@ "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" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -43432,7 +43764,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -43442,14 +43777,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } - }, - "delete": { + }, "security": [ { "API Key": [] @@ -43461,62 +43797,73 @@ "Bearer Auth": [] } ], - "description": "Deletes a tool identified by its UUID.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsUpdatePayload" + } + } + } + } + } + }, + "/v1/fleet/orgs": { + "get": { + "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": [ - "tools" + "fleet orgs" ], - "summary": "Delete a tool by ID", + "summary": "List organizations", "parameters": [ { - "description": "Tool UUID", - "name": "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": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/orgs.ListOrgsResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } @@ -43526,39 +43873,58 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Updates an existing tool identified by its UUID.", + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/orgs/{org_id}/tenants": { + "get": { + "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": [ - "tools" + "fleet tenants" ], - "summary": "Update a tool by ID", + "summary": "List tenants", "parameters": [ { - "description": "Tool UUID", - "name": "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": { @@ -43567,7 +43933,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/tenants.ListTenantsResponse" } } } @@ -43577,7 +43943,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } @@ -43587,27 +43953,7 @@ "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" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } @@ -43617,50 +43963,48 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/tenants.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.", + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/secrets": { + "get": { + "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": [ - "tools" + "fleet secrets" ], - "summary": "Get a tool by handle", + "summary": "List workspace secret names", "parameters": [ { - "description": "Tool handle", - "name": "handle", - "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" } } ], @@ -43670,7 +44014,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/secrets.ListResponse" } } } @@ -43680,7 +44024,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -43690,7 +44034,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -43700,34 +44044,78 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } + } + }, + "security": [ + { + "API Key": [] }, - "500": { - "description": "Internal Server Error", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, + "x-hidden": true + }, + "post": { + "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": [ + "fleet secrets" + ], + "summary": "Bulk set or delete workspace secrets", + "parameters": [], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } } - } - }, - "delete": { + }, "security": [ { "API Key": [] @@ -43739,15 +44127,34 @@ "Bearer Auth": [] } ], - "description": "Deletes a tool identified by its handle.", + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/secrets.bulkUpsertItem" + } + } + } + } + }, + "x-hidden": true + } + }, + "/v1/fleet/secrets/{name}": { + "put": { + "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": [ - "tools" + "fleet secrets" ], - "summary": "Delete a tool by handle", + "summary": "Set a workspace secret", "parameters": [ { - "description": "Tool handle", - "name": "handle", + "description": "Secret name (e.g. ANTHROPIC_API_KEY)", + "name": "name", "in": "path", "required": true, "schema": { @@ -43764,7 +44171,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -43774,7 +44181,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } @@ -43784,34 +44191,88 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } + } + }, + "security": [ + { + "API Key": [] }, - "404": { - "description": "Not Found", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.putRequest" + } + } + } + }, + "x-hidden": true + }, + "delete": { + "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": [ + "fleet secrets" + ], + "summary": "Delete a workspace secret", + "parameters": [ + { + "description": "Secret name (e.g. ANTHROPIC_API_KEY)", + "name": "name", + "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" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] @@ -43823,15 +44284,30 @@ "Bearer Auth": [] } ], - "description": "Updates an existing tool identified by its handle.", + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/tenants/{tenant_id}/users/{id}": { + "get": { + "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": [ - "tools" + "fleet users" ], - "summary": "Update a tool by handle", + "summary": "Get Fleet user in tenant", "parameters": [ { - "description": "Tool handle", - "name": "handle", + "description": "Tenant ID", + "name": "tenant_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "User ID", + "name": "id", "in": "path", "required": true, "schema": { @@ -43845,7 +44321,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/users.UserRef" } } } @@ -43855,7 +44331,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -43865,7 +44341,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -43875,7 +44351,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -43885,7 +44361,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -43895,111 +44371,40 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/users.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.", + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/threads/{thread_id}/sandbox-activation": { + "post": { + "description": "Starts or resumes the sandbox referenced by the thread and returns when it is ready. The operation is idempotent. The thread must include sandbox.sandbox_slug.", "tags": [ - "sandboxes" + "fleet threads" ], - "summary": "List sandboxes", + "summary": "Activate a thread sandbox", "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", + "description": "Thread ID", + "name": "thread_id", + "in": "path", + "required": true, "schema": { - "default": "desc", - "type": "string", - "title": "Sort Direction" + "format": "uuid", + "type": "string" } } ], @@ -44009,7 +44414,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxListResponse" + "$ref": "#/components/schemas/threads.SandboxRef" } } } @@ -44019,7 +44424,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/threads.SandboxActivationProblem" } } } @@ -44029,130 +44434,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/threads.SandboxActivationProblem" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "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" + "$ref": "#/components/schemas/threads.SandboxActivationProblem" } } } }, "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", + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/threads.SandboxActivationProblem" } } } }, - "504": { - "description": "Sandbox did not become ready in time", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/threads.SandboxActivationProblem" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.CreateSandboxPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/batch-delete": { - "post": { "security": [ { "API Key": [] @@ -44164,95 +44481,46 @@ "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" - } - } - } - } + "x-public": true, + "x-hidden": true } }, - "/v2/sandboxes/boxes/{name}": { + "/v1/fleet/users": { "get": { - "security": [ - { - "API Key": [] - }, + "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": [ + "fleet users" + ], + "summary": "List Fleet users", + "parameters": [ { - "Tenant ID": [] + "description": "Case-insensitive substring matched against member email and full name. Omit to list every member.", + "name": "search", + "in": "query", + "schema": { + "type": "string", + "title": "Search" + } }, { - "Bearer Auth": [] + "description": "Items per page", + "name": "page_size", + "in": "query", + "schema": { + "maximum": 100, + "default": 20, + "type": "integer", + "minimum": 1, + "title": "Page Size" + } }, { - "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, + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", "schema": { - "type": "string" + "type": "string", + "title": "Cursor" } } ], @@ -44262,74 +44530,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$ref": "#/components/schemas/users.ListResponse" } } } }, - "404": { - "description": "Not Found", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.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", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -44339,14 +44570,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } } - } - }, - "patch": { + }, "security": [ { "API Key": [] @@ -44356,64 +44585,46 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Update a sandbox's display name. The name must be unique within the tenant.", + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/users/current": { + "get": { + "description": "Returns the authenticated Fleet caller's user profile. This endpoint does not require X-Tenant-Id and is intended for Fleet bootstrap.", "tags": [ - "sandboxes" - ], - "summary": "Update a sandbox", - "parameters": [ - { - "description": "Current sandbox display name", - "name": "name", - "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/sandboxes.SandboxResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.User" } } } }, - "409": { - "description": "Name already exists", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, - "422": { - "description": "Validation error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.ErrorResponse" } } } @@ -44423,60 +44634,39 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/users.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.", + "x-public": true, + "parameters": [], + "x-hidden": true + } + }, + "/workspaces/current/ttl-settings": { + "get": { + "description": "Get the longlived trace TTL settings for a workspace", "tags": [ - "sandboxes" - ], - "summary": "Generate a service access token", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "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/sandboxes.ServiceURLResponse" + "$ref": "#/components/schemas/ttl_settings.TTLSettingsResponse" } } } @@ -44486,7 +44676,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -44496,17 +44689,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -44516,36 +44702,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "501": { - "description": "Not Implemented", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ServiceURLPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}/snapshot": { - "post": { "security": [ { "API Key": [] @@ -44557,29 +44722,23 @@ "Bearer Auth": [] } ], - "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", + "x-public": true, + "parameters": [] + }, + "put": { + "description": "Update the longlived trace TTL for a workspace.", "tags": [ - "sandboxes" - ], - "summary": "Capture a snapshot from a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "TTL Settings" ], + "summary": "Update workspace TTL settings", + "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + "$ref": "#/components/schemas/ttl_settings.TTLSettingsResponse" } } } @@ -44589,17 +44748,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -44609,17 +44761,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -44629,26 +44774,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/{name}/start": { - "post": { "security": [ { "API Key": [] @@ -44660,1542 +44794,154 @@ "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" - } + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ttl_settings.UpdateTTLSettingsRequest" } } + } + } + } + } + }, + "components": { + "schemas": { + "APIFeedbackSource": { + "properties": { + "type": { + "type": "string", + "const": "api", + "title": "Type", + "default": "api" }, - "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": [], - "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" - } - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ttl_settings.UpdateTTLSettingsRequest" - } - } - } - } - } - } - }, - "components": { - "schemas": { - "AIMessage": { - "properties": { - "content": { + "metadata": { "anyOf": [ { - "type": "string" + "additionalProperties": true, + "type": "object" }, { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" + "type": "null" } ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { + "title": "Metadata" + } + }, + "type": "object", + "title": "APIFeedbackSource", + "description": "API feedback source." + }, + "APIKeyCreateRequest": { + "properties": { + "description": { "type": "string", - "const": "ai", - "title": "Type", - "default": "ai" + "title": "Description", + "default": "Default API key" }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" + "read_only": { + "type": "boolean", + "title": "Read Only", + "default": false, + "deprecated": true }, - "id": { + "expires_at": { "anyOf": [ { - "type": "string" + "type": "string", + "format": "date-time" }, { "type": "null" } ], - "title": "Id" - }, - "tool_calls": { - "items": { - "$ref": "#/components/schemas/ToolCall" - }, - "type": "array", - "title": "Tool Calls" - }, - "invalid_tool_calls": { - "items": { - "$ref": "#/components/schemas/InvalidToolCall" - }, - "type": "array", - "title": "Invalid Tool Calls" + "title": "Expires At" }, - "usage_metadata": { - "anyOf": [ - { - "$ref": "#/components/schemas/UsageMetadata" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content" - ], - "title": "AIMessage", - "description": "Message from an AI.\n\nAn `AIMessage` is returned from a chat model as a response to a prompt.\n\nThis message represents the output of the model and consists of both\nthe raw output as returned by the model and standardized fields\n(e.g., tool calls, usage metadata) added by the LangChain framework." - }, - "AIMessageChunk": { - "properties": { - "content": { + "workspaces": { "anyOf": [ - { - "type": "string" - }, { "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] + "type": "string", + "format": "uuid" }, "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "AIMessageChunk", - "title": "Type", - "default": "AIMessageChunk" - }, - "name": { - "anyOf": [ - { - "type": "string" }, { "type": "null" } ], - "title": "Name" + "title": "Workspaces" }, - "id": { + "role_id": { "anyOf": [ { - "type": "string" + "type": "string", + "format": "uuid" }, { "type": "null" } ], - "title": "Id" - }, - "tool_calls": { - "items": { - "$ref": "#/components/schemas/ToolCall" - }, - "type": "array", - "title": "Tool Calls" - }, - "invalid_tool_calls": { - "items": { - "$ref": "#/components/schemas/InvalidToolCall" - }, - "type": "array", - "title": "Invalid Tool Calls" + "title": "Role Id" }, - "usage_metadata": { + "org_role_id": { "anyOf": [ { - "$ref": "#/components/schemas/UsageMetadata" + "type": "string", + "format": "uuid" }, { "type": "null" } - ] - }, - "tool_call_chunks": { - "items": { - "$ref": "#/components/schemas/ToolCallChunk" - }, - "type": "array", - "title": "Tool Call Chunks" + ], + "title": "Org Role Id" }, - "chunk_position": { + "default_workspace_id": { "anyOf": [ { "type": "string", - "const": "last" + "format": "uuid" }, { "type": "null" } ], - "title": "Chunk Position" + "title": "Default Workspace Id" } }, - "additionalProperties": true, "type": "object", - "required": [ - "content" - ], - "title": "AIMessageChunk", - "description": "Message chunk from an AI (yielded when streaming)." + "title": "APIKeyCreateRequest", + "description": "API key POST schema.\n\nexpires_at: Optional datetime when the API key will expire.\nworkspaces: List of workspace UUIDs this key can access (feature-flagged).\nrole_id: Optional UUID of the role to assign to API key.\n If not provided, uses default role based on read_only flag:\n - WORKSPACE_ADMIN if read_only is False\n - WORKSPACE_READER if read_only is True\norg_role_id: UUID of a org role for org-scoped keys\n If not provided, defaults to ORG_USER\ndefault_workspace_id: UUID of the default workspace for PATs.\n If not provided, uses the current logic (first available workspace)." }, - "APIFeedbackSource": { + "APIKeyCreateResponse": { "properties": { - "type": { - "type": "string", - "const": "api", - "title": "Type", - "default": "api" - }, - "metadata": { + "created_at": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "type": "string", + "format": "date-time" }, { "type": "null" } ], - "title": "Metadata" - } - }, - "type": "object", - "title": "APIFeedbackSource", - "description": "API feedback source." - }, - "APIKeyCreateRequest": { - "properties": { + "title": "Created At" + }, + "id": { + "type": "string", + "format": "uuid", + "title": "Id" + }, + "short_key": { + "type": "string", + "title": "Short Key" + }, "description": { "type": "string", - "title": "Description", - "default": "Default API key" + "title": "Description" }, "read_only": { "type": "boolean", @@ -46203,6 +44949,18 @@ "default": false, "deprecated": true }, + "last_used_at": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Last Used At" + }, "expires_at": { "anyOf": [ { @@ -46215,12 +44973,11 @@ ], "title": "Expires At" }, - "workspaces": { + "workspace_names": { "anyOf": [ { "items": { - "type": "string", - "format": "uuid" + "type": "string" }, "type": "array" }, @@ -46228,7 +44985,18 @@ "type": "null" } ], - "title": "Workspaces" + "title": "Workspace Names" + }, + "default_workspace_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Default Workspace Name" }, "role_id": { "anyOf": [ @@ -46254,24 +45022,43 @@ ], "title": "Org Role Id" }, - "default_workspace_id": { + "access_scope": { "anyOf": [ { - "type": "string", - "format": "uuid" + "$ref": "#/components/schemas/AccessScope" + }, + { + "type": "null" + } + ] + }, + "created_by": { + "anyOf": [ + { + "type": "string" }, { "type": "null" } ], - "title": "Default Workspace Id" + "title": "Created By" + }, + "key": { + "type": "string", + "title": "Key" } }, "type": "object", - "title": "APIKeyCreateRequest", - "description": "API key POST schema.\n\nexpires_at: Optional datetime when the API key will expire.\nworkspaces: List of workspace UUIDs this key can access (feature-flagged).\nrole_id: Optional UUID of the role to assign to API key.\n If not provided, uses default role based on read_only flag:\n - WORKSPACE_ADMIN if read_only is False\n - WORKSPACE_READER if read_only is True\norg_role_id: UUID of a org role for org-scoped keys\n If not provided, defaults to ORG_USER\ndefault_workspace_id: UUID of the default workspace for PATs.\n If not provided, uses the current logic (first available workspace)." + "required": [ + "id", + "short_key", + "description", + "key" + ], + "title": "APIKeyCreateResponse", + "description": "API key POST schema." }, - "APIKeyCreateResponse": { + "APIKeyGetResponse": { "properties": { "created_at": { "anyOf": [ @@ -46387,93 +45174,7 @@ } ] }, - "key": { - "type": "string", - "title": "Key" - } - }, - "type": "object", - "required": [ - "id", - "short_key", - "description", - "key" - ], - "title": "APIKeyCreateResponse", - "description": "API key POST schema." - }, - "APIKeyGetResponse": { - "properties": { - "created_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Created At" - }, - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "short_key": { - "type": "string", - "title": "Short Key" - }, - "description": { - "type": "string", - "title": "Description" - }, - "read_only": { - "type": "boolean", - "title": "Read Only", - "default": false, - "deprecated": true - }, - "last_used_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Last Used At" - }, - "expires_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Expires At" - }, - "workspace_names": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Workspace Names" - }, - "default_workspace_name": { + "created_by": { "anyOf": [ { "type": "string" @@ -46482,41 +45183,7 @@ "type": "null" } ], - "title": "Default Workspace Name" - }, - "role_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Role Id" - }, - "org_role_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Org Role Id" - }, - "access_scope": { - "anyOf": [ - { - "$ref": "#/components/schemas/AccessScope" - }, - { - "type": "null" - } - ] + "title": "Created By" } }, "type": "object", @@ -46916,6 +45583,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", @@ -47746,50 +46435,6 @@ "title": "AppFeedbackSource", "description": "Feedback from the LangChainPlus App." }, - "Artifact": { - "properties": { - "id": { - "type": "string", - "title": "Id" - }, - "contents": { - "items": { - "$ref": "#/components/schemas/ArtifactContent" - }, - "type": "array", - "title": "Contents" - }, - "current_content_index": { - "type": "integer", - "title": "Current Content Index" - } - }, - "type": "object", - "required": [ - "id", - "contents", - "current_content_index" - ], - "title": "Artifact" - }, - "ArtifactContent": { - "properties": { - "index": { - "type": "integer", - "title": "Index" - }, - "content": { - "type": "string", - "title": "Content" - } - }, - "type": "object", - "required": [ - "index", - "content" - ], - "title": "ArtifactContent" - }, "AssignedReviewerSchema": { "properties": { "id": { @@ -48049,11 +46694,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 +46724,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 +46746,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 +46769,7 @@ "create_examples", "update_example", "update_examples", + "update_examples_metadata", "sync_examples", "delete_example", "delete_examples", @@ -48149,7 +46808,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 +46827,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 +46842,31 @@ "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_agent_auth_connection", + "update_agent_auth_connection", + "delete_agent_auth_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 +46892,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 +46909,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 +46921,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 +46934,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,13 +47067,17 @@ "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", "query_single_thread_stats", + "query_thread_stats", "query_thread_traces", "query_threads", "list_pairwise_queues", @@ -48408,10 +47096,26 @@ "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", + "create_custom_app", + "update_custom_app", + "delete_custom_app", + "bulk_delete_custom_apps", + "update_custom_app_share", + "update_custom_app_claim", + "download_custom_app_source", "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 +47304,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 +47331,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 +47542,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 +47640,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": [ @@ -49181,6 +47851,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": { @@ -49308,6 +47979,22 @@ } ], "title": "Split" + }, + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" } }, "type": "object", @@ -49397,6 +48084,18 @@ } ], "title": "Start Time" + }, + "end_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "End Time" } }, "type": "object", @@ -49457,8 +48156,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49574,6 +48273,17 @@ } ], "title": "Metadata Key Mappings" + }, + "tag_value_ids": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" } }, "type": "object", @@ -49587,8 +48297,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49745,7 +48455,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -49905,7 +48615,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -50162,13 +48872,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,158 +49166,27 @@ "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." }, - "ChangePaymentPlanSchema": { - "properties": { - "tier": { - "$ref": "#/components/schemas/ChangePaymentPlanReq" - } - }, - "type": "object", - "required": [ - "tier" - ], - "title": "ChangePaymentPlanSchema", - "description": "Change payment plan schema." - }, - "ChatMessage": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "chat", - "title": "Type", - "default": "chat" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - }, - "role": { - "type": "string", - "title": "Role" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content", - "role" - ], - "title": "ChatMessage", - "description": "Message that can be assigned an arbitrary speaker (i.e. role)." - }, - "ChatMessageChunk": { + "ChangePaymentPlanSchema": { "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "ChatMessageChunk", - "title": "Type", - "default": "ChatMessageChunk" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" + "tier": { + "$ref": "#/components/schemas/ChangePaymentPlanReq" }, - "id": { + "display_name": { "anyOf": [ { "type": "string" @@ -50599,21 +49195,15 @@ "type": "null" } ], - "title": "Id" - }, - "role": { - "type": "string", - "title": "Role" + "title": "Display Name" } }, - "additionalProperties": true, "type": "object", "required": [ - "content", - "role" + "tier" ], - "title": "ChatMessageChunk", - "description": "Chat Message chunk." + "title": "ChangePaymentPlanSchema", + "description": "Change payment plan schema." }, "ClusteringJobConfigResponse": { "properties": { @@ -51077,6 +49667,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 +49882,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 +50129,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 +50583,9 @@ "type": "null" } ], - "title": "Filter" + "title": "Run Filter" }, - "name": { + "trace_filter": { "anyOf": [ { "type": "string" @@ -51468,55 +50594,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 +50733,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 +50770,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 +51014,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 +51046,7 @@ "anyOf": [ { "items": { - "$ref": "#/components/schemas/CustomChartSeries" + "$ref": "#/components/schemas/CustomChartSeries-Output" }, "type": "array" }, @@ -51807,12 +51068,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 +51262,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 +51304,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 +51394,6 @@ "type": "object", "required": [ "name", - "metric", "id" ], "title": "CustomChartSeries" @@ -51896,6 +51404,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -51907,7 +51427,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 +51469,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 +51546,7 @@ }, "type": "object", "required": [ - "name", - "metric" + "name" ], "title": "CustomChartSeriesCreate" }, @@ -52020,6 +51610,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -52031,7 +51633,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 +51675,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 +51764,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 +51982,20 @@ "default": { "__missing__": "__missing__" } + }, + "markdown": { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Missing" + } + ], + "title": "Markdown", + "default": { + "__missing__": "__missing__" + } } }, "type": "object", @@ -52480,7 +52242,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 +52279,16 @@ } ], "title": "Sub Sections" + }, + "layout": { + "anyOf": [ + { + "$ref": "#/components/schemas/DashboardLayout-Output" + }, + { + "type": "null" + } + ] } }, "type": "object", @@ -52723,6 +52514,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 +52566,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 +52738,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 +53053,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 +53779,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 +53909,17 @@ } ], "title": "Model" + }, + "playground_settings_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Model Configuration ID" } }, "type": "object", @@ -53825,6 +53969,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 +54048,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -53922,7 +54113,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54045,7 +54237,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54056,7 +54249,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54106,6 +54300,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 +54643,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 +54722,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -54658,6 +54903,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" @@ -55234,7 +55495,8 @@ "type": "null" } ], - "title": "Session Id" + "title": "Session Id", + "description": "Required. The ID of the tracing project (session) the feedback belongs to." }, "trace_id": { "anyOf": [ @@ -55260,6 +55522,22 @@ ], "title": "Start Time" }, + "feedback_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Feedback Thread Id" + }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": true + }, "id": { "type": "string", "format": "uuid", @@ -55346,6 +55624,11 @@ ], "title": "Score" }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": true + }, "value": { "anyOf": [ { @@ -56153,6 +56436,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 +56466,11 @@ "$ref": "#/components/schemas/FilterViewType", "default": "runs" }, + "syntax_version": { + "type": "integer", + "title": "Syntax Version", + "default": 1 + }, "start_time": { "anyOf": [ { @@ -56279,11 +56578,7 @@ ], "title": "Tree Filter String" }, - "display_name": { - "type": "string", - "title": "Display Name" - }, - "description": { + "thread_filter_string": { "anyOf": [ { "type": "string" @@ -56292,56 +56587,8 @@ "type": "null" } ], - "title": "Description" - }, - "type": { - "$ref": "#/components/schemas/FilterViewType", - "default": "runs" - }, - "start_time": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Start Time" + "title": "Thread Filter String" }, - "end_time": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "End Time" - }, - "duration": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Duration" - } - }, - "type": "object", - "required": [ - "display_name" - ], - "title": "FilterViewCreate" - }, - "FilterViewRename": { - "properties": { "display_name": { "type": "string", "title": "Display Name" @@ -56356,89 +56603,19 @@ } ], "title": "Description" - } - }, - "type": "object", - "required": [ - "display_name" - ], - "title": "FilterViewRename" - }, - "FilterViewType": { - "type": "string", - "enum": [ - "runs", - "threads", - "single_run" - ], - "title": "FilterViewType" - }, - "FilterViewUpdate": { - "properties": { - "filter_string": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Filter String" - }, - "display_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Display Name" }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Description" - }, - "trace_filter_string": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Trace Filter String" + "type": { + "$ref": "#/components/schemas/FilterViewType", + "default": "runs" }, - "tree_filter_string": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + "syntax_version": { + "type": "integer", + "enum": [ + 1, + 2 ], - "title": "Tree Filter String" - }, - "type": { - "anyOf": [ - { - "$ref": "#/components/schemas/FilterViewType" - }, - { - "type": "null" - } - ] + "title": "Syntax Version", + "default": 1 }, "start_time": { "anyOf": [ @@ -56477,15 +56654,18 @@ } }, "type": "object", - "title": "FilterViewUpdate" + "required": [ + "display_name" + ], + "title": "FilterViewCreate" }, - "ForkRepoRequest": { + "FilterViewRename": { "properties": { - "repo_handle": { + "display_name": { "type": "string", - "title": "Repo Handle" + "title": "Display Name" }, - "readme": { + "description": { "anyOf": [ { "type": "string" @@ -56494,7 +56674,47 @@ "type": "null" } ], - "title": "Readme" + "title": "Description" + } + }, + "type": "object", + "required": [ + "display_name" + ], + "title": "FilterViewRename" + }, + "FilterViewType": { + "type": "string", + "enum": [ + "runs", + "threads", + "single_run" + ], + "title": "FilterViewType" + }, + "FilterViewUpdate": { + "properties": { + "filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter String" + }, + "display_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Display Name" }, "description": { "anyOf": [ @@ -56507,84 +56727,89 @@ ], "title": "Description" }, - "tags": { + "trace_filter_string": { "anyOf": [ { - "items": { - "type": "string" - }, - "type": "array" + "type": "string" }, { "type": "null" } ], - "title": "Tags" + "title": "Trace Filter String" }, - "is_public": { + "tree_filter_string": { "anyOf": [ { - "type": "boolean" + "type": "string" }, { "type": "null" } ], - "title": "Is Public" - } - }, - "type": "object", - "required": [ - "repo_handle" - ], - "title": "ForkRepoRequest", - "description": "Fields to fork a repo" - }, - "FunctionMessage": { - "properties": { - "content": { + "title": "Tree Filter String" + }, + "thread_filter_string": { "anyOf": [ { "type": "string" }, { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" + "type": "null" } ], - "title": "Content" + "title": "Thread Filter String" }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" + "type": { + "anyOf": [ + { + "$ref": "#/components/schemas/FilterViewType" + }, + { + "type": "null" + } + ] }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" + "syntax_version": { + "anyOf": [ + { + "type": "integer", + "enum": [ + 1, + 2 + ] + }, + { + "type": "null" + } + ], + "title": "Syntax Version" }, - "type": { - "type": "string", - "const": "function", - "title": "Type", - "default": "function" + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" }, - "name": { - "type": "string", - "title": "Name" + "end_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "End Time" }, - "id": { + "duration": { "anyOf": [ { "type": "string" @@ -56593,63 +56818,46 @@ "type": "null" } ], - "title": "Id" + "title": "Duration" } }, - "additionalProperties": true, "type": "object", - "required": [ - "content", - "name" - ], - "title": "FunctionMessage", - "description": "Message for passing the result of executing a tool back to a model.\n\n`FunctionMessage` are an older version of the `ToolMessage` schema, and\ndo not contain the `tool_call_id` field.\n\nThe `tool_call_id` field is used to associate the tool call request with the\ntool call response. Useful in situations where a chat model is able\nto request multiple tool calls in parallel." + "title": "FilterViewUpdate" }, - "FunctionMessageChunk": { + "ForkRepoRequest": { "properties": { - "content": { + "tag_value_ids": { "anyOf": [ - { - "type": "string" - }, { "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] + "type": "string", + "format": "uuid" }, - "type": "array" + "type": "array", + "maxItems": 100 + }, + { + "type": "null" } ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" + "title": "Tag Value Ids" }, - "type": { + "repo_handle": { "type": "string", - "const": "FunctionMessageChunk", - "title": "Type", - "default": "FunctionMessageChunk" + "title": "Repo Handle" }, - "name": { - "type": "string", - "title": "Name" + "readme": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Readme" }, - "id": { + "description": { "anyOf": [ { "type": "string" @@ -56658,17 +56866,40 @@ "type": "null" } ], - "title": "Id" + "title": "Description" + }, + "tags": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Tags" + }, + "is_public": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Public" } }, - "additionalProperties": true, "type": "object", "required": [ - "content", - "name" + "repo_handle" ], - "title": "FunctionMessageChunk", - "description": "Function Message chunk." + "title": "ForkRepoRequest", + "description": "Fields to fork a repo" }, "GenerateClusteringJobConfigRequest": { "properties": { @@ -57513,7 +57744,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57524,7 +57756,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57535,7 +57768,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57707,7 +57941,7 @@ "properties": { "detail": { "items": { - "$ref": "#/components/schemas/ValidationError" + "type": "string" }, "type": "array", "title": "Detail" @@ -57730,34 +57964,6 @@ "title": "HealthInfoGetResponse", "description": "The LangSmith server info." }, - "Highlight": { - "properties": { - "prompt_chunk_start_index": { - "type": "integer", - "title": "Prompt Chunk Start Index" - }, - "prompt_chunk_end_index": { - "type": "integer", - "title": "Prompt Chunk End Index" - }, - "prompt_chunk": { - "type": "string", - "title": "Prompt Chunk" - }, - "highlight_text": { - "type": "string", - "title": "Highlight Text" - } - }, - "type": "object", - "required": [ - "prompt_chunk_start_index", - "prompt_chunk_end_index", - "prompt_chunk", - "highlight_text" - ], - "title": "Highlight" - }, "HighlightedRun": { "properties": { "run_id": { @@ -57829,153 +58035,12 @@ "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." }, - "HumanMessage": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "human", - "title": "Type", - "default": "human" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content" - ], - "title": "HumanMessage", - "description": "Message from the user.\n\nA `HumanMessage` is a message that is passed in from a user to the model.\n\nExample:\n ```python\n from langchain_core.messages import HumanMessage, SystemMessage\n\n messages = [\n SystemMessage(content=\"You are a helpful assistant! Your name is Bob.\"),\n HumanMessage(content=\"What is your name?\"),\n ]\n\n # Instantiate a chat model and invoke it with the messages\n model = ...\n print(model.invoke(messages))\n ```" - }, - "HumanMessageChunk": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "HumanMessageChunk", - "title": "Type", - "default": "HumanMessageChunk" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content" - ], - "title": "HumanMessageChunk", - "description": "Human Message chunk." - }, "Identity": { "properties": { "id": { @@ -58182,88 +58247,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": { - "type": "integer", - "title": "Audio" - }, - "cache_creation": { - "type": "integer", - "title": "Cache Creation" - }, - "cache_read": { - "type": "integer", - "title": "Cache Read" - } - }, - "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\"" - }, "InsightsSummary": { "properties": { "key_points": { @@ -58333,85 +58316,6 @@ ], "title": "InternalSecretsResponse" }, - "InvalidToolCall": { - "properties": { - "type": { - "type": "string", - "const": "invalid_tool_call", - "title": "Type" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "args": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Args" - }, - "error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error" - }, - "index": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "title": "Index" - }, - "extras": { - "additionalProperties": true, - "type": "object", - "title": "Extras" - } - }, - "type": "object", - "required": [ - "type", - "id", - "name", - "args", - "error" - ], - "title": "InvalidToolCall", - "description": "Allowance for errors made by LLM.\n\nHere we add an `error` key to surface errors made during generation\n(e.g., invalid JSON arguments.)" - }, "InvokePromptPayload": { "properties": { "messages": { @@ -58475,6 +58379,22 @@ ], "title": "LikeRepoResponse" }, + "ListAuditLogOperationsResponse": { + "properties": { + "operations": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Operations" + } + }, + "type": "object", + "required": [ + "operations" + ], + "title": "ListAuditLogOperationsResponse" + }, "ListAuditLogsOCSFResponse": { "properties": { "cursor": { @@ -58997,7 +58917,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Prompt Cost" @@ -59008,7 +58929,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Completion Cost" @@ -59022,7 +58944,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59043,7 +58966,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59077,6 +59001,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 +59158,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Prompt Cost" @@ -59130,7 +59170,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Completion Cost" @@ -59144,7 +59185,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59165,7 +59207,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59877,6 +59920,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -59904,6 +59958,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -59976,17 +60041,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -60202,6 +60256,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 +60461,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 +60550,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 +60625,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 +60727,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 +60767,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 +60817,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 +60840,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 +60984,8 @@ "engine_lcu_spend_limit_monthly": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -60890,6 +61020,28 @@ "title": "Permissions", "default": [] }, + "org_role_name": { + "anyOf": [ + { + "$ref": "#/components/schemas/OrganizationRoles" + }, + { + "type": "null" + } + ] + }, + "org_role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Org Role Id" + }, "disabled": { "type": "boolean", "title": "Disabled", @@ -60941,6 +61093,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 +61196,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 +61228,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 +61248,7 @@ "type": "null" } ], - "title": "Engine Trial Modal Seen At" + "title": "Managed Eval Terms Accepted At" } }, "type": "object", @@ -61238,6 +61408,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 +61509,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 +61562,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", @@ -61386,6 +61593,17 @@ "title": "OrganizationPGSchemaSlim", "description": "Schema for an organization in postgres for list views." }, + "OrganizationRoles": { + "type": "string", + "enum": [ + "ORGANIZATION_ADMIN", + "ORGANIZATION_OPERATOR", + "ORGANIZATION_USER", + "ORGANIZATION_VIEWER", + "ORGANIZATION_RESTRICTED" + ], + "title": "OrganizationRoles" + }, "OrganizationUpdate": { "properties": { "display_name": { @@ -61547,6 +61765,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 +61790,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 +61832,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -61602,21 +61846,6 @@ "title": "OrganizationUpdate", "description": "Update organization schema." }, - "OutputTokenDetails": { - "properties": { - "audio": { - "type": "integer", - "title": "Audio" - }, - "reasoning": { - "type": "integer", - "title": "Reasoning" - } - }, - "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\"" - }, "PagerdutySeverity": { "type": "string", "enum": [ @@ -61634,15 +61863,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 +61905,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61699,6 +61943,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61771,17 +62026,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -61838,6 +62082,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61865,6 +62120,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61894,6 +62160,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": { @@ -61947,141 +62242,6 @@ ], "title": "PermissionResponse" }, - "PlaygroundPromptCanvasPayload": { - "properties": { - "messages": { - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AIMessage" - }, - { - "$ref": "#/components/schemas/HumanMessage" - }, - { - "$ref": "#/components/schemas/ChatMessage" - }, - { - "$ref": "#/components/schemas/SystemMessage" - }, - { - "$ref": "#/components/schemas/FunctionMessage" - }, - { - "$ref": "#/components/schemas/ToolMessage" - }, - { - "$ref": "#/components/schemas/AIMessageChunk" - }, - { - "$ref": "#/components/schemas/HumanMessageChunk" - }, - { - "$ref": "#/components/schemas/ChatMessageChunk" - }, - { - "$ref": "#/components/schemas/SystemMessageChunk" - }, - { - "$ref": "#/components/schemas/FunctionMessageChunk" - }, - { - "$ref": "#/components/schemas/ToolMessageChunk" - } - ] - }, - "type": "array", - "title": "Messages" - }, - "highlighted": { - "anyOf": [ - { - "$ref": "#/components/schemas/Highlight" - }, - { - "type": "null" - } - ] - }, - "artifact": { - "anyOf": [ - { - "$ref": "#/components/schemas/Artifact" - }, - { - "type": "null" - } - ] - }, - "artifact_length": { - "anyOf": [ - { - "type": "string", - "enum": [ - "shortest", - "short", - "long", - "longest" - ] - }, - { - "type": "null" - } - ], - "title": "Artifact Length" - }, - "reading_level": { - "anyOf": [ - { - "type": "string", - "enum": [ - "child", - "teenager", - "college", - "phd" - ] - }, - { - "type": "null" - } - ], - "title": "Reading Level" - }, - "custom_action": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Custom Action" - }, - "template_format": { - "type": "string", - "enum": [ - "f-string", - "mustache" - ], - "title": "Template Format" - }, - "secrets": { - "additionalProperties": { - "type": "string" - }, - "type": "object", - "title": "Secrets" - } - }, - "type": "object", - "required": [ - "messages", - "template_format", - "secrets" - ], - "title": "PlaygroundPromptCanvasPayload" - }, "PlaygroundSavedOptions": { "properties": { "requests_per_second": { @@ -62147,6 +62307,15 @@ "title": "Settings Type", "default": "complex" }, + "scope": { + "type": "string", + "enum": [ + "workspace", + "organization" + ], + "title": "Scope", + "default": "workspace" + }, "oauth_enabled": { "anyOf": [ { @@ -62280,6 +62449,18 @@ ], "title": "Name" }, + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" + }, "created_at": { "type": "string", "format": "date-time", @@ -62715,6 +62896,11 @@ }, "type": "array", "title": "Session Ids" + }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": false } }, "type": "object", @@ -63697,6 +63883,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 +64025,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 +64104,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -64258,6 +64513,7 @@ "format": "uuid" }, "type": "array", + "maxItems": 10, "minItems": 1, "title": "Session Ids" }, @@ -64269,6 +64525,7 @@ }, "limit": { "type": "integer", + "maximum": 20.0, "minimum": 1.0, "title": "Limit", "default": 10 @@ -64833,6 +65090,20 @@ "type": "null" } ] + }, + "owners": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/RepoOwner" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Owners" } }, "type": "object", @@ -64928,6 +65199,8 @@ "ResourceType": { "type": "string", "enum": [ + "agent", + "custom_app", "dashboard", "dataset", "deployment", @@ -64938,7 +65211,9 @@ "project", "prompt", "queue", - "sandbox" + "sandbox", + "skill", + "snapshot_name" ], "title": "ResourceType" }, @@ -65013,6 +65288,11 @@ "type": "null" } ] + }, + "is_restricted": { + "type": "boolean", + "title": "Is Restricted", + "default": false } }, "type": "object", @@ -65025,6 +65305,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 +65407,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 +66513,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66219,7 +66525,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66230,7 +66537,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66242,7 +66550,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66256,7 +66565,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66698,7 +67008,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66709,7 +67020,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66720,7 +67032,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66732,7 +67045,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66746,7 +67060,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66816,7 +67131,8 @@ "exclusiveMinimum": 0.0 }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Limit Usd" @@ -66836,6 +67152,7 @@ "properties": { "limit_usd": { "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Limit Usd" }, "window": { @@ -66969,6 +67286,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 +67391,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -67391,6 +67758,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "alerts": { "anyOf": [ { @@ -67424,6 +67798,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 +67957,17 @@ ], "title": "Evaluator Id" }, + "evaluator_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluator Name" + }, "alignment_annotation_queue_id": { "anyOf": [ { @@ -67705,6 +68144,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 +68261,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -67963,6 +68464,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 +68569,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -68167,6 +68718,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 +68742,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 +69145,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -68589,7 +69157,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -68600,7 +69169,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -68612,7 +69182,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -68626,7 +69197,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69104,10 +69676,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 +69703,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69129,7 +69715,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69554,7 +70141,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69565,7 +70153,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69576,7 +70165,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69588,7 +70178,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69602,7 +70193,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69917,6 +70509,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 +70523,7 @@ "type": "object", "required": [ "run_id", + "shared_trace_id", "share_token" ], "title": "RunShareSchema" @@ -70031,317 +70629,603 @@ ], "title": "Median Tokens" }, - "completion_tokens_p50": { + "completion_tokens_p50": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Completion Tokens P50" + }, + "prompt_tokens_p50": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Prompt Tokens P50" + }, + "tokens_p99": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Tokens P99" + }, + "completion_tokens_p99": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Completion Tokens P99" + }, + "prompt_tokens_p99": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "title": "Prompt Tokens P99" + }, + "last_run_start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Last Run Start Time" + }, + "feedback_stats": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Feedback Stats" + }, + "run_facets": { + "anyOf": [ + { + "items": { + "additionalProperties": true, + "type": "object" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Run Facets" + }, + "error_rate": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Error Rate" + }, + "streaming_rate": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Streaming Rate" + }, + "total_cost": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Total Cost" + }, + "prompt_cost": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Prompt Cost" + }, + "completion_cost": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Completion Cost" + }, + "cost_p50": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Cost P50" + }, + "cost_p99": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Cost P99" + }, + "prompt_token_details": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Prompt Token Details" + }, + "completion_token_details": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Completion Token Details" + }, + "prompt_cost_details": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Prompt Cost Details" + }, + "completion_cost_details": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Completion Cost Details" + } + }, + "type": "object", + "title": "RunStats" + }, + "RunStatsGroupBy": { + "properties": { + "attribute": { + "type": "string", + "enum": [ + "name", + "run_type", + "tag", + "metadata" + ], + "title": "Attribute" + }, + "path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Path" + }, + "max_groups": { + "type": "integer", + "title": "Max Groups", + "default": 5 + } + }, + "type": "object", + "required": [ + "attribute" + ], + "title": "RunStatsGroupBy", + "description": "Group by param for run stats." + }, + "RunStatsGroupBySeriesResponse": { + "properties": { + "attribute": { + "type": "string", + "enum": [ + "name", + "run_type", + "tag", + "metadata" + ], + "title": "Attribute" + }, + "path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Path" + }, + "max_groups": { + "type": "integer", + "title": "Max Groups", + "default": 5 + }, + "set_by": { "anyOf": [ { - "type": "integer" + "type": "string", + "enum": [ + "section", + "series" + ] }, { "type": "null" } ], - "title": "Completion Tokens P50" - }, - "prompt_tokens_p50": { + "title": "Set By" + } + }, + "type": "object", + "required": [ + "attribute" + ], + "title": "RunStatsGroupBySeriesResponse", + "description": "Include additional information about where the group_by param was set." + }, + "RunStatsQueryParams": { + "properties": { + "id": { "anyOf": [ { - "type": "integer" + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" }, { "type": "null" } ], - "title": "Prompt Tokens P50" + "title": "Id" }, - "tokens_p99": { + "trace": { "anyOf": [ { - "type": "integer" + "type": "string", + "format": "uuid" }, { "type": "null" } ], - "title": "Tokens P99" + "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." }, - "completion_tokens_p99": { + "parent_run": { "anyOf": [ { - "type": "integer" + "type": "string", + "format": "uuid" }, { "type": "null" } ], - "title": "Completion Tokens P99" + "title": "Parent Run" }, - "prompt_tokens_p99": { + "run_type": { "anyOf": [ { - "type": "integer" + "$ref": "#/components/schemas/RunTypeEnum" }, { "type": "null" } - ], - "title": "Prompt Tokens P99" + ] }, - "last_run_start_time": { + "session": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "minItems": 1, + "title": "Session" + }, + "reference_example": { "anyOf": [ { - "type": "string", - "format": "date-time" + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" }, { "type": "null" } ], - "title": "Last Run Start Time" + "title": "Reference Example" }, - "feedback_stats": { + "execution_order": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "type": "integer", + "maximum": 1.0, + "minimum": 1.0 }, { "type": "null" } ], - "title": "Feedback Stats" + "title": "Execution Order" }, - "run_facets": { + "start_time": { "anyOf": [ { - "items": { - "additionalProperties": true, - "type": "object" - }, - "type": "array" + "type": "string", + "format": "date-time" }, { "type": "null" } ], - "title": "Run Facets" + "title": "Start Time" }, - "error_rate": { + "end_time": { "anyOf": [ { - "type": "number" + "type": "string", + "format": "date-time" }, { "type": "null" } ], - "title": "Error Rate" + "title": "End Time" }, - "streaming_rate": { + "error": { "anyOf": [ { - "type": "number" + "type": "boolean" }, { "type": "null" } ], - "title": "Streaming Rate" + "title": "Error" }, - "total_cost": { + "query": { "anyOf": [ { - "type": "number" + "type": "string" }, { "type": "null" } ], - "title": "Total Cost" + "title": "Query" }, - "prompt_cost": { + "filter": { "anyOf": [ { - "type": "number" + "type": "string" }, { "type": "null" } ], - "title": "Prompt Cost" + "title": "Filter" }, - "completion_cost": { + "trace_filter": { "anyOf": [ { - "type": "number" + "type": "string" }, { "type": "null" } ], - "title": "Completion Cost" + "title": "Trace Filter" }, - "cost_p50": { + "tree_filter": { "anyOf": [ { - "type": "number" + "type": "string" }, { "type": "null" } ], - "title": "Cost P50" + "title": "Tree Filter" }, - "cost_p99": { + "is_root": { "anyOf": [ { - "type": "number" + "type": "boolean" }, { "type": "null" } ], - "title": "Cost P99" + "title": "Is Root" }, - "prompt_token_details": { + "data_source_type": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "$ref": "#/components/schemas/RunsFilterDataSourceTypeEnum" }, { "type": "null" } - ], - "title": "Prompt Token Details" + ] }, - "completion_token_details": { + "skip_pagination": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "type": "boolean" }, { "type": "null" } ], - "title": "Completion Token Details" + "title": "Skip Pagination" }, - "prompt_cost_details": { + "search_filter": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "type": "string" }, { "type": "null" } ], - "title": "Prompt Cost Details" + "title": "Search Filter" }, - "completion_cost_details": { + "use_experimental_search": { + "type": "boolean", + "title": "Use Experimental Search", + "default": false + }, + "group_by": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "$ref": "#/components/schemas/RunStatsGroupBy" }, { "type": "null" } - ], - "title": "Completion Cost Details" - } - }, - "type": "object", - "title": "RunStats" - }, - "RunStatsGroupBy": { - "properties": { - "attribute": { - "type": "string", - "enum": [ - "name", - "run_type", - "tag", - "metadata" - ], - "title": "Attribute" + ] }, - "path": { + "groups": { "anyOf": [ { - "type": "string" + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "type": "array" }, { "type": "null" } ], - "title": "Path" - }, - "max_groups": { - "type": "integer", - "title": "Max Groups", - "default": 5 - } - }, - "type": "object", - "required": [ - "attribute" - ], - "title": "RunStatsGroupBy", - "description": "Group by param for run stats." - }, - "RunStatsGroupBySeriesResponse": { - "properties": { - "attribute": { - "type": "string", - "enum": [ - "name", - "run_type", - "tag", - "metadata" - ], - "title": "Attribute" + "title": "Groups" }, - "path": { + "select": { "anyOf": [ { - "type": "string" + "items": { + "$ref": "#/components/schemas/RunStatsSelect" + }, + "type": "array" }, { "type": "null" } ], - "title": "Path" - }, - "max_groups": { - "type": "integer", - "title": "Max Groups", - "default": 5 + "title": "Select" }, - "set_by": { + "reference_dataset_id": { "anyOf": [ { "type": "string", - "enum": [ - "section", - "series" - ] + "format": "uuid" }, { "type": "null" } ], - "title": "Set By" + "title": "Reference Dataset Id" + }, + "include_details": { + "type": "boolean", + "title": "Include Details", + "default": false } }, "type": "object", "required": [ - "attribute" + "session" ], - "title": "RunStatsGroupBySeriesResponse", - "description": "Include additional information about where the group_by param was set." + "title": "RunStatsQueryParams", + "description": "Query params for run stats." }, - "RunStatsQueryParams": { + "RunStatsQueryParamsPublic": { "properties": { "id": { "anyOf": [ @@ -70368,7 +71252,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": [ @@ -70606,11 +71491,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 +71546,7 @@ "session_feedback_stats", "all_run_stats", "all_token_stats", + "group_count", "prompt_token_details", "completion_token_details", "prompt_cost_details", @@ -71564,8 +72467,7 @@ "latency_p50", "latency_p99", "error_rate", - "feedback", - "runs_count" + "feedback" ], "title": "SessionSortableColumns" }, @@ -71603,6 +72505,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 +72576,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 +72614,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": { @@ -72207,148 +73121,6 @@ "title": "SupabaseAttributeMappingKey", "description": "Single entry in a Supabase SAML attribute_mapping.keys map." }, - "SystemMessage": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "system", - "title": "Type", - "default": "system" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content" - ], - "title": "SystemMessage", - "description": "Message for priming AI behavior.\n\nThe system message is usually passed in as the first of a sequence\nof input messages.\n\nExample:\n ```python\n from langchain_core.messages import HumanMessage, SystemMessage\n\n messages = [\n SystemMessage(content=\"You are a helpful assistant! Your name is Bob.\"),\n HumanMessage(content=\"What is your name?\"),\n ]\n\n # Define a chat model and invoke it with the messages\n print(model.invoke(messages))\n ```" - }, - "SystemMessageChunk": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "SystemMessageChunk", - "title": "Type", - "default": "SystemMessageChunk" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content" - ], - "title": "SystemMessageChunk", - "description": "System Message chunk." - }, "TTLSettings": { "properties": { "tenant_id": { @@ -72863,6 +73635,14 @@ }, "TaggingsByResourceType": { "properties": { + "agents": { + "items": { + "$ref": "#/components/schemas/Resource" + }, + "type": "array", + "title": "Agents", + "default": [] + }, "alerts": { "items": { "$ref": "#/components/schemas/Resource" @@ -72871,6 +73651,14 @@ "title": "Alerts", "default": [] }, + "custom_apps": { + "items": { + "$ref": "#/components/schemas/Resource" + }, + "type": "array", + "title": "Custom Apps", + "default": [] + }, "dashboards": { "items": { "$ref": "#/components/schemas/Resource" @@ -72950,6 +73738,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 +74122,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 +74179,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 +74237,10 @@ "evaluator_count": { "type": "integer", "title": "Evaluator Count" + }, + "custom_app_count": { + "type": "integer", + "title": "Custom App Count" } }, "type": "object", @@ -73393,7 +74252,8 @@ "annotation_queue_count", "deployment_count", "dashboards_count", - "evaluator_count" + "evaluator_count", + "custom_app_count" ], "title": "TenantStats", "description": "Stats for a tenant." @@ -73503,281 +74363,6 @@ "title": "TimedeltaInput", "description": "Timedelta input." }, - "ToolCall": { - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "args": { - "additionalProperties": true, - "type": "object", - "title": "Args" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - }, - "type": { - "type": "string", - "const": "tool_call", - "title": "Type" - } - }, - "type": "object", - "required": [ - "name", - "args", - "id" - ], - "title": "ToolCall", - "description": "Represents an AI's request to call a tool.\n\nExample:\n ```python\n {\"name\": \"foo\", \"args\": {\"a\": 1}, \"id\": \"123\"}\n ```\n\n This represents a request to call the tool named `'foo'` with arguments\n `{\"a\": 1}` and an identifier of `'123'`.\n\n!!! note \"Factory function\"\n\n `tool_call` may also be used as a factory to create a `ToolCall`. Benefits\n include:\n\n * Required arguments strictly validated at creation time" - }, - "ToolCallChunk": { - "properties": { - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "args": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Args" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - }, - "index": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Index" - }, - "type": { - "type": "string", - "const": "tool_call_chunk", - "title": "Type" - } - }, - "type": "object", - "required": [ - "name", - "args", - "id", - "index" - ], - "title": "ToolCallChunk", - "description": "A chunk of a tool call (yielded when streaming).\n\nWhen merging `ToolCallChunk` objects (e.g., via `AIMessageChunk.__add__`), all\nstring attributes are concatenated. Chunks are only merged if their values of\n`index` are equal and not `None`.\n\nExample:\n```python\nleft_chunks = [ToolCallChunk(name=\"foo\", args='{\"a\":', index=0)]\nright_chunks = [ToolCallChunk(name=None, args=\"1}\", index=0)]\n\n(\n AIMessageChunk(content=\"\", tool_call_chunks=left_chunks)\n + AIMessageChunk(content=\"\", tool_call_chunks=right_chunks)\n).tool_call_chunks == [ToolCallChunk(name=\"foo\", args='{\"a\":1}', index=0)]\n```" - }, - "ToolMessage": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "tool", - "title": "Type", - "default": "tool" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - }, - "tool_call_id": { - "type": "string", - "title": "Tool Call Id" - }, - "artifact": { - "title": "Artifact" - }, - "status": { - "type": "string", - "enum": [ - "success", - "error" - ], - "title": "Status", - "default": "success" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content", - "tool_call_id" - ], - "title": "ToolMessage", - "description": "Message for passing the result of executing a tool back to a model.\n\n`ToolMessage` objects contain the result of a tool invocation. Typically, the result\nis encoded inside the `content` field.\n\n`tool_call_id` is used to associate the tool call request with the tool call\nresponse. Useful in situations where a chat model is able to request multiple tool\ncalls in parallel.\n\nExample:\n A `ToolMessage` representing a result of `42` from a tool call with id\n\n ```python\n from langchain_core.messages import ToolMessage\n\n ToolMessage(content=\"42\", tool_call_id=\"call_Jja7J89XsjrOLA5r!MEOW!SL\")\n ```\n\nExample:\n A `ToolMessage` where only part of the tool output is sent to the model\n and the full output is passed in to artifact.\n\n ```python\n from langchain_core.messages import ToolMessage\n\n tool_output = {\n \"stdout\": \"From the graph we can see that the correlation between \"\n \"x and y is ...\",\n \"stderr\": None,\n \"artifacts\": {\"type\": \"image\", \"base64_data\": \"/9j/4gIcSU...\"},\n }\n\n ToolMessage(\n content=tool_output[\"stdout\"],\n artifact=tool_output,\n tool_call_id=\"call_Jja7J89XsjrOLA5r!MEOW!SL\",\n )\n ```" - }, - "ToolMessageChunk": { - "properties": { - "content": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "additionalProperties": true, - "type": "object" - } - ] - }, - "type": "array" - } - ], - "title": "Content" - }, - "additional_kwargs": { - "additionalProperties": true, - "type": "object", - "title": "Additional Kwargs" - }, - "response_metadata": { - "additionalProperties": true, - "type": "object", - "title": "Response Metadata" - }, - "type": { - "type": "string", - "const": "ToolMessageChunk", - "title": "Type", - "default": "ToolMessageChunk" - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Name" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Id" - }, - "tool_call_id": { - "type": "string", - "title": "Tool Call Id" - }, - "artifact": { - "title": "Artifact" - }, - "status": { - "type": "string", - "enum": [ - "success", - "error" - ], - "title": "Status", - "default": "success" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "content", - "tool_call_id" - ], - "title": "ToolMessageChunk", - "description": "Tool Message chunk." - }, "TraceTier": { "type": "string", "enum": [ @@ -73962,7 +74547,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -73973,7 +74559,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -73984,7 +74571,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74114,6 +74702,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 +74808,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 +75351,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 +75403,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 +75458,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": [ @@ -74823,36 +75477,6 @@ "title": "UsageLimitType", "description": "Type of usage limit." }, - "UsageMetadata": { - "properties": { - "input_tokens": { - "type": "integer", - "title": "Input Tokens" - }, - "output_tokens": { - "type": "integer", - "title": "Output Tokens" - }, - "total_tokens": { - "type": "integer", - "title": "Total Tokens" - }, - "input_token_details": { - "$ref": "#/components/schemas/InputTokenDetails" - }, - "output_token_details": { - "$ref": "#/components/schemas/OutputTokenDetails" - } - }, - "type": "object", - "required": [ - "input_tokens", - "output_tokens", - "total_tokens" - ], - "title": "UsageMetadata", - "description": "Usage metadata for a message, such as token counts.\n\nThis is a standard representation of token usage that is consistent across models.\n\nExample:\n ```python\n {\n \"input_tokens\": 350,\n \"output_tokens\": 240,\n \"total_tokens\": 590,\n \"input_token_details\": {\n \"audio\": 10,\n \"cache_creation\": 200,\n \"cache_read\": 100,\n },\n \"output_token_details\": {\n \"audio\": 10,\n \"reasoning\": 200,\n },\n }\n ```\n\n!!! warning \"Behavior changed in `langchain-core` 0.3.9\"\n\n Added `input_token_details` and `output_token_details`.\n\n!!! note \"LangSmith SDK\"\n\n The LangSmith SDK also has a `UsageMetadata` class. While the two share fields,\n LangSmith's `UsageMetadata` has additional fields to capture cost information\n used by the LangSmith platform." - }, "UserOnboardingStateResponse": { "properties": { "id": { @@ -75038,6 +75662,13 @@ "type": { "type": "string", "title": "Error Type" + }, + "input": { + "title": "Input" + }, + "ctx": { + "type": "object", + "title": "Context" } }, "type": "object", @@ -75080,6 +75711,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 +76036,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": { - "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": { + "agent.ErrorResponse": { "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": { + "agent.IssuesAgent": { "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": { - "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": { - "type": "string", - "example": "Researcher (Copy)" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - } - } - }, - "agents.Connection": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" + "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", + "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 +76380,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] }, "updated_at": { @@ -76004,7 +76410,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] } } @@ -76204,6 +76611,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76231,6 +76639,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76240,6 +76649,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 +76691,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 +77008,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 +77020,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 +77048,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 +77069,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 +77160,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 +77179,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 +77207,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 +77231,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 +77438,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 +77459,9 @@ "feedback:delete", "feedback:read", "feedback:update", + "feedback-configs:create", + "feedback-configs:update", + "feedback-configs:delete", "experiments:run", "issues:create", "issues:delete", @@ -76895,31 +77470,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 +77524,10 @@ "fleet:write-admin-config", "organization:pats:create", "organization:read", - "organization:manage" + "organization:read-metadata", + "organization:manage", + "organization:manage-model-configs", + "organization:manage-model-secrets" ], "x-enum-varnames": [ "AnnotationQueuesCreate", @@ -76948,10 +77538,18 @@ "ChartsDelete", "ChartsRead", "ChartsUpdate", + "CustomAppsCreate", + "CustomAppsDelete", + "CustomAppsDownload", + "CustomAppsRead", + "CustomAppsUpdate", + "DatasetsClone", "DatasetsCreate", "DatasetsDelete", + "DatasetsDownload", "DatasetsRead", "DatasetsShare", + "DatasetsTagOnCreate", "DatasetsUpdate", "DeploymentsCreate", "DeploymentsDelete", @@ -76961,6 +77559,9 @@ "FeedbackDelete", "FeedbackRead", "FeedbackUpdate", + "FeedbackConfigsCreate", + "FeedbackConfigsUpdate", + "FeedbackConfigsDelete", "ExperimentsRun", "IssuesCreate", "IssuesDelete", @@ -76969,31 +77570,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 +77624,43 @@ "FleetWriteAdminConfig", "OrganizationPATsCreate", "OrganizationRead", - "OrganizationManage" + "OrganizationReadMetadata", + "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 +77839,120 @@ } } }, - "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": [ + "allow_http", + "allowed_cidrs", + "allowed_domains" + ], "properties": { - "external_id": { - "type": "string" + "allow_http": { + "type": "boolean" }, - "name": { - "type": "string" + "allowed_cidrs": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "integer" + } + } }, - "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 +77967,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 +77990,15 @@ "created_at": { "type": "string" }, + "firewall": { + "$ref": "#/components/schemas/data_planes.DataPlaneFirewallSettings" + }, "id": { "type": "string" }, + "maintenance_window": { + "type": "string" + }, "name": { "type": "string" }, @@ -77338,6 +78011,9 @@ "status_updated_at": { "type": "string" }, + "ttl": { + "$ref": "#/components/schemas/data_planes.DataPlaneTTLSettings" + }, "workspaces": { "type": "array", "items": { @@ -77364,6 +78040,7 @@ "provisioning", "provisioning_failed", "active", + "updating", "inactive", "deprovisioning", "deleted", @@ -77374,13 +78051,210 @@ "DataPlaneStatusProvisioning", "DataPlaneStatusProvisioningFailed", "DataPlaneStatusActive", + "DataPlaneStatusUpdating", "DataPlaneStatusInactive", "DataPlaneStatusDeprovisioning", "DataPlaneStatusDeleted", "DataPlaneStatusRevoked" ] }, - "directories.CommitInfo": { + "data_planes.UpdateDataPlaneFirewallSettings": { + "type": "object", + "properties": { + "allow_http": { + "type": "boolean" + }, + "allowed_cidrs": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "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,53 +78268,117 @@ } } }, - "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": { - "description": "Files maps path to an Entry (object = create/update/link, null = delete/unlink).", - "type": "object", - "additionalProperties": {} + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/components/schemas/directory.DirectoryEntryInput" + }, + { + "type": "null" + } + ] + }, + "description": "Paths to create, update, link, delete, or unlink. Use null to delete or unlink an existing path.", + "type": "object" }, "parent_commit": { "type": "string" + }, + "skip_webhooks": { + "description": "SkipWebhooks suppresses Context Hub commit webhooks for this commit.", + "type": "boolean" + } + }, + "example": { + "files": { + "skills/current": { + "type": "skill", + "repo_handle": "shared-skill", + "selector": { + "type": "LATEST" + } + }, + "agents/pinned": { + "type": "agent", + "repo_handle": "review-agent", + "selector": { + "type": "COMMIT", + "commit_id": "0198f3ab-7c2d-7def-8a91-23456789abcd" + } + } } } }, - "directories.GetDirectoryResponse": { + "directory.GetDirectoryResponse": { "type": "object", "properties": { "commit_hash": { "type": "string" }, "commit_id": { + "format": "uuid", "type": "string" }, "files": { - "type": "object", - "additionalProperties": {} + "additionalProperties": { + "$ref": "#/components/schemas/directory.DirectoryEntryOutput" + }, + "type": "object" } - } + }, + "required": [ + "commit_id", + "commit_hash", + "files" + ] }, - "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 +78416,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 +78446,18 @@ "code": { "type": "string" }, + "dependencies": { + "type": "string" + }, "language": { "description": "Default: \"python\"", "type": "string" + }, + "workspace_secrets_keys": { + "type": "array", + "items": { + "type": "string" + } } } }, @@ -77530,6 +78492,10 @@ "commit_hash_or_tag": { "type": "string" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -77568,6 +78534,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 +78566,21 @@ } } }, + "evaluators.EvaluatorBuildStatus": { + "type": "string", + "enum": [ + "ENQUEUED", + "BUILDING", + "READY", + "FAILED" + ], + "x-enum-varnames": [ + "EvaluatorBuildStatusEnqueued", + "EvaluatorBuildStatusBuilding", + "EvaluatorBuildStatusReady", + "EvaluatorBuildStatusFailed" + ] + }, "evaluators.EvaluatorRunRule": { "type": "object", "properties": { @@ -77632,7 +78617,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": { @@ -77803,8 +78788,17 @@ "code": { "type": "string" }, + "dependencies": { + "type": "string" + }, "language": { "type": "string" + }, + "workspace_secrets_keys": { + "type": "array", + "items": { + "type": "string" + } } } }, @@ -77839,6 +78833,10 @@ "num_few_shot_examples": { "type": "integer" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -78062,6 +79060,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 +79068,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 +79137,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 +79163,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 +79183,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,1527 +79300,2442 @@ } } }, - "github_app.ErrorResponse": { + "httperr.ErrorResponse": { "type": "object", "properties": { - "error": { + "code": { + "type": "string" + }, + "detail": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "type": { "type": "string" } } }, - "github_app.InstallLinkResponse": { + "hub_environments.CreateEnvironmentsRequest": { "type": "object", + "required": [ + "environments" + ], "properties": { - "install_url": { + "environments": { + "type": "array", + "maxItems": 4, + "minItems": 1, + "items": { + "$ref": "#/components/schemas/hub_environments.EnvironmentEntry" + } + } + } + }, + "hub_environments.EnvironmentEntry": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "maxLength": 64, + "minLength": 1 + } + } + }, + "hub_environments.ErrorResponse": { + "type": "object", + "properties": { + "error": { "type": "string" } } }, - "github_app.Installation": { + "hub_environments.HubEnvironmentsModel": { "type": "object", "properties": { - "account_login": { + "environments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/hub_environments.EnvironmentEntry" + } + }, + "id": { "type": "string" + } + } + }, + "hub_environments.UpdateEnvironmentsRequest": { + "type": "object", + "required": [ + "environments" + ], + "properties": { + "environments": { + "type": "array", + "maxItems": 4, + "items": { + "$ref": "#/components/schemas/hub_environments.EnvironmentEntry" + } + } + } + }, + "info.BatchIngestConfig": { + "type": "object", + "properties": { + "scale_down_nempty_trigger": { + "type": "integer" }, - "created_at": { + "scale_up_nthreads_limit": { + "type": "integer" + }, + "scale_up_qsize_trigger": { + "type": "integer" + }, + "size_limit": { + "type": "integer" + }, + "size_limit_bytes": { + "type": "integer" + }, + "use_multipart_endpoint": { + "type": "boolean" + } + } + }, + "info.CustomerInfo": { + "type": "object", + "properties": { + "customer_id": { "type": "string" }, - "id": { + "customer_name": { "type": "string" + } + } + }, + "info.InfoGetResponse": { + "type": "object", + "properties": { + "batch_ingest_config": { + "$ref": "#/components/schemas/info.BatchIngestConfig" }, - "installation_id": { + "billing_installation_id": { + "description": "BillingInstallationID is the persistent per-installation identity for\nself-hosted deployments.", "type": "string" }, - "metadata": { - "type": "object" + "customer_info": { + "$ref": "#/components/schemas/info.CustomerInfo" }, - "organization_id": { + "git_sha": { "type": "string" }, - "provider": { - "type": "string" + "instance_flags": { + "type": "object", + "additionalProperties": {} }, - "updated_at": { + "license_expiration_time": { "type": "string" }, - "user_id": { + "sdk_versions": { + "$ref": "#/components/schemas/info.SDKVersions" + }, + "version": { "type": "string" } } }, - "github_app.Repository": { + "info.SDKVersions": { "type": "object", "properties": { - "default_branch": { + "max_go_sdk_version": { "type": "string" }, - "full_name": { + "max_java_sdk_version": { "type": "string" }, - "html_url": { + "max_js_sdk_version": { "type": "string" }, - "id": { - "type": "integer" - }, - "name": { + "max_python_sdk_version": { "type": "string" + } + } + }, + "integrations.AgentBuilderIntegrationsPayload": { + "type": "object", + "properties": { + "integration_catalog": { + "type": "array", + "items": { + "$ref": "#/components/schemas/integrations.IntegrationCatalogEntry" + } + }, + "integration_overrides": { + "type": "array", + "items": { + "$ref": "#/components/schemas/integrations.IntegrationOverride" + } + }, + "integrations_enabled_by_default": { + "type": "boolean" + } + } + }, + "integrations.AgentBuilderIntegrationsUpdatePayload": { + "type": "object", + "properties": { + "integration_overrides": { + "type": "array", + "items": { + "$ref": "#/components/schemas/integrations.IntegrationOverrideUpdate" + } }, - "private": { + "integrations_enabled_by_default": { "type": "boolean" } } }, - "github_app.TokenRequest": { + "integrations.IntegrationCatalogEntry": { "type": "object", "properties": { - "repository": { + "can_invoke": { + "type": "boolean" + }, + "display_name": { "type": "string" }, - "type": { + "id": { + "type": "string" + }, + "key": { "type": "string" } } }, - "github_app.UpdateUserConnectionRequest": { + "integrations.IntegrationOverride": { "type": "object", "properties": { - "actor_preference": { + "integration_key": { "type": "string" + }, + "is_enabled": { + "type": "boolean" } } }, - "github_app.UserAuthLinkResponse": { + "integrations.IntegrationOverrideUpdate": { "type": "object", "properties": { - "auth_url": { + "integration_key": { "type": "string" + }, + "is_enabled": { + "type": "boolean" } } }, - "github_app.UserConnectionMetadata": { + "issues.ErrorResponse": { "type": "object", "properties": { - "github_username": { + "error": { "type": "string" } } }, - "github_app.UserConnectionStatus": { + "issues.Issue": { "type": "object", "properties": { - "actor_preference": { + "actions": { + "type": "object" + }, + "auto_resolution_evidence": { + "type": "object" + }, + "auto_resolution_state": { + "description": "Nil unless eligible: \"auto_close\" or \"prompt\". Evidence carries the deciding gate.", "type": "string" }, - "is_connected": { - "type": "boolean" + "created_at": { + "type": "string" }, - "metadata": { - "$ref": "#/components/schemas/github_app.UserConnectionMetadata" + "description": { + "type": "string" }, - "type": { + "first_seen_at": { + "type": "string" + }, + "fix_branch": { + "type": "string" + }, + "fix_dispatched_at": { + "type": "string" + }, + "fix_pr_number": { + "type": "integer" + }, + "fix_prompt": { + "type": "string" + }, + "fix_verification": { + "type": "object" + }, + "id": { + "type": "string" + }, + "last_seen_at": { + "type": "string" + }, + "linear_context": { + "$ref": "#/components/schemas/issues.LinearContext" + }, + "linear_sync": { + "$ref": "#/components/schemas/issues.LinearSync" + }, + "name": { + "type": "string" + }, + "proposed_context_fixes": { + "type": "array", + "items": { + "type": "object" + } + }, + "proposed_examples": { + "type": "array", + "items": { + "type": "object" + } + }, + "proposed_fix": { + "type": "string" + }, + "proposed_prompt_fixes": { + "type": "array", + "items": { + "type": "object" + } + }, + "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" + }, + "session_id": { + "type": "string" + }, + "severity": { + "$ref": "#/components/schemas/issues.Severity" + }, + "status": { + "$ref": "#/components/schemas/issues.Status" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "tenant_id": { + "type": "string" + }, + "traces": { + "type": "object" + }, + "updated_at": { + "type": "string" + }, + "watching_since": { "type": "string" } } }, - "github_app.UserTokenResponse": { + "issues.LinearContext": { "type": "object", "properties": { - "expires_at": { + "github_pr_urls": { + "type": "array", + "items": { + "type": "string" + } + }, + "workflow_state": { + "type": "string" + } + } + }, + "issues.LinearSync": { + "type": "object", + "properties": { + "identifier": { "type": "string" }, - "token": { + "issue_id": { "type": "string" }, - "token_type": { + "last_attempted_at": { + "type": "string", + "format": "date-time" + }, + "last_error": { + "type": "string" + }, + "last_synced_at": { + "type": "string", + "format": "date-time" + }, + "linear_issue_id": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "pending", + "synced", + "failed", + "auth_required", + "paused" + ] + }, + "url": { "type": "string" } } }, - "hub_environments.CreateEnvironmentsRequest": { + "issues.ListViewsResponse": { "type": "object", - "required": [ - "environments" - ], "properties": { - "environments": { + "views": { "type": "array", - "maxItems": 4, - "minItems": 1, "items": { - "$ref": "#/components/schemas/hub_environments.EnvironmentEntry" + "$ref": "#/components/schemas/issues.ViewedIssue" } } } }, - "hub_environments.EnvironmentEntry": { - "type": "object", - "required": [ - "name" + "issues.Severity": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3 ], - "properties": { - "name": { - "type": "string", - "maxLength": 64, - "minLength": 1 - } - } + "x-enum-varnames": [ + "SeverityUrgent", + "SeverityHigh", + "SeverityMed", + "SeverityLow" + ] }, - "hub_environments.ErrorResponse": { + "issues.Status": { + "type": "string", + "enum": [ + "open", + "fixing", + "watching", + "completed", + "ignored" + ], + "x-enum-varnames": [ + "StatusOpen", + "StatusFixing", + "StatusWatching", + "StatusCompleted", + "StatusIgnored" + ] + }, + "issues.ViewedIssue": { "type": "object", "properties": { - "error": { + "issue_id": { + "type": "string" + }, + "viewed_at": { "type": "string" } } }, - "hub_environments.HubEnvironmentsModel": { + "mcp_vendors.ArcadeAccountOrg": { "type": "object", "properties": { - "environments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/hub_environments.EnvironmentEntry" - } + "is_default": { + "type": "boolean" }, - "id": { + "name": { + "type": "string" + }, + "organization_id": { "type": "string" } } }, - "hub_environments.UpdateEnvironmentsRequest": { + "mcp_vendors.ArcadeAccountProject": { "type": "object", - "required": [ - "environments" - ], "properties": { - "environments": { - "type": "array", - "maxItems": 4, - "items": { - "$ref": "#/components/schemas/hub_environments.EnvironmentEntry" - } + "is_default": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "organization_id": { + "type": "string" + }, + "project_id": { + "type": "string" } } }, - "integrations.AgentBuilderIntegrationsPayload": { + "mcp_vendors.ArcadeAccountResponseList": { "type": "object", "properties": { - "integration_catalog": { + "organizations": { "type": "array", "items": { - "$ref": "#/components/schemas/integrations.IntegrationCatalogEntry" + "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountOrg" } }, - "integration_overrides": { + "projects": { "type": "array", "items": { - "$ref": "#/components/schemas/integrations.IntegrationOverride" + "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountProject" } - }, - "integrations_enabled_by_default": { - "type": "boolean" } } }, - "integrations.AgentBuilderIntegrationsUpdatePayload": { + "mcp_vendors.ArcadeSettingsRequest": { "type": "object", "properties": { - "integration_overrides": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.IntegrationOverrideUpdate" - } + "organization_id": { + "type": "string" }, - "integrations_enabled_by_default": { - "type": "boolean" + "project_id": { + "type": "string" } } }, - "integrations.AuthMethod": { + "mcp_vendors.ArcadeSettingsResponse": { "type": "object", "properties": { - "provider_match": { - "$ref": "#/components/schemas/integrations.ProviderMatch" + "is_configured": { + "type": "boolean" }, - "type": { - "$ref": "#/components/schemas/integrations.AuthType" + "organization_id": { + "type": "string" + }, + "project_id": { + "type": "string" } } }, - "integrations.AuthType": { - "type": "string", - "enum": [ - "oauth2", - "headers", - "api_key", - "none" - ], - "x-enum-varnames": [ - "AuthTypeOAuth2", - "AuthTypeHeaders", - "AuthTypeAPIKey", - "AuthTypeNone" - ] - }, - "integrations.CreateRequest": { + "mcp_vendors.ErrorResponse": { "type": "object", - "required": [ - "name", - "url" - ], "properties": { - "category": { + "detail": { "type": "string" }, + "message": { + "type": "string" + } + } + }, + "mcp_vendors.GetMcpVendorResponse": { + "type": "object", + "properties": { "description": { "type": "string" }, - "icon_url": { + "icon": { "type": "string" }, "name": { "type": "string" }, - "source": { + "provider_id": { "type": "string" }, - "url": { + "settings": {}, + "status": { + "$ref": "#/components/schemas/mcp_vendors.McpVendorStatus" + }, + "vendor_id": { "type": "string" } } }, - "integrations.ErrorResponse": { + "mcp_vendors.ListMcpGatewaysResponse": { "type": "object", "properties": { - "code": { - "type": "string" + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/mcp_vendors.McpGateway" + } }, - "detail": { - "type": "string" + "limit": { + "type": "integer" }, - "status": { + "offset": { "type": "integer" }, - "type": { - "type": "string" + "page_count": { + "type": "integer" + }, + "total_count": { + "type": "integer" + } + } + }, + "mcp_vendors.ListMcpVendorsResponse": { + "type": "object", + "properties": { + "mcp_vendors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/mcp_vendors.McpVendor" + } } } }, - "integrations.Integration": { + "mcp_vendors.ListVendorToolsResponse": { "type": "object", "properties": { - "auth_methods": { + "limit": { + "type": "integer" + }, + "offset": { + "type": "integer" + }, + "tools": { "type": "array", "items": { - "$ref": "#/components/schemas/integrations.AuthMethod" + "$ref": "#/components/schemas/mcp_vendors.VendorTool" } }, - "category": { + "total": { + "type": "integer" + } + } + }, + "mcp_vendors.McpGateway": { + "type": "object", + "properties": { + "auth_type": { "type": "string" }, + "binding": { + "$ref": "#/components/schemas/mcp_vendors.McpGatewayBinding" + }, "created_at": { "type": "string" }, "description": { "type": "string" }, - "enabled": { - "type": "boolean" - }, - "icon_url": { + "id": { "type": "string" }, - "id": { + "instructions": { "type": "string" }, "name": { "type": "string" }, - "source": { + "slug": { "type": "string" }, - "transport": { - "$ref": "#/components/schemas/integrations.Transport" - }, - "updated_at": { + "status": { "type": "string" }, - "url": { + "tool_filter": { + "$ref": "#/components/schemas/mcp_vendors.McpGatewayToolFilter" + }, + "updated_at": { "type": "string" } } }, - "integrations.IntegrationCatalogEntry": { + "mcp_vendors.McpGatewayBinding": { "type": "object", "properties": { - "can_invoke": { - "type": "boolean" - }, - "display_name": { - "type": "string" - }, "id": { "type": "string" }, - "key": { + "type": { "type": "string" } } }, - "integrations.IntegrationOverride": { + "mcp_vendors.McpGatewayToolFilter": { "type": "object", "properties": { - "integration_key": { - "type": "string" - }, - "is_enabled": { - "type": "boolean" + "allowed_tools": { + "type": "array", + "items": { + "type": "string" + } } } }, - "integrations.IntegrationOverrideUpdate": { + "mcp_vendors.McpVendor": { "type": "object", "properties": { - "integration_key": { + "description": { "type": "string" }, - "is_enabled": { - "type": "boolean" - } - } - }, - "integrations.ListResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.Integration" - } + "icon": { + "type": "string" }, - "next_cursor": { + "name": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/mcp_vendors.McpVendorStatus" + }, + "vendor_id": { "type": "string" } } }, - "integrations.MatchBy": { + "mcp_vendors.McpVendorStatus": { "type": "string", "enum": [ - "kind", - "id" + "enabled", + "disabled" ], "x-enum-varnames": [ - "MatchByKind", - "MatchByID" + "McpVendorStatusEnabled", + "McpVendorStatusDisabled" ] }, - "integrations.ProviderMatch": { + "mcp_vendors.VendorTool": { "type": "object", "properties": { - "by": { - "$ref": "#/components/schemas/integrations.MatchBy" + "description": { + "type": "string" }, - "value": { + "name": { "type": "string" } } }, - "integrations.ReplaceAuthMethodsRequest": { + "oauth.AuthorizationServerMetadata": { "type": "object", "properties": { - "auth_methods": { + "authorization_endpoint": { + "type": "string" + }, + "code_challenge_methods_supported": { "type": "array", "items": { - "$ref": "#/components/schemas/integrations.AuthMethod" + "type": "string" } - } - } - }, - "integrations.Transport": { - "type": "string", - "enum": [ - "mcp_http" - ], - "x-enum-varnames": [ - "TransportMCPHTTP" - ] - }, - "integrations.UpdateRequest": { - "type": "object", - "properties": { - "category": { + }, + "device_authorization_endpoint": { "type": "string" }, - "description": { + "grant_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "issuer": { "type": "string" }, - "enabled": { + "jwks_uri": { + "type": "string" + }, + "protected_resources_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "registration_endpoint": { + "type": "string" + }, + "resource_parameter_supported": { "type": "boolean" }, - "icon_url": { + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "revocation_endpoint": { "type": "string" }, - "name": { + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint": { "type": "string" + }, + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + } } } }, - "issues_agent_usage.LCUSpendErrorResponse": { + "oauth.AuthorizedAppView": { "type": "object", "properties": { - "error": { + "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" + } } } }, - "issues_agent_usage.LCUSpendItem": { + "oauth.ClientPublicMetadata": { "type": "object", "properties": { - "lcu_total": { + "client_id": { "type": "string" }, - "lcu_unpriced_row_count": { - "type": "integer" + "client_name": { + "type": "string" }, - "session_id": { + "client_uri": { "type": "string" }, - "session_name": { + "logo_uri": { "type": "string" }, - "tenant_id": { + "policy_uri": { "type": "string" }, - "tenant_name": { + "tos_uri": { "type": "string" } } }, - "issues_agent_usage.LCUSpendResponse": { + "oauth.ClientRegistrationRequest": { "type": "object", "properties": { - "items": { + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "grant_types": { "type": "array", "items": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendItem" + "type": "string" } }, - "organization_id": { + "logo_uri": { "type": "string" }, - "period_end": { + "policy_uri": { "type": "string" }, - "period_start": { + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "response_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "scope": { + "type": "string" + }, + "token_endpoint_auth_method": { "type": "string" }, - "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.", + "tos_uri": { "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": { + "oauth.ClientRegistrationResponse": { "type": "object", - "required": [ - "name", - "url" - ], "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" + "client_id": { + "type": "string" + }, + "client_id_issued_at": { + "type": "integer" + }, + "client_name": { + "type": "string" }, - "external_system_id": { + "client_uri": { "type": "string" }, - "headers": { + "grant_types": { "type": "array", "items": { - "type": "object", - "additionalProperties": true + "type": "string" } }, - "name": { + "logo_uri": { "type": "string" }, - "oauth_mode": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.OAuthMode" - }, - "oauth_provider_id": { + "policy_uri": { "type": "string" }, - "url": { + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "response_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint_auth_method": { "type": "string" }, - "vendor_id": { + "tos_uri": { "type": "string" } } }, - "langchain_com_smith_fleet_mcp_servers.McpServer": { + "oauth.CreateOAuthClientRequest": { "type": "object", "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" + "allowed_scopes": { + "type": "array", + "items": { + "type": "string" + } }, - "can_invoke": { - "type": "boolean" + "client_name": { + "type": "string" }, - "created_at": { + "client_type": { + "description": "\"public\" or \"confidential\"", "type": "string" }, - "external_system_id": { + "client_uri": { "type": "string" }, - "headers": { + "grant_types": { "type": "array", "items": { - "type": "object", - "additionalProperties": true + "type": "string" } }, - "id": { - "type": "string" - }, - "mcp_vendor_id": { + "logo_uri": { "type": "string" }, - "name": { + "policy_uri": { "type": "string" }, - "oauth_mode": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.OAuthMode" + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } }, - "oauth_provider_id": { + "tos_uri": { "type": "string" - }, - "tenant_id": { + } + } + }, + "oauth.DeviceCodeResponse": { + "type": "object", + "properties": { + "device_code": { "type": "string" }, - "updated_at": { - "type": "string" + "expires_in": { + "type": "integer" }, - "url": { + "interval": { + "type": "integer" + }, + "user_code": { "type": "string" }, - "vendor_id": { + "verification_uri": { "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": { + "oauth.OAuthClientCredentialsResponse": { "type": "object", "properties": { - "ls_user_id": { - "description": "Deprecated: user identity is inferred from the authenticated request when available.", + "client": { + "$ref": "#/components/schemas/oauth.OAuthClientView" + }, + "client_secret": { "type": "string" } } }, - "langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse": { + "oauth.OAuthClientListResponse": { "type": "object", "properties": { - "oauth_provider_id": { + "clients": { + "type": "array", + "items": { + "$ref": "#/components/schemas/oauth.OAuthClientView" + } + } + } + }, + "oauth.OAuthClientView": { + "type": "object", + "properties": { + "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" + }, + "grant_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "tos_uri": { + "type": "string" + }, + "updated_at": { "type": "string" } } }, - "langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload": { + "oauth.OIDCProviderMetadata": { "type": "object", "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" + "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" + } }, - "headers": { + "scopes_supported": { "type": "array", "items": { - "type": "object", - "additionalProperties": true + "type": "string" } }, - "oauth_provider_id": { + "subject_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint": { "type": "string" }, - "url": { + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "userinfo_endpoint": { "type": "string" } } }, - "mcp_servers.McpServerAPIError": { + "oauth.TokenErrorResponse": { "type": "object", "properties": { - "detail": { + "error": { "type": "string" }, - "error": { + "error_description": { "type": "string" } } }, - "mcp_vendors.ArcadeAccountOrg": { + "oauth.TokenResponse": { "type": "object", "properties": { - "is_default": { - "type": "boolean" - }, - "name": { + "access_token": { "type": "string" }, - "organization_id": { + "expires_in": { + "type": "integer" + }, + "id_token": { "type": "string" - } - } - }, - "mcp_vendors.ArcadeAccountProject": { - "type": "object", - "properties": { - "is_default": { - "type": "boolean" }, - "name": { + "refresh_token": { "type": "string" }, - "organization_id": { + "token_type": { "type": "string" }, - "project_id": { + "workspace_id": { "type": "string" } } }, - "mcp_vendors.ArcadeAccountResponseList": { + "oauth.UpdateOAuthClientRequest": { "type": "object", "properties": { - "organizations": { + "allowed_scopes": { "type": "array", "items": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountOrg" + "type": "string" } }, - "projects": { - "type": "array", - "items": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountProject" - } - } - } - }, - "mcp_vendors.ArcadeSettingsRequest": { - "type": "object", - "properties": { - "organization_id": { + "client_name": { "type": "string" }, - "project_id": { + "client_uri": { "type": "string" - } - } - }, - "mcp_vendors.ArcadeSettingsResponse": { - "type": "object", - "properties": { - "is_configured": { + }, + "disabled": { "type": "boolean" }, - "organization_id": { + "logo_uri": { "type": "string" }, - "project_id": { - "type": "string" - } - } - }, - "mcp_vendors.ErrorResponse": { - "type": "object", - "properties": { - "detail": { + "policy_uri": { "type": "string" }, - "message": { + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "tos_uri": { "type": "string" } } }, - "mcp_vendors.GetMcpVendorResponse": { + "oauth.UserinfoResponse": { "type": "object", "properties": { - "description": { + "email": { "type": "string" }, - "icon": { + "email_verified": { + "type": "boolean" + }, + "ls_org_id": { "type": "string" }, - "name": { + "ls_org_name": { "type": "string" }, - "provider_id": { + "name": { "type": "string" }, - "settings": {}, - "status": { - "$ref": "#/components/schemas/mcp_vendors.McpVendorStatus" + "picture": { + "type": "string" }, - "vendor_id": { + "sub": { "type": "string" } } }, - "mcp_vendors.ListMcpGatewaysResponse": { + "orgs.LinkedLoginMethod": { "type": "object", "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/mcp_vendors.McpGateway" - } - }, - "limit": { - "type": "integer" - }, - "offset": { - "type": "integer" - }, - "page_count": { - "type": "integer" + "provider": { + "type": "string" }, - "total_count": { - "type": "integer" + "provisioning": { + "description": "provisioning_method", + "type": "string" } } }, - "mcp_vendors.ListMcpVendorsResponse": { + "orgs.ListOrgsResponse": { "type": "object", "properties": { - "mcp_vendors": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/mcp_vendors.McpVendor" + "$ref": "#/components/schemas/orgs.Org" } + }, + "next_cursor": { + "type": "string" } } }, - "mcp_vendors.ListVendorToolsResponse": { + "orgs.Org": { "type": "object", "properties": { - "limit": { - "type": "integer" - }, - "offset": { - "type": "integer" + "display_name": { + "type": "string" }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/mcp_vendors.VendorTool" - } + "id": { + "type": "string" }, - "total": { - "type": "integer" + "is_personal": { + "type": "boolean" } } }, - "mcp_vendors.McpGateway": { + "orgs.OrgMemberEnriched": { "type": "object", "properties": { - "auth_type": { + "avatar_url": { "type": "string" }, - "binding": { - "$ref": "#/components/schemas/mcp_vendors.McpGatewayBinding" - }, "created_at": { "type": "string" }, - "description": { + "display_name": { + "description": "auth-resolved display name", "type": "string" }, - "id": { + "email": { "type": "string" }, - "instructions": { + "id": { + "description": "identity_id or pending_identity_id", "type": "string" }, - "name": { + "is_disabled": { + "description": "user disabled", + "type": "boolean" + }, + "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" }, - "slug": { + "role_id": { + "description": "org role", "type": "string" }, - "status": { + "role_name": { + "description": "org role name", "type": "string" }, - "tool_filter": { - "$ref": "#/components/schemas/mcp_vendors.McpGatewayToolFilter" + "scim_groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.SCIMGroup" + } }, - "updated_at": { - "type": "string" + "workspace_memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.WorkspaceMembership" + } } } }, - "mcp_vendors.McpGatewayBinding": { + "orgs.OrganizationInfo": { "type": "object", "properties": { - "id": { - "type": "string" + "byoc_create_saas_workspace_enabled": { + "type": "boolean" }, - "type": { - "type": "string" - } - } - }, - "mcp_vendors.McpGatewayToolFilter": { - "type": "object", - "properties": { - "allowed_tools": { + "can_export_usage_backfill": { + "type": "boolean" + }, + "config": { + "$ref": "#/components/schemas/authn.OrganizationConfig" + }, + "default_sso_provision": { + "type": "boolean" + }, + "disabled": { + "type": "boolean" + }, + "disabled_model_providers": { "type": "array", "items": { "type": "string" } - } - } - }, - "mcp_vendors.McpVendor": { - "type": "object", - "properties": { - "description": { + }, + "display_name": { "type": "string" }, - "icon": { + "engine_enabled": { + "type": "boolean" + }, + "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" }, - "name": { + "id": { "type": "string" }, - "status": { - "$ref": "#/components/schemas/mcp_vendors.McpVendorStatus" + "invites_enabled": { + "type": "boolean" }, - "vendor_id": { - "type": "string" - } - } - }, - "mcp_vendors.McpVendorStatus": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ], - "x-enum-varnames": [ - "McpVendorStatusEnabled", - "McpVendorStatusDisabled" - ] - }, - "mcp_vendors.VendorTool": { - "type": "object", - "properties": { - "description": { - "type": "string" + "ip_allowlist": { + "type": "array", + "items": { + "type": "string" + } }, - "name": { - "type": "string" - } - } - }, - "mcptools.ErrorResponse": { - "type": "object", - "properties": { - "code": { + "ip_allowlist_enabled": { + "type": "boolean" + }, + "is_personal": { + "type": "boolean" + }, + "jit_provisioning_enabled": { + "type": "boolean" + }, + "llm_auth_proxy_allowed_urls": { + "type": "array", + "items": { + "type": "string" + } + }, + "llm_auth_proxy_enabled": { + "type": "boolean" + }, + "llm_auth_proxy_jwt_audience": { "type": "string" }, - "detail": { + "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" }, - "status": { + "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" }, - "type": { - "type": "string" - } - } - }, - "mcptools.ListToolsResponse": { - "type": "object", - "properties": { - "cached": { + "max_pat_expiry_days": { + "type": "integer" + }, + "max_service_key_expiry_days": { + "type": "integer" + }, + "member_disabled": { "type": "boolean" }, - "fetched_at": { - "type": "string" + "org_role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] }, - "tools": { + "org_role_name": { + "anyOf": [ + { + "allOf": [ + { + "$ref": "#/components/schemas/orgs.OrganizationRole" + } + ] + }, + { + "type": "null" + } + ] + }, + "pat_creation_disabled": { + "type": "boolean" + }, + "permissions": { "type": "array", "items": { - "$ref": "#/components/schemas/mcptools.Tool" + "type": "string" } + }, + "public_sharing_disabled": { + "type": "boolean" + }, + "reached_max_workspaces": { + "type": "boolean" + }, + "scim_group_name_separator": { + "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" } } }, - "mcptools.MCPErrorCode": { + "orgs.OrganizationRole": { "type": "string", "enum": [ - "auth_failed", - "unreachable", - "invalid_response" + "ORGANIZATION_ADMIN", + "ORGANIZATION_OPERATOR", + "ORGANIZATION_USER", + "ORGANIZATION_VIEWER", + "ORGANIZATION_RESTRICTED" ], "x-enum-varnames": [ - "MCPErrorCodeAuthFailed", - "MCPErrorCodeUnreachable", - "MCPErrorCodeInvalidResponse" + "OrganizationRoleAdmin", + "OrganizationRoleOperator", + "OrganizationRoleUser", + "OrganizationRoleViewer", + "OrganizationRoleRestricted" ] }, - "mcptools.Tool": { + "orgs.SCIMGroup": { "type": "object", "properties": { - "annotations": { - "type": "object", - "additionalProperties": {} - }, - "description": { + "created_at": { "type": "string" }, - "inputSchema": { - "type": "object", - "additionalProperties": {} - }, "name": { "type": "string" } } }, - "models.ErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "detail": { - "type": "string" - }, - "status": { - "type": "integer" - }, - "type": { - "type": "string" - } - } - }, - "models.FleetModel": { + "orgs.WorkspaceMembership": { "type": "object", "properties": { - "display_name": { - "type": "string" - }, - "id": { + "role_id": { "type": "string" }, - "is_default": { - "type": "boolean" - }, - "playground_settings_id": { + "role_name": { "type": "string" }, - "provider": { + "workspace_id": { "type": "string" }, - "required_secrets": { - "type": "array", - "items": { - "type": "string" - } - }, - "source": { + "workspace_name": { "type": "string" } } }, - "models.ListModelsResponse": { + "query.PublicSharedTraceRunsRequestBody": { "type": "object", "properties": { - "items": { + "selects": { + "description": "`selects` lists which public run properties to include on each returned run.", "type": "array", "items": { - "$ref": "#/components/schemas/models.FleetModel" - } - } - } - }, - "nps.SubmitResponseRequest": { - "type": "object", - "properties": { - "comment": { - "type": "string" - }, - "score": { - "type": "integer" + "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" + ] } } }, - "oauth.AuthorizationServerMetadata": { + "query.QueryRunsRequestBody": { "type": "object", "properties": { - "authorization_endpoint": { - "type": "string" + "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" }, - "code_challenge_methods_supported": { - "type": "array", - "items": { - "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))" }, - "device_authorization_endpoint": { - "type": "string" + "has_error": { + "description": "`has_error` filters to runs that errored (true) or completed without error (false).", + "type": "boolean", + "example": false }, - "grant_types_supported": { + "ids": { + "description": "`ids` optionally limits the request to these run UUIDs.", "type": "array", "items": { - "type": "string" - } - }, - "issuer": { - "type": "string" + "type": "string", + "format": "uuid" + }, + "example": [ + "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327", + "f47ac10b-58cc-4372-a567-0e02b2c3d479" + ] }, - "jwks_uri": { - "type": "string" + "is_root": { + "description": "`is_root` returns only root runs (true) or only non-root runs (false).", + "type": "boolean", + "example": true }, - "protected_resources_supported": { - "type": "array", - "items": { - "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" }, - "registration_endpoint": { - "type": "string" + "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" }, - "resource_parameter_supported": { - "type": "boolean" + "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 }, - "response_types_supported": { + "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" - } - }, - "revocation_endpoint": { - "type": "string" + "type": "string", + "format": "uuid" + }, + "example": [ + "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327", + "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" + ] }, - "scopes_supported": { + "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" + ] }, - "token_endpoint": { - "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_methods_supported": { + "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": { - "type": "string" - } - } - } - }, - "oauth.ClientPublicMetadata": { - "type": "object", - "properties": { - "client_id": { - "type": "string" - }, - "client_name": { - "type": "string" - }, - "client_uri": { - "type": "string" + "$ref": "#/components/schemas/query.RunSelectField" + }, + "example": [ + "ID", + "NAME", + "PROJECT_ID", + "START_TIME", + "RUN_TYPE", + "STATUS" + ] }, - "logo_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\")" }, - "policy_uri": { - "type": "string" + "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" }, - "tos_uri": { - "type": "string" + "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.ClientRegistrationRequest": { + "query.QueryRunsResponseBody": { "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": { + "items": { + "description": "`items` is the page of runs, sorted by `start_time` descending.", "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/query.RunResponse" } }, - "response_types": { + "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": { - "type": "string" + "$ref": "#/components/schemas/query.RunResponse" } - }, - "scope": { - "type": "string" - }, - "token_endpoint_auth_method": { - "type": "string" - }, - "tos_uri": { - "type": "string" } } }, - "oauth.ClientRegistrationResponse": { + "query.QueryTracesRequestBody": { "type": "object", "properties": { - "client_id": { + "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": "double" + } } } }, - "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": "double" + } } } }, - "orgs.OrgMemberEnriched": { + "query.RunPromptTokenDetails": { "type": "object", "properties": { - "avatar_url": { - "type": "string" - }, - "created_at": { - "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" }, - "display_name": { - "description": "auth-resolved display name", - "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\"}" + } }, - "email": { - "type": "string" + "completion_cost": { + "description": "`completion_cost` is estimated USD cost for the completion.", + "type": "number", + "example": 0.0003 }, - "id": { - "description": "identity_id or pending_identity_id", - "type": "string" + "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_disabled": { - "description": "user disabled", - "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" + } + ] }, - "is_pending": { - "description": "true for pending invitations", - "type": "boolean" + "completion_tokens": { + "description": "`completion_tokens` is the completion-side token count.", + "type": "integer", + "example": 150 }, - "linked_login_methods": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orgs.LinkedLoginMethod" - } + "dotted_order": { + "description": "`dotted_order` is the hierarchical ordering key for trace trees.", + "type": "string", + "example": "20240115T103000000000Z018e4c7ea9fb7ef0a5b66ea3a82e9327." }, - "ls_user_id": { - "description": "nil for pending members", - "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_id": { - "description": "org role", - "type": "string" + "error": { + "description": "`error` is the error message when `status` indicates failure.", + "type": "string", + "example": "context deadline exceeded" }, - "role_name": { - "description": "org role name", + "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" + "ls_user_id": { + "description": "`ls_user_id` identifies the LangSmith user whose credential traced the run. It is absent for runs traced with a service-account API key, which has no associated user.", + "type": "string", + "format": "uuid", + "example": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c" }, - "invites_enabled": { - "type": "boolean" + "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" }, - "ip_allowlist": { - "type": "array", - "items": { - "type": "string" - } + "metadata": { + "description": "`metadata` is arbitrary user-defined JSON metadata.", + "type": "object" }, - "ip_allowlist_enabled": { - "type": "boolean" + "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" }, - "is_personal": { - "type": "boolean" + "outputs": { + "description": "`outputs` is the run output payload (arbitrary JSON object).", + "type": "object" }, - "jit_provisioning_enabled": { - "type": "boolean" + "outputs_preview": { + "description": "`outputs_preview` is a truncated plain-text preview of outputs.", + "type": "string" }, - "llm_auth_proxy_allowed_urls": { + "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" + ] }, - "llm_auth_proxy_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" }, - "llm_auth_proxy_jwt_audience": { - "type": "string" + "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" }, - "marketplace_payouts_enabled": { - "type": "boolean" + "prompt_cost": { + "description": "`prompt_cost` is estimated USD cost for the prompt.", + "type": "number", + "example": 0.0002 }, - "max_api_key_expiry_days": { - "type": "integer" + "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" + } + ] }, - "max_pat_expiry_days": { - "type": "integer" + "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" + } + ] }, - "max_service_key_expiry_days": { - "type": "integer" + "prompt_tokens": { + "description": "`prompt_tokens` is the prompt-side token count.", + "type": "integer", + "example": 200 }, - "member_disabled": { - "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" }, - "pat_creation_disabled": { - "type": "boolean" + "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" }, - "permissions": { + "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" + }, + "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" + }, + "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" + }, + "status": { + "description": "`status` is the completion status of the run.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunStatus" + } + ], + "example": "SUCCESS" + }, + "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" + }, + "example": [ + "production", + "gpt-4" + ] }, - "scim_group_name_separator": { - "type": "string" + "thread_evaluation_time": { + "description": "`thread_evaluation_time` is thread-level evaluation timing (RFC3339 date-time), when recorded.", + "type": "string", + "format": "date-time" }, - "security_contact": { - "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_login_slug": { - "type": "string" + "total_cost": { + "description": "`total_cost` is total estimated USD cost (prompt plus completion).", + "type": "number", + "example": 0.000525 }, - "sso_only": { - "type": "boolean" + "total_tokens": { + "description": "`total_tokens` is prompt plus completion tokens.", + "type": "integer", + "example": 350 }, - "tier": { + "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" + } + } + }, + "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", + "LS_USER_ID" + ], + "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", + "RunSelectLsUserID" + ] + }, + "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": { + "url": { "type": "string" - }, - "workspace_admin_can_invite_to_org": { - "type": "boolean" } } }, - "orgs.SCIMGroup": { + "query.Trace": { "type": "object", "properties": { - "created_at": { - "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" + } + ] }, - "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" + } + ] } } }, - "orgs.WorkspaceMembership": { + "query.TraceAggregates": { "type": "object", "properties": { - "role_id": { - "type": "string" - }, - "role_name": { - "type": "string" + "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 +81844,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 +81958,16 @@ "sandboxapi.MountKind": { "type": "string", "enum": [ - "s3" + "s3", + "gcs", + "git", + "contexthub" ], "x-enum-varnames": [ - "MountKindS3" + "MountKindS3", + "MountKindGCS", + "MountKindGit", + "MountKindContextHub" ] }, "sandboxapi.MountSpec": { @@ -79879,13 +81975,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 +82005,10 @@ }, "type": { "enum": [ - "s3" + "s3", + "gcs", + "git", + "contexthub" ], "allOf": [ { @@ -79909,13 +82016,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 +82165,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 +82182,61 @@ "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", + "url" + ], + "properties": { + "auth_type": { + "type": "string", + "enum": [ + "DOCKER_CONFIG", + "AWS_ROLE" + ] + }, + "aws_role_arn": { + "type": "string" + }, "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 +82250,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,17 +82313,81 @@ "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": { "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" } } }, @@ -80189,6 +82451,126 @@ } } }, + "sandboxes.ExecStreamRequest": { + "type": "object", + "properties": { + "command": { + "description": "Command accepts either a shell command string or an argv string array.", + "type": "array", + "items": { + "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" + }, + "env": { + "type": "object", + "additionalProperties": { + "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.ExecStreamResumeRequest": { + "type": "object", + "properties": { + "command_id": { + "description": "CommandID names the command to attach to.", + "type": "string" + }, + "stderr_offset": { + "type": "integer" + }, + "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" + }, + "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" + } + } + }, "sandboxes.HeaderType": { "type": "string", "enum": [ @@ -80202,6 +82584,12 @@ "HeaderTypeWorkspaceSecret" ] }, + "sandboxes.Labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "sandboxes.ProxyAWSConfig": { "type": "object", "required": [ @@ -80229,6 +82617,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 +82636,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 +82694,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 +82719,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 +82765,121 @@ } } }, + "sandboxes.RegistryListResponse": { + "type": "object", + "properties": { + "offset": { + "type": "integer" + }, + "registries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.RegistryResponse" + } + } + } + }, + "sandboxes.RegistryResponse": { + "type": "object", + "properties": { + "auth_type": { + "type": "string", + "enum": [ + "DOCKER_CONFIG", + "AWS_ROLE" + ] + }, + "aws_role_arn": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "provider": { + "type": "string", + "enum": [ + "DOCKER_REGISTRY", + "HARBOR", + "GHCR", + "ECR", + "GAR", + "DOCKER_HUB" + ] + }, + "repository_search_mode": { + "type": "string", + "enum": [ + "GLOBAL", + "SCOPED", + "NONE" + ] + }, + "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 +82887,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 +82939,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 +83025,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 +83049,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 +83083,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 +83102,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 +83124,51 @@ "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": { + "auth_type": { + "type": "string", + "enum": [ + "DOCKER_CONFIG", + "AWS_ROLE" + ] + }, + "aws_role_arn": { + "type": "string" + }, + "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 +83176,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 +83282,9 @@ "created_at": { "type": "string" }, + "created_by": { + "type": "string" + }, "description": { "type": "string" }, @@ -80654,6 +83309,9 @@ "created_at": { "type": "string" }, + "created_by": { + "type": "string" + }, "description": { "type": "string" }, @@ -80682,26 +83340,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 +83357,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 +83371,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": { @@ -80876,385 +83558,950 @@ } } }, - "threads.BulkUpdateThreadResult": { + "tenants.ErrorResponse": { "type": "object", "properties": { - "error_code": { + "code": { "type": "string" }, - "id": { - "type": "string", - "format": "uuid" - }, - "message": { + "detail": { "type": "string" }, "status": { - "type": "string", - "enum": [ - "success", - "failure" - ] + "type": "integer" + }, + "type": { + "type": "string" } } }, - "threads.BulkUpdateThreadsRequest": { + "tenants.ListTenantsResponse": { "type": "object", "properties": { - "data": { - "$ref": "#/components/schemas/threads.UpdateThreadRequest" + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/tenants.Tenant" + } + }, + "next_cursor": { + "type": "string" + } + } + }, + "tenants.Tenant": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "data_plane_url": { + "type": "string" + }, + "id": { + "type": "string" + }, + "is_personal": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "organization_id": { + "type": "string" }, - "thread_ids": { + "permissions": { "type": "array", "items": { "type": "string" } + }, + "tenant_handle": { + "type": "string" } } }, - "threads.BulkUpdateThreadsResponse": { + "threads.PublicSharedThreadTraceRunsResponseBody": { "type": "object", + "required": [ + "items" + ], "properties": { - "results": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadResult" + "$ref": "#/components/schemas/query.RunResponse" } } } }, - "threads.CountResponse": { + "threads.QuerySingleThreadStatsResponseBody": { "type": "object", "properties": { - "attention_count": { + "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" + }, + "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" + } + ] + }, + "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" + } + ] + }, + "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" + }, + "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" + } + ] + }, + "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" + }, + "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", + "format": "date-time" + }, + "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" + }, + "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" + }, + "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" + }, + "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/query.RunPromptTokenDetails" + } + ] + }, + "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.CreateThreadAndRunRequest": { + "threads.QueryThreadStatsRequestBody": { "type": "object", + "required": [ + "project_id", + "select" + ], "properties": { - "agent_id": { + "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" + }, + "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" + }, + "project_id": { + "description": "`project_id` is the tracing project UUID.", + "type": "string", + "format": "uuid", + "example": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" + }, + "select": { + "description": "`select` lists the aggregate statistics to compute and return. At least one value is required.", + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/components/schemas/threads.ThreadStatsSelectField" + }, + "example": [ + "THREAD_COUNT", + "TRACE_COUNT", + "TOTAL_TOKENS", + "TOTAL_COST" + ] + }, + "thread_filter": { + "description": "`thread_filter` narrows eligible threads using a LangSmith filter expression evaluated against the complete thread summary.", + "type": "string", + "example": "gte(turn_count, 3)" + }, + "trace_filter": { + "description": "`trace_filter` narrows eligible threads to those containing a trace whose root run matches this LangSmith filter expression.", "type": "string", - "example": "11111111-1111-1111-1111-111111111111" + "example": "eq(status, \"error\")" }, - "thread": { - "$ref": "#/components/schemas/threads.CreateThreadAndRunThread" + "tree_filter": { + "description": "`tree_filter` narrows eligible threads to those containing a matching run anywhere in a trace tree.", + "type": "string", + "example": "has(tags, \"production\")" } } }, - "threads.CreateThreadAndRunThread": { + "threads.QueryThreadStatsResponseBody": { "type": "object", "properties": { - "if_exists": { - "type": "string", - "enum": [ - "do_nothing", - "raise" - ] + "completion_cost": { + "description": "`completion_cost` is the completion cost across matching traces in USD.", + "type": "number" }, - "metadata": { + "completion_cost_details": { + "description": "`completion_cost_details` contains completion-cost totals by category.", "type": "object", - "additionalProperties": {} + "additionalProperties": { + "type": "number", + "format": "double" + } }, - "options": { - "$ref": "#/components/schemas/threads.CreateThreadOptions" + "completion_token_details": { + "description": "`completion_token_details` contains completion-token totals by category.", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } }, - "thread_id": { - "type": "string", - "format": "uuid" + "completion_tokens": { + "description": "`completion_tokens` is the sum of completion tokens across matching traces.", + "type": "integer" + }, + "error_rate": { + "description": "`error_rate` is the fraction of matching traces that contain an error.", + "type": "number" + }, + "first_token_p50_seconds": { + "description": "`first_token_p50_seconds` is the approximate median time to first token in seconds. Populated when `FIRST_TOKEN_P50` is selected.", + "type": "number" + }, + "first_token_p99_seconds": { + "description": "`first_token_p99_seconds` is the approximate p99 time to first token in seconds. Populated when `FIRST_TOKEN_P99` is selected.", + "type": "number" + }, + "latency_p50_seconds": { + "description": "`latency_p50_seconds` is the approximate median trace latency in seconds. Populated when `LATENCY_P50` is selected.", + "type": "number" + }, + "latency_p99_seconds": { + "description": "`latency_p99_seconds` is the approximate p99 trace latency in seconds. Populated when `LATENCY_P99` is selected.", + "type": "number" + }, + "median_tokens": { + "description": "`median_tokens` is the approximate median of total tokens across matching traces. Populated when `MEDIAN_TOKENS` is selected.", + "type": "integer" + }, + "prompt_cost": { + "description": "`prompt_cost` is the prompt cost across matching traces in USD.", + "type": "number" + }, + "prompt_cost_details": { + "description": "`prompt_cost_details` contains prompt-cost totals by category.", + "type": "object", + "additionalProperties": { + "type": "number", + "format": "double" + } + }, + "prompt_token_details": { + "description": "`prompt_token_details` contains prompt-token totals by category.", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + }, + "prompt_tokens": { + "description": "`prompt_tokens` is the sum of prompt tokens across matching traces.", + "type": "integer" + }, + "streaming_rate": { + "description": "`streaming_rate` is the fraction of completed matching traces that streamed tokens.", + "type": "number" + }, + "thread_count": { + "description": "`thread_count` is the number of distinct threads matching the query. Populated when `THREAD_COUNT` is selected.", + "type": "integer" + }, + "thread_feedback_stats": { + "description": "`thread_feedback_stats` contains aggregate thread-level feedback statistics keyed by feedback key. Populated when `THREAD_FEEDBACK_STATS` is selected.", + "allOf": [ + { + "$ref": "#/components/schemas/query.RunFeedbackStats" + } + ] + }, + "total_cost": { + "description": "`total_cost` is the total cost across matching traces in USD.", + "type": "number" + }, + "total_tokens": { + "description": "`total_tokens` is the sum of all tokens across matching traces.", + "type": "integer" + }, + "trace_count": { + "description": "`trace_count` is the number of traces in the matching threads. Populated when `TRACE_COUNT` is selected.", + "type": "integer" } } }, - "threads.CreateThreadOptions": { + "threads.QueryThreadTracesResponseBody": { "type": "object", "properties": { - "skip_memory_write_protection": { - "description": "SkipMemoryWriteProtection lets runs on this thread bypass the default\nlong-term-memory write protection.", - "type": "boolean" + "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" + } }, - "test_run": { - "description": "TestRun marks the thread as a test run; filtered out of usage and analytics.", - "type": "boolean" + "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.CreateThreadRequest": { + "threads.QueryThreadsRequestBody": { "type": "object", "properties": { - "agent_id": { + "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" + }, + "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" + }, + "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", - "example": "11111111-1111-1111-1111-111111111111" + "format": "date-time" }, - "if_exists": { + "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", - "enum": [ - "do_nothing", - "raise" - ] + "format": "date-time" }, - "metadata": { - "type": "object", - "additionalProperties": {} + "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 }, - "options": { - "$ref": "#/components/schemas/threads.CreateThreadOptions" + "project_id": { + "description": "`project_id` is the tracing project UUID.", + "type": "string", + "format": "uuid", + "example": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" }, - "thread_id": { + "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", - "format": "uuid" + "example": "gte(turn_count, 3)" + }, + "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\")" + }, + "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\")" + } + } + }, + "threads.QueryThreadsResponseBody": { + "type": "object", + "properties": { + "items": { + "description": "`items` is the page of thread summaries, sorted by the thread's most recent activity.", + "type": "array", + "items": { + "$ref": "#/components/schemas/threads.ThreadListItem" + } + }, + "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.ErrorResponse": { + "threads.SandboxActivationProblem": { "type": "object", + "required": [ + "code", + "detail", + "status", + "title", + "type" + ], "properties": { "code": { - "type": "string" + "type": "string", + "example": "sandbox_not_ready" }, "detail": { - "type": "string" + "type": "string", + "example": "The thread does not have a sandbox slug to activate." }, "status": { - "type": "integer" + "type": "integer", + "example": 409 + }, + "title": { + "type": "string", + "example": "Conflict" }, "type": { - "type": "string" + "type": "string", + "example": "about:blank" } } }, - "threads.ListThreadsResponse": { + "threads.SandboxRef": { "type": "object", + "required": [ + "sandbox_slug", + "scope", + "status" + ], "properties": { - "next_cursor": { - "type": "string" + "sandbox_slug": { + "type": "string", + "example": "sandbox-abc123" }, - "threads": { - "type": "array", - "items": { - "$ref": "#/components/schemas/threads.ThreadSummary" - } - } - } - }, - "threads.OptionalField-bool": { - "type": "object", - "properties": { - "set": { - "type": "boolean" + "scope": { + "enum": [ + "agent", + "thread" + ], + "allOf": [ + { + "$ref": "#/components/schemas/threads.SandboxScope" + } + ], + "example": "agent" }, - "value": { - "type": "boolean" + "status": { + "enum": [ + "provisioning", + "ready", + "failed", + "stopped", + "deleting" + ], + "allOf": [ + { + "$ref": "#/components/schemas/threads.SandboxStatus" + } + ], + "example": "ready" } } }, - "threads.OptionalField-string": { + "threads.SandboxScope": { + "type": "string", + "enum": [ + "agent", + "thread" + ], + "x-enum-varnames": [ + "SandboxScopeAgent", + "SandboxScopeThread" + ] + }, + "threads.SandboxStatus": { + "type": "string", + "enum": [ + "provisioning", + "ready", + "failed", + "stopped", + "deleting" + ], + "x-enum-varnames": [ + "SandboxStatusProvisioning", + "SandboxStatusReady", + "SandboxStatusFailed", + "SandboxStatusStopped", + "SandboxStatusDeleting" + ] + }, + "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": { - "set": { - "type": "boolean" + "count": { + "description": "`count` is how many root traces (conversation turns) fall in this thread for the query time range.", + "type": "integer", + "example": 3 }, - "value": { + "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" - } - } - }, - "threads.Thread": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "format": "uuid" }, - "created_at": { + "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": "date-time" + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "id": { - "type": "string", - "format": "uuid" + "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" }, - "metadata": { - "type": "object", - "additionalProperties": {} + "last_outputs": { + "description": "`last_outputs` is a truncated preview of outputs from the latest trace in the thread for the query window.", + "type": "string" }, - "status": { + "last_trace_id": { + "description": "`last_trace_id` is the root trace UUID for the chronologically last trace in the query time window.", "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ] + "format": "uuid", + "example": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - }, - "threads.ThreadDetail": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "format": "uuid" + "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 }, - "config": { - "type": "object", - "additionalProperties": {} + "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 }, - "created_at": { + "max_start_time": { + "description": "`max_start_time` is the latest trace start time in the thread (RFC3339 date-time).", "type": "string", - "format": "date-time" + "format": "date-time", + "example": "2025-01-15T12:05:00.000Z" }, - "error": {}, - "id": { + "min_start_time": { + "description": "`min_start_time` is the earliest trace start time in the thread (RFC3339 date-time).", "type": "string", - "format": "uuid" - }, - "interrupts": { - "type": "object", - "additionalProperties": {} - }, - "metadata": { - "type": "object", - "additionalProperties": {} + "format": "date-time", + "example": "2025-01-15T12:00:00.000Z" }, - "state_updated_at": { - "type": "string", - "format": "date-time" + "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 }, - "status": { + "start_time": { + "description": "`start_time` is a reference start time for this row (RFC3339 date-time), such as for sorting.", "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ] + "format": "date-time", + "example": "2025-01-15T12:00:00.000Z" }, "thread_id": { + "description": "`thread_id` identifies this conversation thread within the project from the request body `project_id`.", "type": "string", - "format": "uuid" + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "title": { - "type": "string" + "total_cost": { + "description": "`total_cost` is the sum of estimated USD cost across those traces.", + "type": "number", + "example": 0.045 }, - "updated_at": { - "type": "string", - "format": "date-time" + "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": { + "type": "number", + "format": "double" + } }, - "values": { + "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": {} + "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" } } }, - "threads.ThreadSummary": { + "threads.ThreadStatsSelectField": { + "type": "string", + "enum": [ + "THREAD_COUNT", + "TRACE_COUNT", + "TOTAL_TOKENS", + "TOTAL_COST", + "ERROR_RATE", + "STREAMING_RATE", + "LATENCY_P50", + "LATENCY_P99", + "MEDIAN_TOKENS", + "FIRST_TOKEN_P50", + "FIRST_TOKEN_P99", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "PROMPT_COST", + "COMPLETION_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "THREAD_FEEDBACK_STATS" + ], + "x-enum-varnames": [ + "ThreadStatsSelectThreadCount", + "ThreadStatsSelectTraceCount", + "ThreadStatsSelectTotalTokens", + "ThreadStatsSelectTotalCost", + "ThreadStatsSelectErrorRate", + "ThreadStatsSelectStreamingRate", + "ThreadStatsSelectLatencyP50", + "ThreadStatsSelectLatencyP99", + "ThreadStatsSelectMedianTokens", + "ThreadStatsSelectFirstTokenP50", + "ThreadStatsSelectFirstTokenP99", + "ThreadStatsSelectPromptTokens", + "ThreadStatsSelectCompletionTokens", + "ThreadStatsSelectPromptCost", + "ThreadStatsSelectCompletionCost", + "ThreadStatsSelectPromptTokenDetails", + "ThreadStatsSelectCompletionTokenDetails", + "ThreadStatsSelectPromptCostDetails", + "ThreadStatsSelectCompletionCostDetails", + "ThreadStatsSelectThreadFeedbackStats" + ] + }, + "threads.ThreadTraceListItem": { "type": "object", "properties": { - "agent_id": { + "completion_cost": { + "description": "`completion_cost` is the estimated USD cost for the completion. Omitted unless included in `selects`.", + "type": "number" + }, + "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" + } + ] + }, + "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" + } + ] + }, + "completion_tokens": { + "description": "`completion_tokens` is the completion-side token count. Omitted unless included in `selects`.", + "type": "integer" + }, + "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": "uuid" + "format": "date-time", + "example": "2025-01-15T12:00:01.500Z" }, - "created_at": { + "error": { + "description": "`error` is the full root run error message when the run failed. Omitted unless included in `selects`.", "type": "string", - "format": "date-time" + "example": "context deadline exceeded" }, - "has_interrupts": { - "type": "boolean" + "error_preview": { + "description": "`error_preview` is a short error summary when the run failed. Omitted unless included in `selects`.", + "type": "string" }, - "id": { + "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": "uuid" + "format": "date-time", + "example": "2024-01-15T10:30:00.312Z" }, - "metadata": { - "type": "object", - "additionalProperties": {} + "inputs": { + "description": "`inputs` is the full root run input payload. Omitted unless included in `selects`.", + "type": "object" }, - "state_updated_at": { - "type": "string", - "format": "date-time" + "inputs_preview": { + "description": "`inputs_preview` is a truncated text preview of inputs. Omitted unless included in `selects`.", + "type": "string" }, - "status": { - "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ] + "latency": { + "description": "`latency` is wall-clock duration from start to end in seconds. Omitted unless included in `selects`.", + "type": "number" }, - "title": { + "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" }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - }, - "threads.UpdateThreadMetadata": { - "type": "object", - "properties": { - "is_pinned": { - "$ref": "#/components/schemas/threads.OptionalField-bool" + "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" }, - "is_test_run": { - "$ref": "#/components/schemas/threads.OptionalField-bool" + "outputs": { + "description": "`outputs` is the full root run output payload. Omitted unless included in `selects`.", + "type": "object" }, - "read_status": { - "$ref": "#/components/schemas/threads.OptionalField-bool" + "outputs_preview": { + "description": "`outputs_preview` is a truncated text preview of outputs. Omitted unless included in `selects`.", + "type": "string" }, - "sandbox_recreated_at": { - "format": "date-time", + "prompt_cost": { + "description": "`prompt_cost` is the estimated USD cost for the prompt. Omitted unless included in `selects`.", + "type": "number" + }, + "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" + } + ] + }, + "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/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 prompt-side token count. Omitted unless included in `selects`.", + "type": "integer" + }, + "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" + }, + "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" + }, + "total_cost": { + "description": "`total_cost` is the estimated total USD cost for the root run. Omitted unless included in `selects`.", + "type": "number" + }, + "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" } } }, - "threads.UpdateThreadRequest": { + "threads.ThreadTraceSelectField": { + "type": "string", + "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" + ], + "x-enum-varnames": [ + "ThreadTraceSelectThreadID", + "ThreadTraceSelectTraceID", + "ThreadTraceSelectOp", + "ThreadTraceSelectPromptTokens", + "ThreadTraceSelectCompletionTokens", + "ThreadTraceSelectTotalTokens", + "ThreadTraceSelectStartTime", + "ThreadTraceSelectEndTime", + "ThreadTraceSelectLatency", + "ThreadTraceSelectFirstTokenTime", + "ThreadTraceSelectInputsPreview", + "ThreadTraceSelectOutputsPreview", + "ThreadTraceSelectInputs", + "ThreadTraceSelectOutputs", + "ThreadTraceSelectError", + "ThreadTraceSelectPromptCost", + "ThreadTraceSelectCompletionCost", + "ThreadTraceSelectTotalCost", + "ThreadTraceSelectPromptTokenDetails", + "ThreadTraceSelectCompletionTokenDetails", + "ThreadTraceSelectPromptCostDetails", + "ThreadTraceSelectCompletionCostDetails", + "ThreadTraceSelectName", + "ThreadTraceSelectErrorPreview" + ] + }, + "threadshare.CreateShareTokenRequestBody": { "type": "object", + "required": [ + "project_id" + ], "properties": { - "metadata": { - "$ref": "#/components/schemas/threads.UpdateThreadMetadata" - }, - "title": { - "$ref": "#/components/schemas/threads.OptionalField-string" + "project_id": { + "description": "project_id is the tracing project UUID containing the thread.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" } } }, - "threads.UpdateThreadResponse": { + "threadshare.ShareTokenResponseBody": { "type": "object", "properties": { - "agent_id": { - "type": "string", - "format": "uuid" - }, - "created_at": { + "share_token": { "type": "string", - "format": "date-time" - }, - "id": { + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + } + } + }, + "threadshare.ThreadManifest": { + "type": "object", + "required": [ + "session_id", + "session_name", + "thread_id" + ], + "properties": { + "session_id": { "type": "string", "format": "uuid" }, - "metadata": { - "$ref": "#/components/schemas/threads.UpdateThreadMetadata" - }, - "title": { + "session_name": { "type": "string" }, - "updated_at": { - "type": "string", - "format": "date-time" + "thread_id": { + "type": "string" } } }, @@ -81363,310 +84610,26 @@ "tools.UpdateToolPayload": { "type": "object", "properties": { - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "metadata": { - "type": "object", - "additionalProperties": true - }, - "name": { - "type": "string" - }, - "parameters": { - "type": "object", - "additionalProperties": true - }, - "returns": { - "type": "object", - "additionalProperties": true - } - } - }, - "tracer_session_issues.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - }, - "tracer_session_issues.Issue": { - "type": "object", - "properties": { - "actions": { - "type": "object" - }, - "created_at": { - "type": "string" - }, - "description": { - "type": "string" - }, - "first_seen_at": { - "type": "string" - }, - "fix_branch": { - "type": "string" - }, - "fix_dispatched_at": { - "type": "string" - }, - "fix_pr_number": { - "type": "integer" - }, - "fix_prompt": { - "type": "string" - }, - "id": { - "type": "string" - }, - "last_seen_at": { - "type": "string" - }, - "name": { - "type": "string" - }, - "proposed_context_fixes": { - "type": "array", - "items": { - "type": "object" - } - }, - "proposed_examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "proposed_fix": { - "type": "string" - }, - "proposed_prompt_fixes": { - "type": "array", - "items": { - "type": "object" - } - }, - "session_id": { - "type": "string" - }, - "severity": { - "$ref": "#/components/schemas/tracer_session_issues.Severity" - }, - "status": { - "$ref": "#/components/schemas/tracer_session_issues.Status" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "tenant_id": { - "type": "string" - }, - "traces": { - "type": "object" - }, - "updated_at": { - "type": "string" - } - } - }, - "tracer_session_issues.ListViewsResponse": { - "type": "object", - "properties": { - "views": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues.ViewedIssue" - } - } - } - }, - "tracer_session_issues.Severity": { - "type": "integer", - "enum": [ - 0, - 1, - 2, - 3 - ], - "x-enum-varnames": [ - "SeverityUrgent", - "SeverityHigh", - "SeverityMed", - "SeverityLow" - ] - }, - "tracer_session_issues.Status": { - "type": "string", - "enum": [ - "open", - "completed", - "ignored" - ], - "x-enum-varnames": [ - "StatusOpen", - "StatusCompleted", - "StatusIgnored" - ] - }, - "tracer_session_issues.ViewedIssue": { - "type": "object", - "properties": { - "issue_id": { - "type": "string" - }, - "viewed_at": { - "type": "string" - } - } - }, - "tracer_session_issues_agent.CreateIssuesAgentRequest": { - "type": "object", - "properties": { - "context_hub_repo_handle": { - "type": "string" - }, - "github_base_branch": { - "type": "string" - }, - "github_repo_subdir": { - "type": "string" - }, - "github_repo_url": { - "type": "string" - }, - "priorities": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "tracer_session_issues_agent.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - }, - "tracer_session_issues_agent.IssuesAgent": { - "type": "object", - "properties": { - "agent_overview_accepted": { - "type": "boolean" - }, - "context_hub_repo_handle": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "cron_enabled": { - "type": "boolean" - }, - "cron_schedule": { - "type": "string" - }, - "github_base_branch": { - "type": "string" - }, - "github_repo_subdir": { - "type": "string" - }, - "github_repo_url": { - "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" - } - }, - "session_agent_overview_repo_id": { - "type": "string" - }, - "session_id": { - "type": "string" - }, - "session_name": { - "description": "JOINed from tracer_session", - "type": "string" - }, - "tenant_id": { - "type": "string" - }, - "updated_at": { - "type": "string" - } - } - }, - "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": { - "type": "object", - "properties": { - "agent_overview_accepted": { - "type": "boolean" - }, - "context_hub_repo_handle": { - "type": "string" - }, - "cron_enabled": { - "type": "boolean" - }, - "github_base_branch": { + "description": { "type": "string" }, - "github_repo_subdir": { - "type": "string" + "enabled": { + "type": "boolean" }, - "github_repo_url": { + "metadata": { + "type": "object", + "additionalProperties": true + }, + "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 +84639,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 +84712,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 +84732,561 @@ } } }, - "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" + "name": { + "type": "string", + "example": "Ada Lovelace" } } }, - "ttl_settings.UpdateTTLSettingsRequest": { - "type": "object", + "directory.LatestSelector": { + "additionalProperties": false, "properties": { - "longlived_ttl_days": { - "type": "integer" + "type": { + "enum": [ + "LATEST" + ], + "type": "string" } - } + }, + "required": [ + "type" + ], + "type": "object" }, - "usage.AgentUsage": { - "type": "object", + "directory.CommitSelector": { + "additionalProperties": false, "properties": { - "agent_name": { + "type": { + "enum": [ + "COMMIT" + ], + "type": "string" + }, + "commit_id": { + "format": "uuid", "type": "string" + } + }, + "required": [ + "type", + "commit_id" + ], + "type": "object" + }, + "directory.DirectorySelector": { + "discriminator": { + "propertyName": "type", + "mapping": { + "LATEST": "#/components/schemas/directory.LatestSelector", + "COMMIT": "#/components/schemas/directory.CommitSelector" + } + }, + "oneOf": [ + { + "$ref": "#/components/schemas/directory.LatestSelector" }, - "assistant_id": { + { + "$ref": "#/components/schemas/directory.CommitSelector" + } + ] + }, + "directory.AgentEntryInput": { + "additionalProperties": false, + "not": { + "required": [ + "selector", + "commit_id" + ] + }, + "properties": { + "type": { + "enum": [ + "agent" + ], "type": "string" }, - "first_used": { + "repo_handle": { "type": "string" }, - "last_used": { + "commit_id": { + "deprecated": true, + "description": "Deprecated write input. It is accepted for compatibility but ignored for selection, so the link resolves as LATEST. Omit it for LATEST or replace it with selector {\"type\": \"COMMIT\", \"commit_id\": \"\"} to pin a commit. commit_id and selector are mutually exclusive.", + "format": "uuid", "type": "string" }, - "model_name": { + "selector": { + "$ref": "#/components/schemas/directory.DirectorySelector", + "description": "How to select the linked commit. Omit this field to use LATEST." + } + }, + "required": [ + "type", + "repo_handle" + ], + "type": "object" + }, + "directory.SkillEntryInput": { + "additionalProperties": false, + "not": { + "required": [ + "selector", + "commit_id" + ] + }, + "properties": { + "type": { + "enum": [ + "skill" + ], "type": "string" }, - "owner_email": { + "repo_handle": { "type": "string" }, - "run_count": { - "type": "integer" + "commit_id": { + "deprecated": true, + "description": "Deprecated write input. It is accepted for compatibility but ignored for selection, so the link resolves as LATEST. Omit it for LATEST or replace it with selector {\"type\": \"COMMIT\", \"commit_id\": \"\"} to pin a commit. commit_id and selector are mutually exclusive.", + "format": "uuid", + "type": "string" }, - "total_cost": { - "type": "number" + "selector": { + "$ref": "#/components/schemas/directory.DirectorySelector", + "description": "How to select the linked commit. Omit this field to use LATEST." } - } + }, + "required": [ + "type", + "repo_handle" + ], + "type": "object" }, - "usage.AgentUsageResponse": { - "type": "object", + "directory.FileEntry": { + "additionalProperties": false, "properties": { - "agents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.AgentUsage" - } + "type": { + "enum": [ + "file" + ], + "type": "string" + }, + "content": { + "type": "string" } - } + }, + "required": [ + "type", + "content" + ], + "type": "object" }, - "usage.ModelUsage": { - "type": "object", + "directory.DirectoryEntryInput": { + "discriminator": { + "propertyName": "type", + "mapping": { + "file": "#/components/schemas/directory.FileEntry", + "agent": "#/components/schemas/directory.AgentEntryInput", + "skill": "#/components/schemas/directory.SkillEntryInput" + } + }, + "oneOf": [ + { + "$ref": "#/components/schemas/directory.FileEntry" + }, + { + "$ref": "#/components/schemas/directory.AgentEntryInput" + }, + { + "$ref": "#/components/schemas/directory.SkillEntryInput" + } + ] + }, + "directory.AgentEntryOutput": { + "additionalProperties": false, "properties": { - "last_used": { + "type": { + "enum": [ + "agent" + ], "type": "string" }, - "model_name": { + "repo_handle": { "type": "string" }, - "run_count": { - "type": "integer" + "owner": { + "type": "string" }, - "total_cost": { - "type": "number" + "commit_hash": { + "type": "string" + }, + "selector": { + "$ref": "#/components/schemas/directory.DirectorySelector", + "description": "The authored selection policy for this linked directory." } - } + }, + "required": [ + "type", + "repo_handle", + "owner", + "commit_hash" + ], + "type": "object" }, - "usage.ModelUsageResponse": { - "type": "object", + "directory.SkillEntryOutput": { + "additionalProperties": false, "properties": { - "models": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.ModelUsage" - } + "type": { + "enum": [ + "skill" + ], + "type": "string" + }, + "repo_handle": { + "type": "string" + }, + "owner": { + "type": "string" + }, + "commit_hash": { + "type": "string" + }, + "selector": { + "$ref": "#/components/schemas/directory.DirectorySelector", + "description": "The authored selection policy for this linked directory." } - } + }, + "required": [ + "type", + "repo_handle", + "owner", + "commit_hash" + ], + "type": "object" + }, + "directory.DirectoryEntryOutput": { + "discriminator": { + "propertyName": "type", + "mapping": { + "file": "#/components/schemas/directory.FileEntry", + "agent": "#/components/schemas/directory.AgentEntryOutput", + "skill": "#/components/schemas/directory.SkillEntryOutput" + } + }, + "oneOf": [ + { + "$ref": "#/components/schemas/directory.FileEntry" + }, + { + "$ref": "#/components/schemas/directory.AgentEntryOutput" + }, + { + "$ref": "#/components/schemas/directory.SkillEntryOutput" + } + ] }, - "usage.ToolUsage": { + "sandboxapi.S3BucketMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "s3" + ], "properties": { - "agent_count": { - "type": "integer" + "cache": { + "$ref": "#/components/schemas/sandboxapi.MountCacheSpec" }, - "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" + "s3": { + "$ref": "#/components/schemas/sandboxapi.S3MountSpec" + }, + "type": { + "enum": [ + "s3" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } + }, + "not": { + "anyOf": [ + { + "required": [ + "gcs" + ] + }, + { + "required": [ + "git" + ] + }, + { + "required": [ + "contexthub" + ] + } + ] } }, - "usage.ToolUsageResponse": { + "sandboxapi.GCSBucketMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "gcs" + ], "properties": { - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.ToolUsage" - } + "cache": { + "$ref": "#/components/schemas/sandboxapi.MountCacheSpec" + }, + "gcs": { + "$ref": "#/components/schemas/sandboxapi.GCSMountSpec" + }, + "id": { + "type": "string", + "maxLength": 64 + }, + "mount_path": { + "type": "string" + }, + "read_only": { + "type": "boolean" + }, + "type": { + "enum": [ + "gcs" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } + }, + "not": { + "anyOf": [ + { + "required": [ + "s3" + ] + }, + { + "required": [ + "git" + ] + }, + { + "required": [ + "contexthub" + ] + } + ] } }, - "usage.UserUsage": { + "sandboxapi.GitRepoMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "git" + ], "properties": { - "agent_count": { - "type": "integer" - }, - "first_used": { - "type": "string" + "git": { + "$ref": "#/components/schemas/sandboxapi.GitMountSpec" }, - "last_used": { - "type": "string" - }, - "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": [ + "git" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } + }, + "not": { + "anyOf": [ + { + "required": [ + "s3" + ] + }, + { + "required": [ + "gcs" + ] + }, + { + "required": [ + "contexthub" + ] + } + ] } }, - "usage.UserUsageResponse": { + "sandboxapi.ContextHubRepoMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "contexthub" + ], "properties": { - "users": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.UserUsage" - } + "contexthub": { + "$ref": "#/components/schemas/sandboxapi.ContextHubMountSpec" + }, + "id": { + "type": "string", + "maxLength": 64 + }, + "mount_path": { + "type": "string" + }, + "read_only": { + "type": "boolean" + }, + "type": { + "enum": [ + "contexthub" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } + }, + "not": { + "anyOf": [ + { + "required": [ + "s3" + ] + }, + { + "required": [ + "gcs" + ] + }, + { + "required": [ + "git" + ] + } + ] } } }, @@ -82252,81 +85564,24 @@ "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": "threads", + "x-group": "System" }, { - "name": "fleet github-app", - "x-hidden": true + "name": "fleet orgs" }, { - "name": "fleet integrations", - "x-hidden": true + "name": "fleet secrets" }, { - "name": "fleet mcp", - "x-hidden": true + "name": "fleet tenants" }, { "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": "metrics", - "x-hidden": true - }, - { - "name": "nps", - "x-hidden": true - }, - { - "name": "sandboxes-internal", - "x-hidden": true - }, - { - "name": "skills", - "x-hidden": true + "name": "fleet users" } ] }