diff --git a/src/langsmith/langsmith-platform-openapi.json b/src/langsmith/langsmith-platform-openapi.json index 87292f07e2..c8a523a545 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": { @@ -4004,7 +4101,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/ttl-settings": { @@ -4041,7 +4139,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -4091,7 +4190,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/ttl-settings": { @@ -4128,7 +4228,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -4178,27 +4279,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 +4453,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples/{example_id}": { @@ -4463,7 +4546,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -4524,7 +4608,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -4575,7 +4660,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples": { @@ -4773,6 +4859,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 +4928,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -4906,6 +4997,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 +5119,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -5046,7 +5174,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples/bulk": { @@ -5092,6 +5221,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 +5381,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "patch": { "tags": [ @@ -5269,7 +5435,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/examples/upload/{dataset_id}": { @@ -5338,7 +5505,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/examples/validate": { @@ -5371,7 +5539,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/examples/validate/bulk": { @@ -5408,7 +5577,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets": { @@ -5638,7 +5808,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -5689,7 +5860,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -5744,7 +5916,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/stream": { @@ -5949,7 +6122,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}": { @@ -6004,7 +6178,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -6055,7 +6230,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -6126,7 +6302,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/upload": { @@ -6179,7 +6356,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/upload-experiment": { @@ -6232,7 +6410,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/{dataset_id}/versions": { @@ -6347,7 +6526,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/versions/diff": { @@ -6436,7 +6616,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/version": { @@ -6524,7 +6705,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/tags": { @@ -6589,7 +6771,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/openai": { @@ -6661,7 +6844,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/openai_ft": { @@ -6733,7 +6917,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/csv": { @@ -6805,7 +6990,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/jsonl": { @@ -6877,7 +7063,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/runs": { @@ -6888,6 +7075,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 +7161,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 +7196,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,17 +7225,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", + "summary": "Share Dataset", + "description": "Share a dataset.", + "operationId": "share_dataset_api_v1_datasets__dataset_id__share_put", "security": [ { "API Key": [] @@ -7070,89 +7256,26 @@ "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, + "name": "share_projects", + "in": "query", + "required": false, "schema": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" + "type": "boolean", + "default": false, + "title": "Share Projects" } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryFeedbackDeltaBatch" - } - } - } - }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/DatasetShareSchema" + } } } }, @@ -7166,204 +7289,16 @@ } } } - } - } - }, - "/api/v1/datasets/{dataset_id}/experiments/grouped": { - "post": { + }, + "x-public": true + }, + "delete": { "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", - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "parameters": [ - { - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Dataset Id" - } - }, - { - "name": "share_projects", - "in": "query", - "required": false, - "schema": { - "type": "boolean", - "default": false, - "title": "Share Projects" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetShareSchema" - } - } - } - }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - }, - "delete": { - "tags": [ - "datasets" - ], - "summary": "Unshare Dataset", - "description": "Unshare a dataset.", - "operationId": "unshare_dataset_api_v1_datasets__dataset_id__share_delete", + "summary": "Unshare Dataset", + "description": "Unshare a dataset.", + "operationId": "unshare_dataset_api_v1_datasets__dataset_id__share_delete", "security": [ { "API Key": [] @@ -7406,160 +7341,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 +7395,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/comparative/{comparative_experiment_id}": { @@ -7665,7 +7449,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/clone": { @@ -7723,7 +7508,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/datasets/{dataset_id}/splits": { @@ -7801,7 +7587,8 @@ } } } - } + }, + "x-public": true }, "put": { "tags": [ @@ -7868,7 +7655,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/datasets/{dataset_id}/generate": { @@ -7912,97 +7700,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 +7720,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/datasets/studio_experiment": { @@ -8085,7 +7772,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/rules": { @@ -8271,7 +7959,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -8322,7 +8011,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/validate": { @@ -8380,7 +8070,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/rules/{rule_id}": { @@ -8445,7 +8136,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -8496,7 +8188,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/threads/{thread_id}": { @@ -8598,7 +8291,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/logs": { @@ -8731,7 +8425,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/logs/v2": { @@ -8875,7 +8570,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/last_applied": { @@ -8940,7 +8636,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/{rule_id}/trigger": { @@ -8979,9 +8676,7 @@ "description": "Successful Response", "content": { "application/json": { - "schema": { - "$ref": "#/components/schemas/RunRulesSchema" - } + "schema": {} } } }, @@ -8995,7 +8690,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/rules/trigger": { @@ -9046,7 +8742,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/{run_id}": { @@ -9057,6 +8754,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 +8863,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 +8878,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 +9003,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 +9056,8 @@ } } } - } + }, + "x-public": true }, "put": { "tags": [ @@ -9288,6 +9066,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 +9111,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -9341,6 +9121,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 +9164,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/query/validate": { @@ -9425,7 +9207,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/query": { @@ -9467,6 +9250,7 @@ } } }, + "deprecated": true, "security": [ { "API Key": [] @@ -9477,7 +9261,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/generate-query": { @@ -9530,7 +9315,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/stats": { @@ -9594,27 +9380,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 +9505,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 +9638,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 +9841,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/runs/group/stats": { @@ -9809,7 +9895,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/delete/traces": { @@ -9860,7 +9947,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/delete": { @@ -9910,7 +9998,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/runs/experiments/{experiment_id}/evaluate": { @@ -9977,7 +10066,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/formulas": { @@ -9986,8 +10076,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 +10121,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 +10224,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/formulas/{feedback_formula_id}": { @@ -10140,8 +10234,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 +10281,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 +10346,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 +10399,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/{feedback_id}": { @@ -10371,7 +10471,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -10434,7 +10535,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -10485,7 +10587,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback": { @@ -10719,6 +10822,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 +10897,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 +10949,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 +11025,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -11014,7 +11083,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback/tokens/{token}": { @@ -11058,6 +11128,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 +11215,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -11185,7 +11266,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/run": { @@ -11239,7 +11321,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/run/{id}": { @@ -11250,6 +11333,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 +11387,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/runs/query": { @@ -11314,6 +11399,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 +11443,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/feedbacks": { @@ -11573,7 +11660,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets": { @@ -11659,7 +11747,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/examples/count": { @@ -11776,7 +11865,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/examples": { @@ -11942,7 +12032,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/sessions": { @@ -12067,6 +12158,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 +12207,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 +12311,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/datasets/sessions-bulk": { @@ -12192,181 +12362,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 +12417,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/generate-query": { @@ -12474,7 +12472,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/stats": { @@ -12502,7 +12501,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RunStatsQueryParams" + "$ref": "#/components/schemas/RunStatsQueryParamsPublic" } } } @@ -12528,7 +12527,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/runs/{run_id}": { @@ -12592,7 +12592,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/feedback": { @@ -12809,7 +12810,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/{share_token}/datasets/comparative": { @@ -12931,7 +12933,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/message.json": { @@ -12971,7 +12974,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/public/schemas/{version}/tooldef.json": { @@ -13011,7 +13015,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues": { @@ -13227,7 +13232,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -13277,7 +13283,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -13332,7 +13339,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/populate": { @@ -13383,7 +13391,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}": { @@ -13435,7 +13444,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -13495,7 +13505,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13547,7 +13558,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs": { @@ -13557,6 +13569,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 +13591,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 +13659,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -13644,6 +13668,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 +13793,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/by-key": { @@ -13777,7 +13803,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 +13827,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 +13878,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/export": { @@ -13902,7 +13941,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/run/{index}": { @@ -13913,6 +13953,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 +14017,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{run_id}/queues": { @@ -14034,7 +14076,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/{queue_run_id}": { @@ -14044,6 +14087,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 +14150,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -14114,6 +14159,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 +14212,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/delete": { @@ -14176,6 +14223,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 +14276,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_size": { @@ -14238,6 +14287,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 +14332,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/total_archived": { @@ -14292,6 +14343,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 +14422,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/size": { @@ -14380,6 +14433,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 +14499,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/status/{annotation_queue_run_id}": { @@ -14455,6 +14510,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 +14563,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/annotation-queues/{queue_id}/runs/resolve/{queue_run_id}": { @@ -14518,6 +14575,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 +14630,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/ace/execute": { @@ -14627,7 +14686,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/bulk-exports": { @@ -14638,73 +14698,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 +14708,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 +14748,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 +14765,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 +14786,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 +14817,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 +15116,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/destinations/{destination_id}": { @@ -15035,7 +15172,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15098,7 +15236,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs": { @@ -15130,6 +15269,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 +15325,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/bulk-exports/{bulk_export_id}/runs/{run_id}": { @@ -15222,7 +15391,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/feedback-configs": { @@ -15355,7 +15525,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -15405,7 +15576,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15455,7 +15627,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15500,7 +15673,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/model-price-map": { @@ -15510,16 +15684,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 +15781,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 +15812,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/model-price-map/{id}": { @@ -15640,7 +15874,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -15690,7 +15925,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompts/invoke_prompt": { @@ -15729,7 +15965,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompts/canvas": { @@ -15779,7 +16016,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/prompt-webhooks": { @@ -15816,7 +16054,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -15867,7 +16106,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/prompt-webhooks/{webhook_id}": { @@ -15922,7 +16162,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -15985,7 +16226,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16036,7 +16278,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/prompt-webhooks/test": { @@ -16093,33 +16336,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 +16358,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 +16391,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 +16410,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 +16513,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -16297,7 +16576,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16347,7 +16627,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/clone": { @@ -16400,7 +16681,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/section": { @@ -16562,7 +16844,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -16613,7 +16896,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts": { @@ -16666,7 +16950,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/preview": { @@ -16719,7 +17004,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/create": { @@ -16728,13 +17014,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 +17052,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 +17098,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/charts/{chart_id}": { @@ -16781,7 +17108,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 +17149,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 +17184,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 +17233,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 +17268,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -16951,7 +17320,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/charts/section/{section_id}": { @@ -17016,7 +17386,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -17079,7 +17450,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -17130,7 +17502,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/org-charts/section": { @@ -17139,8 +17512,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 +17536,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 +17567,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 +17576,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 +17599,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/preview": { @@ -17405,40 +17609,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 +17632,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/create": { @@ -17458,40 +17642,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 +17665,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/org-charts/{chart_id}": { @@ -17511,8 +17675,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 +17699,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 +17730,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 +17761,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 +17780,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 +17794,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 +17856,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 +17920,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 +17966,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -18036,7 +18049,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/mcp/proxy": { @@ -18107,7 +18121,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18155,7 +18170,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs": { @@ -18218,7 +18234,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -18262,7 +18279,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/setup": { @@ -18294,7 +18312,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current": { @@ -18326,7 +18345,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/info": { @@ -18358,7 +18378,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "patch": { "tags": [ @@ -18408,7 +18429,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing": { @@ -18440,7 +18462,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/dashboard": { @@ -18508,7 +18531,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/payment-method": { @@ -18558,7 +18582,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/business-info": { @@ -18590,7 +18615,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18638,7 +18664,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/plan": { @@ -18688,7 +18715,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles": { @@ -18724,7 +18752,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -18774,7 +18803,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/roles/{role_id}": { @@ -18828,7 +18858,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -18890,7 +18921,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 +19017,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/pending": { @@ -18951,7 +19049,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members": { @@ -18983,7 +19082,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -19033,7 +19133,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/active": { @@ -19203,7 +19304,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/pending": { @@ -19328,7 +19430,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/batch": { @@ -19389,7 +19492,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/basic/batch": { @@ -19450,7 +19554,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}/pending": { @@ -19503,39 +19608,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 +19672,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 +19768,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/members/{identity_id}": { @@ -19650,7 +19822,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -19711,7 +19884,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/members/basic": { @@ -19762,7 +19936,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings": { @@ -19799,7 +19974,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -19850,7 +20026,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/sso-settings/{id}": { @@ -19915,7 +20092,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -19968,7 +20146,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/login-methods": { @@ -20023,7 +20202,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/billing/usage": { @@ -20101,7 +20281,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage": { @@ -20110,7 +20291,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 +20328,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 +20353,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 +20401,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/billing/granular-usage/export": { @@ -20197,7 +20411,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 +20448,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 +20473,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 +20519,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/user/login-methods": { @@ -20310,7 +20557,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_checkout_session": { @@ -20361,7 +20609,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/stripe_account_links": { @@ -20412,7 +20661,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/orgs/current/service-keys": { @@ -20422,22 +20672,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 +20682,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 +20725,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 +20745,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 +20776,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 +20895,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens": { @@ -20626,22 +20906,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 +20977,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 +21010,7 @@ } } }, - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ] + "x-public": true } }, "/api/v1/orgs/current/personal-access-tokens/{pat_id}": { @@ -20756,7 +21064,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/orgs/current/set-default-sso-provision": { @@ -20791,7 +21100,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/login": { @@ -20812,7 +21122,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/send": { @@ -20861,7 +21172,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/sso/email-verification/status": { @@ -20903,7 +21215,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-verification/confirm": { @@ -20947,7 +21260,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/settings/{sso_login_slug}": { @@ -20994,7 +21308,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/sso/email-lookup": { @@ -21040,7 +21355,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key": { @@ -21077,7 +21393,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21131,7 +21448,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/{api_key_id}": { @@ -21186,7 +21504,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/api-key/current": { @@ -21224,7 +21543,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21278,7 +21598,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/api-key/current/{pat_id}": { @@ -21334,7 +21655,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/tenants": { @@ -21397,7 +21719,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -21442,7 +21765,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/onboarding_state": { @@ -21469,7 +21793,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21494,7 +21819,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/me/onboarding_state/{field}": { @@ -21542,7 +21868,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/me/ls_user_id": { @@ -21570,7 +21897,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts": { @@ -21607,7 +21935,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21658,7 +21987,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/service-accounts/{service_account_id}": { @@ -21713,7 +22043,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending": { @@ -21744,7 +22075,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/pending/{id}": { @@ -21790,7 +22122,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/pending/{workspace_id}/claim": { @@ -21837,7 +22170,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members": { @@ -21869,7 +22203,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "post": { "tags": [ @@ -21920,7 +22255,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/active": { @@ -22090,7 +22426,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/pending": { @@ -22215,7 +22552,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/workspaces/current/members/batch": { @@ -22247,7 +22585,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 +22617,8 @@ { "Organization ID": [] } - ] + ], + "x-public": true } }, "/api/v1/workspaces/current/members/{identity_id}": { @@ -22331,7 +22670,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -22391,10 +22731,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 +22848,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/usage-limits": { @@ -22480,7 +22886,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true }, "put": { "tags": [ @@ -22531,7 +22938,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/org": { @@ -22568,7 +22976,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/usage-limits/{usage_limit_id}": { @@ -22621,7 +23030,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/settings": { @@ -22654,7 +23064,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/settings/handle": { @@ -22707,7 +23118,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/repos": { @@ -22740,6 +23152,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 +23491,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -23120,7 +23543,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23175,7 +23599,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}": { @@ -23238,7 +23663,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -23309,7 +23735,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -23368,7 +23795,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/fork": { @@ -23441,7 +23869,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/tags": { @@ -23749,7 +24178,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/optimize-job": { @@ -23802,7 +24232,8 @@ { "Bearer Auth": [] } - ] + ], + "x-public": true } }, "/api/v1/likes/{owner}/{repo}": { @@ -23875,7 +24306,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}": { @@ -23945,7 +24377,8 @@ } } } - } + }, + "x-public": true }, "get": { "tags": [ @@ -24028,7 +24461,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}": { @@ -24123,7 +24557,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24203,7 +24638,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/comments/{owner}/{repo}/{parent_comment_id}/like": { @@ -24277,7 +24713,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24349,7 +24786,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags": { @@ -24406,7 +24844,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24477,7 +24916,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/tags/{tag_name}": { @@ -24539,7 +24979,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -24619,7 +25060,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24687,7 +25129,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/owners": { @@ -24750,7 +25193,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -24821,7 +25265,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -24890,7 +25335,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs": { @@ -24948,7 +25394,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -25010,7 +25457,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}": { @@ -25065,7 +25513,8 @@ } } } - } + }, + "x-public": true }, "patch": { "tags": [ @@ -25128,7 +25577,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25179,7 +25629,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs": { @@ -25238,7 +25689,8 @@ } } } - } + }, + "x-public": true }, "post": { "tags": [ @@ -25301,7 +25753,8 @@ } } } - } + }, + "x-public": true } }, "/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs/{log_id}": { @@ -25356,7 +25809,8 @@ } } } - } + }, + "x-public": true }, "delete": { "tags": [ @@ -25407,7 +25861,8 @@ } } } - } + }, + "x-public": true } }, "/.well-known/oauth-authorization-server": { @@ -25450,10 +25905,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 +25945,80 @@ "Bearer Auth": [] } ], - "description": "Returns the hub environments model for the current tenant.\nReturns 404 if no custom configuration exists.", + "description": "List commits for a repository, with pagination support.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repositories; unauthenticated users can only access public repositories.\nThe include_stats parameter controls whether download and view statistics are computed (defaults to true).", "tags": [ - "hub_environments" + "commits" + ], + "summary": "List commits", + "parameters": [ + { + "description": "Repository owner (tenant handle) or '-' for private repos", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "IncludeStats determines whether to compute num_downloads and num_views", + "name": "include_stats", + "in": "query", + "schema": { + "default": true, + "type": "boolean", + "title": "Include Stats" + } + }, + { + "description": "Limit is the pagination limit", + "name": "limit", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "maximum": 100, + "minimum": 1, + "title": "Limit" + } + }, + { + "description": "Offset is the pagination offset", + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "minimum": 0, + "title": "Offset" + } + }, + { + "description": "Tag filters commits to only those with a specific tag (e.g. \"production\", \"staging\")", + "name": "tag", + "in": "query", + "schema": { + "type": "string", + "title": "Tag" + } + } ], - "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 +26028,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25497,7 +26038,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25507,13 +26048,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true }, "post": { "security": [ @@ -25527,19 +26068,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 +26109,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 +26139,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 +26171,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 +26248,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/commits.CommitResponse" } } } @@ -25635,7 +26258,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25645,7 +26268,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/hub_environments.ErrorResponse" + "$ref": "#/components/schemas/commits.ErrorResponse" } } } @@ -25655,14 +26278,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 +26300,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 +26347,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 +26362,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 +26436,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 +26458,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authn.PublicAuthInfo" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -25833,27 +26471,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 +26481,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 +26491,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 +26511,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 +26533,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ListCommitsResponse" + "$ref": "#/components/schemas/hub_environments.HubEnvironmentsModel" } } } @@ -26031,7 +26543,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -26041,7 +26553,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/commits.ErrorResponse" + "$ref": "#/components/schemas/hub_environments.ErrorResponse" } } } @@ -26051,14 +26563,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 +26595,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 +26647,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 +26671,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 +26733,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 +26749,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 +26841,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 +26942,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 +27058,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 +27186,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 +27280,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 +27363,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendResponse" + "$ref": "#/components/schemas/annotationqueues.ListAnnotationQueueItemsResponse" } } } @@ -26908,7 +27373,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/issues_agent_usage.LCUSpendErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -26918,26 +27383,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 +27413,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 +27454,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 +27516,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 +27584,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 +27628,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 +27653,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 +27688,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 +27750,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 +27791,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 +27853,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 +27894,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 +27936,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 +27968,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 +27994,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 +28071,8 @@ } } }, - "403": { - "description": "BYOC not enabled for this organization", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { @@ -27678,7 +28085,7 @@ } }, "500": { - "description": "Internal server error", + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -27691,117 +28098,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 +28198,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 +28231,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 +28317,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 +28350,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/runs.ErrorResponse" + "$ref": "#/components/schemas/examples.ErrorResponse" } } } @@ -27972,56 +28360,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 +28452,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": { + "type": "array", + "items": { + "type": "string" + }, + "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": { + "type": "array", + "items": { + "type": "string" + }, + "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 +28568,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 +28618,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 +28640,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 +28700,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" + "type": "array", + "items": { + "type": "string" + }, + "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 +28747,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 +28799,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": { + "type": "array", + "items": { + "type": "string" + }, + "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": { + "type": "array", + "items": { + "type": "string" + }, + "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 +28914,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 +28934,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28459,10 +28944,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28472,18 +28954,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 +28976,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 +29008,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 +29038,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28543,29 +29048,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 +29068,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 +29102,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28605,10 +29112,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/evaluators.ErrorResponse" } } } @@ -28618,43 +29122,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 +29172,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 +29276,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 +29300,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 +29343,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 +29378,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28897,7 +29388,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -28907,25 +29398,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 +29428,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 +29582,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 +29608,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 +29626,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/features.ErrorResponse" } } } @@ -29093,17 +29636,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 +29646,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`, `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 +29718,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 +29738,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`, `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- `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.\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` or `default_rate_limit` uses `{key, value: \"\"}`\nso the runtime materializes a per-subject child for every distinct\nsubject of 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; 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` does 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 +29817,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 +29898,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 +29918,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 +29970,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,178 +29990,256 @@ "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", + "204": { + "description": "No Content" + }, + "400": { + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "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" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } + } + }, + "x-public": true + }, + "patch": { + "security": [ + { + "API Key": [] }, - "500": { - "description": "Internal Server Error", + { + "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\": , \"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": [ + "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/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" } } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/gateway_policies.errorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/gateway_policies.errorResponse" + } + } + } + }, + "403": { + "description": "LLM Gateway not enabled, or caller lacks 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/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}" + }, + { + "label": "guard", + "lang": "json", + "source": "{\n \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 5},\n \"enabled\": true\n}" + }, + { + "label": "rate_limit", + "lang": "json", + "source": "{\n \"config\": {\"version\": 1, \"limits\": [{\"metric\": \"requests\", \"window\": \"minute\", \"value\": 100}]},\n \"enabled\": true\n}" + } + ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.CreateAgentRequest" + "$ref": "#/components/schemas/gateway_policies.UpdateGatewayPolicyRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/agents/{agent_id}": { + "/api/v1/platform/hub/repos/{owner}/{repo}/directories": { "get": { "security": [ { @@ -29753,29 +30252,37 @@ "Bearer Auth": [] } ], - "description": "Returns the specified agent: its metadata (name, description,\npermissions, runtime, extras) plus the parsed\nfile tree (system prompt, tools, subagents, skills) at the\nlatest commit. Pass `include_files=true` to also receive the\nraw file map.\n\nResponses include `system_prompt` and `instructions` with the\nsame value; `instructions` is deprecated.", + "description": "Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.", "tags": [ - "agents" + "directories" ], - "summary": "Get an agent", + "summary": "Get directory contents", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, { - "description": "Include the raw file map in the response", - "name": "include_files", + "description": "Commit hash/tag to resolve (defaults to latest)", + "name": "commit", "in": "query", "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string", + "title": "Commit" } } ], @@ -29785,7 +30292,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/directories.GetDirectoryResponse" } } } @@ -29795,7 +30302,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -29805,7 +30315,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -29815,7 +30328,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -29825,7 +30341,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -29835,33 +30354,16 @@ "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" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true + "x-public": true }, "delete": { "security": [ @@ -29875,20 +30377,41 @@ "Bearer Auth": [] } ], - "description": "Deletes the agent and all of its associated state. The call is\nidempotent — deleting a non-existent agent returns 204.", + "description": "Deletes an agent or skill repository and its owned child file repositories.", "tags": [ - "agents" + "directories" ], - "summary": "Delete an agent", + "summary": "Delete directory repository", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", "in": "path", "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository type to delete; a different type is treated as not found", + "name": "repo_type", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "enum": [ + "agent", + "skill" + ], + "title": "Repo Type" } } ], @@ -29901,7 +30424,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -29911,7 +30437,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -29921,45 +30450,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "x-hidden": true - }, - "patch": { + "x-public": true + } + }, + "/api/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { + "post": { "security": [ { "API Key": [] @@ -29971,29 +30501,28 @@ "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": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations.", "tags": [ - "agents" + "directories" ], - "summary": "Update an agent", + "summary": "Create directory commit", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Repository owner handle or '-' for current tenant", + "name": "owner", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } }, { - "description": "Echo the agent's file tree in the response", - "name": "include_files", - "in": "query", + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string" } } ], @@ -30003,7 +30532,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "$ref": "#/components/schemas/directories.CommitResponse" } } } @@ -30013,7 +30542,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -30023,7 +30568,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -30033,17 +30581,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "422": { - "description": "Unprocessable Entity", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -30053,27 +30607,30 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.UpdateAgentRequest" + "$ref": "#/components/schemas/directories.CreateDirectoryCommitRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/fleet/agents/{agent_id}/clone": { - "post": { + "/api/v1/platform/issues": { + "get": { "security": [ { "API Key": [] @@ -30085,39 +30642,122 @@ "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": "**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": [ - "agents" + "issues" ], - "summary": "Clone an agent", + "summary": "[Beta] List issues", "parameters": [ { - "description": "Source agent ID", - "name": "agent_id", - "in": "path", - "required": true, + "description": "Filter by session ID (UUID)", + "name": "session_id", + "in": "query", "schema": { "type": "string", - "format": "uuid" + "title": "Session Id" } }, { - "description": "Echo the new agent's file tree in the response", - "name": "include_files", + "description": "Filter by session name (exact match)", + "name": "session_name", "in": "query", "schema": { - "type": "boolean", - "title": "Include Files" + "type": "string", + "title": "Session Name" + } + }, + { + "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 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)", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.Agent" + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_session_issues.Issue" + } } } } @@ -30127,7 +30767,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30137,7 +30777,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30147,76 +30787,103 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } + } + }, + "x-public": true + } + }, + "/api/v1/platform/issues-agent": { + "get": { + "security": [ + { + "API Key": [] }, - "422": { - "description": "Unprocessable Entity", + { + "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": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" + } } } } }, - "500": { - "description": "Internal Server Error", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } - } - }, - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CloneAgentRequest" + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + } } } } }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/fleet/agents/{agent_id}/connections": { + "/api/v1/platform/issues/{id}": { "get": { "security": [ { @@ -30229,15 +30896,15 @@ "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 one issue for the authenticated tenant.", "tags": [ - "agents" + "issues" ], - "summary": "List an agent's connections", + "summary": "[Beta] Get issue", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Issue ID (UUID)", + "name": "id", "in": "path", "required": true, "schema": { @@ -30251,7 +30918,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ListConnectionsResponse" + "$ref": "#/components/schemas/tracer_session_issues.Issue" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30261,7 +30938,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" } } } @@ -30271,24 +30958,26 @@ "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 + } + }, + "/api/v1/platform/issues/{id}/views": { "post": { "security": [ { @@ -30301,15 +30990,15 @@ "Bearer Auth": [] } ], - "description": "Associates an existing auth token with an agent so the agent can act with that token.", + "description": "**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.", "tags": [ - "agents" + "issues" ], - "summary": "Create a connection for an agent", + "summary": "[Beta] Mark issue viewed", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Issue ID (UUID)", + "name": "id", "in": "path", "required": true, "schema": { @@ -30318,22 +31007,15 @@ } ], "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.Connection" - } - } - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } @@ -30343,57 +31025,47 @@ "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" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "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" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/agents.CreateConnectionRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/agents/{agent_id}/connections/{connection_id}": { - "delete": { + "/api/v1/platform/mcp-vendors": { + "get": { "security": [ { "API Key": [] @@ -30405,70 +31077,48 @@ "Bearer Auth": [] } ], - "description": "Removes a single connection from an agent. The underlying token is not revoked.", + "description": "Returns the catalog of available MCP vendors.", "tags": [ - "agents" - ], - "summary": "Remove an agent's connection", - "parameters": [ - { - "description": "Agent ID", - "name": "agent_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Connection Id", - "name": "connection_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "mcp_vendors" ], + "summary": "List MCP vendors", "responses": { - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "parameters": [] } }, - "/v1/fleet/agents/{agent_id}/health": { + "/api/v1/platform/mcp-vendors/{vendor_slug}": { "get": { "security": [ { @@ -30481,20 +31131,19 @@ "Bearer Auth": [] } ], - "description": "Returns a per-MCP-server health summary for the agent. Each MCP\nserver referenced by the agent (its tools.json plus every\nsubagent's tools.json) is probed in parallel by issuing a single\nMCP initialize JSON-RPC call. Credentials are resolved per\n(tenant, server) using the configured authentication method.\nPer-server failures surface as\n`ok=false` with an `error_code` (auth_failed | unreachable |\ninvalid_response) and a human-readable `error` string.\n`mcp_check.ok` is `true` only when every server returns a\nhealthy response; an empty server list is treated as healthy.", + "description": "Returns vendor metadata and current settings.", "tags": [ - "agents" + "mcp_vendors" ], - "summary": "Check agent MCP-server health", + "summary": "Get MCP vendor", "parameters": [ { - "description": "Agent ID", - "name": "agent_id", + "description": "Vendor slug (e.g. arcade)", + "name": "vendor_slug", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], @@ -30504,7 +31153,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.HealthResponse" + "$ref": "#/components/schemas/mcp_vendors.GetMcpVendorResponse" } } } @@ -30514,36 +31163,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agents.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true } }, - "/v1/fleet/auth-providers": { + "/api/v1/platform/mcp-vendors/{vendor_slug}/account": { "get": { "security": [ { @@ -30556,66 +31205,39 @@ "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": "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": "List OAuth providers", "responses": { "200": { - "description": "OK" - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/auth.errorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" } } } - } - }, - "parameters": [], - "x-hidden": true - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Registers an OAuth provider configuration for your organization. End users can then start authorization sessions against this provider.", - "tags": [ - "fleet auth" - ], - "summary": "Register an OAuth provider", - "responses": { - "201": { - "description": "Created" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30625,64 +31247,27 @@ "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/mcp_vendors.ErrorResponse" } } } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/fleet/auth-providers/discover": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Auto-discovers an OAuth provider's metadata from an MCP server URL and registers it for your organization in one step.", - "tags": [ - "fleet auth" - ], - "summary": "Discover and register an OAuth provider", - "responses": { - "201": { - "description": "Created" }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30692,17 +31277,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 +31299,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 +31379,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30825,15 +31389,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 +31411,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 +31429,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 +31443,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 +31483,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 +31500,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 +31515,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/credentials.ErrorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } @@ -30964,7 +31525,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 +31545,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 +31575,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/auth.errorResponse" + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + } + } + } + }, + "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 +31677,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 +31699,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 +31709,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 +31751,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 +31791,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 +31843,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 +31890,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 +31907,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 +31925,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,83 +31947,25 @@ "Bearer Auth": [] } ], - "description": "Returns integrations available to the workspace.", + "description": "Lists the OAuth clients owned by the caller's organization.", "tags": [ - "fleet integrations" - ], - "summary": "List integrations", - "parameters": [ - { - "description": "Filter by source (e.g. langchain, custom)", - "name": "source", - "in": "query", - "schema": { - "type": "string", - "title": "Source" - } - }, - { - "description": "Items per page (default 20, max 100)", - "name": "page_size", - "in": "query", - "schema": { - "type": "integer", - "title": "Page Size" - } - }, - { - "description": "Opaque pagination cursor", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" - } - } + "oauth" ], + "summary": "List OAuth clients", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ListResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/oauth.OAuthClientListResponse" } } } } }, - "x-hidden": true + "x-public": true, + "parameters": [] }, "post": { "security": [ @@ -31506,11 +31979,11 @@ "Bearer Auth": [] } ], - "description": "Registers a new custom integration. Type is forced to CUSTOM.", + "description": "Registers a new OAuth 2.0 / OIDC client owned by the caller's organization. For confidential clients the response includes a client_secret that is shown only once.", "tags": [ - "fleet integrations" + "oauth" ], - "summary": "Create a custom integration", + "summary": "Create an OAuth client", "parameters": [], "responses": { "201": { @@ -31518,7 +31991,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } @@ -31528,17 +32001,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "$ref": "#/components/schemas/errutil.UserError" } } } @@ -31548,26 +32011,26 @@ "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 +32044,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 +32064,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 +32074,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 +32094,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 +32113,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 +32138,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 +32159,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientView" } } } @@ -31738,27 +32169,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 +32179,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 +32211,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 +32233,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.Integration" + "$ref": "#/components/schemas/oauth.OAuthClientCredentialsResponse" } } } @@ -31832,17 +32243,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 +32313,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": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/integrations.ErrorResponse" + "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 +32395,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 +32430,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 +32557,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 +32664,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 +32689,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 +32756,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 +32774,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,3505 +32832,120 @@ ], "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" - ], - "summary": "List MCP tools", - "parameters": [ - { - "description": "MCP server URL to fetch tools from", - "name": "url", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Url" - } - }, - { - "description": "OAuth provider ID for token-based auth", - "name": "oauth_provider_id", - "in": "query", - "schema": { - "type": "string", - "title": "Oauth Provider Id" - } - }, - { - "description": "Skip cache and fetch fresh tools", - "name": "force_refresh", - "in": "query", - "schema": { - "type": "boolean", - "title": "Force Refresh" - } - }, - { - "description": "User ID override (service-key callers)", - "name": "ls_user_id", - "in": "query", - "schema": { - "type": "string", - "title": "Ls User Id" - } - } + "Organizations" ], + "summary": "Get current organization info", "responses": { "200": { - "description": "OK", + "description": "Organization info", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcptools.ListToolsResponse" + "$ref": "#/components/schemas/orgs.OrganizationInfo" } } } }, "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcptools.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/models": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns models available for Fleet agent configuration.", - "tags": [ - "fleet" - ], - "summary": "List Fleet models", - "parameters": [ - { - "description": "Include the served Fleet default model group.", - "name": "include_served_default", - "in": "query", - "schema": { - "type": "boolean", - "title": "Include Served Default" - } - }, - { - "description": "Include optional OSS model group.", - "name": "include_oss_models", - "in": "query", - "schema": { - "type": "boolean", - "title": "Include Oss Models" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/models.ListModelsResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/models.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/skills": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the skills in the caller's workspace, paginated.", - "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" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ListSkillsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant 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.", - "tags": [ - "skills" - ], - "summary": "Create a skill", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.Skill" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.CreateSkillRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/skills/{skillID}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the specified skill, including its full file tree.", - "tags": [ - "skills" - ], - "summary": "Get a skill", - "parameters": [ - { - "description": "Skill ID", - "name": "skillID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.Skill" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes the skill and all of its files. Idempotent: deleting an\nalready-deleted skill returns 204.", - "tags": [ - "skills" - ], - "summary": "Delete a skill", - "parameters": [ - { - "description": "Skill ID", - "name": "skillID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant 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.", - "tags": [ - "skills" - ], - "summary": "Update a skill", - "parameters": [ - { - "description": "Skill ID", - "name": "skillID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.Skill" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/skills.UpdateSkillRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Create a thread, optionally bound to an agent. Subsequent runs are started on it via `POST /v1/fleet/threads/{thread_id}/runs/stream`.", - "tags": [ - "fleet threads" - ], - "summary": "Create a thread", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.Thread" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CreateThreadRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/bulk-modify": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "fleet threads" - ], - "summary": "Bulk update threads", - "parameters": [], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.BulkUpdateThreadsRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/count": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns the caller's inbox `attention_count`: the number of threads needing user action — unread idle threads (`metadata.read_status=false`) plus interrupted plus errored. Scoped to deep-agent threads (`graph_id=deep_agent`); test-run threads (`options.test_run=true`) are always excluded.", - "tags": [ - "internal" - ], - "summary": "Inbox attention count", - "parameters": [ - { - "description": "Optional agent UUID to scope all buckets to a single agent", - "name": "agent_id", - "in": "query", - "schema": { - "type": "string", - "format": "uuid", - "title": "Agent Id" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CountResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/runs": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "fleet threads" - ], - "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" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "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" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.CreateThreadAndRunRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/search": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Searches threads. Request and response bodies are proxied unchanged to the upstream agent runtime.", - "tags": [ - "fleet threads" - ], - "summary": "Search threads", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object" - } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns thread metadata and status for the given thread id.", - "tags": [ - "fleet threads" - ], - "summary": "Get thread", - "parameters": [ - { - "description": "Thread id", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes a thread and all of its runs. Idempotent: deleting a thread that does not exist returns 204.", - "tags": [ - "fleet threads" - ], - "summary": "Delete thread", - "parameters": [ - { - "description": "Thread id", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates thread fields such as title and metadata. Omitted fields are unchanged; null values clear fields where supported.", - "tags": [ - "fleet threads" - ], - "summary": "Update a thread", - "parameters": [ - { - "description": "Thread id", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "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" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.UpdateThreadRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/resolve-interrupt": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "fleet threads" - ], - "summary": "Resolve an interrupted thread", - "parameters": [ - { - "description": "Thread id", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "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" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/runs": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "fleet threads" - ], - "summary": "Create thread run", - "parameters": [ - { - "description": "Thread id", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/threads/{thread_id}/runs/stream": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Start a run on a thread and stream its output as Server-Sent Events. The connection stays open until the run completes; the client is responsible for closing it.", - "tags": [ - "fleet threads" - ], - "summary": "Stream a thread run", - "parameters": [ - { - "description": "Thread ID", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "SSE event stream", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/threads.StreamRunRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/trigger-templates": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Lists trigger templates with their config schema and auth requirements (paginated).", - "tags": [ - "fleet trigger-templates" - ], - "summary": "List trigger templates", - "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", - "schema": { - "type": "string", - "title": "Cursor" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "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-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" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/triggers": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Lists triggers for the calling user (paginated). Filter by agent_id and/or template_id.", - "tags": [ - "fleet triggers" - ], - "summary": "List triggers", - "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", - "schema": { - "type": "string", - "title": "Cursor" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.TriggerListResponse" - } - } - } - }, - "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-hidden": true - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Creates a trigger for an agent and returns the created trigger instance.", - "tags": [ - "fleet triggers" - ], - "summary": "Create trigger", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.Trigger" - } - } - } - }, - "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" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.CreateTriggerRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/fleet/triggers/{trigger_id}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Returns a single trigger by id for the calling user.", - "tags": [ - "fleet triggers" - ], - "summary": "Get trigger", - "parameters": [ - { - "description": "Trigger id (UUID)", - "name": "trigger_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.Trigger" - } - } - } - }, - "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" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.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-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.", - "tags": [ - "fleet triggers" - ], - "summary": "Update trigger", - "parameters": [ - { - "description": "Trigger id (UUID)", - "name": "trigger_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.Trigger" - } - } - } - }, - "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" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/triggers.UpdateTriggerRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/alerts/{session_id}": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "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": { - "type": "string" - } - } - ], - "responses": { - "201": { - "description": "Alert rule created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.AlertRuleResponse" - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "429": { - "description": "Alert Rule Limit Reached", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.CreateAlertRuleRequest" - } - } - } - } - } - }, - "/v1/platform/alerts/{session_id}/test": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Tests an alert action which will fire a notification to all configured recipients if the configuration is valid.", - "tags": [ - "alert_rules" - ], - "summary": "Test an alert action to determine if configuration is valid", - "parameters": [ - { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Alert rule ID", - "name": "alert_rule_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Alert action fired successfully", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - } - } - } - }, - "/v1/platform/alerts/{session_id}/{alert_rule_id}": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Gets an alert rule.", - "tags": [ - "alert_rules" - ], - "summary": "Get an alert rule", - "parameters": [ - { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Alert rule ID", - "name": "alert_rule_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Alert rule", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.AlertRuleResponse" - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Deletes an alert rule", - "tags": [ - "alert_rules" - ], - "summary": "Delete an alert rule", - "parameters": [ - { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Alert rule ID", - "name": "alert_rule_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Alert rule deleted", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Updates an alert rule.", - "tags": [ - "alert_rules" - ], - "summary": "Update an alert rule", - "parameters": [ - { - "description": "Session ID", - "name": "session_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Alert rule ID", - "name": "alert_rule_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Alert rule updated", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "allOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - ] - } - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/alerts.UpdateAlertRuleRequest" - } - } - } - } - } - }, - "/v1/platform/annotation-queues/{queue_id}/reviewers": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Assigns a single identity as a reviewer for the queue. Idempotent.", - "tags": [ - "annotation_queues" - ], - "summary": "Add a reviewer to an annotation queue", - "parameters": [ - { - "description": "Queue ID", - "name": "queue_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/annotationqueues.AddReviewerResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/annotationqueues.AddReviewerRequest" - } - } - } - } - } - }, - "/v1/platform/annotation-queues/{queue_id}/reviewers/{identity_id}": { - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Unassigns an identity as a reviewer for the queue. Idempotent.", - "tags": [ - "annotation_queues" - ], - "summary": "Remove a reviewer from an annotation queue", - "parameters": [ - { - "description": "Queue ID", - "name": "queue_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Identity ID of the reviewer to remove", - "name": "identity_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - } - } - }, - "/v1/platform/datasets/examples/delete": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "This endpoint hard deletes *all* versions of a dataset example(s).\nDeletion is performed by setting inputs, outputs, and metadata to null and deleting attachment files while keeping the example ID, dataset ID, and creation timestamp.\nIMPORTANT: attachment files can take up to 7 days to be deleted. inputs, outputs and metadata are nullified immediately.", - "tags": [ - "examples" - ], - "summary": "Hard Delete Examples", - "parameters": [], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ExamplesDeletedResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.DeleteExamplesRequest" - } - } - } - } - } - }, - "/v1/platform/datasets/{dataset_id}/examples": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "This endpoint allows clients to upload examples to a specified dataset by sending a multipart/form-data POST request.\nEach form part contains either JSON-encoded data or binary attachment files associated with an example.", - "tags": [ - "examples" - ], - "summary": "Upload Examples", - "parameters": [ - { - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ExamplesCreatedResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.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" - ] - } - } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "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": [ - "examples" - ], - "summary": "Update Examples", - "parameters": [ - { - "description": "Dataset ID", - "name": "dataset_id", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ExamplesUpdatedResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "409": { - "description": "Conflict", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/examples.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "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}" - ] - } - } - } - } - } - }, - "/v1/platform/engine/trial-response": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Organization ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Records a user's response to the Engine trial ending modal.\naction must be \"acknowledge\", \"opt_out\", or \"mark_seen\".", - "tags": [ - "engine-trial" - ], - "summary": "Respond to Engine trial ending notice", - "parameters": [], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, - "400": { - "description": "Bad Request", + "description": "Invalid organization ID", "content": { "application/json": { "schema": { @@ -35944,21 +32970,8 @@ } } }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { @@ -35971,514 +32984,235 @@ } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/engine_trial.trialResponseRequest" - } - } - } - } + "x-public": true, + "parameters": [] } }, - "/v1/platform/evaluators": { + "/api/v1/platform/orgs/current/members": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.", + "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", "tags": [ - "evaluators" + "orgs" ], - "summary": "List evaluators", + "summary": "List org members with workspace roles", "parameters": [ { - "description": "Filter by evaluator type", - "name": "type", + "description": "Page size (default 50, max 500)", + "name": "limit", "in": "query", "schema": { - "type": "string", - "title": "Type" + "type": "integer", + "title": "Limit" } }, { - "description": "Filter by name substring (also searches creator names)", - "name": "name_contains", + "description": "Page offset (default 0)", + "name": "offset", "in": "query", "schema": { - "type": "string", - "title": "Name Contains" + "type": "integer", + "title": "Offset" } }, { - "description": "Filter by tag value IDs", - "name": "tag_value_id", + "description": "Filter: true = only active members; false = only pending members", + "name": "active_is", "in": "query", - "style": "form", - "explode": false, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Tag Value Id" + "type": "boolean", + "title": "Active Is" } }, { - "description": "Filter by feedback key", - "name": "feedback_key", + "description": "Filter: true = only pending members; false = only active members", + "name": "pending_is", "in": "query", "schema": { - "type": "string", - "title": "Feedback Key" + "type": "boolean", + "title": "Pending Is" } }, { - "description": "Filter by resource IDs", - "name": "resource_id", + "description": "Glob filter on display name; use * as wildcard (repeatable, matches any)", + "name": "name_like", "in": "query", "style": "form", - "explode": false, + "explode": true, "schema": { + "type": "array", "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" + "title": "Name Like" } }, { - "description": "Maximum number of results (1-100)", - "name": "limit", + "description": "Glob filter on email; use * as wildcard (repeatable, matches any)", + "name": "email_like", "in": "query", + "style": "form", + "explode": true, "schema": { - "type": "integer", - "default": 100, - "title": "Limit" + "type": "array", + "items": { + "type": "string" + }, + "title": "Email Like" } }, { - "description": "Offset for pagination", - "name": "offset", + "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": { - "type": "integer", - "default": 0, - "title": "Offset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "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" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - } - } - }, - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Create a new LLM or code evaluator for the current workspace.", - "tags": [ - "evaluators" - ], - "summary": "Create evaluator", - "parameters": [], - "responses": { - "201": { - "description": "Created", - "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" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.CreateEvaluatorRequest" - } + "type": "array", + "items": { + "type": "string" + }, + "title": "Workspace Name Like" } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] }, { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Delete multiple evaluators by their IDs. Returns per-item success/failure.", - "tags": [ - "evaluators" - ], - "summary": "Bulk delete evaluators", - "parameters": [ - { - "description": "Evaluator IDs to delete", - "name": "evaluator_ids", + "description": "Glob filter on organization role name; use * as wildcard (repeatable, matches any)", + "name": "organization_role_like", "in": "query", - "required": true, "style": "form", - "explode": false, + "explode": true, "schema": { + "type": "array", "items": { "type": "string" }, - "type": "array", - "title": "Evaluator Ids" + "title": "Organization Role Like" } }, { - "description": "When true, delete all run rules for this evaluator before deleting the evaluator", - "name": "delete_run_rules", + "description": "Glob filter on workspace role name; use * as wildcard (repeatable, matches any)", + "name": "workspace_role_like", "in": "query", + "style": "form", + "explode": true, "schema": { - "type": "boolean", - "title": "Delete Run Rules" + "type": "array", + "items": { + "type": "string" + }, + "title": "Workspace Role Like" } } ], "responses": { "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.BulkDeleteEvaluatorsResponse" - } - } - } - }, - "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" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { + "description": "Org members", + "headers": { + "X-Members-Anonymity-Restricted": { + "description": "Set to 'true' when the response was restricted by the organization's anonymity setting.", "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "string" } - } - } - } - } - } - }, - "/v1/platform/evaluators/spend": { - "get": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "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.", - "tags": [ - "evaluators" - ], - "summary": "Get evaluator spend", - "parameters": [ - { - "description": "Aggregation mode: 'evaluator', 'resource', or 'run_rule'. Mutually exclusive with entity filters.", - "name": "group_by", - "in": "query", - "schema": { - "type": "string", - "title": "Group By" - } - }, - { - "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", - "required": true, - "schema": { - "type": "string", - "title": "Period Start" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { + }, + "X-Members-List-All-Workspaces": { + "description": "true if caller has organization:manage", "schema": { - "$ref": "#/components/schemas/evaluators.GetEvaluatorSpendResponse" + "type": "string" } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { + }, + "X-Pagination-Total": { + "description": "Total number of matching members", "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "string" } } - } - }, - "401": { - "description": "Unauthorized", + }, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/orgs.OrgMemberEnriched" + } } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true } }, - "/v1/platform/evaluators/{evaluator_id}": { - "get": { + "/api/v1/platform/orgs/current/roles/{role_id}/access-policies": { + "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Retrieve a single evaluator by its ID.", + "description": "Attaches one or more access policies to a specific role. The request body must contain an array of access policy IDs.", "tags": [ - "evaluators" + "access_policies" ], - "summary": "Get evaluator", + "summary": "Attach access policies to a role", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Role ID", + "name": "role_id", "in": "path", "required": true, "schema": { @@ -36487,66 +33221,80 @@ } ], "responses": { - "200": { - "description": "OK", + "204": { + "description": "Access policies attached successfully" + }, + "400": { + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.Evaluator" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Role or access policy not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" + } + } + } } }, "delete": { @@ -36555,21 +33303,21 @@ "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Delete an evaluator. When delete_run_rules is true, all run rules referencing this evaluator are deleted first (same tenant). Associated llm_evaluators and code_evaluators rows are removed by foreign-key cascade when the evaluator row is deleted.", + "description": "Detaches one or more access policies from a specific role.", "tags": [ - "evaluators" + "access_policies" ], - "summary": "Delete evaluator", + "summary": "Detach access policies from a role", "parameters": [ { - "description": "Evaluator ID", - "name": "evaluator_id", + "description": "Role ID", + "name": "role_id", "in": "path", "required": true, "schema": { @@ -36577,126 +33325,117 @@ } }, { - "description": "When true, delete all run rules for this evaluator before deleting the evaluator", - "name": "delete_run_rules", + "description": "Access policy IDs to detach", + "name": "access_policy_ids", "in": "query", + "required": true, + "style": "form", + "explode": true, "schema": { - "type": "boolean", - "title": "Delete Run Rules" + "type": "array", + "items": { + "type": "string" + }, + "title": "Access Policy Ids" } } ], "responses": { "204": { - "description": "No Content" + "description": "Access policies detached successfully" }, "400": { - "description": "Bad Request", + "description": "Bad request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Role not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Semantic validation failed", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "patch": { + }, + "x-public": true + } + }, + "/api/v1/platform/orgs/current/scim/tokens": { + "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Update an existing evaluator's name, LLM configuration, or code configuration.", + "description": "List all SCIM bearer tokens for the current organization. The full token values are not returned.", "tags": [ - "evaluators" - ], - "summary": "Update evaluator", - "parameters": [ - { - "description": "Evaluator ID", - "name": "evaluator_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "SCIM Tokens" ], + "summary": "List SCIM tokens", "responses": { "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.UpdateEvaluatorResponse" - } - } - } - }, - "400": { - "description": "Bad Request", + "description": "List of SCIM tokens", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/scim.ScimTokenResponse" + } } } } @@ -36706,82 +33445,70 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "Forbidden - requires OrganizationRead permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/evaluators.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/evaluators.UpdateEvaluatorRequest" - } - } - } - } - } - }, - "/v1/platform/features": { - "get": { + "x-public": true, + "parameters": [] + }, + "post": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns a consolidated view of default models and disabled models per feature for the workspace.", + "description": "Create a new SCIM bearer token for the current organization. The full token value is only returned once upon creation.", "tags": [ - "features" + "SCIM Tokens" ], - "summary": "List feature configurations", + "summary": "Create a SCIM token", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created SCIM token with full token value", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/features.FeatureConfig" - } + "$ref": "#/components/schemas/scim.ScimTokenSensitiveResponse" } } } @@ -36791,57 +33518,77 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" + } + } + } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.CreateScimTokenPayload" + } + } + } + } } }, - "/v1/platform/features/{feature}/default-model": { - "put": { + "/api/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { + "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Sets or replaces the default model for a feature in the workspace.", + "description": "Retrieve a specific SCIM token by ID for the current organization. The full token value is not returned.", "tags": [ - "features" + "SCIM Tokens" ], - "summary": "Set default model for a feature", + "summary": "Get a SCIM token", "parameters": [ { - "description": "Feature name", - "name": "feature", + "description": "SCIM Token ID", + "name": "scim_token_id", "in": "path", "required": true, "schema": { @@ -36850,15 +33597,12 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } @@ -36868,130 +33612,75 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", + "description": "Forbidden - requires OrganizationRead permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.UpsertDefaultModelRequest" - } - } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Removes the default model for a feature in the workspace.", - "tags": [ - "features" - ], - "summary": "Delete default model for a feature", - "parameters": [ - { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content" }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "503": { + "description": "Service unavailable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } } - } - } - }, - "/v1/platform/features/{feature}/disabled-models": { - "put": { + }, + "x-public": true + }, + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Adds a model to the disabled list for a feature in the workspace.", + "description": "Delete a SCIM bearer token from the current organization.", "tags": [ - "features" + "SCIM Tokens" ], - "summary": "Disable a model for a feature", + "summary": "Delete a SCIM token", "parameters": [ { - "description": "Feature name", - "name": "feature", + "description": "SCIM Token ID", + "name": "scim_token_id", "in": "path", "required": true, "schema": { @@ -37001,92 +33690,82 @@ ], "responses": { "204": { - "description": "No Content" + "description": "No content - token deleted successfully" }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Token not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/features.DisableModelRequest" + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" + } } } } - } - } - }, - "/v1/platform/features/{feature}/disabled-models/{model}": { - "delete": { + }, + "x-public": true + }, + "patch": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Removes a model from the disabled list for a feature in the workspace.", + "description": "Update the description of an existing SCIM token for the current organization.", "tags": [ - "features" + "SCIM Tokens" ], - "summary": "Re-enable a disabled model for a feature", + "summary": "Update a SCIM token", "parameters": [ { - "description": "Feature name", - "name": "feature", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Model name (URL-encoded)", - "name": "model", + "description": "SCIM Token ID", + "name": "scim_token_id", "in": "path", "required": true, "schema": { @@ -37095,15 +33774,12 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "Updated SCIM token details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ScimTokenResponse" } } } @@ -37113,36 +33789,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "403": { - "description": "Forbidden", + "description": "Forbidden - requires OrganizationManage permission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" + } + } + } + }, + "404": { + "description": "Token not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" } } } }, "500": { - "description": "Internal Server Error", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/features.ErrorResponse" + "$ref": "#/components/schemas/scim.ErrorResponse" } } } + }, + "503": { + "description": "Service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.ErrorResponse" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" + } + } } } } }, - "/v1/platform/fleet-webhooks/{webhook_id}/run": { - "post": { + "/api/v1/platform/sessions/{sessionID}/agent-versions": { + "get": { "security": [ { "API Key": [] @@ -37154,15 +33861,15 @@ "Bearer Auth": [] } ], - "description": "Sends the request payload to the webhook's stored URL and returns the upstream response in a JSON envelope.", + "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", "tags": [ - "fleet_webhooks" + "sessions" ], - "summary": "Run a fleet webhook", + "summary": "List agent versions for a project", "parameters": [ { - "description": "Webhook UUID", - "name": "webhook_id", + "description": "Tracing project (session) UUID", + "name": "sessionID", "in": "path", "required": true, "schema": { @@ -37172,60 +33879,49 @@ ], "responses": { "200": { - "description": "OK", + "description": "Agent versions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/agent_builder_webhooks.WebhookTestResult" + "type": "array", + "items": { + "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" + } } } } }, "400": { - "description": "invalid request", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "webhook not found", + "description": "Invalid session ID", "content": { "application/json": { "schema": { - "type": "string" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "502": { - "description": "webhook request failed", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "string" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/mcp-servers": { + "/api/v1/platform/sessions/{session_id}/issues-agent": { "get": { "security": [ { @@ -37238,16 +33934,17 @@ "Bearer Auth": [] } ], - "description": "Returns MCP servers visible to the caller after ABAC filtering. Service-key callers may pass X-Ls-User-Id to resolve per-user OAuth providers.", + "description": "**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 mcp" + "issues-agent" ], - "summary": "List MCP servers", + "summary": "[Beta] Get the issues agent config for a session", "parameters": [ { - "description": "User UUID for per-user OAuth resolution (service keys)", - "name": "X-Ls-User-Id", - "in": "header", + "description": "Tracer session ID (UUID)", + "name": "session_id", + "in": "path", + "required": true, "schema": { "type": "string" } @@ -37259,10 +33956,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" - } + "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" } } } @@ -37272,7 +33966,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37282,7 +33976,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37292,33 +33986,33 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true }, "post": { "security": [ @@ -37332,19 +34026,29 @@ "Bearer Auth": [] } ], - "description": "Registers a new MCP server configuration for the workspace.", + "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 mcp" + "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": "Create MCP server", - "parameters": [], "responses": { "201": { "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" } } } @@ -37354,7 +34058,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37364,7 +34068,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37374,7 +34078,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37384,7 +34088,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37394,37 +34098,25 @@ "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/tracer_session_issues_agent.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.CreateMcpServerPayload" + "$ref": "#/components/schemas/tracer_session_issues_agent.CreateIssuesAgentRequest" } } } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/mcp-servers/{mcp_server_id}": { - "get": { + } + }, + "delete": { "security": [ { "API Key": [] @@ -37436,15 +34128,15 @@ "Bearer Auth": [] } ], - "description": "Returns a single MCP server by ID.", + "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nRemoves the agent config, its issues, and the agent-overview hub repo.", "tags": [ - "fleet mcp" + "issues-agent" ], - "summary": "Get MCP server", + "summary": "[Beta] Delete the issues agent for a session", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -37453,22 +34145,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/tracer_session_issues_agent.ErrorResponse" } } } @@ -37478,7 +34163,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37488,7 +34173,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37498,7 +34183,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37508,25 +34193,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/tracer_session_issues_agent.ErrorResponse" } } } } }, - "x-hidden": true + "x-public": true }, - "delete": { + "patch": { "security": [ { "API Key": [] @@ -37538,15 +34213,15 @@ "Bearer Auth": [] } ], - "description": "Deletes an MCP server configuration.", + "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 mcp" + "issues-agent" ], - "summary": "Delete MCP server", + "summary": "[Beta] Update the issues agent config for a session", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -37555,15 +34230,22 @@ } ], "responses": { - "204": { - "description": "No Content" + "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/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37573,7 +34255,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37583,7 +34265,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37593,7 +34275,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37603,24 +34285,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.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/tracer_session_issues_agent.UpdateIssuesAgentRequest" } } } - }, - "x-hidden": true - }, + } + } + }, + "/api/v1/platform/sessions/{session_id}/issues-agent/overview": { "patch": { "security": [ { @@ -37633,15 +34317,15 @@ "Bearer Auth": [] } ], - "description": "Partially updates an MCP server. Tool list cache is invalidated on success.", + "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 mcp" + "issues-agent" ], - "summary": "Update MCP server", + "summary": "[Beta] Save the agent overview for a session", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_id", + "description": "Tracer session ID (UUID)", + "name": "session_id", "in": "path", "required": true, "schema": { @@ -37655,7 +34339,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.McpServer" + "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewResponse" } } } @@ -37665,7 +34349,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37675,7 +34359,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37685,7 +34369,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37695,7 +34379,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" } } } @@ -37705,36 +34389,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/tracer_session_issues_agent.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.UpdateMcpServerPayload" + "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewRequest" } } } - }, - "x-hidden": true + } } }, - "/v1/platform/fleet/mcp-servers/{mcp_server_id}/oauth-provider": { + "/api/v1/platform/sessions/{session_id}/issues-agent/webhooks/{id}/roll-secret": { "post": { "security": [ { @@ -37747,15 +34421,24 @@ "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": "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 mcp" + "issues-agent" ], - "summary": "Register per-user MCP OAuth provider", + "summary": "Roll an issues agent webhook signing secret", "parameters": [ { - "description": "MCP server ID", - "name": "mcp_server_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": { @@ -37769,7 +34452,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderResponse" + "$ref": "#/components/schemas/tracer_session_issues_agent_webhooks.IssuesAgentWebhook" } } } @@ -37779,7 +34462,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -37789,57 +34475,59 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "Service Unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_servers.McpServerAPIError" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/langchain_com_smith_fleet_mcp_servers.RegisterOAuthProviderPayload" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/providers/github-app/auth": { - "post": { + "/api/v1/platform/sessions/{session_id}/issues/views": { + "get": { "security": [ { "API Key": [] @@ -37851,18 +34539,29 @@ "Bearer Auth": [] } ], - "description": "Generate a GitHub OAuth link for the current user to connect their GitHub account.", + "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 github-app" + "issues" + ], + "summary": "[Beta] List viewed issues for a session", + "parameters": [ + { + "description": "Session ID (UUID)", + "name": "session_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Get GitHub OAuth authorization link", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserAuthLinkResponse" + "$ref": "#/components/schemas/tracer_session_issues.ListViewsResponse" } } } @@ -37872,27 +34571,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } }, - "503": { - "description": "Service Unavailable", + "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/github_app.ErrorResponse" + "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true } }, - "/v1/platform/fleet/providers/github-app/connection": { + "/api/v1/platform/tools": { "get": { "security": [ { @@ -37905,18 +34623,47 @@ "Bearer Auth": [] } ], - "description": "Return the current user's GitHub connection status and metadata.", + "description": "Returns a paginated list of tools in the workspace.", "tags": [ - "fleet github-app" + "tools" + ], + "summary": "List tools", + "parameters": [ + { + "description": "Maximum number of tools to return", + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Number of tools to skip", + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Search query to filter tools by name or description", + "name": "query", + "in": "query", + "schema": { + "type": "string", + "title": "Query" + } + } ], - "summary": "Get GitHub user connection status", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "$ref": "#/components/schemas/tools.ListToolsResponse" } } } @@ -37926,52 +34673,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.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", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -37981,16 +34703,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true + "x-public": true }, - "patch": { + "post": { "security": [ { "API Key": [] @@ -38002,19 +34723,19 @@ "Bearer Auth": [] } ], - "description": "Update the actor preference for the current user's GitHub connection.", + "description": "Creates a new tool in the workspace.", "tags": [ - "fleet github-app" + "tools" ], - "summary": "Update GitHub user connection", + "summary": "Create a tool", "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserConnectionStatus" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -38024,110 +34745,66 @@ "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/tools.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } - } - }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.UpdateUserConnectionRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/install": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Generate a link to install the GitHub App for the current organization.", - "tags": [ - "fleet github-app" - ], - "summary": "Get GitHub App install link", - "responses": { - "200": { - "description": "OK", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.InstallLinkResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } - }, - "503": { - "description": "Service Unavailable", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.CreateToolPayload" } } } - }, - "parameters": [], - "x-hidden": true + } } }, - "/v1/platform/fleet/providers/github-app/installations": { + "/api/v1/platform/tools/id/{id}": { "get": { "security": [ { @@ -38140,21 +34817,29 @@ "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.", + "description": "Returns a tool identified by its UUID.", "tags": [ - "fleet github-app" + "tools" + ], + "summary": "Get a tool by ID", + "parameters": [ + { + "description": "Tool UUID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "List GitHub App installations", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "$ref": "#/components/schemas/tools.Tool" } } } @@ -38164,64 +34849,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } - } - }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations/refresh": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "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.", - "tags": [ - "fleet github-app" - ], - "summary": "Refresh GitHub App installations", - "responses": { - "200": { - "description": "OK", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Installation" - } + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -38231,27 +34879,24 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "parameters": [], - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations/{id}": { + "x-public": true + }, "delete": { "security": [ { @@ -38264,14 +34909,14 @@ "Bearer Auth": [] } ], - "description": "Remove a GitHub App installation link for the current user.", + "description": "Deletes a tool identified by its UUID.", "tags": [ - "fleet github-app" + "tools" ], - "summary": "Delete a GitHub App installation", + "summary": "Delete a tool by ID", "parameters": [ { - "description": "Installation ID", + "description": "Tool UUID", "name": "id", "in": "path", "required": true, @@ -38289,7 +34934,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$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" } } } @@ -38299,17 +34964,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/installations/{id}/repos": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -38321,14 +34994,14 @@ "Bearer Auth": [] } ], - "description": "Return repositories accessible to the specified GitHub App installation.", + "description": "Updates an existing tool identified by its UUID.", "tags": [ - "fleet github-app" + "tools" ], - "summary": "List repositories for a GitHub App installation", + "summary": "Update a tool by ID", "parameters": [ { - "description": "Installation ID", + "description": "Tool UUID", "name": "id", "in": "path", "required": true, @@ -38343,10 +35016,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/github_app.Repository" - } + "$ref": "#/components/schemas/tools.Tool" } } } @@ -38356,136 +35026,66 @@ "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/tools.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/tokens": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Return a short-lived GitHub access token scoped to the given repository.", - "tags": [ - "fleet github-app" - ], - "summary": "Request a GitHub access token", - "parameters": [], - "responses": { - "200": { - "description": "OK", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.UserTokenResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/github_app.TokenRequest" - } - } - } - }, - "x-hidden": true - } - }, - "/v1/platform/fleet/providers/github-app/webhooks": { - "post": { - "description": "Process GitHub App webhooks (installation lifecycle, installation_repositories). GitHub may deliver the same event more than once; handling re-applies the current repository-selection state and is safe to repeat.", - "tags": [ - "fleet github-app" - ], - "summary": "Handle GitHub App webhook events", - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/github_app.ErrorResponse" - } + "$ref": "#/components/schemas/tools.UpdateToolPayload" } } } - }, - "parameters": [], - "x-hidden": true + } } }, - "/v1/platform/fleet/usage/agents": { + "/api/v1/platform/tools/{handle}": { "get": { "security": [ { @@ -38498,60 +35098,19 @@ "Bearer Auth": [] } ], - "description": "Returns the top agents in the workspace with cost data for the given time window. Defaults to sorting by cost descending; pass sort_by and sort_order to change. Data is sourced entirely from ClickHouse run metadata.", + "description": "Returns a tool identified by its handle.", "tags": [ - "fleet usage" + "tools" ], - "summary": "List fleet agents with usage", + "summary": "Get a tool by handle", "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": "Tool handle", + "name": "handle", + "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" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_order", - "in": "query", - "schema": { - "type": "string", - "default": "desc", - "title": "Sort Order" + "type": "string" } } ], @@ -38561,7 +35120,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.AgentUsageResponse" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -38571,112 +35130,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/tools.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/tools.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -38686,17 +35170,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/platform/fleet/usage/tools": { - "get": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] @@ -38708,80 +35190,62 @@ "Bearer Auth": [] } ], - "description": "Returns the top tools in the workspace with run counts, latency, and agent counts for the given time window. Defaults to sorting by runs descending; pass sort_by and sort_order to change.", + "description": "Deletes a tool identified by its handle.", "tags": [ - "fleet usage" + "tools" ], - "summary": "List fleet tools with usage", + "summary": "Delete a tool by handle", "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": "Tool handle", + "name": "handle", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "Start Time" + "type": "string" } + } + ], + "responses": { + "204": { + "description": "No Content" }, - { - "description": "End of window (ISO8601)", - "name": "end_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "End Time" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.ErrorResponse" + } + } } }, - { - "description": "Sort field (runs, avg_latency_ms, agent_count, last_used)", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "default": "runs", - "title": "Sort By" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.ErrorResponse" + } + } } }, - { - "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.ToolUsageResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.UserError" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -38791,17 +35255,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/errutil.InternalError" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "x-hidden": true - } - }, - "/v1/platform/fleet/usage/users": { - "get": { + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -38813,60 +35275,19 @@ "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.", + "description": "Updates an existing tool identified by its handle.", "tags": [ - "fleet usage" + "tools" ], - "summary": "List fleet users with usage", + "summary": "Update a tool by handle", "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": "Tool handle", + "name": "handle", + "in": "path", "required": true, "schema": { - "type": "string", - "title": "End Time" - } - }, - { - "description": "Sort field (cost, runs, agent_count, last_used, first_used)", - "name": "sort_by", - "in": "query", - "schema": { - "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" + "type": "string" } } ], @@ -38876,7 +35297,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/usage.UserUsageResponse" + "$ref": "#/components/schemas/tools.Tool" } } } @@ -38886,70 +35307,37 @@ "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/tools.ErrorResponse" } } } - } - }, - "x-hidden": true - } - }, - "/v1/platform/gateway-policies": { - "get": { - "security": [ - { - "API Key": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Returns every gateway policy in the current organization.\nThe response includes both admin-created policies and\nruntime-materialized children of `default_spend_cap`\npolicies (children carry `parent_policy_id`).\n\n**Spend tracking:** each spend-cap policy carries\n`current_spend_usd` — the spend accumulated in the policy's\nactive window.", - "tags": [ - "gateway-policies" - ], - "summary": "List gateway policies", - "responses": { - "200": { - "description": "OK", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" - } + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } @@ -38959,139 +35347,143 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/tools.ErrorResponse" } } } } }, - "parameters": [] - }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tools.UpdateToolPayload" + } + } + } + } + } + }, + "/api/v2/datasets/public/{share_token}/experiment-runs": { "post": { - "security": [ - { - "API Key": [] - }, + "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": [ + "datasets" + ], + "summary": "Fetch shared experiment runs for dataset examples", + "parameters": [ { - "Bearer Auth": [] + "description": "Dataset share token", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], - "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", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsResponseBody" } } } }, "400": { - "description": "validation failure (bad matchers, unknown policy_type, missing required field)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "missing or invalid auth", + "403": { + "description": "Forbidden", "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", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "policy name conflict", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "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/datasets.V2DatasetsExperimentRunsRequestBody" } } } } } }, - "/v1/platform/gateway-policies/{id}": { - "get": { + "/api/v2/datasets/{dataset_id}/experiment-runs": { + "post": { "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": "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": [ - "gateway-policies" + "datasets" ], - "summary": "Get a gateway policy", + "summary": "Fetch experiment runs for dataset examples", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], @@ -39101,7 +35493,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsResponseBody" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39111,27 +35513,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationRead", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "policy not found", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39141,103 +35543,200 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - }, - "delete": { - "security": [ - { - "API Key": [] }, - { - "Bearer Auth": [] + "502": { + "description": "Bad Gateway", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } } - ], - "description": "Deletes a gateway policy. Subsequent reads return 404.\n\n**default_spend_cap cascade:** deleting a `default_spend_cap`\nalso deletes every child policy materialized from it.", + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/datasets.V2DatasetsExperimentRunsRequestBody" + } + } + } + } + } + }, + "/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": [ - "gateway-policies" + "runs" ], - "summary": "Delete a gateway policy", + "summary": "Get a public shared trace run", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "application/json", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "Share token UUID", + "name": "share_token", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } + }, + { + "description": "Run start_time coordinate (RFC3339)", + "name": "start_time", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "date-time", + "title": "Start Time" + } + }, + { + "description": "repeatable public run fields to include", + "name": "selects", + "in": "query", + "required": true, + "style": "form", + "explode": true, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Selects" + } } ], "responses": { - "204": { - "description": "No Content" - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/query.RunResponse" } } } }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", + "400": { + "description": "bad request (missing or malformed start_time)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "policy not found", + "description": "share token or run not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] }, - { - "Bearer Auth": [] + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } } - ], - "description": "Partially updates a gateway policy. Only fields present in\nthe request body are applied; absent fields are left\nunchanged. `policy_type` is immutable — to change a\npolicy's type, delete it and create a new one.\n\n**config** if supplied must match the policy's type:\n- spend-cap: `{\"window\": ..., \"limit_usd\": ...}`\n- guard: `{\"version\": 1, \"detect\": {...}, \"timeout_seconds\": }`\nMismatched shapes are rejected with 400.\n\n**default_spend_cap cascade:** editing a `default_spend_cap`\nupdates the config/action/enabled/priority on every\nattached child policy so the template stays the source of\ntruth across rollouts.", + }, + "x-public": true + } + }, + "/api/v2/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": [ - "gateway-policies" + "runs" ], - "summary": "Update a gateway policy", + "summary": "Query public shared trace runs", "parameters": [ { - "description": "Policy ID", - "name": "id", + "description": "application/json or text/event-stream", + "name": "Accept", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "application/json", + "name": "Content-Type", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "description": "Share token UUID", + "name": "share_token", "in": "path", "required": true, "schema": { @@ -39252,141 +35751,118 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.GatewayPolicyRecord" + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } }, "400": { - "description": "validation failure", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "share token or shared trace not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "403": { - "description": "LLM Gateway not enabled, or caller lacks OrganizationManage", + "500": { + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "404": { - "description": "policy not found", + "501": { + "description": "no V2 backend configured and no V1 proxy fallback", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.errorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "matcher edit collides with another policy in the same family", + "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 \"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}" - } - ], + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/gateway_policies.UpdateGatewayPolicyRequest" + "$ref": "#/components/schemas/query.PublicSharedTraceRunsRequestBody" } } } } } }, - "/v1/platform/hub/repos/{owner}/{repo}/directories": { - "get": { + "/api/v2/runs/query": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.", + "description": "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": [ - "directories" + "runs" ], - "summary": "Get directory contents", + "summary": "Query runs", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Repository handle", - "name": "repo", - "in": "path", - "required": true, + "description": "application/json (required for JSON body)", + "name": "Content-Type", + "in": "header", "schema": { "type": "string" } - }, - { - "description": "Commit hash/tag to resolve (defaults to latest)", - "name": "commit", - "in": "query", - "schema": { - "type": "string", - "title": "Commit" - } } ], "responses": { @@ -39395,188 +35871,330 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.GetDirectoryResponse" + "$ref": "#/components/schemas/query.QueryRunsResponseBody" } } } }, "400": { - "description": "Bad Request", + "description": "bad request (malformed JSON or invalid parameters)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "session not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.QueryRunsRequestBody" + } + } + } } - }, - "delete": { + } + }, + "/api/v2/runs/{run_id}": { + "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Deletes an agent or skill repository and its owned child file repositories.", + "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": [ - "directories" + "runs" ], - "summary": "Delete directory repository", + "summary": "Get a single run", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, + "description": "application/json", + "name": "Accept", + "in": "header", "schema": { "type": "string" } }, { - "description": "Repository handle", - "name": "repo", + "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": { + "type": "array", + "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" + }, + "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": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/query.RunResponse" + } + } + } }, "400": { - "description": "Bad Request", + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden (insufficient permission)", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "run or session not found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "internal server error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "not implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true } }, - "/v1/platform/hub/repos/{owner}/{repo}/directories/commits": { + "/api/v2/runs/{run_id}/share": { "post": { "security": [ { @@ -39589,28 +36207,20 @@ "Bearer Auth": [] } ], - "description": "Creates a new directory commit for an agent or skill repository by applying file/link create, update, and delete operations.", + "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": [ - "directories" + "runs" ], - "summary": "Create directory commit", + "summary": "Share a run", "parameters": [ { - "description": "Repository owner handle or '-' for current tenant", - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Repository handle", - "name": "repo", + "description": "Run UUID", + "name": "run_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" } } ], @@ -39620,7 +36230,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.CommitResponse" + "$ref": "#/components/schemas/share.CreateShareTokenResponseBody" } } } @@ -39630,10 +36240,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39643,10 +36250,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39656,10 +36260,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39669,23 +36270,17 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "409": { - "description": "Conflict", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39695,141 +36290,80 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/directories.CreateDirectoryCommitRequest" + "$ref": "#/components/schemas/share.CreateShareTokenRequestBody" } } } } } }, - "/v1/platform/issues": { + "/api/v2/runs/{run_id}/url": { "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns issues for the authenticated tenant, optionally filtered\nby session, status, severity, tag, or last modified time.", + "description": "Returns 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": [ - "issues" + "runs" ], - "summary": "[Beta] List issues", + "summary": "Get the LangSmith UI URL for a run", "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", + "description": "Run UUID", + "name": "run_id", + "in": "path", + "required": true, "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" + "format": "uuid" } }, { - "description": "Filter by tag (exact match)", - "name": "tag", + "description": "Project (session) UUID", + "name": "project_id", "in": "query", + "required": true, "schema": { "type": "string", - "title": "Tag" + "title": "Project Id" } }, { - "description": "Return only issues updated at or after this RFC3339 timestamp", - "name": "updated_at", + "description": "Trace UUID", + "name": "trace_id", "in": "query", + "required": true, "schema": { "type": "string", - "title": "Updated At" + "title": "Trace Id" } }, { - "description": "Sort field", - "name": "sort_by", + "description": "Run start time in RFC3339 format; omit if unknown", + "name": "start_time", "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" + "title": "Start Time" } } ], @@ -39839,59 +36373,57 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_session_issues.Issue" - } + "$ref": "#/components/schemas/query.RunURLResponse" } } } }, "400": { - "description": "Bad Request", + "description": "missing or invalid query parameters", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "401": { - "description": "Unauthorized", + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "403": { - "description": "Forbidden", + "description": "forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "404": { + "description": "project not found or does not belong to this workspace", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } + }, + "x-public": true } }, - "/v1/platform/issues-agent": { - "get": { + "/api/v2/runs/{trace_id}/share": { + "delete": { "security": [ { "API Key": [] @@ -39903,31 +36435,33 @@ "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.", + "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": [ - "issues-agent" + "runs" ], - "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" - } - } - } + "summary": "Unshare a run", + "parameters": [ + { + "description": "Trace root UUID", + "name": "trace_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } + } + ], + "responses": { + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39937,7 +36471,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39947,7 +36481,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "413": { + "description": "Request Entity Too Large", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } @@ -39957,17 +36501,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, - "parameters": [] + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/share.DeleteShareTokenRequestBody" + } + } + } + } } }, - "/v1/platform/issues/{id}/views": { - "post": { + "/api/v2/sandboxes/boxes": { + "get": { "security": [ { "API Key": [] @@ -39977,44 +36531,116 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.", + "description": "List sandboxes for the authenticated tenant, with optional filtering, sorting, and pagination.", "tags": [ - "issues" + "sandboxes" ], - "summary": "[Beta] Mark issue viewed", + "summary": "List sandboxes", "parameters": [ { - "description": "Issue ID (UUID)", - "name": "id", - "in": "path", - "required": true, + "description": "Maximum number of results", + "name": "limit", + "in": "query", "schema": { - "type": "string" + "default": 50, + "type": "integer", + "title": "Limit" + } + }, + { + "description": "Pagination offset", + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "title": "Offset" + } + }, + { + "description": "Filter by name substring", + "name": "name_contains", + "in": "query", + "schema": { + "type": "string", + "title": "Name Contains" + } + }, + { + "description": "Filter by status (provisioning, ready, failed, stopped, deleting)", + "name": "status", + "in": "query", + "schema": { + "type": "string", + "title": "Status" + } + }, + { + "description": "Filter by creator identity. Only 'me' is supported.", + "name": "created_by", + "in": "query", + "schema": { + "type": "string", + "title": "Created By" + } + }, + { + "description": "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": { + "type": "array", + "items": { + "type": "string" + }, + "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_direction", + "in": "query", + "schema": { + "default": "desc", + "type": "string", + "title": "Sort Direction" } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SandboxListResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -40024,17 +36650,7 @@ "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" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -40044,16 +36660,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/mcp-vendors": { - "get": { + }, + "x-public": true + }, + "post": { "security": [ { "API Key": [] @@ -40063,123 +36678,104 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns the catalog of available MCP vendors.", + "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": [ - "mcp_vendors" + "sandboxes" ], - "summary": "List MCP vendors", + "summary": "Create a sandbox", + "parameters": [], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListMcpVendorsResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Snapshot not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "409": { + "description": "Name already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.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", + "422": { + "description": "Validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.GetMcpVendorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "429": { + "description": "Quota exceeded", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "Sandbox creation failed or internal error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "504": { + "description": "Sandbox did not become ready in time", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.CreateSandboxPayload" + } + } + } } } }, - "/v1/platform/mcp-vendors/{vendor_slug}/account": { - "get": { + "/api/v2/sandboxes/boxes/batch-delete": { + "post": { "security": [ { "API Key": [] @@ -40191,29 +36787,19 @@ "Bearer Auth": [] } ], - "description": "Resolves OAuth token and returns the vendor's account info.", + "description": "Delete multiple sandboxes by name or UUID in a single request.", "tags": [ - "mcp_vendors" - ], - "summary": "Get vendor account", - "parameters": [ - { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "sandboxes" ], + "summary": "Batch delete sandboxes", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeAccountResponseList" + "$ref": "#/components/schemas/sandboxes.BatchDeleteResponse" } } } @@ -40223,17 +36809,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -40243,35 +36819,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.BatchDeleteRequest" } } } } } }, - "/v1/platform/mcp-vendors/{vendor_slug}/mcp-servers": { + "/api/v2/sandboxes/boxes/{name}": { "get": { "security": [ { @@ -40282,40 +36859,25 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns the MCP gateways from the vendor for the workspace's configured org/project.", + "description": "Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.", "tags": [ - "mcp_vendors" + "sandboxes" ], - "summary": "List MCP servers for a vendor", + "summary": "Get a sandbox", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Sandbox display name", + "name": "name", "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": { @@ -40324,66 +36886,93 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ListMcpGatewaysResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "400": { - "description": "Bad Request", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } + } + }, + "x-public": true + }, + "delete": { + "security": [ + { + "API Key": [] }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" - } - } + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + }, + { + "X-Service-Key": [] + } + ], + "description": "Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.", + "tags": [ + "sandboxes" + ], + "summary": "Delete a sandbox", + "parameters": [ + { + "description": "Sandbox display name or UUID", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" } + } + ], + "responses": { + "204": { + "description": "No content" }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "502": { - "description": "Bad Gateway", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - } - }, - "/v1/platform/mcp-vendors/{vendor_slug}/settings": { - "get": { + }, + "x-public": true + }, + "patch": { "security": [ { "API Key": [] @@ -40393,17 +36982,20 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns the current vendor-specific settings.", + "description": "Update a sandbox's display name. The name must be unique within the tenant.", "tags": [ - "mcp_vendors" + "sandboxes" ], - "summary": "Get vendor settings", + "summary": "Update a sandbox", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Current sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -40417,44 +37009,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "409": { + "description": "Name already exists", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Validation error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.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/sandboxes.UpdateSandboxPayload" + } + } + } } - }, - "put": { + } + }, + "/api/v2/sandboxes/boxes/{name}/service-url": { + "post": { "security": [ { "API Key": [] @@ -40466,15 +37081,15 @@ "Bearer Auth": [] } ], - "description": "Replaces vendor settings.", + "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": [ - "mcp_vendors" + "sandboxes" ], - "summary": "Replace vendor settings", + "summary": "Generate a service access token", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -40488,7 +37103,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/sandboxes.ServiceURLResponse" } } } @@ -40498,53 +37113,66 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "501": { + "description": "Not Implemented", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" + "$ref": "#/components/schemas/sandboxes.ServiceURLPayload" } } } } - }, + } + }, + "/api/v2/sandboxes/boxes/{name}/snapshot": { "post": { "security": [ { @@ -40557,15 +37185,15 @@ "Bearer Auth": [] } ], - "description": "Initializes vendor settings.", + "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", "tags": [ - "mcp_vendors" + "sandboxes" ], - "summary": "Create vendor settings", + "summary": "Capture a snapshot from a sandbox", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -40579,7 +37207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } @@ -40589,64 +37217,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsRequest" + "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" } } } } - }, - "delete": { + } + }, + "/api/v2/sandboxes/boxes/{name}/start": { + "post": { "security": [ { "API Key": [] @@ -40658,15 +37289,15 @@ "Bearer Auth": [] } ], - "description": "Removes vendor settings.", + "description": "Start a stopped or failed sandbox. This endpoint is not idempotent.", "tags": [ - "mcp_vendors" + "sandboxes" ], - "summary": "Delete vendor settings", + "summary": "Start a sandbox", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Sandbox display name", + "name": "name", "in": "path", "required": true, "schema": { @@ -40675,22 +37306,22 @@ } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ArcadeSettingsResponse" + "$ref": "#/components/schemas/sandboxes.SandboxResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -40700,7 +37331,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -40710,15 +37341,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/mcp_vendors.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } + }, + "x-public": true } }, - "/v1/platform/mcp-vendors/{vendor_slug}/tools": { + "/api/v2/sandboxes/boxes/{name}/status": { "get": { "security": [ { @@ -40729,40 +37371,25 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns the tool catalog for this vendor.", + "description": "Retrieve the lightweight status of a sandbox for polling.", "tags": [ - "mcp_vendors" + "sandboxes" ], - "summary": "List tools for a vendor", + "summary": "Get sandbox status", "parameters": [ { - "description": "Vendor slug (e.g. arcade)", - "name": "vendor_slug", + "description": "Sandbox display name", + "name": "name", "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": { @@ -40771,27 +37398,7 @@ "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" + "$ref": "#/components/schemas/sandboxes.SandboxStatusResponse" } } } @@ -40801,113 +37408,64 @@ "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" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/nps.SubmitResponseRequest" - } - } - } - }, - "x-hidden": true + "x-public": true } }, - "/v1/platform/ops/backfills/restart": { + "/api/v2/sandboxes/boxes/{name}/stop": { "post": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes the backfill job record, causing the backfill to restart from the beginning on the next cron tick. Requires instance admin access.", + "description": "Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.", "tags": [ - "backfills" + "sandboxes" ], - "summary": "Restart a backfill job", - "parameters": [], - "responses": { - "200": { - "description": "Backfill restarted", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } + "summary": "Stop a sandbox", + "parameters": [ + { + "description": "Sandbox display name", + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" } + } + ], + "responses": { + "204": { + "description": "Sandbox stopped" }, "400": { - "description": "Bad request", + "description": "Bad Request", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -40917,114 +37475,125 @@ "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "Backfill not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/backfills.restartBackfillRequest" - } - } - } - } + "x-public": true } }, - "/v1/platform/orgs/current/access-policies": { + "/api/v2/sandboxes/registries": { "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Lists all access policies for the organization.", + "description": "List sandbox registries for pulling private images.", "tags": [ - "access_policies" + "sandboxes" + ], + "summary": "List registries", + "parameters": [ + { + "description": "Maximum number of registries to return", + "name": "limit", + "in": "query", + "schema": { + "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" + } + } ], - "summary": "List access policies", "responses": { "200": { - "description": "List of access policies", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.ListAccessPoliciesResponse" + "$ref": "#/components/schemas/sandboxes.RegistryListResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal server error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true }, "post": { "security": [ @@ -41032,35 +37601,35 @@ "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Creates a new access policy.", + "description": "Create a sandbox registry for pulling private images.", "tags": [ - "access_policies" + "sandboxes" ], - "summary": "Create an access policy", + "summary": "Create a registry", "parameters": [], "responses": { "201": { - "description": "Access policy created", + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.AccessPolicyCreateResponse" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } }, "400": { - "description": "Bad request", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -41070,76 +37639,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Role not found", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/authz_internal.CreateAccessPolicyPayload" + "$ref": "#/components/schemas/sandboxes.CreateRegistryPayload" } } } } } }, - "/v1/platform/orgs/current/access-policies/roles/{role_id}/access-policies": { - "post": { + "/api/v2/sandboxes/registries/{name}": { + "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Attaches one or more access policies to a specific role. The request body must contain an array of access policy IDs.", + "description": "Get a sandbox registry by name.", "tags": [ - "access_policies" + "sandboxes" ], - "summary": "Attach access policies to a role", + "summary": "Get a registry", "parameters": [ { - "description": "Role ID", - "name": "role_id", + "description": "Registry name", + "name": "name", "in": "path", "required": true, "schema": { @@ -41148,15 +37708,12 @@ } ], "responses": { - "204": { - "description": "Access policies attached successfully" - }, - "400": { - "description": "Bad request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } @@ -41166,76 +37723,55 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "Role not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/authz_internal.AttachAccessPoliciesPayload" - } - } - } - } - } - }, - "/v1/platform/orgs/current/access-policies/{access_policy_id}": { - "get": { + "x-public": true + }, + "delete": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Gets a specific access policy by ID.", + "description": "Delete a sandbox registry by name.", "tags": [ - "access_policies" + "sandboxes" ], - "summary": "Get an access policy", + "summary": "Delete a registry", "parameters": [ { - "description": "Access Policy ID", - "name": "access_policy_id", + "description": "Registry name", + "name": "name", "in": "path", "required": true, "schema": { @@ -41244,89 +37780,63 @@ } ], "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" - } - } - } + "204": { + "description": "No Content" }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "Access policy not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } + }, + "x-public": true }, - "delete": { + "patch": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Deletes a specific access policy by ID.", + "description": "Update a sandbox registry's name and/or credentials.", "tags": [ - "access_policies" + "sandboxes" ], - "summary": "Delete an access policy", + "summary": "Update a registry", "parameters": [ { - "description": "Access Policy ID", - "name": "access_policy_id", + "description": "Registry name", + "name": "name", "in": "path", "required": true, "schema": { @@ -41335,394 +37845,224 @@ } ], "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", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.RegistryResponse" } } } }, - "503": { - "description": "Service unavailable", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/abac.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.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", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/orgs.OrganizationInfo" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "400": { - "description": "Invalid organization ID", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.UpdateRegistryPayload" + } + } + } + } } }, - "/v1/platform/orgs/current/members": { + "/api/v2/sandboxes/snapshots": { "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Returns a paginated list of org members (active and pending) enriched with workspace memberships.", + "description": "List sandbox snapshots for the authenticated tenant, with optional filtering, sorting, and pagination.", "tags": [ - "orgs" + "sandboxes" ], - "summary": "List org members with workspace roles", + "summary": "List snapshots", "parameters": [ { - "description": "Page size (default 50, max 500)", + "description": "Maximum number of results", "name": "limit", "in": "query", "schema": { + "default": 50, "type": "integer", "title": "Limit" } }, { - "description": "Page offset (default 0)", + "description": "Pagination offset", "name": "offset", "in": "query", "schema": { + "default": 0, "type": "integer", "title": "Offset" } }, { - "description": "Filter: true = only active members; false = only pending members", - "name": "active_is", + "description": "Filter by name substring", + "name": "name_contains", "in": "query", "schema": { - "type": "boolean", - "title": "Active Is" + "type": "string", + "title": "Name Contains" } }, { - "description": "Filter: true = only pending members; false = only active members", - "name": "pending_is", + "description": "Filter by status (building, ready, failed, deleting)", + "name": "status", "in": "query", "schema": { - "type": "boolean", - "title": "Pending Is" + "type": "string", + "title": "Status" } }, { - "description": "Glob filter on display name; use * as wildcard (repeatable, matches any)", - "name": "name_like", + "description": "Filter by creator identity. Only 'me' is supported.", + "name": "created_by", "in": "query", - "style": "form", - "explode": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Name Like" + "type": "string", + "title": "Created By" } }, { - "description": "Glob filter on email; use * as wildcard (repeatable, matches any)", - "name": "email_like", + "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": "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" + "title": "Label" } }, { - "description": "Glob filter on organization role name; use * as wildcard (repeatable, matches any)", - "name": "organization_role_like", + "description": "Sort column (name, status, created_at)", + "name": "sort_by", "in": "query", - "style": "form", - "explode": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Organization Role Like" + "default": "created_at", + "type": "string", + "title": "Sort By" } }, { - "description": "Glob filter on workspace role name; use * as wildcard (repeatable, matches any)", - "name": "workspace_role_like", + "description": "Sort direction (asc, desc)", + "name": "sort_direction", "in": "query", - "style": "form", - "explode": true, "schema": { - "items": { - "type": "string" - }, - "type": "array", - "title": "Workspace Role Like" + "default": "desc", + "type": "string", + "title": "Sort Direction" } } ], "responses": { "200": { - "description": "Org members", - "headers": { - "X-Members-List-All-Workspaces": { - "description": "true if caller has organization:manage", - "schema": { - "type": "string" - } - }, - "X-Pagination-Total": { - "description": "Total number of matching members", - "schema": { - "type": "string" - } - } - }, + "description": "OK", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orgs.OrgMemberEnriched" - } + "$ref": "#/components/schemas/sandboxes.SnapshotListResponse" } } } }, "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", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal server error", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "parameters": [] + "x-public": true }, "post": { "security": [ @@ -41730,104 +38070,95 @@ "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Create a new SCIM bearer token for the current organization. The full token value is only returned once upon creation.", + "description": "Create a snapshot from a Docker image (async build).", "tags": [ - "SCIM Tokens" + "sandboxes" ], - "summary": "Create a SCIM token", + "summary": "Create a snapshot", "parameters": [], "responses": { "201": { - "description": "Created SCIM token with full token value", + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ScimTokenSensitiveResponse" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "403": { - "description": "Forbidden - requires OrganizationManage permission", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.CreateScimTokenPayload" + "$ref": "#/components/schemas/sandboxes.CreateSnapshotPayload" } } } } } }, - "/v1/platform/orgs/current/scim/tokens/{scim_token_id}": { + "/api/v2/sandboxes/snapshots-by-name/{name}": { "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Retrieve a specific SCIM token by ID for the current organization. The full token value is not returned.", + "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": [ - "SCIM Tokens" + "sandboxes" ], - "summary": "Get a SCIM token", + "summary": "Get a snapshot name", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", + "description": "Snapshot name, without a tag", + "name": "name", "in": "path", "required": true, "schema": { @@ -41837,88 +38168,81 @@ ], "responses": { "200": { - "description": "SCIM token details", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" + "$ref": "#/components/schemas/sandboxes.SnapshotNameResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "403": { - "description": "Forbidden - requires OrganizationRead permission", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "Token not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - }, - "delete": { + }, + "x-public": true + } + }, + "/api/v2/sandboxes/snapshots/{snapshot_id}": { + "get": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Delete a SCIM bearer token from the current organization.", + "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": [ - "SCIM Tokens" + "sandboxes" ], - "summary": "Delete a SCIM token", + "summary": "Get a snapshot", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", + "description": "Snapshot UUID, a name:tag reference, or a bare snapshot name", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -41927,82 +38251,80 @@ } ], "responses": { - "204": { - "description": "No content - token deleted successfully" - }, - "401": { - "description": "Unauthorized", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.SnapshotResponse" } } } }, - "403": { - "description": "Forbidden - requires OrganizationManage permission", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Token not found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "500": { - "description": "Internal server error", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "503": { - "description": "Service unavailable", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } + }, + "x-public": true }, - "patch": { + "delete": { "security": [ { "API Key": [] }, { - "Organization ID": [] + "Tenant ID": [] }, { "Bearer Auth": [] } ], - "description": "Update the description of an existing SCIM token for the current organization.", + "description": "Delete a snapshot by ID or by a Docker-style name[:tag] reference. The underlying storage is reclaimed asynchronously.", "tags": [ - "SCIM Tokens" + "sandboxes" ], - "summary": "Update a SCIM token", + "summary": "Delete a snapshot", "parameters": [ { - "description": "SCIM Token ID", - "name": "scim_token_id", + "description": "Snapshot UUID, or a name[:tag] reference", + "name": "snapshot_id", "in": "path", "required": true, "schema": { @@ -42011,80 +38333,54 @@ } ], "responses": { - "200": { - "description": "Updated SCIM token details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ScimTokenResponse" - } - } - } + "204": { + "description": "Snapshot deleted" }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "403": { - "description": "Forbidden - requires OrganizationManage permission", + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "404": { - "description": "Token not found", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, "500": { - "description": "Internal server error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" - } - } - } - }, - "503": { - "description": "Service unavailable", + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/scim.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/scim.UpdateScimTokenPayload" - } - } - } - } + "x-public": true } }, - "/v1/platform/sessions/{sessionID}/agent-versions": { + "/api/v2/sandboxes/usage": { "get": { "security": [ { @@ -42095,68 +38391,43 @@ }, { "Bearer Auth": [] + }, + { + "X-Service-Key": [] } ], - "description": "Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.", + "description": "Get current sandbox resource usage and quota limits for the workspace", "tags": [ - "sessions" - ], - "summary": "List agent versions for a project", - "parameters": [ - { - "description": "Tracing project (session) UUID", - "name": "sessionID", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "sandboxes" ], + "summary": "Get sandbox resource usage", "responses": { "200": { - "description": "Agent versions", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/tracer_sessions.AgentVersionResponse" - } - } - } - } - }, - "400": { - "description": "Invalid session ID", + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.UsageResponse" } } } }, - "401": { - "description": "Unauthorized", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } + }, + "x-public": true, + "parameters": [] } }, - "/v1/platform/sessions/{session_id}/issues-agent": { + "/api/v2/sandboxes/{sandbox_id}/download": { "get": { "security": [ { @@ -42169,49 +38440,42 @@ "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nReturns the issues agent config attached to the given tracer session.", + "description": "Download file contents from a sandbox filesystem path.", "tags": [ - "issues-agent" + "sandboxes" ], - "summary": "[Beta] Get the issues agent config for a session", + "summary": "Download a sandbox file", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_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" + } } ], "responses": { "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" - } - } - } + "description": "File 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" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42221,7 +38485,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42231,7 +38495,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42241,13 +38505,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - }, + }, + "x-public": true + } + }, + "/api/v2/sandboxes/{sandbox_id}/execute": { "post": { "security": [ { @@ -42260,15 +38527,15 @@ "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nConfigures the issues agent for the given tracer session and enqueues\nthe initial scan. Fails if an agent already exists for the session.", + "description": "Execute a command inside a sandbox and return stdout, stderr, and exit code.", "tags": [ - "issues-agent" + "sandboxes" ], - "summary": "[Beta] Create the issues agent for a session", + "summary": "Execute a sandbox command", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -42277,12 +38544,12 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.IssuesAgent" + "$ref": "#/components/schemas/sandboxes.ExecResponse" } } } @@ -42292,17 +38559,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42312,17 +38569,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42332,24 +38589,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.CreateIssuesAgentRequest" + "$ref": "#/components/schemas/sandboxes.ExecRequest" } } } } - }, - "delete": { + } + }, + "/api/v2/sandboxes/{sandbox_id}/execute/stream/resume": { + "post": { "security": [ { "API Key": [] @@ -42361,15 +38621,15 @@ "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nRemoves the agent config, its issues, and the agent-overview hub repo.", + "description": "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": [ - "issues-agent" + "sandboxes" ], - "summary": "[Beta] Delete the issues agent for a session", + "summary": "Resume a streamed sandbox command", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -42378,25 +38638,22 @@ } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "SSE event stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "type": "string" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42406,7 +38663,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42416,98 +38673,17 @@ "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" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42517,26 +38693,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.UpdateIssuesAgentRequest" + "$ref": "#/components/schemas/sandboxes.ExecStreamResumeRequest" } } } } } }, - "/v1/platform/sessions/{session_id}/issues-agent/overview": { - "patch": { + "/api/v2/sandboxes/{sandbox_id}/execute/stream/start": { + "post": { "security": [ { "API Key": [] @@ -42548,15 +38725,15 @@ "Bearer Auth": [] } ], - "description": "**Beta:** This endpoint is in active development and may change without notice.\n\nSaves the issues agent overview content server-side, creating or updating\nthe backing private Prompt Hub repo and linking it to the issues agent config.", + "description": "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": [ - "issues-agent" + "sandboxes" ], - "summary": "[Beta] Save the agent overview for a session", + "summary": "Start a streamed sandbox command", "parameters": [ { - "description": "Tracer session ID (UUID)", - "name": "session_id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -42566,11 +38743,11 @@ ], "responses": { "200": { - "description": "OK", + "description": "SSE event stream", "content": { - "application/json": { + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewResponse" + "type": "string" } } } @@ -42580,37 +38757,37 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "404": { - "description": "Not Found", + "409": { + "description": "Conflict", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42620,25 +38797,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues_agent.SaveOverviewRequest" + "$ref": "#/components/schemas/sandboxes.ExecStreamRequest" } } } } } }, - "/v1/platform/sessions/{session_id}/issues/views": { + "/api/v2/sandboxes/{sandbox_id}/execute/ws": { "get": { "security": [ { @@ -42651,15 +38829,15 @@ "Bearer Auth": [] } ], - "description": "**Beta:** Returns the issues in this session that the current\nuser has opened, with timestamps. Used by the UI to derive\nthe per-row \"unread\" indicator and the Engine tab badge.", + "description": "Open a WebSocket connection for streaming command execution inside a sandbox.", "tags": [ - "issues" + "sandboxes" ], - "summary": "[Beta] List viewed issues for a session", + "summary": "Execute a sandbox command over WebSocket", "parameters": [ { - "description": "Session ID (UUID)", - "name": "session_id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { @@ -42668,42 +38846,35 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ListViewsResponse" - } - } - } + "101": { + "description": "WebSocket upgrade" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42713,16 +38884,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tracer_session_issues.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } + }, + "x-public": true } }, - "/v1/platform/tools": { - "get": { + "/api/v2/sandboxes/{sandbox_id}/glob": { + "post": { "security": [ { "API Key": [] @@ -42734,37 +38906,19 @@ "Bearer Auth": [] } ], - "description": "Returns a paginated list of tools in the workspace.", + "description": "Find files under a root path matching a glob pattern (supports **). Entries are returned in lexical order by path.", "tags": [ - "tools" + "sandboxes" ], - "summary": "List tools", + "summary": "Glob a sandbox filesystem", "parameters": [ { - "description": "Maximum number of tools to return", - "name": "limit", - "in": "query", - "schema": { - "type": "integer", - "title": "Limit" - } - }, - { - "description": "Number of tools to skip", - "name": "offset", - "in": "query", - "schema": { - "type": "integer", - "title": "Offset" - } - }, - { - "description": "Search query to filter tools by name or description", - "name": "query", - "in": "query", + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, "schema": { - "type": "string", - "title": "Query" + "type": "string" } } ], @@ -42774,7 +38928,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ListToolsResponse" + "$ref": "#/components/schemas/sandboxes.GlobResponse" } } } @@ -42784,27 +38938,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42814,13 +38968,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/sandboxes.GlobRequest" + } + } + } } - }, + } + }, + "/api/v2/sandboxes/{sandbox_id}/grep": { "post": { "security": [ { @@ -42833,19 +39000,29 @@ "Bearer Auth": [] } ], - "description": "Creates a new tool in the workspace.", + "description": "Search files under a root path for a literal text pattern (not a regex).", "tags": [ - "tools" + "sandboxes" + ], + "summary": "Grep a sandbox filesystem", + "parameters": [ + { + "description": "Sandbox ID or name", + "name": "sandbox_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Create a tool", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/sandboxes.GrepResponse" } } } @@ -42855,17 +39032,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42875,17 +39042,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42895,25 +39062,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.CreateToolPayload" + "$ref": "#/components/schemas/sandboxes.GrepRequest" } } } } } }, - "/v1/platform/tools/id/{id}": { + "/api/v2/sandboxes/{sandbox_id}/tunnel": { "get": { "security": [ { @@ -42926,49 +39094,40 @@ "Bearer Auth": [] } ], - "description": "Returns a tool identified by its UUID.", + "description": "Open a WebSocket tunnel to a specific port inside a sandbox.", "tags": [ - "tools" + "sandboxes" ], - "summary": "Get a tool by ID", + "summary": "Open a sandbox TCP tunnel", "parameters": [ { - "description": "Tool UUID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Target sandbox TCP port", + "name": "X-Sandbox-Port", + "in": "header", + "schema": { + "type": "integer" + } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.Tool" - } - } - } + "101": { + "description": "WebSocket upgrade" }, "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" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42978,7 +39137,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42988,7 +39147,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -42998,14 +39157,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } - } - }, - "delete": { + }, + "x-public": true + } + }, + "/api/v2/sandboxes/{sandbox_id}/upload": { + "post": { "security": [ { "API Key": [] @@ -43017,42 +39179,49 @@ "Bearer Auth": [] } ], - "description": "Deletes a tool identified by its UUID.", + "description": "Upload a file to a sandbox filesystem path.", "tags": [ - "tools" + "sandboxes" ], - "summary": "Delete a tool by ID", + "summary": "Upload a sandbox file", "parameters": [ { - "description": "Tool UUID", - "name": "id", + "description": "Sandbox ID or name", + "name": "sandbox_id", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "description": "Destination file path", + "name": "path", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Path" + } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.UploadResponse" } } } }, - "401": { - "description": "Unauthorized", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -43062,7 +39231,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -43072,7 +39241,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } @@ -43082,394 +39251,559 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/sandboxes.ErrorResponse" } } } } + }, + "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" + ] + } + } + } } - }, - "patch": { + } + }, + "/api/v2/threads/query": { + "post": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Updates an existing tool identified by its UUID.", + "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": [ - "tools" - ], - "summary": "Update a tool by ID", - "parameters": [ - { - "description": "Tool UUID", - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "threads" ], + "summary": "Query Threads", + "parameters": [], "responses": { "200": { - "description": "OK", + "description": "items and pagination", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.Tool" + "$ref": "#/components/schemas/threads.QueryThreadsResponseBody" } } } }, "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", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "501": { + "description": "scoped filters are unavailable for this deployment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.UpdateToolPayload" + "$ref": "#/components/schemas/threads.QueryThreadsRequestBody" } } } } } }, - "/v1/platform/tools/{handle}": { + "/api/v2/threads/{thread_id}/stats": { "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Returns a tool identified by its handle.", + "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": [ - "tools" + "threads" ], - "summary": "Get a tool by handle", + "summary": "Query Single Thread Stats", "parameters": [ { - "description": "Tool handle", - "name": "handle", + "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", + "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": { + "type": "array", + "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" + }, + "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/tools.Tool" + "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" } } } }, "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/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "404": { - "description": "Not Found", + "description": "session not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "422": { + "description": "unprocessable entity (e.g. invalid project UUID)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, "500": { - "description": "Internal Server Error", + "description": "internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "503": { + "description": "service unavailable", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" + } + } + } + }, + "504": { + "description": "gateway timeout or deadline exceeded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/shared.ProblemDetails" } } } } - } - }, - "delete": { + }, + "x-public": true + } + }, + "/api/v2/threads/{thread_id}/traces": { + "get": { "security": [ { - "API Key": [] - }, - { + "API Key": [], "Tenant ID": [] }, { - "Bearer Auth": [] + "Bearer Auth": [], + "Tenant ID": [] } ], - "description": "Deletes a tool identified by its handle.", + "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": "Delete a tool by handle", + "summary": "Query Thread Traces", "parameters": [ { - "description": "Tool handle", - "name": "handle", - "in": "path", - "required": true, + "description": "Thread ID", + "name": "thread_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "`cursor` is the opaque string from a previous response's `next_cursor`. Omit on the first request; pass the returned cursor to fetch the next page.", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" + } + }, + { + "description": "`filter` narrows which traces are returned for this thread, using a LangSmith filter expression evaluated against each root trace run.\nFor example: eq(status, \"success\") or has(tags, \"production\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "name": "filter", + "in": "query", + "schema": { + "type": "string", + "title": "Filter" + } + }, + { + "example": 20, + "description": "`page_size` is the maximum number of traces to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set.", + "name": "page_size", + "in": "query", + "schema": { + "default": 20, + "type": "integer", + "maximum": 100, + "minimum": 1, + "title": "Page Size" + } + }, + { + "description": "`project_id` is the tracing project UUID (required).", + "name": "project_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "title": "Project Id" + } + }, + { + "example": [ + "NAME", + "START_TIME" + ], + "description": "`selects` lists which properties to include on each returned trace (repeatable query parameter). Accepts any value of the `ThreadTraceSelectField` enum. Properties not listed are omitted from each trace object; `trace_id` is always returned.", + "name": "selects", + "in": "query", + "style": "form", + "explode": true, "schema": { - "type": "string" + "type": "array", + "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" + }, + "title": "Selects" } } ], "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", + "200": { + "description": "items and pagination", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/threads.QueryThreadTracesResponseBody" } } } }, - "404": { - "description": "Not Found", + "400": { + "description": "bad request (missing or invalid query parameters)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "missing or invalid authentication", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/tools.ErrorResponse" + "$ref": "#/components/schemas/shared.ProblemDetails" } } } - } - } - }, - "patch": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] }, - { - "Bearer Auth": [] - } - ], - "description": "Updates an existing tool identified by its handle.", - "tags": [ - "tools" - ], - "summary": "Update a tool by handle", - "parameters": [ - { - "description": "Tool handle", - "name": "handle", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", + "403": { + "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" } } } }, - "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 } }, - "/v2/runs/query": { + "/api/v2/traces/query": { "post": { "security": [ { @@ -43481,20 +39815,12 @@ "Tenant ID": [] } ], - "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": "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": [ "runs" ], - "summary": "Query runs", + "summary": "Query traces", "parameters": [ - { - "description": "application/json", - "name": "Accept", - "in": "header", - "schema": { - "type": "string" - } - }, { "description": "application/json (required for JSON body)", "name": "Content-Type", @@ -43510,7 +39836,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/query.QueryRunsResponseBody" + "$ref": "#/components/schemas/query.QueryTracesResponseBody" } } } @@ -43596,19 +39922,20 @@ } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/query.QueryRunsRequestBody" + "$ref": "#/components/schemas/query.QueryTracesRequestBody" } } } } } }, - "/v2/runs/{run_id}": { + "/api/v2/traces/{trace_id}/runs": { "get": { "security": [ { @@ -43620,11 +39947,11 @@ "Tenant ID": [] } ], - "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": "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": [ "runs" ], - "summary": "Get a single run", + "summary": "List runs in a trace", "parameters": [ { "description": "application/json", @@ -43635,8 +39962,8 @@ } }, { - "description": "Run UUID", - "name": "run_id", + "description": "Trace UUID", + "name": "trace_id", "in": "path", "required": true, "schema": { @@ -43645,7 +39972,36 @@ } }, { - "description": "`project_id` is the UUID of the tracing project that owns the run.", + "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, @@ -43656,12 +40012,13 @@ } }, { - "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.", + "description": "`selects` lists which properties to include on each returned run (repeatable query parameter). Accepts any value of the `RunSelectField` enum. If omitted, only `id` is returned.", "name": "selects", "in": "query", "style": "form", "explode": true, "schema": { + "type": "array", "items": { "enum": [ "ID", @@ -43706,25 +40063,14 @@ "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), used together with `project_id` to locate the run.", - "name": "start_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "format": "date-time", - "title": "Start Time" - } } ], "responses": { @@ -43733,7 +40079,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/query.RunResponse" + "$ref": "#/components/schemas/query.QueryTraceResponseBody" } } } @@ -43769,7 +40115,7 @@ } }, "404": { - "description": "run or session not found", + "description": "session not found", "content": { "application/json": { "schema": { @@ -43818,10 +40164,11 @@ } } } - } + }, + "x-public": true } }, - "/v2/sandboxes/boxes": { + "/auth/public": { "get": { "security": [ { @@ -43832,103 +40179,47 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "List sandboxes for the authenticated tenant, with optional filtering, sorting, and pagination.", + "description": "Returns public authentication information for the current workspace-level session.", "tags": [ - "sandboxes" - ], - "summary": "List sandboxes", - "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" - } - }, - { - "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": "Sort column (name, status, created_at)", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "default": "created_at", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_direction", - "in": "query", - "schema": { - "type": "string", - "default": "desc", - "title": "Sort Direction" - } - } + "auth" ], + "summary": "Get public auth info", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxListResponse" + "$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/sandboxes.ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "string" } } } @@ -43938,14 +40229,36 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.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" + ] + } + } + } } - }, - "post": { + } + }, + "/datasets/{dataset_id}/experiment-view-overrides": { + "get": { "security": [ { "API Key": [] @@ -43955,102 +40268,95 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Create a new sandbox from a snapshot. Provide at most one of `snapshot_id` or `snapshot_name`; if neither is provided, the server uses the default static blueprint.", + "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": [ - "sandboxes" + "experiment-view-overrides" + ], + "summary": "Get experiment view override configurations for a dataset", + "parameters": [ + { + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } ], - "summary": "Create a sandbox", - "parameters": [], "responses": { - "201": { - "description": "Created", + "200": { + "description": "Successfully retrieved experiment view override configurations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "type": "array", + "items": { + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" + } } } } }, "400": { - "description": "Snapshot not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "409": { - "description": "Name already exists", + "description": "Invalid dataset ID format\" example({\"error\":\"invalid dataset ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "422": { - "description": "Validation error", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "429": { - "description": "Quota exceeded", + "404": { + "description": "Dataset not found or not accessible\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "500": { - "description": "Sandbox creation failed or internal error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "504": { - "description": "Sandbox did not become ready in time", + "description": "Internal server error\" example({\"error\":\"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.CreateSandboxPayload" - } - } - } - } - } - }, - "/v2/sandboxes/boxes/batch-delete": { + "x-public": true + }, "post": { "security": [ { @@ -44063,67 +40369,128 @@ "Bearer Auth": [] } ], - "description": "Delete multiple sandboxes by name or UUID in a single request.", + "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": [ - "sandboxes" + "experiment-view-overrides" + ], + "summary": "Create new experiment view override configuration for a dataset", + "parameters": [ + { + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } ], - "summary": "Batch delete sandboxes", - "parameters": [], "responses": { - "200": { - "description": "OK", + "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\"})", + "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": "Dataset not found\" example({\"error\":\"dataset not found or not accessible\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.BatchDeleteResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "400": { - "description": "Bad Request", + "409": { + "description": "Override already exists\" example({\"error\":\"experiment view override already exists\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "Forbidden", + "422": { + "description": "Validation error\" example({\"error\":\"column name at index 0 must start with one of: inputs, outputs, reference_outputs, feedback, metrics, attachments, metadata\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.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/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.BatchDeleteRequest" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePostRequest" } } } } } }, - "/v2/sandboxes/boxes/{name}": { + "/datasets/{dataset_id}/experiment-view-overrides/{id}": { "get": { "security": [ { @@ -44134,59 +40501,102 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.", + "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": [ - "sandboxes" + "experiment-view-overrides" ], - "summary": "Get a sandbox", + "summary": "Get experiment view override configuration by specific ID", "parameters": [ { - "description": "Sandbox display name", - "name": "name", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "OK", + "description": "Successfully retrieved experiment view override configuration", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$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\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "Not Found", + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.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/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true }, "delete": { "security": [ @@ -44198,52 +40608,95 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.", + "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": [ - "sandboxes" + "experiment-view-overrides" ], - "summary": "Delete a sandbox", + "summary": "Delete experiment view override configuration", "parameters": [ { - "description": "Sandbox display name or UUID", - "name": "name", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } } ], "responses": { "204": { - "description": "No content" + "description": "Successfully deleted experiment view override (no content returned)" + }, + "400": { + "description": "Invalid ID format\" example({\"error\":\"invalid experiment view override ID format\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } }, "404": { - "description": "Not Found", + "description": "Override not found\" example({\"error\":\"experiment view override not found\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.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/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true }, "patch": { "security": [ @@ -44255,93 +40708,129 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Update a sandbox's display name. The name must be unique within the tenant.", + "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": [ - "sandboxes" + "experiment-view-overrides" ], - "summary": "Update a sandbox", + "summary": "Update existing experiment view override configuration", "parameters": [ { - "description": "Current sandbox display name", - "name": "name", + "example": "\"550e8400-e29b-41d4-a716-446655440000\"", + "description": "Dataset ID", + "name": "dataset_id", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" + } + }, + { + "example": "\"123e4567-e89b-12d3-a456-426614174000\"", + "description": "Experiment view override ID", + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "OK", + "description": "Successfully updated experiment view override", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverride" } } } }, - "404": { - "description": "Not Found", + "400": { + "description": "Invalid request data\" example({\"error\":\"invalid experiment view override ID format\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "409": { - "description": "Name already exists", + "401": { + "description": "Unauthorized access\" example({\"error\":\"Unauthorized\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "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" + } } } } }, "422": { - "description": "Validation error", + "description": "Validation error\" example({\"error\":\"'precision' must be between 1 and 6 for column at index 0\"})", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.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/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.UpdateSandboxPayload" + "$ref": "#/components/schemas/experiment_view_overrides.ExperimentViewOverridePatchRequest" } } } } } }, - "/v2/sandboxes/boxes/{name}/service-url": { - "post": { + "/me/providers/{providerType}": { + "get": { "security": [ { "API Key": [] @@ -44353,15 +40842,15 @@ "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 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": [ - "sandboxes" + "me" ], - "summary": "Generate a service access token", + "summary": "Get the authenticated user's provider user ID", "parameters": [ { - "description": "Sandbox display name", - "name": "name", + "description": "Provider type (e.g. slack, github)", + "name": "providerType", "in": "path", "required": true, "schema": { @@ -44375,7 +40864,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ServiceURLResponse" + "type": "string" } } } @@ -44385,86 +40874,267 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "string" } } } }, - "404": { - "description": "Not Found", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "string" } } } }, - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "string" } } } + } + }, + "x-public": true + } + }, + "/oauth/authorize": { + "get": { + "security": [ + { + "API Key": [] }, - "500": { - "description": "Internal Server Error", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Validates authorization request parameters and redirects to the frontend consent page per RFC 6749.", + "tags": [ + "oauth" + ], + "summary": "Initiate OAuth2 authorization", + "parameters": [ + { + "description": "Must be 'code'", + "name": "response_type", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Response Type" + } + }, + { + "description": "OAuth2 client ID", + "name": "client_id", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Client Id" + } + }, + { + "description": "Redirect URI registered with the client", + "name": "redirect_uri", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Redirect Uri" + } + }, + { + "description": "PKCE code challenge", + "name": "code_challenge", + "in": "query", + "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" + } + } + ], + "responses": { + "302": { + "description": "Found" + }, + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$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": "JSON body with redirect_uri the frontend should navigate the browser to", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "501": { - "description": "Not Implemented", + "400": { + "description": "Bad Request", "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" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "requestBody": { "required": true, "content": { - "application/json": { + "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/sandboxes.ServiceURLPayload" + "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" + ] } } } } } }, - "/v2/sandboxes/boxes/{name}/snapshot": { - "post": { - "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, - { - "Bearer Auth": [] - } - ], - "description": "Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.", + "/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": [ - "sandboxes" + "oauth" ], - "summary": "Capture a snapshot from a sandbox", + "summary": "Get public OAuth2 client metadata", "parameters": [ { - "description": "Sandbox display name", - "name": "name", + "description": "OAuth2 client ID", + "name": "clientID", "in": "path", "required": true, "schema": { @@ -44473,12 +41143,12 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + "$ref": "#/components/schemas/oauth.ClientPublicMetadata" } } } @@ -44488,17 +41158,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" } } } @@ -44508,45 +41168,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.CaptureSnapshotPayload" - } - } - } - } + "x-public": true } }, - "/v2/sandboxes/boxes/{name}/start": { + "/oauth/device/authorize": { "post": { "security": [ { @@ -44559,29 +41190,22 @@ "Bearer Auth": [] } ], - "description": "Start a stopped or failed sandbox. This endpoint is not idempotent.", + "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": [ - "sandboxes" - ], - "summary": "Start a sandbox", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "Authorize a device code", + "parameters": [], "responses": { - "202": { - "description": "Accepted", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } @@ -44591,46 +41215,65 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "403": { - "description": "Forbidden", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "404": { - "description": "Not Found", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "organization_id": { + "type": "string", + "description": "Organization ID; must match the authenticated org" + }, + "workspace_id": { + "type": "string", + "description": "Default workspace ID; must belong to organization and be accessible to user" + }, + "user_code": { + "type": "string", + "description": "User code displayed on the device" + } + }, + "required": [ + "organization_id", + "user_code" + ] } } } } } }, - "/v2/sandboxes/boxes/{name}/status": { - "get": { + "/oauth/device/code": { + "post": { "security": [ { "API Key": [] @@ -44640,44 +41283,31 @@ }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Retrieve the lightweight status of a sandbox for polling.", + "description": "Issues a device code and user code for the device authorization flow per RFC 8628.", "tags": [ - "sandboxes" - ], - "summary": "Get sandbox status", - "parameters": [ - { - "description": "Sandbox display name", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "oauth" ], + "summary": "Request OAuth2 device authorization", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxStatusResponse" + "$ref": "#/components/schemas/oauth.DeviceCodeResponse" } } } }, - "404": { - "description": "Not Found", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -44687,15 +41317,35 @@ "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": { + "client_id": { + "type": "string", + "description": "OAuth2 client ID" + } + }, + "required": [ + "client_id" + ] + } + } + } } } }, - "/v2/sandboxes/boxes/{name}/stop": { + "/oauth/register": { "post": { "security": [ { @@ -44708,52 +41358,39 @@ "Bearer Auth": [] } ], - "description": "Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.", + "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": "Stop 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": { - "204": { - "description": "Sandbox stopped" - }, - "400": { - "description": "Bad Request", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.ClientRegistrationResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } }, - "404": { - "description": "Not Found", + "413": { + "description": "Request Entity Too Large", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -44763,48 +41400,97 @@ "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" + } + } + } } } }, - "/v2/sandboxes/internal/start/{name}": { + "/oauth/revoke": { "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-).", + "security": [ + { + "API Key": [] + }, + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Revokes an access token or refresh token per RFC 7009. Always returns 200 regardless of whether the token was found.", "tags": [ - "sandboxes-internal" + "oauth" ], - "summary": "Internal: start a stopped sandbox (service-to-service)", - "parameters": [ - { - "description": "Sandbox display name or route name (sb-)", - "name": "name", - "in": "path", - "required": true, - "schema": { - "type": "string" + "summary": "Revoke an OAuth2 token", + "parameters": [], + "responses": { + "200": { + "description": "OK" + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "Token to revoke (access token or refresh token)" + } + }, + "required": [ + "token" + ] + } } + } + } + } + }, + "/oauth/token": { + "post": { + "security": [ + { + "API Key": [] }, { - "description": "Tenant ID", - "name": "X-Tenant-Id", - "in": "header", - "required": true, - "schema": { - "type": "string" - } + "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], + "description": "Token endpoint that dispatches by grant_type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token.", + "tags": [ + "oauth" + ], + "summary": "Exchange grant for OAuth2 tokens", + "parameters": [], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SandboxResponse" + "$ref": "#/components/schemas/oauth.TokenResponse" } } } @@ -44814,17 +41500,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } @@ -44834,135 +41510,143 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, - "x-hidden": true + "x-public": true, + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "grant_type": { + "type": "string", + "description": "Grant type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token" + }, + "client_id": { + "type": "string", + "description": "OAuth2 client ID" + }, + "code": { + "type": "string", + "description": "Authorization code (authorization_code grant)" + }, + "code_verifier": { + "type": "string", + "description": "PKCE code verifier (authorization_code grant)" + }, + "redirect_uri": { + "type": "string", + "description": "Redirect URI (authorization_code grant)" + }, + "device_code": { + "type": "string", + "description": "Device code (device_code grant)" + }, + "refresh_token": { + "type": "string", + "description": "Refresh token (refresh_token grant)" + } + }, + "required": [ + "grant_type", + "client_id" + ] + } + } + } + } } }, - "/v2/sandboxes/snapshots": { + "/orgs/current/data-planes": { "get": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "List sandbox snapshots for the authenticated tenant, with optional filtering, sorting, and pagination.", + "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": "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" - } - }, - { - "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": "Sort column (name, status, created_at)", - "name": "sort_by", - "in": "query", - "schema": { - "type": "string", - "default": "created_at", - "title": "Sort By" - } - }, - { - "description": "Sort direction (asc, desc)", - "name": "sort_direction", - "in": "query", - "schema": { - "type": "string", - "default": "desc", - "title": "Sort Direction" - } - } + "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.SnapshotListResponse" + "$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" + } + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "403": { - "description": "Forbidden", + "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", + "description": "Internal server error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } } - } + }, + "x-public": true, + "parameters": [] }, "post": { "security": [ @@ -44970,94 +41654,115 @@ "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Create a snapshot from a Docker image (async build).", + "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" + "data_planes" ], - "summary": "Create a snapshot", + "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" + } + } + } + }, + "409": { + "description": "Name already exists for this organization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/data_planes.ErrorResponse" } } } }, "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.CreateSnapshotPayload" + "$ref": "#/components/schemas/data_planes.CreateDataPlaneRequestAws" } } } } } }, - "/v2/sandboxes/snapshots/{snapshot_id}": { - "get": { + "/orgs/current/data-planes/{id}": { + "delete": { "security": [ { "API Key": [] }, { - "Tenant ID": [] + "Organization ID": [] }, { "Bearer Auth": [] } ], - "description": "Get a sandbox snapshot by ID.", + "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": "Get a snapshot", + "summary": "Delete a data plane", "parameters": [ { - "description": "Snapshot UUID", - "name": "snapshot_id", + "description": "Data plane ID", + "name": "id", "in": "path", "required": true, "schema": { @@ -45066,59 +41771,97 @@ } ], "responses": { - "200": { - "description": "OK", + "202": { + "description": "Data plane deprovisioning started", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.SnapshotResponse" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } } } }, "400": { - "description": "Bad Request", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "403": { - "description": "Forbidden", + "description": "BYOC not enabled or insufficient permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, "404": { - "description": "Not Found", + "description": "Data plane not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "409": { + "description": "Data plane is not active", + "content": { + "application/json": { + "schema": { + "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" + } } } } } - } - }, - "delete": { + }, + "x-public": true + } + }, + "/repos/{owner}/{repo}/tags/{tag_name}/history": { + "get": { "security": [ { "API Key": [] @@ -45130,42 +41873,78 @@ "Bearer Auth": [] } ], - "description": "Delete a snapshot by ID. The underlying storage is reclaimed asynchronously.", + "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" + "tag-transitions" ], - "summary": "Delete a snapshot", + "summary": "Get tag transition history", "parameters": [ { - "description": "Snapshot UUID", - "name": "snapshot_id", + "description": "Repository owner (tenant handle)", + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Repository handle", + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Tag name", + "name": "tag_name", "in": "path", "required": true, "schema": { "type": "string" } + }, + { + "name": "limit", + "in": "query", + "schema": { + "default": 50, + "type": "integer", + "maximum": 100, + "minimum": 1, + "title": "Limit" + } + }, + { + "name": "offset", + "in": "query", + "schema": { + "default": 0, + "type": "integer", + "minimum": 0, + "title": "Offset" + } } ], "responses": { - "204": { - "description": "Snapshot deleted" - }, - "400": { - "description": "Bad Request", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.TagTransitionHistoryResponse" } } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } @@ -45175,7 +41954,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } @@ -45185,692 +41964,730 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/tag_transitions.ErrorResponse" } } } } - } + }, + "x-public": true } }, - "/v2/sandboxes/usage": { + "/userinfo": { "get": { "security": [ - { - "API Key": [] - }, - { - "Tenant ID": [] - }, { "Bearer Auth": [] - }, - { - "X-Service-Key": [] } ], - "description": "Get current sandbox resource usage and quota limits for the workspace", + "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": "Get sandbox resource usage", + "summary": "Get OpenID Connect userinfo", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.UsageResponse" + "$ref": "#/components/schemas/oauth.UserinfoResponse" } } } }, - "500": { - "description": "Internal Server Error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/sandboxes.ErrorResponse" + "$ref": "#/components/schemas/oauth.TokenErrorResponse" } } } } }, + "x-public": true, "parameters": [] } }, - "/v2/threads/query": { - "post": { + "/v1/agent-builder/integrations": { + "get": { "security": [ { - "API Key": [], - "Tenant ID": [] + "API Key": [] }, { - "Bearer Auth": [], "Tenant ID": [] + }, + { + "Bearer Auth": [] } ], - "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.", + "description": "Returns default policy, integration overrides, and known integrations for the current workspace.", "tags": [ - "threads" + "integrations" ], - "summary": "Query Threads", - "parameters": [], + "summary": "Get Agent Builder integrations settings", "responses": { "200": { - "description": "items and pagination", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.QueryThreadsResponseBody" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } }, "400": { - "description": "bad request (malformed JSON or invalid parameters)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "401": { - "description": "missing or invalid authentication", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "403": { - "description": "forbidden (insufficient permission)", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "404": { - "description": "session not found", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } + } + }, + "x-public": true, + "parameters": [] + }, + "put": { + "security": [ + { + "API Key": [] }, - "422": { - "description": "unprocessable entity (e.g. invalid project UUID)", + { + "Tenant ID": [] + }, + { + "Bearer Auth": [] + } + ], + "description": "Replaces default policy and integration overrides for the current workspace.", + "tags": [ + "integrations" + ], + "summary": "Update Agent Builder integrations settings", + "parameters": [], + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsPayload" } } } }, - "500": { - "description": "internal server error", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "503": { - "description": "service unavailable", + "404": { + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "type": "object", + "additionalProperties": { + "type": "string" + } } } } }, - "504": { - "description": "gateway timeout or deadline exceeded", + "500": { + "description": "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/threads.QueryThreadsRequestBody" + "$ref": "#/components/schemas/integrations.AgentBuilderIntegrationsUpdatePayload" } } } } } }, - "/v2/threads/{thread_id}/stats": { + "/v1/fleet/orgs": { "get": { "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": "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": [ - "threads" + "fleet orgs" ], - "summary": "Query Single Thread Stats", + "summary": "List organizations", "parameters": [ { - "description": "Thread ID", - "name": "thread_id", - "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", + "description": "Items per page (default 20, max 20)", + "name": "page_size", "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" + "type": "integer", + "title": "Page Size" } }, { - "description": "`session_id` is the tracing project (session) UUID (required).", - "name": "session_id", + "description": "Opaque pagination cursor returned by a prior response", + "name": "cursor", "in": "query", - "required": true, "schema": { "type": "string", - "format": "uuid", - "title": "Session Id" + "title": "Cursor" } } ], "responses": { "200": { - "description": "aggregate stats for the thread", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.QuerySingleThreadStatsResponseBody" + "$ref": "#/components/schemas/orgs.ListOrgsResponse" } } } }, "400": { - "description": "bad request (missing or invalid query parameters)", + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } }, "401": { - "description": "missing or invalid authentication", + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } }, - "403": { - "description": "forbidden (insufficient permission)", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/httperr.ErrorResponse" } } } + } + }, + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/orgs/{org_id}/tenants": { + "get": { + "security": [ + { + "API Key": [] }, - "404": { - "description": "session not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" - } - } + { + "Bearer Auth": [] + } + ], + "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": [ + "fleet tenants" + ], + "summary": "List tenants", + "parameters": [ + { + "description": "Organization ID", + "name": "org_id", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, - "422": { - "description": "unprocessable entity (e.g. invalid project UUID)", + { + "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": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/tenants.ListTenantsResponse" } } } }, - "500": { - "description": "internal server error", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/tenants.ErrorResponse" } } } }, - "503": { - "description": "service unavailable", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/tenants.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/tenants.ErrorResponse" } } } } - } + }, + "x-public": true, + "x-hidden": true } }, - "/v2/threads/{thread_id}/traces": { + "/v1/fleet/secrets": { "get": { "security": [ { - "API Key": [], - "Tenant ID": [] + "API Key": [] }, { - "Bearer Auth": [], "Tenant ID": [] - } - ], - "description": "**Alpha:** The request and response contract may change;\nRetrieve all traces belonging to a specific thread within a project.", - "tags": [ - "threads" - ], - "summary": "Query Thread Traces", - "parameters": [ - { - "description": "Thread ID", - "name": "thread_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "`cursor` is the opaque string from a previous response's `next_cursor`. Omit on the first request; pass the returned cursor to fetch the next page.", - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "title": "Cursor" - } - }, - { - "description": "`filter` narrows which traces are returned for this thread, using a LangSmith filter expression evaluated against each root trace run.\nFor example: eq(status, \"success\") or has(tags, \"production\").\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", - "name": "filter", - "in": "query", - "schema": { - "type": "string", - "title": "Filter" - } }, { - "example": 20, - "description": "`page_size` is the maximum number of traces to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set.", - "name": "page_size", - "in": "query", - "schema": { - "maximum": 100, - "type": "integer", - "default": 20, - "minimum": 1, - "title": "Page Size" - } - }, - { - "description": "`project_id` is the tracing project UUID (required).", - "name": "project_id", - "in": "query", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "title": "Project Id" - } - }, - { - "example": [ - "NAME", - "START_TIME" - ], - "description": "`selects` lists which properties to include on each returned trace (repeatable query parameter). Accepts any value of the `ThreadTraceSelectField` enum. Properties not listed are omitted from each trace object; `trace_id` is always returned.", - "name": "selects", - "in": "query", - "style": "form", - "explode": true, - "schema": { - "items": { - "enum": [ - "THREAD_ID", - "TRACE_ID", - "OP", - "PROMPT_TOKENS", - "COMPLETION_TOKENS", - "TOTAL_TOKENS", - "START_TIME", - "END_TIME", - "LATENCY", - "FIRST_TOKEN_TIME", - "INPUTS_PREVIEW", - "OUTPUTS_PREVIEW", - "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" + "Bearer Auth": [] + } + ], + "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": [ + "fleet secrets" + ], + "summary": "List workspace secret names", + "parameters": [ + { + "description": "Items per page (1-100, default 20)", + "name": "page_size", + "in": "query", + "schema": { + "type": "integer", + "title": "Page Size" + } + }, + { + "description": "Opaque pagination cursor from a prior response's next_cursor", + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "title": "Cursor" } } ], "responses": { "200": { - "description": "items and pagination", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/threads.QueryThreadTracesResponseBody" + "$ref": "#/components/schemas/secrets.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/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)", + { + "Tenant ID": [] + }, + { + "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" } } } }, - "500": { - "description": "internal server error", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } }, - "503": { - "description": "service unavailable", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/secrets.ErrorResponse" } } } - }, - "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": { + "type": "array", + "items": { + "$ref": "#/components/schemas/secrets.bulkUpsertItem" } } } } - } + }, + "x-hidden": true } }, - "/v2/traces/{trace_id}/runs": { - "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;\nReturns runs for a trace ID within min/max start time. Optional `filter`; repeatable `selects` to select fields to return.", + "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": [ - "runs" + "fleet secrets" ], - "summary": "List runs in a trace", + "summary": "Set a workspace secret", "parameters": [ { - "description": "application/json", - "name": "Accept", - "in": "header", + "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/secrets.ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } + } + } + }, + "x-public": true, + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.putRequest" + } + } + } + }, + "x-hidden": true + }, + "delete": { + "security": [ + { + "API Key": [] }, { - "description": "Trace UUID", - "name": "trace_id", + "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", - "format": "uuid" + "type": "string" } + } + ], + "responses": { + "204": { + "description": "No Content" }, - { - "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" + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } } }, - { - "description": "`max_start_time` is the inclusive upper bound for run `start_time` (RFC3339 date-time).", - "name": "max_start_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "format": "date-time", - "title": "Max Start Time" + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } } }, - { - "description": "`min_start_time` is the inclusive lower bound for run `start_time` (RFC3339 date-time).", - "name": "min_start_time", - "in": "query", - "required": true, - "schema": { - "type": "string", - "format": "date-time", - "title": "Min Start Time" + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/secrets.ErrorResponse" + } + } } + } + }, + "x-public": true, + "x-hidden": true + } + }, + "/v1/fleet/tenants/{tenant_id}/users/{id}": { + "get": { + "security": [ + { + "API Key": [] }, { - "description": "`project_id` is the UUID of the tracing project that owns the trace.", - "name": "project_id", - "in": "query", + "Bearer Auth": [] + } + ], + "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": [ + "fleet users" + ], + "summary": "Get Fleet user in tenant", + "parameters": [ + { + "description": "Tenant ID", + "name": "tenant_id", + "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid", - "title": "Project Id" + "type": "string" } }, { - "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, + "description": "User ID", + "name": "id", + "in": "path", + "required": 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" + "type": "string" } } ], @@ -45880,92 +42697,126 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/query.QueryTraceResponseBody" + "$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", + "description": "Not Found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, - "422": { - "description": "unprocessable entity (e.g. invalid UUID)", + "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": [] }, - "500": { - "description": "internal server error", + { + "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" } } } }, - "503": { - "description": "service unavailable", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/shared.ProblemDetails" + "$ref": "#/components/schemas/users.ErrorResponse" } } } }, - "504": { - "description": "gateway timeout or deadline exceeded", + "404": { + "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/users.ErrorResponse" } } } } - } + }, + "x-public": true, + "parameters": [], + "x-hidden": true } }, "/workspaces/current/ttl-settings": { @@ -46037,6 +42888,7 @@ } } }, + "x-public": true, "parameters": [] }, "put": { @@ -46108,6 +42960,7 @@ } } }, + "x-public": true, "requestBody": { "required": true, "content": { @@ -46554,93 +43407,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 +43558,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", @@ -48216,11 +45091,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 +45121,14 @@ "delete_workspace_member", "update_workspace_member", "delete_workspace_pending_member", + "update_workspace_pending_member", "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 +45142,8 @@ "delete_tracer_session", "delete_tracer_sessions", "delete_runs", + "share_run", + "unshare_run", "create_dataset", "create_csv_dataset", "create_experiment_via_upload", @@ -48278,6 +45163,7 @@ "create_examples", "update_example", "update_examples", + "update_examples_metadata", "sync_examples", "delete_example", "delete_examples", @@ -48316,7 +45202,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 +45221,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,6 +45236,10 @@ "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", @@ -48380,6 +45274,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", @@ -48407,6 +45302,7 @@ "update_sandbox_registry", "delete_sandbox_registry", "create_data_plane", + "delete_data_plane", "create_annotation_queue", "populate_annotation_queue", "delete_annotation_queue", @@ -48418,6 +45314,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 +45405,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 +45447,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 +45475,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 +45676,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 +45703,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 +45914,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 +46012,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 +46223,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 +46351,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 +46431,7 @@ "metadata": { "anyOf": [ { - "additionalProperties": { - "type": "string" - }, + "additionalProperties": true, "type": "object" }, { @@ -49547,6 +46439,23 @@ } ], "title": "Metadata" + }, + "delete_examples": { + "type": "boolean", + "title": "Delete Examples", + "default": false + }, + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" } }, "type": "object", @@ -49607,8 +46516,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49724,6 +46633,17 @@ } ], "title": "Metadata Key Mappings" + }, + "tag_value_ids": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Tag Value Ids" } }, "type": "object", @@ -49737,8 +46657,8 @@ "properties": { "file": { "type": "string", - "format": "binary", - "title": "File" + "title": "File", + "format": "binary" }, "input_keys": { "items": { @@ -49895,7 +46815,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -50055,7 +46975,7 @@ }, "compression": { "$ref": "#/components/schemas/BulkExportCompression", - "default": "gzip" + "default": "zstandard" }, "interval_hours": { "anyOf": [ @@ -50589,13 +47509,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 +47528,17 @@ "properties": { "tier": { "$ref": "#/components/schemas/ChangePaymentPlanReq" + }, + "display_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Display Name" } }, "type": "object", @@ -51195,37 +48130,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 +48377,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 +48690,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 +49261,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 +49505,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 +49537,7 @@ "anyOf": [ { "items": { - "$ref": "#/components/schemas/CustomChartSeries" + "$ref": "#/components/schemas/CustomChartSeries-Output" }, "type": "array" }, @@ -51957,12 +49559,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 +49588,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 +49630,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 +49772,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 +49885,6 @@ "type": "object", "required": [ "name", - "metric", "id" ], "title": "CustomChartSeries" @@ -52046,6 +49895,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -52057,7 +49918,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 +49960,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 +50037,7 @@ }, "type": "object", "required": [ - "name", - "metric" + "name" ], "title": "CustomChartSeriesCreate" }, @@ -52170,6 +50101,18 @@ "type": "string", "title": "Name" }, + "metadata": { + "anyOf": [ + { + "additionalProperties": true, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Metadata" + }, "filters": { "anyOf": [ { @@ -52181,7 +50124,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 +50166,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 +50255,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 +50473,20 @@ "default": { "__missing__": "__missing__" } + }, + "markdown": { + "anyOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Missing" + } + ], + "title": "Markdown", + "default": { + "__missing__": "__missing__" + } } }, "type": "object", @@ -52630,7 +50733,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 +50770,16 @@ } ], "title": "Sub Sections" + }, + "layout": { + "anyOf": [ + { + "$ref": "#/components/schemas/DashboardLayout-Output" + }, + { + "type": "null" + } + ] } }, "type": "object", @@ -52873,6 +51005,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 +51057,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 +51229,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 +51544,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 +52270,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 +52400,17 @@ } ], "title": "Model" + }, + "playground_settings_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Model Configuration ID" } }, "type": "object", @@ -53975,6 +52460,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 +52539,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -54072,7 +52604,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54195,7 +52728,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54206,7 +52740,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -54256,6 +52791,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 +53134,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 +53213,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -54808,6 +53394,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 +53986,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 +54013,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 +54115,11 @@ ], "title": "Score" }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": true + }, "value": { "anyOf": [ { @@ -56303,6 +54927,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 +54957,11 @@ "$ref": "#/components/schemas/FilterViewType", "default": "runs" }, + "syntax_version": { + "type": "integer", + "title": "Syntax Version", + "default": 1 + }, "start_time": { "anyOf": [ { @@ -56429,6 +55069,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 +55099,15 @@ "$ref": "#/components/schemas/FilterViewType", "default": "runs" }, + "syntax_version": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "title": "Syntax Version", + "default": 1 + }, "start_time": { "anyOf": [ { @@ -56580,6 +55240,17 @@ ], "title": "Tree Filter String" }, + "thread_filter_string": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Thread Filter String" + }, "type": { "anyOf": [ { @@ -56590,6 +55261,21 @@ } ] }, + "syntax_version": { + "anyOf": [ + { + "type": "integer", + "enum": [ + 1, + 2 + ] + }, + { + "type": "null" + } + ], + "title": "Syntax Version" + }, "start_time": { "anyOf": [ { @@ -56631,6 +55317,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 +55953,16 @@ } ], "title": "Workspace Name" + }, + "trace_tier": { + "anyOf": [ + { + "$ref": "#/components/schemas/TraceTier" + }, + { + "type": "null" + } + ] } }, "type": "object", @@ -57263,11 +55975,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 +56011,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 +56033,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 +56365,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57639,7 +56377,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57650,7 +56389,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -57944,7 +56684,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 +57038,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 +57053,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 +57195,7 @@ "title": "Extras" } }, + "additionalProperties": true, "type": "object", "required": [ "type", @@ -59112,129 +57792,8 @@ "type": "number" }, { - "type": "string" - } - ], - "title": "Prompt Cost" - }, - "completion_cost": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ], - "title": "Completion Cost" - }, - "prompt_cost_details": { - "anyOf": [ - { - "additionalProperties": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Prompt Cost Details" - }, - "completion_cost_details": { - "anyOf": [ - { - "additionalProperties": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "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": "ModelPriceMapCreateSchema", - "description": "Model price map create schema." - }, - "ModelPriceMapUpdateSchema": { - "properties": { - "name": { - "type": "string", - "title": "Name" - }, - "start_time": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ], - "title": "Start Time" - }, - "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": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Prompt Cost" @@ -59244,8 +57803,250 @@ { "type": "number" }, + { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" + } + ], + "title": "Completion Cost" + }, + "prompt_cost_details": { + "anyOf": [ + { + "additionalProperties": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" + } + ] + }, + "type": "object" + }, + { + "type": "null" + } + ], + "title": "Prompt Cost Details" + }, + "completion_cost_details": { + "anyOf": [ + { + "additionalProperties": { + "anyOf": [ + { + "type": "number" + }, + { + "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": "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": { + "type": "string", + "title": "Name" + }, + "start_time": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Start Time" + }, + "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": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" + } + ], + "title": "Prompt Cost" + }, + "completion_cost": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Completion Cost" @@ -59259,7 +58060,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59280,7 +58082,8 @@ "type": "number" }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ] }, @@ -59992,6 +58795,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -60019,6 +58833,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -60091,17 +58916,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -60317,6 +59131,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 +59305,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 +59336,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", @@ -60633,6 +59480,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 +59495,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 +59597,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 +59637,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", @@ -60830,10 +59709,31 @@ "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", @@ -60945,6 +59845,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 +59935,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 +60038,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 +60070,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 +60090,7 @@ "type": "null" } ], - "title": "Engine Trial Modal Seen At" + "title": "Managed Eval Terms Accepted At" } }, "type": "object", @@ -61320,6 +60250,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 +60351,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 +60400,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 +60596,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 +60621,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 +60656,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 +60688,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 +60710,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 +60752,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61756,6 +60790,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61828,17 +60873,6 @@ "format": "date-time", "title": "Created At" }, - "role_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Role Name" - }, "org_role_id": { "anyOf": [ { @@ -61895,6 +60929,17 @@ ], "title": "Role Id" }, + "role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Role Name" + }, "workspace_ids": { "anyOf": [ { @@ -61922,6 +60967,17 @@ ], "title": "Workspace Role Id" }, + "workspace_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Workspace Role Name" + }, "password": { "anyOf": [ { @@ -61951,6 +61007,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 +61224,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 +61289,15 @@ "title": "Settings Type", "default": "complex" }, + "scope": { + "type": "string", + "enum": [ + "workspace", + "organization" + ], + "title": "Scope", + "default": "workspace" + }, "oauth_enabled": { "anyOf": [ { @@ -62748,6 +61431,18 @@ ], "title": "Name" }, + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" + }, "created_at": { "type": "string", "format": "date-time", @@ -62819,7 +61514,7 @@ }, "available_in_polly": { "type": "boolean", - "title": "Available In Chat", + "title": "Available In Polly", "default": false }, "available_in_insights_heavy": { @@ -63023,7 +61718,7 @@ "type": "null" } ], - "title": "Available In Chat" + "title": "Available In Polly" }, "available_in_insights_heavy": { "anyOf": [ @@ -63183,6 +61878,11 @@ }, "type": "array", "title": "Session Ids" + }, + "extend_trace_retention": { + "type": "boolean", + "title": "Extend Trace Retention", + "default": false } }, "type": "object", @@ -64165,6 +62865,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 +63007,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 +63086,17 @@ ], "title": "Modified At" }, + "source_thread_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source Thread Id" + }, "attachment_urls": { "anyOf": [ { @@ -64726,6 +63495,7 @@ "format": "uuid" }, "type": "array", + "maxItems": 10, "minItems": 1, "title": "Session Ids" }, @@ -64737,6 +63507,7 @@ }, "limit": { "type": "integer", + "maximum": 20.0, "minimum": 1.0, "title": "Limit", "default": 10 @@ -65301,6 +64072,20 @@ "type": "null" } ] + }, + "owners": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/RepoOwner" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Owners" } }, "type": "object", @@ -65396,6 +64181,7 @@ "ResourceType": { "type": "string", "enum": [ + "agent", "dashboard", "dataset", "deployment", @@ -65406,7 +64192,9 @@ "project", "prompt", "queue", - "sandbox" + "sandbox", + "skill", + "snapshot_name" ], "title": "ResourceType" }, @@ -65481,6 +64269,11 @@ "type": "null" } ] + }, + "is_restricted": { + "type": "boolean", + "title": "Is Restricted", + "default": false } }, "type": "object", @@ -65493,6 +64286,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 +64388,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 +65494,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66687,7 +65506,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66698,7 +65518,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -66710,7 +65531,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -66724,7 +65546,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -67166,7 +65989,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -67177,7 +66001,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -67188,7 +66013,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -67200,7 +66026,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -67214,7 +66041,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -67284,7 +66112,8 @@ "exclusiveMinimum": 0.0 }, { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" } ], "title": "Limit Usd" @@ -67304,6 +66133,7 @@ "properties": { "limit_usd": { "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Limit Usd" }, "window": { @@ -67437,6 +66267,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", @@ -67892,6 +66765,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 +66924,17 @@ ], "title": "Evaluator Id" }, + "evaluator_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluator Name" + }, "alignment_annotation_queue_id": { "anyOf": [ { @@ -68173,6 +67111,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", @@ -68431,6 +67424,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", @@ -68635,6 +67671,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 +67695,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 +68098,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69057,7 +68110,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69068,7 +68122,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69080,7 +68135,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69094,7 +68150,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -69572,10 +68629,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 +68656,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69597,7 +68668,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -69634,13 +68706,6 @@ } ], "title": "App Path" - }, - "feedbacks": { - "items": { - "$ref": "#/components/schemas/FeedbackSchema" - }, - "type": "array", - "title": "Feedbacks" } }, "type": "object", @@ -70029,7 +69094,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -70040,7 +69106,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -70051,7 +69118,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -70063,7 +69131,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -70077,7 +69146,8 @@ "anyOf": [ { "additionalProperties": { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, "type": "object" }, @@ -70392,6 +69462,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 +69476,7 @@ "type": "object", "required": [ "run_id", + "shared_trace_id", "share_token" ], "title": "RunShareSchema" @@ -70843,7 +69919,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 +70444,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 +70499,7 @@ "session_feedback_stats", "all_run_stats", "all_token_stats", + "group_count", "prompt_token_details", "completion_token_details", "prompt_cost_details", @@ -71141,82 +70522,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 +71420,7 @@ "latency_p50", "latency_p99", "error_rate", - "feedback", - "runs_count" + "feedback" ], "title": "SessionSortableColumns" }, @@ -72154,6 +71458,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 +71529,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 +71567,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 +72730,14 @@ }, "TaggingsByResourceType": { "properties": { + "agents": { + "items": { + "$ref": "#/components/schemas/Resource" + }, + "type": "array", + "title": "Agents", + "default": [] + }, "alerts": { "items": { "$ref": "#/components/schemas/Resource" @@ -73501,6 +72825,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", @@ -73933,6 +73273,10 @@ "evaluator_count": { "type": "integer", "title": "Evaluator Count" + }, + "custom_app_count": { + "type": "integer", + "title": "Custom App Count" } }, "type": "object", @@ -73944,7 +73288,8 @@ "annotation_queue_count", "deployment_count", "dashboards_count", - "evaluator_count" + "evaluator_count", + "custom_app_count" ], "title": "TenantStats", "description": "Stats for a tenant." @@ -74082,6 +73427,7 @@ "title": "Type" } }, + "additionalProperties": true, "type": "object", "required": [ "name", @@ -74143,6 +73489,7 @@ "title": "Type" } }, + "additionalProperties": true, "type": "object", "required": [ "name", @@ -74513,7 +73860,8 @@ "total_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74524,7 +73872,8 @@ "prompt_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74535,7 +73884,8 @@ "completion_cost": { "anyOf": [ { - "type": "string" + "type": "string", + "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$" }, { "type": "null" @@ -74665,6 +74015,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", @@ -75298,6 +74664,34 @@ "type": "string", "format": "uuid", "title": "Id" + }, + "scope": { + "$ref": "#/components/schemas/UsageLimitScope", + "default": "workspace" + }, + "session_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Session Id" + }, + "identity_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Identity Id" } }, "type": "object", @@ -75317,10 +74711,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" }, "tenant_id": { "type": "string", @@ -75349,6 +74771,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 +74811,7 @@ "$ref": "#/components/schemas/OutputTokenDetails" } }, + "additionalProperties": true, "type": "object", "required": [ "input_tokens", @@ -75615,52 +75048,31 @@ "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": { + "WorkspaceInviteResult": { "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" + "read_only": { + "type": "boolean", + "title": "Read Only", + "default": false, + "deprecated": true }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" + "role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Role Id" }, - "tenant_handle": { + "role_name": { "anyOf": [ { "type": "string" @@ -75669,65 +75081,36 @@ "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" + "title": "Role Name" }, - "organization_id": { + "workspace_ids": { "anyOf": [ { - "type": "string", - "format": "uuid" + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array" }, { "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" + "title": "Workspace Ids" }, - "tenant_handle": { + "workspace_role_id": { "anyOf": [ { - "type": "string" + "type": "string", + "format": "uuid" }, { "type": "null" } ], - "title": "Tenant Handle" + "title": "Workspace Role Id" }, - "data_plane_url": { + "workspace_role_name": { "anyOf": [ { "type": "string" @@ -75736,746 +75119,259 @@ "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" + "title": "Workspace Role Name" }, - "tools": { - "description": "Tool config parsed from `tools.json`.", - "allOf": [ + "password": { + "anyOf": [ { - "$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": [ + "type": "string" + }, { - "$ref": "#/components/schemas/agents.SandboxConfig" + "type": "null" } - ] - }, - "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" - ] + "title": "Password" }, - "visibility": { - "type": "string", - "enum": [ - "tenant", - "user" - ] - } - } - }, - "agents.AgentRuntime": { - "type": "object", - "properties": { - "model": { - "description": "Model configuration for the agent.", - "allOf": [ + "full_name": { + "anyOf": [ + { + "type": "string" + }, { - "$ref": "#/components/schemas/agents.AgentModelConfig" + "type": "null" } - ] - } - } - }, - "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" + ], + "title": "Full Name" }, - "expires_at": { - "type": "string" + "access_scope": { + "$ref": "#/components/schemas/AccessScope", + "default": "workspace" }, "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." + "format": "uuid", + "title": "Id" }, - "tools": { - "description": "Tool config. Written to `tools.json`.", - "allOf": [ + "user_id": { + "anyOf": [ { - "$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" - }, - "type": { - "type": "string" - } - } - }, - "agents.FileEntry": { - "type": "object", - "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.", - "type": "string", - "example": "# AGENTS.md\n\nYou are a helpful agent." - }, - "repo_handle": { - "description": "Workspace skill repo handle. Required when type=skill.", - "type": "string", - "example": "summarizer" - }, - "type": { - "description": "Entry discriminator. Defaults to \"file\" when omitted.", - "type": "string", - "enum": [ - "file", - "skill" - ], - "example": "file" - } - } - }, - "agents.HealthResponse": { - "type": "object", - "properties": { - "agent_id": { - "type": "string" - }, - "checked_at": { - "type": "string", - "format": "date-time" - }, - "mcp_check": { - "$ref": "#/components/schemas/agents.MCPCheck" - } - } - }, - "agents.ListAgentsResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.AgentSummary" - } - }, - "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" - }, - "servers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/agents.MCPServerHealth" - } - } - } - }, - "agents.MCPServerHealth": { - "type": "object", - "properties": { - "error": { - "type": "string" + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "User Id" }, - "error_code": { - "$ref": "#/components/schemas/mcptools.MCPErrorCode" + "tenant_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Tenant Id" }, - "is_default": { - "type": "boolean" + "organization_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Organization Id" }, - "name": { - "type": "string" + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" }, - "ok": { - "type": "boolean" + "org_role_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Org Role Id" }, - "url": { - "type": "string" + "org_role_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Org Role Name" + }, + "ls_user_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Ls User Id" } - } - }, - "agents.SandboxConfig": { + }, "type": "object", + "required": [ + "email", + "id", + "created_at" + ], + "title": "WorkspaceInviteResult", + "description": "Response type for the batch workspace invite endpoint.\n\nExtends PendingIdentity so existing clients continue to work. When the\ninvitee was already an active org member, ``ls_user_id`` is populated\nand ``email`` is filled from the request payload." + }, + "WorkspacePatch": { "properties": { - "delete_after_stop_seconds": { - "description": "Time after a sandbox is stopped before it is deleted, in seconds.", - "type": "integer", - "example": 1200 - }, - "idle_ttl_seconds": { - "description": "Idle timeout after which an unused sandbox is paused, in seconds.", - "type": "integer", - "example": 600 - }, - "policy_ids": { - "description": "Sandbox policies governing tool execution.", - "type": "array", - "items": { - "type": "string" - } - }, - "snapshot_id": { - "description": "Snapshot used when creating new sandbox-backed computers.", + "display_name": { "type": "string", - "example": "550e8400-e29b-41d4-a716-446655440000" + "minLength": 1, + "pattern": "^[a-zA-Z0-9\\-_ '@()]+$", + "title": "Display Name" } - } - }, - "agents.SharedUsers": { + }, "type": "object", - "properties": { - "read": { - "description": "User IDs allowed to read the agent.", - "type": "array", - "items": { - "type": "string" - } - }, - "run": { - "description": "User IDs allowed to run the agent.", - "type": "array", - "items": { - "type": "string" - } - }, - "update": { - "description": "User IDs allowed to update the agent.", - "type": "array", - "items": { - "type": "string" - } - } - } + "required": [ + "display_name" + ], + "title": "WorkspacePatch", + "description": "Patch model for the workspace." }, - "agents.SkillSpec": { - "type": "object", + "_SSOEmailLookupRequest": { "properties": { - "description": { - "description": "Short human-readable description shown to the agent.", - "type": "string", - "example": "Summarise text into a paragraph." - }, - "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" - } - }, - "instructions": { - "description": "Skill body. Written to `skills//SKILL.md`.", - "type": "string", - "example": "# Summarize\n\nGiven a text, produce a one-paragraph summary." - }, - "name": { - "description": "Skill slug. Becomes `skills//SKILL.md`.", - "type": "string", - "example": "summarize" - }, - "type": { - "description": "Skill discriminator. Only `inline` is supported today.", + "email": { "type": "string", - "enum": [ - "inline" - ], - "example": "inline" + "title": "Email" } - } - }, - "agents.SubagentSpec": { + }, "type": "object", + "required": [ + "email" + ], + "title": "_SSOEmailLookupRequest" + }, + "app__hub__crud__tenants__Tenant": { "properties": { - "description": { - "description": "Short human-readable description.", - "type": "string", - "example": "Researches a topic and summarises findings." - }, - "instructions": { - "description": "Subagent system prompt. Written to `subagents//AGENTS.md`.", + "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": [ { - "$ref": "#/components/schemas/agents.ToolsConfig" + "type": "string" + }, + { + "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": [ + { + "type": "string" + }, { - "$ref": "#/components/schemas/agents.ToolsConfig" + "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 +75397,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] }, "updated_at": { @@ -76530,7 +75427,8 @@ "enum": [ "pagerduty", "webhook", - "dynatrace" + "dynatrace", + "slack" ] } } @@ -76730,6 +75628,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76757,6 +75656,7 @@ "properties": { "actions": { "type": "array", + "minItems": 1, "items": { "$ref": "#/components/schemas/alerts.AlertActionBase" } @@ -76766,6 +75666,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,153 +75708,249 @@ } } }, - "auth.CreateSessionRequest": { + "annotationqueues.AnnotationQueueItem": { "type": "object", "properties": { - "agent_id": { + "added_at": { "type": "string" }, - "is_default": { - "type": "boolean" - }, - "provider_id": { + "id": { "type": "string" }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "strategy": { - "$ref": "#/components/schemas/auth.SessionStrategy" + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" }, - "token_id": { + "last_reviewed_time": { + "description": "LastReviewedTime is always present on the wire (null until reviewed).", "type": "string" - } - } - }, - "auth.CreateSessionResponse": { - "type": "object", - "properties": { - "id": { + }, + "project_id": { "type": "string" }, - "metadata": { - "type": "object", - "additionalProperties": {} + "queue_id": { + "type": "string" }, - "provider_id": { + "run_id": { "type": "string" }, - "status": { - "$ref": "#/components/schemas/auth.SessionStatus" + "source_proposed_example_id": { + "type": "string" }, - "token": { + "start_time": { "type": "string" }, - "verification_url": { + "thread_id": { "type": "string" } } }, - "auth.GetSessionResponse": { + "annotationqueues.AnnotationQueueItemCountResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/auth.SessionStatus" + "count": { + "type": "integer" } } }, - "auth.ListTokensResponse": { + "annotationqueues.AnnotationQueueItemInput": { "type": "object", "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/auth.TokenSummary" - } + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" }, - "next_cursor": { + "project_id": { + "type": "string" + }, + "run_id": { + "description": "RUN fields", + "type": "string" + }, + "session_id": { + "description": "SessionID is an alias for project_id.", + "type": "string" + }, + "source_proposed_example_id": { + "description": "SourceProposedExampleID links the queue item to the suggested example\nit was created from, when applicable.", + "type": "string" + }, + "start_time": { + "type": "string", + "format": "date-time" + }, + "thread_id": { "type": "string" } } }, - "auth.SessionStatus": { + "annotationqueues.AnnotationQueueItemListStatus": { "type": "string", "enum": [ - "PENDING", - "COMPLETED", - "CONNECTION_REQUIRED", - "TOKEN_EXPIRED" + "needs_my_review", + "needs_others_review", + "archived" ], "x-enum-varnames": [ - "SessionStatusPending", - "SessionStatusCompleted", - "SessionStatusConnectionRequired", - "SessionStatusTokenExpired" + "AnnotationQueueItemStatusNeedsMyReview", + "AnnotationQueueItemStatusNeedsOthersReview", + "AnnotationQueueItemStatusArchived" ] }, - "auth.SessionStrategy": { + "annotationqueues.AnnotationQueueItemPlacementResponse": { + "type": "object", + "properties": { + "cursor": { + "type": "string" + }, + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" + }, + "position": { + "type": "integer" + }, + "section": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemListStatus" + } + } + }, + "annotationqueues.AnnotationQueueItemType": { "type": "string", "enum": [ - "REUSE", - "CREATE" + "RUN", + "THREAD" ], "x-enum-varnames": [ - "SessionStrategyReuse", - "SessionStrategyCreate" + "AnnotationQueueItemTypeRun", + "AnnotationQueueItemTypeThread" ] }, - "auth.TokenSummary": { + "annotationqueues.AnnotationQueueListItem": { "type": "object", "properties": { - "created_at": { + "added_at": { "type": "string" }, - "expires_at": { + "completed_by": { + "type": "array", + "items": { + "type": "string" + } + }, + "effective_added_at": { "type": "string" }, "id": { "type": "string" }, - "is_default": { - "type": "boolean" + "item_type": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueItemType" }, - "label": { + "last_reviewed_time": { + "description": "LastReviewedTime is always present on the wire (null until reviewed).", "type": "string" }, - "provider_id": { + "project_id": { "type": "string" }, - "scopes": { + "queue_id": { + "type": "string" + }, + "reserved_by": { "type": "array", "items": { "type": "string" } }, - "updated_at": { + "run_id": { + "type": "string" + }, + "source_proposed_example_id": { + "type": "string" + }, + "start_time": { + "type": "string" + }, + "thread_id": { "type": "string" } } }, - "auth.errorResponse": { + "annotationqueues.AnnotationQueueReviewStatus": { + "type": "string", + "enum": [ + "viewed", + "completed" + ], + "x-enum-varnames": [ + "AnnotationQueueReviewStatusViewed", + "AnnotationQueueReviewStatusCompleted" + ] + }, + "annotationqueues.CreateAnnotationQueueItemStatusRequest": { "type": "object", "properties": { - "code": { + "override_added_at": { "type": "string" }, - "detail": { + "status": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueReviewStatus" + } + } + }, + "annotationqueues.CreateAnnotationQueueItemStatusResponse": { + "type": "object", + "properties": { + "is_archived": { + "type": "boolean" + }, + "override_added_at": { + "type": "string" + }, + "queue_item_id": { "type": "string" }, "status": { - "type": "integer" + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueReviewStatus" + } + } + }, + "annotationqueues.DeleteAnnotationQueueItemsRequest": { + "type": "object", + "properties": { + "item_ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "annotationqueues.ListAnnotationQueueItemsResponse": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/annotationqueues.AnnotationQueueListItem" + } }, - "type": { + "next_cursor": { "type": "string" + }, + "previous_cursor": { + "type": "string" + } + } + }, + "annotationqueues.PatchAnnotationQueueItemRequest": { + "type": "object", + "properties": { + "added_at": { + "type": "string", + "format": "date-time" + }, + "last_reviewed_time": { + "type": "string", + "format": "date-time" } } }, @@ -76954,6 +75973,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 +76025,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,6 +76037,10 @@ "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" @@ -77034,14 +76065,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 +76086,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 +76173,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 +76192,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" @@ -77189,6 +76240,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-managed 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 +76449,10 @@ "charts:update", "datasets:create", "datasets:delete", + "datasets:download", "datasets:read", "datasets:share", + "datasets:tag-on-create", "datasets:update", "deployments:create", "deployments:delete", @@ -77413,18 +76470,21 @@ "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", @@ -77432,8 +76492,12 @@ "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", @@ -77455,7 +76519,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 +76534,10 @@ "ChartsUpdate", "DatasetsCreate", "DatasetsDelete", + "DatasetsDownload", "DatasetsRead", "DatasetsShare", + "DatasetsTagOnCreate", "DatasetsUpdate", "DeploymentsCreate", "DeploymentsDelete", @@ -77487,18 +76555,21 @@ "ProjectsCreate", "ProjectsDelete", "ProjectsRead", + "ProjectsTagOnCreate", "ProjectsUpdate", "ProjectsIncreaseTraceTier", "ProjectsDecreaseTraceTier", "PromptsCreate", "PromptsDelete", "PromptsRead", + "PromptsTagOnCreate", "PromptsUpdate", "PromptsShare", "RulesCreate", "RulesDelete", "RulesRead", "RulesUpdate", + "RulesConfigureRetention", "RunsCreate", "RunsRead", "RunsShare", @@ -77506,8 +76577,12 @@ "SandboxesCreate", "SandboxesDelete", "SandboxesRead", + "SandboxesTagOnCreate", "SandboxesUpdate", "SandboxesExec", + "SnapshotsCreate", + "SnapshotsDelete", + "SnapshotsUpdate", "WorkspacesManageMembers", "WorkspacesManageSecrets", "WorkspacesManage", @@ -77529,33 +76604,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,102 +76818,71 @@ } } }, - "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" + }, + "role_arn": { + "type": "string" + }, + "vpc_cidr": { "type": "string" } } }, - "credentials.bindingPayload": { + "data_planes.ErrorResponse": { "type": "object", - "required": [ - "kind", - "url" - ], "properties": { - "kind": { - "type": "string", - "enum": [ - "mcp_server" - ] + "code": { + "type": "string" }, - "url": { + "error": { "type": "string" + }, + "missing_permissions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/data_planes.MissingPermission" + } } } }, - "credentials.response": { + "data_planes.ListPublicDataPlanesResponse": { "type": "object", "properties": { - "auth_type": { - "type": "string" - }, - "bindings": { + "data_planes": { "type": "array", "items": { - "$ref": "#/components/schemas/credentials.bindingPayload" + "$ref": "#/components/schemas/data_planes.PublicDataPlane" } - }, - "created_at": { - "type": "string" - }, - "description": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "scope_slug": { - "type": "string" } } }, - "data_planes.CreateDataPlaneRequestAws": { + "data_planes.MissingPermission": { "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": { + "action": { "type": "string" }, - "role_arn": { + "decision": { "type": "string" }, - "vpc_cidr": { + "resource_arn": { "type": "string" } } }, - "data_planes.ListPublicDataPlanesResponse": { - "type": "object", - "properties": { - "data_planes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/data_planes.PublicDataPlane" - } - } - } - }, "data_planes.PublicDataPlane": { "type": "object", "properties": { @@ -77896,6 +76949,150 @@ "DataPlaneStatusRevoked" ] }, + "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 +77125,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 +77147,6 @@ } } }, - "engine_trial.trialResponseRequest": { - "type": "object", - "properties": { - "action": { - "type": "string" - } - } - }, - "errutil.InternalError": { - "type": "object" - }, "errutil.UserError": { "type": "object" }, @@ -78046,6 +77236,10 @@ "commit_hash_or_tag": { "type": "string" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -78084,6 +77278,10 @@ "id": { "type": "string" }, + "is_managed": { + "description": "IsManaged marks a LangChain-managed evaluator (currently the managed\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 +77299,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" }, @@ -78140,11 +77331,26 @@ "num_few_shot_examples": { "type": "integer" }, - "session_id": { - "type": "string" + "session_id": { + "type": "string" + }, + "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" }, - "session_name": { - "type": "string" + "trace_count": { + "type": "integer" }, "use_corrections_dataset": { "type": "boolean" @@ -78347,6 +77553,10 @@ "num_few_shot_examples": { "type": "integer" }, + "playground_settings_id": { + "description": "Model Configuration ID", + "type": "string" + }, "prompt_repo_handle": { "type": "string" }, @@ -78570,6 +77780,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 +77788,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 +77857,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 +77883,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,6 +77903,70 @@ } } }, + "gateway_policies.RateLimitMetric": { + "type": "string", + "enum": [ + "requests", + "tokens" + ], + "x-enum-varnames": [ + "RateLimitMetricRequests", + "RateLimitMetricTokens" + ] + }, + "gateway_policies.RateLimitUsage": { + "type": "object", + "properties": { + "metric": { + "description": "Metric is the counted usage dimension: requests or tokens.", + "allOf": [ + { + "$ref": "#/components/schemas/gateway_policies.RateLimitMetric" + } + ] + }, + "value": { + "description": "Value is the units consumed so far in the current window.", + "type": "integer" + }, + "window": { + "description": "Window is the time window the usage is measured over.", + "allOf": [ + { + "$ref": "#/components/schemas/gateway_policies.RateLimitWindow" + } + ] + } + } + }, + "gateway_policies.RateLimitWindow": { + "type": "string", + "enum": [ + "minute", + "hour" + ], + "x-enum-varnames": [ + "RateLimitWindowMinute", + "RateLimitWindowHour" + ] + }, + "gateway_policies.SearchGatewayPoliciesRequest": { + "type": "object", + "properties": { + "policy_type": { + "type": "string" + }, + "subject_matcher_key": { + "type": "string" + }, + "subject_matcher_values": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "gateway_policies.SubjectMatcher": { "type": "object", "properties": { @@ -78731,143 +78020,23 @@ } } }, - "github_app.ErrorResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - }, - "github_app.InstallLinkResponse": { - "type": "object", - "properties": { - "install_url": { - "type": "string" - } - } - }, - "github_app.Installation": { - "type": "object", - "properties": { - "account_login": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "id": { - "type": "string" - }, - "installation_id": { - "type": "string" - }, - "metadata": { - "type": "object" - }, - "organization_id": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "user_id": { - "type": "string" - } - } - }, - "github_app.Repository": { + "httperr.ErrorResponse": { "type": "object", "properties": { - "default_branch": { - "type": "string" - }, - "full_name": { + "code": { "type": "string" }, - "html_url": { + "detail": { "type": "string" }, - "id": { + "status": { "type": "integer" }, - "name": { - "type": "string" - }, - "private": { - "type": "boolean" - } - } - }, - "github_app.TokenRequest": { - "type": "object", - "properties": { - "repository": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "github_app.UpdateUserConnectionRequest": { - "type": "object", - "properties": { - "actor_preference": { - "type": "string" - } - } - }, - "github_app.UserAuthLinkResponse": { - "type": "object", - "properties": { - "auth_url": { - "type": "string" - } - } - }, - "github_app.UserConnectionMetadata": { - "type": "object", - "properties": { - "github_username": { - "type": "string" - } - } - }, - "github_app.UserConnectionStatus": { - "type": "object", - "properties": { - "actor_preference": { - "type": "string" - }, - "is_connected": { - "type": "boolean" - }, - "metadata": { - "$ref": "#/components/schemas/github_app.UserConnectionMetadata" - }, "type": { "type": "string" } } }, - "github_app.UserTokenResponse": { - "type": "object", - "properties": { - "expires_at": { - "type": "string" - }, - "token": { - "type": "string" - }, - "token_type": { - "type": "string" - } - } - }, "hub_environments.CreateEnvironmentsRequest": { "type": "object", "required": [ @@ -78934,467 +78103,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" - }, - "updated_at": { - "type": "string" + "sdk_versions": { + "$ref": "#/components/schemas/info.SDKVersions" }, - "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" } } }, @@ -79662,288 +78518,415 @@ } } }, - "mcptools.ErrorResponse": { + "oauth.AuthorizationServerMetadata": { "type": "object", "properties": { - "code": { + "authorization_endpoint": { "type": "string" }, - "detail": { + "code_challenge_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "device_authorization_endpoint": { "type": "string" }, - "status": { - "type": "integer" + "grant_types_supported": { + "type": "array", + "items": { + "type": "string" + } }, - "type": { + "issuer": { "type": "string" - } - } - }, - "mcptools.ListToolsResponse": { - "type": "object", - "properties": { - "cached": { + }, + "jwks_uri": { + "type": "string" + }, + "protected_resources_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "registration_endpoint": { + "type": "string" + }, + "resource_parameter_supported": { "type": "boolean" }, - "fetched_at": { + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "revocation_endpoint": { "type": "string" }, - "tools": { + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint": { + "type": "string" + }, + "token_endpoint_auth_methods_supported": { "type": "array", "items": { - "$ref": "#/components/schemas/mcptools.Tool" + "type": "string" } } } }, - "mcptools.MCPErrorCode": { - "type": "string", - "enum": [ - "auth_failed", - "unreachable", - "invalid_response" - ], - "x-enum-varnames": [ - "MCPErrorCodeAuthFailed", - "MCPErrorCodeUnreachable", - "MCPErrorCodeInvalidResponse" - ] - }, - "mcptools.Tool": { + "oauth.AuthorizedAppView": { "type": "object", "properties": { - "annotations": { - "type": "object", - "additionalProperties": {} + "authorized_at": { + "type": "string" }, - "description": { + "client_id": { "type": "string" }, - "inputSchema": { - "type": "object", - "additionalProperties": {} + "client_name": { + "type": "string" }, - "name": { + "client_uri": { "type": "string" + }, + "logo_uri": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } } } }, - "models.ErrorResponse": { + "oauth.ClientPublicMetadata": { "type": "object", "properties": { - "code": { + "client_id": { "type": "string" }, - "detail": { + "client_name": { "type": "string" }, - "status": { - "type": "integer" + "client_uri": { + "type": "string" }, - "type": { + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "tos_uri": { "type": "string" } } }, - "models.FleetModel": { + "oauth.ClientRegistrationRequest": { "type": "object", "properties": { - "display_name": { + "client_name": { "type": "string" }, - "id": { + "client_uri": { "type": "string" }, - "is_default": { - "type": "boolean" + "grant_types": { + "type": "array", + "items": { + "type": "string" + } }, - "playground_settings_id": { + "logo_uri": { "type": "string" }, - "provider": { + "policy_uri": { "type": "string" }, - "required_secrets": { + "redirect_uris": { "type": "array", "items": { "type": "string" } }, - "source": { - "type": "string" - } - } - }, - "models.ListModelsResponse": { - "type": "object", - "properties": { - "items": { + "response_types": { "type": "array", "items": { - "$ref": "#/components/schemas/models.FleetModel" + "type": "string" } + }, + "scope": { + "type": "string" + }, + "token_endpoint_auth_method": { + "type": "string" + }, + "tos_uri": { + "type": "string" } } }, - "nps.SubmitResponseRequest": { + "oauth.ClientRegistrationResponse": { "type": "object", "properties": { - "comment": { + "client_id": { "type": "string" }, - "score": { + "client_id_issued_at": { "type": "integer" - } - } - }, - "oauth.AuthorizationServerMetadata": { - "type": "object", - "properties": { - "authorization_endpoint": { + }, + "client_name": { "type": "string" }, - "code_challenge_methods_supported": { + "client_uri": { + "type": "string" + }, + "grant_types": { "type": "array", "items": { "type": "string" } }, - "device_authorization_endpoint": { + "logo_uri": { "type": "string" }, - "grant_types_supported": { + "policy_uri": { + "type": "string" + }, + "redirect_uris": { "type": "array", "items": { "type": "string" } }, - "issuer": { - "type": "string" + "response_types": { + "type": "array", + "items": { + "type": "string" + } }, - "jwks_uri": { + "token_endpoint_auth_method": { "type": "string" }, - "protected_resources_supported": { + "tos_uri": { + "type": "string" + } + } + }, + "oauth.CreateOAuthClientRequest": { + "type": "object", + "properties": { + "allowed_scopes": { "type": "array", "items": { "type": "string" } }, - "registration_endpoint": { + "client_name": { "type": "string" }, - "resource_parameter_supported": { - "type": "boolean" + "client_type": { + "description": "\"public\" or \"confidential\"", + "type": "string" }, - "response_types_supported": { + "client_uri": { + "type": "string" + }, + "grant_types": { "type": "array", "items": { "type": "string" } }, - "revocation_endpoint": { + "logo_uri": { "type": "string" }, - "scopes_supported": { + "policy_uri": { + "type": "string" + }, + "redirect_uris": { "type": "array", "items": { "type": "string" } }, - "token_endpoint": { + "tos_uri": { + "type": "string" + } + } + }, + "oauth.DeviceCodeResponse": { + "type": "object", + "properties": { + "device_code": { "type": "string" }, - "token_endpoint_auth_methods_supported": { + "expires_in": { + "type": "integer" + }, + "interval": { + "type": "integer" + }, + "user_code": { + "type": "string" + }, + "verification_uri": { + "type": "string" + } + } + }, + "oauth.OAuthClientCredentialsResponse": { + "type": "object", + "properties": { + "client": { + "$ref": "#/components/schemas/oauth.OAuthClientView" + }, + "client_secret": { + "type": "string" + } + } + }, + "oauth.OAuthClientListResponse": { + "type": "object", + "properties": { + "clients": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/oauth.OAuthClientView" } } } }, - "oauth.ClientRegistrationRequest": { + "oauth.OAuthClientView": { "type": "object", "properties": { - "client_name": { - "type": "string" - }, - "grant_types": { + "allowed_scopes": { "type": "array", "items": { "type": "string" } }, - "redirect_uris": { + "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" } }, - "response_types": { + "id": { + "type": "string" + }, + "logo_uri": { + "type": "string" + }, + "policy_uri": { + "type": "string" + }, + "redirect_uris": { "type": "array", "items": { "type": "string" } }, - "scope": { + "tos_uri": { "type": "string" }, - "token_endpoint_auth_method": { + "updated_at": { "type": "string" } } }, - "oauth.ClientRegistrationResponse": { + "oauth.OIDCProviderMetadata": { "type": "object", "properties": { - "client_id": { + "authorization_endpoint": { "type": "string" }, - "client_id_issued_at": { - "type": "integer" - }, - "client_name": { - "type": "string" + "claims_supported": { + "type": "array", + "items": { + "type": "string" + } }, - "grant_types": { + "code_challenge_methods_supported": { "type": "array", "items": { "type": "string" } }, - "redirect_uris": { + "grant_types_supported": { "type": "array", "items": { "type": "string" } }, - "response_types": { + "id_token_signing_alg_values_supported": { "type": "array", "items": { "type": "string" } }, - "token_endpoint_auth_method": { + "issuer": { "type": "string" - } - } - }, - "oauth.DeviceCodeResponse": { - "type": "object", - "properties": { - "device_code": { + }, + "jwks_uri": { "type": "string" }, - "expires_in": { - "type": "integer" + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + } }, - "interval": { - "type": "integer" + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + } }, - "user_code": { + "subject_types_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "token_endpoint": { "type": "string" }, - "verification_uri": { + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + } + }, + "userinfo_endpoint": { "type": "string" } } @@ -79968,6 +78951,9 @@ "expires_in": { "type": "integer" }, + "id_token": { + "type": "string" + }, "refresh_token": { "type": "string" }, @@ -79979,6 +78965,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 +79038,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 +79129,9 @@ "orgs.OrganizationInfo": { "type": "object", "properties": { + "byoc_create_saas_workspace_enabled": { + "type": "boolean" + }, "can_export_usage_backfill": { "type": "boolean" }, @@ -80066,18 +79144,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 +79193,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 managed 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 managed evaluators\n(evaluators that spend a LangChain-held provider key).", + "type": "boolean" + }, "marketplace_payouts_enabled": { "type": "boolean" }, @@ -80191,18 +79279,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.", @@ -80305,16 +79449,6 @@ "STATUS" ] }, - "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.", "type": "string", @@ -80337,16 +79471,16 @@ "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 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. 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": "eyJsYXN0X2lkIjoiMDE4ZTRjN2UtYTlmYi03ZWYwLWE1YjYtNmVhM2E4MmU5MzI3In0=" + "example": "eyJ2IjoxLCJhIjoicnVucy5xdWVyeSIsImsiOiJwYXNzIiwiYiI6InNkYiIsInQiOiJsdChjdXJzb3IsICcyMDI1LTEyLTEyIDE5OjAzOjI4LjQ4MTI1NTAxOWIxM2YyJykifQ" } } }, @@ -80362,6 +79496,91 @@ } } }, + "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" + }, + "selects": { + "description": "`selects` lists which properties to include on each returned trace. Properties listed here are routed to the appropriate sub-object on each item: `total_tokens`, `total_cost`, and `first_token_time` appear under `trace_aggregates`; everything else appears under `root_run`. If omitted, only `id` is returned on `root_run`.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.RunSelectField" + }, + "example": [ + "ID", + "NAME", + "START_TIME", + "STATUS", + "TOTAL_TOKENS", + "TOTAL_COST", + "FIRST_TOKEN_TIME" + ] + }, + "trace_filter": { + "description": "`trace_filter` narrows results to traces whose root run matches this LangSmith filter expression. This filter targets root runs only — `is_root = true` is implied.\nSee https://docs.langchain.com/langsmith/trace-query-syntax#filter-query-language for syntax.", + "type": "string", + "example": "eq(status, \"error\")" + }, + "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 traces containing at least one run anywhere in the run tree (root or descendant) that matches this LangSmith filter expression.", + "type": "string", + "example": "has(tags, \"production\")" + } + } + }, + "query.QueryTracesResponseBody": { + "type": "object", + "properties": { + "items": { + "description": "`items` is the page of traces.", + "type": "array", + "items": { + "$ref": "#/components/schemas/query.Trace" + } + }, + "next_cursor": { + "description": "`next_cursor` is the opaque cursor for the next page. Null on the final page.", + "type": "string" + } + } + }, "query.RunAttachmentURLs": { "type": "object", "additionalProperties": { @@ -80625,6 +79844,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 +80052,7 @@ "ATTACHMENTS", "THREAD_EVALUATION_TIME", "IS_IN_DATASET", + "LAST_QUEUED_AT", "SHARE_URL", "FEEDBACK_STATS" ], @@ -80873,6 +80099,7 @@ "RunSelectAttachments", "RunSelectThreadEvaluationTime", "RunSelectIsInDataset", + "RunSelectLastQueuedAt", "RunSelectShareURL", "RunSelectFeedbackStats" ] @@ -80911,16 +80138,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", @@ -81013,16 +80276,237 @@ "start_time": { "type": "string" }, - "status": { - "type": "string" + "status": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "trace_id": { + "type": "string" + } + } + }, + "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" }, - "tags": { - "type": "array", - "items": { - "type": "string" - } + "prefix": { + "type": "string" }, - "trace_id": { + "region": { "type": "string" } } @@ -81139,40 +80623,106 @@ "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, when non-nil, overrides the server default for\nwhether to resume the sandbox from its captured memory snapshot.\n\n true → resume from the memory snapshot if it exists; cold-boot\n the sandbox otherwise.\n false → always cold-boot, even if a memory snapshot exists.\n nil → use the server default.\n\nApplies to this request only; a later stop+start of the same\nsandbox reverts to the server default.", + "description": "RestoreMemory selects how the sandbox handles a snapshot's captured memory:\n\n nil → if-present: resume from memory when the snapshot has it, else cold-boot (default).\n true → always: resume from memory; rejected if the snapshot has none.\n false → never: always cold-boot.\n\nApplies to this request only.", "type": "boolean" }, + "snapshot": { + "description": "Snapshot is a Docker-style name or name:tag reference to boot from. A bare name resolves to name:latest.", + "type": "string" + }, "snapshot_id": { "type": "string" }, "snapshot_name": { + "description": "SnapshotName is a synonym for Snapshot, accepted for compatibility with clients that predate it. Set one or the other.", "type": "string" }, "tag_value_ids": { @@ -81200,11 +80750,23 @@ "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" } } }, @@ -81227,6 +80789,167 @@ } } }, + "sandboxes.ExecRequest": { + "type": "object", + "properties": { + "command": { + "description": "Command accepts either a shell command string or an argv string array.", + "type": "array", + "items": { + "type": "string" + } + }, + "cwd": { + "type": "string" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "shell": { + "type": "string" + }, + "timeout_seconds": { + "type": "integer" + } + } + }, + "sandboxes.ExecResponse": { + "type": "object", + "properties": { + "exit_code": { + "type": "integer" + }, + "stderr": { + "type": "string" + }, + "stdout": { + "type": "string" + } + } + }, + "sandboxes.ExecStreamRequest": { + "type": "object", + "properties": { + "command": { + "description": "Command accepts either a shell command string or an argv string array.", + "type": "array", + "items": { + "type": "string" + } + }, + "command_id": { + "description": "CommandID makes the request idempotent: a known ID attaches to that\nrunning command instead of starting a second one.", + "type": "string" + }, + "cwd": { + "type": "string" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "idle_timeout_seconds": { + "description": "0 = default, -1 = never idle-kill", + "type": "integer" + }, + "shell": { + "type": "string" + }, + "stdin": { + "description": "Stdin is the process's entire standard input, base64 on the wire. It is\nwritten once when the command is spawned and then closed, so the process\nreads EOF; there is no stdin streaming on this endpoint.", + "type": "string", + "format": "byte" + }, + "timeout_seconds": { + "description": "0 = no timeout", + "type": "integer" + }, + "ttl_seconds": { + "description": "0 = default, -1 = keep forever", + "type": "integer" + } + } + }, + "sandboxes.ExecStreamResumeRequest": { + "type": "object", + "properties": { + "command_id": { + "description": "CommandID names the command to attach to.", + "type": "string" + }, + "stderr_offset": { + "type": "integer" + }, + "stdout_offset": { + "description": "StdoutOffset and StderrOffset are where to continue from, and are also the\nack for every buffered byte below them. Zero replays from the beginning,\nwhich is what a retry sends when the stream broke before any output arrived.", + "type": "integer" + } + } + }, + "sandboxes.GlobRequest": { + "type": "object", + "properties": { + "limit": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "pattern": { + "type": "string" + } + } + }, + "sandboxes.GlobResponse": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxapi.FileInfo" + } + }, + "truncated": { + "type": "boolean" + } + } + }, + "sandboxes.GrepRequest": { + "type": "object", + "properties": { + "glob": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "pattern": { + "type": "string" + } + } + }, + "sandboxes.GrepResponse": { + "type": "object", + "properties": { + "matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/sandboxapi.GrepMatch" + } + }, + "truncated": { + "type": "boolean" + } + } + }, "sandboxes.HeaderType": { "type": "string", "enum": [ @@ -81240,6 +80963,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 +81010,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 +81062,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 +81088,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,6 +81102,101 @@ }, "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" } } }, @@ -81344,9 +81214,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 +81266,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" }, @@ -81456,6 +81363,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 +81412,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 +81434,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 +81479,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 +81499,17 @@ } } }, + "sandboxes.UploadResponse": { + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "written": { + "type": "integer" + } + } + }, "sandboxes.UsageResponse": { "type": "object", "properties": { @@ -81658,164 +81632,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 +81816,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 +81906,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 +81986,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 +82004,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 +82026,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 +82055,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 +82079,8 @@ "PROMPT_TOKEN_DETAILS", "COMPLETION_TOKEN_DETAILS", "PROMPT_COST_DETAILS", - "COMPLETION_COST_DETAILS" + "COMPLETION_COST_DETAILS", + "FEEDBACK_STATS" ], "x-enum-varnames": [ "SingleThreadStatsSelectTurns", @@ -82256,70 +82098,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 +82248,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 +82263,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 +82283,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 +82336,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 +82358,9 @@ "FIRST_TOKEN_TIME", "INPUTS_PREVIEW", "OUTPUTS_PREVIEW", + "INPUTS", + "OUTPUTS", + "ERROR", "PROMPT_COST", "COMPLETION_COST", "TOTAL_COST", @@ -82586,6 +82384,9 @@ "ThreadTraceSelectFirstTokenTime", "ThreadTraceSelectInputsPreview", "ThreadTraceSelectOutputsPreview", + "ThreadTraceSelectInputs", + "ThreadTraceSelectOutputs", + "ThreadTraceSelectError", "ThreadTraceSelectPromptCost", "ThreadTraceSelectCompletionCost", "ThreadTraceSelectTotalCost", @@ -82597,69 +82398,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 +82540,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,6 +82568,9 @@ "fix_prompt": { "type": "string" }, + "fix_verification": { + "type": "object" + }, "id": { "type": "string" }, @@ -82853,6 +82601,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 +82628,9 @@ }, "updated_at": { "type": "string" + }, + "watching_since": { + "type": "string" } } }, @@ -82909,11 +82664,15 @@ "type": "string", "enum": [ "open", + "fixing", + "watching", "completed", "ignored" ], "x-enum-varnames": [ "StatusOpen", + "StatusFixing", + "StatusWatching", "StatusCompleted", "StatusIgnored" ] @@ -82949,6 +82708,10 @@ "items": { "type": "string" } + }, + "run_filter": { + "description": "Runs-filter-DSL trace scope; omit/null/empty for no scope.", + "type": "string" } } }, @@ -82978,6 +82741,9 @@ "cron_schedule": { "type": "string" }, + "engine_version": { + "type": "string" + }, "github_base_branch": { "type": "string" }, @@ -82990,6 +82756,9 @@ "id": { "type": "string" }, + "issue_count": { + "type": "integer" + }, "latest_run_id": { "type": "string" }, @@ -82997,18 +82766,30 @@ "description": "IDs of the latest run on LangSmith Deployments; NULL until first trigger.", "type": "string" }, + "preview_verify_enabled": { + "description": "PreviewVerifyEnabled lets this board's fix runs use preview deployments\nwhen the deployment-wide preview verification kill switch is also on.", + "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 +82797,16 @@ "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" } } }, @@ -83061,124 +82850,95 @@ "github_repo_url": { "type": "string" }, + "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 +82965,269 @@ } } }, - "usage.AgentUsage": { + "users.ErrorResponse": { "type": "object", "properties": { - "agent_name": { - "type": "string" - }, - "assistant_id": { - "type": "string" - }, - "first_used": { + "code": { "type": "string" }, - "last_used": { + "detail": { "type": "string" }, - "model_name": { - "type": "string" + "status": { + "type": "integer" }, - "owner_email": { + "type": { "type": "string" + } + } + }, + "users.User": { + "type": "object", + "properties": { + "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.AgentUsageResponse": { + "users.UserRef": { "type": "object", "properties": { - "agents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.AgentUsage" - } + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "example": "Ada Lovelace" } } }, - "usage.ModelUsage": { + "sandboxapi.S3BucketMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "s3" + ], "properties": { - "last_used": { - "type": "string" + "cache": { + "$ref": "#/components/schemas/sandboxapi.MountCacheSpec" }, - "model_name": { + "id": { + "type": "string", + "maxLength": 64 + }, + "mount_path": { "type": "string" }, - "run_count": { - "type": "integer" + "read_only": { + "type": "boolean" }, - "total_cost": { - "type": "number" + "s3": { + "$ref": "#/components/schemas/sandboxapi.S3MountSpec" + }, + "type": { + "enum": [ + "s3" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } - } - }, - "usage.ModelUsageResponse": { - "type": "object", - "properties": { - "models": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.ModelUsage" + }, + "not": { + "anyOf": [ + { + "required": [ + "gcs" + ] + }, + { + "required": [ + "git" + ] + }, + { + "required": [ + "contexthub" + ] } - } + ] } }, - "usage.ToolUsage": { + "sandboxapi.GCSBucketMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "gcs" + ], "properties": { - "agent_count": { - "type": "integer" + "cache": { + "$ref": "#/components/schemas/sandboxapi.MountCacheSpec" }, - "avg_latency_ms": { - "type": "number" + "gcs": { + "$ref": "#/components/schemas/sandboxapi.GCSMountSpec" }, - "last_used": { + "id": { + "type": "string", + "maxLength": 64 + }, + "mount_path": { "type": "string" }, - "run_count": { - "type": "integer" + "read_only": { + "type": "boolean" }, - "tool_name": { - "type": "string" + "type": { + "enum": [ + "gcs" + ], + "allOf": [ + { + "$ref": "#/components/schemas/sandboxapi.MountKind" + } + ] } - } - }, - "usage.ToolUsageResponse": { - "type": "object", - "properties": { - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/usage.ToolUsage" + }, + "not": { + "anyOf": [ + { + "required": [ + "s3" + ] + }, + { + "required": [ + "git" + ] + }, + { + "required": [ + "contexthub" + ] } - } + ] } }, - "usage.UserUsage": { + "sandboxapi.GitRepoMountSpec": { "type": "object", + "required": [ + "id", + "mount_path", + "type", + "git" + ], "properties": { - "agent_count": { - "type": "integer" - }, - "first_used": { - "type": "string" - }, - "last_used": { - "type": "string" + "git": { + "$ref": "#/components/schemas/sandboxapi.GitMountSpec" }, - "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 +83509,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" } ] }