diff --git a/src/langsmith/langsmith-platform-openapi.json b/src/langsmith/langsmith-platform-openapi.json index 87292f07e2..209c01dba5 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": { @@ -7912,97 +7799,6 @@ } } }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/datasets/playground_experiment/batch": { - "post": { - "tags": [ - "datasets" - ], - "summary": "Dataset Handler", - "operationId": "dataset_handler_api_v1_datasets_playground_experiment_batch_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PlaygroundRunOverDatasetBatchRequestSchema" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "title": "Response Dataset Handler Api V1 Datasets Playground Experiment Batch Post" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] - } - }, - "/api/v1/datasets/playground_experiment/stream": { - "post": { - "tags": [ - "datasets" - ], - "summary": "Stream Dataset Handler", - "operationId": "stream_dataset_handler_api_v1_datasets_playground_experiment_stream_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PlaygroundRunOverDatasetRequestSchema" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", @@ -8023,17 +7819,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/datasets/studio_experiment": { @@ -8085,7 +7871,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/rules": { @@ -8271,7 +8058,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -8322,7 +8110,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/validate": { @@ -8380,7 +8169,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/rules/{rule_id}": { @@ -8445,7 +8235,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -8496,7 +8287,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/threads/{thread_id}": { @@ -8598,7 +8390,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/logs": { @@ -8731,7 +8524,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/logs/v2": { @@ -8875,7 +8669,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/last_applied": { @@ -8940,7 +8735,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/trigger": { @@ -8979,9 +8775,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/RunRulesSchema" - } + "schema": {} } } }, @@ -8995,7 +8789,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/trigger": { @@ -9046,7 +8841,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/{run_id}": { @@ -9057,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": [] @@ -9165,15 +8962,10 @@ } } } - } + }, + "x-public": true }, "patch": { - "tags": [ - "run" - ], - "summary": "Update Run", - "description": "Update a run.", - "operationId": "update_run_api_v1_runs__run_id__patch", "security": [ { "API Key": [] @@ -9185,37 +8977,120 @@ "Bearer Auth": [] } ], + "description": "Updates a run identified by its ID. The body should contain only the fields to be changed; unknown fields are ignored.", + "tags": [ + "runs" + ], + "summary": "Update a Run", "parameters": [ { + "description": "Run ID", "name": "run_id", "in": "path", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Run Id" + "format": "uuid" } } ], "responses": { - "200": { - "description": "Successful Response", + "202": { + "description": "Run updated", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } } } }, "422": { - "description": "Validation Error", + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/HTTPValidationError" + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.Run" + } + } + } } } }, @@ -9227,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": [] @@ -9279,7 +9155,8 @@ } } } - } + }, + "x-public": true }, "put": { "tags": [ @@ -9288,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": [] @@ -9332,7 +9210,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -9341,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": [] @@ -9383,7 +9263,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/query/validate": { @@ -9425,7 +9306,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/query": { @@ -9467,6 +9349,7 @@ } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -9477,7 +9360,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/generate-query": { @@ -9530,7 +9414,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/stats": { @@ -9594,27 +9479,121 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs": { "post": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Queues a single run for ingestion. The request body must be a JSON-encoded run object that follows the Run schema.", "tags": [ - "run" + "runs" ], - "summary": "Create Run Proxy", - "description": "Create a new run.", - "operationId": "create_run_proxy_api_v1_runs_post", + "summary": "Create a Run", + "parameters": [], "responses": { "202": { - "description": "Successful Response", + "description": "Run created", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } } } } }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.Run" + } + } + } + } + } + }, + "/api/v1/runs/batch": { + "post": { "security": [ { "API Key": [] @@ -9625,27 +9604,129 @@ { "Bearer Auth": [] } - ] - } - }, - "/api/v1/runs/batch": { - "post": { + ], + "description": "Ingests a batch of runs in a single JSON payload. The payload must have `post` and/or `patch` arrays containing run objects.\nPrefer this endpoint over single‑run ingestion when submitting hundreds of runs, but `/runs/multipart` offers better handling for very large fields and attachments.", "tags": [ - "run" + "runs" ], - "summary": "Create Runs Batch Proxy", - "description": "Proxy POST /runs/batch to Go backend for tests.", - "operationId": "create_runs_batch_proxy_api_v1_runs_batch_post", + "summary": "Ingest Runs (Batch JSON)", + "parameters": [], "responses": { "202": { - "description": "Successful Response", + "description": "Runs batch ingested", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } } } } }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "patch": { + "type": "array", + "items": { + "$ref": "#/components/schemas/runs.Run" + } + }, + "post": { + "type": "array", + "items": { + "$ref": "#/components/schemas/runs.Run" + } + } + } + } + } + } + } + } + }, + "/api/v1/runs/multipart": { + "post": { "security": [ { "API Key": [] @@ -9656,38 +9737,141 @@ { "Bearer Auth": [] } - ] - } - }, - "/api/v1/runs/multipart": { - "post": { + ], + "description": "Ingests multiple runs, feedback objects, and binary attachments in a single `multipart/form-data` request.\n**Part‑name pattern**: `.[.]` where `event` ∈ {`post`, `patch`, `feedback`, `attachment`}.\n* `post|patch.` – JSON run payload.\n* `post|patch..` – out‑of‑band run data (`inputs`, `outputs`, `events`, `error`, `extra`, `serialized`).\n* `feedback.` – JSON feedback payload (must include `trace_id` and `session_id`).\n* `attachment..` – arbitrary binary attachment stored in S3.\n**Headers**: every part must set `Content-Type` **and** either a `Content-Length` header or `length` parameter. Per‑part `Content-Encoding` is **not** allowed; the top‑level request may be `Content-Encoding: gzip` or `Content-Encoding: zstd`.\n**Best performance** for high‑volume ingestion.", "tags": [ - "run" + "runs" ], - "summary": "Create Runs Multipart Proxy", - "description": "Proxy POST /runs/multipart to Go backend for tests.", - "operationId": "create_runs_multipart_proxy_api_v1_runs_multipart_post", + "summary": "Ingest Runs (Multipart)", + "parameters": [], "responses": { "202": { - "description": "Successful Response", + "description": "Accepted", "content": { "application/json": { - "schema": {} + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } } } - } - }, - "security": [ - { - "API Key": [] }, - { - "Tenant ID": [] + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } }, - { - "Bearer Auth": [] + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "429": { + "description": "Too Many Requests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } + }, + "501": { + "description": "a feedback part needs session_id in current db deployment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runs.ErrorResponse" + } + } + } } - ] + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "post.{run_id}": { + "type": "string", + "format": "binary", + "description": "Run to create (JSON)" + }, + "patch.{run_id}": { + "type": "string", + "format": "binary", + "description": "Run to update (JSON)" + }, + "post.{run_id}.inputs": { + "type": "string", + "format": "binary", + "description": "Large inputs object (JSON) stored out‑of‑band" + }, + "patch.{run_id}.outputs": { + "type": "string", + "format": "binary", + "description": "Large outputs object (JSON) stored out‑of‑band" + }, + "feedback.{run_id}": { + "type": "string", + "format": "binary", + "description": "Feedback object (JSON) – must include trace_id and session_id" + }, + "attachment.{run_id}.{filename}": { + "type": "string", + "format": "binary", + "description": "Binary attachment linked to run {run_id}" + } + } + } + } + } + } } }, "/api/v1/runs/group": { @@ -9756,7 +9940,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/group/stats": { @@ -9809,7 +9994,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/delete/traces": { @@ -9860,7 +10046,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/delete": { @@ -9869,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": { @@ -9910,7 +10097,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/experiments/{experiment_id}/evaluate": { @@ -9977,7 +10165,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/formulas": { @@ -9986,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": [] @@ -10030,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": [] @@ -10131,7 +10323,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/formulas/{feedback_formula_id}": { @@ -10140,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": [] @@ -10186,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": [] @@ -10249,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": [] @@ -10300,7 +10498,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/{feedback_id}": { @@ -10371,7 +10570,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -10434,7 +10634,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -10485,7 +10686,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback": { @@ -10719,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", @@ -10778,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": [ { @@ -10829,60 +11048,8 @@ } } } - } - } - }, - "/api/v1/feedback/eager": { - "post": { - "tags": [ - "feedback" - ], - "summary": "Eagerly Create Feedback", - "description": "Create a new feedback.\n\nThis method is invoked under the assumption that the run\nis already visible in the app, thus already present in DB", - "operationId": "eagerly_create_feedback_api_v1_feedback_eager_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FeedbackCreateSchema" - } - } - }, - "required": true }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FeedbackSchema" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/feedback/tokens": { @@ -10957,7 +11124,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -11014,7 +11182,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/tokens/{token}": { @@ -11058,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", @@ -11135,7 +11314,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -11185,7 +11365,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/run": { @@ -11239,7 +11420,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/run/{id}": { @@ -11250,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", @@ -11303,7 +11486,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/runs/query": { @@ -11314,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", @@ -11357,7 +11542,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/feedbacks": { @@ -11573,7 +11759,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets": { @@ -11659,7 +11846,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/examples/count": { @@ -11776,7 +11964,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/examples": { @@ -11942,7 +12131,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/sessions": { @@ -12067,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", @@ -12100,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", @@ -12142,7 +12410,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/datasets/sessions-bulk": { @@ -12192,181 +12461,8 @@ } } } - } - } - }, - "/api/v1/public/{share_token}/examples/runs": { - "post": { - "tags": [ - "public" - ], - "summary": "Read Shared Dataset Examples With Runs", - "description": "Get examples with associated runs from sessions in a dataset that has been shared.", - "operationId": "read_shared_dataset_examples_with_runs_api_v1_public__share_token__examples_runs_post", - "parameters": [ - { - "name": "share_token", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Share Token" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryExampleSchemaWithRuns" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/PublicExampleWithRuns" - } - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/ExampleWithRunsCH" - } - } - ], - "title": "Response Read Shared Dataset Examples With Runs Api V1 Public Share Token Examples Runs Post" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/public/{share_token}/datasets/runs/delta": { - "post": { - "tags": [ - "public" - ], - "summary": "Read Shared Delta", - "description": "Fetch the number of regressions/improvements for each example in a dataset, between sessions[0] and sessions[1].", - "operationId": "read_shared_delta_api_v1_public__share_token__datasets_runs_delta_post", - "parameters": [ - { - "name": "share_token", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Share Token" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryFeedbackDelta" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SessionFeedbackDelta" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/public/{share_token}/datasets/runs/delta/stream": { - "post": { - "tags": [ - "public" - ], - "summary": "Read Shared Delta Stream", - "description": "Stream feedback deltas for multiple feedback keys.\n\nReturns results in chunks as they become available. Each chunk contains\nresults for one or more feedback keys. Errors for individual chunks are\nincluded in the response rather than failing the entire operation.\n\nResponse format (SSE):\n event: data\n data: {\"feedback_deltas\": {\"key1\": {session_id: {...}}, ...}, \"errors\": null}\n\n event: data\n data: {\"feedback_deltas\": {\"key2\": {...}}, \"errors\": null}\n\n event: end", - "operationId": "read_shared_delta_stream_api_v1_public__share_token__datasets_runs_delta_stream_post", - "parameters": [ - { - "name": "share_token", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Share Token" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryFeedbackDeltaBatch" - } - } - } }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/query": { @@ -12420,7 +12516,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/generate-query": { @@ -12474,7 +12571,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/stats": { @@ -12502,7 +12600,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RunStatsQueryParams" + "$ref": "#/components/schemas/RunStatsQueryParamsPublic" } } } @@ -12528,7 +12626,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/{run_id}": { @@ -12592,7 +12691,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/feedback": { @@ -12809,7 +12909,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/comparative": { @@ -12931,7 +13032,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/message.json": { @@ -12971,7 +13073,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/tooldef.json": { @@ -13011,7 +13114,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues": { @@ -13227,7 +13331,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -13277,7 +13382,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -13332,7 +13438,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/populate": { @@ -13383,7 +13490,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}": { @@ -13435,7 +13543,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -13495,7 +13604,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13547,7 +13657,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs": { @@ -13557,6 +13668,7 @@ ], "summary": "Add Runs To Annotation Queue", "operationId": "add_runs_to_annotation_queue_api_v1_annotation_queues__queue_id__runs_post", + "deprecated": true, "security": [ { "API Key": [] @@ -13578,6 +13690,16 @@ "format": "uuid", "title": "Queue Id" } + }, + { + "name": "extend_trace_retention", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Extend Trace Retention" + } } ], "requestBody": { @@ -13636,7 +13758,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13644,6 +13767,7 @@ ], "summary": "Get Runs From Annotation Queue", "operationId": "get_runs_from_annotation_queue_api_v1_annotation_queues__queue_id__runs_get", + "deprecated": true, "security": [ { "API Key": [] @@ -13768,7 +13892,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/by-key": { @@ -13777,7 +13902,9 @@ "annotation-queues" ], "summary": "Add Runs To Annotation Queue By Key", + "description": "Self-hosted deployments require LangSmith `v0.16` or later.", "operationId": "add_runs_to_annotation_queue_by_key_api_v1_annotation_queues__queue_id__runs_by_key_post", + "deprecated": true, "security": [ { "API Key": [] @@ -13799,6 +13926,16 @@ "format": "uuid", "title": "Queue Id" } + }, + { + "name": "extend_trace_retention", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Extend Trace Retention" + } } ], "requestBody": { @@ -13840,7 +13977,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/export": { @@ -13902,7 +14040,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/run/{index}": { @@ -13913,6 +14052,7 @@ "summary": "Get Run From Annotation Queue", "description": "Get a run from an annotation queue", "operationId": "get_run_from_annotation_queue_api_v1_annotation_queues__queue_id__run__index__get", + "deprecated": true, "security": [ { "API Key": [] @@ -13976,7 +14116,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{run_id}/queues": { @@ -14034,7 +14175,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/{queue_run_id}": { @@ -14044,6 +14186,7 @@ ], "summary": "Update Run In Annotation Queue", "operationId": "update_run_in_annotation_queue_api_v1_annotation_queues__queue_id__runs__queue_run_id__patch", + "deprecated": true, "security": [ { "API Key": [] @@ -14106,7 +14249,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -14114,6 +14258,7 @@ ], "summary": "Delete Run From Annotation Queue", "operationId": "delete_run_from_annotation_queue_api_v1_annotation_queues__queue_id__runs__queue_run_id__delete", + "deprecated": true, "security": [ { "API Key": [] @@ -14166,7 +14311,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/delete": { @@ -14176,6 +14322,7 @@ ], "summary": "Delete Runs From Annotation Queue", "operationId": "delete_runs_from_annotation_queue_api_v1_annotation_queues__queue_id__runs_delete_post", + "deprecated": true, "security": [ { "API Key": [] @@ -14228,7 +14375,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_size": { @@ -14238,6 +14386,7 @@ ], "summary": "Get Total Size From Annotation Queue", "operationId": "get_total_size_from_annotation_queue_api_v1_annotation_queues__queue_id__total_size_get", + "deprecated": true, "security": [ { "API Key": [] @@ -14282,7 +14431,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_archived": { @@ -14292,6 +14442,7 @@ ], "summary": "Get Total Archived From Annotation Queue", "operationId": "get_total_archived_from_annotation_queue_api_v1_annotation_queues__queue_id__total_archived_get", + "deprecated": true, "security": [ { "API Key": [] @@ -14370,7 +14521,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/size": { @@ -14380,6 +14532,7 @@ ], "summary": "Get Size From Annotation Queue", "operationId": "get_size_from_annotation_queue_api_v1_annotation_queues__queue_id__size_get", + "deprecated": true, "security": [ { "API Key": [] @@ -14445,7 +14598,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/status/{annotation_queue_run_id}": { @@ -14455,6 +14609,7 @@ ], "summary": "Create Identity Annotation Queue Run Status", "operationId": "create_identity_annotation_queue_run_status_api_v1_annotation_queues_status__annotation_queue_run_id__post", + "deprecated": true, "security": [ { "API Key": [] @@ -14507,7 +14662,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/resolve/{queue_run_id}": { @@ -14518,6 +14674,7 @@ "summary": "Resolve Annotation Queue Run", "description": "Resolve a queue run ID to its section and run data for deep linking.", "operationId": "resolve_annotation_queue_run_api_v1_annotation_queues__queue_id__runs_resolve__queue_run_id__get", + "deprecated": true, "security": [ { "API Key": [] @@ -14572,7 +14729,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/ace/execute": { @@ -14627,7 +14785,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/bulk-exports": { @@ -14638,73 +14797,6 @@ "summary": "Get Bulk Exports", "description": "Get the current workspace's bulk exports", "operationId": "get_bulk_exports_api_v1_bulk_exports_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/BulkExport" - }, - "type": "array", - "title": "Response Get Bulk Exports Api V1 Bulk Exports Get" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] - }, - "post": { - "tags": [ - "bulk-exports" - ], - "summary": "Create Bulk Export", - "description": "Create a new bulk export", - "operationId": "create_bulk_export_api_v1_bulk_exports_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExportCreate" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExport" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, "security": [ { "API Key": [] @@ -14715,125 +14807,35 @@ { "Bearer Auth": [] } - ] - } - }, - "/api/v1/bulk-exports/destinations": { - "get": { - "tags": [ - "bulk-exports" ], - "summary": "Get Bulk Export Destinations", - "description": "Get the current workspace's bulk export destinations", - "operationId": "get_bulk_export_destinations_api_v1_bulk_exports_destinations_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/BulkExportDestination" - }, - "type": "array", - "title": "Response Get Bulk Export Destinations Api V1 Bulk Exports Destinations Get" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, + "parameters": [ { - "Bearer Auth": [] - } - ] - }, - "post": { - "tags": [ - "bulk-exports" - ], - "summary": "Create Bulk Export Destination", - "description": "Create a new bulk export destination", - "operationId": "create_bulk_export_destination_api_v1_bulk_exports_destinations_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExportDestinationCreate" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BulkExportDestination" + "name": "limit", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer", + "maximum": 1000, + "minimum": 1 + }, + { + "type": "null" } - } + ], + "title": "Limit" } }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] - } - }, - "/api/v1/bulk-exports/runs": { - "get": { - "tags": [ - "bulk-exports" - ], - "summary": "Get Bulk Export Runs Filtered", - "description": "Get all bulk export runs for exports that were created from a scheduled bulk export", - "operationId": "get_bulk_export_runs_filtered_api_v1_bulk_exports_runs_get", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ { - "name": "source_bulk_export_id", + "name": "offset", "in": "query", - "required": true, + "required": false, "schema": { - "type": "string", - "format": "uuid", - "title": "Source Bulk Export Id" + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" } } ], @@ -14845,9 +14847,9 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/BulkExportRun" + "$ref": "#/components/schemas/BulkExport" }, - "title": "Response Get Bulk Export Runs Filtered Api V1 Bulk Exports Runs Get" + "title": "Response Get Bulk Exports Api V1 Bulk Exports Get" } } } @@ -14862,17 +14864,16 @@ } } } - } - } - }, - "/api/v1/bulk-exports/{bulk_export_id}": { - "get": { + }, + "x-public": true + }, + "post": { "tags": [ "bulk-exports" ], - "summary": "Get Bulk Export", - "description": "Get a single bulk export by ID", - "operationId": "get_bulk_export_api_v1_bulk_exports__bulk_export_id__get", + "summary": "Create Bulk Export", + "description": "Create a new bulk export", + "operationId": "create_bulk_export_api_v1_bulk_exports_post", "security": [ { "API Key": [] @@ -14884,18 +14885,16 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "bulk_export_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Bulk Export Id" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExportCreate" + } } } - ], + }, "responses": { "200": { "description": "Successful Response", @@ -14917,7 +14916,243 @@ } } } - } + }, + "x-public": true + } + }, + "/api/v1/bulk-exports/destinations": { + "get": { + "tags": [ + "bulk-exports" + ], + "summary": "Get Bulk Export Destinations", + "description": "Get the current workspace's bulk export destinations", + "operationId": "get_bulk_export_destinations_api_v1_bulk_exports_destinations_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/BulkExportDestination" + }, + "type": "array", + "title": "Response Get Bulk Export Destinations Api V1 Bulk Exports Destinations Get" + } + } + } + } + }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true + }, + "post": { + "tags": [ + "bulk-exports" + ], + "summary": "Create Bulk Export Destination", + "description": "Create a new bulk export destination", + "operationId": "create_bulk_export_destination_api_v1_bulk_exports_destinations_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExportDestinationCreate" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExportDestination" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "x-public": true + } + }, + "/api/v1/bulk-exports/runs": { + "get": { + "tags": [ + "bulk-exports" + ], + "summary": "Get Bulk Export Runs Filtered", + "description": "Get bulk export runs for exports that were created from a scheduled bulk export", + "operationId": "get_bulk_export_runs_filtered_api_v1_bulk_exports_runs_get", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "source_bulk_export_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Source Bulk Export Id" + } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer", + "maximum": 1000, + "minimum": 1 + }, + { + "type": "null" + } + ], + "title": "Limit" + } + }, + { + "name": "offset", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkExportRun" + }, + "title": "Response Get Bulk Export Runs Filtered Api V1 Bulk Exports Runs Get" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true + } + }, + "/api/v1/bulk-exports/{bulk_export_id}": { + "get": { + "tags": [ + "bulk-exports" + ], + "summary": "Get Bulk Export", + "description": "Get a single bulk export by ID", + "operationId": "get_bulk_export_api_v1_bulk_exports__bulk_export_id__get", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "bulk_export_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Bulk Export Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkExport" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true }, "patch": { "tags": [ @@ -14980,7 +15215,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/destinations/{destination_id}": { @@ -15035,7 +15271,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15098,7 +15335,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs": { @@ -15130,6 +15368,35 @@ "format": "uuid", "title": "Bulk Export Id" } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "integer", + "maximum": 1000, + "minimum": 1 + }, + { + "type": "null" + } + ], + "title": "Limit" + } + }, + { + "name": "offset", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" + } } ], "responses": { @@ -15157,7 +15424,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs/{run_id}": { @@ -15222,7 +15490,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback-configs": { @@ -15355,7 +15624,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -15405,7 +15675,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15455,7 +15726,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15500,7 +15772,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/model-price-map": { @@ -15510,16 +15783,93 @@ ], "summary": "Read Model Price Map", "operationId": "read_model_price_map_api_v1_model_price_map_get", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "offset", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "default": 0, + "title": "Offset" + } + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "maximum": 100, + "minimum": 1, + "default": 100, + "title": "Limit" + } + }, + { + "name": "q", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string", + "maxLength": 200 + }, + { + "type": "null" + } + ], + "title": "Q" + } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ModelPriceMapSchema" + }, + "title": "Response Read Model Price Map Api V1 Model Price Map Get" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } } } } }, + "x-public": true + }, + "post": { + "tags": [ + "model-price-map" + ], + "summary": "Create New Model Price", + "operationId": "create_new_model_price_api_v1_model_price_map_post", "security": [ { "API Key": [] @@ -15530,23 +15880,16 @@ { "Bearer Auth": [] } - ] - }, - "post": { - "tags": [ - "model-price-map" ], - "summary": "Create New Model Price", - "operationId": "create_new_model_price_api_v1_model_price_map_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ModelPriceMapCreateSchema" } } - }, - "required": true + } }, "responses": { "200": { @@ -15568,17 +15911,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/model-price-map/{id}": { @@ -15640,7 +15973,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15690,7 +16024,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompts/invoke_prompt": { @@ -15729,7 +16064,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompts/canvas": { @@ -15779,7 +16115,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/prompt-webhooks": { @@ -15816,7 +16153,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -15867,7 +16205,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/prompt-webhooks/{webhook_id}": { @@ -15922,7 +16261,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15985,7 +16325,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16036,7 +16377,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompt-webhooks/test": { @@ -16093,33 +16435,18 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/playground-settings": { - "get": { + "post": { "tags": [ "playground-settings" ], - "summary": "List Playground Settings", - "description": "Get all playground settings for this tenant id.", - "operationId": "list_playground_settings_api_v1_playground_settings_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/PlaygroundSettingsResponse" - }, - "type": "array", - "title": "Response List Playground Settings Api V1 Playground Settings Get" - } - } - } - } - }, + "summary": "Create Playground Settings", + "description": "Create playground settings.", + "operationId": "create_playground_settings_api_v1_playground_settings_post", "security": [ { "API Key": [] @@ -16130,24 +16457,16 @@ { "Bearer Auth": [] } - ] - }, - "post": { - "tags": [ - "playground-settings" ], - "summary": "Create Playground Settings", - "description": "Create playground settings.", - "operationId": "create_playground_settings_api_v1_playground_settings_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaygroundSettingsCreateRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -16171,6 +16490,15 @@ } } }, + "x-public": true + }, + "get": { + "tags": [ + "playground-settings" + ], + "summary": "List Playground Settings", + "description": "Get all playground settings for this tenant id.", + "operationId": "list_playground_settings_api_v1_playground_settings_get", "security": [ { "API Key": [] @@ -16181,7 +16509,56 @@ { "Bearer Auth": [] } - ] + ], + "parameters": [ + { + "name": "scope", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "enum": [ + "workspace", + "organization" + ], + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Scope" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PlaygroundSettingsResponse" + }, + "title": "Response List Playground Settings Api V1 Playground Settings Get" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true } }, "/api/v1/playground-settings/{playground_settings_id}": { @@ -16235,7 +16612,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -16297,7 +16675,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16347,7 +16726,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/clone": { @@ -16400,7 +16780,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/section": { @@ -16562,7 +16943,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -16613,7 +16995,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts": { @@ -16666,7 +17049,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/preview": { @@ -16719,7 +17103,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/create": { @@ -16728,13 +17113,33 @@ "charts" ], "summary": "Create Chart", - "description": "Create a new chart.", + "description": "Create a chart or dashboard text block.", "operationId": "create_chart_api_v1_charts_create_post", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomChartCreate" + "oneOf": [ + { + "$ref": "#/components/schemas/CustomChartCreate" + }, + { + "$ref": "#/components/schemas/CustomTextBlockCreate" + } + ], + "title": "Chart", + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/CustomChartCreate", + "bar": "#/components/schemas/CustomChartCreate", + "table": "#/components/schemas/CustomChartCreate", + "kpi": "#/components/schemas/CustomChartCreate", + "top-k": "#/components/schemas/CustomChartCreate", + "pie": "#/components/schemas/CustomChartCreate", + "text": "#/components/schemas/CustomTextBlockCreate" + } + } } } }, @@ -16746,7 +17151,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomChartResponse" + "oneOf": [ + { + "$ref": "#/components/schemas/CustomChartResponse" + }, + { + "$ref": "#/components/schemas/CustomTextBlockResponse" + } + ], + "title": "Response Create Chart Api V1 Charts Create Post", + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/CustomChartResponse", + "bar": "#/components/schemas/CustomChartResponse", + "table": "#/components/schemas/CustomChartResponse", + "kpi": "#/components/schemas/CustomChartResponse", + "top-k": "#/components/schemas/CustomChartResponse", + "pie": "#/components/schemas/CustomChartResponse", + "text": "#/components/schemas/CustomTextBlockResponse" + } + } } } } @@ -16772,7 +17197,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/{chart_id}": { @@ -16781,7 +17207,7 @@ "charts" ], "summary": "Read Single Chart", - "description": "Get a single chart by ID.", + "description": "Get a single chart or text block by ID.", "operationId": "read_single_chart_api_v1_charts__chart_id__post", "security": [ { @@ -16822,7 +17248,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SingleCustomChartResponse" + "oneOf": [ + { + "$ref": "#/components/schemas/SingleCustomChartResponse" + }, + { + "$ref": "#/components/schemas/CustomTextBlockResponse" + } + ], + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/SingleCustomChartResponse", + "bar": "#/components/schemas/SingleCustomChartResponse", + "table": "#/components/schemas/SingleCustomChartResponse", + "kpi": "#/components/schemas/SingleCustomChartResponse", + "top-k": "#/components/schemas/SingleCustomChartResponse", + "pie": "#/components/schemas/SingleCustomChartResponse", + "text": "#/components/schemas/CustomTextBlockResponse" + } + }, + "title": "Response Read Single Chart Api V1 Charts Chart Id Post" } } } @@ -16837,14 +17283,15 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ "charts" ], "summary": "Update Chart", - "description": "Update a chart.", + "description": "Update a chart or text block.", "operationId": "update_chart_api_v1_charts__chart_id__patch", "security": [ { @@ -16885,7 +17332,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomChartResponse" + "oneOf": [ + { + "$ref": "#/components/schemas/CustomChartResponse" + }, + { + "$ref": "#/components/schemas/CustomTextBlockResponse" + } + ], + "discriminator": { + "propertyName": "chart_type", + "mapping": { + "line": "#/components/schemas/CustomChartResponse", + "bar": "#/components/schemas/CustomChartResponse", + "table": "#/components/schemas/CustomChartResponse", + "kpi": "#/components/schemas/CustomChartResponse", + "top-k": "#/components/schemas/CustomChartResponse", + "pie": "#/components/schemas/CustomChartResponse", + "text": "#/components/schemas/CustomTextBlockResponse" + } + }, + "title": "Response Update Chart Api V1 Charts Chart Id Patch" } } } @@ -16900,7 +17367,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16951,7 +17419,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/{section_id}": { @@ -17016,7 +17485,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -17079,7 +17549,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -17130,7 +17601,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/org-charts/section": { @@ -17139,8 +17611,19 @@ "charts" ], "summary": "Org Read Sections", - "description": "Get all sections for the tenant.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_sections_api_v1_org_charts_section_get", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17152,155 +17635,26 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "limit", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "maximum": 100, - "minimum": 1, - "default": 100, - "title": "Limit" - } - }, - { - "name": "offset", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 0, - "default": 0, - "title": "Offset" - } - }, - { - "name": "title_contains", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Title Contains" - } - }, - { - "name": "ids", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - } - }, - { - "type": "null" - } - ], - "title": "Ids" - } - }, - { - "name": "sort_by", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "created_at", - "title": "Sort By" - } - }, - { - "name": "sort_by_desc", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "default": true, - "title": "Sort By Desc" - } - }, - { - "name": "tag_value_id", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - } - }, - { - "type": "null" - } - ], - "title": "Tag Value Id" - } - } + "x-public": true + }, + "post": { + "tags": [ + "charts" ], + "summary": "Org Create Section", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_create_section_api_v1_org_charts_section_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomChartsSectionResponse" - }, - "title": "Response Org Read Sections Api V1 Org Charts Section Get" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } - } - }, - "post": { - "tags": [ - "charts" - ], - "summary": "Org Create Section", - "description": "Create a new section.", - "operationId": "org_create_section_api_v1_org_charts_section_post", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17312,38 +17666,7 @@ "Bearer Auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionCreate" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } + "x-public": true } }, "/api/v1/org-charts": { @@ -17352,40 +17675,19 @@ "charts" ], "summary": "Org Read Charts", - "description": "Get all charts for the tenant.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_charts_api_v1_org_charts_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsRequest" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -17396,7 +17698,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/preview": { @@ -17405,40 +17708,19 @@ "charts" ], "summary": "Org Read Chart Preview", - "description": "Get a preview for a chart without actually creating it.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_chart_preview_api_v1_org_charts_preview_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartPreviewRequest" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SingleCustomChartResponseBase" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -17449,7 +17731,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/create": { @@ -17458,40 +17741,19 @@ "charts" ], "summary": "Org Create Chart", - "description": "Create a new chart.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_create_chart_api_v1_org_charts_create_post", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartCreate" - } - } - }, - "required": true - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -17502,7 +17764,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/{chart_id}": { @@ -17511,8 +17774,19 @@ "charts" ], "summary": "Org Read Single Chart", - "description": "Get a single chart by ID.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_read_single_chart_api_v1_org_charts__chart_id__post", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17524,58 +17798,26 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "chart_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Chart Id" - } - } + "x-public": true + }, + "delete": { + "tags": [ + "charts" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsRequest" - } - } - } - }, + "summary": "Org Delete Chart", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_delete_chart_api_v1_org_charts__chart_id__delete", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/SingleCustomChartResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } - } - }, - "patch": { - "tags": [ - "charts" - ], - "summary": "Org Update Chart", - "description": "Update a chart.", - "operationId": "org_update_chart_api_v1_org_charts__chart_id__patch", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17587,58 +17829,26 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "chart_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Chart Id" - } - } + "x-public": true + }, + "patch": { + "tags": [ + "charts" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartUpdate" - } - } - } - }, + "summary": "Org Update Chart", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_update_chart_api_v1_org_charts__chart_id__patch", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "schema": {} } } } - } - }, - "delete": { - "tags": [ - "charts" - ], - "summary": "Org Delete Chart", - "description": "Delete a chart.", - "operationId": "org_delete_chart_api_v1_org_charts__chart_id__delete", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17650,18 +17860,17 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "chart_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Chart Id" - } - } + "x-public": true + } + }, + "/api/v1/org-charts/section/{section_id}": { + "post": { + "tags": [ + "charts" ], + "summary": "Org Read Single Section", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_read_single_section_api_v1_org_charts_section__section_id__post", "responses": { "200": { "description": "Successful Response", @@ -17670,28 +17879,9 @@ "schema": {} } } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } } - } - } - }, - "/api/v1/org-charts/section/{section_id}": { - "post": { - "tags": [ - "charts" - ], - "summary": "Org Read Single Section", - "description": "Get a single section by ID.", - "operationId": "org_read_single_section_api_v1_org_charts_section__section_id__post", + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17703,58 +17893,57 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "section_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Section Id" - } - } + "x-public": true + }, + "delete": { + "tags": [ + "charts" ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsRequestBase" - } - } - } - }, + "summary": "Org Delete Section", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", + "operationId": "org_delete_section_api_v1_org_charts_section__section_id__delete", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSection" - } + "schema": {} } } + } + }, + "deprecated": true, + "security": [ + { + "API Key": [] }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } + { + "Organization ID": [] + }, + { + "Bearer Auth": [] } - } + ], + "x-public": true }, "patch": { "tags": [ "charts" ], "summary": "Org Update Section", - "description": "Update a section.", + "description": "Deprecated: organization usage charts have been retired (HTTP 410).", "operationId": "org_update_section_api_v1_org_charts_section__section_id__patch", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + } + }, + "deprecated": true, "security": [ { "API Key": [] @@ -17766,112 +17955,18 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "section_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Section Id" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionUpdate" - } - } - } - }, - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomChartsSectionResponse" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - }, - "delete": { - "tags": [ - "charts" - ], - "summary": "Org Delete Section", - "description": "Delete a section.", - "operationId": "org_delete_section_api_v1_org_charts_section__section_id__delete", - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "section_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Section Id" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/api/v1/mcp/tools": { - "get": { - "tags": [ - "mcp" - ], - "summary": "Get Tools", - "description": "Return MCP tools — from cache if fresh, otherwise by fetching from remote.\n\nOn cache miss, tries manifest fetch first (fast), then falls back to full\nMCP handshake. Caches the result before returning.\n\nPass force_refresh=true to bypass the cache and always fetch from the\nremote server (the result is still cached via upsert for future requests).\n\nThe ls_user_id query parameter allows service-key callers (which don't carry\nls_user_id in auth) to specify the user for per-user OAuth cache lookups.", - "operationId": "get_tools_api_v1_mcp_tools_get", - "security": [ + "x-public": true + } + }, + "/api/v1/mcp/tools": { + "get": { + "tags": [ + "mcp" + ], + "summary": "Get Tools", + "description": "Return MCP tools — from cache if fresh, otherwise by fetching from remote.\n\nOn cache miss, tries manifest fetch first (fast), then falls back to full\nMCP handshake. Caches the result before returning.\n\nPass force_refresh=true to bypass the cache and always fetch from the\nremote server (the result is still cached via upsert for future requests).\n\n``agent_id`` lets deployment/service-key callers name an agent OAuth\nsubject. ``ls_user_id`` overrides are limited to service identities.", + "operationId": "get_tools_api_v1_mcp_tools_get", + "security": [ { "API Key": [] }, @@ -17924,6 +18019,22 @@ "title": "Ls User Id" } }, + { + "name": "agent_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Agent Id" + } + }, { "name": "force_refresh", "in": "query", @@ -17954,7 +18065,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -18036,7 +18148,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/mcp/proxy": { @@ -18107,7 +18220,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18155,7 +18269,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs": { @@ -18218,7 +18333,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18262,7 +18378,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/setup": { @@ -18294,7 +18411,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current": { @@ -18326,7 +18444,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/info": { @@ -18358,7 +18477,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "patch": { "tags": [ @@ -18408,7 +18528,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing": { @@ -18440,7 +18561,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/dashboard": { @@ -18508,7 +18630,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/payment-method": { @@ -18558,7 +18681,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/business-info": { @@ -18590,7 +18714,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18638,7 +18763,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/plan": { @@ -18688,7 +18814,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles": { @@ -18724,7 +18851,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18774,7 +18902,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles/{role_id}": { @@ -18828,7 +18957,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -18890,7 +19020,73 @@ } } } - } + }, + "x-public": true + } + }, + "/api/v1/orgs/current/roles/{role_id}/restriction": { + "put": { + "tags": [ + "orgs" + ], + "summary": "Set Role Restriction", + "operationId": "set_role_restriction_api_v1_orgs_current_roles__role_id__restriction_put", + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "role_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Role Id" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleRestrictionUpdate" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Role" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true } }, "/api/v1/orgs/permissions": { @@ -18920,7 +19116,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/pending": { @@ -18951,7 +19148,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members": { @@ -18983,7 +19181,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -19033,7 +19232,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/active": { @@ -19203,7 +19403,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/pending": { @@ -19328,7 +19529,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/batch": { @@ -19389,7 +19591,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/basic/batch": { @@ -19450,7 +19653,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}/pending": { @@ -19503,39 +19707,57 @@ } } } - } - } - }, - "/api/v1/orgs/pending/{organization_id}": { - "delete": { + }, + "x-public": true + }, + "patch": { "tags": [ "orgs" ], - "summary": "Delete Pending Organization Invite", - "operationId": "delete_pending_organization_invite_api_v1_orgs_pending__organization_id__delete", + "summary": "Patch Current Org Pending Member", + "description": "Update the role on a pending org member invite.", + "operationId": "patch_current_org_pending_member_api_v1_orgs_current_members__identity_id__pending_patch", "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, { "Bearer Auth": [] } ], "parameters": [ { - "name": "organization_id", + "name": "identity_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", - "title": "Organization Id" + "title": "Identity Id" } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingIdentityPatch" + } + } + } + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/OrgPendingIdentity" + } } } }, @@ -19549,16 +19771,64 @@ } } } - } + }, + "x-public": true } }, - "/api/v1/orgs/pending/{organization_id}/claim": { - "post": { + "/api/v1/orgs/pending/{organization_id}": { + "delete": { "tags": [ "orgs" ], - "summary": "Claim Pending Organization Invite", - "operationId": "claim_pending_organization_invite_api_v1_orgs_pending__organization_id__claim_post", + "summary": "Delete Pending Organization Invite", + "operationId": "delete_pending_organization_invite_api_v1_orgs_pending__organization_id__delete", + "security": [ + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "organization_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Organization Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": {} + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true + } + }, + "/api/v1/orgs/pending/{organization_id}/claim": { + "post": { + "tags": [ + "orgs" + ], + "summary": "Claim Pending Organization Invite", + "operationId": "claim_pending_organization_invite_api_v1_orgs_pending__organization_id__claim_post", "security": [ { "Bearer Auth": [] @@ -19597,7 +19867,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}": { @@ -19650,7 +19921,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -19711,7 +19983,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/members/basic": { @@ -19762,7 +20035,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings": { @@ -19799,7 +20073,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -19850,7 +20125,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings/{id}": { @@ -19915,7 +20191,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -19968,7 +20245,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/login-methods": { @@ -20023,7 +20301,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing/usage": { @@ -20101,7 +20380,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage": { @@ -20110,7 +20390,7 @@ "orgs" ], "summary": "Get Granular Usage", - "description": "Get granular usage data with flexible grouping.\n\nworkspace_ids filters results to the specified workspaces. Only workspaces\nthe user has read access to will be included in the results.", + "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": [ { @@ -20147,13 +20427,20 @@ { "name": "workspace_ids", "in": "query", - "required": true, + "required": false, "schema": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + { + "type": "null" + } + ], "title": "Workspace Ids" } }, @@ -20165,6 +20452,31 @@ "$ref": "#/components/schemas/GranularUsageGroupBy", "default": "workspace" } + }, + { + "name": "kind", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/GranularUsageKind", + "default": "traces" + } + }, + { + "name": "trace_tier", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/TraceTier" + }, + { + "type": "null" + } + ], + "title": "Trace Tier" + } } ], "responses": { @@ -20188,7 +20500,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage/export": { @@ -20197,7 +20510,7 @@ "orgs" ], "summary": "Export Granular Usage Csv", - "description": "Export granular usage data as CSV.\n\nReturns the same data as the granular-usage endpoint but formatted as a\ndownloadable CSV file. Only workspaces the user has read access to will\nbe included in the results.", + "description": "Export granular usage data as CSV.\n\nSame `kind` semantics as `/granular-usage`. The CSV's value columns\nvary by kind:\n- `traces`: single `Traces` column.\n- `langsmith_deployments`: `Nodes Executed`, `Agent Runs`,\n `Agent Uptime (seconds)` columns.\nDimension columns are identical across kinds.", "operationId": "export_granular_usage_csv_api_v1_orgs_current_billing_granular_usage_export_get", "security": [ { @@ -20234,13 +20547,20 @@ { "name": "workspace_ids", "in": "query", - "required": true, + "required": false, "schema": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + { + "type": "null" + } + ], "title": "Workspace Ids" } }, @@ -20252,6 +20572,31 @@ "$ref": "#/components/schemas/GranularUsageGroupBy", "default": "workspace" } + }, + { + "name": "kind", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/GranularUsageKind", + "default": "traces" + } + }, + { + "name": "trace_tier", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/TraceTier" + }, + { + "type": "null" + } + ], + "title": "Trace Tier" + } } ], "responses": { @@ -20273,7 +20618,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/user/login-methods": { @@ -20310,7 +20656,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_checkout_session": { @@ -20361,7 +20708,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_account_links": { @@ -20412,7 +20760,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/service-keys": { @@ -20422,22 +20771,6 @@ ], "summary": "List Org Service Keys", "operationId": "list_org_service_keys_api_v1_orgs_current_service_keys_get", - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/APIKeyGetResponse" - }, - "type": "array", - "title": "Response List Org Service Keys Api V1 Orgs Current Service Keys Get" - } - } - } - } - }, "security": [ { "API Key": [] @@ -20448,32 +20781,34 @@ { "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": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIKeyCreateRequest" - } + "parameters": [ + { + "name": "workspace_ids", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "default": [], + "title": "Workspace Ids" } - }, - "required": true - }, + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIKeyCreateResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/APIKeyGetResponse" + }, + "title": "Response List Org Service Keys Api V1 Orgs Current Service Keys Get" } } } @@ -20489,26 +20824,15 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ] - } - }, - "/api/v1/orgs/current/service-keys/{api_key_id}": { - "delete": { + "x-public": true + }, + "post": { "tags": [ "orgs" ], - "summary": "Delete Org Service Key", - "operationId": "delete_org_service_key_api_v1_orgs_current_service_keys__api_key_id__delete", + "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": [] @@ -20520,25 +20844,23 @@ "Bearer Auth": [] } ], - "parameters": [ - { - "name": "api_key_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Api Key Id" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIKeyCreateRequest" + } } } - ], + }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/APIKeyGetResponse" + "$ref": "#/components/schemas/APIKeyCreateResponse" } } } @@ -20553,15 +20875,71 @@ } } } - } - }, - "patch": { + }, + "x-public": true + } + }, + "/api/v1/orgs/current/service-keys/{api_key_id}": { + "delete": { "tags": [ "orgs" ], - "summary": "Update Org Service Key", - "description": "Update an API key's role(s) in place without rotating the key.\n\nRestricted to org admins (ORGANIZATION_MANAGE). Applies to both\norg-scoped and workspace-scoped keys listed in /orgs/current/service-keys.", - "operationId": "update_org_service_key_api_v1_orgs_current_service_keys__api_key_id__patch", + "summary": "Delete Org Service Key", + "operationId": "delete_org_service_key_api_v1_orgs_current_service_keys__api_key_id__delete", + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "api_key_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Api Key Id" + } + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIKeyGetResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true + }, + "patch": { + "tags": [ + "orgs" + ], + "summary": "Update Org Service Key", + "description": "Update an API key's role(s) in place without rotating the key.\n\nRestricted to org admins (ORGANIZATION_MANAGE). Applies to both\norg-scoped and workspace-scoped keys listed in /orgs/current/service-keys.", + "operationId": "update_org_service_key_api_v1_orgs_current_service_keys__api_key_id__patch", "security": [ { "API Key": [] @@ -20616,7 +20994,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens": { @@ -20626,22 +21005,67 @@ ], "summary": "List Org Personal Access Tokens", "operationId": "list_org_personal_access_tokens_api_v1_orgs_current_personal_access_tokens_get", + "security": [ + { + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "workspace_ids", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "default": [], + "title": "Workspace Ids" + } + } + ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { + "type": "array", "items": { "$ref": "#/components/schemas/APIKeyGetResponse" }, - "type": "array", "title": "Response List Org Personal Access Tokens Api V1 Orgs Current Personal Access Tokens Get" } } } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } } }, + "x-public": true + }, + "post": { + "tags": [ + "orgs" + ], + "summary": "Create Org Personal Access Token", + "operationId": "create_org_personal_access_token_api_v1_orgs_current_personal_access_tokens_post", "security": [ { "API Key": [] @@ -20652,23 +21076,16 @@ { "Bearer Auth": [] } - ] - }, - "post": { - "tags": [ - "orgs" ], - "summary": "Create Org Personal Access Token", - "operationId": "create_org_personal_access_token_api_v1_orgs_current_personal_access_tokens_post", "requestBody": { + "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/APIKeyCreateRequest" } } - }, - "required": true + } }, "responses": { "200": { @@ -20692,17 +21109,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens/{pat_id}": { @@ -20756,7 +21163,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/set-default-sso-provision": { @@ -20791,7 +21199,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/login": { @@ -20812,7 +21221,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/send": { @@ -20861,7 +21271,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/sso/email-verification/status": { @@ -20903,7 +21314,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/confirm": { @@ -20947,7 +21359,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/settings/{sso_login_slug}": { @@ -20994,7 +21407,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-lookup": { @@ -21040,7 +21454,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key": { @@ -21077,14 +21492,15 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ "api-key" ], "summary": "Generate Api Key", - "description": "Generate an api key for the user", + "description": "Generate an api key for the user.", "operationId": "generate_api_key_api_v1_api_key_post", "requestBody": { "content": { @@ -21131,7 +21547,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/{api_key_id}": { @@ -21186,7 +21603,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key/current": { @@ -21224,7 +21642,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21278,7 +21697,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/current/{pat_id}": { @@ -21334,7 +21754,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/tenants": { @@ -21397,7 +21818,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -21442,7 +21864,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/onboarding_state": { @@ -21469,7 +21892,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21494,7 +21918,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/me/onboarding_state/{field}": { @@ -21542,7 +21967,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/ls_user_id": { @@ -21570,7 +21996,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts": { @@ -21607,7 +22034,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21658,7 +22086,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts/{service_account_id}": { @@ -21713,7 +22142,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending": { @@ -21744,7 +22174,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/pending/{id}": { @@ -21790,7 +22221,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending/{workspace_id}/claim": { @@ -21837,7 +22269,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members": { @@ -21869,7 +22302,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21920,7 +22354,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/active": { @@ -22090,7 +22525,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/pending": { @@ -22215,7 +22651,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/batch": { @@ -22247,7 +22684,7 @@ "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/PendingIdentity" + "$ref": "#/components/schemas/WorkspaceInviteResult" }, "type": "array", "title": "Response Add Members To Current Workspace Batch Api V1 Workspaces Current Members Batch Post" @@ -22279,7 +22716,8 @@ { "Organization ID": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/{identity_id}": { @@ -22331,7 +22769,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -22391,10 +22830,75 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/{identity_id}/pending": { + "patch": { + "tags": [ + "workspaces" + ], + "summary": "Patch Current Workspace Pending Member", + "description": "Update the role on a pending workspace member invite.", + "operationId": "patch_current_workspace_pending_member_api_v1_workspaces_current_members__identity_id__pending_patch", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "parameters": [ + { + "name": "identity_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Identity Id" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingIdentityPatch" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingIdentity" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + }, + "x-public": true + }, "delete": { "tags": [ "workspaces" @@ -22443,7 +22947,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/usage-limits": { @@ -22480,7 +22985,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -22531,7 +23037,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/org": { @@ -22568,7 +23075,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/{usage_limit_id}": { @@ -22621,7 +23129,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/settings": { @@ -22654,7 +23163,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/settings/handle": { @@ -22707,7 +23217,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/repos": { @@ -22740,6 +23251,16 @@ "title": "With Latest Manifest" } }, + { + "name": "include_owners", + "in": "query", + "required": false, + "schema": { + "type": "boolean", + "default": false, + "title": "Include Owners" + } + }, { "name": "limit", "in": "query", @@ -23069,7 +23590,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -23120,7 +23642,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23175,7 +23698,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}": { @@ -23238,7 +23762,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -23309,7 +23834,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23368,7 +23894,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/fork": { @@ -23441,7 +23968,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/tags": { @@ -23749,7 +24277,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/optimize-job": { @@ -23802,7 +24331,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/likes/{owner}/{repo}": { @@ -23875,7 +24405,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}": { @@ -23945,7 +24476,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -24028,7 +24560,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}": { @@ -24123,7 +24656,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24203,7 +24737,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}/like": { @@ -24277,7 +24812,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24349,7 +24885,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags": { @@ -24406,7 +24943,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24477,7 +25015,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags/{tag_name}": { @@ -24539,7 +25078,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -24619,7 +25159,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24687,7 +25228,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/owners": { @@ -24750,7 +25292,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24821,7 +25364,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24890,7 +25434,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs": { @@ -24948,7 +25493,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -25010,7 +25556,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}": { @@ -25065,7 +25612,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -25128,7 +25676,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25179,7 +25728,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs": { @@ -25238,7 +25788,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -25301,7 +25852,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs/{log_id}": { @@ -25356,7 +25908,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25407,7 +25960,8 @@ } } } - } + }, + "x-public": true } }, "/.well-known/oauth-authorization-server": { @@ -25450,10 +26004,34 @@ } } }, + "x-public": true, "parameters": [] } }, - "/api/v1/hub/environments": { + "/.well-known/openid-configuration": { + "get": { + "description": "Returns the OpenID Connect discovery document (OpenID Connect Discovery 1.0), advertising the authorization, token, userinfo, and JWKS endpoints plus supported scopes, response types, and signing algorithms.", + "tags": [ + "oauth" + ], + "summary": "Get OpenID Connect provider configuration", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.OIDCProviderMetadata" + } + } + } + } + }, + "x-public": true, + "parameters": [] + } + }, + "/api/v1/commits/{owner}/{repo}": { "get": { "security": [ { @@ -25466,18 +26044,80 @@ "Bearer Auth": [] } ], - "description": "Returns the hub environments model for the current tenant.\nReturns 404 if no custom configuration exists.", + "description": "List commits for a repository, with pagination support.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repositories; unauthenticated users can only access public repositories.\nThe include_stats parameter controls whether download and view statistics are computed (defaults to true).", "tags": [ - "hub_environments" + "commits" + ], + "summary": "List commits", + "parameters": [ + { + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "IncludeStats determines whether to compute num_downloads and num_views", + "name": "include_stats", + "in": "query", + "schema": { + "default": true, + "type": "boolean", + "title": "Include Stats" + } + }, + { + "description": "Limit is the pagination limit", + "name": "limit", + "in": "query", + "schema": { + "minimum": 1, + "default": 20, + "type": "integer", + "maximum": 100, + "title": "Limit" + } + }, + { + "description": "Offset is the pagination offset", + "name": "offset", + "in": "query", + "schema": { + "minimum": 0, + "default": 0, + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Tag filters commits to only those with a specific tag (e.g. \"production\", \"staging\")", + "name": "tag", + "in": "query", + "schema": { + "type": "string", + "title": "Tag" + } + } ], - "summary": "List hub environments", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" + "$ref": "#/components/schemas/commits.ListCommitsResponse" } } } @@ -25487,7 +26127,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25497,7 +26137,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25507,13 +26147,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true }, "post": { "security": [ @@ -25527,19 +26167,38 @@ "Bearer Auth": [] } ], - "description": "Creates the hub environments configuration for the current tenant.", + "description": "Creates a new commit in a repository.\nRequires authentication and write access to the repository.", "tags": [ - "hub_environments" + "commits" + ], + "summary": "Create a commit", + "parameters": [ + { + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create hub environments model", - "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" + "$ref": "#/components/schemas/commits.CreateCommitResponse" } } } @@ -25549,17 +26208,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25569,26 +26238,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.CreateEnvironmentsRequest" + "$ref": "#/components/schemas/commits.CreateCommitReq" } } } } } }, - "/api/v1/hub/environments/{id}": { - "delete": { + "/api/v1/commits/{owner}/{repo}/{commit}": { + "get": { "security": [ { "API Key": [] @@ -25600,20 +26270,75 @@ "Bearer Auth": [] } ], - "description": "Deletes the hub environments configuration. Tenant reverts to defaults.", + "description": "Retrieves a specific commit by hash, tag, or \"latest\" for a repository.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repos, while unauthenticated users can only access public repos.\nCommit resolution logic:\n- \"latest\" or empty: Get the most recent commit\n- Less than 8 characters: Only check for tags\n- 8 or more characters: Prioritize commit hash over tag, check both", "tags": [ - "hub_environments" + "commits" ], - "summary": "Delete hub environments model", + "summary": "Get a commit", "parameters": [ { - "description": "Model ID", - "name": "id", + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Commit hash, tag, or 'latest'", + "name": "commit", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "get_examples", + "in": "query", + "schema": { + "default": false, + "type": "boolean", + "title": "Get Examples" + } + }, + { + "description": "Comma-separated list of optional fields: \"model\", \"is_draft\"", + "name": "include", + "in": "query", + "schema": { + "type": "string", + "title": "Include" + } + }, + { + "description": "Deprecated: use Include instead", + "name": "include_model", + "in": "query", + "schema": { + "default": false, + "type": "boolean", + "title": "Include Model" + } + }, + { + "name": "is_view", + "in": "query", + "schema": { + "default": false, + "type": "boolean", + "title": "Is View" + } } ], "responses": { @@ -25622,10 +26347,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/commits.CommitResponse" } } } @@ -25635,7 +26357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25645,7 +26367,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25655,14 +26377,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } - } - }, - "patch": { + }, + "x-public": true + } + }, + "/api/v1/hub/environments": { + "get": { "security": [ { "API Key": [] @@ -25674,22 +26399,11 @@ "Bearer Auth": [] } ], - "description": "Replaces the environments array on an existing model.", + "description": "Returns the hub environments model for the current tenant.\nReturns 404 if no custom configuration exists.", "tags": [ "hub_environments" ], - "summary": "Update hub environments model", - "parameters": [ - { - "description": "Model ID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], + "summary": "List hub environments", "responses": { "200": { "description": "OK", @@ -25732,20 +26446,10 @@ } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/hub_environments.UpdateEnvironmentsRequest" - } - } - } - } - } - }, - "/auth/public": { - "get": { + "x-public": true, + "parameters": [] + }, + "post": { "security": [ { "API Key": [] @@ -25757,28 +26461,69 @@ "Bearer Auth": [] } ], - "description": "Returns public authentication information for the current workspace-level session.", + "description": "Creates the hub environments configuration for the current tenant.", "tags": [ - "auth" + "hub_environments" ], - "summary": "Get public auth info", + "summary": "Create hub environments model", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authn.PublicAuthInfo" + "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.ErrorResponse" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.CreateEnvironmentsRequest" + } + } + } + } } }, - "/auth/sandbox-access": { - "get": { + "/api/v1/hub/environments/{id}": { + "delete": { "security": [ { "API Key": [] @@ -25790,30 +26535,19 @@ "Bearer Auth": [] } ], - "description": "Combines authn + per-sandbox authz for runtime access. Returns the caller's PublicAuthInfo on allow (HTTP 200) or a 403 with the deny reason on deny.", + "description": "Deletes the hub environments configuration. Tenant reverts to defaults.", "tags": [ - "sandboxes" + "hub_environments" ], - "summary": "Get sandbox access decision", + "summary": "Delete hub environments model", "parameters": [ { - "description": "Sandbox UUID", - "name": "sandbox_id", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Sandbox Id" - } - }, - { - "description": "Runtime action: exec | file | tunnel | proxy", - "name": "action", - "in": "query", + "description": "Model ID", + "name": "id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Action" + "type": "string" } } ], @@ -25823,7 +26557,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authn.PublicAuthInfo" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -25833,27 +26570,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "sandbox access denied: ", - "content": { - "application/json": { - "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -25863,42 +26580,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - } - } - } - }, - "/aws-marketplace/register": { - "post": { - "description": "Receives the x-amzn-marketplace-token posted by AWS Marketplace when a customer clicks \"Set Up Account\", resolves the customer identity, stores it in the DB, and redirects to the thank-you page.", - "tags": [ - "aws_marketplace" - ], - "summary": "AWS Marketplace fulfillment URL registration", - "parameters": [], - "responses": { - "303": { - "description": "Redirect to thank-you page" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -25908,35 +26590,15 @@ "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "x-amzn-marketplace-token": { - "type": "string", - "description": "Registration token from AWS Marketplace" - } - }, - "required": [ - "x-amzn-marketplace-token" - ] - } - } - } - } - } - }, - "/commits/{owner}/{repo}": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -25948,71 +26610,20 @@ "Bearer Auth": [] } ], - "description": "Lists all commits for a repository with pagination support.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repos, while unauthenticated users can only access public repos.\nThe include_stats parameter controls whether download and view statistics are computed (defaults to true).", + "description": "Replaces the environments array on an existing model.", "tags": [ - "commits" + "hub_environments" ], - "summary": "List commits", + "summary": "Update hub environments model", "parameters": [ { - "description": "Repository owner (tenant handle) or '-' for private repos", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", + "description": "Model ID", + "name": "id", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "description": "IncludeStats determines whether to compute num_downloads and num_views", - "name": "include_stats", - "in": "query", - "schema": { - "type": "boolean", - "default": true, - "title": "Include Stats" - } - }, - { - "description": "Limit is the pagination limit", - "name": "limit", - "in": "query", - "schema": { - "maximum": 100, - "type": "integer", - "default": 20, - "minimum": 1, - "title": "Limit" - } - }, - { - "description": "Offset is the pagination offset", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "default": 0, - "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": { @@ -26021,7 +26632,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ListCommitsResponse" + "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" } } } @@ -26031,7 +26642,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -26041,7 +26652,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -26051,14 +26662,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/hub_environments.UpdateEnvironmentsRequest" + } + } + } } - }, - "post": { + } + }, + "/api/v1/info": { + "get": { "security": [ { "API Key": [] @@ -26070,24 +26694,49 @@ "Bearer Auth": [] } ], - "description": "Creates a new commit in a repository.\nRequires authentication and write access to the repository.", + "description": "Returns information about the current LangSmith deployment: version,\ninstance feature flags, batch-ingest limits, and max SDK versions.\nUnauthenticated by default; set FF_INFO_ENDPOINT_AUTH_REQUIRED=true to require auth.", "tags": [ - "commits" + "info" ], - "summary": "Create a commit", - "parameters": [ - { - "description": "Repository owner (tenant handle) or '-' for private repos", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" + "summary": "Get server info", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/info.InfoGetResponse" + } + } } + } + }, + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/alerts/{session_id}": { + "post": { + "security": [ + { + "API Key": [] }, { - "description": "Repository handle", - "name": "repo", + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Creates a new alert rule. The request body must be a JSON-encoded alert rule object that follows the CreateAlertRuleRequest schema.", + "tags": [ + "alert_rules" + ], + "summary": "Create an alert rule", + "parameters": [ + { + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -26097,21 +26746,21 @@ ], "responses": { "201": { - "description": "Created", + "description": "Alert rule created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CreateCommitResponse" + "$ref": "#/components/schemas/alerts.AlertRuleResponse" } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } @@ -26121,46 +26770,57 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "429": { + "description": "Alert Rule Limit Reached", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CreateCommitReq" + "$ref": "#/components/schemas/alerts.CreateAlertRuleRequest" } } } } } }, - "/commits/{owner}/{repo}/{commit}": { - "get": { + "/api/v1/platform/alerts/{session_id}/test": { + "post": { "security": [ { "API Key": [] @@ -26172,24 +26832,15 @@ "Bearer Auth": [] } ], - "description": "Retrieves a specific commit by hash, tag, or \"latest\" for a repository.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repos, while unauthenticated users can only access public repos.\nCommit resolution logic:\n- \"latest\" or empty: Get the most recent commit\n- Less than 8 characters: Only check for tags\n- 8 or more characters: Prioritize commit hash over tag, check both", + "description": "Tests an alert action which will fire a notification to all configured recipients if the configuration is valid.", "tags": [ - "commits" + "alert_rules" ], - "summary": "Get a commit", + "summary": "Test an alert action to determine if configuration is valid", "parameters": [ { - "description": "Repository owner (tenant handle) or '-' for private repos", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -26197,97 +26848,86 @@ } }, { - "description": "Commit hash, tag, or 'latest'", - "name": "commit", + "description": "Alert rule ID", + "name": "alert_rule_id", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "name": "get_examples", - "in": "query", - "schema": { - "type": "boolean", - "default": false, - "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": { - "type": "boolean", - "default": false, - "title": "Include Model" - } - }, - { - "name": "is_view", - "in": "query", - "schema": { - "type": "boolean", - "default": false, - "title": "Is View" - } } ], "responses": { "200": { - "description": "OK", + "description": "Alert action fired successfully", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.CommitResponse" + "type": "object", + "additionalProperties": { + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] + } } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } } - } + }, + "x-public": true } }, - "/datasets/{dataset_id}/experiment-view-overrides": { + "/api/v1/platform/alerts/{session_id}/{alert_rule_id}": { "get": { "security": [ { @@ -26300,94 +26940,97 @@ "Bearer Auth": [] } ], - "description": "Retrieves all experiment view override configurations for a specific dataset.\nThis endpoint returns column display overrides including color gradients,\nprecision settings, and column visibility configurations that customize how\nexperiment results are displayed in the UI.\n\nThe response includes all column overrides with their display settings:\n- Column identifiers (must start with inputs, outputs, reference_outputs, feedback, metrics, attachments, or metadata)\n- Color gradients for numeric data visualization\n- Precision settings for numeric columns (1-6 decimal places)\n- Hide flags to control column visibility", + "description": "Gets an alert rule.", "tags": [ - "experiment-view-overrides" + "alert_rules" ], - "summary": "Get experiment view override configurations for a dataset", + "summary": "Get an alert rule", "parameters": [ { - "example": "\"550e8400-e29b-41d4-a716-446655440000\"", - "description": "Dataset ID", - "name": "dataset_id", + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Alert rule ID", + "name": "alert_rule_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } } ], "responses": { "200": { - "description": "Successfully retrieved experiment view override configurations", + "description": "Alert rule", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" - } + "$ref": "#/components/schemas/alerts.AlertRuleResponse" } } } }, "400": { - "description": "Invalid dataset ID format\" example({\"error\":\"invalid dataset ID format\"})", + "description": "Bad request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "404": { - "description": "Dataset not found or not accessible\" example({\"error\":\"dataset not found or not accessible\"})", + "description": "Not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "description": "Internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } - } - } - }, - "post": { - "security": [ + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.ErrorResponse" + } + } + } + } + }, + "x-public": true + }, + "delete": { + "security": [ { "API Key": [] }, @@ -26398,128 +27041,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).", + "description": "Deletes an alert rule", "tags": [ - "experiment-view-overrides" + "alert_rules" ], - "summary": "Create new experiment view override configuration for a dataset", + "summary": "Delete an alert rule", "parameters": [ { - "example": "\"550e8400-e29b-41d4-a716-446655440000\"", - "description": "Dataset ID", - "name": "dataset_id", + "description": "Session ID", + "name": "session_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Alert rule ID", + "name": "alert_rule_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } } ], "responses": { - "201": { - "description": "Successfully created experiment view override", - "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 deleted", "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": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -26531,200 +27157,123 @@ "Bearer Auth": [] } ], - "description": "Retrieves a specific experiment view override configuration using both dataset ID and override ID.\nThis endpoint provides more precise access to experiment view overrides when you have\nthe specific override ID, useful for direct links or cached references.\n\nThe response includes the same column override information as the dataset-level endpoint:\n- Column identifiers with validation prefixes\n- Color gradient settings for numeric data visualization\n- Numeric precision configurations\n- Column visibility controls\n\nBoth the dataset and override must exist and be accessible by the authenticated user.", + "description": "Updates an alert rule.", "tags": [ - "experiment-view-overrides" + "alert_rules" ], - "summary": "Get experiment view override configuration by specific ID", + "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" } }, { - "example": "\"123e4567-e89b-12d3-a456-426614174000\"", - "description": "Experiment view override ID", - "name": "id", + "description": "Alert rule ID", + "name": "alert_rule_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], "responses": { "200": { - "description": "Successfully retrieved experiment view override configuration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" - } - } - } - }, - "400": { - "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "description": "Alert rule updated", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { - "type": "string" + "allOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + ] } } } } }, - "404": { - "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "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": { - "type": "string", - "format": "uuid" - } - }, - { - "example": "\"123e4567-e89b-12d3-a456-426614174000\"", - "description": "Experiment view override ID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "204": { - "description": "Successfully deleted experiment view override (no content returned)" }, - "400": { - "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", + "404": { + "description": "Not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } }, - "404": { - "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/alerts.ErrorResponse" } } } - }, - "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/alerts.UpdateAlertRuleRequest" } } } } - }, - "patch": { + } + }, + "/api/v1/platform/annotation-queues/items/{queue_item_id}/status": { + "post": { "security": [ { "API Key": [] @@ -26736,125 +27285,88 @@ "Bearer Auth": [] } ], - "description": "Updates an existing experiment view override configuration by completely replacing\nthe column overrides for the specified dataset and override ID.\n\nThis endpoint performs a complete replacement of the column overrides configuration.\nAll existing column overrides will be replaced with the new configuration provided\nin the request body. To add or modify individual columns, include the complete\ndesired configuration in the request.\n\nThe request format is identical to the create endpoint:\n- column_overrides: Required array with at least one override configuration\n- Each override can specify color gradients, precision, and visibility\n\nExample request body:\n{\n\"column_overrides\": [\n{\n\"column\": \"metrics.f1_score\",\n\"color_gradient\": [[0.0, \"#ff4444\"], [0.8, \"#44ff44\"]],\n\"precision\": 4\n},\n{\n\"column\": \"feedback.rating\",\n\"hide\": false\n}\n]\n}\n\nBoth the dataset and override must exist and be accessible by the authenticated user.", + "description": "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": "Update existing experiment view override configuration", + "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 updated experiment view override", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + "$ref": "#/components/schemas/annotationqueues.CreateAnnotationQueueItemStatusResponse" } } } }, "400": { - "description": "Invalid request data\" example({\"error\":\"invalid experiment view override ID format\"})", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "422": { - "description": "Validation error\" example({\"error\":\"'precision' must be between 1 and 6 for column at index 0\"})", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePatchRequest" + "$ref": "#/components/schemas/annotationqueues.CreateAnnotationQueueItemStatusRequest" } } } } } }, - "/issues-agent/lcu-spend": { + "/api/v1/platform/annotation-queues/{queue_id}/items": { "get": { "security": [ { @@ -26867,28 +27379,80 @@ "Bearer Auth": [] } ], - "description": "Returns one row per tenant in the caller's\norganization, each carrying that tenant's Engine LCU\nspend over the requested window. The org-wide total\nis derived by the caller (the UI tile sums the\n`lcu_total` field across items) so future drill-down\nsurfaces can render the per-tenant breakdown without\na backend change. The window defaults to the current\ncalendar month (UTC) and can be overridden with\n`start` and `end` (RFC 3339, capped at 31 days). Hours\nwhere the rate card did not price a (provider, model)\npair are excluded from each item's `lcu_total` and\nsurfaced as `lcu_unpriced_row_count` so callers can\ndetect billing coverage gaps without inflating the\nspend number.", + "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": [ - "issues-agent" + "annotation_queues" ], - "summary": "Get issues-agent (Engine) LCU spend for every tenant in the calling org", + "summary": "List annotation queue items", "parameters": [ { - "description": "Inclusive window start, RFC 3339. Defaults to first instant of current calendar month (UTC).", - "name": "start", + "description": "Annotation queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Review section: needs_my_review, needs_others_review, or archived", + "name": "status", + "in": "query", + "required": true, + "schema": { + "type": "string", + "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", - "title": "Start" + "enum": [ + "RUN", + "THREAD" + ], + "title": "Item Type" } }, { - "description": "Exclusive window end, RFC 3339. Defaults to first instant of next calendar month (UTC).", - "name": "end", + "description": "Pagination direction. backward requires cursor", + "name": "direction", "in": "query", "schema": { + "default": "forward", "type": "string", - "title": "End" + "enum": [ + "forward", + "backward" + ], + "title": "Direction" } } ], @@ -26898,7 +27462,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendResponse" + "$ref": "#/components/schemas/annotationqueues.ListAnnotationQueueItemsResponse" } } } @@ -26908,7 +27472,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -26918,26 +27482,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - } - }, - "/me/providers/{providerType}": { - "get": { + }, + "x-public": true + }, + "post": { "security": [ { "API Key": [] @@ -26949,29 +27512,38 @@ "Bearer Auth": [] } ], - "description": "Returns the provider user ID associated with the authenticated user for a given provider type, or null if not set. Scoped to the current tenant.", + "description": "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": [ - "me" + "annotation_queues" ], - "summary": "Get the authenticated user's provider user ID", + "summary": "Add 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": { "type": "string" } + }, + { + "description": "Extend trace retention for added run items", + "name": "extend_trace_retention", + "in": "query", + "schema": { + "type": "boolean", + "title": "Extend Trace Retention" + } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/annotationqueues.AddAnnotationQueueItemsResponse" } } } @@ -26981,35 +27553,56 @@ "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/annotationqueues.AddAnnotationQueueItemsRequest" + } + } + } } } }, - "/oauth/authorize": { + "/api/v1/platform/annotation-queues/{queue_id}/items/count": { "get": { "security": [ { @@ -27022,111 +27615,63 @@ "Bearer Auth": [] } ], - "description": "Validates authorization request parameters and redirects to the frontend consent page per RFC 6749.", + "description": "Returns the number of annotation queue items for the requested reviewer-specific or archived bucket.", "tags": [ - "oauth" + "annotation_queues" ], - "summary": "Initiate OAuth2 authorization", + "summary": "Get the annotation queue item count", "parameters": [ { - "description": "Must be 'code'", - "name": "response_type", - "in": "query", + "description": "Queue ID", + "name": "queue_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Response Type" + "type": "string" } }, { - "description": "OAuth2 client ID", - "name": "client_id", + "description": "Count bucket: all, needs_my_review, needs_others_review, or archived.", + "name": "status", "in": "query", "required": true, "schema": { "type": "string", - "title": "Client Id" + "title": "Status" } }, { - "description": "Redirect URI registered with the client", - "name": "redirect_uri", + "description": "Exclusive lower bound for archived item timestamp", + "name": "start_time", "in": "query", - "required": true, "schema": { "type": "string", - "title": "Redirect Uri" + "title": "Start Time" } }, { - "description": "PKCE code challenge", - "name": "code_challenge", + "description": "Exclusive upper bound for archived item timestamp", + "name": "end_time", "in": "query", - "required": true, "schema": { "type": "string", - "title": "Code Challenge" - } - }, - { - "description": "PKCE method, must be 'S256'", - "name": "code_challenge_method", - "in": "query", - "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" + "title": "End Time" } } ], "responses": { - "302": { - "description": "Found" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemCountResponse" } } } - } - } - } - }, - "/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", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -27138,32 +27683,41 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "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", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -27173,62 +27727,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "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" - ] - } - } - } - } + "x-public": true } }, - "/oauth/device/authorize": { + "/api/v1/platform/annotation-queues/{queue_id}/items/delete": { "post": { "security": [ { @@ -27241,12 +27752,22 @@ "Bearer Auth": [] } ], - "description": "Marks a device code as authorized for the authenticated user. Called by the /activate page when the user enters their user code. Requires authentication.", + "description": "Remove RUN or THREAD items from a single annotation queue by item ID.", "tags": [ - "oauth" + "annotation_queues" + ], + "summary": "Delete annotation queue items", + "parameters": [ + { + "description": "Annotation queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Authorize a device code", - "parameters": [], "responses": { "200": { "description": "OK", @@ -27266,64 +27787,57 @@ "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" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "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": { - "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.DeleteAnnotationQueueItemsRequest" } } } } } }, - "/oauth/device/code": { - "post": { + "/api/v1/platform/annotation-queues/{queue_id}/items/{item_id}": { + "patch": { "security": [ { "API Key": [] @@ -27335,19 +27849,38 @@ "Bearer Auth": [] } ], - "description": "Issues a device code and user code for the device authorization flow per RFC 8628.", + "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": "Update an annotation queue item", + "parameters": [ + { + "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": { + "type": "string" + } + } ], - "summary": "Request OAuth2 device authorization", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.DeviceCodeResponse" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItem" } } } @@ -27357,45 +27890,57 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "description": "OAuth2 client ID" - } - }, - "required": [ - "client_id" - ] + "$ref": "#/components/schemas/annotationqueues.PatchAnnotationQueueItemRequest" } } } } } }, - "/oauth/register": { - "post": { + "/api/v1/platform/annotation-queues/{queue_id}/items/{item_id}/placement": { + "get": { "security": [ { "API Key": [] @@ -27407,19 +27952,38 @@ "Bearer Auth": [] } ], - "description": "Public RFC 7591 Dynamic Client Registration endpoint. Only mints public clients with loopback HTTP or HTTPS-with-domain redirect URIs. Body limit 8 KB.", + "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 annotation queue item placement", + "parameters": [ + { + "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": { + "type": "string" + } + } ], - "summary": "Register an OAuth2 dynamic client", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.ClientRegistrationResponse" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemPlacementResponse" } } } @@ -27429,45 +27993,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "413": { - "description": "Request Entity Too Large", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/oauth.ClientRegistrationRequest" - } - } - } - } + "x-public": true } }, - "/oauth/revoke": { + "/api/v1/platform/annotation-queues/{queue_id}/reviewers": { "post": { "security": [ { @@ -27480,64 +28035,29 @@ "Bearer Auth": [] } ], - "description": "Revokes an access token or refresh token per RFC 7009. Always returns 200 regardless of whether the token was found.", + "description": "Assigns a single identity as a reviewer for the queue. Idempotent.", "tags": [ - "oauth" + "annotation_queues" ], - "summary": "Revoke an OAuth2 token", - "parameters": [], - "responses": { - "200": { - "description": "OK" - } - }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "token": { - "type": "string", - "description": "Token to revoke (access token or refresh token)" - } - }, - "required": [ - "token" - ] - } - } - } - } - } - }, - "/oauth/token": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, + "summary": "Add a reviewer to an annotation queue", + "parameters": [ { - "Bearer Auth": [] + "description": "Queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], - "description": "Token endpoint that dispatches by grant_type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token.", - "tags": [ - "oauth" - ], - "summary": "Exchange grant for OAuth2 tokens", - "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenResponse" + "$ref": "#/components/schemas/annotationqueues.AddReviewerResponse" } } } @@ -27547,7 +28067,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -27557,102 +28093,72 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/oauth.TokenErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "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" - ] + "$ref": "#/components/schemas/annotationqueues.AddReviewerRequest" } } } } } }, - "/orgs/current/data-planes": { - "get": { + "/api/v1/platform/annotation-queues/{queue_id}/reviewers/{identity_id}": { + "delete": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns up to 50 data planes owned by the caller's organization. Sorted status priority (active first), then newest first. Requires BYOC to be enabled for the org.", + "description": "Unassigns an identity as a reviewer for the queue. Idempotent.", "tags": [ - "data_planes" + "annotation_queues" ], - "summary": "List data planes for the current organization", - "responses": { - "200": { - "description": "Data planes", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/data_planes.ListPublicDataPlanesResponse" - } - } + "summary": "Remove a reviewer from an annotation queue", + "parameters": [ + { + "description": "Queue ID", + "name": "queue_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, - "400": { - "description": "Invalid organization ID", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } + { + "description": "Identity ID of the reviewer to remove", + "name": "identity_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } + } + ], + "responses": { + "204": { + "description": "No Content" }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -27664,8 +28170,8 @@ } } }, - "403": { - "description": "BYOC not enabled for this organization", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { @@ -27678,7 +28184,7 @@ } }, "500": { - "description": "Internal server error", + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -27691,117 +28197,95 @@ } } }, - "parameters": [] - }, + "x-public": true + } + }, + "/api/v1/platform/datasets/examples/delete": { "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.", + "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": [ - "data_planes" + "examples" ], - "summary": "Create a new data plane", + "summary": "Hard Delete Examples", "parameters": [], "responses": { - "202": { - "description": "Data plane requested", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/data_planes.PublicDataPlane" + "$ref": "#/components/schemas/examples.ExamplesDeletedResponse" } } } }, "400": { - "description": "Invalid input", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, "403": { - "description": "BYOC not enabled or insufficient permissions", + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "409": { - "description": "Name already exists for this organization", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "500": { - "description": "Internal server error", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/examples.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/data_planes.CreateDataPlaneRequestAws" + "$ref": "#/components/schemas/examples.DeleteExamplesRequest" } } } } } }, - "/repos/{owner}/{repo}/tags/{tag_name}/history": { - "get": { + "/api/v1/platform/datasets/{dataset_id}/examples": { + "post": { "security": [ { "API Key": [] @@ -27813,68 +28297,30 @@ "Bearer Auth": [] } ], - "description": "Returns the paginated audit log of transitions for a specific\ntag in a repository. Each entry records a commit change\n(from_commit → to_commit) along with who performed it.", + "description": "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": [ - "tag-transitions" + "examples" ], - "summary": "Get tag transition history", + "summary": "Upload Examples", "parameters": [ { - "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", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" - } - }, - { - "name": "limit", - "in": "query", - "schema": { - "maximum": 100, - "type": "integer", - "default": 50, - "minimum": 1, - "title": "Limit" - } - }, - { - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "default": 0, - "minimum": 0, - "title": "Offset" + "type": "string", + "format": "uuid" } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.TagTransitionHistoryResponse" + "$ref": "#/components/schemas/examples.ExamplesCreatedResponse" } } } @@ -27884,36 +28330,81 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tag_transitions.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/examples.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "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" + ] + } + } + } } - } - }, - "/runs": { - "post": { + }, + "patch": { "security": [ { "API Key": [] @@ -27925,34 +28416,30 @@ "Bearer Auth": [] } ], - "description": "Queues a single run for ingestion. The request body must be a JSON-encoded run object that follows the Run schema.", + "description": "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": [ - "runs" + "examples" + ], + "summary": "Update Examples", + "parameters": [ + { + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } ], - "summary": "Create a Run", - "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/examples.ExamplesUpdatedResponse" } } } @@ -27962,7 +28449,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } @@ -27972,56 +28459,87 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } }, - "429": { - "description": "Too Many Requests", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/runs.Run" + "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}" + ] } } } } } }, - "/runs/batch": { - "post": { + "/api/v1/platform/evaluators": { + "get": { "security": [ { "API Key": [] @@ -28033,34 +28551,113 @@ "Bearer Auth": [] } ], - "description": "Ingests a batch of runs in a single JSON payload. The payload must have `post` and/or `patch` arrays containing run objects.\nPrefer this endpoint over single‑run ingestion when submitting hundreds of runs, but `/runs/multipart` offers better handling for very large fields and attachments.", + "description": "List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.", "tags": [ - "runs" + "evaluators" + ], + "summary": "List evaluators", + "parameters": [ + { + "description": "Filter by evaluator type", + "name": "type", + "in": "query", + "schema": { + "type": "string", + "title": "Type" + } + }, + { + "description": "Filter by name substring (also searches creator names)", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" + } + }, + { + "description": "Filter by tag value IDs", + "name": "tag_value_id", + "in": "query", + "style": "form", + "explode": false, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Tag Value Id" + } + }, + { + "description": "Filter by feedback key", + "name": "feedback_key", + "in": "query", + "schema": { + "type": "string", + "title": "Feedback Key" + } + }, + { + "description": "Filter by resource IDs", + "name": "resource_id", + "in": "query", + "style": "form", + "explode": false, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Resource Id" + } + }, + { + "description": "Field to sort by", + "name": "sort_by", + "in": "query", + "schema": { + "type": "string", + "title": "Sort By" + } + }, + { + "description": "Sort in descending order", + "name": "sort_by_desc", + "in": "query", + "schema": { + "type": "boolean", + "title": "Sort By Desc" + } + }, + { + "description": "Maximum number of results (1-100)", + "name": "limit", + "in": "query", + "schema": { + "default": 100, + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Offset for pagination", + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "title": "Offset" + } + } ], - "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.ListEvaluatorsResponse" } } } @@ -28070,79 +28667,44 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "429": { - "description": "Too Many Requests", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "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": { + "x-public": true + }, "post": { "security": [ { @@ -28155,22 +28717,19 @@ "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.", + "description": "Create a new LLM or code evaluator for the current workspace.", "tags": [ - "runs" + "evaluators" ], - "summary": "Ingest Runs (Multipart)", + "summary": "Create evaluator", "parameters": [], "responses": { - "202": { - "description": "Accepted", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.CreateEvaluatorResponse" } } } @@ -28180,98 +28739,55 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "429": { - "description": "Too Many Requests", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "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}" - } - } + "$ref": "#/components/schemas/evaluators.CreateEvaluatorRequest" } } } } - } - }, - "/runs/{run_id}": { - "patch": { + }, + "delete": { "security": [ { "API Key": [] @@ -28283,45 +28799,44 @@ "Bearer Auth": [] } ], - "description": "Updates a run identified by its ID. The body should contain only the fields to be changed; unknown fields are ignored.", + "description": "Delete multiple evaluators by their IDs. Returns per-item success/failure.", "tags": [ - "runs" + "evaluators" ], - "summary": "Update a Run", + "summary": "Bulk delete evaluators", "parameters": [ { - "description": "Run ID", - "name": "run_id", - "in": "path", + "description": "Evaluator IDs to delete", + "name": "evaluator_ids", + "in": "query", "required": true, + "style": "form", + "explode": false, "schema": { - "type": "string", - "format": "uuid" + "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" } } ], "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.BulkDeleteEvaluatorsResponse" } } } @@ -28331,75 +28846,46 @@ "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" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "429": { - "description": "Too Many Requests", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/runs.Run" - } - } - } - } + "x-public": true } }, - "/v1/agent-builder/integrations": { + "/api/v1/platform/evaluators/spend": { "get": { "security": [ { @@ -28412,18 +28898,112 @@ "Bearer Auth": [] } ], - "description": "Returns default policy, integration overrides, and known integrations for the current workspace.", + "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": [ - "integrations" + "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": "Get Agent Builder integrations settings", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" + "$ref": "#/components/schemas/evaluators.GetEvaluatorSpendResponse" } } } @@ -28433,10 +29013,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28446,10 +29033,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28459,10 +29043,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28472,18 +29053,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, - "parameters": [] - }, - "put": { + "x-public": true + } + }, + "/api/v1/platform/evaluators/{evaluator_id}": { + "get": { "security": [ { "API Key": [] @@ -28495,19 +29075,29 @@ "Bearer Auth": [] } ], - "description": "Replaces default policy and integration overrides for the current workspace.", + "description": "Retrieve a single evaluator by its ID.", "tags": [ - "integrations" + "evaluators" + ], + "summary": "Get evaluator", + "parameters": [ + { + "description": "Evaluator ID", + "name": "evaluator_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Update Agent Builder integrations settings", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" + "$ref": "#/components/schemas/evaluators.Evaluator" } } } @@ -28517,10 +29107,27 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28530,10 +29137,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28543,29 +29147,15 @@ "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": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -28577,12 +29167,31 @@ "Bearer Auth": [] } ], - "description": "Records aggregate entity counts (workspaces, projects, datasets, active users, etc.)\nfrom a self-hosted deployment or BYOC data plane.\nSelf-hosted authenticates via license_key in the body.\nBYOC data planes authenticate via the X-Data-Plane-Auth JWT header.", + "description": "Delete an evaluator. When delete_run_rules is true, all run rules referencing this evaluator are deleted first (same tenant). Associated llm_evaluators and code_evaluators rows are removed by foreign-key cascade when the evaluator row is deleted.", "tags": [ - "beacon" + "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": "Submit a usage snapshot", - "parameters": [], "responses": { "204": { "description": "No Content" @@ -28592,10 +29201,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28605,10 +29211,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28618,43 +29221,45 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "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" + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } } } } }, - "x-hidden": true - } - }, - "/v1/deepagents/auth-sessions": { - "post": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -28666,78 +29271,98 @@ "Bearer Auth": [] } ], - "description": "Initiates an OAuth flow for the caller. If the user is already authorized, returns a completed session that references an existing token. Otherwise, returns a pending session containing a verification URL the user must visit to complete authorization.", + "description": "Update an existing evaluator's name, LLM configuration, or code configuration.", "tags": [ - "fleet auth" + "evaluators" + ], + "summary": "Update evaluator", + "parameters": [ + { + "description": "Evaluator ID", + "name": "evaluator_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Start an authorization session", - "parameters": [], "responses": { "200": { - "description": "Existing token reused; no new session created.", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "$ref": "#/components/schemas/evaluators.UpdateEvaluatorResponse" } } } }, - "201": { - "description": "New pending session created; visit verification_url to complete.", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/evaluators.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionRequest" + "$ref": "#/components/schemas/evaluators.UpdateEvaluatorRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/deepagents/auth-sessions/{session_id}": { + "/api/v1/platform/features": { "get": { "security": [ { @@ -28750,48 +29375,21 @@ "Bearer Auth": [] } ], - "description": "Returns the current status of an in-flight authorization session. The optional `wait_seconds` query param (1-25, default 1) keeps the request open up to that many seconds, returning early if the session completes. Poll until status is COMPLETED.", + "description": "Returns a consolidated view of default models and disabled models per feature for the workspace.", "tags": [ - "fleet auth" - ], - "summary": "Get an authorization session", - "parameters": [ - { - "description": "Authorization session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Long-poll window in seconds (1-25, default 1)", - "name": "wait_seconds", - "in": "query", - "schema": { - "type": "integer", - "title": "Wait Seconds" - } - } + "features" ], + "summary": "List feature configurations", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.GetSessionResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/features.FeatureConfig" + } } } } @@ -28801,37 +29399,38 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/features.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/deepagents/mcp-servers": { - "get": { + "/api/v1/platform/features/{feature}/default-model": { + "put": { "security": [ { "API Key": [] @@ -28843,41 +29442,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.", + "description": "Sets or replaces the default model for a feature in the workspace.", "tags": [ - "fleet mcp" + "features" ], - "summary": "List MCP servers", + "summary": "Set 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" - } - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28887,7 +29477,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28897,7 +29487,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28907,25 +29497,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/features.UpsertDefaultModelRequest" } } } - }, - "x-hidden": true + } }, - "post": { + "delete": { "security": [ { "API Key": [] @@ -28937,99 +29527,149 @@ "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "description": "Removes the default model for a feature in the workspace.", "tags": [ - "fleet mcp" + "features" + ], + "summary": "Delete default model for a feature", + "parameters": [ + { + "description": "Feature name", + "name": "feature", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create MCP server", - "parameters": [], "responses": { - "201": { - "description": "Created", + "204": { + "description": "No Content" + }, + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } + } + }, + "x-public": true + } + }, + "/api/v1/platform/features/{feature}/disabled-models": { + "put": { + "security": [ + { + "API Key": [] }, - "403": { - "description": "Forbidden", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Adds a model to the disabled list for a feature in the workspace.", + "tags": [ + "features" + ], + "summary": "Disable a model for a feature", + "parameters": [ + { + "description": "Feature name", + "name": "feature", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" + "$ref": "#/components/schemas/features.DisableModelRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/deepagents/mcp-servers/{mcp_server_id}": { - "get": { + "/api/v1/platform/features/{feature}/disabled-models/{model}": { + "delete": { "security": [ { "API Key": [] @@ -29041,15 +29681,24 @@ "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "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": { @@ -29058,22 +29707,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" } } } @@ -29083,7 +29725,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -29093,17 +29735,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" } } } @@ -29113,62 +29745,69 @@ "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": { + "x-public": true + } + }, + "/api/v1/platform/gateway-policies": { + "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "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" + } } } } @@ -29178,27 +29817,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" } } } @@ -29208,99 +29837,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 + "x-public": true }, - "patch": { + "post": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "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" } } } @@ -29310,81 +29916,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" } } } } }, + "x-codeSamples": [ + { + "label": "spend_cap", + "lang": "json", + "source": "{\n \"name\": \"monthly-cap\",\n \"policy_type\": \"spend_cap\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 100}\n}" + }, + { + "label": "guard", + "lang": "json", + "source": "{\n \"name\": \"redact-pii\",\n \"policy_type\": \"guard\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 3}\n}" + }, + { + "label": "route_config", + "lang": "json", + "source": "{\n \"name\": \"gpt-fallback\",\n \"policy_type\": \"route_config\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\": \"workspace_id\", \"value\": \"\"}],\n \"config\": {\"strategy\": \"priority_fallback\", \"triggers\": {\"status_codes\": [429, 500, 502, 503, 504]}, \"fallbacks\": [{\"model_configs\": [{\"model_config_id\": \"11111111-1111-1111-1111-111111111111\"}]}]}\n}" + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" + "$ref": "#/components/schemas/gateway_policies.CreateGatewayPolicyRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/deepagents/mcp-servers/{mcp_server_id}/oauth-provider": { + "/api/v1/platform/gateway-policies/search": { "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.", + "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": [ - "fleet mcp" - ], - "summary": "Register per-user MCP OAuth provider", - "parameters": [ - { - "description": "MCP server ID", - "name": "mcp_server_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "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" } } } @@ -29394,27 +29997,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" } } } @@ -29424,122 +30017,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" } } } } }, + "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/fleet/agents": { + "/api/v1/platform/gateway-policies/{id}": { "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.", + "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": [ - "agents" + "gateway-policies" ], - "summary": "List agents", + "summary": "Get 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": { - "enum": [ - "user", - "tenant" - ], - "type": "string", - "default": "user", - "title": "Audience" - } - }, - { - "description": "Field to sort by.", - "name": "sort_by", - "in": "query", - "schema": { - "enum": [ - "created_at", - "updated_at", - "name" - ], - "type": "string", - "default": "updated_at", - "title": "Sort By" - } - }, - { - "description": "Sort direction.", - "name": "sort_order", - "in": "query", + "description": "Policy ID", + "name": "id", + "in": "path", + "required": true, "schema": { - "enum": [ - "asc", - "desc" - ], "type": "string", - "default": "desc", - "title": "Sort Order" + "format": "uuid" } } ], @@ -29549,17 +30069,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ListAgentsResponse" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29569,129 +30089,110 @@ "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 OrganizationRead", "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 + "x-public": true }, - "post": { + "delete": { "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 file tree is built from typed fields:\n* `system_prompt` → `AGENTS.md` (`instructions` is a\ndeprecated alias; `system_prompt` wins when both are sent)\n* `tools` → `tools.json`\n* `subagents[i]` → `subagents//AGENTS.md` + `subagents//tools.json`\n* `skills[i]` → `skills//SKILL.md` + supporting files\n\nAll file paths in `skills[i].files` and the top-level `files` map\nmust be relative — no leading `/`, no `..` segments.\n\n`extras` is an arbitrary key/value map for caller-defined tracking\nattached to the agent's metadata.\n\nUse `files` for paths the typed fields don't cover. Setting both\na typed field and the corresponding `files` entry returns 422.", + "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": "Create an agent", + "summary": "Delete 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" + "type": "string", + "format": "uuid" } } ], "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.Agent" - } - } - } + "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" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "409": { - "description": "Conflict", + "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" } } } }, - "422": { - "description": "Unprocessable Entity", + "404": { + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29701,82 +30202,38 @@ "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/gateway_policies.errorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CreateAgentRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/agents/{agent_id}": { - "get": { + "x-public": true + }, + "patch": { "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": "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": "Get an agent", + "summary": "Update a gateway policy", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Policy ID", + "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } - }, - { - "description": "Include the raw file map in the response", - "name": "include_files", - "in": "query", - "schema": { - "type": "boolean", - "title": "Include Files" - } } ], "responses": { @@ -29785,17 +30242,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, "400": { - "description": "Bad Request", + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } @@ -29805,65 +30262,84 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, "404": { - "description": "Not Found", + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "409": { + "description": "matcher edit collides with another policy in the same family", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } + } + }, + "x-codeSamples": [ + { + "label": "spend_cap", + "lang": "json", + "source": "{\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 200},\n \"enabled\": false\n}" }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } + { + "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/gateway_policies.UpdateGatewayPolicyRequest" } } } - }, - "x-hidden": true - }, - "delete": { + } + } + }, + "/api/v1/platform/hub/repos/{owner}/{repo}/directories": { + "get": { "security": [ { "API Key": [] @@ -29875,91 +30351,105 @@ "Bearer Auth": [] } ], - "description": "Deletes the agent and all of its associated state. The call is\nidempotent — deleting a non-existent agent returns 204.", + "description": "Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.", "tags": [ - "agents" + "directories" ], - "summary": "Delete 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" + } + }, + { + "description": "Repository handle", + "name": "repo", "in": "path", "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Commit hash/tag to resolve (defaults to latest)", + "name": "commit", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "title": "Commit" } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.GetDirectoryResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } } }, - "x-hidden": true + "x-public": true }, - "patch": { + "delete": { "security": [ { "API Key": [] @@ -29971,49 +30461,64 @@ "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`, `permissions`, `tools`,\n`subagents`, `skills`, `extras`) are replaced in full when any\nof their fields is provided. To preserve existing nested values,\ninclude them in your PATCH.\n* Providing any of `system_prompt`, `tools`, `subagents`, `skills`,\nor `files` triggers a new file tree commit. `instructions` is\na deprecated alias for `system_prompt` and is still accepted;\n`system_prompt` wins when both are sent.\n\nEntries under `files` are created or replaced by path. The call is\natomic per request: if any entry fails validation, no changes are\napplied.", + "description": "Deletes an agent or skill repository and its owned child file repositories.", "tags": [ - "agents" + "directories" ], - "summary": "Update 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", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, { - "description": "Echo the agent's file tree in the response", - "name": "include_files", + "description": "Repository type to delete; a different type is treated as not found", + "name": "repo_type", "in": "query", "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string", + "enum": [ + "agent", + "skill" + ], + "title": "Repo Type" } } ], "responses": { - "200": { - "description": "OK", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/directories.errorResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } @@ -30023,7 +30528,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } @@ -30033,17 +30538,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } @@ -30053,26 +30548,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.UpdateAgentRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/agents/{agent_id}/clone": { + "/api/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { "post": { "security": [ { @@ -30085,39 +30570,38 @@ "Bearer Auth": [] } ], - "description": "Creates a new agent that mirrors the source agent's behaviour\nbut is owned by the calling identity. Creation is atomic — the\nclone is either fully created or no state is persisted.\n\nWhat is copied from the source:\n* `description`\n* `runtime` (model configuration)\n* `backend` (backend type + sandbox configuration)\n* `system_prompt`, `tools`, `subagents`, `skills`\n* any leftover files outside the typed fields above (e.g.\n`docs/README.md` attached via the escape `files` field)\n\nWhat the caller can override (sent in the request body):\n* `name` — defaults to `\" (Copy)\"`\n* `permissions` — defaults to the source's `identity` with\n`visibility=user` and `tenant_access_level=read`. When\nsupplied the object fully replaces the default; PATCH-style\nmerging does not apply.\n\nWhat is always reset for the clone (you cannot override these):\n* agent ID, agent version, owner, timestamps\n* stamped user context (`user_email`, `user_name`,\n`user_timezone` — taken from the calling identity + the\n`X-User-Timezone` header)\n\nWhat is never copied (start fresh on the clone):\n* `extras` (caller-defined metadata bag, e.g. icon\ncustomisations, template IDs)\n* caller-defined `configurable` bag entries\n* sharing state, tokens, triggers, and schedules\n\nCloning a built-in system template returns 422.", + "description": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations.", "tags": [ - "agents" + "directories" ], - "summary": "Clone an agent", + "summary": "Create directory commit", "parameters": [ { - "description": "Source 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 new 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" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/directories.CommitResponse" } } } @@ -30127,7 +30611,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } @@ -30137,7 +30621,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } @@ -30147,7 +30631,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } @@ -30157,17 +30641,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/directories.errorResponse" } } } @@ -30177,46 +30661,26 @@ "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/directories.errorResponse" } } } } }, + "x-public": true, "requestBody": { - "required": false, + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.CloneAgentRequest" + "$ref": "#/components/schemas/directories.CreateDirectoryCommitRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/agents/{agent_id}/connections": { + "/api/v1/platform/issues": { "get": { "security": [ { @@ -30229,19 +30693,119 @@ "Bearer Auth": [] } ], - "description": "Lists the OAuth connections for an agent.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns issues for the authenticated tenant, optionally filtered\nby session, status, severity, tag, linked trace, or last modified time.", "tags": [ - "agents" + "issues" ], - "summary": "List an agent's connections", + "summary": "[Beta] List issues", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", - "in": "path", - "required": true, + "description": "Filter by session ID (UUID)", + "name": "session_id", + "in": "query", "schema": { - "type": "string" + "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", + "fixing", + "watching", + "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 with a linked run in this trace", + "name": "trace_id", + "in": "query", + "schema": { + "type": "string", + "format": "uuid", + "title": "Trace Id" + } + }, + { + "description": "Return only issues updated at or after this RFC3339 timestamp", + "name": "updated_at", + "in": "query", + "schema": { + "type": "string", + "title": "Updated At" + } + }, + { + "description": "Sort field", + "name": "sort_by", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "created_at", + "updated_at", + "severity" + ], + "title": "Sort By" + } + }, + { + "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" } } ], @@ -30251,7 +30815,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ListConnectionsResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_session_issues.Issue" + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30261,35 +30838,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } } }, - "x-hidden": true - }, - "post": { + "x-public": true + } + }, + "/api/v1/platform/issues-agent": { + "get": { "security": [ { "API Key": [] @@ -30301,29 +30880,21 @@ "Bearer Auth": [] } ], - "description": "Associates an existing auth token with an agent so the agent can act with that token.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns every issues agent config configured for the authenticated tenant.", "tags": [ - "agents" - ], - "summary": "Create a connection for an agent", - "parameters": [ - { - "description": "Agent ID", - "name": "agent_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "issues-agent" ], + "summary": "[Beta] List issues agent configs", "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Connection" + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" + } } } } @@ -30333,7 +30904,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -30343,57 +30914,38 @@ "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/tracer_session_issues_agent.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CreateConnectionRequest" - } - } - } - }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/fleet/agents/{agent_id}/connections/{connection_id}": { - "delete": { + "/api/v1/platform/issues/{id}": { + "get": { "security": [ { "API Key": [] @@ -30405,24 +30957,15 @@ "Bearer Auth": [] } ], - "description": "Removes a single connection from an agent. The underlying token is not revoked.", + "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": "Remove an agent's connection", + "summary": "[Beta] Get issue", "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": { @@ -30431,15 +30974,42 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues.Issue" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + } + } + } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30449,27 +31019,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/agents/{agent_id}/health": { - "get": { + "/api/v1/platform/issues/{id}/views": { + "post": { "security": [ { "API Key": [] @@ -30481,30 +31051,32 @@ "Bearer Auth": [] } ], - "description": "Returns a per-MCP-server health summary for the agent. Each MCP\nserver referenced by the agent (its tools.json plus every\nsubagent's tools.json) is probed in parallel by issuing a single\nMCP initialize JSON-RPC call. Credentials are resolved per\n(tenant, server) using the configured authentication method.\nPer-server failures surface as\n`ok=false` with an `error_code` (auth_failed | unreachable |\ninvalid_response) and a human-readable `error` string.\n`mcp_check.ok` is `true` only when every server returns a\nhealthy response; an empty server list is treated as healthy.", + "description": "**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.", "tags": [ - "agents" + "issues" ], - "summary": "Check agent MCP-server health", + "summary": "[Beta] Mark issue viewed", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Issue ID (UUID)", + "name": "id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], "responses": { - "200": { - "description": "OK", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.HealthResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30514,7 +31086,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30524,7 +31106,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30534,16 +31116,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/auth-providers": { + "/api/v1/platform/mcp-vendors": { "get": { "security": [ { @@ -30556,40 +31138,49 @@ "Bearer Auth": [] } ], - "description": "Lists the OAuth providers configured for your organization. Each provider defines how a third-party service (GitHub, Google, Slack, etc.) authorizes connections.", + "description": "Returns the catalog of available MCP vendors.", "tags": [ - "fleet auth" + "mcp_vendors" ], - "summary": "List OAuth providers", + "summary": "List MCP vendors", "responses": { "200": { - "description": "OK" - }, - "401": { - "description": "Unauthorized", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" } } } }, - "502": { - "description": "Bad Gateway", + "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" } } } } }, - "parameters": [], - "x-hidden": true - }, - "post": { + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}": { + "get": { "security": [ { "API Key": [] @@ -30601,21 +31192,29 @@ "Bearer Auth": [] } ], - "description": "Registers an OAuth provider configuration for your organization. End users can then start authorization sessions against this provider.", + "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": "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.GetMcpVendorResponse" } } } @@ -30625,28 +31224,37 @@ "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 + "x-public": true } }, - "/v1/fleet/auth-providers/discover": { - "post": { + "/api/v1/platform/mcp-vendors/{vendor_slug}/account": { + "get": { "security": [ { "API Key": [] @@ -30658,21 +31266,39 @@ "Bearer Auth": [] } ], - "description": "Auto-discovers an OAuth provider's metadata from an MCP server URL and registers it for your organization in one step.", + "description": "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": "Discover and register an OAuth provider", "responses": { - "201": { - "description": "Created" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30682,7 +31308,27 @@ "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" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30692,17 +31338,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true } }, - "/v1/fleet/auth-providers/{provider_id}": { + "/api/v1/platform/mcp-vendors/{vendor_slug}/mcp-servers": { "get": { "security": [ { @@ -30715,97 +31360,77 @@ "Bearer Auth": [] } ], - "description": "Returns a single OAuth provider by ID.", + "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" - }, - "401": { - "description": "Unauthorized", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ListMcpGatewaysResponse" } } } }, - "404": { - "description": "Not Found", + "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" } } } - } - }, - "x-hidden": true - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes an OAuth provider. Tokens previously issued for this provider are revoked.", - "tags": [ - "fleet auth" - ], - "summary": "Delete an OAuth provider", - "parameters": [ - { - "description": "Provider ID", - "name": "provider_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30815,7 +31440,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30825,15 +31450,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { + "x-public": true + } + }, + "/api/v1/platform/mcp-vendors/{vendor_slug}/settings": { + "get": { "security": [ { "API Key": [] @@ -30845,15 +31472,15 @@ "Bearer Auth": [] } ], - "description": "Updates an OAuth provider's configuration. Sent fields replace the stored values; absent fields are left unchanged.", + "description": "Returns the current vendor-specific settings.", "tags": [ - "fleet auth" + "mcp_vendors" ], - "summary": "Update 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": { @@ -30863,14 +31490,11 @@ ], "responses": { "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" } } } @@ -30880,37 +31504,35 @@ "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": { + "x-public": true + }, + "put": { "security": [ { "API Key": [] @@ -30922,15 +31544,15 @@ "Bearer Auth": [] } ], - "description": "Registers a credential (e.g. a static bearer token) under an auth scope and binds it to one or more targets such as MCP servers. The response never includes the secret token.", + "description": "Replaces vendor settings.", "tags": [ - "fleet credentials" + "mcp_vendors" ], - "summary": "Create a credential under an auth scope", + "summary": "Replace 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": { @@ -30939,12 +31561,12 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.response" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" } } } @@ -30954,7 +31576,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30964,7 +31586,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30974,16 +31606,24 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/auth-sessions": { + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" + } + } + } + } + }, "post": { "security": [ { @@ -30996,79 +31636,97 @@ "Bearer Auth": [] } ], - "description": "Initiates an OAuth flow for the caller. If the user is already authorized, returns a completed session that references an existing token. Otherwise, returns a pending session containing a verification URL the user must visit to complete authorization.", + "description": "Initializes vendor settings.", "tags": [ - "fleet auth" + "mcp_vendors" + ], + "summary": "Create vendor settings", + "parameters": [ + { + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Start an authorization session", - "parameters": [], "responses": { - "200": { - "description": "Existing token reused; no new session created.", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" } } } }, - "201": { - "description": "New pending session created; visit verification_url to complete.", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "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/mcp_vendors.ErrorResponse" + } + } + } + }, + "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" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.CreateSessionRequest" + "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" } } } - }, - "x-hidden": true - } - }, - "/v1/fleet/auth-sessions/{session_id}": { - "get": { + } + }, + "delete": { "security": [ { "API Key": [] @@ -31080,29 +31738,20 @@ "Bearer Auth": [] } ], - "description": "Returns the current status of an in-flight authorization session. The optional `wait_seconds` query param (1-25, default 1) keeps the request open up to that many seconds, returning early if the session completes. Poll until status is COMPLETED.", + "description": "Removes 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": { @@ -31111,17 +31760,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" } } } @@ -31131,36 +31770,36 @@ "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 + "x-public": true } }, - "/v1/fleet/auth-tokens": { + "/api/v1/platform/mcp-vendors/{vendor_slug}/tools": { "get": { "security": [ { @@ -31173,46 +31812,37 @@ "Bearer Auth": [] } ], - "description": "Lists the active OAuth tokens belonging to the caller. Optionally filter by provider or agent. Accepts page_size and cursor for forward compatibility; pagination is not yet enforced and all matching tokens are returned in one page.", + "description": "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" } } ], @@ -31222,47 +31852,47 @@ "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 + "x-public": true } }, - "/v1/fleet/auth-tokens/{token_id}": { - "delete": { + "/api/v1/platform/oauth/authorized-apps": { + "get": { "security": [ { "API Key": [] @@ -31274,60 +31904,42 @@ "Bearer Auth": [] } ], - "description": "Revokes a single connection token by ID. The user is disconnected from the corresponding service.", + "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": { + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/oauth/authorized-apps/{clientID}": { + "delete": { "security": [ { "API Key": [] @@ -31339,15 +31951,15 @@ "Bearer Auth": [] } ], - "description": "Updates a token's metadata such as label or default flag.", + "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": { @@ -31356,25 +31968,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" } } } @@ -31384,26 +31986,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/integrations": { + "/api/v1/platform/oauth/clients": { "get": { "security": [ { @@ -31416,47 +32008,51 @@ "Bearer Auth": [] } ], - "description": "Returns integrations available to the workspace.", + "description": "Lists the OAuth clients owned by the caller's organization.", "tags": [ - "fleet integrations" + "oauth" ], - "summary": "List integrations", - "parameters": [ - { - "description": "Filter by source (e.g. langchain, custom)", - "name": "source", - "in": "query", - "schema": { - "type": "string", - "title": "Source" + "summary": "List OAuth clients", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.OAuthClientListResponse" + } + } } + } + }, + "x-public": true, + "parameters": [] + }, + "post": { + "security": [ + { + "API Key": [] }, { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } + "Tenant ID": [] }, { - "description": "Opaque pagination cursor", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" - } + "Bearer Auth": [] } ], + "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": [ + "oauth" + ], + "summary": "Create an OAuth client", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ListResponse" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } @@ -31466,108 +32062,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Registers a new custom integration. Type is forced to CUSTOM.", - "tags": [ - "fleet integrations" - ], - "summary": "Create a custom integration", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.Integration" - } - } - } - }, - "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/errutil.UserError" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.CreateRequest" + "$ref": "#/components/schemas/oauth.CreateOAuthClientRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/integrations/{id}": { + "/api/v1/platform/oauth/clients/{id}": { "get": { "security": [ { @@ -31581,12 +32105,12 @@ } ], "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, @@ -31601,27 +32125,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" } } } @@ -31631,13 +32135,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, - "x-hidden": true + "x-public": true }, "delete": { "security": [ @@ -31651,14 +32155,13 @@ "Bearer Auth": [] } ], - "description": "Idempotent. Returns 204 whether or not the integration existed.", "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, @@ -31671,28 +32174,18 @@ "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 + "x-public": true }, "patch": { "security": [ @@ -31706,14 +32199,13 @@ "Bearer Auth": [] } ], - "description": "Updates mutable fields. URL is immutable.", "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, @@ -31728,7 +32220,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientView" } } } @@ -31738,27 +32230,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" } } } @@ -31768,27 +32240,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.UpdateRequest" + "$ref": "#/components/schemas/oauth.UpdateOAuthClientRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/integrations/{id}/auth-methods": { - "put": { + "/api/v1/platform/oauth/clients/{id}/rotate-secret": { + "post": { "security": [ { "API Key": [] @@ -31800,14 +32272,14 @@ "Bearer Auth": [] } ], - "description": "Replaces the integration's full list of supported auth methods.", + "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, @@ -31822,7 +32294,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } @@ -31832,17 +32304,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/errutil.UserError" + } + } + } + } + }, + "x-public": true + } + }, + "/api/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", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -31852,93 +32374,79 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "Not Found", + "description": "Backfill not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ReplaceAuthMethodsRequest" + "$ref": "#/components/schemas/backfills.restartBackfillRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/mcp-servers": { + "/api/v1/platform/orgs/current/access-policies": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns MCP servers visible to the caller after ABAC filtering. Service-key callers may pass X-Ls-User-Id to resolve per-user OAuth providers.", + "description": "Lists all access policies for the organization.", "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" - } - } + "access_policies" ], + "summary": "List access policies", "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" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "List of access policies", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/authz_internal.ListAccessPoliciesResponse" } } } @@ -31948,33 +32456,34 @@ "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 + "x-public": true, + "parameters": [] }, "post": { "security": [ @@ -31982,125 +32491,125 @@ "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "description": "Creates a new access policy.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Create MCP server", + "summary": "Create an access policy", "parameters": [], "responses": { "201": { - "description": "Created", + "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" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" + "$ref": "#/components/schemas/authz_internal.CreateAccessPolicyPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/mcp-servers/{mcp_server_id}": { - "get": { + "/api/v1/platform/orgs/current/access-policies/roles/{role_id}/access-policies": { + "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "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": "Get 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": { @@ -32109,100 +32618,105 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } + "204": { + "description": "Access policies attached successfully" }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Role or access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - }, - "delete": { + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" + } + } + } + } + } + }, + "/api/v1/platform/orgs/current/access-policies/{access_policy_id}": { + "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "description": "Gets a specific access policy by ID.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Delete 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": { @@ -32211,25 +32725,22 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "Access policy details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/authz_internal.AccessPolicy" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -32239,65 +32750,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" } } } } }, - "x-hidden": true + "x-public": true }, - "patch": { + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "description": "Deletes a specific access policy by ID.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Update MCP server", + "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": { @@ -32306,32 +32817,15 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } + "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" } } } @@ -32341,77 +32835,55 @@ "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/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": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Discovers and registers an OAuth provider for a user against an MCP server configured with per-user dynamic client mode. Idempotent when a mapping already exists.", + "description": "Updates one or more fields on an access policy.", "tags": [ - "fleet mcp" + "access_policies" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "Update 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": { @@ -32421,153 +32893,331 @@ ], "responses": { "200": { - "description": "OK", + "description": "Updated access policy", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" + "$ref": "#/components/schemas/authz_internal.AccessPolicy" } } } }, "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" } } } }, "404": { - "description": "Not Found", + "description": "Access policy not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service Unavailable", + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload" + "$ref": "#/components/schemas/authz_internal.UpdateAccessPolicyPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/mcp/tools": { + "/api/v1/platform/orgs/current/info": { "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.", + "description": "Returns organization info for the authenticated user's current organization.", "tags": [ - "fleet mcp" + "Organizations" ], - "summary": "List MCP tools", - "parameters": [ - { - "description": "MCP server URL to fetch tools from", - "name": "url", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Url" + "summary": "Get current organization info", + "responses": { + "200": { + "description": "Organization info", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/orgs.OrganizationInfo" + } + } } }, - { - "description": "OAuth provider ID for token-based auth", - "name": "oauth_provider_id", - "in": "query", - "schema": { - "type": "string", - "title": "Oauth Provider Id" + "400": { + "description": "Invalid organization ID", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } } }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "x-public": true, + "parameters": [] + } + }, + "/api/v1/platform/orgs/current/members": { + "get": { + "security": [ { - "description": "Skip cache and fetch fresh tools", - "name": "force_refresh", + "API Key": [] + }, + { + "Organization ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", + "tags": [ + "orgs" + ], + "summary": "List org members with workspace roles", + "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": "Force Refresh" + "title": "Active Is" } }, { - "description": "User ID override (service-key callers)", - "name": "ls_user_id", + "description": "Filter: true = only pending members; false = only active members", + "name": "pending_is", "in": "query", "schema": { - "type": "string", - "title": "Ls User Id" + "type": "boolean", + "title": "Pending Is" + } + }, + { + "description": "Glob filter on display name; use * as wildcard (repeatable, matches any)", + "name": "name_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Name Like" + } + }, + { + "description": "Glob filter on email; use * as wildcard (repeatable, matches any)", + "name": "email_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Email Like" + } + }, + { + "description": "Glob filter on workspace name or ID; use * as wildcard (repeatable, matches any)", + "name": "workspace_name_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Workspace Name Like" + } + }, + { + "description": "Glob filter on organization role name; use * as wildcard (repeatable, matches any)", + "name": "organization_role_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Organization Role Like" + } + }, + { + "description": "Glob filter on workspace role name; use * as wildcard (repeatable, matches any)", + "name": "workspace_role_like", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Workspace Role Like" } } ], "responses": { "200": { - "description": "OK", + "description": "Org members", + "headers": { + "X-Members-Anonymity-Restricted": { + "description": "Set to 'true' when the response was restricted by the organization's anonymity setting.", + "schema": { + "type": "string" + } + }, + "X-Members-List-All-Workspaces": { + "description": "true if caller has organization:manage", + "schema": { + "type": "string" + } + }, + "X-Pagination-Total": { + "description": "Total number of matching members", + "schema": { + "type": "string" + } + } + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ListToolsResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.OrgMemberEnriched" + } } } } }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -32577,7 +33227,70 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "x-public": true + } + }, + "/api/v1/platform/orgs/current/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.", + "tags": [ + "access_policies" + ], + "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", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -32587,209 +33300,250 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "Role or access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "502": { - "description": "Bad Gateway", + "422": { + "description": "Semantic validation failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/models": { - "get": { + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" + } + } + } + } + }, + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns models available for Fleet agent configuration.", + "description": "Detaches one or more access policies from a specific role.", "tags": [ - "fleet" + "access_policies" ], - "summary": "List Fleet models", + "summary": "Detach access policies from a role", "parameters": [ { - "description": "Include the served Fleet default model group.", - "name": "include_served_default", - "in": "query", + "description": "Role ID", + "name": "role_id", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "title": "Include Served Default" + "type": "string" } }, { - "description": "Include optional OSS model group.", - "name": "include_oss_models", + "description": "Access policy IDs to detach", + "name": "access_policy_ids", "in": "query", + "required": true, + "style": "form", + "explode": true, "schema": { - "type": "boolean", - "title": "Include Oss Models" + "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/models.ListModelsResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Role not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/models.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/models.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/skills": { + "/api/v1/platform/orgs/current/scim/tokens": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns the skills in the caller's workspace, paginated.", + "description": "List all SCIM bearer tokens for the current organization. The full token values are not returned.", "tags": [ - "skills" - ], - "summary": "List skills", - "parameters": [ - { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" - } - } + "SCIM Tokens" ], + "summary": "List SCIM tokens", "responses": { "200": { - "description": "OK", + "description": "List of SCIM tokens", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ListSkillsResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/scim.ScimTokenResponse" + } } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden - requires OrganizationRead permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "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" } } } } }, - "x-hidden": true + "x-public": true, + "parameters": [] }, "post": { "security": [ @@ -32797,115 +33551,105 @@ "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.", + "description": "Create a new SCIM bearer token for the current organization. The full token value is only returned once upon creation.", "tags": [ - "skills" + "SCIM Tokens" ], - "summary": "Create a skill", + "summary": "Create a SCIM token", "parameters": [], "responses": { "201": { - "description": "Created", + "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" - } - } - } - }, - "409": { - "description": "Conflict", + "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" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.CreateSkillRequest" + "$ref": "#/components/schemas/scim.CreateScimTokenPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/skills/{skillID}": { + "/api/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns the specified skill, including its full file tree.", + "description": "Retrieve a specific SCIM token by ID for the current organization. The full token value is not returned.", "tags": [ - "skills" + "SCIM Tokens" ], - "summary": "Get a skill", + "summary": "Get a SCIM token", "parameters": [ { - "description": "Skill ID", - "name": "skillID", + "description": "SCIM Token ID", + "name": "scim_token_id", "in": "path", "required": true, "schema": { @@ -32915,11 +33659,11 @@ ], "responses": { "200": { - "description": "OK", + "description": "SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } @@ -32929,43 +33673,53 @@ "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" } } } }, "404": { - "description": "Not Found", + "description": "Token not found", "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 + "x-public": true }, "delete": { "security": [ @@ -32973,21 +33727,21 @@ "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.", + "description": "Delete a SCIM bearer token from the current organization.", "tags": [ - "skills" + "SCIM Tokens" ], - "summary": "Delete a skill", + "summary": "Delete a SCIM token", "parameters": [ { - "description": "Skill ID", - "name": "skillID", + "description": "SCIM Token ID", + "name": "scim_token_id", "in": "path", "required": true, "schema": { @@ -32997,40 +33751,60 @@ ], "responses": { "204": { - "description": "No Content" + "description": "No content - token deleted successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "Forbidden - requires OrganizationManage permission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" + } + } + } + }, + "404": { + "description": "Token not found", "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 + "x-public": true }, "patch": { "security": [ @@ -33038,21 +33812,21 @@ "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.", + "description": "Update the description of an existing SCIM token for the current organization.", "tags": [ - "skills" + "SCIM Tokens" ], - "summary": "Update a skill", + "summary": "Update a SCIM token", "parameters": [ { - "description": "Skill ID", - "name": "skillID", + "description": "SCIM Token ID", + "name": "scim_token_id", "in": "path", "required": true, "schema": { @@ -33062,81 +33836,154 @@ ], "responses": { "200": { - "description": "OK", + "description": "Updated SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.Skill" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "404": { - "description": "Not Found", + "description": "Token not found", "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" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/skills.UpdateSkillRequest" + "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" + } + } + } + } + } + }, + "/api/v1/platform/sessions/{sessionID}/agent-versions": { + "get": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", + "tags": [ + "sessions" + ], + "summary": "List agent versions for a project", + "parameters": [ + { + "description": "Tracing project (session) UUID", + "name": "sessionID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Agent versions", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" + } + } + } + } + }, + "400": { + "description": "Invalid session ID", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/threads": { - "post": { + "/api/v1/platform/sessions/{session_id}/issues-agent": { + "get": { "security": [ { "API Key": [] @@ -33148,19 +33995,29 @@ "Bearer Auth": [] } ], - "description": "Create a thread, optionally bound to an agent. Subsequent runs are started on it via `POST /v1/fleet/threads/{thread_id}/runs/stream`.", + "description": "**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", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.Thread" + "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" } } } @@ -33170,7 +34027,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33180,7 +34037,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33190,46 +34047,34 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CreateThreadRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/bulk-modify": { + "x-public": true + }, "post": { "security": [ { @@ -33242,19 +34087,29 @@ "Bearer Auth": [] } ], - "description": "Applies one thread update payload to multiple threads in a single call. `data` uses the same shape as the single-thread update payload. The request may include at most 50 thread IDs. Returns one result per thread in the same order as `thread_ids`; the overall response is 200 even when individual threads fail.", + "description": "**Beta:** 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": "Bulk update threads", - "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" } } } @@ -33264,7 +34119,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33274,7 +34129,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33284,37 +34139,45 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsRequest" + "$ref": "#/components/schemas/tracer_session_issues_agent.CreateIssuesAgentRequest" } } } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/count": { - "get": { + } + }, + "delete": { "security": [ { "API Key": [] @@ -33326,40 +34189,32 @@ "Bearer Auth": [] } ], - "description": "Returns the caller's inbox `attention_count`: the number of threads needing user action — unread idle threads (`metadata.read_status=false`) plus interrupted plus errored. Scoped to deep-agent threads (`graph_id=deep_agent`); test-run threads (`options.test_run=true`) are always excluded.", + "description": "**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": [ - "internal" + "issues-agent" ], - "summary": "Inbox attention count", + "summary": "[Beta] Delete the issues agent for a session", "parameters": [ { - "description": "Optional agent UUID to scope all buckets to a single agent", - "name": "agent_id", - "in": "query", + "description": "Tracer session ID (UUID)", + "name": "session_id", + "in": "path", + "required": true, "schema": { - "type": "string", - "format": "uuid", - "title": "Agent Id" + "type": "string" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CountResponse" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33369,7 +34224,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33379,27 +34234,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "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/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/runs": { - "post": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -33411,29 +34274,29 @@ "Bearer Auth": [] } ], - "description": "Creates a thread bound to `agent_id` and starts a run on it in one call. Returns the upstream run record (pending/running, not yet complete). Run kwargs are passed through; thread-creation flags go in the optional `thread` envelope. The new thread is rolled back if the run fails to start.", + "description": "**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": "[Beta] Update 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/tracer_session_issues_agent.IssuesAgent" } } } @@ -33443,7 +34306,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33453,7 +34316,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33463,7 +34326,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33473,57 +34336,37 @@ "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/tracer_session_issues_agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.CreateThreadAndRunRequest" + "$ref": "#/components/schemas/tracer_session_issues_agent.UpdateIssuesAgentRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/threads/search": { - "post": { + "/api/v1/platform/sessions/{session_id}/issues-agent/overview": { + "patch": { "security": [ { "API Key": [] @@ -33535,21 +34378,29 @@ "Bearer Auth": [] } ], - "description": "Searches threads. Request and response bodies are proxied unchanged to the upstream agent runtime.", + "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": "[Beta] Save the agent overview 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", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "type": "object" - } + "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewResponse" } } } @@ -33559,7 +34410,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33569,7 +34420,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -33579,38 +34430,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewRequest" + } + } + } + } } }, - "/v1/fleet/threads/{thread_id}": { - "get": { + "/api/v1/platform/sessions/{session_id}/issues-agent/webhooks/{id}/roll-secret": { + "post": { "security": [ { "API Key": [] @@ -33622,15 +34482,24 @@ "Bearer Auth": [] } ], - "description": "Returns thread metadata and status for the given thread id.", + "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.", "tags": [ - "fleet threads" + "issues-agent" ], - "summary": "Get 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": { @@ -33644,7 +34513,20 @@ "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/tracer_session_issues_agent_webhooks.IssuesAgentWebhook" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -33654,7 +34536,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -33664,7 +34549,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -33674,25 +34562,33 @@ "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 - }, - "delete": { + "x-public": true + } + }, + "/api/v1/platform/sessions/{session_id}/issues/views": { + "get": { "security": [ { "API Key": [] @@ -33704,15 +34600,15 @@ "Bearer Auth": [] } ], - "description": "Deletes a thread and all of its runs. Idempotent: deleting a thread that does not exist returns 204.", + "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": "Delete thread", + "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": { @@ -33721,15 +34617,22 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues.ListViewsResponse" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -33739,7 +34642,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -33749,25 +34652,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } } }, - "x-hidden": true - }, - "patch": { + "x-public": true + } + }, + "/api/v1/platform/tools": { + "get": { "security": [ { "API Key": [] @@ -33779,19 +34684,37 @@ "Bearer Auth": [] } ], - "description": "Updates thread fields such as title and metadata. Omitted fields are unchanged; null values clear fields where supported.", + "description": "Returns a paginated list of tools in the workspace.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Update a thread", + "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" } } ], @@ -33801,7 +34724,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadResponse" + "$ref": "#/components/schemas/tools.ListToolsResponse" } } } @@ -33811,7 +34734,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33821,7 +34744,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33831,56 +34754,24 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/resolve-interrupt": { + "x-public": true + }, "post": { "security": [ { @@ -33893,62 +34784,49 @@ "Bearer Auth": [] } ], - "description": "Completes a human-interrupt pause on the thread without sending new input, allowing execution to continue or finish. On success the response has no body.", + "description": "Creates a new tool in the workspace.", "tags": [ - "fleet threads" - ], - "summary": "Resolve an interrupted thread", - "parameters": [ - { - "description": "Thread id", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "tools" ], + "summary": "Create a tool", + "parameters": [], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.Tool" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -33958,37 +34836,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.CreateToolPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/threads/{thread_id}/runs": { - "post": { + "/api/v1/platform/tools/id/{id}": { + "get": { "security": [ { "API Key": [] @@ -34000,15 +34878,15 @@ "Bearer Auth": [] } ], - "description": "Starts a run on the thread. The request body must include `assistant_id` (the assistant to execute). Include run inputs and options in the body as supported by this API.", + "description": "Returns a tool identified by its UUID.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Create thread run", + "summary": "Get a tool by ID", "parameters": [ { - "description": "Thread id", - "name": "thread_id", + "description": "Tool UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -34022,17 +34900,7 @@ "content": { "application/json": { "schema": { - "type": "object" - } - } - } - }, - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "type": "object" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -34042,7 +34910,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34052,7 +34920,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34062,7 +34930,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34072,27 +34940,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/runs/stream": { - "post": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -34104,15 +34970,15 @@ "Bearer Auth": [] } ], - "description": "Start a run on a thread and stream its output as Server-Sent Events. The connection stays open until the run completes; the client is responsible for closing it.", + "description": "Deletes a tool identified by its UUID.", "tags": [ - "fleet threads" + "tools" ], - "summary": "Stream a thread run", + "summary": "Delete a tool by ID", "parameters": [ { - "description": "Thread ID", - "name": "thread_id", + "description": "Tool UUID", + "name": "id", "in": "path", "required": true, "schema": { @@ -34121,22 +34987,15 @@ } ], "responses": { - "200": { - "description": "SSE event stream", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34146,7 +35005,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34156,7 +35015,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34166,37 +35025,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.StreamRunRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/trigger-templates": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -34208,108 +35055,49 @@ "Bearer Auth": [] } ], - "description": "Lists trigger templates with their config schema and auth requirements (paginated).", + "description": "Updates an existing tool identified by its UUID.", "tags": [ - "fleet trigger-templates" + "tools" ], - "summary": "List trigger templates", + "summary": "Update a tool by ID", "parameters": [ { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor returned by a prior response", - "name": "cursor", - "in": "query", + "description": "Tool UUID", + "name": "id", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Cursor" + "type": "string" } } ], "responses": { "200": { - "description": "OK" - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.Tool" } } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "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": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a single trigger template by id.", - "tags": [ - "fleet trigger-templates" - ], - "summary": "Get trigger template", - "parameters": [ - { - "description": "Trigger template id", - "name": "template_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34319,7 +35107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34329,26 +35117,36 @@ "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 + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.UpdateToolPayload" + } + } + } + } } }, - "/v1/fleet/triggers": { + "/api/v1/platform/tools/{handle}": { "get": { "security": [ { @@ -34361,46 +35159,19 @@ "Bearer Auth": [] } ], - "description": "Lists triggers for the calling user (paginated). Filter by agent_id and/or template_id.", + "description": "Returns a tool identified by its handle.", "tags": [ - "fleet triggers" + "tools" ], - "summary": "List triggers", + "summary": "Get a tool by handle", "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 handle", + "name": "handle", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Cursor" + "type": "string" } } ], @@ -34410,7 +35181,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.TriggerListResponse" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -34420,7 +35191,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34430,7 +35201,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34440,25 +35211,35 @@ "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 + "x-public": true }, - "post": { + "delete": { "security": [ { "API Key": [] @@ -34470,29 +35251,32 @@ "Bearer Auth": [] } ], - "description": "Creates a trigger for an agent and returns the created trigger instance.", + "description": "Deletes a tool identified by its handle.", "tags": [ - "fleet triggers" + "tools" ], - "summary": "Create trigger", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.Trigger" - } - } + "summary": "Delete a tool by handle", + "parameters": [ + { + "description": "Tool handle", + "name": "handle", + "in": "path", + "required": true, + "schema": { + "type": "string" } + } + ], + "responses": { + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34502,7 +35286,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34512,47 +35296,35 @@ "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": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -34564,15 +35336,15 @@ "Bearer Auth": [] } ], - "description": "Returns a single trigger by id for the calling user.", + "description": "Updates an existing tool identified by its handle.", "tags": [ - "fleet triggers" + "tools" ], - "summary": "Get 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": { @@ -34586,7 +35358,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -34596,7 +35368,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34606,7 +35378,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34616,7 +35388,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -34626,120 +35398,46 @@ "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": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes a trigger by id for the calling user. The operation is idempotent - deleting a trigger that does not exist (or that belongs to another user) still returns 204.", - "tags": [ - "fleet triggers" - ], - "summary": "Delete trigger", - "parameters": [ - { - "description": "Trigger id (UUID)", - "name": "trigger_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.UpdateToolPayload" } } } - }, - "x-hidden": true - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates a trigger by id for the calling user. agent_id is not mutable.", + } + } + }, + "/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": [ - "fleet triggers" + "datasets" ], - "summary": "Update trigger", + "summary": "Fetch shared experiment runs for dataset examples", "parameters": [ { - "description": "Trigger id (UUID)", - "name": "trigger_id", + "description": "Dataset share token", + "name": "share_token", "in": "path", "required": true, "schema": { @@ -34753,7 +35451,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.Trigger" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsResponseBody" } } } @@ -34763,37 +35461,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -34803,47 +35501,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/triggers.UpdateTriggerRequest" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsRequestBody" } } } - }, - "x-hidden": true + } } }, - "/v1/platform/alerts/{session_id}": { + "/api/v2/datasets/{dataset_id}/experiment-runs": { "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Creates a new alert rule. The request body must be a JSON-encoded alert rule object that follows the CreateAlertRuleRequest schema.", + "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": "Create an alert rule", + "summary": "Fetch experiment runs for dataset examples", "parameters": [ { - "description": "Session ID", - "name": "session_id", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { @@ -34852,22 +35549,32 @@ } ], "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" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -34877,294 +35584,343 @@ "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": { - "post": { - "security": [ + "/api/v2/public/{share_token}/run/{run_id}": { + "get": { + "description": "Returns one run within the trace identified by the share token. The request supplies only the run ID and that run's exact start_time coordinate.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", + "tags": [ + "runs" + ], + "summary": "Get a public shared trace run", + "parameters": [ { - "API Key": [] + "description": "application/json", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } }, { - "Tenant ID": [] + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } }, { - "Bearer Auth": [] - } - ], - "description": "Tests an alert action which will fire a notification to all configured recipients if the configuration is valid.", - "tags": [ - "alert_rules" - ], - "summary": "Test an alert action to determine if configuration is valid", - "parameters": [ - { - "description": "Session ID", - "name": "session_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", - "in": "path", + "description": "Run start_time coordinate (RFC3339)", + "name": "start_time", + "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "date-time", + "title": "Start Time" + } + }, + { + "description": "repeatable public run fields to include", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], "responses": { "200": { - "description": "Alert action fired successfully", + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/query.RunResponse" } } } }, "400": { - "description": "Bad request", + "description": "bad request (missing or malformed start_time)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token or run not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal server error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true } }, - "/v1/platform/alerts/{session_id}/{alert_rule_id}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Gets an alert rule.", + "/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": [ - "alert_rules" + "runs" ], - "summary": "Get an alert rule", + "summary": "Query public shared trace runs", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "application/json", + "name": "Content-Type", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "Alert rule", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.AlertRuleResponse" + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } }, "400": { - "description": "Bad request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "share token or shared trace not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not found", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal server error", + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.PublicSharedTraceRunsRequestBody" + } + } + } } - }, - "delete": { + } + }, + "/api/v2/runs/query": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Deletes an alert rule", + "description": "Returns a paginated list of runs for the given projects within min/max start_time. Supports filters, cursor pagination, and `selects` to select fields to return.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "alert_rules" + "runs" ], - "summary": "Delete an alert rule", + "summary": "Query runs", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", - "in": "path", - "required": true, + "description": "application/json (required for JSON body)", + "name": "Content-Type", + "in": "header", "schema": { "type": "string" } @@ -35172,209 +35928,334 @@ ], "responses": { "200": { - "description": "Alert rule deleted", + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } + "$ref": "#/components/schemas/query.QueryRunsResponseBody" } } } }, "400": { - "description": "Bad request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "401": { + "description": "missing or invalid authentication", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal server error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.QueryRunsRequestBody" + } + } + } } - }, - "patch": { + } + }, + "/api/v2/runs/{run_id}": { + "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Updates an alert rule.", + "description": "Returns one run by ID for the given session. Use the `selects` query parameter (repeatable) to select fields to return.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "alert_rules" + "runs" ], - "summary": "Update an alert rule", + "summary": "Get a single run", "parameters": [ { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Alert rule ID", - "name": "alert_rule_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "description": "`project_id` is the UUID of the tracing project that owns the run.", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Project Id" + } + }, + { + "description": "`selects` lists which properties to include on the returned run (repeatable query parameter). Accepts any value of the `RunSelectField` enum. If omitted, only `id` is returned.", + "name": "selects", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + "ID", + "NAME", + "RUN_TYPE", + "STATUS", + "START_TIME", + "END_TIME", + "LATENCY_SECONDS", + "FIRST_TOKEN_TIME", + "ERROR", + "ERROR_PREVIEW", + "EXTRA", + "METADATA", + "EVENTS", + "INPUTS", + "INPUTS_PREVIEW", + "OUTPUTS", + "OUTPUTS_PREVIEW", + "MANIFEST", + "PARENT_RUN_IDS", + "PROJECT_ID", + "TRACE_ID", + "THREAD_ID", + "DOTTED_ORDER", + "IS_ROOT", + "REFERENCE_EXAMPLE_ID", + "REFERENCE_DATASET_ID", + "TOTAL_TOKENS", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_COST", + "PROMPT_COST", + "COMPLETION_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "PRICE_MODEL_ID", + "TAGS", + "APP_PATH", + "ATTACHMENTS", + "THREAD_EVALUATION_TIME", + "IS_IN_DATASET", + "LAST_QUEUED_AT", + "SHARE_URL", + "FEEDBACK_STATS" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" + } + }, + { + "description": "`start_time` is the run's `start_time` (RFC3339 date-time). Providing it speeds up retrieval.", + "name": "start_time", + "in": "query", + "schema": { + "type": "string", + "format": "date-time", + "title": "Start Time" } } ], "responses": { "200": { - "description": "Alert rule 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", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "401": { + "description": "missing or invalid authentication", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not found", + "description": "run or session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal server error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "not implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "503": { - "description": "Service unavailable", + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.UpdateAlertRuleRequest" + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } } } } - } + }, + "x-public": true } }, - "/v1/platform/annotation-queues/{queue_id}/reviewers": { + "/api/v2/runs/{run_id}/share": { "post": { "security": [ { @@ -35387,29 +36268,30 @@ "Bearer Auth": [] } ], - "description": "Assigns a single identity as a reviewer for the queue. Idempotent.", + "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": [ - "annotation_queues" + "runs" ], - "summary": "Add a reviewer to an annotation queue", + "summary": "Share a run", "parameters": [ { - "description": "Queue ID", - "name": "queue_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/annotationqueues.AddReviewerResponse" + "$ref": "#/components/schemas/share.CreateShareTokenResponseBody" } } } @@ -35419,10 +36301,27 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35432,10 +36331,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35445,113 +36351,140 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/annotationqueues.AddReviewerRequest" + "$ref": "#/components/schemas/share.CreateShareTokenRequestBody" } } } } } }, - "/v1/platform/annotation-queues/{queue_id}/reviewers/{identity_id}": { - "delete": { + "/api/v2/runs/{run_id}/url": { + "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Unassigns an identity as a reviewer for the queue. Idempotent.", + "description": "Returns the URL to view a specific run in the LangSmith UI. The caller must supply the\nrun's project_id and trace_id as query parameters; start_time is optional.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "annotation_queues" + "runs" ], - "summary": "Remove a reviewer from an annotation queue", + "summary": "Get the LangSmith UI URL for a run", "parameters": [ { - "description": "Queue ID", - "name": "queue_id", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } }, { - "description": "Identity ID of the reviewer to remove", - "name": "identity_id", - "in": "path", + "description": "Project (session) UUID", + "name": "project_id", + "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "title": "Project Id" + } + }, + { + "description": "Trace UUID", + "name": "trace_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Trace Id" + } + }, + { + "description": "Run start time in RFC3339 format; omit if unknown", + "name": "start_time", + "in": "query", + "schema": { + "type": "string", + "title": "Start Time" } } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.RunURLResponse" + } + } + } }, "400": { - "description": "Bad Request", + "description": "missing or invalid query parameters", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "404": { + "description": "project not found or does not belong to this workspace", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true } }, - "/v1/platform/datasets/examples/delete": { - "post": { + "/api/v2/runs/{trace_id}/share": { + "delete": { "security": [ { "API Key": [] @@ -35563,29 +36496,43 @@ "Bearer Auth": [] } ], - "description": "This endpoint hard deletes *all* versions of a dataset example(s).\nDeletion is performed by setting inputs, outputs, and metadata to null and deleting attachment files while keeping the example ID, dataset ID, and creation timestamp.\nIMPORTANT: attachment files can take up to 7 days to be deleted. inputs, outputs and metadata are nullified immediately.", + "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": [ - "examples" + "runs" + ], + "summary": "Unshare a run", + "parameters": [ + { + "description": "Trace root UUID", + "name": "trace_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } ], - "summary": "Hard Delete Examples", - "parameters": [], "responses": { - "200": { - "description": "OK", + "204": { + "description": "No Content" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ExamplesDeletedResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -35595,46 +36542,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.DeleteExamplesRequest" + "$ref": "#/components/schemas/share.DeleteShareTokenRequestBody" } } } } } }, - "/v1/platform/datasets/{dataset_id}/examples": { - "post": { + "/api/v2/sandboxes/boxes": { + "get": { "security": [ { "API Key": [] @@ -35644,42 +36592,145 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "This endpoint allows clients to upload examples to a specified dataset by sending a multipart/form-data POST request.\nEach form part contains either JSON-encoded data or binary attachment files associated with an example.", + "description": "List sandboxes for the authenticated tenant, with optional filtering, sorting, and pagination.\nPage with page_size and cursor: replay the response's next_cursor until it comes back null, which is the only signal that no pages remain.\nCursors are opaque and only valid on this endpoint; do not parse or construct one.", "tags": [ - "examples" + "sandboxes" ], - "summary": "Upload Examples", + "summary": "List sandboxes", "parameters": [ { - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, + "description": "Number of results per page", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "title": "Cursor" + } + }, + { + "description": "Deprecated: use page_size. Maximum number of results", + "name": "limit", + "in": "query", + "schema": { + "default": 50, + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Deprecated: use cursor. Pagination offset", + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Filter by name substring", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" + } + }, + { + "description": "Filter by status (provisioning, ready, failed, stopped, deleting)", + "name": "status", + "in": "query", + "schema": { + "type": "string", + "title": "Status" + } + }, + { + "description": "Filter by creator identity. Only 'me' is supported.", + "name": "created_by", + "in": "query", + "schema": { + "type": "string", + "title": "Created By" + } + }, + { + "description": "Filter by label. Repeatable; all must match. Use 'key' to match on key presence or 'key=value' for equality.", + "name": "label", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Label" + } + }, + { + "description": "Sort column (name, status, created_at, stopped_at, idle_ttl_seconds, delete_after_stop_seconds)", + "name": "sort_by", + "in": "query", + "schema": { + "default": "created_at", + "type": "string", + "title": "Sort By" + } + }, + { + "description": "Sort direction (asc, desc)", + "name": "sort_order", + "in": "query", + "schema": { + "default": "desc", + "type": "string", + "title": "Sort Order" + } + }, + { + "description": "Deprecated: use sort_order. Sort direction (asc, desc)", + "name": "sort_direction", + "in": "query", + "schema": { + "default": "desc", + "type": "string", + "title": "Sort Direction" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ExamplesCreatedResponse" + "$ref": "#/components/schemas/sandboxes.SandboxListResponse" } } } }, "400": { - "description": "Bad Request", + "description": "invalid page_size, cursor, or sort_order, or a deprecated parameter combined with its replacement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -35689,70 +36740,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "invalid limit or offset", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "{example_id}": { - "type": "string", - "format": "binary", - "description": "The Example info as JSON. Can have fields 'metadata', 'split', 'use_source_run_io', 'source_run_id', 'created_at', 'modified_at'" - }, - "{example_id}.inputs": { - "type": "string", - "format": "binary", - "description": "The Example inputs as JSON" - }, - "{example_id}.outputs": { - "type": "string", - "format": "binary", - "description": "THe Example outputs as JSON" - }, - "{example_id}.attachments.{name}": { - "type": "string", - "format": "binary", - "description": "File attachment named {name}" - } - }, - "required": [ - "{example_id}", - "{example_id}.inputs" - ] - } - } - } - } + "x-public": true }, - "patch": { + "post": { "security": [ { "API Key": [] @@ -35762,147 +36778,120 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "This endpoint allows clients to update existing examples in a specified dataset by sending a multipart/form-data PATCH request.\nEach form part contains either JSON-encoded data or binary attachment files to update an example.", + "description": "Create a new sandbox from a snapshot. Provide at most one of `snapshot_id` or `snapshot_name`; if neither is provided, the server uses the default snapshot. `snapshot_name` accepts a Docker-style `name` or `name:tag` reference (a bare name resolves to `name:latest`).", "tags": [ - "examples" - ], - "summary": "Update Examples", - "parameters": [ - { - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } + "sandboxes" ], + "summary": "Create a sandbox", + "parameters": [], "responses": { "201": { "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ExamplesUpdatedResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, "400": { - "description": "Bad Request", + "description": "Snapshot not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "409": { + "description": "Name already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "429": { + "description": "Quota exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Sandbox creation failed or internal error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "504": { + "description": "Sandbox did not become ready in time", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "{example_id}": { - "type": "string", - "format": "binary", - "description": "The Example update info as JSON. Can have fields 'metadata', 'split'" - }, - "{example_id}.inputs": { - "type": "string", - "format": "binary", - "description": "The updated Example inputs as JSON" - }, - "{example_id}.outputs": { - "type": "string", - "format": "binary", - "description": "The updated Example outputs as JSON" - }, - "{example_id}.attachments_operations": { - "type": "string", - "format": "binary", - "description": "JSON describing attachment operations (retain, rename)" - }, - "{example_id}.attachment.{name}": { - "type": "string", - "format": "binary", - "description": "New file attachment named {name}" - } - }, - "required": [ - "{example_id}" - ] + "$ref": "#/components/schemas/sandboxes.CreateSandboxPayload" } } } } } }, - "/v1/platform/engine/trial-response": { + "/api/v2/sandboxes/boxes/batch-delete": { "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Records a user's response to the Engine trial ending modal.\naction must be \"acknowledge\", \"opt_out\", or \"mark_seen\".", + "description": "Delete multiple sandboxes by name or UUID in a single request.", "tags": [ - "engine-trial" + "sandboxes" ], - "summary": "Respond to Engine trial ending notice", + "summary": "Batch delete sandboxes", "parameters": [], "responses": { "200": { @@ -35910,10 +36899,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.BatchDeleteResponse" } } } @@ -35923,36 +36909,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -35962,28 +36929,26 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/engine_trial.trialResponseRequest" + "$ref": "#/components/schemas/sandboxes.BatchDeleteRequest" } } } } } }, - "/v1/platform/evaluators": { + "/api/v2/sandboxes/boxes/{name}": { "get": { "security": [ { @@ -35994,105 +36959,24 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.", + "description": "Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "List evaluators", + "summary": "Get a sandbox", "parameters": [ { - "description": "Filter by evaluator type", - "name": "type", - "in": "query", + "description": "Sandbox display name", + "name": "name", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Type" - } - }, - { - "description": "Filter by name substring (also searches creator names)", - "name": "name_contains", - "in": "query", - "schema": { - "type": "string", - "title": "Name Contains" - } - }, - { - "description": "Filter by tag value IDs", - "name": "tag_value_id", - "in": "query", - "style": "form", - "explode": false, - "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Tag Value Id" - } - }, - { - "description": "Filter by feedback key", - "name": "feedback_key", - "in": "query", - "schema": { - "type": "string", - "title": "Feedback Key" - } - }, - { - "description": "Filter by resource IDs", - "name": "resource_id", - "in": "query", - "style": "form", - "explode": false, - "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Resource Id" - } - }, - { - "description": "Field to sort by", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "title": "Sort By" - } - }, - { - "description": "Sort in descending order", - "name": "sort_by_desc", - "in": "query", - "schema": { - "type": "boolean", - "title": "Sort By Desc" - } - }, - { - "description": "Maximum number of results (1-100)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "default": 100, - "title": "Limit" - } - }, - { - "description": "Offset for pagination", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "default": 0, - "title": "Offset" + "type": "string" } } ], @@ -36102,37 +36986,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ListEvaluatorsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36142,14 +37006,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } + }, + "x-public": true }, - "post": { + "delete": { "security": [ { "API Key": [] @@ -36159,51 +37024,37 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Create a new LLM or code evaluator for the current workspace.", + "description": "Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Create evaluator", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.CreateEvaluatorResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } + "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" }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36213,24 +37064,15 @@ "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.CreateEvaluatorRequest" - } - } - } - } + "x-public": true }, - "delete": { + "patch": { "security": [ { "API Key": [] @@ -36240,36 +37082,24 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Delete multiple evaluators by their IDs. Returns per-item success/failure.", + "description": "Update a sandbox's display name, retention, resources, tags, or proxy configuration. The name must be unique within the tenant. Proxy configuration sent to a sandbox that is not running is stored and applied when it next starts.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Bulk delete evaluators", + "summary": "Update a sandbox", "parameters": [ { - "description": "Evaluator IDs to delete", - "name": "evaluator_ids", - "in": "query", + "description": "Current sandbox display name", + "name": "name", + "in": "path", "required": true, - "style": "form", - "explode": false, - "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Evaluator Ids" - } - }, - { - "description": "When true, delete all run rules for this evaluator before deleting the evaluator", - "name": "delete_run_rules", - "in": "query", "schema": { - "type": "boolean", - "title": "Delete Run Rules" + "type": "string" } } ], @@ -36279,37 +37109,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.BulkDeleteEvaluatorsResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "409": { + "description": "Name already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36319,16 +37149,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.UpdateSandboxPayload" + } + } + } } } }, - "/v1/platform/evaluators/spend": { - "get": { + "/api/v2/sandboxes/boxes/{name}/download-url": { + "post": { "security": [ { "API Key": [] @@ -36340,56 +37181,19 @@ "Bearer Auth": [] } ], - "description": "Returns per-day LLM evaluator spend for the requested 7-day period, grouped by evaluator, resource, or run rule. Exactly one of group_by, evaluator_id, session_id, or dataset_id is required.", + "description": "Generate a tokenized link that downloads a single file from a sandbox with no further authentication. This mints a token rather than creating an addressable resource, so it returns 200 with no Location header. The token pins the sandbox, the file path, and the response content type and disposition, so a link cannot be repointed at another file. Links never expire unless expires_in_seconds is set. The link is served from the sandbox service domain, not the API host.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Get evaluator spend", + "summary": "Generate a sandbox file download link", "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": "Start of the 7-day window (YYYY-MM-DD).", - "name": "period_start", - "in": "query", + "description": "Sandbox ID or name", + "name": "name", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Period Start" + "type": "string" } } ], @@ -36399,7 +37203,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.GetEvaluatorSpendResponse" + "$ref": "#/components/schemas/sandboxes.DownloadURLResponse" } } } @@ -36409,56 +37213,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.DownloadURLPayload" + } + } + } } } }, - "/v1/platform/evaluators/{evaluator_id}": { - "get": { + "/api/v2/sandboxes/boxes/{name}/service-url": { + "post": { "security": [ { "API Key": [] @@ -36470,15 +37285,15 @@ "Bearer Auth": [] } ], - "description": "Retrieve a single evaluator by its ID.", + "description": "Create a short-lived JWT for accessing an HTTP service running on a specific port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw token, and its expiry.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Get evaluator", + "summary": "Generate a service access token", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -36492,7 +37307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.Evaluator" + "$ref": "#/components/schemas/sandboxes.ServiceURLResponse" } } } @@ -36502,54 +37317,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "501": { + "description": "Not Implemented", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ServiceURLPayload" + } + } + } } - }, - "delete": { + } + }, + "/api/v2/sandboxes/boxes/{name}/snapshot": { + "post": { "security": [ { "API Key": [] @@ -36561,51 +37389,39 @@ "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.", + "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Delete evaluator", + "summary": "Capture a snapshot from a sandbox", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "description": "When true, delete all run rules for this evaluator before deleting the evaluator", - "name": "delete_run_rules", - "in": "query", - "schema": { - "type": "boolean", - "title": "Delete Run Rules" - } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36615,7 +37431,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36625,17 +37441,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36645,14 +37461,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" + } + } + } } - }, - "patch": { + } + }, + "/api/v2/sandboxes/boxes/{name}/start": { + "post": { "security": [ { "API Key": [] @@ -36664,15 +37493,15 @@ "Bearer Auth": [] } ], - "description": "Update an existing evaluator's name, LLM configuration, or code configuration.", + "description": "Start a stopped or failed sandbox. This endpoint is not idempotent.", "tags": [ - "evaluators" + "sandboxes" ], - "summary": "Update evaluator", + "summary": "Start a sandbox", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -36681,12 +37510,12 @@ } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.UpdateEvaluatorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } @@ -36696,17 +37525,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36716,7 +37535,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36726,7 +37545,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36736,25 +37555,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.UpdateEvaluatorRequest" - } - } - } - } + "x-public": true } }, - "/v1/platform/features": { + "/api/v2/sandboxes/boxes/{name}/status": { "get": { "security": [ { @@ -36765,43 +37575,44 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns a consolidated view of default models and disabled models per feature for the workspace.", + "description": "Retrieve the lightweight status of a sandbox for polling.", "tags": [ - "features" + "sandboxes" + ], + "summary": "Get sandbox status", + "parameters": [ + { + "description": "Sandbox display name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "List feature configurations", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/features.FeatureConfig" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxStatusResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36811,17 +37622,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true } }, - "/v1/platform/features/{feature}/default-model": { - "put": { + "/api/v2/sandboxes/boxes/{name}/stop": { + "post": { "security": [ { "API Key": [] @@ -36833,15 +37644,15 @@ "Bearer Auth": [] } ], - "description": "Sets or replaces the default model for a feature in the workspace.", + "description": "Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.", "tags": [ - "features" + "sandboxes" ], - "summary": "Set default model for a feature", + "summary": "Stop a sandbox", "parameters": [ { - "description": "Feature name", - "name": "feature", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -36851,34 +37662,34 @@ ], "responses": { "204": { - "description": "No Content" + "description": "Sandbox stopped" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36888,24 +37699,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.UpsertDefaultModelRequest" - } - } - } - } - }, - "delete": { + "x-public": true + } + }, + "/api/v2/sandboxes/registries": { + "get": { "security": [ { "API Key": [] @@ -36917,32 +37721,57 @@ "Bearer Auth": [] } ], - "description": "Removes the default model for a feature in the workspace.", + "description": "List sandbox registries for pulling private images.", "tags": [ - "features" + "sandboxes" ], - "summary": "Delete default model for a feature", + "summary": "List registries", "parameters": [ { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, + "description": "Maximum number of registries to return", + "name": "limit", + "in": "query", "schema": { - "type": "string" + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Number of registries to skip", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Filter to registries whose name contains this substring", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" } } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.RegistryListResponse" + } + } + } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36952,7 +37781,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -36962,16 +37791,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/features/{feature}/disabled-models": { - "put": { + }, + "x-public": true + }, + "post": { "security": [ { "API Key": [] @@ -36983,52 +37811,49 @@ "Bearer Auth": [] } ], - "description": "Adds a model to the disabled list for a feature in the workspace.", + "description": "Create a sandbox registry for pulling private images.", "tags": [ - "features" - ], - "summary": "Disable a model for a feature", - "parameters": [ - { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "sandboxes" ], + "summary": "Create a registry", + "parameters": [], "responses": { - "204": { - "description": "No Content" + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.RegistryResponse" + } + } + } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37038,26 +37863,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.DisableModelRequest" + "$ref": "#/components/schemas/sandboxes.CreateRegistryPayload" } } } } } }, - "/v1/platform/features/{feature}/disabled-models/{model}": { - "delete": { + "/api/v2/sandboxes/registries/{name}": { + "get": { "security": [ { "API Key": [] @@ -37069,24 +37895,15 @@ "Bearer Auth": [] } ], - "description": "Removes a model from the disabled list for a feature in the workspace.", + "description": "Get a sandbox registry by name.", "tags": [ - "features" + "sandboxes" ], - "summary": "Re-enable a disabled model for a feature", + "summary": "Get a registry", "parameters": [ { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Model name (URL-encoded)", - "name": "model", + "description": "Registry name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37095,35 +37912,97 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.RegistryResponse" + } + } + } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + } + }, + "x-public": true + }, + "delete": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Delete a sandbox registry by name.", + "tags": [ + "sandboxes" + ], + "summary": "Delete a registry", + "parameters": [ + { + "description": "Registry name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37133,16 +38012,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/fleet-webhooks/{webhook_id}/run": { - "post": { + }, + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -37154,15 +38032,15 @@ "Bearer Auth": [] } ], - "description": "Sends the request payload to the webhook's stored URL and returns the upstream response in a JSON envelope.", + "description": "Update a sandbox registry's name and/or credentials.", "tags": [ - "fleet_webhooks" + "sandboxes" ], - "summary": "Run a fleet webhook", + "summary": "Update a registry", "parameters": [ { - "description": "Webhook UUID", - "name": "webhook_id", + "description": "Registry name", + "name": "name", "in": "path", "required": true, "schema": { @@ -37176,56 +38054,76 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agent_builder_webhooks.WebhookTestResult" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } }, "400": { - "description": "invalid request", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "webhook not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "webhook request failed", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/sandboxes.UpdateRegistryPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/platform/fleet/mcp-servers": { + "/api/v2/sandboxes/snapshots": { "get": { "security": [ { @@ -37238,18 +38136,120 @@ "Bearer Auth": [] } ], - "description": "Returns MCP servers visible to the caller after ABAC filtering. Service-key callers may pass X-Ls-User-Id to resolve per-user OAuth providers.", + "description": "List sandbox snapshots for the authenticated tenant, with optional filtering, sorting, and pagination.\nPage with page_size and cursor: replay the response's next_cursor until it comes back null, which is the only signal that no pages remain.\nCursors are opaque and only valid on this endpoint; do not parse or construct one.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "List MCP servers", + "summary": "List snapshots", "parameters": [ { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", + "description": "Number of results per page", + "name": "page_size", + "in": "query", "schema": { - "type": "string" + "default": 20, + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "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 (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" } } ], @@ -37259,30 +38259,17 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } + "$ref": "#/components/schemas/sandboxes.SnapshotListResponse" } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "invalid page_size, cursor, or sort_order, or a deprecated parameter combined with its replacement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37292,33 +38279,33 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "422": { + "description": "invalid limit or offset", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true }, "post": { "security": [ @@ -37332,11 +38319,11 @@ "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "description": "Create a snapshot from a Docker image (async build).", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Create MCP server", + "summary": "Create a snapshot", "parameters": [], "responses": { "201": { @@ -37344,7 +38331,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } @@ -37354,17 +38341,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" } } } @@ -37374,17 +38351,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/sandboxes.ErrorResponse" } } } @@ -37394,36 +38361,26 @@ "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-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" + "$ref": "#/components/schemas/sandboxes.CreateSnapshotPayload" } } } - }, - "x-hidden": true + } } }, - "/v1/platform/fleet/mcp-servers/{mcp_server_id}": { + "/api/v2/sandboxes/snapshots-by-name/{name}": { "get": { "security": [ { @@ -37436,15 +38393,15 @@ "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "description": "Get a snapshot name and every tag under it, with the snapshot each tag resolves to. To fetch one snapshot, use /api/v2/sandboxes/snapshots/{snapshot_id}.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Get MCP server", + "summary": "Get a snapshot name", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Snapshot name, without a tag", + "name": "name", "in": "path", "required": true, "schema": { @@ -37458,7 +38415,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/sandboxes.SnapshotNameResponse" } } } @@ -37468,17 +38425,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" } } } @@ -37488,7 +38435,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37498,7 +38445,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37508,25 +38455,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true - }, - "delete": { + "x-public": true + } + }, + "/api/v2/sandboxes/snapshots/{snapshot_id}": { + "get": { "security": [ { "API Key": [] @@ -37538,15 +38477,15 @@ "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "description": "Get a sandbox snapshot by ID or by a Docker-style reference. A bare name means name:latest, falling back to the newest ready untagged snapshot of that name. To list the tags under a name, use /api/v2/sandboxes/snapshots-by-name/{name}.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Delete MCP server", + "summary": "Get a snapshot", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Snapshot UUID, a name:tag reference, or a bare snapshot name", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -37555,25 +38494,22 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } }, - "401": { - "description": "Unauthorized", - "content": { + "400": { + "description": "Bad Request", + "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37583,7 +38519,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37593,7 +38529,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37603,25 +38539,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" - } - } - } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true }, - "patch": { + "delete": { "security": [ { "API Key": [] @@ -37633,15 +38559,15 @@ "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "description": "Delete a snapshot by ID or by a Docker-style name[:tag] reference. The underlying storage is reclaimed asynchronously.", "tags": [ - "fleet mcp" + "sandboxes" ], - "summary": "Update MCP server", + "summary": "Delete a snapshot", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Snapshot UUID, or a name[:tag] reference", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -37650,32 +38576,15 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } - } - } + "204": { + "description": "Snapshot deleted" }, "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" } } } @@ -37685,7 +38594,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37695,7 +38604,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -37705,37 +38614,64 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } + } + }, + "x-public": true + } + }, + "/api/v2/sandboxes/usage": { + "get": { + "security": [ + { + "API Key": [] }, - "503": { - "description": "Service Unavailable", + { + "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/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.UsageResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } } } } }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/platform/fleet/mcp-servers/{mcp_server_id}/oauth-provider": { - "post": { + "/api/v2/sandboxes/{sandbox_id}/download": { + "get": { "security": [ { "API Key": [] @@ -37747,99 +38683,107 @@ "Bearer Auth": [] } ], - "description": "Discovers and registers an OAuth provider for a user against an MCP server configured with per-user dynamic client mode. Idempotent when a mapping already exists.", + "description": "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 mcp" + "sandboxes" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "Download a sandbox file", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "File path to download", + "name": "path", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Path" + } + }, + { + "description": "Byte range to return, e.g. bytes=0-1023", + "name": "Range", + "in": "header", + "schema": { + "type": "string" + } } ], "responses": { "200": { - "description": "OK", + "description": "File content", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" + "type": "string", + "format": "binary" } } } }, - "400": { - "description": "Bad Request", + "206": { + "description": "Partial file content", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "string", + "format": "binary" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "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" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "416": { + "description": "Requested range not satisfiable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "string" } } } } }, - "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": { + "x-public": true + }, + "head": { "security": [ { "API Key": [] @@ -37851,72 +38795,59 @@ "Bearer Auth": [] } ], - "description": "Generate a GitHub OAuth link for the current user to connect their GitHub account.", + "description": "Download file contents from a sandbox filesystem path. Supports HTTP range requests: send a Range header (for example `bytes=0-1023`) to receive a 206 with only that byte range. Every response carries an ETag; send it back as If-Range to resume safely (a changed file returns 200 with the whole file instead of mismatched bytes) or as If-None-Match to get a 304 when the file is unchanged. HEAD returns the same headers, including the file's size in Content-Length, without the body.", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "Get GitHub OAuth authorization link", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.UserAuthLinkResponse" - } - } + "summary": "Download a sandbox file", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } - } + { + "description": "File path to download", + "name": "path", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Path" } }, - "503": { - "description": "Service Unavailable", + { + "description": "Byte range to return, e.g. bytes=0-1023", + "name": "Range", + "in": "header", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "File content", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "type": "string", + "format": "binary" } } } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/connection": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Return the current user's GitHub connection status and metadata.", - "tags": [ - "fleet github-app" - ], - "summary": "Get GitHub user connection status", - "responses": { - "200": { - "description": "OK", + "206": { + "description": "Partial file content", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "type": "string", + "format": "binary" } } } @@ -37926,71 +38857,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - }, - "parameters": [], - "x-hidden": true - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Remove the current user's GitHub connection and all linked installations.", - "tags": [ - "fleet github-app" - ], - "summary": "Delete GitHub user connection", - "responses": { - "204": { - "description": "No Content" }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "416": { + "description": "Requested range not satisfiable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "type": "string" } } } } }, - "parameters": [], - "x-hidden": true - }, - "patch": { + "x-public": true + } + }, + "/api/v2/sandboxes/{sandbox_id}/execute": { + "post": { "security": [ { "API Key": [] @@ -38002,19 +38909,29 @@ "Bearer Auth": [] } ], - "description": "Update the actor preference for the current user's GitHub connection.", + "description": "Execute a command inside a sandbox and return stdout, stderr, and exit code.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Execute a sandbox command", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Update GitHub user connection", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "$ref": "#/components/schemas/sandboxes.ExecResponse" } } } @@ -38024,7 +38941,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" } } } @@ -38034,7 +38961,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38044,26 +38971,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UpdateUserConnectionRequest" + "$ref": "#/components/schemas/sandboxes.ExecRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/platform/fleet/providers/github-app/install": { + "/api/v2/sandboxes/{sandbox_id}/execute/stream/resume": { "post": { "security": [ { @@ -38076,18 +39003,29 @@ "Bearer Auth": [] } ], - "description": "Generate a link to install the GitHub App for the current organization.", + "description": "Continue streaming a command started by the stream start endpoint. The offsets are also the ack for everything below them, which frees the sandbox's output buffer and unpauses a command waiting for room. Attaches only: a command the sandbox no longer has returns 404 rather than running again.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Resume a streamed sandbox command", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Get GitHub App install link", "responses": { "200": { - "description": "OK", + "description": "SSE event stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/github_app.InstallLinkResponse" + "type": "string" } } } @@ -38097,74 +39035,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "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" } } } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Return GitHub App installations linked to the current user from\nour database. This is a cache — it does not hit the GitHub API.\nUse POST /installations/refresh to force a fresh sync from GitHub.", - "tags": [ - "fleet github-app" - ], - "summary": "List GitHub App installations", - "responses": { - "200": { - "description": "OK", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -38174,17 +39075,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ExecStreamResumeRequest" + } + } + } + } } }, - "/v1/platform/fleet/providers/github-app/installations/refresh": { + "/api/v2/sandboxes/{sandbox_id}/execute/stream/start": { "post": { "security": [ { @@ -38197,21 +39107,29 @@ "Bearer Auth": [] } ], - "description": "Trigger a live sync with GitHub for the current user's GitHub App\ninstallations. Upserts new installations, deletes stale ones, and\nreturns the refreshed list. Requires an existing GitHub connection.", + "description": "Execute a command inside a sandbox and stream stdout/stderr as Server-Sent Events with base64 payloads. Requires a sandbox on the v2 runtime. Passing a command_id reuses a running command instead of starting a second one. The response ends with an ack_required event when the sandbox's output buffer needs an ack; continue from the reported offsets with the resume endpoint.", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Start a streamed sandbox command", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Refresh GitHub App installations", "responses": { "200": { - "description": "OK", + "description": "SSE event stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "type": "string" } } } @@ -38221,7 +39139,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" } } } @@ -38231,28 +39159,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ExecStreamRequest" + } + } + } + } } }, - "/v1/platform/fleet/providers/github-app/installations/{id}": { - "delete": { + "/api/v2/sandboxes/{sandbox_id}/execute/ws": { + "get": { "security": [ { "API Key": [] @@ -38264,15 +39211,15 @@ "Bearer Auth": [] } ], - "description": "Remove a GitHub App installation link for the current user.", + "description": "Open a WebSocket connection for streaming command execution inside a sandbox.", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "Delete a GitHub App installation", + "summary": "Execute a sandbox command over WebSocket", "parameters": [ { - "description": "Installation ID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -38281,15 +39228,25 @@ } ], "responses": { - "204": { - "description": "No Content" + "101": { + "description": "WebSocket upgrade" }, "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" } } } @@ -38299,17 +39256,27 @@ "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 + "x-public": true } }, - "/v1/platform/fleet/providers/github-app/installations/{id}/repos": { - "get": { + "/api/v2/sandboxes/{sandbox_id}/glob": { + "post": { "security": [ { "API Key": [] @@ -38321,15 +39288,15 @@ "Bearer Auth": [] } ], - "description": "Return repositories accessible to the specified GitHub App installation.", + "description": "Find files under a root path matching a glob pattern (supports **). Entries are returned in lexical order by path.", "tags": [ - "fleet github-app" + "sandboxes" ], - "summary": "List repositories for a GitHub App installation", + "summary": "Glob a sandbox filesystem", "parameters": [ { - "description": "Installation ID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -38343,10 +39310,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Repository" - } + "$ref": "#/components/schemas/sandboxes.GlobResponse" } } } @@ -38356,7 +39320,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" } } } @@ -38366,26 +39340,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.GlobRequest" + } + } + } + } } }, - "/v1/platform/fleet/providers/github-app/tokens": { + "/api/v2/sandboxes/{sandbox_id}/grep": { "post": { "security": [ { @@ -38398,19 +39382,29 @@ "Bearer Auth": [] } ], - "description": "Return a short-lived GitHub access token scoped to the given repository.", + "description": "Search files under a root path for a literal text pattern (not a regex).", "tags": [ - "fleet github-app" + "sandboxes" + ], + "summary": "Grep a sandbox filesystem", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Request a GitHub access token", - "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserTokenResponse" + "$ref": "#/components/schemas/sandboxes.GrepResponse" } } } @@ -38420,7 +39414,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" } } } @@ -38430,62 +39434,36 @@ "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-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.TokenRequest" + "$ref": "#/components/schemas/sandboxes.GrepRequest" } } } - }, - "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": { + "/api/v2/sandboxes/{sandbox_id}/tunnel": { "get": { "security": [ { @@ -38498,185 +39476,60 @@ "Bearer Auth": [] } ], - "description": "Returns the top agents in the workspace with cost data for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change. Data is sourced entirely from ClickHouse run metadata.", + "description": "Open a WebSocket tunnel to a specific port inside a sandbox.", "tags": [ - "fleet usage" + "sandboxes" ], - "summary": "List fleet agents with usage", + "summary": "Open a sandbox TCP tunnel", "parameters": [ { - "description": "Max results (max 100)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "default": 20, - "title": "Limit" - } - }, - { - "description": "Start of cost window (ISO8601)", - "name": "start_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Start Time" - } - }, - { - "description": "End of cost window (ISO8601)", - "name": "end_time", - "in": "query", + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "End Time" - } - }, - { - "description": "Sort field (cost, runs, last_used, first_used)", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "default": "cost", - "title": "Sort By" + "type": "string" } }, { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", + "description": "Target sandbox TCP port", + "name": "X-Sandbox-Port", + "in": "header", "schema": { - "type": "string", - "default": "desc", - "title": "Sort Order" + "type": "integer" } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/usage.AgentUsageResponse" - } - } - } + "101": { + "description": "WebSocket upgrade" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "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": { - "type": "integer", - "default": 20, - "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": { - "type": "string", - "default": "cost", - "title": "Sort By" - } }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", - "schema": { - "type": "string", - "default": "desc", - "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" } } } @@ -38686,17 +39539,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/usage/tools": { - "get": { + "/api/v2/sandboxes/{sandbox_id}/upload": { + "post": { "security": [ { "API Key": [] @@ -38708,60 +39561,29 @@ "Bearer Auth": [] } ], - "description": "Returns the top tools in the workspace with run counts, latency, and agent counts for the given time window. Defaults to sorting by runs descending; pass sort_by and sort_order to change.", + "description": "Upload a file to a sandbox filesystem path.", "tags": [ - "fleet usage" + "sandboxes" ], - "summary": "List fleet tools with usage", + "summary": "Upload a sandbox file", "parameters": [ { - "description": "Max results (max 100)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "default": 20, - "title": "Limit" - } - }, - { - "description": "Start of window (ISO8601)", - "name": "start_time", - "in": "query", + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Start Time" + "type": "string" } }, { - "description": "End of window (ISO8601)", - "name": "end_time", + "description": "Destination file path", + "name": "path", "in": "query", "required": true, "schema": { "type": "string", - "title": "End Time" - } - }, - { - "description": "Sort field (runs, avg_latency_ms, agent_count, last_used)", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "default": "runs", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", - "schema": { - "type": "string", - "default": "desc", - "title": "Sort Order" + "title": "Path" } } ], @@ -38771,7 +39593,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.ToolUsageResponse" + "$ref": "#/components/schemas/sandboxes.UploadResponse" } } } @@ -38781,112 +39603,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/usage/users": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "fleet usage" - ], - "summary": "List fleet users with usage", - "parameters": [ - { - "description": "Max results (max 100)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "default": 20, - "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", - "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": { - "type": "string", - "default": "cost", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", - "schema": { - "type": "string", - "default": "desc", - "title": "Sort Order" - } - } - ], - "responses": { - "200": { - "description": "OK", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.UserUsageResponse" + "$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" } } } @@ -38896,4047 +39633,580 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary", + "description": "File to upload" + } + }, + "required": [ + "file" + ] + } + } + } + } } }, - "/v1/platform/gateway-policies": { - "get": { + "/api/v2/threads/query": { + "post": { "security": [ { - "API Key": [] + "API Key": [], + "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "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.", + "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": [ - "gateway-policies" + "threads" ], - "summary": "List gateway policies", + "summary": "Query Threads", + "parameters": [], "responses": { "200": { - "description": "OK", + "description": "items and pagination", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" - } + "$ref": "#/components/schemas/threads.QueryThreadsResponseBody" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "bad request (malformed JSON or invalid parameters)", "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", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - }, - "parameters": [] - }, - "post": { - "security": [ - { - "API Key": [] }, - { - "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.", - "tags": [ - "gateway-policies" - ], - "summary": "Create a gateway policy", - "parameters": [], - "responses": { - "201": { - "description": "Created", + "404": { + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "validation failure (bad matchers, unknown policy_type, missing required field)", + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "missing or invalid auth", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "LLM Gateway not enabled for the organization, or caller lacks OrganizationManage", + "501": { + "description": "scoped filters are unavailable for this deployment", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "policy name conflict", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "504": { + "description": "gateway timeout or deadline exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "x-codeSamples": [ - { - "label": "spend_cap", - "lang": "json", - "source": "{\n \"name\": \"monthly-cap\",\n \"policy_type\": \"spend_cap\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 100}\n}" - }, - { - "label": "guard", - "lang": "json", - "source": "{\n \"name\": \"redact-pii\",\n \"policy_type\": \"guard\",\n \"action\": \"block\",\n \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"\"}],\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 3}\n}" - } - ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.CreateGatewayPolicyRequest" + "$ref": "#/components/schemas/threads.QueryThreadsRequestBody" } } } } } }, - "/v1/platform/gateway-policies/{id}": { + "/api/v2/threads/{thread_id}/stats": { "get": { "security": [ { - "API Key": [] + "API Key": [], + "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns a single gateway policy by id. Cross-org access is\nrejected with 404\n\n**Spend tracking:** spend-cap policies include\n`current_spend_usd` for the active window so callers can\nread per-policy cost without hitting a separate endpoint.\nGuard policies leave it null.", + "description": "Compute aggregate stats for a single thread (turn count, latency percentiles, token/cost sums, and detail breakdowns) within a project.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "gateway-policies" + "threads" ], - "summary": "Get a gateway policy", + "summary": "Query Single Thread Stats", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Thread ID", + "name": "thread_id", "in": "path", "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "`filter` narrows which of the thread's traces are aggregated, using a LangSmith filter expression. For example: lt(start_time, \"2025-01-01T00:00:00Z\") or eq(trace_id, \"0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "name": "filter", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "title": "Filter" + } + }, + { + "example": [ + "TURNS", + "LATENCY_P50" + ], + "description": "`selects` lists which aggregate stats to compute and return (repeatable query parameter). At least one value is required. Accepts any value of `SingleThreadStatsSelectField`.", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + "TURNS", + "FIRST_START_TIME", + "LAST_START_TIME", + "LAST_END_TIME", + "LATENCY_P50", + "LATENCY_P99", + "PROMPT_TOKENS", + "PROMPT_COST", + "COMPLETION_TOKENS", + "COMPLETION_COST", + "TOTAL_TOKENS", + "TOTAL_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "FEEDBACK_STATS" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" + } + }, + { + "description": "`session_id` is the tracing project (session) UUID (required).", + "name": "session_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Session Id" } } ], "responses": { "200": { - "description": "OK", + "description": "aggregate stats for the thread", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "bad request (missing or invalid query parameters)", "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", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "policy not found", + "403": { + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "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.", - "tags": [ - "gateway-policies" - ], - "summary": "Delete a gateway policy", - "parameters": [ - { - "description": "Policy ID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "404": { - "description": "policy not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "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.", - "tags": [ - "gateway-policies" - ], - "summary": "Update a gateway policy", - "parameters": [ - { - "description": "Policy ID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" - } - } - } - }, - "400": { - "description": "validation failure", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" - } - } - } - } - }, - "x-codeSamples": [ - { - "label": "spend_cap", - "lang": "json", - "source": "{\n \"config\": {\"window\": \"monthly\", \"limit_usd\": 200},\n \"enabled\": false\n}" - }, - { - "label": "guard", - "lang": "json", - "source": "{\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 5},\n \"enabled\": true\n}" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/gateway_policies.UpdateGatewayPolicyRequest" - } - } - } - } - } - }, - "/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.", - "tags": [ - "directories" - ], - "summary": "Get directory contents", - "parameters": [ - { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Commit hash/tag to resolve (defaults to latest)", - "name": "commit", - "in": "query", - "schema": { - "type": "string", - "title": "Commit" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/directories.GetDirectoryResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "403": { - "description": "Forbidden", - "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" - } - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes an agent or skill repository and its owned child file repositories.", - "tags": [ - "directories" - ], - "summary": "Delete directory repository", - "parameters": [ - { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - } - } - }, - "/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations.", - "tags": [ - "directories" - ], - "summary": "Create directory commit", - "parameters": [ - { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/directories.CommitResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "409": { - "description": "Conflict", - "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/directories.CreateDirectoryCommitRequest" - } - } - } - } - } - }, - "/v1/platform/issues": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "issues" - ], - "summary": "[Beta] List issues", - "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": { - "enum": [ - "open", - "completed", - "ignored" - ], - "type": "string", - "title": "Status" - } - }, - { - "description": "Filter by severity", - "name": "severity", - "in": "query", - "schema": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "integer", - "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": { - "enum": [ - "created_at", - "updated_at", - "severity" - ], - "type": "string", - "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", - "schema": { - "type": "integer", - "title": "Offset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues.Issue" - } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/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", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } - } - } - } - }, - "400": { - "description": "Bad Request", - "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" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - } - }, - "parameters": [] - } - }, - "/v1/platform/issues/{id}/views": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "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" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/mcp-vendors": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the catalog of available MCP vendors.", - "tags": [ - "mcp_vendors" - ], - "summary": "List MCP vendors", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - }, - "parameters": [] - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns vendor metadata and current settings.", - "tags": [ - "mcp_vendors" - ], - "summary": "Get MCP vendor", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.GetMcpVendorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/account": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Resolves OAuth token and returns the vendor's account info.", - "tags": [ - "mcp_vendors" - ], - "summary": "Get vendor account", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/mcp-servers": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the MCP gateways from the vendor for the workspace's configured org/project.", - "tags": [ - "mcp_vendors" - ], - "summary": "List MCP servers for a vendor", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Max items to return (default 100)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Number of items to skip (default 0)", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "title": "Offset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/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/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/settings": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the current vendor-specific settings.", - "tags": [ - "mcp_vendors" - ], - "summary": "Get vendor settings", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - } - }, - "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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" - } - } - } - } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Initializes vendor settings.", - "tags": [ - "mcp_vendors" - ], - "summary": "Create vendor settings", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - }, - "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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/tools": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the tool catalog for this vendor.", - "tags": [ - "mcp_vendors" - ], - "summary": "List tools for a vendor", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Max tools to return (default 50)", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Number of tools to skip (default 0)", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "title": "Offset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListVendorToolsResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - } - } - } - }, - "/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", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - }, - "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", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Backfill 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/backfills.restartBackfillRequest" - } - } - } - } - } - }, - "/v1/platform/orgs/current/access-policies": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Lists all access policies for the organization.", - "tags": [ - "access_policies" - ], - "summary": "List access policies", - "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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - } - }, - "parameters": [] - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Creates a new access policy.", - "tags": [ - "access_policies" - ], - "summary": "Create an access policy", - "parameters": [], - "responses": { - "201": { - "description": "Access policy created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/authz_internal.AccessPolicyCreateResponse" - } - } - } - }, - "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", - "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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/authz_internal.CreateAccessPolicyPayload" - } - } - } - } - } - }, - "/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.", - "tags": [ - "access_policies" - ], - "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", - "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", - "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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - } - }, - "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": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Gets a specific access policy by ID.", - "tags": [ - "access_policies" - ], - "summary": "Get an access policy", - "parameters": [ - { - "description": "Access Policy ID", - "name": "access_policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Access policy details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/authz_internal.AccessPolicy" - } - } - } - }, - "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": "Access policy not found", - "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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes a specific access policy by ID.", - "tags": [ - "access_policies" - ], - "summary": "Delete an access policy", - "parameters": [ - { - "description": "Access Policy ID", - "name": "access_policy_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Access policy deleted successfully" - }, - "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" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/orgs/current/info": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns organization info for the authenticated user's current organization.", - "tags": [ - "Organizations" - ], - "summary": "Get current organization info", - "responses": { - "200": { - "description": "Organization info", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/orgs.OrganizationInfo" - } - } - } - }, - "400": { - "description": "Invalid organization ID", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - }, - "parameters": [] - } - }, - "/v1/platform/orgs/current/members": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", - "tags": [ - "orgs" - ], - "summary": "List org members with workspace roles", - "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, - "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-List-All-Workspaces": { - "description": "true if caller has organization:manage", - "schema": { - "type": "string" - } - }, - "X-Pagination-Total": { - "description": "Total number of matching members", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orgs.OrgMemberEnriched" - } - } - } - } - }, - "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" - } - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - } - } - }, - "/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", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" - } - } - } - } - }, - "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", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - } - }, - "parameters": [] - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Organization 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" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.CreateScimTokenPayload" - } - } - } - } - } - }, - "/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { - "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.", - "tags": [ - "SCIM Tokens" - ], - "summary": "Get a SCIM token", - "parameters": [ - { - "description": "SCIM Token ID", - "name": "scim_token_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "SCIM token details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" - } - } - } - }, - "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" - } - } - } - }, - "404": { - "description": "Token not found", - "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" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Delete a SCIM bearer token from the current organization.", - "tags": [ - "SCIM Tokens" - ], - "summary": "Delete a SCIM token", - "parameters": [ - { - "description": "SCIM Token ID", - "name": "scim_token_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No content - token deleted successfully" - }, - "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" - } - } - } - }, - "404": { - "description": "Token not found", - "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" - } - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Update the description of an existing SCIM token for the current organization.", - "tags": [ - "SCIM Tokens" - ], - "summary": "Update a SCIM token", - "parameters": [ - { - "description": "SCIM Token ID", - "name": "scim_token_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Updated SCIM token details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" - } - } - } - }, - "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" - } - } - } - }, - "404": { - "description": "Token not found", - "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" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" - } - } - } - } - } - }, - "/v1/platform/sessions/{sessionID}/agent-versions": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", - "tags": [ - "sessions" - ], - "summary": "List agent versions for a project", - "parameters": [ - { - "description": "Tracing project (session) UUID", - "name": "sessionID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Agent versions", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" - } - } - } - } - }, - "400": { - "description": "Invalid session ID", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - } - } - }, - "/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.", - "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" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } - } - } - }, - "400": { - "description": "Bad Request", - "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" - } - } - } - }, - "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" - } - } - } - } - } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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" - } - } - ], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } - } - } - }, - "400": { - "description": "Bad Request", - "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" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.CreateIssuesAgentRequest" - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nRemoves the agent config, its issues, and the agent-overview hub repo.", - "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" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "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" - } - } - } - }, - "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" - } - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "issues-agent" - ], - "summary": "[Beta] Update the issues agent config for a session", - "parameters": [ - { - "description": "Tracer session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } - } - } - }, - "400": { - "description": "Bad Request", - "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" - } - } - } - }, - "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" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.UpdateIssuesAgentRequest" - } - } - } - } - } - }, - "/v1/platform/sessions/{session_id}/issues-agent/overview": { - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nSaves the issues agent overview content server-side, creating or updating\nthe backing private Prompt Hub repo and linking it to the issues agent config.", - "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" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "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" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "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" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewRequest" - } - } - } - } - } - }, - "/v1/platform/sessions/{session_id}/issues/views": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant 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.", - "tags": [ - "issues" - ], - "summary": "[Beta] List viewed issues for a session", - "parameters": [ - { - "description": "Session ID (UUID)", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ListViewsResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.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.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true } }, - "/v1/platform/tools": { + "/api/v2/threads/{thread_id}/traces": { "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns a paginated list of tools in the workspace.", + "description": "Retrieve all traces belonging to a specific thread within a project.\n\nSelf-hosted deployments require LangSmith `v0.16` or later.", "tags": [ - "tools" + "threads" ], - "summary": "List tools", + "summary": "Query Thread Traces", "parameters": [ { - "description": "Maximum number of tools to return", - "name": "limit", + "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": "integer", - "title": "Limit" + "type": "string", + "title": "Cursor" } }, { - "description": "Number of tools to skip", - "name": "offset", + "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": { + "minimum": 1, + "default": 20, "type": "integer", - "title": "Offset" + "maximum": 100, + "title": "Page Size" } }, { - "description": "Search query to filter tools by name or description", - "name": "query", + "description": "`project_id` is the tracing project UUID (required).", + "name": "project_id", "in": "query", + "required": true, "schema": { "type": "string", - "title": "Query" + "format": "uuid", + "title": "Project Id" + } + }, + { + "example": [ + "NAME", + "START_TIME" + ], + "description": "`selects` lists which properties to include on each returned trace (repeatable query parameter). Accepts any value of the `ThreadTraceSelectField` enum. Properties not listed are omitted from each trace object; `trace_id` is always returned.", + "name": "selects", + "in": "query", + "style": "form", + "explode": true, + "schema": { + "items": { + "enum": [ + "THREAD_ID", + "TRACE_ID", + "OP", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_TOKENS", + "START_TIME", + "END_TIME", + "LATENCY", + "FIRST_TOKEN_TIME", + "INPUTS_PREVIEW", + "OUTPUTS_PREVIEW", + "INPUTS", + "OUTPUTS", + "ERROR", + "PROMPT_COST", + "COMPLETION_COST", + "TOTAL_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "NAME", + "ERROR_PREVIEW" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], "responses": { "200": { - "description": "OK", + "description": "items and pagination", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ListToolsResponse" + "$ref": "#/components/schemas/threads.QueryThreadTracesResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - } - } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Creates a new tool in the workspace.", - "tags": [ - "tools" - ], - "summary": "Create a tool", - "parameters": [], - "responses": { - "201": { - "description": "Created", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.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/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.CreateToolPayload" - } - } - } - } + "x-public": true } }, - "/v1/platform/tools/id/{id}": { - "get": { + "/api/v2/traces/query": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns a tool identified by its UUID.", + "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": [ - "tools" + "runs" ], - "summary": "Get a tool by ID", + "summary": "Query traces", "parameters": [ { - "description": "Tool UUID", - "name": "id", - "in": "path", - "required": true, + "description": "application/json (required for JSON body)", + "name": "Content-Type", + "in": "header", "schema": { "type": "string" } @@ -42948,172 +40218,240 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/query.QueryTracesResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes a tool identified by its UUID.", - "tags": [ - "tools" - ], - "summary": "Delete a tool by ID", - "parameters": [ - { - "description": "Tool UUID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" }, - "400": { - "description": "Bad Request", + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "504": { + "description": "gateway timeout or deadline exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.QueryTracesRequestBody" } } } } - }, - "patch": { + } + }, + "/api/v2/traces/{trace_id}/runs": { + "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Updates an existing tool identified by its UUID.", + "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": [ - "tools" + "runs" ], - "summary": "Update a tool by ID", + "summary": "List runs in a trace", "parameters": [ { - "description": "Tool UUID", - "name": "id", + "description": "application/json", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "Trace UUID", + "name": "trace_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "description": "`filter` narrows which runs within this trace are returned, using a LangSmith filter expression evaluated against each run. For example: `eq(run_type, \"llm\")` for LLM runs only, or `eq(status, \"error\")` for failed runs.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "name": "filter", + "in": "query", + "schema": { + "type": "string", + "title": "Filter" + } + }, + { + "description": "`max_start_time` is the optional inclusive upper bound for run `start_time` (RFC3339 date-time). Required together with `min_start_time`.", + "name": "max_start_time", + "in": "query", + "schema": { + "type": "string", + "format": "date-time", + "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": { + "type": "string", + "format": "date-time", + "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": { + "type": "string", + "format": "uuid", + "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" + ], + "type": "string" + }, + "type": "array", + "title": "Selects" } } ], @@ -43123,75 +40461,96 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "404": { + "description": "session not found", + "content": { + "application/json": { + "schema": { + "$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", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "503": { + "description": "service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.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/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.UpdateToolPayload" - } - } - } - } + "x-public": true } }, - "/v1/platform/tools/{handle}": { + "/auth/public": { "get": { "security": [ { @@ -43204,69 +40563,45 @@ "Bearer Auth": [] } ], - "description": "Returns a tool identified by its handle.", + "description": "Returns public authentication information for the current workspace-level session.", "tags": [ - "tools" - ], - "summary": "Get a tool by handle", - "parameters": [ - { - "description": "Tool handle", - "name": "handle", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "auth" ], + "summary": "Get public auth info", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/authn.PublicAuthInfo" } } } + } + }, + "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": [ + "aws_marketplace" + ], + "summary": "AWS Marketplace fulfillment URL registration", + "parameters": [], + "responses": { + "303": { + "description": "Redirect to thank-you page" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "string" } } } @@ -43276,14 +40611,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "string" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "x-amzn-marketplace-token": { + "type": "string", + "description": "Registration token from AWS Marketplace" + } + }, + "required": [ + "x-amzn-marketplace-token" + ] + } + } + } } - }, - "delete": { + } + }, + "/datasets/{dataset_id}/experiment-view-overrides": { + "get": { "security": [ { "API Key": [] @@ -43295,79 +40652,94 @@ "Bearer Auth": [] } ], - "description": "Deletes a tool identified by its handle.", + "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": [ - "tools" + "experiment-view-overrides" ], - "summary": "Delete a tool by handle", + "summary": "Get experiment view override configurations for a dataset", "parameters": [ { - "description": "Tool handle", - "name": "handle", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "Successfully retrieved experiment view override configurations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + } } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Invalid dataset ID format\" example({\"error\":\"invalid dataset ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "Not Found", + "description": "Dataset not found or not accessible\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true }, - "patch": { + "post": { "security": [ { "API Key": [] @@ -43379,264 +40751,257 @@ "Bearer Auth": [] } ], - "description": "Updates an existing tool identified by its handle.", + "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": [ - "tools" + "experiment-view-overrides" ], - "summary": "Update a tool by handle", + "summary": "Create new experiment view override configuration for a dataset", "parameters": [ { - "description": "Tool handle", - "name": "handle", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Successfully created experiment view override", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$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/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "401": { - "description": "Unauthorized", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Dataset not found\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "409": { + "description": "Override already exists\" example({\"error\":\"experiment view override already exists\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "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", + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.UpdateToolPayload" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePostRequest" } } } } } }, - "/v2/runs/query": { - "post": { + "/datasets/{dataset_id}/experiment-view-overrides/{id}": { + "get": { "security": [ { - "API Key": [], - "Tenant ID": [] + "API Key": [] }, { - "Bearer Auth": [], "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], - "description": "**Alpha:** The request and response contract may change;\nReturns 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.", + "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": [ - "runs" + "experiment-view-overrides" ], - "summary": "Query runs", + "summary": "Get experiment view override configuration by specific ID", "parameters": [ { - "description": "application/json", - "name": "Accept", - "in": "header", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } }, { - "description": "application/json (required for JSON body)", - "name": "Content-Type", - "in": "header", + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "OK", + "description": "Successfully retrieved experiment view override configuration", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/query.QueryRunsResponseBody" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" } } } }, "400": { - "description": "bad request (malformed JSON or invalid parameters)", + "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "401": { - "description": "missing or invalid authentication", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" - } - } - } - }, - "403": { - "description": "forbidden (insufficient permission)", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "session not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" - } - } - } - }, - "422": { - "description": "unprocessable entity (e.g. invalid UUID)", + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "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", + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/query.QueryRunsRequestBody" - } - } - } - } - } - }, - "/v2/runs/{run_id}": { - "get": { + "x-public": true + }, + "delete": { "security": [ { - "API Key": [], - "Tenant ID": [] + "API Key": [] }, { - "Bearer Auth": [], "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], - "description": "**Alpha:** The request and response contract may change;\nReturns one run by ID for the given session and start_time. Use the `selects` query parameter (repeatable) to select fields to return.", + "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": [ - "runs" + "experiment-view-overrides" ], - "summary": "Get a single run", + "summary": "Delete experiment view override configuration", "parameters": [ { - "description": "application/json", - "name": "Accept", - "in": "header", - "schema": { - "type": "string" - } - }, - { - "description": "Run UUID", - "name": "run_id", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { @@ -43645,183 +41010,282 @@ } }, { - "description": "`project_id` is the UUID of the tracing project that owns the run.", - "name": "project_id", - "in": "query", + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Project Id" + "format": "uuid" } + } + ], + "responses": { + "204": { + "description": "Successfully deleted experiment view override (no content returned)" }, - { - "description": "`selects` lists which properties to include on the returned run (repeatable query parameter). Accepts any value of the `RunSelectField` enum. If omitted, only `id` is returned.", - "name": "selects", - "in": "query", - "style": "form", - "explode": true, - "schema": { - "items": { - "enum": [ - "ID", - "NAME", - "RUN_TYPE", - "STATUS", - "START_TIME", - "END_TIME", - "LATENCY_SECONDS", - "FIRST_TOKEN_TIME", - "ERROR", - "ERROR_PREVIEW", - "EXTRA", - "METADATA", - "EVENTS", - "INPUTS", - "INPUTS_PREVIEW", - "OUTPUTS", - "OUTPUTS_PREVIEW", - "MANIFEST", - "PARENT_RUN_IDS", - "PROJECT_ID", - "TRACE_ID", - "THREAD_ID", - "DOTTED_ORDER", - "IS_ROOT", - "REFERENCE_EXAMPLE_ID", - "REFERENCE_DATASET_ID", - "TOTAL_TOKENS", - "PROMPT_TOKENS", - "COMPLETION_TOKENS", - "TOTAL_COST", - "PROMPT_COST", - "COMPLETION_COST", - "PROMPT_TOKEN_DETAILS", - "COMPLETION_TOKEN_DETAILS", - "PROMPT_COST_DETAILS", - "COMPLETION_COST_DETAILS", - "PRICE_MODEL_ID", - "TAGS", - "APP_PATH", - "ATTACHMENTS", - "THREAD_EVALUATION_TIME", - "IS_IN_DATASET", - "SHARE_URL", - "FEEDBACK_STATS" - ], - "type": "string" - }, - "type": "array", - "title": "Selects" + "400": { + "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "404": { + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } } + } + }, + "x-public": true + }, + "patch": { + "security": [ + { + "API Key": [] }, { - "description": "`start_time` is the run's `start_time` (RFC3339 date-time), used together with `project_id` to locate the run.", - "name": "start_time", - "in": "query", + "Tenant ID": [] + }, + { + "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.", + "tags": [ + "experiment-view-overrides" + ], + "summary": "Update existing experiment view override configuration", + "parameters": [ + { + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", "required": true, "schema": { "type": "string", - "format": "date-time", - "title": "Start Time" + "format": "uuid" + } + }, + { + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "OK", + "description": "Successfully updated experiment view override", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/query.RunResponse" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" } } } }, "400": { - "description": "bad request (missing or invalid query parameters)", + "description": "Invalid request data\" example({\"error\":\"invalid experiment view override ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "401": { - "description": "missing or invalid authentication", + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "forbidden (insufficient permission)", + "404": { + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "run or session not found", + "422": { + "description": "Validation error\" example({\"error\":\"'precision' must be between 1 and 6 for column at index 0\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "422": { - "description": "unprocessable entity (e.g. invalid UUID)", + "500": { + "description": "Internal server error\" example({\"error\":\"internal server error\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePatchRequest" + } + } + } + } + } + }, + "/me/providers/{providerType}": { + "get": { + "security": [ + { + "API Key": [] }, - "500": { - "description": "internal server error", + { + "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.", + "tags": [ + "me" + ], + "summary": "Get the authenticated user's provider user ID", + "parameters": [ + { + "description": "Provider type (e.g. slack, github)", + "name": "providerType", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "string" } } } }, - "503": { - "description": "service unavailable", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "string" } } } }, - "504": { - "description": "gateway timeout or deadline exceeded", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "string" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "type": "string" } } } } - } + }, + "x-public": true } }, - "/v2/sandboxes/boxes": { + "/oauth/authorize": { "get": { "security": [ { @@ -43832,83 +41296,121 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "List sandboxes for the authenticated tenant, with optional filtering, sorting, and pagination.", + "description": "Validates authorization request parameters and redirects to the frontend consent page per RFC 6749.", "tags": [ - "sandboxes" + "oauth" ], - "summary": "List sandboxes", + "summary": "Initiate OAuth2 authorization", "parameters": [ { - "description": "Maximum number of results", - "name": "limit", + "description": "Must be 'code'", + "name": "response_type", "in": "query", + "required": true, "schema": { - "type": "integer", - "default": 50, - "title": "Limit" + "type": "string", + "title": "Response Type" } }, { - "description": "Pagination offset", - "name": "offset", + "description": "OAuth2 client ID", + "name": "client_id", "in": "query", + "required": true, "schema": { - "type": "integer", - "default": 0, - "title": "Offset" + "type": "string", + "title": "Client Id" } }, { - "description": "Filter by name substring", - "name": "name_contains", + "description": "Redirect URI registered with the client", + "name": "redirect_uri", "in": "query", + "required": true, "schema": { "type": "string", - "title": "Name Contains" + "title": "Redirect Uri" } }, { - "description": "Filter by status (provisioning, ready, failed, stopped, deleting)", - "name": "status", + "description": "PKCE code challenge", + "name": "code_challenge", "in": "query", + "required": true, "schema": { "type": "string", - "title": "Status" + "title": "Code Challenge" } }, { - "description": "Sort column (name, status, created_at)", - "name": "sort_by", + "description": "PKCE method, must be 'S256'", + "name": "code_challenge_method", "in": "query", + "required": true, "schema": { "type": "string", - "default": "created_at", - "title": "Sort By" + "title": "Code Challenge Method" } }, { - "description": "Sort direction (asc, desc)", - "name": "sort_direction", + "description": "Opaque state value to prevent CSRF", + "name": "state", "in": "query", "schema": { "type": "string", - "default": "desc", - "title": "Sort Direction" + "title": "State" + } + } + ], + "responses": { + "302": { + "description": "Found" + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } } } + }, + "x-public": true + } + }, + "/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": "OK", + "description": "JSON body with redirect_uri the frontend should navigate the browser to", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxListResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -43918,7 +41420,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -43928,7 +41440,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -43938,119 +41450,211 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } + }, + "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" + ] + } + } + } } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - }, + } + }, + "/oauth/client/{clientID}": { + "get": { + "description": "Returns the display metadata (name, logo, homepage/terms/privacy links) for a registered OAuth2 client. Used by the consent screen to show a human-readable client identity instead of the raw client_id. Public endpoint; exposes only non-sensitive display fields.", + "tags": [ + "oauth" + ], + "summary": "Get public OAuth2 client metadata", + "parameters": [ { - "X-Service-Key": [] + "description": "OAuth2 client ID", + "name": "clientID", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], - "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", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$ref": "#/components/schemas/oauth.ClientPublicMetadata" } } } }, "400": { - "description": "Snapshot not found", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "409": { - "description": "Name already exists", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } + } + }, + "x-public": true + } + }, + "/oauth/device/authorize": { + "post": { + "security": [ + { + "API Key": [] }, - "422": { - "description": "Validation error", + { + "Tenant ID": [] + }, + { + "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.", + "tags": [ + "oauth" + ], + "summary": "Authorize a device code", + "parameters": [], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "429": { - "description": "Quota exceeded", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "500": { - "description": "Sandbox creation failed or internal error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "504": { - "description": "Sandbox did not become ready in time", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/sandboxes.CreateSandboxPayload" + "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" + ] } } } } } }, - "/v2/sandboxes/boxes/batch-delete": { + "/oauth/device/code": { "post": { "security": [ { @@ -44063,11 +41667,11 @@ "Bearer Auth": [] } ], - "description": "Delete multiple sandboxes by name or UUID in a single request.", + "description": "Issues a device code and user code for the device authorization flow per RFC 8628.", "tags": [ - "sandboxes" + "oauth" ], - "summary": "Batch delete sandboxes", + "summary": "Request OAuth2 device authorization", "parameters": [], "responses": { "200": { @@ -44075,7 +41679,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.BatchDeleteResponse" + "$ref": "#/components/schemas/oauth.DeviceCodeResponse" } } } @@ -44085,17 +41689,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -44105,26 +41699,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/sandboxes.BatchDeleteRequest" + "type": "object", + "properties": { + "client_id": { + "type": "string", + "description": "OAuth2 client ID" + } + }, + "required": [ + "client_id" + ] } } } } } }, - "/v2/sandboxes/boxes/{name}": { - "get": { + "/oauth/register": { + "post": { "security": [ { "API Key": [] @@ -44134,44 +41738,41 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.", + "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": [ - "sandboxes" - ], - "summary": "Get a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "Register an OAuth2 dynamic client", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$ref": "#/components/schemas/oauth.ClientRegistrationResponse" } } } }, - "404": { - "description": "Not Found", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -44181,14 +41782,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.ClientRegistrationRequest" + } + } + } } - }, - "delete": { + } + }, + "/oauth/revoke": { + "post": { "security": [ { "API Key": [] @@ -44198,54 +41812,43 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.", + "description": "Revokes an access token or refresh token per RFC 7009. Always returns 200 regardless of whether the token was found.", "tags": [ - "sandboxes" - ], - "summary": "Delete a sandbox", - "parameters": [ - { - "description": "Sandbox display name or UUID", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "Revoke an OAuth2 token", + "parameters": [], "responses": { - "204": { - "description": "No content" - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } + "200": { + "description": "OK" + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "Token to revoke (access token or refresh token)" + } + }, + "required": [ + "token" + ] } } } } - }, - "patch": { + } + }, + "/oauth/token": { + "post": { "security": [ { "API Key": [] @@ -44255,64 +41858,31 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Update a sandbox's display name. The name must be unique within the tenant.", + "description": "Token endpoint that dispatches by grant_type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token.", "tags": [ - "sandboxes" - ], - "summary": "Update a sandbox", - "parameters": [ - { - "description": "Current sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "Exchange grant for OAuth2 tokens", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "409": { - "description": "Name already exists", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenResponse" } } } }, - "422": { - "description": "Validation error", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -44322,252 +41892,269 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/sandboxes.UpdateSandboxPayload" + "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" + ] } } } } } }, - "/v2/sandboxes/boxes/{name}/service-url": { - "post": { + "/orgs/current/data-planes": { + "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization 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.", + "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": [ - "sandboxes" - ], - "summary": "Generate a service access token", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "data_planes" ], + "summary": "List data planes for the current organization", "responses": { "200": { - "description": "OK", + "description": "Data planes", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ServiceURLResponse" + "$ref": "#/components/schemas/data_planes.ListPublicDataPlanesResponse" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid organization ID", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "422": { - "description": "Unprocessable Entity", + "403": { + "description": "BYOC not enabled for this organization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "501": { - "description": "Not Implemented", + "description": "Internal server error", "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": { + "x-public": true, + "parameters": [] + }, "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", + "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": [ - "sandboxes" - ], - "summary": "Capture a snapshot from a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "data_planes" ], + "summary": "Create a new data plane", + "parameters": [], "responses": { - "201": { - "description": "Created", + "202": { + "description": "Data plane requested", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, "400": { - "description": "Bad Request", + "description": "Invalid input", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "BYOC not enabled or insufficient permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.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/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, "422": { - "description": "Unprocessable Entity", + "description": "Customer AWS resource conflict or quota exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/data_planes.CreateErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" + "$ref": "#/components/schemas/data_planes.CreateDataPlaneRequestAws" } } } } } }, - "/v2/sandboxes/boxes/{name}/start": { - "post": { + "/orgs/current/data-planes/{id}": { + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Start a stopped or failed sandbox. This endpoint is not idempotent.", + "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": [ - "sandboxes" + "data_planes" ], - "summary": "Start a sandbox", + "summary": "Delete a data plane", "parameters": [ { - "description": "Sandbox display name", - "name": "name", + "description": "Data plane ID", + "name": "id", "in": "path", "required": true, "schema": { @@ -44577,146 +42164,114 @@ ], "responses": { "202": { - "description": "Accepted", + "description": "Data plane deprovisioning started", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "description": "Invalid data plane ID or confirmed missing delete permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal Server Error", + "403": { + "description": "BYOC not enabled or insufficient permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } - } - } - } - }, - "/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", + "404": { + "description": "Data plane not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxStatusResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "409": { + "description": "Data plane is not active", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } - } - }, - "/v2/sandboxes/boxes/{name}/stop": { - "post": { + }, + "x-public": true + }, + "patch": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.", + "description": "Update specific settings for a data plane owned by the caller's organization.", "tags": [ - "sandboxes" + "data_planes" ], - "summary": "Stop a sandbox", + "summary": "Update data plane settings", "parameters": [ { - "description": "Sandbox display name", - "name": "name", + "description": "Data plane ID", + "name": "id", "in": "path", "required": true, "schema": { @@ -44725,63 +42280,91 @@ } ], "responses": { - "204": { - "description": "Sandbox stopped" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "Updated data plane", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Invalid request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "BYOC not enabled or insufficient permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.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/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.UpdateDataPlaneRequest" + } + } + } } } }, - "/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-).", + "/repos/{owner}/{repo}/tags/{tag_name}/history": { + "get": { + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Returns the paginated audit log of transitions for a specific\ntag in a repository. Each entry records a commit change\n(from_commit → to_commit) along with who performed it.", "tags": [ - "sandboxes-internal" + "tag-transitions" ], - "summary": "Internal: start a stopped sandbox (service-to-service)", + "summary": "Get tag transition history", "parameters": [ { - "description": "Sandbox display name or route name (sb-)", - "name": "name", + "description": "Repository owner (tenant handle)", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", "in": "path", "required": true, "schema": { @@ -44789,13 +42372,34 @@ } }, { - "description": "Tenant ID", - "name": "X-Tenant-Id", - "in": "header", + "description": "Tag name", + "name": "tag_name", + "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "name": "limit", + "in": "query", + "schema": { + "minimum": 1, + "default": 50, + "type": "integer", + "maximum": 100, + "title": "Limit" + } + }, + { + "name": "offset", + "in": "query", + "schema": { + "minimum": 0, + "default": 0, + "type": "integer", + "title": "Offset" + } } ], "responses": { @@ -44804,7 +42408,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$ref": "#/components/schemas/tag_transitions.TagTransitionHistoryResponse" } } } @@ -44814,7 +42418,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } @@ -44824,7 +42428,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } @@ -44834,100 +42438,78 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v2/sandboxes/snapshots": { + "/userinfo": { "get": { "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "List sandbox snapshots for the authenticated tenant, with optional filtering, sorting, and pagination.", + "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": [ - "sandboxes" + "oauth" ], - "summary": "List snapshots", - "parameters": [ - { - "description": "Maximum number of results", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "default": 50, - "title": "Limit" - } - }, - { - "description": "Pagination offset", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "default": 0, - "title": "Offset" + "summary": "Get OpenID Connect userinfo", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.UserinfoResponse" + } + } } }, - { - "description": "Filter by name substring", - "name": "name_contains", - "in": "query", - "schema": { - "type": "string", - "title": "Name Contains" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } } - }, + } + }, + "x-public": true, + "parameters": [] + } + }, + "/v1/agent-builder/integrations": { + "get": { + "security": [ { - "description": "Filter by status (building, ready, failed, deleting)", - "name": "status", - "in": "query", - "schema": { - "type": "string", - "title": "Status" - } + "API Key": [] }, { - "description": "Sort column (name, status, created_at)", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "default": "created_at", - "title": "Sort By" - } + "Tenant ID": [] }, { - "description": "Sort direction (asc, desc)", - "name": "sort_direction", - "in": "query", - "schema": { - "type": "string", - "default": "desc", - "title": "Sort Direction" - } + "Bearer Auth": [] } ], + "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/sandboxes.SnapshotListResponse" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } @@ -44937,7 +42519,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -44947,7 +42532,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -44957,14 +42558,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true, + "parameters": [] }, - "post": { + "put": { "security": [ { "API Key": [] @@ -44976,19 +42582,19 @@ "Bearer Auth": [] } ], - "description": "Create a snapshot from a Docker image (async build).", + "description": "Replaces default policy and integration overrides for the current workspace.", "tags": [ - "sandboxes" + "integrations" ], - "summary": "Create a snapshot", + "summary": "Update Agent Builder integrations settings", "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } @@ -44998,17 +42604,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -45018,50 +42630,60 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.CreateSnapshotPayload" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsUpdatePayload" } } } } } }, - "/v2/sandboxes/snapshots/{snapshot_id}": { + "/v1/fleet/orgs": { "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Get a sandbox snapshot by ID.", + "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": [ - "sandboxes" + "fleet orgs" ], - "summary": "Get a snapshot", + "summary": "List organizations", "parameters": [ { - "description": "Snapshot UUID", - "name": "snapshot_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" } } ], @@ -45071,7 +42693,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + "$ref": "#/components/schemas/orgs.ListOrgsResponse" } } } @@ -45081,27 +42703,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } @@ -45111,71 +42723,87 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } } - } - }, - "delete": { + }, + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/orgs/{org_id}/tenants": { + "get": { "security": [ { "API Key": [] }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] } ], - "description": "Delete a snapshot by ID. The underlying storage is reclaimed asynchronously.", + "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": [ - "sandboxes" + "fleet tenants" ], - "summary": "Delete a snapshot", + "summary": "List tenants", "parameters": [ { - "description": "Snapshot UUID", - "name": "snapshot_id", + "description": "Organization ID", + "name": "org_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Items per page (default 20, max 20)", + "name": "page_size", + "in": "query", + "schema": { + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor returned by a prior response", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" + } } ], "responses": { - "204": { - "description": "Snapshot deleted" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tenants.ListTenantsResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } @@ -45185,15 +42813,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } } - } + }, + "x-public": true, + "x-hidden": true } }, - "/v2/sandboxes/usage": { + "/v1/fleet/secrets": { "get": { "security": [ { @@ -45204,353 +42834,321 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Get current sandbox resource usage and quota limits for the workspace", + "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": [ - "sandboxes" + "fleet secrets" ], - "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/threads/query": { - "post": { - "security": [ + "summary": "List workspace secret names", + "parameters": [ { - "API Key": [], - "Tenant ID": [] + "description": "Items per page (1-100, default 20)", + "name": "page_size", + "in": "query", + "schema": { + "type": "integer", + "title": "Page Size" + } }, { - "Bearer Auth": [], - "Tenant ID": [] + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" + } } ], - "description": "**Alpha:** The request and response contract may change;\nQuery threads within a project (session), with cursor-based pagination.\nReturns threads matching the given time range and optional filter.", - "tags": [ - "threads" - ], - "summary": "Query Threads", - "parameters": [], "responses": { "200": { - "description": "items and pagination", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.QueryThreadsResponseBody" + "$ref": "#/components/schemas/secrets.ListResponse" } } } }, "400": { - "description": "bad request (malformed JSON or invalid parameters)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, "401": { - "description": "missing or invalid authentication", + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, "403": { - "description": "forbidden (insufficient permission)", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "404": { - "description": "session not found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } + } + }, + "x-public": true, + "x-hidden": true + }, + "post": { + "security": [ + { + "API Key": [] }, - "422": { - "description": "unprocessable entity (e.g. invalid project UUID)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" - } - } - } + { + "Tenant ID": [] }, - "500": { - "description": "internal server error", + { + "Bearer Auth": [] + } + ], + "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/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "503": { - "description": "service unavailable", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "504": { - "description": "gateway timeout or deadline exceeded", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.QueryThreadsRequestBody" + "type": "array", + "items": { + "$ref": "#/components/schemas/secrets.bulkUpsertItem" + } } } } - } + }, + "x-hidden": true } }, - "/v2/threads/{thread_id}/stats": { - "get": { + "/v1/fleet/secrets/{name}": { + "put": { "security": [ { - "API Key": [], - "Tenant ID": [] + "API Key": [] }, { - "Bearer Auth": [], "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], - "description": "**Alpha:** The request and response contract may change;\nCompute aggregate stats for a single thread (turn count, latency percentiles, token/cost sums, and detail breakdowns) within a project.", + "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": [ - "threads" + "fleet secrets" ], - "summary": "Query Single Thread Stats", + "summary": "Set a workspace secret", "parameters": [ { - "description": "Thread ID", - "name": "thread_id", + "description": "Secret name (e.g. ANTHROPIC_API_KEY)", + "name": "name", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "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", - "style": "form", - "explode": true, - "schema": { - "items": { - "enum": [ - "TURNS", - "FIRST_START_TIME", - "LAST_START_TIME", - "LAST_END_TIME", - "LATENCY_P50", - "LATENCY_P99", - "PROMPT_TOKENS", - "PROMPT_COST", - "COMPLETION_TOKENS", - "COMPLETION_COST", - "TOTAL_TOKENS", - "TOTAL_COST", - "PROMPT_TOKEN_DETAILS", - "COMPLETION_TOKEN_DETAILS", - "PROMPT_COST_DETAILS", - "COMPLETION_COST_DETAILS" - ], - "type": "string" - }, - "type": "array", - "title": "Selects" - } - }, - { - "description": "`session_id` is the tracing project (session) UUID (required).", - "name": "session_id", - "in": "query", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Session Id" - } } ], "responses": { - "200": { - "description": "aggregate stats for the thread", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" - } - } - } + "204": { + "description": "No Content" }, "400": { - "description": "bad request (missing or invalid query parameters)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, "401": { - "description": "missing or invalid authentication", + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, "403": { - "description": "forbidden (insufficient permission)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" - } - } - } - }, - "404": { - "description": "session not found", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } - }, - "422": { - "description": "unprocessable entity (e.g. invalid project UUID)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.putRequest" } } + } + }, + "x-hidden": true + }, + "delete": { + "security": [ + { + "API Key": [] }, - "500": { - "description": "internal server error", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "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/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "503": { - "description": "service unavailable", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "504": { - "description": "gateway timeout or deadline exceeded", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } } - } + }, + "x-public": true, + "x-hidden": true } }, - "/v2/threads/{thread_id}/traces": { + "/v1/fleet/tenants/{tenant_id}/users/{id}": { "get": { "security": [ { - "API Key": [], - "Tenant ID": [] + "API Key": [] }, { - "Bearer Auth": [], - "Tenant ID": [] + "Bearer Auth": [] } ], - "description": "**Alpha:** The request and response contract may change;\nRetrieve all traces belonging to a specific thread within a project.", + "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": [ - "threads" + "fleet users" ], - "summary": "Query Thread Traces", + "summary": "Get Fleet user in tenant", "parameters": [ { - "description": "Thread ID", - "name": "thread_id", + "description": "Tenant ID", + "name": "tenant_id", "in": "path", "required": true, "schema": { @@ -45558,319 +43156,128 @@ } }, { - "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, - "type": "integer", - "default": 20, - "minimum": 1, - "title": "Page Size" - } - }, - { - "description": "`project_id` is the tracing project UUID (required).", - "name": "project_id", - "in": "query", + "description": "User ID", + "name": "id", + "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid", - "title": "Project Id" - } - }, - { - "example": [ - "NAME", - "START_TIME" - ], - "description": "`selects` lists which properties to include on each returned trace (repeatable query parameter). Accepts any value of the `ThreadTraceSelectField` enum. Properties not listed are omitted from each trace object; `trace_id` is always returned.", - "name": "selects", - "in": "query", - "style": "form", - "explode": true, - "schema": { - "items": { - "enum": [ - "THREAD_ID", - "TRACE_ID", - "OP", - "PROMPT_TOKENS", - "COMPLETION_TOKENS", - "TOTAL_TOKENS", - "START_TIME", - "END_TIME", - "LATENCY", - "FIRST_TOKEN_TIME", - "INPUTS_PREVIEW", - "OUTPUTS_PREVIEW", - "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" + "type": "string" } } ], "responses": { "200": { - "description": "items and pagination", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.QueryThreadTracesResponseBody" + "$ref": "#/components/schemas/users.UserRef" } } } }, "400": { - "description": "bad request (missing or invalid query parameters)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, "401": { - "description": "missing or invalid authentication", + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, "403": { - "description": "forbidden (insufficient permission)", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, "404": { - "description": "session not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" - } - } - } - }, - "422": { - "description": "unprocessable entity (e.g. invalid project UUID)", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, "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", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } } - } + }, + "x-public": true, + "x-hidden": true } }, - "/v2/traces/{trace_id}/runs": { + "/v1/fleet/users": { "get": { "security": [ { - "API Key": [], - "Tenant ID": [] + "API Key": [] }, { - "Bearer Auth": [], "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], - "description": "**Alpha:** The request and response contract may change;\nReturns runs for a trace ID within min/max start time. Optional `filter`; repeatable `selects` to select fields to return.", + "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": [ - "runs" + "fleet users" ], - "summary": "List runs in a trace", + "summary": "List Fleet users", "parameters": [ { - "description": "application/json", - "name": "Accept", - "in": "header", - "schema": { - "type": "string" - } - }, - { - "description": "Trace UUID", - "name": "trace_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "description": "`filter` narrows which runs within this trace are returned, using a LangSmith filter expression evaluated against each run. For example: `eq(run_type, \"llm\")` for LLM runs only, or `eq(status, \"error\")` for failed runs.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", - "name": "filter", - "in": "query", - "schema": { - "type": "string", - "title": "Filter" - } - }, - { - "description": "`max_start_time` is the inclusive upper bound for run `start_time` (RFC3339 date-time).", - "name": "max_start_time", + "description": "Case-insensitive substring matched against member email and full name. Omit to list every member.", + "name": "search", "in": "query", - "required": true, "schema": { "type": "string", - "format": "date-time", - "title": "Max Start Time" + "title": "Search" } }, { - "description": "`min_start_time` is the inclusive lower bound for run `start_time` (RFC3339 date-time).", - "name": "min_start_time", + "description": "Items per page", + "name": "page_size", "in": "query", - "required": true, "schema": { - "type": "string", - "format": "date-time", - "title": "Min Start Time" + "minimum": 1, + "default": 20, + "type": "integer", + "maximum": 100, + "title": "Page Size" } }, { - "description": "`project_id` is the UUID of the tracing project that owns the trace.", - "name": "project_id", + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", "in": "query", - "required": true, "schema": { "type": "string", - "format": "uuid", - "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", - "SHARE_URL", - "FEEDBACK_STATS" - ], - "type": "string" - }, - "type": "array", - "title": "Selects" + "title": "Cursor" } } ], @@ -45880,92 +43287,116 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/query.QueryTraceResponseBody" + "$ref": "#/components/schemas/users.ListResponse" } } } }, "400": { - "description": "bad request (missing or invalid query parameters)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, "401": { - "description": "missing or invalid authentication", + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, "403": { - "description": "forbidden (insufficient permission)", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, - "404": { - "description": "session not found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } + } + }, + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/users/current": { + "get": { + "security": [ + { + "API Key": [] }, - "422": { - "description": "unprocessable entity (e.g. invalid UUID)", + { + "Bearer Auth": [] + } + ], + "description": "Returns the authenticated Fleet caller's user profile. This endpoint does not require X-Tenant-Id and is intended for Fleet bootstrap.", + "tags": [ + "fleet users" + ], + "summary": "Get current Fleet user", + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.User" } } } }, - "500": { - "description": "internal server error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, - "503": { - "description": "service unavailable", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, - "504": { - "description": "gateway timeout or deadline exceeded", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } } - } + }, + "x-public": true, + "parameters": [], + "x-hidden": true } }, "/workspaces/current/ttl-settings": { @@ -46037,6 +43468,7 @@ } } }, + "x-public": true, "parameters": [] }, "put": { @@ -46108,6 +43540,7 @@ } } }, + "x-public": true, "requestBody": { "required": true, "content": { @@ -46554,93 +43987,149 @@ } ] }, - "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" + }, + { + "type": "null" + } + ], + "title": "Created By" + }, + "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": { + "anyOf": [ + { + "type": "string" + }, + { + "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" + } + ] + }, + "created_by": { "anyOf": [ { "type": "string" @@ -46649,41 +44138,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", @@ -47083,6 +44538,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", @@ -48216,11 +45693,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", @@ -48244,8 +45723,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", @@ -48259,6 +45745,8 @@ "delete_tracer_session", "delete_tracer_sessions", "delete_runs", + "share_run", + "unshare_run", "create_dataset", "create_csv_dataset", "create_experiment_via_upload", @@ -48278,6 +45766,7 @@ "create_examples", "update_example", "update_examples", + "update_examples_metadata", "sync_examples", "delete_example", "delete_examples", @@ -48316,7 +45805,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", @@ -48333,6 +45824,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", @@ -48346,15 +45839,24 @@ "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_tool", "update_tool", "delete_tool", + "create_connection", + "update_connection", + "delete_connection", "create_mcp_vendor_settings", "update_mcp_vendor_settings", "delete_mcp_vendor_settings", @@ -48380,6 +45882,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", @@ -48396,6 +45899,7 @@ "start_sandbox_claim", "stop_sandbox_claim", "generate_sandbox_service_url", + "generate_sandbox_download_url", "capture_sandbox_snapshot", "list_sandbox_snapshots", "get_sandbox_snapshot", @@ -48407,6 +45911,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", @@ -48418,6 +45924,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", @@ -48508,8 +46015,10 @@ "list_pending_organization_invites", "list_org_members", "get_org_usage", - "get_granular_usage", - "export_granular_usage_csv", + "get_granular_usage_traces", + "export_granular_usage_traces_csv", + "get_granular_usage_deployments", + "export_granular_usage_deployments_csv", "export_usage_backfill_csv", "get_login_methods", "get_sso_settings_current", @@ -48548,9 +46057,12 @@ "stream_feedback_delta", "read_comparative_experiments", "stream_grouped_experiments", + "get_run_url", "query_run", "query_runs", + "batch_query_runs", "query_trace", + "query_traces", "query_trace_messages", "batch_query_trace_messages", "query_thread_messages", @@ -48573,10 +46085,19 @@ "create_self_hosted_customer", "update_self_hosted_customer", "update_self_hosted_license", + "get_self_hosted_customer", + "get_provisioned_saas_org", + "update_provisioned_saas_org", + "create_oauth_client", + "update_oauth_client", + "delete_oauth_client", + "rotate_oauth_client_secret", + "revoke_oauth_grant", "test_op_generic" ], "title": "AuditLogOperation", - "description": "Operations that are logged in audit_logs database table." + "description": "Operations that are logged in audit_logs database table.", + "x-extensible-enum": true }, "AuthProvider": { "type": "string", @@ -48765,43 +46286,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": { @@ -48829,7 +46313,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": [ @@ -49039,6 +46524,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": { @@ -49136,7 +46622,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": [ @@ -49346,6 +46833,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": { @@ -49473,6 +46961,22 @@ } ], "title": "Split" + }, + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" } }, "type": "object", @@ -49537,9 +47041,7 @@ "metadata": { "anyOf": [ { - "additionalProperties": { - "type": "string" - }, + "additionalProperties": true, "type": "object" }, { @@ -49547,6 +47049,35 @@ } ], "title": "Metadata" + }, + "delete_examples": { + "type": "boolean", + "title": "Delete Examples", + "default": false + }, + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" + }, + "end_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "End Time" } }, "type": "object", @@ -49607,8 +47138,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49724,6 +47255,17 @@ } ], "title": "Metadata Key Mappings" + }, + "tag_value_ids": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" } }, "type": "object", @@ -49737,8 +47279,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49895,7 +47437,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -50055,7 +47597,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -50312,13 +47854,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": { @@ -50589,13 +48148,17 @@ "disabled", "developer", "developer_01_2026", + "developer_07_2026", "plus", "plus_01_2026", + "plus_07_2026", "startup", "startup_v0", + "startup_07_2026", "partner", "premier", - "free" + "free", + "free_07_2026" ], "title": "ChangePaymentPlanReq", "description": "Enum for payment plans that the user can change to. Developer plans are permanent and enterprise plans will be changed manually." @@ -50604,6 +48167,17 @@ "properties": { "tier": { "$ref": "#/components/schemas/ChangePaymentPlanReq" + }, + "display_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Display Name" } }, "type": "object", @@ -51195,37 +48769,112 @@ "format": "date-time", "title": "Modified At" }, - "reference_dataset_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Reference Dataset Id" + "reference_dataset_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Reference Dataset Id" + }, + "extra": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Extra" + } + }, + "type": "object", + "required": [ + "experiment_ids" + ], + "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" }, - "extra": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Extra" + "failed": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Failed" } }, "type": "object", "required": [ - "experiment_ids" + "migrated", + "skipped", + "failed" ], - "title": "ComparativeExperimentCreate", - "description": "Create class for ComparativeExperiment." + "title": "CompositeMigrationResult", + "description": "Per-id outcome of a composite migration batch." }, "ConfiguredBy": { "type": "string", @@ -51367,6 +49016,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" @@ -51664,9 +49329,569 @@ "type": "null" } ], - "title": "Cluster Model" + "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": "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" + }, + { + "type": "null" + } + ], + "title": "Run Filter" + }, + "trace_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Trace Filter" + }, + "tree_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tree Filter" + }, + "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": [ + { + "type": "string", + "const": "metadata" + }, + { + "type": "string", + "const": "feedback_label" + } + ], + "title": "Attribute" + }, + "path": { + "type": "string", + "title": "Path" + } + }, + "type": "object", + "required": [ + "attribute", + "path" + ], + "title": "CustomChartGroupByComplex" + }, + "CustomChartGroupByPlain": { + "properties": { + "attribute": { + "anyOf": [ + { + "type": "string", + "const": "name" + }, + { + "type": "string", + "const": "run_type" + }, + { + "type": "string", + "const": "tag" + }, + { + "type": "string", + "const": "project" + }, + { + "type": "string", + "const": "status" + } + ], + "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" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + } + }, + "type": "object", + "title": "CustomChartMetricCount" + }, + "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": { + "type": { + "type": "string", + "const": "percentile", + "title": "Type" }, - "summary_model": { + "filter": { "anyOf": [ { "type": "string" @@ -51675,199 +49900,206 @@ "type": "null" } ], - "title": "Summary Model" + "title": "Filter" }, - "is_scheduled": { - "type": "boolean", - "title": "Is Scheduled", - "default": false + "field": { + "$ref": "#/components/schemas/CustomChartMetricField" }, - "validate_model_secrets": { - "type": "boolean", - "title": "Validate Model Secrets", - "default": true + "params": { + "$ref": "#/components/schemas/CustomChartMetricPercentileParams" } }, "type": "object", - "title": "CreateRunClusteringJobRequest", - "description": "Request to create a run clustering job." + "required": [ + "type", + "field", + "params" + ], + "title": "CustomChartMetricPercentile" }, - "CreateRunClusteringJobResponse": { + "CustomChartMetricPercentileParams": { "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "name": { + "p": { + "type": "number", + "maximum": 1.0, + "minimum": 0.0, + "title": "P" + } + }, + "type": "object", + "required": [ + "p" + ], + "title": "CustomChartMetricPercentileParams" + }, + "CustomChartMetricRatio-Input": { + "properties": { + "type": { "type": "string", - "title": "Name" + "const": "ratio", + "title": "Type" }, - "status": { - "type": "string", - "title": "Status" + "numerator": { + "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" + } + ], + "title": "Numerator" }, - "error": { + "denominator": { "anyOf": [ { - "type": "string" + "$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": "Error" + "title": "Denominator" } }, "type": "object", "required": [ - "id", - "name", - "status" + "type", + "numerator", + "denominator" ], - "title": "CreateRunClusteringJobResponse", - "description": "Response to creating a run clustering job." + "title": "CustomChartMetricRatio" }, - "CustomChartCreate": { + "CustomChartMetricRatio-Output": { "properties": { - "title": { + "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" - } - ], - "title": "Index" - }, - "chart_type": { - "$ref": "#/components/schemas/CustomChartType" - }, - "series": { - "items": { - "$ref": "#/components/schemas/CustomChartSeriesCreate" - }, - "type": "array", - "title": "Series" - }, - "section_id": { - "anyOf": [ + "$ref": "#/components/schemas/CustomChartMetricScalar" + }, { - "type": "string", - "format": "uuid" + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricPercentile" }, { - "type": "null" + "$ref": "#/components/schemas/CustomChartMetricPercentile" } ], - "title": "Section Id" + "title": "Numerator" }, - "metadata": { + "denominator": { "anyOf": [ { - "additionalProperties": true, - "type": "object" + "$ref": "#/components/schemas/CustomChartFeedbackCountMetric" }, { - "type": "null" - } - ], - "title": "Metadata" - }, - "common_filters": { - "anyOf": [ + "$ref": "#/components/schemas/CustomChartMetricCount" + }, { - "$ref": "#/components/schemas/CustomChartSeriesFilters" + "$ref": "#/components/schemas/CustomChartFeedbackScoreMetricScalar" }, { - "type": "null" + "$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": { @@ -51912,7 +50144,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", @@ -51935,7 +50176,7 @@ "anyOf": [ { "items": { - "$ref": "#/components/schemas/CustomChartSeries" + "$ref": "#/components/schemas/CustomChartSeries-Output" }, "type": "array" }, @@ -51957,12 +50198,24 @@ ], "title": "CustomChartResponse" }, - "CustomChartSeries": { + "CustomChartSeries-Input": { "properties": { "name": { "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -51974,7 +50227,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": [ @@ -51999,6 +50269,138 @@ ], "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": [ + { + "$ref": "#/components/schemas/CustomChartSeriesFilters" + }, + { + "type": "null" + } + ] + }, + "metric": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomChartMetric" + }, + { + "type": "null" + } + ] + }, "project_metric": { "anyOf": [ { @@ -52009,6 +50411,93 @@ } ] }, + "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-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": [ { @@ -52035,7 +50524,6 @@ "type": "object", "required": [ "name", - "metric", "id" ], "title": "CustomChartSeries" @@ -52046,6 +50534,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -52057,7 +50557,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": [ @@ -52082,15 +50599,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": [ @@ -52105,8 +50676,7 @@ }, "type": "object", "required": [ - "name", - "metric" + "name" ], "title": "CustomChartSeriesCreate" }, @@ -52170,6 +50740,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -52181,7 +50763,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": [ @@ -52206,15 +50805,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": [ @@ -52241,16 +50894,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." @@ -52384,6 +51112,20 @@ "default": { "__missing__": "__missing__" } + }, + "markdown": { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Missing" + } + ], + "title": "Markdown", + "default": { + "__missing__": "__missing__" + } } }, "type": "object", @@ -52630,7 +51372,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" @@ -52648,6 +51409,16 @@ } ], "title": "Sub Sections" + }, + "layout": { + "anyOf": [ + { + "$ref": "#/components/schemas/DashboardLayout-Output" + }, + { + "type": "null" + } + ] } }, "type": "object", @@ -52873,6 +51644,23 @@ "default": { "__missing__": "__missing__" } + }, + "layout": { + "anyOf": [ + { + "$ref": "#/components/schemas/DashboardLayout-Input" + }, + { + "$ref": "#/components/schemas/Missing" + }, + { + "type": "null" + } + ], + "title": "Layout", + "default": { + "__missing__": "__missing__" + } } }, "type": "object", @@ -52908,24 +51696,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", - "title": "Customer Name" + "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" } }, "type": "object", "required": [ - "customer_id", - "customer_name" + "id", + "chart_type", + "markdown", + "index" + ], + "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": "CustomerInfo", - "description": "Customer info." + "title": "CustomTextBlockResponse" }, "CustomerVisiblePlanInfo": { "properties": { @@ -52958,6 +51868,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": [ @@ -53131,6 +52183,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" @@ -53841,6 +52909,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": { @@ -53926,6 +53039,17 @@ } ], "title": "Model" + }, + "playground_settings_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Model Configuration ID" } }, "type": "object", @@ -53975,6 +53099,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": [ { @@ -54018,6 +53178,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -54072,7 +53243,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54195,7 +53367,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54206,7 +53379,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54256,6 +53430,10 @@ "name", "dataset_id", "source_run_id", + "source_session_id", + "source_run_start_time", + "source_trace_id", + "source_thread_id", "metadata", "inputs", "outputs", @@ -54595,6 +53773,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": [ { @@ -54638,6 +53852,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -54808,6 +54033,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" @@ -55384,7 +54625,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": [ @@ -55410,6 +54652,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", @@ -55496,6 +54754,11 @@ ], "title": "Score" }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": true + }, "value": { "anyOf": [ { @@ -56303,6 +55566,17 @@ ], "title": "Tree Filter String" }, + "thread_filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Thread Filter String" + }, "display_name": { "type": "string", "title": "Display Name" @@ -56322,6 +55596,11 @@ "$ref": "#/components/schemas/FilterViewType", "default": "runs" }, + "syntax_version": { + "type": "integer", + "title": "Syntax Version", + "default": 1 + }, "start_time": { "anyOf": [ { @@ -56429,6 +55708,17 @@ ], "title": "Tree Filter String" }, + "thread_filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Thread Filter String" + }, "display_name": { "type": "string", "title": "Display Name" @@ -56448,6 +55738,15 @@ "$ref": "#/components/schemas/FilterViewType", "default": "runs" }, + "syntax_version": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "title": "Syntax Version", + "default": 1 + }, "start_time": { "anyOf": [ { @@ -56580,6 +55879,17 @@ ], "title": "Tree Filter String" }, + "thread_filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Thread Filter String" + }, "type": { "anyOf": [ { @@ -56590,6 +55900,21 @@ } ] }, + "syntax_version": { + "anyOf": [ + { + "type": "integer", + "enum": [ + 1, + 2 + ] + }, + { + "type": "null" + } + ], + "title": "Syntax Version" + }, "start_time": { "anyOf": [ { @@ -56631,6 +55956,22 @@ }, "ForkRepoRequest": { "properties": { + "tag_value_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "maxItems": 100 + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" + }, "repo_handle": { "type": "string", "title": "Repo Handle" @@ -57251,6 +56592,16 @@ } ], "title": "Workspace Name" + }, + "trace_tier": { + "anyOf": [ + { + "$ref": "#/components/schemas/TraceTier" + }, + { + "type": "null" + } + ] } }, "type": "object", @@ -57263,11 +56614,21 @@ "user", "api_key", "project", - "workspace" + "workspace", + "trace_tier" ], "title": "GranularUsageGroupBy", "description": "Dimensions for grouping granular usage data." }, + "GranularUsageKind": { + "type": "string", + "enum": [ + "traces", + "langsmith_deployments" + ], + "title": "GranularUsageKind", + "description": "Which billable usage domain a granular-usage query targets.\n\n- `traces`: trace counts.\n- `langsmith_deployments`: LangSmith Deployment metrics (nodes executed,\n agent runs, agent uptime).\n\nDefault is `traces` for backward compatibility — existing callers of\n`GET /granular-usage` without a `kind` query param get the same\nresponse shape they always did." + }, "GranularUsageRecord": { "properties": { "time_bucket": { @@ -57289,6 +56650,21 @@ "type": "integer", "title": "Traces", "default": 0 + }, + "nodes_executed": { + "type": "integer", + "title": "Nodes Executed", + "default": 0 + }, + "agent_runs": { + "type": "integer", + "title": "Agent Runs", + "default": 0 + }, + "agent_uptime_seconds": { + "type": "integer", + "title": "Agent Uptime Seconds", + "default": 0 } }, "type": "object", @@ -57296,7 +56672,7 @@ "dimensions" ], "title": "GranularUsageRecord", - "description": "A single granular usage data point." + "description": "A single granular usage data point.\n\nCarries both trace and LangSmith Deployment metric fields; the\n`kind` query param on `GET /granular-usage` picks which metric domain\nthe row's values come from. Fields for the unselected domain are\nalways `0`. Backwards-compat: callers that only read `traces` (the\npre-existing field) keep working unchanged." }, "GranularUsageResponse": { "properties": { @@ -57628,7 +57004,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57639,7 +57016,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57650,7 +57028,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57944,7 +57323,8 @@ "lg_run_count", "responses_per_second", "error_responses_per_second", - "p95_latency" + "p95_latency", + "run_queue_wait_time" ], "title": "HostProjectChartMetric", "description": "LGP Metrics you can chart." @@ -58297,69 +57677,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": { @@ -58375,6 +57692,7 @@ "title": "Cache Read" } }, + "additionalProperties": true, "type": "object", "title": "InputTokenDetails", "description": "Breakdown of input token counts.\n\nDoes *not* need to sum to full input token count. Does *not* need to have all keys.\n\nExample:\n ```python\n {\n \"audio\": 10,\n \"cache_creation\": 200,\n \"cache_read\": 100,\n }\n ```\n\nMay also hold extra provider-specific keys.\n\n!!! version-added \"Added in `langchain-core` 0.3.9\"" @@ -58516,6 +57834,7 @@ "title": "Extras" } }, + "additionalProperties": true, "type": "object", "required": [ "type", @@ -58590,6 +57909,22 @@ ], "title": "LikeRepoResponse" }, + "ListAuditLogOperationsResponse": { + "properties": { + "operations": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Operations" + } + }, + "type": "object", + "required": [ + "operations" + ], + "title": "ListAuditLogOperationsResponse" + }, "ListAuditLogsOCSFResponse": { "properties": { "cursor": { @@ -59112,7 +58447,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Prompt Cost" @@ -59123,7 +58459,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Completion Cost" @@ -59137,7 +58474,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59158,7 +58496,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59192,6 +58531,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": { @@ -59234,7 +58688,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Prompt Cost" @@ -59245,7 +58700,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Completion Cost" @@ -59259,7 +58715,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59280,7 +58737,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59992,6 +59450,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -60019,6 +59488,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -60091,17 +59571,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -60317,6 +59786,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", @@ -60486,9 +59960,26 @@ "title": "Plan Tier" }, "engine_default_enabled": { - "type": "boolean", - "title": "Engine Default Enabled", - "default": false + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Engine Default Enabled" + }, + "engine_lcu_spend_limit_monthly": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Engine Lcu Spend Limit Monthly" }, "max_identities": { "type": "integer", @@ -60500,6 +59991,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", @@ -60578,6 +60080,11 @@ "title": "Sandbox Enabled", "default": false }, + "sandbox_restricted_egress": { + "type": "boolean", + "title": "Sandbox Restricted Egress", + "default": false + }, "max_sandboxes": { "type": "integer", "title": "Max Sandboxes", @@ -60633,6 +60140,11 @@ "title": "Byoc Enabled", "default": false }, + "byoc_max_data_planes": { + "type": "integer", + "title": "Byoc Max Data Planes", + "default": 5 + }, "enable_langgraph_pricing": { "type": "boolean", "title": "Enable Langgraph Pricing", @@ -60643,11 +60155,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", @@ -60750,11 +60257,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", @@ -60795,6 +60297,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", @@ -60808,7 +60347,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", @@ -60830,15 +60370,36 @@ "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": 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": { @@ -60945,6 +60506,18 @@ ], "title": "Engine Enabled" }, + "engine_lcu_spend_limit_monthly": { + "anyOf": [ + { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" + }, + { + "type": "null" + } + ], + "title": "Engine Lcu Spend Limit Monthly" + }, "is_personal": { "type": "boolean", "title": "Is Personal" @@ -61023,6 +60596,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", @@ -61121,6 +60699,13 @@ "title": "Ip Allowlist Enabled", "default": false }, + "disabled_model_providers": { + "items": { + "type": "string" + }, + "type": "array", + "title": "Disabled Model Providers" + }, "restrict_browser_secrets": { "anyOf": [ { @@ -61146,12 +60731,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" @@ -61160,7 +60751,7 @@ "type": "null" } ], - "title": "Engine Trial Modal Seen At" + "title": "Managed Eval Terms Accepted At" } }, "type": "object", @@ -61320,6 +60911,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", @@ -61410,6 +61012,20 @@ ], "title": "Ip Allowlist" }, + "disabled_model_providers": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Disabled Model Providers" + }, "restrict_browser_secrets": { "anyOf": [ { @@ -61445,6 +61061,29 @@ } ], "title": "Engine Enabled" + }, + "engine_lcu_spend_limit_monthly": { + "anyOf": [ + { + "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", @@ -61618,6 +61257,20 @@ ], "title": "Ip Allowlist" }, + "disabled_model_providers": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Disabled Model Providers" + }, "restrict_browser_secrets": { "anyOf": [ { @@ -61629,6 +61282,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": [ { @@ -61653,6 +61317,21 @@ } ], "title": "Engine Enabled" + }, + "engine_lcu_spend_limit_monthly": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" + }, + { + "type": "null" + } + ], + "title": "Engine Lcu Spend Limit Monthly" } }, "type": "object", @@ -61670,6 +61349,7 @@ "title": "Reasoning" } }, + "additionalProperties": true, "type": "object", "title": "OutputTokenDetails", "description": "Breakdown of output token counts.\n\nDoes *not* need to sum to full output token count. Does *not* need to have all keys.\n\nExample:\n ```python\n {\n \"audio\": 10,\n \"reasoning\": 200,\n }\n ```\n\nMay also hold extra provider-specific keys.\n\n!!! version-added \"Added in `langchain-core` 0.3.9\"" @@ -61691,15 +61371,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" ], @@ -61729,6 +61413,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61756,6 +61451,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61828,17 +61534,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -61895,6 +61590,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61922,6 +61628,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61951,6 +61668,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": { @@ -62139,417 +61885,6 @@ ], "title": "PlaygroundPromptCanvasPayload" }, - "PlaygroundRunOverDatasetBatchRequestSchema": { - "properties": { - "manifest": { - "title": "Manifest" - }, - "secrets": { - "additionalProperties": { - "type": "string" - }, - "type": "object", - "title": "Secrets" - }, - "run_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Run Id" - }, - "repo_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Repo Id" - }, - "tools": { - "anyOf": [ - { - "items": {}, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Tools" - }, - "tool_choice": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Tool Choice" - }, - "parallel_tool_calls": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Parallel Tool Calls" - }, - "options": { - "$ref": "#/components/schemas/RunnableConfig" - }, - "project_name": { - "type": "string", - "title": "Project Name" - }, - "repo_handle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Repo Handle" - }, - "owner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Owner" - }, - "commit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Commit" - }, - "evaluator_rules": { - "anyOf": [ - { - "items": { - "type": "string", - "format": "uuid" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Evaluator Rules" - }, - "requests_per_second": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Requests Per Second" - }, - "use_or_fallback_to_workspace_secrets": { - "type": "boolean", - "title": "Use Or Fallback To Workspace Secrets", - "default": false - }, - "runner_context": { - "anyOf": [ - { - "$ref": "#/components/schemas/RunnerContextEnum" - }, - { - "type": "null" - } - ], - "default": "langsmith_ui" - }, - "dataset_id": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - }, - "dataset_splits": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Dataset Splits" - }, - "repetitions": { - "type": "integer", - "maximum": 30.0, - "minimum": 1.0, - "title": "Repetitions", - "default": 1 - }, - "metadata": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Metadata" - }, - "batch_size": { - "anyOf": [ - { - "type": "integer", - "maximum": 100.0, - "minimum": 1.0 - }, - { - "type": "null" - } - ], - "title": "Batch Size" - } - }, - "type": "object", - "required": [ - "manifest", - "secrets", - "options", - "project_name", - "dataset_id" - ], - "title": "PlaygroundRunOverDatasetBatchRequestSchema" - }, - "PlaygroundRunOverDatasetRequestSchema": { - "properties": { - "manifest": { - "title": "Manifest" - }, - "secrets": { - "additionalProperties": { - "type": "string" - }, - "type": "object", - "title": "Secrets" - }, - "run_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Run Id" - }, - "repo_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Repo Id" - }, - "tools": { - "anyOf": [ - { - "items": {}, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Tools" - }, - "tool_choice": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Tool Choice" - }, - "parallel_tool_calls": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Parallel Tool Calls" - }, - "options": { - "$ref": "#/components/schemas/RunnableConfig" - }, - "project_name": { - "type": "string", - "title": "Project Name" - }, - "repo_handle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Repo Handle" - }, - "owner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Owner" - }, - "commit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Commit" - }, - "evaluator_rules": { - "anyOf": [ - { - "items": { - "type": "string", - "format": "uuid" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Evaluator Rules" - }, - "requests_per_second": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Requests Per Second" - }, - "use_or_fallback_to_workspace_secrets": { - "type": "boolean", - "title": "Use Or Fallback To Workspace Secrets", - "default": false - }, - "runner_context": { - "anyOf": [ - { - "$ref": "#/components/schemas/RunnerContextEnum" - }, - { - "type": "null" - } - ], - "default": "langsmith_ui" - }, - "dataset_id": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - }, - "dataset_splits": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Dataset Splits" - }, - "repetitions": { - "type": "integer", - "maximum": 30.0, - "minimum": 1.0, - "title": "Repetitions", - "default": 1 - }, - "metadata": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Metadata" - } - }, - "type": "object", - "required": [ - "manifest", - "secrets", - "options", - "project_name", - "dataset_id" - ], - "title": "PlaygroundRunOverDatasetRequestSchema" - }, "PlaygroundSavedOptions": { "properties": { "requests_per_second": { @@ -62615,6 +61950,15 @@ "title": "Settings Type", "default": "complex" }, + "scope": { + "type": "string", + "enum": [ + "workspace", + "organization" + ], + "title": "Scope", + "default": "workspace" + }, "oauth_enabled": { "anyOf": [ { @@ -62748,6 +62092,18 @@ ], "title": "Name" }, + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" + }, "created_at": { "type": "string", "format": "date-time", @@ -62819,7 +62175,7 @@ }, "available_in_polly": { "type": "boolean", - "title": "Available In Chat", + "title": "Available In Polly", "default": false }, "available_in_insights_heavy": { @@ -63023,7 +62379,7 @@ "type": "null" } ], - "title": "Available In Chat" + "title": "Available In Polly" }, "available_in_insights_heavy": { "anyOf": [ @@ -63183,6 +62539,11 @@ }, "type": "array", "title": "Session Ids" + }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": false } }, "type": "object", @@ -64165,6 +63526,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", @@ -64285,6 +63668,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": [ { @@ -64328,6 +63747,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -64726,6 +64156,7 @@ "format": "uuid" }, "type": "array", + "maxItems": 10, "minItems": 1, "title": "Session Ids" }, @@ -64737,6 +64168,7 @@ }, "limit": { "type": "integer", + "maximum": 20.0, "minimum": 1.0, "title": "Limit", "default": 10 @@ -65301,6 +64733,20 @@ "type": "null" } ] + }, + "owners": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/RepoOwner" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Owners" } }, "type": "object", @@ -65396,6 +64842,7 @@ "ResourceType": { "type": "string", "enum": [ + "agent", "dashboard", "dataset", "deployment", @@ -65406,7 +64853,9 @@ "project", "prompt", "queue", - "sandbox" + "sandbox", + "skill", + "snapshot_name" ], "title": "ResourceType" }, @@ -65481,6 +64930,11 @@ "type": "null" } ] + }, + "is_restricted": { + "type": "boolean", + "title": "Is Restricted", + "default": false } }, "type": "object", @@ -65493,6 +64947,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": { @@ -65582,6 +65049,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", @@ -66676,7 +66155,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66687,7 +66167,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66698,7 +66179,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66710,7 +66192,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66724,7 +66207,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -67166,7 +66650,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -67177,7 +66662,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -67188,7 +66674,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -67200,7 +66687,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -67214,7 +66702,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -67284,7 +66773,8 @@ "exclusiveMinimum": 0.0 }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Limit Usd" @@ -67304,6 +66794,7 @@ "properties": { "limit_usd": { "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Limit Usd" }, "window": { @@ -67437,6 +66928,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", @@ -67499,6 +67033,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -67859,6 +67400,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "alerts": { "anyOf": [ { @@ -67892,6 +67440,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", @@ -67997,6 +67599,17 @@ ], "title": "Evaluator Id" }, + "evaluator_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluator Name" + }, "alignment_annotation_queue_id": { "anyOf": [ { @@ -68173,6 +67786,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", @@ -68235,6 +67903,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -68431,6 +68106,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", @@ -68493,6 +68211,13 @@ ], "title": "Code Evaluators" }, + "trajectory_evaluators": { + "items": { + "$ref": "#/components/schemas/EvaluatorTopLevel" + }, + "type": "array", + "title": "Trajectory Evaluators" + }, "evaluator_id": { "anyOf": [ { @@ -68635,6 +68360,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", @@ -68643,7 +68384,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": { @@ -69046,7 +68787,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69057,7 +68799,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69068,7 +68811,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69080,7 +68824,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69094,7 +68839,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69572,10 +69318,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" @@ -69586,7 +69345,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69597,7 +69357,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69634,13 +69395,6 @@ } ], "title": "App Path" - }, - "feedbacks": { - "items": { - "$ref": "#/components/schemas/FeedbackSchema" - }, - "type": "array", - "title": "Feedbacks" } }, "type": "object", @@ -70029,7 +69783,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -70040,7 +69795,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -70051,7 +69807,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -70063,7 +69820,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -70077,7 +69835,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -70392,6 +70151,11 @@ "format": "uuid", "title": "Run Id" }, + "shared_trace_id": { + "type": "string", + "format": "uuid", + "title": "Shared Trace Id" + }, "share_token": { "type": "string", "format": "uuid", @@ -70401,6 +70165,7 @@ "type": "object", "required": [ "run_id", + "shared_trace_id", "share_token" ], "title": "RunShareSchema" @@ -70843,7 +70608,294 @@ "type": "null" } ], - "title": "Trace" + "title": "Trace", + "description": "Filter runs by trace ID. When set, limit and cursor-based pagination are not applied — all runs in the trace are returned in a single response." + }, + "parent_run": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Parent Run" + }, + "run_type": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunTypeEnum" + }, + { + "type": "null" + } + ] + }, + "session": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "minItems": 1, + "title": "Session" + }, + "reference_example": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Reference Example" + }, + "execution_order": { + "anyOf": [ + { + "type": "integer", + "maximum": 1.0, + "minimum": 1.0 + }, + { + "type": "null" + } + ], + "title": "Execution Order" + }, + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" + }, + "end_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "End Time" + }, + "error": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Error" + }, + "query": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Query" + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Filter" + }, + "trace_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Trace Filter" + }, + "tree_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tree Filter" + }, + "is_root": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Root" + }, + "data_source_type": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunsFilterDataSourceTypeEnum" + }, + { + "type": "null" + } + ] + }, + "skip_pagination": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Skip Pagination" + }, + "search_filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Search Filter" + }, + "use_experimental_search": { + "type": "boolean", + "title": "Use Experimental Search", + "default": false + }, + "group_by": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunStatsGroupBy" + }, + { + "type": "null" + } + ] + }, + "groups": { + "anyOf": [ + { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Groups" + }, + "select": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/RunStatsSelect" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Select" + }, + "reference_dataset_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Reference Dataset Id" + }, + "include_details": { + "type": "boolean", + "title": "Include Details", + "default": false + } + }, + "type": "object", + "required": [ + "session" + ], + "title": "RunStatsQueryParams", + "description": "Query params for run stats." + }, + "RunStatsQueryParamsPublic": { + "properties": { + "id": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Id" + }, + "trace": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Trace", + "description": "Filter runs by trace ID. When set, limit and cursor-based pagination are not applied — all runs in the trace are returned in a single response." }, "parent_run": { "anyOf": [ @@ -71081,11 +71133,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", @@ -71119,6 +71188,7 @@ "session_feedback_stats", "all_run_stats", "all_token_stats", + "group_count", "prompt_token_details", "completion_token_details", "prompt_cost_details", @@ -71141,82 +71211,6 @@ "title": "RunTypeEnum", "description": "Enum for run types." }, - "RunnableConfig": { - "properties": { - "tags": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Tags" - }, - "metadata": { - "additionalProperties": true, - "type": "object", - "title": "Metadata" - }, - "callbacks": { - "anyOf": [ - { - "items": {}, - "type": "array" - }, - {}, - { - "type": "null" - } - ], - "title": "Callbacks" - }, - "run_name": { - "type": "string", - "title": "Run Name" - }, - "max_concurrency": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Max Concurrency" - }, - "recursion_limit": { - "type": "integer", - "title": "Recursion Limit" - }, - "configurable": { - "additionalProperties": true, - "type": "object", - "title": "Configurable" - }, - "run_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Run Id" - } - }, - "type": "object", - "title": "RunnableConfig", - "description": "Configuration for a `Runnable`.\n\n!!! note Custom values\n\n The `TypedDict` has `total=False` set intentionally to:\n\n - Allow partial configs to be created and merged together via `merge_configs`\n - Support config propagation from parent to child runnables via\n `var_child_runnable_config` (a `ContextVar` that automatically passes\n config down the call stack without explicit parameter passing), where\n configs are merged rather than replaced\n\n !!! example\n\n ```python\n # Parent sets tags\n chain.invoke(input, config={\"tags\": [\"parent\"]})\n # Child automatically inherits and can add:\n # ensure_config({\"tags\": [\"child\"]}) -> {\"tags\": [\"parent\", \"child\"]}\n ```" - }, - "RunnerContextEnum": { - "type": "string", - "enum": [ - "langsmith_ui", - "langsmith_align_evals" - ], - "title": "RunnerContextEnum" - }, "RunsFilterDataSourceTypeEnum": { "type": "string", "enum": [ @@ -72115,8 +72109,7 @@ "latency_p50", "latency_p99", "error_rate", - "feedback", - "runs_count" + "feedback" ], "title": "SessionSortableColumns" }, @@ -72154,6 +72147,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": { @@ -72206,11 +72218,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" @@ -72235,23 +72256,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": { @@ -73414,6 +73419,14 @@ }, "TaggingsByResourceType": { "properties": { + "agents": { + "items": { + "$ref": "#/components/schemas/Resource" + }, + "type": "array", + "title": "Agents", + "default": [] + }, "alerts": { "items": { "$ref": "#/components/schemas/Resource" @@ -73501,6 +73514,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", @@ -73869,6 +73898,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": { @@ -73879,13 +73955,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" } } }, @@ -73933,6 +74013,10 @@ "evaluator_count": { "type": "integer", "title": "Evaluator Count" + }, + "custom_app_count": { + "type": "integer", + "title": "Custom App Count" } }, "type": "object", @@ -73944,7 +74028,8 @@ "annotation_queue_count", "deployment_count", "dashboards_count", - "evaluator_count" + "evaluator_count", + "custom_app_count" ], "title": "TenantStats", "description": "Stats for a tenant." @@ -74082,6 +74167,7 @@ "title": "Type" } }, + "additionalProperties": true, "type": "object", "required": [ "name", @@ -74143,6 +74229,7 @@ "title": "Type" } }, + "additionalProperties": true, "type": "object", "required": [ "name", @@ -74513,7 +74600,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74524,7 +74612,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74535,7 +74624,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74665,6 +74755,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", @@ -75294,10 +75400,38 @@ "type": "integer", "title": "Limit Value" }, - "id": { - "type": "string", - "format": "uuid", - "title": "Id" + "id": { + "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", @@ -75322,6 +75456,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", @@ -75349,6 +75511,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": [ @@ -75379,6 +75551,7 @@ "$ref": "#/components/schemas/OutputTokenDetails" } }, + "additionalProperties": true, "type": "object", "required": [ "input_tokens", @@ -75566,916 +75739,379 @@ "type": "array", "title": "Location" }, - "msg": { - "type": "string", - "title": "Message" - }, - "type": { - "type": "string", - "title": "Error Type" - } - }, - "type": "object", - "required": [ - "loc", - "msg", - "type" - ], - "title": "ValidationError" - }, - "WorkspaceCreate": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "display_name": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9\\-_ '@()]+$", - "title": "Display Name" - }, - "tenant_handle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Tenant Handle" - } - }, - "type": "object", - "required": [ - "display_name" - ], - "title": "WorkspaceCreate", - "description": "Creation model for the workspace." - }, - "WorkspacePatch": { - "properties": { - "display_name": { - "type": "string", - "minLength": 1, - "pattern": "^[a-zA-Z0-9\\-_ '@()]+$", - "title": "Display Name" - } - }, - "type": "object", - "required": [ - "display_name" - ], - "title": "WorkspacePatch", - "description": "Patch model for the workspace." - }, - "_SSOEmailLookupRequest": { - "properties": { - "email": { - "type": "string", - "title": "Email" - } - }, - "type": "object", - "required": [ - "email" - ], - "title": "_SSOEmailLookupRequest" - }, - "app__hub__crud__tenants__Tenant": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "display_name": { - "type": "string", - "title": "Display Name" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" - }, - "tenant_handle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Tenant Handle" - } - }, - "type": "object", - "required": [ - "id", - "display_name", - "created_at" - ], - "title": "Tenant" - }, - "app__schemas__Tenant": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "organization_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Organization Id" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" - }, - "display_name": { - "type": "string", - "title": "Display Name" - }, - "is_personal": { - "type": "boolean", - "title": "Is Personal" - }, - "is_deleted": { - "type": "boolean", - "title": "Is Deleted" - }, - "tenant_handle": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Tenant Handle" - }, - "data_plane_url": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Data Plane Url" - } - }, - "type": "object", - "required": [ - "id", - "created_at", - "display_name", - "is_personal", - "is_deleted" - ], - "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": { - "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" - }, - "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.", - "type": "string" - }, - "is_owner": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string", - "format": "uuid" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - }, - "revision": { - "type": "string" - }, - "runtime": { - "$ref": "#/components/schemas/agents.AgentRuntime" - }, - "skills": { - "description": "Skills parsed from `skills//SKILL.md` and supporting files.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.SkillSpec" - } - }, - "subagents": { - "description": "Subagents parsed from `subagents//AGENTS.md` + `subagents//tools.json`.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.SubagentSpec" - } - }, - "system_prompt": { - "description": "Agent system prompt parsed from `AGENTS.md`.", - "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": { - "description": "Sandbox configuration. Applies when `type` is a scoped sandbox backend.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.SandboxConfig" - } - ] - }, - "type": { - "description": "Execution backend type. Use a scoped sandbox backend for sandbox-backed agents.", - "type": "string", - "enum": [ - "default", - "thread_scoped_sandbox", - "agent_scoped_sandbox" - ], - "example": "thread_scoped_sandbox" - } - } - }, - "agents.AgentModelConfig": { - "type": "object", - "properties": { - "model_id": { - "description": "Model ID used to run the agent.", - "type": "string", - "example": "claude-sonnet-4-6" - } - } - }, - "agents.AgentPermissions": { - "type": "object", - "properties": { - "identity": { - "type": "string", - "enum": [ - "personal", - "shared" - ] - }, - "shared_users": { - "$ref": "#/components/schemas/agents.SharedUsers" - }, - "tenant_access_level": { - "type": "string", - "enum": [ - "read", - "run", - "write" - ] - }, - "visibility": { - "type": "string", - "enum": [ - "tenant", - "user" - ] - } - } - }, - "agents.AgentRuntime": { - "type": "object", - "properties": { - "model": { - "description": "Model configuration for the agent.", - "allOf": [ - { - "$ref": "#/components/schemas/agents.AgentModelConfig" - } - ] - } - } - }, - "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" - }, - "extras": { - "type": "object", - "additionalProperties": {} - }, - "id": { - "type": "string", - "format": "uuid" - }, - "is_owner": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string", - "format": "uuid" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - }, - "runtime": { - "$ref": "#/components/schemas/agents.AgentRuntime" - }, - "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" - }, - "auth_token_id": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "created_by": { - "type": "string" - }, - "expires_at": { - "type": "string" - }, - "id": { - "type": "string" - }, - "provider_account_label": { - "type": "string" - }, - "provider_id": { - "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": {} - }, - "description": { - "type": "string" - }, - "extras": { - "description": "Caller-defined key/value tracking attached to the agent's metadata.", - "type": "object", - "additionalProperties": {} - }, - "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" - } - }, - "instructions": { - "description": "Deprecated: use `system_prompt`. Accepted for backwards compatibility;\n`system_prompt` takes precedence when both are set.", - "type": "string" - }, - "name": { - "type": "string" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - }, - "runtime": { - "$ref": "#/components/schemas/agents.AgentRuntime" - }, - "skills": { - "description": "Skills. Each entry is written to `skills//SKILL.md` and supporting files.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.SkillSpec" - } - }, - "subagents": { - "description": "Subagents. Each entry is written to `subagents//AGENTS.md` and `subagents//tools.json`.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.SubagentSpec" - } - }, - "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": { - "type": "string" - }, - "status": { - "type": "integer" + "msg": { + "type": "string", + "title": "Message" }, "type": { - "type": "string" + "type": "string", + "title": "Error Type" } - } - }, - "agents.FileEntry": { + }, "type": "object", + "required": [ + "loc", + "msg", + "type" + ], + "title": "ValidationError" + }, + "WorkspaceCreate": { "properties": { - "commit_id": { - "description": "Optional pin to a specific skill commit. Defaults to latest.", - "type": "string" - }, - "content": { - "description": "File contents as a UTF-8 string.", + "id": { "type": "string", - "example": "# AGENTS.md\n\nYou are a helpful agent." + "format": "uuid", + "title": "Id" }, - "repo_handle": { - "description": "Workspace skill repo handle. Required when type=skill.", + "display_name": { "type": "string", - "example": "summarizer" + "minLength": 1, + "pattern": "^[a-zA-Z0-9\\-_ '@()]+$", + "title": "Display Name" }, - "type": { - "description": "Entry discriminator. Defaults to \"file\" when omitted.", - "type": "string", - "enum": [ - "file", - "skill" + "tenant_handle": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } ], - "example": "file" + "title": "Tenant Handle" } - } - }, - "agents.HealthResponse": { + }, "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "checked_at": { - "type": "string", - "format": "date-time" - }, - "mcp_check": { - "$ref": "#/components/schemas/agents.MCPCheck" - } - } + "required": [ + "display_name" + ], + "title": "WorkspaceCreate", + "description": "Creation model for the workspace." }, - "agents.ListAgentsResponse": { - "type": "object", + "WorkspaceInviteResult": { "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.AgentSummary" - } + "email": { + "type": "string", + "title": "Email" }, - "next_cursor": { - "type": "string" - } - } - }, - "agents.ListConnectionsResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.Connection" - } - } - } - }, - "agents.MCPCheck": { - "type": "object", - "properties": { - "ok": { - "type": "boolean" + "read_only": { + "type": "boolean", + "title": "Read Only", + "default": false, + "deprecated": true }, - "servers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.MCPServerHealth" - } - } - } - }, - "agents.MCPServerHealth": { - "type": "object", - "properties": { - "error": { - "type": "string" + "role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Role Id" }, - "error_code": { - "$ref": "#/components/schemas/mcptools.MCPErrorCode" + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" }, - "is_default": { - "type": "boolean" + "workspace_ids": { + "anyOf": [ + { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Workspace Ids" }, - "name": { - "type": "string" + "workspace_role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Id" }, - "ok": { - "type": "boolean" + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" }, - "url": { - "type": "string" - } - } - }, - "agents.SandboxConfig": { - "type": "object", - "properties": { - "delete_after_stop_seconds": { - "description": "Time after a sandbox is stopped before it is deleted, in seconds.", - "type": "integer", - "example": 1200 + "password": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Password" }, - "idle_ttl_seconds": { - "description": "Idle timeout after which an unused sandbox is paused, in seconds.", - "type": "integer", - "example": 600 + "full_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Full Name" }, - "policy_ids": { - "description": "Sandbox policies governing tool execution.", - "type": "array", - "items": { - "type": "string" - } + "access_scope": { + "$ref": "#/components/schemas/AccessScope", + "default": "workspace" }, - "snapshot_id": { - "description": "Snapshot used when creating new sandbox-backed computers.", + "id": { "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" - } + "format": "uuid", + "title": "Id" }, - "run": { - "description": "User IDs allowed to run the agent.", - "type": "array", - "items": { - "type": "string" - } + "user_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "User Id" }, - "update": { - "description": "User IDs allowed to update the agent.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "agents.SkillSpec": { - "type": "object", - "properties": { - "description": { - "description": "Short human-readable description shown to the agent.", - "type": "string", - "example": "Summarise text into a paragraph." + "tenant_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Tenant Id" }, - "files": { - "description": "Supporting files keyed by relative path. Each path becomes `skills//`.\nPaths must be relative — no leading `/`, no `..` segments.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" }, - "instructions": { - "description": "Skill body. Written to `skills//SKILL.md`.", + "created_at": { "type": "string", - "example": "# Summarize\n\nGiven a text, produce a one-paragraph summary." + "format": "date-time", + "title": "Created At" }, - "name": { - "description": "Skill slug. Becomes `skills//SKILL.md`.", - "type": "string", - "example": "summarize" + "org_role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Org Role Id" }, - "type": { - "description": "Skill discriminator. Only `inline` is supported today.", - "type": "string", - "enum": [ - "inline" + "org_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Org Role Name" + }, + "ls_user_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } ], - "example": "inline" + "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." }, - "agents.SubagentSpec": { + "WorkspacePatch": { + "properties": { + "display_name": { + "type": "string", + "minLength": 1, + "pattern": "^[a-zA-Z0-9\\-_ '@()]+$", + "title": "Display Name" + } + }, "type": "object", + "required": [ + "display_name" + ], + "title": "WorkspacePatch", + "description": "Patch model for the workspace." + }, + "_SSOEmailLookupRequest": { "properties": { - "description": { - "description": "Short human-readable description.", + "email": { "type": "string", - "example": "Researches a topic and summarises findings." - }, - "instructions": { - "description": "Subagent system prompt. Written to `subagents//AGENTS.md`.", + "title": "Email" + } + }, + "type": "object", + "required": [ + "email" + ], + "title": "_SSOEmailLookupRequest" + }, + "app__hub__crud__tenants__Tenant": { + "properties": { + "id": { "type": "string", - "example": "You are a research assistant. Use the available tools to gather information." + "format": "uuid", + "title": "Id" }, - "model_id": { - "description": "Model ID for this subagent. Inherits the parent runtime when empty.", + "display_name": { "type": "string", - "example": "claude-sonnet-4-6" + "title": "Display Name" }, - "name": { - "description": "Subagent slug. Becomes `subagents//AGENTS.md`.", + "created_at": { "type": "string", - "example": "researcher" + "format": "date-time", + "title": "Created At" }, - "tools": { - "description": "Subagent tool config. Written to `subagents//tools.json`.", - "allOf": [ + "tenant_handle": { + "anyOf": [ + { + "type": "string" + }, { - "$ref": "#/components/schemas/agents.ToolsConfig" + "type": "null" } - ] + ], + "title": "Tenant Handle" } - } - }, - "agents.ToolSpec": { + }, "type": "object", + "required": [ + "id", + "display_name", + "created_at" + ], + "title": "Tenant" + }, + "app__schemas__Tenant": { "properties": { - "display_name": { - "description": "Display name for the tool. Defaults to the tool name when empty.", + "id": { "type": "string", - "example": "read_url_content" + "format": "uuid", + "title": "Id" }, - "mcp_server_name": { - "description": "Display name for the MCP server. Defaults to the URL when empty.", - "type": "string", - "example": "Fleet" + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" }, - "mcp_server_url": { - "description": "URL of the MCP server hosting this tool.", + "created_at": { "type": "string", - "example": "https://tools.example.com" + "format": "date-time", + "title": "Created At" }, - "name": { - "description": "Tool name as exposed by the MCP server.", + "display_name": { "type": "string", - "example": "read_url_content" - } - } - }, - "agents.ToolsConfig": { - "type": "object", - "properties": { - "interrupt_config": { - "description": "Per-tool interrupt rules keyed by tool name. Use `{}` for no interrupts.", - "type": "object", - "additionalProperties": {} - }, - "tools": { - "description": "MCP tools available to the agent. Serialised to `tools.json`.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.ToolSpec" - } - } - } - }, - "agents.UpdateAgentRequest": { - "type": "object", - "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": {} - }, - "deleted_paths": { - "description": "Paths to remove from the file tree. Relative paths only.", - "type": "array", - "items": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "extras": { - "description": "Caller-defined key/value tracking attached to the agent's metadata.", - "type": "object", - "additionalProperties": {} - }, - "files": { - "description": "Raw file entries created or replaced by path. Triggers a new commit.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/agents.FileEntry" - } - }, - "instructions": { - "description": "Deprecated: use `system_prompt`. Accepted for backwards compatibility;\n`system_prompt` takes precedence when both are set.", - "type": "string" - }, - "name": { - "type": "string" - }, - "permissions": { - "$ref": "#/components/schemas/agents.AgentPermissions" - }, - "runtime": { - "$ref": "#/components/schemas/agents.AgentRuntime" + "title": "Display Name" }, - "skills": { - "description": "Skills. Each entry is written to `skills//SKILL.md` and supporting files. Triggers a new commit.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.SkillSpec" - } + "is_personal": { + "type": "boolean", + "title": "Is Personal" }, - "subagents": { - "description": "Subagents. Each entry is written to `subagents//AGENTS.md` and `subagents//tools.json`. Triggers a new commit.", - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.SubagentSpec" - } + "is_deleted": { + "type": "boolean", + "title": "Is Deleted" }, - "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." + "tenant_handle": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tenant Handle" }, - "tools": { - "description": "Tool config. Written to `tools.json`. Triggers a new commit.", - "allOf": [ + "data_plane_url": { + "anyOf": [ { - "$ref": "#/components/schemas/agents.ToolsConfig" + "type": "string" + }, + { + "type": "null" } - ] + ], + "title": "Data Plane Url" } - } + }, + "type": "object", + "required": [ + "id", + "created_at", + "display_name", + "is_personal", + "is_deleted" + ], + "title": "Tenant", + "description": "Tenant schema." }, "alerts.AlertAction": { "type": "object", @@ -76501,7 +76137,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] }, "updated_at": { @@ -76530,7 +76167,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] } } @@ -76730,6 +76368,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76757,6 +76396,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76766,6 +76406,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": [ @@ -76785,156 +76448,252 @@ } } }, - "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" + } + } + }, + "annotationqueues.AnnotationQueueReviewStatus": { + "type": "string", + "enum": [ + "viewed", + "completed" + ], + "x-enum-varnames": [ + "AnnotationQueueReviewStatusViewed", + "AnnotationQueueReviewStatusCompleted" + ] + }, + "annotationqueues.CreateAnnotationQueueItemStatusRequest": { + "type": "object", + "properties": { + "override_added_at": { "type": "string" + }, + "status": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueReviewStatus" } } }, - "auth.errorResponse": { + "annotationqueues.CreateAnnotationQueueItemStatusResponse": { "type": "object", "properties": { - "code": { + "is_archived": { + "type": "boolean" + }, + "override_added_at": { "type": "string" }, - "detail": { + "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" + } + } + }, "authn.OrganizationConfig": { "type": "object", "properties": { @@ -76954,6 +76713,10 @@ "description": "Indicates whether this org can provision BYOC data planes.", "type": "boolean" }, + "byoc_max_data_planes": { + "description": "ByocMaxDataPlanes is the maximum number of BYOC data planes this org may have provisioned at once.", + "type": "integer" + }, "can_add_seats": { "description": "CanAddSeats indicates whether this org can invite new users based on their plan.", "type": "boolean" @@ -77002,6 +76765,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" @@ -77010,12 +76777,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": { @@ -77034,14 +76805,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" @@ -77063,17 +76826,41 @@ "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.", "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" @@ -77126,7 +76913,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": { @@ -77145,6 +76932,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" @@ -77169,6 +76960,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" @@ -77189,6 +76984,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" @@ -77394,8 +77193,10 @@ "charts:update", "datasets:create", "datasets:delete", + "datasets:download", "datasets:read", "datasets:share", + "datasets:tag-on-create", "datasets:update", "deployments:create", "deployments:delete", @@ -77405,6 +77206,9 @@ "feedback:delete", "feedback:read", "feedback:update", + "feedback-configs:create", + "feedback-configs:update", + "feedback-configs:delete", "experiments:run", "issues:create", "issues:delete", @@ -77413,31 +77217,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", @@ -77455,7 +77271,9 @@ "fleet:write-admin-config", "organization:pats:create", "organization:read", - "organization:manage" + "organization:manage", + "organization:manage-model-configs", + "organization:manage-model-secrets" ], "x-enum-varnames": [ "AnnotationQueuesCreate", @@ -77468,8 +77286,10 @@ "ChartsUpdate", "DatasetsCreate", "DatasetsDelete", + "DatasetsDownload", "DatasetsRead", "DatasetsShare", + "DatasetsTagOnCreate", "DatasetsUpdate", "DeploymentsCreate", "DeploymentsDelete", @@ -77479,6 +77299,9 @@ "FeedbackDelete", "FeedbackRead", "FeedbackUpdate", + "FeedbackConfigsCreate", + "FeedbackConfigsUpdate", + "FeedbackConfigsDelete", "ExperimentsRun", "IssuesCreate", "IssuesDelete", @@ -77487,31 +77310,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", @@ -77529,33 +77364,42 @@ "FleetWriteAdminConfig", "OrganizationPATsCreate", "OrganizationRead", - "OrganizationManage" + "OrganizationManage", + "OrganizationManageModelConfigs", + "OrganizationManageModelSecrets" ] }, - "backfills.restartBackfillRequest": { + "authz_internal.UpdateAccessPolicyPayload": { "type": "object", "properties": { - "backfill_name": { + "condition_groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/authz_internal.ConditionGroup" + } + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "effect": { + "type": "string" + }, + "name": { "type": "string" } } }, - "beacon.SubmitUsageSnapshotPayload": { + "backfills.restartBackfillRequest": { "type": "object", "properties": { - "from_timestamp": { - "type": "string" - }, - "license_key": { - "type": "string" - }, - "measures": { - "type": "object", - "additionalProperties": { - "type": "integer" - } - }, - "to_timestamp": { + "backfill_name": { "type": "string" } } @@ -77734,88 +77578,73 @@ } } }, - "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.ErrorResponse": { "type": "object", "properties": { - "external_id": { - "description": "ExternalID is the value LangSmith presents as ExternalId when assuming role_arn. Must\nmatch the ExternalId condition in the customer role's trust policy. Required.", - "type": "string" - }, - "name": { - "type": "string" - }, - "region": { + "code": { "type": "string" }, - "role_arn": { + "error": { "type": "string" }, - "vpc_cidr": { - "type": "string" + "missing_permissions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/data_planes.MissingPermission" + } } } }, @@ -77830,6 +77659,20 @@ } } }, + "data_planes.MissingPermission": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "decision": { + "type": "string" + }, + "resource_arn": { + "type": "string" + } + } + }, "data_planes.PublicDataPlane": { "type": "object", "properties": { @@ -77842,6 +77685,9 @@ "id": { "type": "string" }, + "maintenance_window": { + "type": "string" + }, "name": { "type": "string" }, @@ -77896,6 +77742,159 @@ "DataPlaneStatusRevoked" ] }, + "data_planes.UpdateDataPlaneRequest": { + "type": "object", + "properties": { + "maintenance_window": { + "description": "MaintenanceWindow is the two-hour weekly maintenance window in UTC. It cannot be cleared, and null is rejected.", + "type": "string" + } + } + }, + "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" + } + } + }, "directories.CommitInfo": { "type": "object", "properties": { @@ -77928,6 +77927,10 @@ }, "parent_commit": { "type": "string" + }, + "skip_webhooks": { + "description": "SkipWebhooks, when true, suppresses Context Hub commit webhooks for this\ncommit. Deliberately a plain bool, not the any (bool | []string) shape of\nthe prompt-hub CreateCommitReq.SkipWebhooks: Context Hub v1 has no\nper-webhook filtering, so a bool is the correct shape.", + "type": "boolean" } } }, @@ -77946,17 +77949,41 @@ } } }, - "engine_trial.trialResponseRequest": { + "directories.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" }, @@ -78046,6 +78073,10 @@ "commit_hash_or_tag": { "type": "string" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -78084,6 +78115,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": [ @@ -78101,16 +78136,9 @@ "$ref": "#/components/schemas/evaluators.EvaluatorRunRule" } }, - "spend_usd": { - "description": "Sum of LLM-as-judge run rule spend for the requested period (omitted when feature is disabled).", - "type": "number" - }, "tenant_id": { "type": "string" }, - "trace_count": { - "type": "integer" - }, "type": { "$ref": "#/components/schemas/evaluators.EvaluatorType" }, @@ -78146,6 +78174,21 @@ "session_name": { "type": "string" }, + "spend_limit": { + "description": "SpendLimit is the effective spend-cap limit for this rule (nil when unconfigured).", + "allOf": [ + { + "$ref": "#/components/schemas/evaluators.SpendLimit" + } + ] + }, + "spend_usd": { + "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": { + "type": "integer" + }, "use_corrections_dataset": { "type": "boolean" } @@ -78347,6 +78390,10 @@ "num_few_shot_examples": { "type": "integer" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -78570,6 +78617,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" @@ -78577,6 +78625,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" + } } } }, @@ -78639,6 +78694,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" }, @@ -78658,7 +78720,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": { @@ -78678,192 +78740,136 @@ } } }, - "gateway_policies.SubjectMatcher": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - } + "gateway_policies.RateLimitMetric": { + "type": "string", + "enum": [ + "requests", + "tokens" + ], + "x-enum-varnames": [ + "RateLimitMetricRequests", + "RateLimitMetricTokens" + ] }, - "gateway_policies.UpdateGatewayPolicyRequest": { + "gateway_policies.RateLimitUsage": { "type": "object", "properties": { - "action": { - "type": "string", - "example": "block" - }, - "config": { - "type": "object" - }, - "description": { - "type": "string", - "example": "Blocks overspend on the production org" - }, - "enabled": { - "type": "boolean", - "example": true - }, - "name": { - "type": "string", - "example": "monthly-cap" + "metric": { + "description": "Metric is the counted usage dimension: requests or tokens.", + "allOf": [ + { + "$ref": "#/components/schemas/gateway_policies.RateLimitMetric" + } + ] }, - "priority": { - "type": "integer", - "example": 0 + "value": { + "description": "Value is the units consumed so far in the current window.", + "type": "integer" }, - "subject_matchers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/gateway_policies.SubjectMatcher" - } - } - } - }, - "gateway_policies.errorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - }, - "github_app.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - }, - "github_app.InstallLinkResponse": { - "type": "object", - "properties": { - "install_url": { - "type": "string" + "window": { + "description": "Window is the time window the usage is measured over.", + "allOf": [ + { + "$ref": "#/components/schemas/gateway_policies.RateLimitWindow" + } + ] } } }, - "github_app.Installation": { - "type": "object", - "properties": { - "account_login": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "id": { - "type": "string" - }, - "installation_id": { - "type": "string" - }, - "metadata": { - "type": "object" - }, - "organization_id": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "user_id": { - "type": "string" - } - } + "gateway_policies.RateLimitWindow": { + "type": "string", + "enum": [ + "minute", + "hour" + ], + "x-enum-varnames": [ + "RateLimitWindowMinute", + "RateLimitWindowHour" + ] }, - "github_app.Repository": { + "gateway_policies.SearchGatewayPoliciesRequest": { "type": "object", "properties": { - "default_branch": { - "type": "string" - }, - "full_name": { - "type": "string" - }, - "html_url": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "name": { + "policy_type": { "type": "string" }, - "private": { - "type": "boolean" - } - } - }, - "github_app.TokenRequest": { - "type": "object", - "properties": { - "repository": { + "subject_matcher_key": { "type": "string" }, - "type": { - "type": "string" - } - } - }, - "github_app.UpdateUserConnectionRequest": { - "type": "object", - "properties": { - "actor_preference": { - "type": "string" + "subject_matcher_values": { + "type": "array", + "items": { + "type": "string" + } } } }, - "github_app.UserAuthLinkResponse": { + "gateway_policies.SubjectMatcher": { "type": "object", "properties": { - "auth_url": { + "key": { + "type": "string" + }, + "value": { "type": "string" } } }, - "github_app.UserConnectionMetadata": { + "gateway_policies.UpdateGatewayPolicyRequest": { "type": "object", "properties": { - "github_username": { - "type": "string" + "action": { + "type": "string", + "example": "block" + }, + "config": { + "type": "object" + }, + "description": { + "type": "string", + "example": "Blocks overspend on the production org" + }, + "enabled": { + "type": "boolean", + "example": true + }, + "name": { + "type": "string", + "example": "monthly-cap" + }, + "priority": { + "type": "integer", + "example": 0 + }, + "subject_matchers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/gateway_policies.SubjectMatcher" + } } } }, - "github_app.UserConnectionStatus": { + "gateway_policies.errorResponse": { "type": "object", "properties": { - "actor_preference": { - "type": "string" - }, - "is_connected": { - "type": "boolean" - }, - "metadata": { - "$ref": "#/components/schemas/github_app.UserConnectionMetadata" - }, - "type": { + "error": { "type": "string" } } }, - "github_app.UserTokenResponse": { + "httperr.ErrorResponse": { "type": "object", "properties": { - "expires_at": { + "code": { "type": "string" }, - "token": { + "detail": { "type": "string" }, - "token_type": { + "status": { + "type": "integer" + }, + "type": { "type": "string" } } @@ -78934,467 +78940,154 @@ } } }, - "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" - } - }, - "integrations_enabled_by_default": { - "type": "boolean" - } - } - }, - "integrations.AuthMethod": { - "type": "object", - "properties": { - "provider_match": { - "$ref": "#/components/schemas/integrations.ProviderMatch" - }, - "type": { - "$ref": "#/components/schemas/integrations.AuthType" - } - } - }, - "integrations.AuthType": { - "type": "string", - "enum": [ - "oauth2", - "headers", - "api_key", - "none" - ], - "x-enum-varnames": [ - "AuthTypeOAuth2", - "AuthTypeHeaders", - "AuthTypeAPIKey", - "AuthTypeNone" - ] - }, - "integrations.CreateRequest": { + "info.BatchIngestConfig": { "type": "object", - "required": [ - "name", - "url" - ], "properties": { - "category": { - "type": "string" + "scale_down_nempty_trigger": { + "type": "integer" }, - "description": { - "type": "string" + "scale_up_nthreads_limit": { + "type": "integer" }, - "icon_url": { - "type": "string" + "scale_up_qsize_trigger": { + "type": "integer" }, - "name": { - "type": "string" + "size_limit": { + "type": "integer" }, - "source": { - "type": "string" + "size_limit_bytes": { + "type": "integer" }, - "url": { - "type": "string" + "use_multipart_endpoint": { + "type": "boolean" } } }, - "integrations.ErrorResponse": { + "info.CustomerInfo": { "type": "object", "properties": { - "code": { - "type": "string" - }, - "detail": { + "customer_id": { "type": "string" }, - "status": { - "type": "integer" - }, - "type": { + "customer_name": { "type": "string" } } }, - "integrations.Integration": { + "info.InfoGetResponse": { "type": "object", "properties": { - "auth_methods": { - "type": "array", - "items": { - "$ref": "#/components/schemas/integrations.AuthMethod" - } - }, - "category": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" + "batch_ingest_config": { + "$ref": "#/components/schemas/info.BatchIngestConfig" }, - "icon_url": { - "type": "string" + "customer_info": { + "$ref": "#/components/schemas/info.CustomerInfo" }, - "id": { + "git_sha": { "type": "string" }, - "name": { - "type": "string" + "instance_flags": { + "type": "object", + "additionalProperties": {} }, - "source": { + "license_expiration_time": { "type": "string" }, - "transport": { - "$ref": "#/components/schemas/integrations.Transport" + "sdk_versions": { + "$ref": "#/components/schemas/info.SDKVersions" }, - "updated_at": { - "type": "string" - }, - "url": { + "version": { "type": "string" } } }, - "integrations.IntegrationCatalogEntry": { + "info.SDKVersions": { "type": "object", "properties": { - "can_invoke": { - "type": "boolean" - }, - "display_name": { + "max_go_sdk_version": { "type": "string" }, - "id": { + "max_java_sdk_version": { "type": "string" }, - "key": { - "type": "string" - } - } - }, - "integrations.IntegrationOverride": { - "type": "object", - "properties": { - "integration_key": { + "max_js_sdk_version": { "type": "string" }, - "is_enabled": { - "type": "boolean" - } - } - }, - "integrations.IntegrationOverrideUpdate": { - "type": "object", - "properties": { - "integration_key": { + "max_python_sdk_version": { "type": "string" - }, - "is_enabled": { - "type": "boolean" } } }, - "integrations.ListResponse": { + "integrations.AgentBuilderIntegrationsPayload": { "type": "object", "properties": { - "items": { + "integration_catalog": { "type": "array", "items": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/integrations.IntegrationCatalogEntry" } }, - "next_cursor": { - "type": "string" - } - } - }, - "integrations.MatchBy": { - "type": "string", - "enum": [ - "kind", - "id" - ], - "x-enum-varnames": [ - "MatchByKind", - "MatchByID" - ] - }, - "integrations.ProviderMatch": { - "type": "object", - "properties": { - "by": { - "$ref": "#/components/schemas/integrations.MatchBy" - }, - "value": { - "type": "string" - } - } - }, - "integrations.ReplaceAuthMethodsRequest": { - "type": "object", - "properties": { - "auth_methods": { + "integration_overrides": { "type": "array", "items": { - "$ref": "#/components/schemas/integrations.AuthMethod" + "$ref": "#/components/schemas/integrations.IntegrationOverride" } - } - } - }, - "integrations.Transport": { - "type": "string", - "enum": [ - "mcp_http" - ], - "x-enum-varnames": [ - "TransportMCPHTTP" - ] - }, - "integrations.UpdateRequest": { - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "description": { - "type": "string" }, - "enabled": { + "integrations_enabled_by_default": { "type": "boolean" - }, - "icon_url": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "issues_agent_usage.LCUSpendErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - }, - "issues_agent_usage.LCUSpendItem": { - "type": "object", - "properties": { - "lcu_total": { - "type": "string" - }, - "lcu_unpriced_row_count": { - "type": "integer" - }, - "tenant_id": { - "type": "string" - } - } - }, - "issues_agent_usage.LCUSpendResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendItem" - } - }, - "organization_id": { - "type": "string" - }, - "period_end": { - "type": "string" - }, - "period_start": { - "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": { + "integrations.AgentBuilderIntegrationsUpdatePayload": { "type": "object", - "required": [ - "name", - "url" - ], "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" - }, - "external_system_id": { - "type": "string" - }, - "headers": { + "integration_overrides": { "type": "array", "items": { - "type": "object", - "additionalProperties": true + "$ref": "#/components/schemas/integrations.IntegrationOverrideUpdate" } }, - "name": { - "type": "string" - }, - "oauth_mode": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.OAuthMode" - }, - "oauth_provider_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "vendor_id": { - "type": "string" + "integrations_enabled_by_default": { + "type": "boolean" } } }, - "langchain_com_smith_fleet_mcp_servers.McpServer": { + "integrations.IntegrationCatalogEntry": { "type": "object", "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" - }, "can_invoke": { "type": "boolean" }, - "created_at": { - "type": "string" - }, - "external_system_id": { + "display_name": { "type": "string" }, - "headers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, "id": { "type": "string" }, - "mcp_vendor_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "oauth_mode": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.OAuthMode" - }, - "oauth_provider_id": { - "type": "string" - }, - "tenant_id": { - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "url": { - "type": "string" - }, - "vendor_id": { - "type": "string" - } - } - }, - "langchain_com_smith_fleet_mcp_servers.OAuthMode": { - "type": "string", - "enum": [ - "legacy_shared_provider", - "per_user_dynamic_client" - ], - "x-enum-varnames": [ - "OAuthModeLegacySharedProvider", - "OAuthModePerUserDynamicClient" - ] - }, - "langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload": { - "type": "object", - "properties": { - "ls_user_id": { - "description": "Deprecated: user identity is inferred from the authenticated request when available.", - "type": "string" - } - } - }, - "langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse": { - "type": "object", - "properties": { - "oauth_provider_id": { + "key": { "type": "string" } } }, - "langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload": { + "integrations.IntegrationOverride": { "type": "object", "properties": { - "auth_type": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.AuthType" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "oauth_provider_id": { + "integration_key": { "type": "string" }, - "url": { - "type": "string" + "is_enabled": { + "type": "boolean" } } }, - "mcp_servers.McpServerAPIError": { + "integrations.IntegrationOverrideUpdate": { "type": "object", "properties": { - "detail": { + "integration_key": { "type": "string" }, - "error": { - "type": "string" + "is_enabled": { + "type": "boolean" } } }, @@ -79584,215 +79277,81 @@ "name": { "type": "string" }, - "slug": { - "type": "string" - }, - "status": { - "type": "string" - }, - "tool_filter": { - "$ref": "#/components/schemas/mcp_vendors.McpGatewayToolFilter" - }, - "updated_at": { - "type": "string" - } - } - }, - "mcp_vendors.McpGatewayBinding": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "mcp_vendors.McpGatewayToolFilter": { - "type": "object", - "properties": { - "allowed_tools": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "mcp_vendors.McpVendor": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "name": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/mcp_vendors.McpVendorStatus" - }, - "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" - }, - "name": { - "type": "string" - } - } - }, - "mcptools.ErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "detail": { - "type": "string" - }, - "status": { - "type": "integer" - }, - "type": { - "type": "string" - } - } - }, - "mcptools.ListToolsResponse": { - "type": "object", - "properties": { - "cached": { - "type": "boolean" - }, - "fetched_at": { - "type": "string" - }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/mcptools.Tool" - } - } - } - }, - "mcptools.MCPErrorCode": { - "type": "string", - "enum": [ - "auth_failed", - "unreachable", - "invalid_response" - ], - "x-enum-varnames": [ - "MCPErrorCodeAuthFailed", - "MCPErrorCodeUnreachable", - "MCPErrorCodeInvalidResponse" - ] - }, - "mcptools.Tool": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": {} + "slug": { + "type": "string" }, - "description": { + "status": { "type": "string" }, - "inputSchema": { - "type": "object", - "additionalProperties": {} + "tool_filter": { + "$ref": "#/components/schemas/mcp_vendors.McpGatewayToolFilter" }, - "name": { + "updated_at": { "type": "string" } } }, - "models.ErrorResponse": { + "mcp_vendors.McpGatewayBinding": { "type": "object", "properties": { - "code": { - "type": "string" - }, - "detail": { + "id": { "type": "string" }, - "status": { - "type": "integer" - }, "type": { "type": "string" } } }, - "models.FleetModel": { + "mcp_vendors.McpGatewayToolFilter": { "type": "object", "properties": { - "display_name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "is_default": { - "type": "boolean" - }, - "playground_settings_id": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "required_secrets": { + "allowed_tools": { "type": "array", "items": { "type": "string" } - }, - "source": { - "type": "string" } } }, - "models.ListModelsResponse": { + "mcp_vendors.McpVendor": { "type": "object", "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/models.FleetModel" - } + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/mcp_vendors.McpVendorStatus" + }, + "vendor_id": { + "type": "string" } } }, - "nps.SubmitResponseRequest": { + "mcp_vendors.McpVendorStatus": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ], + "x-enum-varnames": [ + "McpVendorStatusEnabled", + "McpVendorStatusDisabled" + ] + }, + "mcp_vendors.VendorTool": { "type": "object", "properties": { - "comment": { + "description": { "type": "string" }, - "score": { - "type": "integer" + "name": { + "type": "string" } } }, @@ -79861,18 +79420,76 @@ } } }, + "oauth.AuthorizedAppView": { + "type": "object", + "properties": { + "authorized_at": { + "type": "string" + }, + "client_id": { + "type": "string" + }, + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "logo_uri": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "oauth.ClientPublicMetadata": { + "type": "object", + "properties": { + "client_id": { + "type": "string" + }, + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "tos_uri": { + "type": "string" + } + } + }, "oauth.ClientRegistrationRequest": { "type": "object", "properties": { "client_name": { "type": "string" }, + "client_uri": { + "type": "string" + }, "grant_types": { "type": "array", "items": { "type": "string" } }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, "redirect_uris": { "type": "array", "items": { @@ -79890,6 +79507,9 @@ }, "token_endpoint_auth_method": { "type": "string" + }, + "tos_uri": { + "type": "string" } } }, @@ -79905,12 +79525,21 @@ "client_name": { "type": "string" }, + "client_uri": { + "type": "string" + }, "grant_types": { "type": "array", "items": { "type": "string" } }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, "redirect_uris": { "type": "array", "items": { @@ -79925,6 +79554,51 @@ }, "token_endpoint_auth_method": { "type": "string" + }, + "tos_uri": { + "type": "string" + } + } + }, + "oauth.CreateOAuthClientRequest": { + "type": "object", + "properties": { + "allowed_scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "client_name": { + "type": "string" + }, + "client_type": { + "description": "\"public\" or \"confidential\"", + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "grant_types": { + "type": "array", + "items": { + "type": "string" + } + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "tos_uri": { + "type": "string" } } }, @@ -79948,6 +79622,152 @@ } } }, + "oauth.OAuthClientCredentialsResponse": { + "type": "object", + "properties": { + "client": { + "$ref": "#/components/schemas/oauth.OAuthClientView" + }, + "client_secret": { + "type": "string" + } + } + }, + "oauth.OAuthClientListResponse": { + "type": "object", + "properties": { + "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" + } + } + }, + "oauth.OIDCProviderMetadata": { + "type": "object", + "properties": { + "authorization_endpoint": { + "type": "string" + }, + "claims_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "code_challenge_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "grant_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "id_token_signing_alg_values_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "issuer": { + "type": "string" + }, + "jwks_uri": { + "type": "string" + }, + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "subject_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint": { + "type": "string" + }, + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "userinfo_endpoint": { + "type": "string" + } + } + }, "oauth.TokenErrorResponse": { "type": "object", "properties": { @@ -79968,6 +79788,9 @@ "expires_in": { "type": "integer" }, + "id_token": { + "type": "string" + }, "refresh_token": { "type": "string" }, @@ -79979,6 +79802,67 @@ } } }, + "oauth.UpdateOAuthClientRequest": { + "type": "object", + "properties": { + "allowed_scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "client_name": { + "type": "string" + }, + "client_uri": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + } + }, + "tos_uri": { + "type": "string" + } + } + }, + "oauth.UserinfoResponse": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "email_verified": { + "type": "boolean" + }, + "ls_org_id": { + "type": "string" + }, + "ls_org_name": { + "type": "string" + }, + "name": { + "type": "string" + }, + "picture": { + "type": "string" + }, + "sub": { + "type": "string" + } + } + }, "orgs.LinkedLoginMethod": { "type": "object", "properties": { @@ -79991,6 +79875,34 @@ } } }, + "orgs.ListOrgsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.Org" + } + }, + "next_cursor": { + "type": "string" + } + } + }, + "orgs.Org": { + "type": "object", + "properties": { + "display_name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "is_personal": { + "type": "boolean" + } + } + }, "orgs.OrgMemberEnriched": { "type": "object", "properties": { @@ -80054,6 +79966,9 @@ "orgs.OrganizationInfo": { "type": "object", "properties": { + "byoc_create_saas_workspace_enabled": { + "type": "boolean" + }, "can_export_usage_backfill": { "type": "boolean" }, @@ -80066,18 +79981,20 @@ "disabled": { "type": "boolean" }, + "disabled_model_providers": { + "type": "array", + "items": { + "type": "string" + } + }, "display_name": { "type": "string" }, "engine_enabled": { "type": "boolean" }, - "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" - }, - "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).", + "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" }, "id": { @@ -80113,6 +80030,14 @@ "llm_auth_proxy_jwt_audience": { "type": "string" }, + "managed_eval_terms_accepted_at": { + "description": "ManagedEvalTermsAcceptedAt is the raw ISO 8601 timestamp string from the\nconfig JSONB of when an org admin accepted the tuned evaluator terms;\nnull if never accepted. Returned verbatim so the value is byte-identical\nto the smith-backend implementation under weighted routing.", + "type": "string" + }, + "managed_evals_enabled": { + "description": "ManagedEvalsEnabled is the org-level consent flag for tuned evaluators\n(evaluators that spend a LangChain-held provider key).", + "type": "boolean" + }, "marketplace_payouts_enabled": { "type": "boolean" }, @@ -80191,18 +80116,74 @@ } } }, + "query.PublicSharedTraceRunsRequestBody": { + "type": "object", + "properties": { + "selects": { + "description": "`selects` lists which public run properties to include on each returned run.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "ID", + "NAME", + "RUN_TYPE", + "STATUS", + "START_TIME", + "END_TIME", + "LATENCY_SECONDS", + "FIRST_TOKEN_TIME", + "ERROR", + "ERROR_PREVIEW", + "EXTRA", + "METADATA", + "INPUTS_PREVIEW", + "OUTPUTS_PREVIEW", + "PARENT_RUN_ID", + "PARENT_RUN_IDS", + "PROJECT_ID", + "TRACE_ID", + "THREAD_ID", + "DOTTED_ORDER", + "IS_ROOT", + "REFERENCE_DATASET_ID", + "TOTAL_TOKENS", + "PROMPT_TOKENS", + "COMPLETION_TOKENS", + "TOTAL_COST", + "PROMPT_COST", + "COMPLETION_COST", + "PROMPT_TOKEN_DETAILS", + "COMPLETION_TOKEN_DETAILS", + "PROMPT_COST_DETAILS", + "COMPLETION_COST_DETAILS", + "PRICE_MODEL_ID", + "TAGS", + "THREAD_EVALUATION_TIME", + "FEEDBACK_STATS" + ] + }, + "example": [ + "ID", + "NAME", + "PROJECT_ID", + "START_TIME", + "RUN_TYPE", + "STATUS", + "INPUTS_PREVIEW", + "OUTPUTS_PREVIEW", + "METADATA" + ] + } + } + }, "query.QueryRunsRequestBody": { "type": "object", "properties": { - "ai_query": { - "description": "`ai_query` is a natural-language query to filter runs using AI.", - "type": "string", - "example": "runs that used tool calls" - }, "cursor": { - "description": "`cursor` is the opaque string from a previous response's `next_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": "eyJsYXN0X2lkIjoiMDE4ZTRjN2UtYTlmYi03ZWYwLWE1YjYtNmVhM2E4MmU5MzI3In0=" + "example": "eyJ2IjoxLCJhIjoicnVucy5xdWVyeSIsImsiOiJwYXNzIiwiYiI6InNkYiIsInQiOiJsdChjdXJzb3IsICcyMDI1LTEyLTEyIDE5OjAzOjI4LjQ4MTI1NTAxOWIxM2YyJykifQ" }, "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.", @@ -80263,35 +80244,130 @@ "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" ] }, - "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.", + "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", + "format": "uuid" + }, + "example": [ + "b2c3d4e5-f6a7-4b5c-9d0e-1f2a3b4c5d6e", + "c3d4e5f6-a7b8-4c5d-0e1f-2a3b4c5d6e7f" + ] + }, + "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" + }, + "selects": { + "description": "`selects` lists which properties to include on each returned run. If omitted, only `id` is returned. Properties not listed are omitted from each run object.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunSelectField" + }, + "example": [ + "ID", + "NAME", + "PROJECT_ID", + "START_TIME", + "RUN_TYPE", + "STATUS" + ] + }, + "trace_filter": { + "description": "`trace_filter` narrows results to runs whose root trace matches this LangSmith filter expression.\nUse this to filter by properties of the trace's root run — for example eq(status, \"success\") to include only traces that completed without error.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "eq(status, \"success\")" + }, + "trace_id": { + "description": "`trace_id` optionally limits results to runs belonging to this trace UUID.", + "type": "string", + "format": "uuid", + "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479" + }, + "tree_filter": { + "description": "`tree_filter` narrows results to runs that belong to a trace containing at least one run matching this LangSmith filter expression anywhere in the run tree (not just the root).\nUse this to find runs inside traces that involved a specific tool, tag, or model — for example has(tags, \"production\") or eq(name, \"my_tool\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "has(tags, \"production\")" + } + } + }, + "query.QueryRunsResponseBody": { + "type": "object", + "properties": { + "items": { + "description": "`items` is the page of runs, sorted by `start_time` descending.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunResponse" + } + }, + "next_cursor": { + "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.", + "type": "string", + "example": "eyJ2IjoxLCJhIjoicnVucy5xdWVyeSIsImsiOiJwYXNzIiwiYiI6InNkYiIsInQiOiJsdChjdXJzb3IsICcyMDI1LTEyLTEyIDE5OjAzOjI4LjQ4MTI1NTAxOWIxM2YyJykifQ" + } + } + }, + "query.QueryTraceResponseBody": { + "type": "object", + "properties": { + "items": { + "description": "`items` lists runs in the trace for the requested time window, in `start_time` order.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunResponse" + } + } + } + }, + "query.QueryTracesRequestBody": { + "type": "object", + "properties": { + "cursor": { + "description": "`cursor` is the opaque string returned in a previous response's `next_cursor`.", + "type": "string" + }, + "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" + }, + "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" + }, + "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 + }, + "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" }, - "reference_examples": { - "description": "`reference_examples` optionally limits to runs linked to these dataset example UUIDs.", - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, - "example": [ - "b2c3d4e5-f6a7-4b5c-9d0e-1f2a3b4c5d6e", - "c3d4e5f6-a7b8-4c5d-0e1f-2a3b4c5d6e7f" - ] - }, - "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" - }, "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.", + "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": { "$ref": "#/components/schemas/query.RunSelectField" @@ -80299,66 +80375,46 @@ "example": [ "ID", "NAME", - "PROJECT_ID", "START_TIME", - "RUN_TYPE", - "STATUS" + "STATUS", + "TOTAL_TOKENS", + "TOTAL_COST", + "FIRST_TOKEN_TIME" ] }, - "sort_order": { - "description": "`sort_order` is the sort direction for `start_time` (`ASC` or `DESC`). Defaults to `DESC` when omitted. Maps to the SmithDB proto `Order` field.", - "default": "DESC", - "allOf": [ - { - "$ref": "#/components/schemas/query.SortOrder" - } - ], - "example": "DESC" - }, "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.", + "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, \"success\")" + "example": "eq(status, \"error\")" }, - "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" + "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", + "format": "uuid" + } }, "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.", + "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.QueryRunsResponseBody": { + "query.QueryTracesResponseBody": { "type": "object", "properties": { "items": { - "description": "`items` is the page of runs, sorted by `start_time` in the direction given by the request `sort_order`.", + "description": "`items` is the page of traces.", "type": "array", "items": { - "$ref": "#/components/schemas/query.RunResponse" + "$ref": "#/components/schemas/query.Trace" } }, "next_cursor": { - "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Omitted on the final page.", - "type": "string", - "example": "eyJsYXN0X2lkIjoiMDE4ZTRjN2UtYTlmYi03ZWYwLWE1YjYtNmVhM2E4MmU5MzI3In0=" - } - } - }, - "query.QueryTraceResponseBody": { - "type": "object", - "properties": { - "items": { - "description": "`items` lists runs in the trace for the requested time window, in `start_time` order.", - "type": "array", - "items": { - "$ref": "#/components/schemas/query.RunResponse" - } + "description": "`next_cursor` is the opaque cursor for the next page. Null on the final page.", + "type": "string" } } }, @@ -80625,6 +80681,12 @@ "type": "boolean", "example": true }, + "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" + }, "latency_seconds": { "description": "`latency_seconds` is wall-clock duration from start to end in seconds.", "type": "number", @@ -80827,6 +80889,7 @@ "ATTACHMENTS", "THREAD_EVALUATION_TIME", "IS_IN_DATASET", + "LAST_QUEUED_AT", "SHARE_URL", "FEEDBACK_STATS" ], @@ -80873,6 +80936,7 @@ "RunSelectAttachments", "RunSelectThreadEvaluationTime", "RunSelectIsInDataset", + "RunSelectLastQueuedAt", "RunSelectShareURL", "RunSelectFeedbackStats" ] @@ -80911,16 +80975,52 @@ "RunTypeParser" ] }, - "query.SortOrder": { - "type": "string", - "enum": [ - "ASC", - "DESC" - ], - "x-enum-varnames": [ - "SortOrderAsc", - "SortOrderDesc" - ] + "query.RunURLResponse": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + } + }, + "query.Trace": { + "type": "object", + "properties": { + "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" + } + ] + }, + "trace_aggregates": { + "description": "`trace_aggregates` carries trace-wide aggregate metrics. Omitted when no aggregate field was selected, or `null` (then later filled) on the streaming wire while the aggregate values are still being computed.", + "allOf": [ + { + "$ref": "#/components/schemas/query.TraceAggregates" + } + ] + } + } + }, + "query.TraceAggregates": { + "type": "object", + "properties": { + "first_token_time": { + "description": "`first_token_time` is when the first output token was produced anywhere in the trace (RFC3339), when recorded.", + "type": "string", + "format": "date-time" + }, + "total_cost": { + "description": "`total_cost` is total estimated USD cost across every run in the trace.", + "type": "number" + }, + "total_tokens": { + "description": "`total_tokens` is prompt plus completion tokens summed across every run in the trace.", + "type": "integer" + } + } }, "runs.ErrorResponse": { "type": "object", @@ -81027,6 +81127,227 @@ } } }, + "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": { + "max_size_bytes": { + "type": "integer", + "minimum": 0 + }, + "writeback_seconds": { + "type": "integer", + "minimum": 0 + } + } + }, + "sandboxapi.MountKind": { + "type": "string", + "enum": [ + "s3", + "gcs", + "git", + "contexthub" + ], + "x-enum-varnames": [ + "MountKindS3", + "MountKindGCS", + "MountKindGit", + "MountKindContextHub" + ] + }, + "sandboxapi.MountSpec": { + "type": "object", + "required": [ + "id", + "mount_path", + "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 + }, + "mount_path": { + "type": "string" + }, + "read_only": { + "type": "boolean" + }, + "s3": { + "$ref": "#/components/schemas/sandboxapi.S3MountSpec" + }, + "type": { + "enum": [ + "s3", + "gcs", + "git", + "contexthub" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] + } + }, + "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", + "region" + ], + "properties": { + "bucket": { + "type": "string" + }, + "endpoint_url": { + "type": "string" + }, + "path_style": { + "type": "boolean" + }, + "prefix": { + "type": "string" + }, + "region": { + "type": "string" + } + } + }, "sandboxes.AccessControl": { "type": "object", "properties": { @@ -81044,186 +81365,472 @@ } } }, - "sandboxes.BatchDeleteRequest": { + "sandboxes.BatchDeleteRequest": { + "type": "object", + "properties": { + "names": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "sandboxes.BatchDeleteResponse": { + "type": "object", + "properties": { + "deleted": { + "type": "array", + "items": { + "type": "string" + } + }, + "skipped": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.BatchDeleteSkipped" + } + } + } + }, + "sandboxes.BatchDeleteSkipped": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reason": { + "type": "string" + } + } + }, + "sandboxes.Callback": { + "type": "object", + "required": [ + "match_hosts", + "ttl_seconds", + "url" + ], + "properties": { + "full_request": { + "type": "boolean" + }, + "match_hosts": { + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } + }, + "request_headers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.ProxyHeader" + } + }, + "ttl_seconds": { + "type": "integer", + "maximum": 3600, + "minimum": 60 + }, + "url": { + "type": "string" + } + } + }, + "sandboxes.CaptureSnapshotPayload": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "checkpoint": { + "description": "if omitted, creates a fresh checkpoint from the running VM", + "type": "string" + }, + "docker_image": { + "description": "sandbox-local Docker image to export", + "type": "string" + }, + "fs_capacity_bytes": { + "description": "required for Docker image export unless the sandbox has a capacity", + "type": "integer" + }, + "include_memory": { + "description": "IncludeMemory, when true, captures a full VM memory snapshot\nalongside the filesystem clone. Only honored when the sandbox is running\nAND Checkpoint is omitted (i.e. a fresh in-VM checkpoint is requested).\nDefaults to false to keep snapshots small unless memory restore is\nexplicitly desired.", + "type": "boolean" + }, + "labels": { + "description": "Labels seed the captured snapshot's labels.", + "allOf": [ + { + "$ref": "#/components/schemas/sandboxes.Labels" + } + ] + }, + "name": { + "type": "string" + }, + "tag": { + "description": "mutable Docker-style tag; defaults to \"latest\"", + "type": "string" + } + } + }, + "sandboxes.CreateRegistryPayload": { + "type": "object", + "required": [ + "name", + "password", + "url", + "username" + ], + "properties": { + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "url": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "sandboxes.CreateSandboxPayload": { + "type": "object", + "properties": { + "cpu_millicores": { + "description": "CPUMillicores optionally requests CPU at millicore granularity (e.g. 500 = 0.5 vCPU); takes precedence over VCPUs. Fractional (sub-vCPU) values are not available for every sandbox.", + "type": "integer" + }, + "delete_after_stop_seconds": { + "type": "integer" + }, + "env_vars": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "fs_capacity_bytes": { + "type": "integer" + }, + "idle_ttl_seconds": { + "type": "integer" + }, + "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" + }, + "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 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": { + "type": "array", + "items": { + "type": "string" + } + }, + "vcpus": { + "type": "integer" + } + } + }, + "sandboxes.CreateSnapshotPayload": { + "type": "object", + "required": [ + "docker_image", + "fs_capacity_bytes", + "name" + ], + "properties": { + "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" + } + } + }, + "sandboxes.ErrorResponse": { "type": "object", "properties": { - "names": { - "type": "array", - "items": { - "type": "string" + "detail": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "error_id": { + "type": "string" + }, + "message": { + "type": "string" + } } } } }, - "sandboxes.BatchDeleteResponse": { + "sandboxes.ExecRequest": { "type": "object", "properties": { - "deleted": { + "command": { + "description": "Command accepts either a shell command string or an argv string array.", "type": "array", "items": { "type": "string" } }, - "skipped": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sandboxes.BatchDeleteSkipped" + "cwd": { + "type": "string" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" } + }, + "shell": { + "type": "string" + }, + "timeout_seconds": { + "type": "integer" } } }, - "sandboxes.BatchDeleteSkipped": { + "sandboxes.ExecResponse": { "type": "object", "properties": { - "name": { + "exit_code": { + "type": "integer" + }, + "stderr": { "type": "string" }, - "reason": { + "stdout": { "type": "string" } } }, - "sandboxes.Callback": { + "sandboxes.ExecStreamRequest": { "type": "object", - "required": [ - "match_hosts", - "ttl_seconds", - "url" - ], "properties": { - "full_request": { - "type": "boolean" - }, - "match_hosts": { + "command": { + "description": "Command accepts either a shell command string or an argv string array.", "type": "array", - "minItems": 1, "items": { "type": "string" } }, - "request_headers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/sandboxes.ProxyHeader" + "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" } }, - "ttl_seconds": { - "type": "integer", - "maximum": 3600, - "minimum": 60 + "idle_timeout_seconds": { + "description": "0 = default, -1 = never idle-kill", + "type": "integer" }, - "url": { + "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.CaptureSnapshotPayload": { + "sandboxes.ExecStreamResumeRequest": { "type": "object", - "required": [ - "name" - ], "properties": { - "checkpoint": { - "description": "if omitted, creates a fresh checkpoint from the running VM", - "type": "string" - }, - "docker_image": { - "description": "sandbox-local Docker image to export", + "command_id": { + "description": "CommandID names the command to attach to.", "type": "string" }, - "fs_capacity_bytes": { - "description": "required for Docker image export unless the sandbox has a capacity", + "stderr_offset": { "type": "integer" }, - "include_memory": { - "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" - }, - "name": { - "type": "string" + "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.CreateSandboxPayload": { + "sandboxes.GlobRequest": { "type": "object", "properties": { - "delete_after_stop_seconds": { - "type": "integer" - }, - "fs_capacity_bytes": { - "type": "integer" - }, - "idle_ttl_seconds": { - "type": "integer" - }, - "mem_bytes": { + "limit": { "type": "integer" }, - "name": { - "type": "string" - }, - "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.", - "type": "boolean" - }, - "snapshot_id": { + "path": { "type": "string" }, - "snapshot_name": { + "pattern": { "type": "string" - }, - "tag_value_ids": { + } + } + }, + "sandboxes.GlobResponse": { + "type": "object", + "properties": { + "matches": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/sandboxapi.FileInfo" } }, - "vcpus": { - "type": "integer" + "truncated": { + "type": "boolean" } } }, - "sandboxes.CreateSnapshotPayload": { + "sandboxes.GrepRequest": { "type": "object", - "required": [ - "docker_image", - "fs_capacity_bytes", - "name" - ], "properties": { - "docker_image": { + "glob": { "type": "string" }, - "fs_capacity_bytes": { + "limit": { "type": "integer" }, - "name": { + "path": { "type": "string" }, - "registry_id": { + "pattern": { "type": "string" } } }, - "sandboxes.ErrorResponse": { + "sandboxes.GrepResponse": { "type": "object", "properties": { - "detail": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "error_id": { - "type": "string" - }, - "message": { - "type": "string" - } + "matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxapi.GrepMatch" } + }, + "truncated": { + "type": "boolean" } } }, @@ -81240,6 +81847,27 @@ "HeaderTypeWorkspaceSecret" ] }, + "sandboxes.Labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sandboxes.ProxyAWSConfig": { + "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.ProxyConfig": { "type": "object", "properties": { @@ -81266,6 +81894,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": [ @@ -81299,13 +81946,25 @@ "sandboxes.ProxyRule": { "type": "object", "required": [ - "match_hosts", "name" ], "properties": { + "aws": { + "$ref": "#/components/schemas/sandboxes.ProxyAWSConfig" + }, "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": { @@ -81313,8 +81972,8 @@ } }, "match_hosts": { + "description": "MatchHosts is only accepted for header injection rules. Provider auth\nrules use built-in host matching.", "type": "array", - "minItems": 1, "items": { "type": "string" } @@ -81327,16 +81986,124 @@ }, "name": { "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "sandboxes.ProxySecretValue": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "is_set": { + "type": "boolean" + }, + "type": { + "enum": [ + "plaintext", + "opaque", + "workspace_secret" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxes.HeaderType" + } + ] + }, + "value": { + "type": "string" + } + } + }, + "sandboxes.RegistryListResponse": { + "type": "object", + "properties": { + "offset": { + "type": "integer" + }, + "registries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.RegistryResponse" + } + } + } + }, + "sandboxes.RegistryResponse": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "created_by": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "updated_by": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "sandboxes.SandboxAWSMountAuthConfig": { + "type": "object", + "required": [ + "access_key_id", + "secret_access_key" + ], + "properties": { + "access_key_id": { + "$ref": "#/components/schemas/sandboxes.ProxySecretValue" + }, + "secret_access_key": { + "$ref": "#/components/schemas/sandboxes.ProxySecretValue" + } + } + }, + "sandboxes.SandboxGCPMountAuthConfig": { + "type": "object", + "required": [ + "service_account_json" + ], + "properties": { + "service_account_json": { + "$ref": "#/components/schemas/sandboxes.ProxySecretValue" } } }, "sandboxes.SandboxListResponse": { "type": "object", "properties": { + "items": { + "description": "This page of sandboxes.", + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxes.SandboxResponse" + } + }, + "next_cursor": { + "description": "Cursor for the next page, or null on the last page. A non-null value is\nthe only signal that more pages exist. Treat it as opaque.", + "type": "string" + }, "offset": { + "description": "Deprecated: use next_cursor. Offset to request for the next page, or 0\nwhen no pages remain.", "type": "integer" }, "sandboxes": { + "description": "Deprecated: use items. Duplicates items.", "type": "array", "items": { "$ref": "#/components/schemas/sandboxes.SandboxResponse" @@ -81344,9 +82111,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" }, @@ -81368,12 +82163,21 @@ "idle_ttl_seconds": { "type": "integer" }, + "labels": { + "$ref": "#/components/schemas/sandboxes.Labels" + }, "mem_bytes": { "type": "integer" }, + "mount_config": { + "$ref": "#/components/schemas/sandboxes.SandboxMountConfig" + }, "name": { "type": "string" }, + "preserve_memory_on_stop": { + "type": "boolean" + }, "proxy_config": { "$ref": "#/components/schemas/sandboxes.ProxyConfig" }, @@ -81445,10 +82249,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" @@ -81456,6 +82273,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": { @@ -81480,6 +82322,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" @@ -81499,14 +82344,41 @@ "status_message": { "type": "string" }, + "tags": { + "description": "Tags currently resolving to this snapshot, under Name. A snapshot with no\ntags is dangling — addressable only by id.", + "type": "array", + "items": { + "type": "string" + } + }, "updated_at": { "type": "string" } } }, + "sandboxes.UpdateRegistryPayload": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "url": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, "sandboxes.UpdateSandboxPayload": { "type": "object", "properties": { + "cpu_millicores": { + "type": "integer" + }, "delete_after_stop_seconds": { "type": "integer" }, @@ -81517,6 +82389,7 @@ "type": "integer" }, "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": { @@ -81536,6 +82409,17 @@ } } }, + "sandboxes.UploadResponse": { + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "written": { + "type": "integer" + } + } + }, "sandboxes.UsageResponse": { "type": "object", "properties": { @@ -81606,6 +82490,9 @@ "created_at": { "type": "string" }, + "created_by": { + "type": "string" + }, "description": { "type": "string" }, @@ -81630,6 +82517,9 @@ "created_at": { "type": "string" }, + "created_by": { + "type": "string" + }, "description": { "type": "string" }, @@ -81658,164 +82548,133 @@ } } }, - "shared.ProblemDetails": { - "description": "RFC 7807 problem details returned on V2 API errors.", + "secrets.ErrorResponse": { "type": "object", "properties": { - "detail": { - "type": "string" - }, - "instance": { + "code": { "type": "string" }, - "remedy": { - "description": "Remedy is a LangSmith extension for user-recoverable errors.", + "detail": { "type": "string" }, "status": { "type": "integer" }, - "title": { - "type": "string" - }, "type": { "type": "string" } } }, - "skills.CreateSkillRequest": { + "secrets.ListResponse": { "type": "object", - "required": [ - "files", - "name" - ], "properties": { - "files": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/skills.FileEntry" + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/secrets.SecretItem" } }, + "next_cursor": { + "type": "string" + } + } + }, + "secrets.SecretItem": { + "type": "object", + "properties": { "name": { "type": "string", - "maxLength": 64 + "example": "OPENAI_API_KEY" + }, + "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 } } }, - "skills.ErrorResponse": { + "secrets.bulkUpsertItem": { "type": "object", "properties": { - "code": { - "type": "string" - }, - "detail": { + "key": { "type": "string" }, - "status": { - "type": "integer" - }, - "type": { + "value": { "type": "string" } } }, - "skills.FileEntry": { + "secrets.putRequest": { "type": "object", "properties": { - "content": { - "type": "string" - }, - "type": { + "value": { "type": "string" } } }, - "skills.ListSkillsResponse": { + "share.CreateShareTokenRequestBody": { "type": "object", "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/skills.Skill" - } + "session_id": { + "description": "session_id is the tracing project UUID containing the trace.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" }, - "next_cursor": { - "type": "string" + "trace_id": { + "description": "trace_id is the root trace UUID to share.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" } } }, - "skills.Skill": { + "share.CreateShareTokenResponseBody": { "type": "object", "properties": { - "commit_hash": { - "type": "string" - }, - "commit_id": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "files": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/skills.FileEntry" - } - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owners": { - "type": "array", - "items": { - "$ref": "#/components/schemas/skills.SkillOwner" - } - }, - "updated_at": { - "type": "string" - }, - "visibility": { - "type": "string" + "share_token": { + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" } } }, - "skills.SkillOwner": { + "share.DeleteShareTokenRequestBody": { "type": "object", "properties": { - "created_at": { + "session_id": { + "description": "session_id is the tracing project UUID containing the trace.", + "type": "string", + "format": "uuid", + "example": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327" + } + } + }, + "shared.ProblemDetails": { + "description": "RFC 7807 problem details returned on V2 API errors.", + "type": "object", + "properties": { + "detail": { "type": "string" }, - "email": { + "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": { @@ -81873,190 +82732,65 @@ } } }, - "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" - ] - } - } - }, - "threads.BulkUpdateThreadsRequest": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/threads.UpdateThreadRequest" + "type": "integer" }, - "thread_ids": { - "type": "array", - "items": { - "type": "string" - } + "type": { + "type": "string" } } }, - "threads.BulkUpdateThreadsResponse": { + "tenants.ListTenantsResponse": { "type": "object", "properties": { - "results": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadResult" + "$ref": "#/components/schemas/tenants.Tenant" } - } - } - }, - "threads.CountResponse": { - "type": "object", - "properties": { - "attention_count": { - "type": "integer" - } - } - }, - "threads.CreateThreadAndRunRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "example": "11111111-1111-1111-1111-111111111111" }, - "thread": { - "$ref": "#/components/schemas/threads.CreateThreadAndRunThread" - } - } - }, - "threads.CreateThreadAndRunThread": { - "type": "object", - "properties": { - "if_exists": { - "type": "string", - "enum": [ - "do_nothing", - "raise" - ] - }, - "metadata": { - "type": "object", - "additionalProperties": {} - }, - "options": { - "$ref": "#/components/schemas/threads.CreateThreadOptions" - }, - "thread_id": { - "type": "string", - "format": "uuid" - } - } - }, - "threads.CreateThreadOptions": { - "type": "object", - "properties": { - "skip_memory_write_protection": { - "description": "SkipMemoryWriteProtection lets runs on this thread bypass the default\nlong-term-memory write protection.", - "type": "boolean" - }, - "test_run": { - "description": "TestRun marks the thread as a test run; filtered out of usage and analytics.", - "type": "boolean" + "next_cursor": { + "type": "string" } } }, - "threads.CreateThreadRequest": { + "tenants.Tenant": { "type": "object", "properties": { - "agent_id": { - "type": "string", - "example": "11111111-1111-1111-1111-111111111111" - }, - "if_exists": { - "type": "string", - "enum": [ - "do_nothing", - "raise" - ] - }, - "metadata": { - "type": "object", - "additionalProperties": {} - }, - "options": { - "$ref": "#/components/schemas/threads.CreateThreadOptions" + "created_at": { + "type": "string" }, - "thread_id": { - "type": "string", - "format": "uuid" - } - } - }, - "threads.ErrorResponse": { - "type": "object", - "properties": { - "code": { + "data_plane_url": { "type": "string" }, - "detail": { + "id": { "type": "string" }, - "status": { - "type": "integer" + "is_personal": { + "type": "boolean" }, - "type": { + "name": { "type": "string" - } - } - }, - "threads.Message": { - "type": "object", - "properties": { - "content": { - "type": "string", - "example": "what is your name?" }, - "role": { - "type": "string", - "enum": [ - "user", - "assistant", - "system", - "tool" - ], - "example": "user" - } - } - }, - "threads.OptionalField-bool": { - "type": "object", - "properties": { - "set": { - "type": "boolean" + "organization_id": { + "type": "string" }, - "value": { - "type": "boolean" - } - } - }, - "threads.OptionalField-string": { - "type": "object", - "properties": { - "set": { - "type": "boolean" + "permissions": { + "type": "array", + "items": { + "type": "string" + } }, - "value": { + "tenant_handle": { "type": "string" } } @@ -82088,6 +82822,14 @@ "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", @@ -82160,7 +82902,7 @@ } }, "next_cursor": { - "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Omitted on the final page.", + "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.", "type": "string", "example": "eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ==" } @@ -82178,17 +82920,17 @@ "type": "string" }, "max_start_time": { - "description": "`max_start_time` is the inclusive upper bound on thread activity (RFC3339 date-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).", + "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" }, "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 present.", + "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, @@ -82200,6 +82942,21 @@ "type": "string", "format": "uuid", "example": "0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328" + }, + "thread_filter": { + "description": "`thread_filter` narrows results using a LangSmith filter expression evaluated against each complete thread summary.\nSelf-hosted deployments require LangSmith v0.17 or later; unsupported deployments return 501.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "gte(turn_count, 3)" + }, + "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\")" } } }, @@ -82214,7 +82971,7 @@ } }, "next_cursor": { - "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Omitted on the final page.", + "description": "`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.", "type": "string", "example": "eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ==" } @@ -82238,7 +82995,8 @@ "PROMPT_TOKEN_DETAILS", "COMPLETION_TOKEN_DETAILS", "PROMPT_COST_DETAILS", - "COMPLETION_COST_DETAILS" + "COMPLETION_COST_DETAILS", + "FEEDBACK_STATS" ], "x-enum-varnames": [ "SingleThreadStatsSelectTurns", @@ -82256,70 +83014,10 @@ "SingleThreadStatsSelectPromptTokenDetails", "SingleThreadStatsSelectCompletionTokenDetails", "SingleThreadStatsSelectPromptCostDetails", - "SingleThreadStatsSelectCompletionCostDetails" + "SingleThreadStatsSelectCompletionCostDetails", + "SingleThreadStatsSelectFeedbackStats" ] }, - "threads.StreamRunRequest": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "format": "uuid" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/threads.Message" - } - }, - "stream_mode": { - "type": "array", - "items": { - "type": "string" - } - }, - "stream_subgraphs": { - "type": "boolean" - }, - "user_timezone": { - "type": "string" - } - } - }, - "threads.Thread": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "format": "uuid" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string", - "format": "uuid" - }, - "metadata": { - "type": "object", - "additionalProperties": {} - }, - "status": { - "type": "string", - "enum": [ - "idle", - "busy", - "interrupted", - "error" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - }, "threads.ThreadListItem": { "type": "object", "properties": { @@ -82466,6 +83164,11 @@ "format": "date-time", "example": "2025-01-15T12:00:01.500Z" }, + "error": { + "description": "`error` is the full root run error message when the run failed. Omitted unless included in `selects`.", + "type": "string", + "example": "context deadline exceeded" + }, "error_preview": { "description": "`error_preview` is a short error summary when the run failed. Omitted unless included in `selects`.", "type": "string" @@ -82476,6 +83179,10 @@ "format": "date-time", "example": "2024-01-15T10:30:00.312Z" }, + "inputs": { + "description": "`inputs` is the full root run input payload. Omitted unless included in `selects`.", + "type": "object" + }, "inputs_preview": { "description": "`inputs_preview` is a truncated text preview of inputs. Omitted unless included in `selects`.", "type": "string" @@ -82492,6 +83199,10 @@ "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" }, + "outputs": { + "description": "`outputs` is the full root run output payload. Omitted unless included in `selects`.", + "type": "object" + }, "outputs_preview": { "description": "`outputs_preview` is a truncated text preview of outputs. Omitted unless included in `selects`.", "type": "string" @@ -82541,7 +83252,7 @@ "type": "integer" }, "trace_id": { - "description": "`trace_id` is the UUID of this trace (the root run). Always present.", + "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" @@ -82563,6 +83274,9 @@ "FIRST_TOKEN_TIME", "INPUTS_PREVIEW", "OUTPUTS_PREVIEW", + "INPUTS", + "OUTPUTS", + "ERROR", "PROMPT_COST", "COMPLETION_COST", "TOTAL_COST", @@ -82586,6 +83300,9 @@ "ThreadTraceSelectFirstTokenTime", "ThreadTraceSelectInputsPreview", "ThreadTraceSelectOutputsPreview", + "ThreadTraceSelectInputs", + "ThreadTraceSelectOutputs", + "ThreadTraceSelectError", "ThreadTraceSelectPromptCost", "ThreadTraceSelectCompletionCost", "ThreadTraceSelectTotalCost", @@ -82597,69 +83314,6 @@ "ThreadTraceSelectErrorPreview" ] }, - "threads.UpdateThreadMetadata": { - "type": "object", - "properties": { - "is_pinned": { - "$ref": "#/components/schemas/threads.OptionalField-bool" - }, - "is_test_run": { - "$ref": "#/components/schemas/threads.OptionalField-bool" - }, - "read_status": { - "$ref": "#/components/schemas/threads.OptionalField-bool" - }, - "sandbox_recreated_at": { - "format": "date-time", - "allOf": [ - { - "$ref": "#/components/schemas/threads.OptionalField-string" - } - ] - }, - "skip_memory_write_protection": { - "$ref": "#/components/schemas/threads.OptionalField-bool" - } - } - }, - "threads.UpdateThreadRequest": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/components/schemas/threads.UpdateThreadMetadata" - }, - "title": { - "$ref": "#/components/schemas/threads.OptionalField-string" - } - } - }, - "threads.UpdateThreadResponse": { - "type": "object", - "properties": { - "agent_id": { - "type": "string", - "format": "uuid" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string", - "format": "uuid" - }, - "metadata": { - "$ref": "#/components/schemas/threads.UpdateThreadMetadata" - }, - "title": { - "type": "string" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - } - }, "tools.CreateToolPayload": { "type": "object", "required": [ @@ -82802,6 +83456,13 @@ "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" + }, "created_at": { "type": "string" }, @@ -82823,12 +83484,18 @@ "fix_prompt": { "type": "string" }, + "fix_verification": { + "type": "object" + }, "id": { "type": "string" }, "last_seen_at": { "type": "string" }, + "linear_sync": { + "$ref": "#/components/schemas/tracer_session_issues.LinearSync" + }, "name": { "type": "string" }, @@ -82853,6 +83520,10 @@ "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" }, @@ -82876,6 +83547,47 @@ }, "updated_at": { "type": "string" + }, + "watching_since": { + "type": "string" + } + } + }, + "tracer_session_issues.LinearSync": { + "type": "object", + "properties": { + "identifier": { + "type": "string" + }, + "issue_id": { + "type": "string" + }, + "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" } } }, @@ -82909,11 +83621,15 @@ "type": "string", "enum": [ "open", + "fixing", + "watching", "completed", "ignored" ], "x-enum-varnames": [ "StatusOpen", + "StatusFixing", + "StatusWatching", "StatusCompleted", "StatusIgnored" ] @@ -82949,6 +83665,10 @@ "items": { "type": "string" } + }, + "run_filter": { + "description": "Runs-filter-DSL trace scope; omit/null/empty for no scope.", + "type": "string" } } }, @@ -82978,6 +83698,9 @@ "cron_schedule": { "type": "string" }, + "engine_version": { + "type": "string" + }, "github_base_branch": { "type": "string" }, @@ -82990,6 +83713,9 @@ "id": { "type": "string" }, + "issue_count": { + "type": "integer" + }, "latest_run_id": { "type": "string" }, @@ -82997,18 +83723,39 @@ "description": "IDs of the latest run on LangSmith Deployments; NULL until first trigger.", "type": "string" }, + "linear_available": { + "type": "boolean" + }, + "linear_integration": { + "$ref": "#/components/schemas/tracer_session_issues_agent.LinearIntegration" + }, + "linear_sync_health": { + "$ref": "#/components/schemas/tracer_session_issues_agent.LinearSyncHealth" + }, + "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" + }, "priorities": { "type": "array", "items": { "type": "string" } }, + "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" + }, "session_agent_overview_repo_id": { "type": "string" }, "session_id": { "type": "string" }, + "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" + }, "session_name": { "description": "JOINed from tracer_session", "type": "string" @@ -83016,8 +83763,94 @@ "tenant_id": { "type": "string" }, + "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" + }, "updated_at": { "type": "string" + }, + "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" + } + } + }, + "tracer_session_issues_agent.LinearIntegration": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "project_id": { + "type": "string" + }, + "project_name": { + "type": "string" + }, + "team_id": { + "type": "string" + }, + "team_key": { + "type": "string" + }, + "team_name": { + "type": "string" + }, + "workspace_id": { + "type": "string" + }, + "workspace_name": { + "type": "string" + } + } + }, + "tracer_session_issues_agent.LinearIntegrationPatch": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "project_id": { + "type": "string" + }, + "project_name": { + "type": "string" + }, + "team_id": { + "type": "string" + }, + "team_key": { + "type": "string" + }, + "team_name": { + "type": "string" + }, + "workspace_id": { + "type": "string" + }, + "workspace_name": { + "type": "string" + } + } + }, + "tracer_session_issues_agent.LinearSyncHealth": { + "type": "object", + "properties": { + "auth_required": { + "type": "integer" + }, + "failed": { + "type": "integer" + }, + "paused": { + "type": "integer" + }, + "pending": { + "type": "integer" + }, + "synced": { + "type": "integer" } } }, @@ -83061,124 +83894,98 @@ "github_repo_url": { "type": "string" }, + "linear_integration": { + "$ref": "#/components/schemas/tracer_session_issues_agent.LinearIntegrationPatch" + }, + "preview_verify_enabled": { + "type": "boolean" + }, "priorities": { "type": "array", "items": { "type": "string" } }, + "run_filter": { + "description": "Trace-scope DSL. nil = don't change; \"\" clears it.", + "type": "string" + }, "session_agent_overview_repo_id": { "type": "string" - } - } - }, - "tracer_sessions.AgentVersionResponse": { - "type": "object", - "properties": { - "commit_sha": { + }, + "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" }, - "first_seen_at": { + "user_instructions": { + "description": "Freeform user preferences. Send \"\" to clear (the frontend must not send null).", "type": "string" } } }, - "triggers.CreateTriggerRequest": { + "tracer_session_issues_agent_webhooks.IssuesAgentWebhook": { "type": "object", "properties": { - "agent_id": { + "created_at": { "type": "string" }, - "config": { - "type": "object", - "additionalProperties": {} - }, - "name": { - "type": "string" + "event_types": { + "type": "array", + "items": { + "type": "string" + } }, - "registration_id": { - "type": "string" + "headers": { + "type": "object" }, - "status": { + "id": { "type": "string" }, - "template_id": { - "type": "string" - } - } - }, - "triggers.ErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" + "issue_statuses": { + "description": "IssueStatuses scopes delivery to issues in one of these statuses. Nil/empty\n(the default) fires for every status.", + "type": "array", + "items": { + "type": "string" + } }, - "detail": { + "organization_id": { + "description": "OrganizationID is derived from the tenant on fetch (no stored column); the\nrow carries it so Slack delivery can address the org-scoped install.", "type": "string" }, - "status": { - "type": "integer" - }, - "type": { - "type": "string" - } - } - }, - "triggers.Trigger": { - "type": "object", - "properties": { - "agent_id": { + "session_id": { "type": "string" }, - "config": { - "type": "object", - "additionalProperties": {} - }, - "created_at": { - "type": "string" + "severity_threshold": { + "$ref": "#/components/schemas/tracer_session_issues.Severity" }, - "id": { + "signing_secret": { "type": "string" }, - "name": { + "slack_channel_id": { + "description": "Delivery target is either a URL or a Slack channel. SlackTeamID is the\nchannel's workspace (which install to send through).", "type": "string" }, - "status": { + "slack_team_id": { "type": "string" }, - "template_id": { + "tenant_id": { "type": "string" }, "updated_at": { "type": "string" - } - } - }, - "triggers.TriggerListResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/triggers.Trigger" - } }, - "next_cursor": { + "url": { "type": "string" } } }, - "triggers.UpdateTriggerRequest": { + "tracer_sessions.AgentVersionResponse": { "type": "object", "properties": { - "config": { - "type": "object", - "additionalProperties": {} - }, - "name": { + "commit_sha": { "type": "string" }, - "status": { + "first_seen_at": { "type": "string" } } @@ -83205,140 +84012,294 @@ } } }, - "usage.AgentUsage": { + "users.ErrorResponse": { "type": "object", "properties": { - "agent_name": { - "type": "string" - }, - "assistant_id": { - "type": "string" - }, - "first_used": { - "type": "string" - }, - "last_used": { - "type": "string" - }, - "model_name": { + "code": { "type": "string" }, - "owner_email": { + "detail": { "type": "string" }, - "run_count": { + "status": { "type": "integer" }, - "total_cost": { - "type": "number" + "type": { + "type": "string" } } }, - "usage.AgentUsageResponse": { + "users.ListResponse": { "type": "object", + "required": [ + "items", + "next_cursor" + ], "properties": { - "agents": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/usage.AgentUsage" + "$ref": "#/components/schemas/users.User" } + }, + "next_cursor": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } } }, - "usage.ModelUsage": { + "users.User": { "type": "object", "properties": { - "last_used": { - "type": "string" - }, - "model_name": { - "type": "string" + "email": { + "type": "string", + "example": "ada@example.com" }, - "run_count": { - "type": "integer" + "id": { + "type": "string", + "format": "uuid" }, - "total_cost": { - "type": "number" + "name": { + "type": "string", + "example": "Ada Lovelace" } } }, - "usage.ModelUsageResponse": { + "users.UserRef": { "type": "object", "properties": { - "models": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.ModelUsage" - } + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "example": "Ada Lovelace" } } }, - "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" + "git": { + "$ref": "#/components/schemas/sandboxapi.GitMountSpec" }, - "first_used": { - "type": "string" - }, - "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" + ] + } + ] } } }, @@ -83620,81 +84581,16 @@ "x-group": "System" }, { - "name": "agents", - "x-hidden": true - }, - { - "name": "beacon", - "x-hidden": true - }, - { - "name": "engine-trial" - }, - { - "name": "fleet" - }, - { - "name": "fleet auth", - "x-hidden": true - }, - { - "name": "fleet credentials", - "x-hidden": true - }, - { - "name": "fleet github-app", - "x-hidden": true - }, - { - "name": "fleet integrations", - "x-hidden": true - }, - { - "name": "fleet mcp", - "x-hidden": true - }, - { - "name": "fleet threads", - "x-hidden": true - }, - { - "name": "fleet trigger-templates", - "x-hidden": true - }, - { - "name": "fleet triggers", - "x-hidden": true - }, - { - "name": "fleet usage", - "x-hidden": true - }, - { - "name": "fleet_webhooks", - "x-hidden": true - }, - { - "name": "health" - }, - { - "name": "internal", - "x-hidden": true - }, - { - "name": "metrics", - "x-hidden": true + "name": "fleet orgs" }, { - "name": "nps", - "x-hidden": true + "name": "fleet secrets" }, { - "name": "sandboxes-internal", - "x-hidden": true + "name": "fleet tenants" }, { - "name": "skills", - "x-hidden": true + "name": "fleet users" } ] }