{"openapi":"3.1.0","info":{"title":"LangSmith","description":"The LangSmith API is used to programmatically create and manage LangSmith resources.\n\n## Host\nhttps:\/\/api.smith.langchain.com\n\n## Authentication\nTo authenticate with the LangSmith API, set the `X-Api-Key` header\nto a valid [LangSmith API key](https:\/\/docs.langchain.com\/langsmith\/create-account-api-key#create-an-api-key).\n\n","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"}}}}},"x-public":true}},"\/api\/v1\/info\/health":{"get":{"tags":["info"],"summary":"Get Health Info","description":"Get health information about the current deployment of LangSmith.","operationId":"get_health_info_api_v1_info_health_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HealthInfoGetResponse"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/dashboard":{"post":{"tags":["tracer-sessions"],"summary":"Get Tracing Project Prebuilt Dashboard","description":"Get a prebuilt dashboard for a tracing project.","operationId":"get_tracing_project_prebuilt_dashboard_api_v1_sessions__session_id__dashboard_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsSectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsSection"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}":{"get":{"tags":["tracer-sessions"],"summary":"Read Tracer Session","description":"Get a specific project.","operationId":"read_tracer_session_api_v1_sessions__session_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"include_stats","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Stats"}},{"name":"stats_start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stats Start Time"}},{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TracerSession"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["tracer-sessions"],"summary":"Update Tracer Session","description":"Update a project.","operationId":"update_tracer_session_api_v1_sessions__session_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TracerSessionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TracerSessionWithoutVirtualFields"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["tracer-sessions"],"summary":"Delete Tracer Session","description":"Delete a specific project.","operationId":"delete_tracer_session_api_v1_sessions__session_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session 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\/sessions":{"get":{"tags":["tracer-sessions"],"summary":"Read Tracer Sessions","description":"List all projects.","operationId":"read_tracer_sessions_api_v1_sessions_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"reference_free","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reference Free"}},{"name":"reference_dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Reference Dataset"}},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"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":"dataset_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Version"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/SessionSortableColumns","default":"start_time"}},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort By Desc"}},{"name":"metadata","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},{"name":"sort_by_feedback_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By Feedback Key"}},{"name":"sort_by_feedback_source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackSourceParam"},{"type":"null"}],"title":"Sort By Feedback Source"}},{"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":"tag_value_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Tag Value Id"}},{"name":"facets","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Facets"}},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}},{"name":"include_stats","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Stats"}},{"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","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TracerSession"},"title":"Response Read Tracer Sessions Api V1 Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["tracer-sessions"],"summary":"Create Tracer Session","description":"Create a new project.","operationId":"create_tracer_session_api_v1_sessions_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"upsert","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Upsert"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TracerSessionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TracerSessionWithoutVirtualFields"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["tracer-sessions"],"summary":"Delete Tracer Sessions","description":"Delete projects.","operationId":"delete_tracer_sessions_api_v1_sessions_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Session Ids"}}],"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\/sessions\/{session_id}\/metadata":{"get":{"tags":["tracer-sessions"],"summary":"Read Tracer Sessions Runs Metadata","description":"Given a session, a number K, and (optionally) a list of metadata keys, return the top K values for each key.","operationId":"read_tracer_sessions_runs_metadata_api_v1_sessions__session_id__metadata_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"metadata_keys","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Metadata Keys"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"k","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"K"}},{"name":"root_runs_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Root Runs Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RootModel_Dict_str__list_str___"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/views":{"get":{"tags":["tracer-sessions"],"summary":"Read Filter Views","description":"Get all filter views for a session.","operationId":"read_filter_views_api_v1_sessions__session_id__views_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/FilterViewType"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/FilterView"},"title":"Response Read Filter Views Api V1 Sessions  Session Id  Views Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["tracer-sessions"],"summary":"Create Filter View","description":"Create a new filter view.","operationId":"create_filter_view_api_v1_sessions__session_id__views_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FilterViewCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FilterView"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/views\/{view_id}":{"get":{"tags":["tracer-sessions"],"summary":"Read Filter View","description":"Get a specific filter view.","operationId":"read_filter_view_api_v1_sessions__session_id__views__view_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"view_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FilterView"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["tracer-sessions"],"summary":"Update Filter View","description":"Update a filter view.","operationId":"update_filter_view_api_v1_sessions__session_id__views__view_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"view_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FilterViewUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FilterView"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["tracer-sessions"],"summary":"Delete Filter View","description":"Delete a specific filter view.","operationId":"delete_filter_view_api_v1_sessions__session_id__views__view_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"view_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View 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\/sessions\/{session_id}\/views\/{view_id}\/rename":{"patch":{"tags":["tracer-sessions"],"summary":"Rename Filter View","description":"Rename a filter view (display_name and description only).","operationId":"rename_filter_view_api_v1_sessions__session_id__views__view_id__rename_patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"view_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FilterViewRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FilterView"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/insights":{"get":{"tags":["tracer-sessions"],"summary":"[Beta] Get Insights Jobs","description":"Get all clusters for a session.","operationId":"_Beta__Get_Insights_Jobs_api_v1_sessions__session_id__insights_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"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":"config_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Config Id"}},{"name":"legacy","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Legacy"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetRunClusteringJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["tracer-sessions"],"summary":"[Beta] Create Insights Job","description":"Create an insights job.","operationId":"_Beta__Create_Insights_Job_api_v1_sessions__session_id__insights_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateRunClusteringJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateRunClusteringJobResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/insights\/configs":{"get":{"tags":["tracer-sessions"],"summary":"[Beta] Get Insights Job Configs","description":"Get all insights job configs for a session.","operationId":"_Beta__Get_Insights_Job_Configs_api_v1_sessions__session_id__insights_configs_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"include_prebuilts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Prebuilts"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetClusteringJobConfigsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["tracer-sessions"],"summary":"[Beta] Create Insights Job Config","description":"Save an insights job config.","operationId":"_Beta__Create_Insights_Job_Config_api_v1_sessions__session_id__insights_configs_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateClusteringJobConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateClusteringJobConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/insights\/configs\/generate":{"post":{"tags":["tracer-sessions"],"summary":"[Beta] Auto-Generate Insights Job Config","description":"Auto-generate an insights job config.","operationId":"_Beta__Auto_Generate_Insights_Job_Config_api_v1_sessions__session_id__insights_configs_generate_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenerateClusteringJobConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenerateClusteringJobConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/insights\/configs\/{config_id}":{"patch":{"tags":["tracer-sessions"],"summary":"[Beta] Update Insights Job Config","description":"Update an insights job config.","operationId":"_Beta__Update_Insights_Job_Config_api_v1_sessions__session_id__insights_configs__config_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateClusteringJobConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateClusteringJobConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["tracer-sessions"],"summary":"[Beta] Delete Insights Job Config","description":"Delete an insights job config.","operationId":"_Beta__Delete_Insights_Job_Config_api_v1_sessions__session_id__insights_configs__config_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteClusteringJobConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/insights\/{job_id}":{"get":{"tags":["tracer-sessions"],"summary":"[Beta] Get Insights Job","description":"Get a specific cluster job for a session.","operationId":"_Beta__Get_Insights_Job_api_v1_sessions__session_id__insights__job_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetRunClusteringJobResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["tracer-sessions"],"summary":"[Beta] Update Insights Job","description":"Update a session cluster job.","operationId":"_Beta__Update_Insights_Job_api_v1_sessions__session_id__insights__job_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateRunClusteringJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateRunClusteringJobResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["tracer-sessions"],"summary":"[Beta] Delete Insights Job","description":"Delete a session cluster job.","operationId":"_Beta__Delete_Insights_Job_api_v1_sessions__session_id__insights__job_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteRunClusteringJobResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/insights\/{job_id}\/clusters\/{cluster_id}":{"get":{"tags":["tracer-sessions"],"summary":"[Beta] Get Run Cluster From Insights Job","description":"Get a specific cluster for a session.","operationId":"_Beta__Get_Run_Cluster_from_Insights_Job_api_v1_sessions__session_id__insights__job_id__clusters__cluster_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetRunClusterResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sessions\/{session_id}\/insights\/{job_id}\/runs":{"get":{"tags":["tracer-sessions"],"summary":"[Beta] Get Runs From Insights Job","description":"Get all runs for a cluster job, optionally filtered by cluster.","operationId":"_Beta__Get_Runs_from_Insights_Job_api_v1_sessions__session_id__insights__job_id__runs_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"cluster_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cluster Id"}},{"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":"attribute_sort_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute Sort Key"}},{"name":"attribute_sort_order","in":"query","required":false,"schema":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"title":"Attribute Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FetchClusteringJobRunsResult"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces":{"post":{"tags":["workspaces"],"summary":"Create Workspace","description":"Create a new workspace.","operationId":"create_workspace_api_v1_workspaces_post","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkspaceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/app__schemas__Tenant"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["workspaces"],"summary":"List Workspaces","description":"Get all workspaces visible to this auth in the current org. Does not create a new workspace\/org.","operationId":"list_workspaces_api_v1_workspaces_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"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":{"type":"array","items":{"$ref":"#\/components\/schemas\/TenantForUser"},"title":"Response List Workspaces Api V1 Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/{workspace_id}":{"patch":{"tags":["workspaces"],"summary":"Patch Workspace","description":"Update a workspace.","operationId":"patch_workspace_api_v1_workspaces__workspace_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkspacePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/app__schemas__Tenant"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_v1_workspaces__workspace_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace 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},"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":{"get":{"tags":["workspaces"],"summary":"Get Current Workspace Stats","operationId":"get_current_workspace_stats_api_v1_workspaces_current_stats_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_value_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Tag Value Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TenantStats"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/usage_limits":{"get":{"tags":["workspaces"],"summary":"Get Current Workspace Usage Limits Info","operationId":"get_current_workspace_usage_limits_info_api_v1_workspaces_current_usage_limits_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TenantUsageLimitInfo"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/workspaces\/current\/shared":{"get":{"tags":["workspaces"],"summary":"Get Shared Tokens","description":"List all shared entities and their tokens by the workspace.","operationId":"get_shared_tokens_api_v1_workspaces_current_shared_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"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":{"$ref":"#\/components\/schemas\/TenantShareTokensResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["workspaces"],"summary":"Bulk Unshare Entities","description":"Bulk unshare entities by share tokens for the workspace.","operationId":"bulk_unshare_entities_api_v1_workspaces_current_shared_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TenantBulkUnshareRequest"}}}},"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\/workspaces\/current\/secrets":{"get":{"tags":["workspaces"],"summary":"List Current Workspace Secrets","operationId":"list_current_workspace_secrets_api_v1_workspaces_current_secrets_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/SecretKey"},"type":"array","title":"Response List Current Workspace Secrets Api V1 Workspaces Current Secrets Get"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["workspaces"],"summary":"Upsert Current Workspace Secrets","operationId":"upsert_current_workspace_secrets_api_v1_workspaces_current_secrets_post","requestBody":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/SecretUpsert"},"type":"array","title":"Secrets"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/workspaces\/current\/secrets\/encrypted":{"get":{"tags":["workspaces"],"summary":"Get Current Workspace Encrypted Secrets","description":"Get encrypted workspace secrets for use with Fleet and external services.","operationId":"get_current_workspace_encrypted_secrets_api_v1_workspaces_current_secrets_encrypted_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"service","in":"query","required":true,"schema":{"enum":["agent_builder","polly"],"type":"string","description":"Service requesting encrypted secrets","title":"Service"},"description":"Service requesting encrypted secrets"},{"name":"key_names","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional list of workspace secret keys to return","title":"Key Names"},"description":"Optional list of workspace secret keys to return"},{"name":"expand_iam_role","in":"query","required":false,"schema":{"type":"boolean","description":"If true, expand AWS_IAM_ROLE_ARN into temporary credentials via STS","default":false,"title":"Expand Iam Role"},"description":"If true, expand AWS_IAM_ROLE_ARN into temporary credentials via STS"}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InternalSecretsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/tag-keys":{"get":{"tags":["workspaces"],"summary":"List Tag Keys","operationId":"list_tag_keys_api_v1_workspaces_current_tag_keys_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/TagKey"},"type":"array","title":"Response List Tag Keys Api V1 Workspaces Current Tag Keys Get"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["workspaces"],"summary":"Create Tag Key","operationId":"create_tag_key_api_v1_workspaces_current_tag_keys_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagKeyCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagKey"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/workspaces\/current\/tag-keys\/{tag_key_id}":{"patch":{"tags":["workspaces"],"summary":"Update Tag Key","operationId":"update_tag_key_api_v1_workspaces_current_tag_keys__tag_key_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagKeyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagKey"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["workspaces"],"summary":"Get Tag Key","operationId":"get_tag_key_api_v1_workspaces_current_tag_keys__tag_key_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagKey"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["workspaces"],"summary":"Delete Tag Key","operationId":"delete_tag_key_api_v1_workspaces_current_tag_keys__tag_key_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key 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\/workspaces\/current\/tag-keys\/{tag_key_id}\/tag-values":{"post":{"tags":["workspaces"],"summary":"Create Tag Value","operationId":"create_tag_value_api_v1_workspaces_current_tag_keys__tag_key_id__tag_values_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagValueCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagValue"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["workspaces"],"summary":"List Tag Values","operationId":"list_tag_values_api_v1_workspaces_current_tag_keys__tag_key_id__tag_values_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TagValue"},"title":"Response List Tag Values Api V1 Workspaces Current Tag Keys  Tag Key Id  Tag Values Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/tag-keys\/{tag_key_id}\/tag-values\/{tag_value_id}":{"get":{"tags":["workspaces"],"summary":"Get Tag Value","operationId":"get_tag_value_api_v1_workspaces_current_tag_keys__tag_key_id__tag_values__tag_value_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key Id"}},{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagValue"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["workspaces"],"summary":"Update Tag Value","operationId":"update_tag_value_api_v1_workspaces_current_tag_keys__tag_key_id__tag_values__tag_value_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key Id"}},{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagValueUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagValue"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["workspaces"],"summary":"Delete Tag Value","operationId":"delete_tag_value_api_v1_workspaces_current_tag_keys__tag_key_id__tag_values__tag_value_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Key Id"}},{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value 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\/workspaces\/current\/taggings":{"post":{"tags":["workspaces"],"summary":"Create Tagging","operationId":"create_tagging_api_v1_workspaces_current_taggings_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaggingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Tagging"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["workspaces"],"summary":"List Taggings","operationId":"list_taggings_api_v1_workspaces_current_taggings_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tag_value_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tag Value Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaggingsResponse"},"title":"Response List Taggings Api V1 Workspaces Current Taggings Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/taggings\/{tagging_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Tagging","operationId":"delete_tagging_api_v1_workspaces_current_taggings__tagging_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"tagging_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tagging 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\/workspaces\/current\/tags":{"get":{"tags":["workspaces"],"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"},"title":"Response List Tags Api V1 Workspaces Current Tags Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/tags\/resource":{"get":{"tags":["workspaces"],"summary":"List Tags For Resource","operationId":"list_tags_for_resource_api_v1_workspaces_current_tags_resource_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"resource_type","in":"query","required":true,"schema":{"$ref":"#\/components\/schemas\/ResourceType"}},{"name":"resource_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TagKeyWithValuesAndTaggings"},"title":"Response List Tags For Resource Api V1 Workspaces Current Tags Resource Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/tags\/resources":{"post":{"tags":["workspaces"],"summary":"List Tags For Resources","operationId":"list_tags_for_resources_api_v1_workspaces_current_tags_resources_post","requestBody":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/ListTagsForResourceRequest"},"type":"array","title":"Resources"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"additionalProperties":{"items":{"$ref":"#\/components\/schemas\/TagKeyWithValuesAndTaggings"},"type":"array"},"propertyNames":{"format":"uuid"},"type":"object","title":"Response List Tags For Resources Api V1 Workspaces Current Tags Resources Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/audit-logs":{"get":{"tags":["audit-logs"],"summary":"Get Audit Logs","description":"Retrieve audit log records for the authenticated user's organization in OCSF format.\n\nRequires both start_time and end_time parameters to filter logs within a date range.\nSupports cursor-based pagination.\n\nReturns results in OCSF API Activity (Class UID: 6003) format,\nwhich is compatible with security monitoring and SIEM tools.\nReference: https:\/\/schema.ocsf.io\/1.7.0\/classes\/api_activity","operationId":"get_audit_logs_api_v1_audit_logs_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of items to return","default":10,"title":"Limit"},"description":"Number of items to return"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for pagination (base64-encoded JSON string)","title":"Cursor"},"description":"Cursor for pagination (base64-encoded JSON string)"},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by workspace ID","title":"Workspace Id"},"description":"Filter by workspace ID"},{"name":"start_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start datetime (inclusive) in ISO 8601 format","title":"Start Time"},"description":"Start datetime (inclusive) in ISO 8601 format"},{"name":"end_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End datetime (inclusive) in ISO 8601 format","title":"End Time"},"description":"End datetime (inclusive) in ISO 8601 format"},{"name":"operations","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/AuditLogOperation"}},{"type":"null"}],"description":"Filter by operation names. If omitted, all operations are returned.","title":"Operations"},"description":"Filter by operation names. If omitted, all operations are returned."}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListAuditLogsOCSFResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/ttl-settings":{"get":{"tags":["ttl-settings"],"summary":"List Ttl Settings","description":"List out the configured TTL settings for a given tenant.","operationId":"list_ttl_settings_api_v1_ttl_settings_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/TTLSettings"},"type":"array","title":"Response List Ttl Settings Api V1 Ttl Settings Get"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"put":{"tags":["ttl-settings"],"summary":"Upsert Ttl Settings","operationId":"upsert_ttl_settings_api_v1_ttl_settings_put","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpsertTTLSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TTLSettings"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/ttl-settings":{"get":{"tags":["orgs"],"summary":"List Ttl Settings","description":"List out the configured TTL settings for a given org (org-level and tenant-level).","operationId":"list_ttl_settings_api_v1_orgs_ttl_settings_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/TTLSettings"},"type":"array","title":"Response List Ttl Settings Api V1 Orgs Ttl Settings Get"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"put":{"tags":["orgs"],"summary":"Upsert Ttl Settings","operationId":"upsert_ttl_settings_api_v1_orgs_ttl_settings_put","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpsertTTLSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TTLSettings"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/examples\/count":{"get":{"tags":["examples"],"summary":"Count Examples","description":"Count all examples by query params","operationId":"count_examples_api_v1_examples_count_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","default":"latest","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."},{"name":"metadata","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},{"name":"full_text_contains","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Full Text Contains"}},{"name":"splits","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Splits"}},{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset"}},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"integer","title":"Response Count Examples Api V1 Examples Count Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/examples\/{example_id}":{"get":{"tags":["examples"],"summary":"Read Example","description":"Get a specific example.","operationId":"read_example_api_v1_examples__example_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"example_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Example Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","default":"latest","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."},{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Example"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["examples"],"summary":"Update Example","description":"Update a specific example.","operationId":"update_example_api_v1_examples__example_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"example_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Example Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExampleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["examples"],"summary":"Delete Example","description":"Soft delete an example. Only deletes the example in the 'latest' version of the dataset.","operationId":"delete_example_api_v1_examples__example_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"example_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Example 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\/examples":{"get":{"tags":["examples"],"summary":"Read Examples","description":"Get all examples by query params","operationId":"read_examples_api_v1_examples_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","default":"latest","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."},{"name":"metadata","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},{"name":"full_text_contains","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Full Text Contains"}},{"name":"splits","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Splits"}},{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset"}},{"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":"order","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/ExampleListOrder","default":"recent"}},{"name":"random_seed","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Random Seed"}},{"name":"select","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExampleSelect"},"default":["id","created_at","modified_at","name","dataset_id","source_run_id","source_session_id","source_run_start_time","source_trace_id","metadata","inputs","outputs"],"title":"Select"}},{"name":"descending","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Descending"}},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Example"},"title":"Response Read Examples Api V1 Examples Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["examples"],"summary":"Create Example","description":"Create a new example.","operationId":"create_example_api_v1_examples_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Example"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"description":"Create class for Example.","properties":{"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"dataset_id":{"format":"uuid","title":"Dataset Id","type":"string"},"source_run_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"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":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"split":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"default":"base","title":"Split"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"use_source_run_io":{"default":false,"title":"Use Source Run Io","type":"boolean"},"use_source_run_attachments":{"default":[],"items":{"type":"string"},"title":"Use Source Run Attachments","type":"array"},"use_legacy_message_format":{"default":false,"description":"Use Legacy Message Format for LLM runs","title":"Use Legacy Message Format","type":"boolean"},"created_at":{"title":"Created At","type":"string"}},"required":["dataset_id"],"title":"ExampleCreate","type":"object"}}}},"x-public":true},"delete":{"tags":["examples"],"summary":"Delete Examples","description":"Soft delete examples. Only deletes the examples in the 'latest' version of the dataset.","operationId":"delete_examples_api_v1_examples_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"example_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Example Ids"}}],"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\/examples\/bulk":{"post":{"tags":["examples"],"summary":"Create Examples","description":"Create bulk examples.","operationId":"create_examples_api_v1_examples_bulk_post","requestBody":{"content":{"application\/json":{"schema":{"items":{"properties":{"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"source_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"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":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"split":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Split","default":"base"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"use_source_run_io":{"type":"boolean","title":"Use Source Run Io","default":false},"use_source_run_attachments":{"items":{"type":"string"},"type":"array","title":"Use Source Run Attachments","default":[]},"use_legacy_message_format":{"type":"boolean","title":"Use Legacy Message Format","description":"Use Legacy Message Format for LLM runs","default":false},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["dataset_id"],"title":"ExampleBulkCreate","description":"Example with optional created_at to prevent duplicate versions in bulk operations."},"type":"array","description":"Schema for a batch of examples to be created."}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/Example"},"type":"array"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"patch":{"tags":["examples"],"summary":"Legacy Update Examples","description":"Legacy update examples in bulk. For update involving attachments, use PATCH \/v1\/platform\/datasets\/{dataset_id}\/examples instead.","operationId":"legacy_update_examples_api_v1_examples_bulk_patch","requestBody":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/ExampleUpdateWithID"},"type":"array","title":"Example Updates"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/examples\/upload\/{dataset_id}":{"post":{"tags":["examples"],"summary":"Upload Examples From Csv","description":"Upload examples from a CSV file.\n\nNote: For non-csv upload, please use\nthe POST \/v1\/platform\/datasets\/{dataset_id}\/examples endpoint which provides more efficient upload.","operationId":"upload_examples_from_csv_api_v1_examples_upload__dataset_id__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":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/Body_upload_examples_from_csv_api_v1_examples_upload__dataset_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Example"},"title":"Response Upload Examples From Csv Api V1 Examples Upload  Dataset Id  Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/examples\/validate":{"post":{"tags":["examples"],"summary":"Validate Example","description":"Validate an example.","operationId":"validate_example_api_v1_examples_validate_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExampleValidationResult"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/examples\/validate\/bulk":{"post":{"tags":["examples"],"summary":"Validate Examples","description":"Validate examples in bulk.","operationId":"validate_examples_api_v1_examples_validate_bulk_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/ExampleValidationResult"},"type":"array","title":"Response Validate Examples Api V1 Examples Validate Bulk Post"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/datasets":{"get":{"tags":["datasets"],"summary":"Read Datasets","description":"Get all datasets by query params and owner.","operationId":"read_datasets_api_v1_datasets_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Id"}},{"name":"data_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/DataType"}},{"$ref":"#\/components\/schemas\/DataType"},{"type":"null"}],"title":"Data Type"}},{"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":"metadata","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},{"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\/SortByDatasetColumn","default":"last_session_start_time"}},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","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"}},{"name":"exclude_corrections_datasets","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Corrections Datasets"}},{"name":"exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/GetDatasetsSelect"}},{"type":"null"}],"title":"Exclude"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Dataset"},"title":"Response Read Datasets Api V1 Datasets Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["datasets"],"summary":"Create Dataset","description":"Create a new dataset.","operationId":"create_dataset_api_v1_datasets_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Dataset"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["datasets"],"summary":"Delete Datasets","description":"Delete multiple datasets.","operationId":"delete_datasets_api_v1_datasets_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"dataset_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"title":"Dataset Ids"}}],"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\/datasets\/stream":{"get":{"tags":["datasets"],"summary":"Read Datasets Stream","description":"Stream all datasets by query params and owner as JSON patches.","operationId":"read_datasets_stream_api_v1_datasets_stream_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Id"}},{"name":"data_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/DataType"}},{"$ref":"#\/components\/schemas\/DataType"},{"type":"null"}],"title":"Data Type"}},{"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":"metadata","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},{"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\/SortByDatasetColumn","default":"last_session_start_time"}},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","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"}},{"name":"exclude_corrections_datasets","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Corrections Datasets"}}],"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\/datasets\/{dataset_id}":{"get":{"tags":["datasets"],"summary":"Read Dataset","description":"Get a specific dataset.","operationId":"read_dataset_api_v1_datasets__dataset_id__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":{"$ref":"#\/components\/schemas\/Dataset"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["datasets"],"summary":"Delete Dataset","description":"Delete a specific dataset.","operationId":"delete_dataset_api_v1_datasets__dataset_id__delete","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":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["datasets"],"summary":"Update Dataset","description":"Update a specific dataset.","operationId":"update_dataset_api_v1_datasets__dataset_id__patch","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\/DatasetUpdate"}}}},"responses":{"200":{"description":"Dataset updated successfully","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetSchemaForUpdate"}}},"headers":{"X-Updated-Examples-Count":{"description":"Number of examples updated","schema":{"type":"integer"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/datasets\/upload":{"post":{"tags":["datasets"],"summary":"Upload Csv Dataset","description":"Create a new dataset from a CSV or JSONL file.","operationId":"upload_csv_dataset_api_v1_datasets_upload_post","requestBody":{"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/Body_upload_csv_dataset_api_v1_datasets_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Dataset"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/datasets\/upload-experiment":{"post":{"tags":["datasets"],"summary":"Upload Experiment","description":"Upload an experiment that has already been run.","operationId":"upload_experiment_api_v1_datasets_upload_experiment_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExperimentResultsUpload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExperimentResultsUploadResult"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/datasets\/{dataset_id}\/versions":{"get":{"tags":["datasets"],"summary":"Get Dataset Versions","description":"Get dataset versions.","operationId":"get_dataset_versions_api_v1_datasets__dataset_id__versions_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":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"example","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Example"}},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DatasetVersion"},"title":"Response Get Dataset Versions Api V1 Datasets  Dataset Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/datasets\/{dataset_id}\/versions\/diff":{"get":{"tags":["datasets"],"summary":"Diff Dataset Versions","description":"Get diff between two dataset versions.","operationId":"diff_dataset_versions_api_v1_datasets__dataset_id__versions_diff_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":"from_version","in":"query","required":true,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"From Version"}},{"name":"to_version","in":"query","required":true,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"To Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetDiffInfo"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/datasets\/{dataset_id}\/version":{"get":{"tags":["datasets"],"summary":"Get Dataset Version","description":"Get dataset version by as_of or exact tag.","operationId":"get_dataset_version_api_v1_datasets__dataset_id__version_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":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetVersion"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/datasets\/{dataset_id}\/tags":{"put":{"tags":["datasets"],"summary":"Update Dataset Version","description":"Set a tag on a dataset version.","operationId":"update_dataset_version_api_v1_datasets__dataset_id__tags_put","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\/PutDatasetVersionsSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetVersion"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/datasets\/{dataset_id}\/openai":{"get":{"tags":["datasets"],"summary":"Download Dataset Openai","description":"Download a dataset as OpenAI Evals Jsonl format.","operationId":"download_dataset_openai_api_v1_datasets__dataset_id__openai_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":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."}],"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\/datasets\/{dataset_id}\/openai_ft":{"get":{"tags":["datasets"],"summary":"Download Dataset Openai Ft","description":"Download a dataset as OpenAI Jsonl format.","operationId":"download_dataset_openai_ft_api_v1_datasets__dataset_id__openai_ft_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":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."}],"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\/datasets\/{dataset_id}\/csv":{"get":{"tags":["datasets"],"summary":"Download Dataset Csv","description":"Download a dataset as CSV format.","operationId":"download_dataset_csv_api_v1_datasets__dataset_id__csv_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":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."}],"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\/datasets\/{dataset_id}\/jsonl":{"get":{"tags":["datasets"],"summary":"Download Dataset Jsonl","description":"Download a dataset as CSV format.","operationId":"download_dataset_jsonl_api_v1_datasets__dataset_id__jsonl_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":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."}],"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\/datasets\/{dataset_id}\/runs":{"post":{"tags":["datasets"],"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","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"const":"csv","type":"string"},{"type":"null"}],"description":"Response format, e.g., 'csv'","title":"Format"},"description":"Response format, e.g., 'csv'"}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/QueryExampleSchemaWithRunsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/ExampleWithRunsCH"},"title":"ExamplesWithRuns"},{"type":"null"}],"title":"Response Read Examples With Runs Api V1 Datasets  Dataset Id  Runs Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/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"}}}}},"x-public":true},"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"}}}}},"x-public":true},"delete":{"tags":["datasets"],"summary":"Unshare Dataset","description":"Unshare a dataset.","operationId":"unshare_dataset_api_v1_datasets__dataset_id__share_delete","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":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/datasets\/comparative":{"post":{"tags":["datasets"],"summary":"Create Comparative Experiment","description":"Create a comparative experiment.","operationId":"create_comparative_experiment_api_v1_datasets_comparative_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ComparativeExperimentCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ComparativeExperimentBase"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/datasets\/comparative\/{comparative_experiment_id}":{"delete":{"tags":["datasets"],"summary":"Delete Comparative Experiment","description":"Delete a specific comparative experiment.","operationId":"delete_comparative_experiment_api_v1_datasets_comparative__comparative_experiment_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"comparative_experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comparative Experiment 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\/datasets\/clone":{"post":{"tags":["datasets"],"summary":"Clone Dataset","description":"Clone a dataset.","operationId":"clone_dataset_api_v1_datasets_clone_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Body_clone_dataset_api_v1_datasets_clone_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Clone Dataset Api V1 Datasets Clone Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/datasets\/{dataset_id}\/splits":{"get":{"tags":["datasets"],"summary":"Get Dataset Splits","operationId":"get_dataset_splits_api_v1_datasets__dataset_id__splits_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":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","default":"latest","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Get Dataset Splits Api V1 Datasets  Dataset Id  Splits Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"put":{"tags":["datasets"],"summary":"Update Dataset Splits","operationId":"update_dataset_splits_api_v1_datasets__dataset_id__splits_put","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\/Body_update_dataset_splits_api_v1_datasets__dataset_id__splits_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Response Update Dataset Splits Api V1 Datasets  Dataset Id  Splits Put"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/datasets\/{dataset_id}\/generate":{"post":{"tags":["datasets"],"summary":"Generate","description":"Generate synthetic examples for a dataset.","operationId":"generate_api_v1_datasets__dataset_id__generate_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\/GenerateSyntheticExamplesBody"}}}},"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\/datasets\/studio_experiment":{"post":{"tags":["datasets"],"summary":"Studio Experiment","operationId":"studio_experiment_api_v1_datasets_studio_experiment_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StudioRunOverDatasetRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"title":"Response Studio Experiment Api V1 Datasets Studio Experiment Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/rules":{"get":{"tags":["run"],"summary":"List Rules","description":"List all run rules.","operationId":"list_rules_api_v1_runs_rules_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["session","dataset"],"type":"string"},{"type":"null"}],"title":"Type"}},{"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":"evaluator_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evaluator Id"}},{"name":"tag_value_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Tag Value Id"}},{"name":"include_backfill_progress","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Backfill Progress"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/RunRulesSchema"},"title":"Response List Rules Api V1 Runs Rules Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["run"],"summary":"Create Rule","description":"Create a new run rule.","operationId":"create_rule_api_v1_runs_rules_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunRulesCreateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunRulesSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/runs\/rules\/validate":{"post":{"tags":["run"],"summary":"Validate Rule","description":"Validate a rule by executing it with test data without creating a saved rule.\n\nThis endpoint allows testing LLM-as-judge evaluators before saving them. It accepts\na rule configuration (same as rule creation) and test data, executes the evaluator,\nand returns the evaluation results in the same format as batch_invoke_evaluator.\n\nOnly LLM-as-judge rules (evaluators) are supported. Code evaluators are not allowed.\n\nThe evaluator execution traces are written to the database (in the \"evaluators\"\nproject), which allows users to see the evaluator execution history.","operationId":"validate_rule_api_v1_runs_rules_validate_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunRulesValidateSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Validate Rule Api V1 Runs Rules Validate Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/rules\/{rule_id}":{"patch":{"tags":["run"],"summary":"Update Rule","description":"Update a run rule.","operationId":"update_rule_api_v1_runs_rules__rule_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunRulesUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunRulesSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["run"],"summary":"Delete Rule","description":"Delete a run rule.","operationId":"delete_rule_api_v1_runs_rules__rule_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule 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\/runs\/threads\/{thread_id}":{"get":{"tags":["run"],"summary":"Thread Preview","description":"Get preview of a thread.","operationId":"thread_preview_api_v1_runs_threads__thread_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}},{"name":"select","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/ThreadMessagesFormatType"}},{"type":"null"}],"title":"Select"}},{"name":"variables","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Variables"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ThreadPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/runs\/rules\/{rule_id}\/logs":{"get":{"tags":["run"],"summary":"List Rule Logs","description":"List logs for a particular rule","operationId":"list_rule_logs_api_v1_runs_rules__rule_id__logs_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"default":150,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/RuleLogSchema"},"title":"Response List Rule Logs Api V1 Runs Rules  Rule Id  Logs Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/runs\/rules\/{rule_id}\/logs\/v2":{"get":{"tags":["run"],"summary":"List Rule Logs V2","description":"List logs for a particular rule with cursor-based pagination.\n\nThis endpoint handles S3-stored outcomes correctly by using run_outcomes_count\nto predict batch sizes and avoid over-fetching.","operationId":"list_rule_logs_v2_api_v1_runs_rules__rule_id__logs_v2_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"default":150,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"backfill","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Backfill"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RuleLogsPaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/runs\/rules\/{rule_id}\/last_applied":{"get":{"tags":["run"],"summary":"Get Last Applied Rule","description":"Get the last applied rule.","operationId":"get_last_applied_rule_api_v1_runs_rules__rule_id__last_applied_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"backfill","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Backfill"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RuleLogSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/runs\/rules\/{rule_id}\/trigger":{"post":{"tags":["run"],"summary":"Trigger Rule","description":"Trigger a run rule manually.","operationId":"trigger_rule_api_v1_runs_rules__rule_id__trigger_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunRulesSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/runs\/rules\/trigger":{"post":{"tags":["run"],"summary":"Trigger Rules","description":"Trigger an array of run rules manually.","operationId":"trigger_rules_api_v1_runs_rules_trigger_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TriggerRulesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/{run_id}":{"get":{"tags":["run"],"summary":"Read Run","description":"Get a specific run.","operationId":"read_run_api_v1_runs__run_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"exclude_s3_stored_attributes","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude S3 Stored Attributes"}},{"name":"exclude_serialized","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Serialized"}},{"name":"include_messages","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Messages"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"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":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run 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\/runs\/{run_id}\/share":{"get":{"tags":["run"],"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","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/RunShareSchema"},{"type":"null"}],"title":"Response Read Run Share State Api V1 Runs  Run Id  Share Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"put":{"tags":["run"],"summary":"Share Run","description":"Share a run.","operationId":"share_run_api_v1_runs__run_id__share_put","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunShareSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["run"],"summary":"Unshare Run","description":"Unshare a run.","operationId":"unshare_run_api_v1_runs__run_id__share_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run 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\/runs\/query\/validate":{"post":{"tags":["run"],"summary":"Validate Runs Query","description":"Validate runs query syntax, returns errors for broken queries.","operationId":"validate_runs_query_api_v1_runs_query_validate_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BodyParamsForRunsQuerySchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunsQueryValidationResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/runs\/query":{"post":{"tags":["run"],"summary":"Query Runs","operationId":"query_runs_api_v1_runs_query_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BodyParamsForRunsQuerySchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/generate-query":{"post":{"tags":["run"],"summary":"Generate Query For Runs","description":"Get runs filter expression query for a given natural language query.","operationId":"generate_query_for_runs_api_v1_runs_generate_query_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RequestBodyForRunsGenerateQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResponseBodyForRunsGenerateQuery"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/stats":{"post":{"tags":["run"],"summary":"Stats Runs","description":"Get all runs by query in body payload.","operationId":"stats_runs_api_v1_runs_stats_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunStatsQueryParams"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/RunStats"},{"additionalProperties":{"$ref":"#\/components\/schemas\/RunStats"},"type":"object"}],"title":"Response Stats Runs Api V1 Runs Stats Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs":{"post":{"tags":["run"],"summary":"Create Run Proxy","description":"Create a new run.","operationId":"create_run_proxy_api_v1_runs_post","responses":{"202":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/batch":{"post":{"tags":["run"],"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","responses":{"202":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/multipart":{"post":{"tags":["run"],"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","responses":{"202":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/group":{"post":{"tags":["run"],"summary":"Group Runs","description":"Get runs grouped by an expression","operationId":"group_runs_api_v1_runs_group_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"accept","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunGroupRequest"}}}},"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\/runs\/group\/stats":{"post":{"tags":["run"],"summary":"Stats Group Runs","description":"Get stats for the grouped runs.","operationId":"stats_group_runs_api_v1_runs_group_stats_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunGroupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunGroupStats"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/delete\/traces":{"post":{"tags":["run"],"summary":"Delete Runs Abac","description":"Delete specific runs by trace IDs.","operationId":"delete_runs_abac_api_v1_runs_delete_traces_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Body_delete_runs_abac_api_v1_runs_delete_traces_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/delete":{"post":{"tags":["run"],"summary":"Delete Runs","description":"Delete specific runs by trace IDs or metadata key-value pairs.","operationId":"delete_runs_api_v1_runs_delete_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Body_delete_runs_api_v1_runs_delete_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/runs\/experiments\/{experiment_id}\/evaluate":{"post":{"tags":["experiments"],"summary":"Evaluate Experiment Adhoc","description":"Evaluate an existing experiment with a specific evaluator.\n\nThis triggers immediate evaluation using the run_over_dataset approach,\nprocessing runs in batches to handle large experiments efficiently.","operationId":"evaluate_experiment_adhoc_api_v1_runs_experiments__experiment_id__evaluate_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Experiment Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EvaluateExperimentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Evaluate Experiment Adhoc Api V1 Runs Experiments  Experiment Id  Evaluate Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/feedback\/formulas":{"post":{"tags":["feedback"],"summary":"Create Feedback Formula Ep","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":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackFormulaCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackFormula"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["feedback"],"summary":"List Feedback Formula Ep","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":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackFormula"},"title":"Response List Feedback Formula Ep Api V1 Feedback Formulas Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/feedback\/formulas\/{feedback_formula_id}":{"get":{"tags":["feedback"],"summary":"Get Feedback Formula Ep","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":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"feedback_formula_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Formula Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackFormula"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"put":{"tags":["feedback"],"summary":"Update Feedback Formula Ep","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":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"feedback_formula_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Formula Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackFormulaUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackFormula"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["feedback"],"summary":"Delete Feedback Formula Endpoint","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":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"feedback_formula_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Formula 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\/feedback\/{feedback_id}":{"get":{"tags":["feedback"],"summary":"Read Feedback","description":"Get a specific feedback.","operationId":"read_feedback_api_v1_feedback__feedback_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}},{"name":"include_user_names","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include User Names"}}],"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"}}}}},"x-public":true},"patch":{"tags":["feedback"],"summary":"Update Feedback","description":"Replace an existing feedback entry with a new, modified entry.","operationId":"update_feedback_api_v1_feedback__feedback_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackUpdateSchema"}}}},"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"}}}}},"x-public":true},"delete":{"tags":["feedback"],"summary":"Delete Feedback","description":"Delete a feedback.","operationId":"delete_feedback_api_v1_feedback__feedback_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback 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\/feedback":{"get":{"tags":["feedback"],"summary":"Read Feedbacks","description":"List all Feedback by query params.","operationId":"read_feedbacks_api_v1_feedback_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run"}},{"name":"key","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Key"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/SourceType"}},{"type":"null"}],"title":"Source"}},{"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":"user","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"User"}},{"name":"has_comment","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Comment"}},{"name":"has_score","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Score"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackLevel"},{"type":"null"}],"title":"Level"}},{"name":"max_created_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Max Created At"}},{"name":"min_created_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"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","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include User Names"}},{"name":"comparative_experiment_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparative Experiment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackSchema"},"title":"Response Read Feedbacks Api V1 Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["feedback"],"summary":"Create Feedback","description":"Create a new feedback.","operationId":"create_feedback_api_v1_feedback_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackCreateSchema"}}}},"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"}}}}},"x-public":true}},"\/api\/v1\/feedback\/eager":{"post":{"tags":["feedback"],"summary":"Eagerly Create Feedback","description":"Deprecated: use POST \/feedback instead.\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"}}}}},"deprecated":true,"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/feedback\/tokens":{"post":{"tags":["feedback"],"summary":"Create Feedback Ingest Token","description":"Create a new feedback ingest token.","operationId":"create_feedback_ingest_token_api_v1_feedback_tokens_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackIngestTokenCreateSchema"},{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackIngestTokenCreateSchema"}}],"title":"Feedback Ingest Token"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackIngestTokenSchema"},{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackIngestTokenSchema"}}],"title":"Response Create Feedback Ingest Token Api V1 Feedback Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["feedback"],"summary":"List Feedback Ingest Tokens","description":"List all feedback ingest tokens for a run.","operationId":"list_feedback_ingest_tokens_api_v1_feedback_tokens_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackIngestTokenSchema"},"title":"Response List Feedback Ingest Tokens Api V1 Feedback Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/feedback\/tokens\/{token}":{"get":{"tags":["feedback"],"summary":"Create Feedback With Token Get","description":"Create a new feedback with a token.","operationId":"create_feedback_with_token_get_api_v1_feedback_tokens__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Token"}},{"name":"score","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}],"title":"Score"}},{"name":"extend_trace_retention","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Extend Trace Retention"}},{"name":"value","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Value"}},{"name":"comment","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},{"name":"correction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correction"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["feedback"],"summary":"Create Feedback With Token Post","description":"Create a new feedback with a token.","operationId":"create_feedback_with_token_post_api_v1_feedback_tokens__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Token"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackCreateWithTokenExtendedSchema"}}}},"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}\/run":{"get":{"tags":["public"],"summary":"Get Shared Run","description":"Get the shared run.","operationId":"get_shared_run_api_v1_public__share_token__run_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"exclude_s3_stored_attributes","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude S3 Stored Attributes"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunPublicSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/run\/{id}":{"get":{"tags":["public"],"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","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"exclude_s3_stored_attributes","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude S3 Stored Attributes"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunPublicSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/runs\/query":{"post":{"tags":["public"],"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","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\/QueryParamsForPublicRunSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListPublicRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/feedbacks":{"get":{"tags":["public"],"summary":"Read Shared Feedbacks","operationId":"read_shared_feedbacks_api_v1_public__share_token__feedbacks_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Run"}},{"name":"key","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Key"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Session"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/SourceType"}},{"type":"null"}],"title":"Source"}},{"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":"user","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"User"}},{"name":"has_comment","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Comment"}},{"name":"has_score","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Score"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackLevel"},{"type":"null"}],"title":"Level"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackSchema"},"title":"Response Read Shared Feedbacks Api V1 Public  Share Token  Feedbacks Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets":{"get":{"tags":["public"],"summary":"Read Shared Dataset","description":"Get dataset by ids or the shared dataset if not specifed.","operationId":"read_shared_dataset_api_v1_public__share_token__datasets_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"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\/SortByDatasetColumn","default":"last_session_start_time"}},{"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":{"$ref":"#\/components\/schemas\/DatasetPublicSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/examples\/count":{"get":{"tags":["public"],"summary":"Count Shared Examples","description":"Count all examples by query params","operationId":"count_shared_examples_api_v1_public__share_token__examples_count_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","default":"latest","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."},{"name":"metadata","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"integer","title":"Response Count Shared Examples Api V1 Public  Share Token  Examples Count Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/examples":{"get":{"tags":["public"],"summary":"Read Shared Examples","description":"Get example by ids or the shared example if not specifed.","operationId":"read_shared_examples_api_v1_public__share_token__examples_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used.","default":"latest","title":"As Of"},"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."},{"name":"metadata","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},{"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":"select","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExampleSelect"},"default":["id","created_at","modified_at","name","dataset_id","metadata","inputs","outputs","attachment_urls"],"title":"Select"}},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Example"},"title":"Response Read Shared Examples Api V1 Public  Share Token  Examples Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets\/sessions":{"get":{"tags":["public"],"summary":"Read Shared Dataset Tracer Sessions","description":"Get projects run on a dataset that has been shared.","operationId":"read_shared_dataset_tracer_sessions_api_v1_public__share_token__datasets_sessions_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"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":"dataset_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Version"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/SessionSortableColumns","default":"start_time"}},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort By Desc"}},{"name":"sort_by_feedback_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"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","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":"facets","in":"query","required":false,"schema":{"type":"boolean","default":false,"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","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TracerSession"},"title":"Response Read Shared Dataset Tracer Sessions Api V1 Public  Share Token  Datasets Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/datasets\/sessions-bulk":{"get":{"tags":["public"],"summary":"Read Shared Dataset Tracer Sessions Bulk","description":"Get sessions from multiple datasets using share tokens.","operationId":"read_shared_dataset_tracer_sessions_bulk_api_v1_public_datasets_sessions_bulk_get","parameters":[{"name":"share_tokens","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"Share Tokens"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TracerSession"},"title":"Response Read Shared Dataset Tracer Sessions Bulk Api V1 Public Datasets Sessions Bulk Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets\/runs\/query":{"post":{"tags":["public"],"summary":"Query Shared Dataset Runs","description":"Get runs in projects run over a dataset that has been shared.","operationId":"query_shared_dataset_runs_api_v1_public__share_token__datasets_runs_query_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\/BodyParamsForRunSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListPublicDatasetRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets\/runs\/generate-query":{"post":{"tags":["public"],"summary":"Generate Query For Shared Dataset Runs","description":"Get runs in projects run over a dataset that has been shared.","operationId":"generate_query_for_shared_dataset_runs_api_v1_public__share_token__datasets_runs_generate_query_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\/RequestBodyForRunsGenerateQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResponseBodyForRunsGenerateQuery"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets\/runs\/stats":{"post":{"tags":["public"],"summary":"Stats Shared Dataset Runs","description":"Get run stats in projects run over a dataset that has been shared.","operationId":"stats_shared_dataset_runs_api_v1_public__share_token__datasets_runs_stats_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\/RunStatsQueryParams"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunStats"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets\/runs\/{run_id}":{"get":{"tags":["public"],"summary":"Read Shared Dataset Run","description":"Get runs in projects run over a dataset that has been shared.","operationId":"read_shared_dataset_run_api_v1_public__share_token__datasets_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"exclude_s3_stored_attributes","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude S3 Stored Attributes"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunPublicDatasetSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets\/feedback":{"get":{"tags":["public"],"summary":"Read Shared Dataset Feedback","description":"Get feedback for runs in projects run over a dataset that has been shared.","operationId":"read_shared_dataset_feedback_api_v1_public__share_token__datasets_feedback_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Run"}},{"name":"key","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Key"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Session"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#\/components\/schemas\/SourceType"}},{"type":"null"}],"title":"Source"}},{"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":"user","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"User"}},{"name":"has_comment","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Comment"}},{"name":"has_score","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Score"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackLevel"},{"type":"null"}],"title":"Level"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackSchema"},"title":"Response Read Shared Dataset Feedback Api V1 Public  Share Token  Datasets Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/{share_token}\/datasets\/comparative":{"get":{"tags":["public"],"summary":"Read Shared Comparative Experiments","description":"Get all comparative experiments for a given dataset.","operationId":"read_shared_comparative_experiments_api_v1_public__share_token__datasets_comparative_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Token"}},{"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":"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\/PublicComparativeExperiment"},"title":"Response Read Shared Comparative Experiments Api V1 Public  Share Token  Datasets Comparative Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/public\/schemas\/{version}\/message.json":{"get":{"tags":["public"],"summary":"Get Message Json Schema","operationId":"get_message_json_schema_api_v1_public_schemas__version__message_json_get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}}],"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\/schemas\/{version}\/tooldef.json":{"get":{"tags":["public"],"summary":"Get Tool Def Json Schema","operationId":"get_tool_def_json_schema_api_v1_public_schemas__version__tooldef_json_get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}}],"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\/annotation-queues":{"get":{"tags":["annotation-queues"],"summary":"Get Annotation Queues","operationId":"get_annotation_queues_api_v1_annotation_queues_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Ids"}},{"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":"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":"tag_value_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Tag Value Id"}},{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"}},{"name":"queue_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["single","pairwise"],"type":"string"},{"type":"null"}],"title":"Queue Type"}},{"name":"assigned_to_me","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Assigned To Me"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"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\/AnnotationQueueSchemaWithSize"},"title":"Response Get Annotation Queues Api V1 Annotation Queues Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["annotation-queues"],"summary":"Create Annotation Queue","operationId":"create_annotation_queue_api_v1_annotation_queues_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueCreateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["annotation-queues"],"summary":"Delete Annotation Queues","description":"Delete multiple annotation queues with partial success support.\n\nReturns:\n    - 200: All queues deleted successfully\n    - 207: Some queues deleted successfully, some failed","operationId":"delete_annotation_queues_api_v1_annotation_queues_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"title":"Queue Ids"}}],"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\/annotation-queues\/populate":{"post":{"tags":["annotation-queues"],"summary":"Populate Annotation Queue","description":"Populate annotation queue with runs from an experiment.","operationId":"populate_annotation_queue_api_v1_annotation_queues_populate_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PopulateAnnotationQueueSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/annotation-queues\/{queue_id}":{"delete":{"tags":["annotation-queues"],"summary":"Delete Annotation Queue","operationId":"delete_annotation_queue_api_v1_annotation_queues__queue_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue 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},"patch":{"tags":["annotation-queues"],"summary":"Update Annotation Queue","operationId":"update_annotation_queue_api_v1_annotation_queues__queue_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["annotation-queues"],"summary":"Get Annotation Queue","operationId":"get_annotation_queue_api_v1_annotation_queues__queue_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueSchemaWithRubric"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/{queue_id}\/runs":{"post":{"tags":["annotation-queues"],"summary":"Add Runs To Annotation Queue","operationId":"add_runs_to_annotation_queue_api_v1_annotation_queues__queue_id__runs_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"extend_trace_retention","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Extend Trace Retention"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"array","items":{"$ref":"#\/components\/schemas\/AddRunToQueueRequest"}},{"type":"array","items":{"$ref":"#\/components\/schemas\/AnnotationQueueRunAddSchema"}}],"title":"Runs"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AnnotationQueueRunSchema"},"title":"Response Add Runs To Annotation Queue Api V1 Annotation Queues  Queue Id  Runs Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["annotation-queues"],"summary":"Get Runs From Annotation Queue","operationId":"get_runs_from_annotation_queue_api_v1_annotation_queues__queue_id__runs_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue 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":"archived","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"}},{"name":"include_stats","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Stats"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["needs_my_review","needs_others_review","completed"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/RunSchemaWithAnnotationQueueInfo"},"title":"Response Get Runs From Annotation Queue Api V1 Annotation Queues  Queue Id  Runs Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/{queue_id}\/runs\/by-key":{"post":{"tags":["annotation-queues"],"summary":"Add Runs To Annotation Queue By Key","operationId":"add_runs_to_annotation_queue_by_key_api_v1_annotation_queues__queue_id__runs_by_key_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"extend_trace_retention","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Extend Trace Retention"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddRunToQueueByKeyRequest"},"title":"Runs"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AnnotationQueueRunSchema"},"title":"Response Add Runs To Annotation Queue By Key Api V1 Annotation Queues  Queue Id  Runs By Key Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/{queue_id}\/export":{"post":{"tags":["annotation-queues"],"summary":"Export Annotation Queue Archived Runs","operationId":"export_annotation_queue_archived_runs_api_v1_annotation_queues__queue_id__export_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExportAnnotationQueueRunsRequest"}}}},"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\/annotation-queues\/{queue_id}\/run\/{index}":{"get":{"tags":["annotation-queues"],"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","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}},{"name":"include_extra","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Extra"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunSchemaWithAnnotationQueueInfo"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/{run_id}\/queues":{"get":{"tags":["annotation-queues"],"summary":"Get Annotation Queues For Run","operationId":"get_annotation_queues_for_run_api_v1_annotation_queues__run_id__queues_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AnnotationQueueSchema"},"title":"Response Get Annotation Queues For Run Api V1 Annotation Queues  Run Id  Queues Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/{queue_id}\/runs\/{queue_run_id}":{"patch":{"tags":["annotation-queues"],"summary":"Update Run In Annotation Queue","operationId":"update_run_in_annotation_queue_api_v1_annotation_queues__queue_id__runs__queue_run_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"queue_run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Run Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueRunUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["annotation-queues"],"summary":"Delete Run From Annotation Queue","operationId":"delete_run_from_annotation_queue_api_v1_annotation_queues__queue_id__runs__queue_run_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"queue_run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Run 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\/annotation-queues\/{queue_id}\/runs\/delete":{"post":{"tags":["annotation-queues"],"summary":"Delete Runs From Annotation Queue","operationId":"delete_runs_from_annotation_queue_api_v1_annotation_queues__queue_id__runs_delete_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueBulkDeleteRunsRequest"}}}},"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\/annotation-queues\/{queue_id}\/total_size":{"get":{"tags":["annotation-queues"],"summary":"Get Total Size From Annotation Queue","operationId":"get_total_size_from_annotation_queue_api_v1_annotation_queues__queue_id__total_size_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueSizeSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/{queue_id}\/total_archived":{"get":{"tags":["annotation-queues"],"summary":"Get Total Archived From Annotation Queue","operationId":"get_total_archived_from_annotation_queue_api_v1_annotation_queues__queue_id__total_archived_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueSizeSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/{queue_id}\/size":{"get":{"tags":["annotation-queues"],"summary":"Get Size From Annotation Queue","operationId":"get_size_from_annotation_queue_api_v1_annotation_queues__queue_id__size_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["needs_my_review","needs_others_review","completed"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnotationQueueSizeSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/annotation-queues\/status\/{annotation_queue_run_id}":{"post":{"tags":["annotation-queues"],"summary":"Create Identity Annotation Queue Run Status","operationId":"create_identity_annotation_queue_run_status_api_v1_annotation_queues_status__annotation_queue_run_id__post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"annotation_queue_run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Annotation Queue Run Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/IdentityAnnotationQueueRunStatusCreateSchema"}}}},"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\/annotation-queues\/{queue_id}\/runs\/resolve\/{queue_run_id}":{"get":{"tags":["annotation-queues"],"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","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Id"}},{"name":"queue_run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Queue Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResolvedAnnotationQueueRunSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/ace\/execute":{"post":{"tags":["ace"],"summary":"Execute","description":"Execute some custom code for testing purposes.","operationId":"execute_api_v1_ace_execute_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Body_execute_api_v1_ace_execute_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Execute Api V1 Ace Execute Post"}}}},"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":{"get":{"tags":["bulk-exports"],"summary":"Get Bulk Exports","description":"Get the current workspace's bulk exports","operationId":"get_bulk_exports_api_v1_bulk_exports_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"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\/BulkExport"},"title":"Response Get Bulk Exports Api V1 Bulk Exports Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["bulk-exports"],"summary":"Create Bulk Export","description":"Create a new bulk export","operationId":"create_bulk_export_api_v1_bulk_exports_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BulkExportCreate"}}}},"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}},"\/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":["bulk-exports"],"summary":"Cancel Bulk Export","description":"Cancel a bulk export by ID","operationId":"cancel_bulk_export_api_v1_bulk_exports__bulk_export_id__patch","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"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BulkExportUpdate"}}}},"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}},"\/api\/v1\/bulk-exports\/destinations\/{destination_id}":{"get":{"tags":["bulk-exports"],"summary":"Get Bulk Export Destination","description":"Get a single bulk export destination by ID","operationId":"get_bulk_export_destination_api_v1_bulk_exports_destinations__destination_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Destination Id"}}],"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"}}}}},"x-public":true},"patch":{"tags":["bulk-exports"],"summary":"Update Bulk Export Destination","description":"Update a bulk export destination","operationId":"update_bulk_export_destination_api_v1_bulk_exports_destinations__destination_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Destination Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BulkExportDestinationUpdate"}}}},"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"}}}}},"x-public":true}},"\/api\/v1\/bulk-exports\/{bulk_export_id}\/runs":{"get":{"tags":["bulk-exports"],"summary":"Get Bulk Export Runs","description":"Get a bulk export's runs","operationId":"get_bulk_export_runs_api_v1_bulk_exports__bulk_export_id__runs_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"}},{"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 Api V1 Bulk Exports  Bulk Export Id  Runs Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/bulk-exports\/{bulk_export_id}\/runs\/{run_id}":{"get":{"tags":["bulk-exports"],"summary":"Get Bulk Export Run","description":"Get a single bulk export's run by ID","operationId":"get_bulk_export_run_api_v1_bulk_exports__bulk_export_id__runs__run_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"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BulkExportRun"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/feedback-configs":{"get":{"tags":["feedback-configs"],"summary":"List Feedback Configs Endpoint","operationId":"list_feedback_configs_endpoint_api_v1_feedback_configs_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"key","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":50},{"type":"null"}],"title":"Key"}},{"name":"name_contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Contains"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Sort By Desc"}},{"name":"read_after_write","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Read After Write"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/FeedbackConfigSchema"},"title":"Response List Feedback Configs Endpoint Api V1 Feedback Configs Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["feedback-configs"],"summary":"Create Feedback Config Endpoint","operationId":"create_feedback_config_endpoint_api_v1_feedback_configs_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateFeedbackConfigSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackConfigSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["feedback-configs"],"summary":"Update Feedback Config Endpoint","operationId":"update_feedback_config_endpoint_api_v1_feedback_configs_patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateFeedbackConfigSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FeedbackConfigSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["feedback-configs"],"summary":"Delete Feedback Config Endpoint","description":"Soft delete a feedback config by marking it as deleted.\n\nThe config can be recreated later with the same key (simple reuse pattern).\nExisting feedback records with this key will remain unchanged.","operationId":"delete_feedback_config_endpoint_api_v1_feedback_configs_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"feedback_key","in":"query","required":true,"schema":{"type":"string","title":"Feedback Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/model-price-map":{"get":{"tags":["model-price-map"],"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":{"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":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ModelPriceMapCreateSchema"}}}},"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\/model-price-map\/{id}":{"put":{"tags":["model-price-map"],"summary":"Update Model Price","operationId":"update_model_price_api_v1_model_price_map__id__put","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ModelPriceMapUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["model-price-map"],"summary":"Delete Model Price","operationId":"delete_model_price_api_v1_model_price_map__id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"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\/prompts\/invoke_prompt":{"post":{"tags":["prompts"],"summary":"Invoke Prompt","operationId":"invoke_prompt_api_v1_prompts_invoke_prompt_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InvokePromptPayload"}}},"required":true},"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\/prompts\/canvas":{"post":{"tags":["prompts"],"summary":"Prompt Canvas","operationId":"prompt_canvas_api_v1_prompts_canvas_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PlaygroundPromptCanvasPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/prompt-webhooks":{"get":{"tags":["prompt-webhooks"],"summary":"List Prompt Webhooks","description":"List all prompt webhooks for the current tenant.","operationId":"list_prompt_webhooks_api_v1_prompt_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/PromptWebhook"},"type":"array","title":"Response List Prompt Webhooks Api V1 Prompt Webhooks Get"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["prompt-webhooks"],"summary":"Create Prompt Webhook","description":"Create a new prompt webhook.","operationId":"create_prompt_webhook_api_v1_prompt_webhooks_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptWebhookCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptWebhook"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/prompt-webhooks\/{webhook_id}":{"get":{"tags":["prompt-webhooks"],"summary":"Get Prompt Webhook","description":"Get a specific prompt webhook.","operationId":"get_prompt_webhook_api_v1_prompt_webhooks__webhook_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptWebhook"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["prompt-webhooks"],"summary":"Update Prompt Webhook","description":"Update a specific prompt webhook.","operationId":"update_prompt_webhook_api_v1_prompt_webhooks__webhook_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptWebhookUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptWebhook"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["prompt-webhooks"],"summary":"Delete Prompt Webhook","description":"Delete a specific prompt webhook.","operationId":"delete_prompt_webhook_api_v1_prompt_webhooks__webhook_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook 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\/prompt-webhooks\/test":{"post":{"tags":["prompt-webhooks"],"summary":"Test Prompt Webhook","description":"Test a specific prompt webhook.","operationId":"test_prompt_webhook_api_v1_prompt_webhooks_test_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptWebhookTest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Test Prompt Webhook Api V1 Prompt Webhooks Test Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/playground-settings":{"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","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"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["playground-settings"],"summary":"Create Playground Settings","description":"Create playground settings.","operationId":"create_playground_settings_api_v1_playground_settings_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PlaygroundSettingsCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PlaygroundSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/playground-settings\/{playground_settings_id}":{"get":{"tags":["playground-settings"],"summary":"Get Playground Settings","description":"Get a single playground settings by ID.","operationId":"get_playground_settings_api_v1_playground_settings__playground_settings_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"playground_settings_id","in":"path","required":true,"schema":{"type":"string","title":"Playground Settings Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PlaygroundSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["playground-settings"],"summary":"Update Playground Settings","description":"Update playground settings.","operationId":"update_playground_settings_api_v1_playground_settings__playground_settings_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"playground_settings_id","in":"path","required":true,"schema":{"type":"string","title":"Playground Settings Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PlaygroundSettingsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PlaygroundSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["playground-settings"],"summary":"Delete Playground Settings","description":"Delete playground settings.","operationId":"delete_playground_settings_api_v1_playground_settings__playground_settings_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"playground_settings_id","in":"path","required":true,"schema":{"type":"string","title":"Playground Settings 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\/charts\/section\/clone":{"post":{"tags":["charts"],"summary":"Clone Section","description":"Clone a dashboard.","operationId":"clone_section_api_v1_charts_section_clone_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsSectionsCloneRequest"}}},"required":true},"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"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/charts\/section":{"get":{"tags":["charts"],"summary":"Read Sections","description":"Get all sections for the tenant.","operationId":"read_sections_api_v1_charts_section_get","security":[{"API Key":[]},{"Tenant ID":[]},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/CustomChartsSectionResponse"},"title":"Response Read Sections Api V1 Charts Section Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["charts"],"summary":"Create Section","description":"Create a new section.","operationId":"create_section_api_v1_charts_section_post","security":[{"API Key":[]},{"Tenant ID":[]},{"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\/charts":{"post":{"tags":["charts"],"summary":"Read Charts","description":"Get all charts for the tenant.","operationId":"read_charts_api_v1_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"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/charts\/preview":{"post":{"tags":["charts"],"summary":"Read Chart Preview","description":"Get a preview for a chart without actually creating it.","operationId":"read_chart_preview_api_v1_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"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/charts\/create":{"post":{"tags":["charts"],"summary":"Create Chart","description":"Create a new chart.","operationId":"create_chart_api_v1_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"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/charts\/{chart_id}":{"post":{"tags":["charts"],"summary":"Read Single Chart","description":"Get a single chart by ID.","operationId":"read_single_chart_api_v1_charts__chart_id__post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"chart_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chart Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsRequest"}}}},"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"}}}}},"x-public":true},"patch":{"tags":["charts"],"summary":"Update Chart","description":"Update a chart.","operationId":"update_chart_api_v1_charts__chart_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"chart_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chart Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartUpdate"}}}},"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"}}}}},"x-public":true},"delete":{"tags":["charts"],"summary":"Delete Chart","description":"Delete a chart.","operationId":"delete_chart_api_v1_charts__chart_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"chart_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chart 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\/charts\/section\/{section_id}":{"post":{"tags":["charts"],"summary":"Read Single Section","description":"Get a single section by ID.","operationId":"read_single_section_api_v1_charts_section__section_id__post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"section_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Section Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsSectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsSection"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["charts"],"summary":"Update Section","description":"Update a section.","operationId":"update_section_api_v1_charts_section__section_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"section_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Section Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsSectionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CustomChartsSectionResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["charts"],"summary":"Delete Section","description":"Delete a section.","operationId":"delete_section_api_v1_charts_section__section_id__delete","security":[{"API Key":[]},{"Tenant 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"}}}}},"x-public":true}},"\/api\/v1\/org-charts\/section":{"get":{"tags":["charts"],"summary":"Org Read Sections","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":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"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":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/org-charts":{"post":{"tags":["charts"],"summary":"Org Read Charts","description":"Deprecated: organization usage charts have been retired (HTTP 410).","operationId":"org_read_charts_api_v1_org_charts_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/org-charts\/preview":{"post":{"tags":["charts"],"summary":"Org Read Chart Preview","description":"Deprecated: organization usage charts have been retired (HTTP 410).","operationId":"org_read_chart_preview_api_v1_org_charts_preview_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/org-charts\/create":{"post":{"tags":["charts"],"summary":"Org Create Chart","description":"Deprecated: organization usage charts have been retired (HTTP 410).","operationId":"org_create_chart_api_v1_org_charts_create_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/org-charts\/{chart_id}":{"post":{"tags":["charts"],"summary":"Org Read Single Chart","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":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"delete":{"tags":["charts"],"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":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"patch":{"tags":["charts"],"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":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"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","content":{"application\/json":{"schema":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"delete":{"tags":["charts"],"summary":"Org Delete Section","description":"Deprecated: organization usage charts have been retired (HTTP 410).","operationId":"org_delete_section_api_v1_org_charts_section__section_id__delete","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}}},"deprecated":true,"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"patch":{"tags":["charts"],"summary":"Org Update 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":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/mcp\/tools":{"get":{"tags":["mcp"],"summary":"Get Tools","description":"Return MCP tools \u2014 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":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"oauth_provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Provider Id"}},{"name":"ls_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ls User Id"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["mcp"],"summary":"Invalidate Tools Cache","description":"Invalidate cached MCP tools for a given server URL.\n\nCalled when a tool call fails with a stale-tools error, so subsequent\nrequests to GET \/mcp\/tools will re-fetch from the remote server.","operationId":"invalidate_tools_cache_api_v1_mcp_tools_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"oauth_provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Provider Id"}},{"name":"ls_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ls User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/mcp\/proxy":{"get":{"tags":["mcp"],"summary":"Proxy Get","operationId":"proxy_get_api_v1_mcp_proxy_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"accept_stream","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Accept Stream"}},{"name":"timeout","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Timeout"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["mcp"],"summary":"Proxy","operationId":"proxy_api_v1_mcp_proxy_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ProxyRequest"}}}},"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":{"get":{"tags":["orgs"],"summary":"List Organizations","description":"Get all orgs visible to this auth","operationId":"list_organizations_api_v1_orgs_get","security":[{"Bearer Auth":[]}],"parameters":[{"name":"skip_create","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Skip Create"}},{"name":"include_tier","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Tier"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrganizationPGSchemaSlim"},"title":"Response List Organizations Api V1 Orgs Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["orgs"],"summary":"Create Organization","operationId":"create_organization_api_v1_orgs_post","security":[{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationPGSchemaSlim"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/setup":{"post":{"tags":["orgs"],"summary":"Create Customers And Get Stripe Setup Intent","operationId":"create_customers_and_get_stripe_setup_intent_api_v1_orgs_current_setup_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StripeSetupIntentResponse"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current":{"get":{"tags":["orgs"],"summary":"Get Organization Info","operationId":"get_organization_info_api_v1_orgs_current_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/info":{"get":{"tags":["orgs"],"summary":"Get Current Organization Info","operationId":"get_current_organization_info_api_v1_orgs_current_info_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationInfo"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"patch":{"tags":["orgs"],"summary":"Update Current Organization Info","operationId":"update_current_organization_info_api_v1_orgs_current_info_patch","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationInfo"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/billing":{"get":{"tags":["orgs"],"summary":"Get Organization Billing Info","operationId":"get_organization_billing_info_api_v1_orgs_current_billing_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationBillingInfo"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/dashboard":{"get":{"tags":["orgs"],"summary":"Get Dashboard","operationId":"get_dashboard_api_v1_orgs_current_dashboard_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"type","in":"query","required":true,"schema":{"$ref":"#\/components\/schemas\/OrganizationDashboardType"}},{"name":"color_scheme","in":"query","required":true,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationDashboardColorScheme"},{"type":"null"}],"title":"Color Scheme"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationDashboardSchema"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/payment-method":{"post":{"tags":["orgs"],"summary":"On Payment Method Created","operationId":"on_payment_method_created_api_v1_orgs_current_payment_method_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StripePaymentInformation"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/business-info":{"get":{"tags":["orgs"],"summary":"Get Company Info","operationId":"get_company_info_api_v1_orgs_current_business_info_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StripeBusinessInfo-Output"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["orgs"],"summary":"Set Company Info","operationId":"set_company_info_api_v1_orgs_current_business_info_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StripeBusinessInfo-Input"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/plan":{"post":{"tags":["orgs"],"summary":"Change Payment Plan","operationId":"change_payment_plan_api_v1_orgs_current_plan_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ChangePaymentPlanSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/roles":{"get":{"tags":["orgs"],"summary":"List Organization Roles","operationId":"list_organization_roles_api_v1_orgs_current_roles_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/Role"},"type":"array","title":"Response List Organization Roles Api V1 Orgs Current Roles Get"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["orgs"],"summary":"Create Organization Roles","operationId":"create_organization_roles_api_v1_orgs_current_roles_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateRoleRequest"}}},"required":true},"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"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/roles\/{role_id}":{"delete":{"tags":["orgs"],"summary":"Delete Organization Roles","operationId":"delete_organization_roles_api_v1_orgs_current_roles__role_id__delete","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Role Id"}}],"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},"patch":{"tags":["orgs"],"summary":"Update Organization Roles","operationId":"update_organization_roles_api_v1_orgs_current_roles__role_id__patch","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\/UpdateRoleRequest"}}}},"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\/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":{"get":{"tags":["orgs"],"summary":"List Permissions","operationId":"list_permissions_api_v1_orgs_permissions_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/PermissionResponse"},"type":"array","title":"Response List Permissions Api V1 Orgs Permissions Get"}}}}},"security":[{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/pending":{"get":{"tags":["orgs"],"summary":"List Pending Organization Invites","description":"Get all pending orgs visible to this auth","operationId":"list_pending_organization_invites_api_v1_orgs_pending_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/OrganizationPGSchemaSlim"},"type":"array","title":"Response List Pending Organization Invites Api V1 Orgs Pending Get"}}}}},"security":[{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/members":{"get":{"tags":["orgs"],"summary":"Get Current Org Members","operationId":"get_current_org_members_api_v1_orgs_current_members_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationMembers"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["orgs"],"summary":"Add Member To Current Org","operationId":"add_member_to_current_org_api_v1_orgs_current_members_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PendingIdentityCreate"}}},"required":true},"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"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/members\/active":{"get":{"tags":["orgs"],"summary":"Get Current Active Org Members","operationId":"get_current_active_org_members_api_v1_orgs_current_members_active_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"emails","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Emails"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for email or name","title":"Q"},"description":"Search query for email or name"},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort in descending order","default":true,"title":"Sort By Desc"},"description":"Sort in descending order"},{"name":"ls_user_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Ls User Ids"}},{"name":"user_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"deprecated":true,"title":"User Ids"},"deprecated":true},{"name":"is_disabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Disabled"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/MemberSortField","description":"Field to sort by","default":"created_at"},"description":"Field to sort by"}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrgMemberIdentity"},"title":"Response Get Current Active Org Members Api V1 Orgs Current Members Active Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/members\/pending":{"get":{"tags":["orgs"],"summary":"Get Current Pending Org Members","operationId":"get_current_pending_org_members_api_v1_orgs_current_members_pending_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"emails","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Emails"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for email or name","title":"Q"},"description":"Search query for email or name"},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort in descending order","default":true,"title":"Sort By Desc"},"description":"Sort in descending order"},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/MemberSortField","description":"Field to sort by","default":"created_at"},"description":"Field to sort by"}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrgPendingIdentity"},"title":"Response Get Current Pending Org Members Api V1 Orgs Current Members Pending Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/members\/batch":{"post":{"tags":["orgs"],"summary":"Add Members To Current Org Batch","description":"Batch invite up to 500 users to the current org.","operationId":"add_members_to_current_org_batch_api_v1_orgs_current_members_batch_post","requestBody":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/PendingIdentityCreate"},"type":"array","title":"Payloads"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/PendingIdentity"},"type":"array","title":"Response Add Members To Current Org Batch Api V1 Orgs Current Members Batch Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/members\/basic\/batch":{"post":{"tags":["orgs"],"summary":"Add Basic Auth Members To Current Org","description":"Batch add up to 500 users to the org and specified workspaces in basic auth mode.","operationId":"add_basic_auth_members_to_current_org_api_v1_orgs_current_members_basic_batch_post","requestBody":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/BasicAuthMemberCreate"},"type":"array","title":"Payloads"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/UserWithPassword"},"type":"array","title":"Response Add Basic Auth Members To Current Org Api V1 Orgs Current Members Basic Batch Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/members\/{identity_id}\/pending":{"delete":{"tags":["orgs"],"summary":"Delete Current Org Pending Member","description":"When an admin deletes a pending member invite.","operationId":"delete_current_org_pending_member_api_v1_orgs_current_members__identity_id__pending_delete","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity 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},"patch":{"tags":["orgs"],"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":"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\/OrgPendingIdentity"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/pending\/{organization_id}":{"delete":{"tags":["orgs"],"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":[]}],"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":{"$ref":"#\/components\/schemas\/Identity"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/members\/{identity_id}":{"delete":{"tags":["orgs"],"summary":"Remove Member From Current Org","description":"Remove a user from the current organization.","operationId":"remove_member_from_current_org_api_v1_orgs_current_members__identity_id__delete","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity 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},"patch":{"tags":["orgs"],"summary":"Update Current Org Member","description":"This is used for updating a user's role (all auth modes) or full_name\/password (basic auth)","operationId":"update_current_org_member_api_v1_orgs_current_members__identity_id__patch","security":[{"API Key":[]},{"Organization 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\/OrgIdentityPatch"}}}},"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\/members\/basic":{"patch":{"tags":["orgs"],"summary":"Update Current User","description":"Update a user's full_name\/password (basic auth only)","operationId":"update_current_user_api_v1_orgs_members_basic_patch","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BasicAuthUserPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/sso-settings":{"get":{"tags":["orgs"],"summary":"Get Current Sso Settings","description":"Get SSO provider settings for the current organization.","operationId":"get_current_sso_settings_api_v1_orgs_current_sso_settings_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/SSOProvider"},"type":"array","title":"Response Get Current Sso Settings Api V1 Orgs Current Sso Settings Get"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["orgs"],"summary":"Create Sso Settings","description":"Create SSO provider settings for the current organization.","operationId":"create_sso_settings_api_v1_orgs_current_sso_settings_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOSettingsCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOProvider"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/sso-settings\/{id}":{"patch":{"tags":["orgs"],"summary":"Update Sso Settings","description":"Update SSO provider settings defaults for the current organization.","operationId":"update_sso_settings_api_v1_orgs_current_sso_settings__id__patch","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOProvider"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["orgs"],"summary":"Delete Sso Settings","description":"Delete SSO provider settings for the current organization.","operationId":"delete_sso_settings_api_v1_orgs_current_sso_settings__id__delete","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOProvider"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/login-methods":{"patch":{"tags":["orgs"],"summary":"Update Allowed Login Methods","description":"Update allowed login methods for the current organization.","operationId":"update_allowed_login_methods_api_v1_orgs_current_login_methods_patch","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AllowedLoginMethodsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update Allowed Login Methods Api V1 Orgs Current Login Methods Patch"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/billing\/usage":{"get":{"tags":["orgs"],"summary":"Get Org Usage","operationId":"get_org_usage_api_v1_orgs_current_billing_usage_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"starting_on","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Starting On"}},{"name":"ending_before","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Ending Before"}},{"name":"on_current_plan","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"On Current Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrgUsage"},"title":"Response Get Org Usage Api V1 Orgs Current Billing Usage Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/billing\/granular-usage":{"get":{"tags":["orgs"],"summary":"Get Granular Usage","description":"Get granular usage data with flexible grouping.\n\n`kind` selects the billable usage domain:\n- `traces` (default): trace counts.\n- `langsmith_deployments`: LangSmith Deployment metrics (nodes\n  executed, agent runs, agent uptime). The three Deployment fields\n  are populated and `traces` is `0`.\n\n`trace_tier` (only meaningful for `kind=traces`) optionally restricts\nresults to a single retention tier (longlived = extended retention,\nshortlived = standard retention). When `group_by=trace_tier`, results\nare split into one record per retention tier per time bucket.\n\n`workspace_ids` filters results to the specified workspaces. Only\nworkspaces the user has read access to are included.","operationId":"get_granular_usage_api_v1_orgs_current_billing_granular_usage_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"start_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Start Time"}},{"name":"end_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"End Time"}},{"name":"workspace_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Workspace Ids"}},{"name":"group_by","in":"query","required":false,"schema":{"$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":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GranularUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/billing\/granular-usage\/export":{"get":{"tags":["orgs"],"summary":"Export Granular Usage Csv","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":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"start_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Start Time"}},{"name":"end_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"End Time"}},{"name":"workspace_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Workspace Ids"}},{"name":"group_by","in":"query","required":false,"schema":{"$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":{"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\/current\/user\/login-methods":{"get":{"tags":["orgs"],"summary":"Get Current User Login Methods","description":"Get login methods for the current user.","operationId":"get_current_user_login_methods_api_v1_orgs_current_user_login_methods_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/ProviderUserSlim"},"type":"array","title":"Response Get Current User Login Methods Api V1 Orgs Current User Login Methods Get"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/stripe_checkout_session":{"post":{"tags":["orgs"],"summary":"Create Stripe Checkout Sessions Endpoint","description":"Kick off a Stripe checkout session flow.","operationId":"create_stripe_checkout_sessions_endpoint_api_v1_orgs_current_stripe_checkout_session_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StripeCheckoutSessionsCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/stripe_account_links":{"post":{"tags":["orgs"],"summary":"Create Stripe Account Links Endpoint","description":"Kick off a Stripe account link flow.","operationId":"create_stripe_account_links_endpoint_api_v1_orgs_current_stripe_account_links_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StripeAccountLinksCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/orgs\/current\/service-keys":{"get":{"tags":["orgs"],"summary":"List Org Service Keys","operationId":"list_org_service_keys_api_v1_orgs_current_service_keys_get","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"workspace_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Workspace Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIKeyGetResponse"},"title":"Response List Org Service Keys Api V1 Orgs Current Service Keys Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["orgs"],"summary":"Create Org Service Key","description":"Create org-scoped service key. If workspaces is None, key is org-wide.","operationId":"create_org_service_key_api_v1_orgs_current_service_keys_post","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/service-keys\/{api_key_id}":{"delete":{"tags":["orgs"],"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":[]},{"Organization ID":[]},{"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\/APIKeyUpdateRequest"}}}},"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}},"\/api\/v1\/orgs\/current\/personal-access-tokens":{"get":{"tags":["orgs"],"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"},"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":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/orgs\/current\/personal-access-tokens\/{pat_id}":{"delete":{"tags":["orgs"],"summary":"Delete Org Personal Access Token","operationId":"delete_org_personal_access_token_api_v1_orgs_current_personal_access_tokens__pat_id__delete","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"pat_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pat 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}},"\/api\/v1\/orgs\/current\/set-default-sso-provision":{"post":{"tags":["orgs"],"summary":"Set Default Sso Provision","description":"Set the current organization as the default for SSO provisioning in self-hosted environments.","operationId":"set_default_sso_provision_api_v1_orgs_current_set_default_sso_provision_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Default Sso Provision Api V1 Orgs Current Set Default Sso Provision Post"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_login_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BasicAuthResponse"}}}}},"x-public":true}},"\/api\/v1\/sso\/email-verification\/send":{"post":{"tags":["auth"],"summary":"Send Sso Email Confirmation","description":"Send an email to confirm the email address for an SSO user.","operationId":"send_sso_email_confirmation_api_v1_sso_email_verification_send_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOEmailVerificationSendRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application\/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Sso Email Confirmation Api V1 Sso Email Verification Send Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/sso\/email-verification\/status":{"post":{"tags":["auth"],"summary":"Check Sso Email Verification Status","description":"Retrieve the email verification status of an SSO user.","operationId":"check_sso_email_verification_status_api_v1_sso_email_verification_status_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOEmailVerificationStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOEmailVerificationStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sso\/email-verification\/confirm":{"post":{"tags":["auth"],"summary":"Confirm Sso User Email","description":"Confirm the email of an SSO user.","operationId":"confirm_sso_user_email_api_v1_sso_email_verification_confirm_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SSOConfirmEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Confirm Sso User Email Api V1 Sso Email Verification Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sso\/settings\/{sso_login_slug}":{"get":{"tags":["auth"],"summary":"Get Sso Settings","description":"Get SSO provider settings from login slug.","operationId":"get_sso_settings_api_v1_sso_settings__sso_login_slug__get","parameters":[{"name":"sso_login_slug","in":"path","required":true,"schema":{"type":"string","title":"Sso Login Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SSOProviderSlim"},"title":"Response Get Sso Settings Api V1 Sso Settings  Sso Login Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/sso\/email-lookup":{"post":{"tags":["auth"],"summary":"Lookup Sso By Email","description":"Look up SSO providers available for a SCIM-provisioned email address.","operationId":"lookup_sso_by_email_api_v1_sso_email_lookup_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/_SSOEmailLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/SSOProviderSlim"},"type":"array","title":"Response Lookup Sso By Email Api V1 Sso Email Lookup Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/api-key":{"get":{"tags":["api-key"],"summary":"Get Api Keys","description":"Get the current tenant's API keys","operationId":"get_api_keys_api_v1_api_key_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/APIKeyGetResponse"},"type":"array","title":"Response Get Api Keys Api V1 Api Key Get"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["api-key"],"summary":"Generate Api Key","description":"Generate an api key for the user","operationId":"generate_api_key_api_v1_api_key_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateRequest","default":{"description":"Default API key","read_only":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/api-key\/{api_key_id}":{"delete":{"tags":["api-key"],"summary":"Delete Api Key","description":"Delete an api key for the user","operationId":"delete_api_key_api_v1_api_key__api_key_id__delete","security":[{"API Key":[]},{"Tenant 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}},"\/api\/v1\/api-key\/current":{"get":{"tags":["api-key"],"summary":"Get Personal Access Tokens","description":"DEPRECATED: Use \/orgs\/current\/personal-access-tokens instead","operationId":"get_personal_access_tokens_api_v1_api_key_current_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/APIKeyGetResponse"},"type":"array","title":"Response Get Personal Access Tokens Api V1 Api Key Current Get"}}}}},"deprecated":true,"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["api-key"],"summary":"Generate Personal Access Token","description":"DEPRECATED: Use \/orgs\/current\/personal-access-tokens instead","operationId":"generate_personal_access_token_api_v1_api_key_current_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateRequest","default":{"description":"Default API key","read_only":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/api-key\/current\/{pat_id}":{"delete":{"tags":["api-key"],"summary":"Delete Personal Access Token","description":"DEPRECATED: Use \/orgs\/current\/personal-access-tokens\/{pat_id} instead","operationId":"delete_personal_access_token_api_v1_api_key_current__pat_id__delete","deprecated":true,"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"pat_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pat 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}},"\/api\/v1\/tenants":{"get":{"tags":["tenant"],"summary":"List Tenants","description":"Get all tenants visible to this auth","operationId":"list_tenants_api_v1_tenants_get","security":[{"Bearer Auth":[]}],"parameters":[{"name":"skip_create","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Skip Create"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TenantForUser"},"title":"Response List Tenants Api V1 Tenants Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["tenant"],"summary":"Create Tenant","description":"Create a new organization and corresponding workspace.","operationId":"create_tenant_api_v1_tenants_post","security":[{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TenantCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/app__schemas__Tenant"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/me\/onboarding_state":{"get":{"tags":["me"],"summary":"Get Onboarding State","description":"Get onboarding state for the current user.","operationId":"get_onboarding_state_api_v1_me_onboarding_state_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserOnboardingStateResponse"}}}}},"security":[{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["me"],"summary":"Create Onboarding State","description":"Initialize onboarding state for the current user.","operationId":"create_onboarding_state_api_v1_me_onboarding_state_post","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserOnboardingStateResponse"}}}}},"security":[{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/me\/onboarding_state\/{field}":{"put":{"tags":["me"],"summary":"Update Onboarding State Field","description":"Update a specific onboarding completion field for the current user.\n\nValid fields:\n- tracing_completed_at\n- lgstudio_completed_at\n- playground_completed_at\n- evaluation_completed_at\n- success_viewed_at","operationId":"update_onboarding_state_field_api_v1_me_onboarding_state__field__put","security":[{"Bearer Auth":[]}],"parameters":[{"name":"field","in":"path","required":true,"schema":{"type":"string","title":"Field"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserOnboardingStateResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/me\/ls_user_id":{"get":{"tags":["me"],"summary":"Get Ls User Id","description":"Get the LangSmith user ID for the current user.","operationId":"get_ls_user_id_api_v1_me_ls_user_id_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"string","title":"Response Get Ls User Id Api V1 Me Ls User Id Get"}}}}},"security":[{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/service-accounts":{"get":{"tags":["service-accounts"],"summary":"Get Service Accounts","description":"Get the current organization's service accounts.","operationId":"get_service_accounts_api_v1_service_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/ServiceAccount"},"type":"array","title":"Response Get Service Accounts Api V1 Service Accounts Get"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["service-accounts"],"summary":"Create Service Account","description":"Create a service account","operationId":"create_service_account_api_v1_service_accounts_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ServiceAccountCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ServiceAccountCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/service-accounts\/{service_account_id}":{"delete":{"tags":["service-accounts"],"summary":"Delete Service Account","description":"Delete a service account","operationId":"delete_service_account_api_v1_service_accounts__service_account_id__delete","security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"service_account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Service Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ServiceAccountDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/pending":{"get":{"tags":["workspaces"],"summary":"List Pending Workspace Invites","description":"Get all workspaces visible to this auth","operationId":"list_pending_workspace_invites_api_v1_workspaces_pending_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/app__schemas__Tenant"},"type":"array","title":"Response List Pending Workspace Invites Api V1 Workspaces Pending Get"}}}}},"security":[{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/workspaces\/pending\/{id}":{"delete":{"tags":["workspaces"],"summary":"Delete Pending Workspace Invite","operationId":"delete_pending_workspace_invite_api_v1_workspaces_pending__id__delete","security":[{"Bearer Auth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"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\/workspaces\/pending\/{workspace_id}\/claim":{"post":{"tags":["workspaces"],"summary":"Claim Pending Workspace Invite","operationId":"claim_pending_workspace_invite_api_v1_workspaces_pending__workspace_id__claim_post","deprecated":true,"security":[{"Bearer Auth":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace 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\/workspaces\/current\/members":{"get":{"tags":["workspaces"],"summary":"Get Current Workspace Members","operationId":"get_current_workspace_members_api_v1_workspaces_current_members_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TenantMembers"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"post":{"tags":["workspaces"],"summary":"Add Member To Current Workspace","description":"Add an existing organization member to the current workspace.","operationId":"add_member_to_current_workspace_api_v1_workspaces_current_members_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/IdentityCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Identity"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/workspaces\/current\/members\/active":{"get":{"tags":["workspaces"],"summary":"Get Current Active Workspace Members","operationId":"get_current_active_workspace_members_api_v1_workspaces_current_members_active_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"emails","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Emails"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for email or name","title":"Q"},"description":"Search query for email or name"},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort in descending order","default":true,"title":"Sort By Desc"},"description":"Sort in descending order"},{"name":"ls_user_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Ls User Ids"}},{"name":"user_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"deprecated":true,"title":"User Ids"},"deprecated":true},{"name":"is_disabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Disabled"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/MemberSortField","description":"Field to sort by","default":"created_at"},"description":"Field to sort by"}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/MemberIdentity"},"title":"Response Get Current Active Workspace Members Api V1 Workspaces Current Members Active Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/members\/pending":{"get":{"tags":["workspaces"],"summary":"Get Current Pending Workspace Members","operationId":"get_current_pending_workspace_members_api_v1_workspaces_current_members_pending_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"emails","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Emails"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for email or name","title":"Q"},"description":"Search query for email or name"},{"name":"sort_by_desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort in descending order","default":true,"title":"Sort By Desc"},"description":"Sort in descending order"},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/MemberSortField","description":"Field to sort by","default":"created_at"},"description":"Field to sort by"}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PendingIdentity"},"title":"Response Get Current Pending Workspace Members Api V1 Workspaces Current Members Pending Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/workspaces\/current\/members\/batch":{"post":{"tags":["workspaces"],"summary":"Add Members To Current Workspace Batch","description":"Batch invite up to 500 users to the current workspace and organization.","operationId":"add_members_to_current_workspace_batch_api_v1_workspaces_current_members_batch_post","requestBody":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/PendingIdentityCreate"},"type":"array","title":"Payloads"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/WorkspaceInviteResult"},"type":"array","title":"Response Add Members To Current Workspace Batch Api V1 Workspaces Current Members Batch Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"Organization ID":[]}],"x-public":true}},"\/api\/v1\/workspaces\/current\/members\/{identity_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Current Workspace Member","operationId":"delete_current_workspace_member_api_v1_workspaces_current_members__identity_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity 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},"patch":{"tags":["workspaces"],"summary":"Patch Current Workspace Member","operationId":"patch_current_workspace_member_api_v1_workspaces_current_members__identity_id__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\/IdentityPatch"}}}},"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\/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"],"summary":"Delete Current Workspace Pending Member","operationId":"delete_current_workspace_pending_member_api_v1_workspaces_current_members__identity_id__pending_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity 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\/usage-limits":{"get":{"tags":["usage-limits"],"summary":"List Usage Limits","description":"List out the configured usage limits for a given tenant.","operationId":"list_usage_limits_api_v1_usage_limits_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/UsageLimit"},"type":"array","title":"Response List Usage Limits Api V1 Usage Limits Get"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true},"put":{"tags":["usage-limits"],"summary":"Upsert Usage Limit","description":"Create a new usage limit.","operationId":"upsert_usage_limit_api_v1_usage_limits_put","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpsertUsageLimit"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UsageLimit"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/usage-limits\/org":{"get":{"tags":["usage-limits"],"summary":"List Org Usage Limits","description":"List out the configured usage limits for a given organization.","operationId":"list_org_usage_limits_api_v1_usage_limits_org_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/UsageLimit"},"type":"array","title":"Response List Org Usage Limits Api V1 Usage Limits Org Get"}}}}},"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/usage-limits\/{usage_limit_id}":{"delete":{"tags":["usage-limits"],"summary":"Delete Usage Limit","description":"Delete a specific usage limit.","operationId":"delete_usage_limit_api_v1_usage_limits__usage_limit_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"usage_limit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Usage Limit 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\/settings":{"get":{"tags":["settings"],"summary":"Get Settings","description":"Get settings.","operationId":"get_settings_api_v1_settings_get","responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/app__hub__crud__tenants__Tenant"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/settings\/handle":{"post":{"tags":["settings"],"summary":"Set Tenant Handle","description":"Set tenant handle.","operationId":"set_tenant_handle_api_v1_settings_handle_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SetTenantHandleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/app__hub__crud__tenants__Tenant"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/repos":{"get":{"tags":["repos"],"summary":"List Repos","description":"Get all repos.","operationId":"list_repos_api_v1_repos_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"with_latest_manifest","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"With Latest Manifest"}},{"name":"include_owners","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Owners"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"tenant_handle","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Handle"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"has_commits","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Commits"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Tags"}},{"name":"is_archived","in":"query","required":false,"schema":{"anyOf":[{"enum":["true","allow","false"],"type":"string"},{"type":"null"}],"title":"Is Archived"}},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/TrueFalseLiteral"},{"type":"null"}],"title":"Is Public"}},{"name":"upstream_repo_owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Repo Owner"}},{"name":"upstream_repo_handle","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Repo Handle"}},{"name":"tag_value_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Tag Value Id"}},{"name":"repo_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["prompt","file","agent","skill"],"type":"string"},{"type":"null"}],"title":"Repo Type"}},{"name":"repo_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["prompt","file","agent","skill"],"type":"string"}},{"type":"null"}],"title":"Repo Types"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["internal","external"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"sort_field","in":"query","required":false,"schema":{"anyOf":[{"enum":["num_likes","num_downloads","num_views","updated_at","relevance"],"type":"string"},{"type":"null"}],"title":"Sort Field"}},{"name":"sort_direction","in":"query","required":false,"schema":{"anyOf":[{"const":"asc","type":"string"},{"const":"desc","type":"string"},{"type":"null"}],"title":"Sort Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListReposResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["repos"],"summary":"Create Repo","description":"Create a repo.","operationId":"create_repo_api_v1_repos_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateRepoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateRepoResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["repos"],"summary":"Delete Repos","description":"Delete multiple repos with partial success support.\n\nReturns:\n    - 200: All repos deleted successfully\n    - 207: Some repos deleted successfully, some failed","operationId":"delete_repos_api_v1_repos_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"repo_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"title":"Repo Ids"}}],"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\/repos\/{owner}\/{repo}":{"get":{"tags":["repos"],"summary":"Get Repo","description":"Get a repo.","operationId":"get_repo_api_v1_repos__owner___repo__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetRepoResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["repos"],"summary":"Update Repo","description":"Update a repo.","operationId":"update_repo_api_v1_repos__owner___repo__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateRepoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateRepoResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["repos"],"summary":"Delete Repo","description":"Delete a repo.","operationId":"delete_repo_api_v1_repos__owner___repo__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"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\/repos\/{owner}\/{repo}\/fork":{"post":{"tags":["repos"],"summary":"Fork Repo","description":"Fork a repo.","operationId":"fork_repo_api_v1_repos__owner___repo__fork_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ForkRepoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GetRepoResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/repos\/tags":{"get":{"tags":["repos"],"summary":"List Repo Tags","description":"Get all repo tags.","operationId":"list_repo_tags_api_v1_repos_tags_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"tenant_handle","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Handle"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"has_commits","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Commits"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Tags"}},{"name":"is_archived","in":"query","required":false,"schema":{"anyOf":[{"enum":["true","allow","false"],"type":"string"},{"type":"null"}],"title":"Is Archived"}},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/TrueFalseLiteral"},{"type":"null"}],"title":"Is Public"}},{"name":"upstream_repo_owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Repo Owner"}},{"name":"upstream_repo_handle","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Repo Handle"}},{"name":"tag_value_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Tag Value Id"}},{"name":"repo_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["prompt","file","agent","skill"],"type":"string"},{"type":"null"}],"title":"Repo Type"}},{"name":"repo_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["prompt","file","agent","skill"],"type":"string"}},{"type":"null"}],"title":"Repo Types"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["internal","external"],"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListTagsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/repos\/optimize-job":{"post":{"tags":["repos"],"summary":"Optimize Prompt Job","description":"Optimize prompt","operationId":"optimize_prompt_job_api_v1_repos_optimize_job_post","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OptimizePromptJobRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OptimizePromptResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"x-public":true}},"\/api\/v1\/likes\/{owner}\/{repo}":{"post":{"tags":["likes"],"summary":"Like Repo","description":"Like a repo.","operationId":"like_repo_api_v1_likes__owner___repo__post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LikeRepoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LikeRepoResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/comments\/{owner}\/{repo}":{"post":{"tags":["comments"],"summary":"Create Comment","operationId":"create_comment_api_v1_comments__owner___repo__post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"get":{"tags":["comments"],"summary":"Get Comments","operationId":"get_comments_api_v1_comments__owner___repo__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"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":{"$ref":"#\/components\/schemas\/ListCommentsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/comments\/{owner}\/{repo}\/{parent_comment_id}":{"get":{"tags":["comments"],"summary":"Get Sub Comments","operationId":"get_sub_comments_api_v1_comments__owner___repo___parent_comment_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"parent_comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Parent Comment Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"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":{"$ref":"#\/components\/schemas\/ListCommentsResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["comments"],"summary":"Create Sub Comment","operationId":"create_sub_comment_api_v1_comments__owner___repo___parent_comment_id__post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"parent_comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Parent Comment Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Comment"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/comments\/{owner}\/{repo}\/{parent_comment_id}\/like":{"post":{"tags":["comments"],"summary":"Like Comment","operationId":"like_comment_api_v1_comments__owner___repo___parent_comment_id__like_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"parent_comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Parent Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Like Comment Api V1 Comments  Owner   Repo   Parent Comment Id  Like Post"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["comments"],"summary":"Unlike Comment","operationId":"unlike_comment_api_v1_comments__owner___repo___parent_comment_id__like_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"parent_comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Parent Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unlike Comment Api V1 Comments  Owner   Repo   Parent Comment Id  Like Delete"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/repos\/{owner}\/{repo}\/tags":{"get":{"tags":["tags"],"summary":"Get Tags","operationId":"get_tags_api_v1_repos__owner___repo__tags_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/RepoTag"},"title":"Response Get Tags Api V1 Repos  Owner   Repo  Tags Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["tags"],"summary":"Create Tag","description":"Create a tag. Requires repo ownership, prompts:tag permission, or ABAC grant.","operationId":"create_tag_api_v1_repos__owner___repo__tags_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RepoTagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RepoTag"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/repos\/{owner}\/{repo}\/tags\/{tag_name}":{"get":{"tags":["tags"],"summary":"Get Tag","operationId":"get_tag_api_v1_repos__owner___repo__tags__tag_name__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"tag_name","in":"path","required":true,"schema":{"type":"string","title":"Tag Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RepoTag"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["tags"],"summary":"Update Tag","description":"Update a tag. Requires repo ownership, prompts:tag permission, or ABAC grant.","operationId":"update_tag_api_v1_repos__owner___repo__tags__tag_name__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"tag_name","in":"path","required":true,"schema":{"type":"string","title":"Tag Name"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RepoUpdateTagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RepoTag"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["tags"],"summary":"Delete Tag","description":"Delete a tag. Requires repo ownership, prompts:tag permission, or ABAC grant.","operationId":"delete_tag_api_v1_repos__owner___repo__tags__tag_name__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}},{"name":"tag_name","in":"path","required":true,"schema":{"type":"string","title":"Tag Name"}}],"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\/repos\/{owner}\/{repo}\/owners":{"get":{"tags":["ownerships"],"summary":"List Repo Owners","description":"List all owners of a repo.\n\nRequires read permission on the repo.","operationId":"list_repo_owners_api_v1_repos__owner___repo__owners_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListRepoOwnersResponse"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["ownerships"],"summary":"Add Repo Owner","description":"Add an owner to a repo.\n\nRequires being an existing owner of the repo.","operationId":"add_repo_owner_api_v1_repos__owner___repo__owners_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddRepoOwnerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RepoOwner"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["ownerships"],"summary":"Remove Repo Owner","description":"Remove an owner from a repo.\n\nRequires being an existing owner of the repo.","operationId":"remove_repo_owner_api_v1_repos__owner___repo__owners_delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","title":"Owner"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RemoveRepoOwnerRequest"}}}},"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\/repos\/{owner}\/{repo}\/optimization-jobs":{"get":{"tags":["optimization-jobs"],"summary":"List Jobs","description":"List all prompt optimization jobs.","operationId":"list_jobs_api_v1_repos__owner___repo__optimization_jobs_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PromptOptimizationJob"},"title":"Response List Jobs Api V1 Repos  Owner   Repo  Optimization Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["optimization-jobs"],"summary":"Create Job","description":"Create a new prompt optimization job.","operationId":"create_job_api_v1_repos__owner___repo__optimization_jobs_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"repo","in":"path","required":true,"schema":{"type":"string","title":"Repo"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJobCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJob"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/repos\/{owner}\/{repo}\/optimization-jobs\/{job_id}":{"get":{"tags":["optimization-jobs"],"summary":"Get Job","description":"Get a specific optimization job.","operationId":"get_job_api_v1_repos__owner___repo__optimization_jobs__job_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJobWithLogs"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"patch":{"tags":["optimization-jobs"],"summary":"Update Job","description":"Replace an existing prompt optimization job with a new, modified job.","operationId":"update_job_api_v1_repos__owner___repo__optimization_jobs__job_id__patch","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJobUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJob"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["optimization-jobs"],"summary":"Delete Job","description":"Delete a prompt optimization job.","operationId":"delete_job_api_v1_repos__owner___repo__optimization_jobs__job_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job 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\/repos\/{owner}\/{repo}\/optimization-jobs\/{job_id}\/logs":{"get":{"tags":["optimization-jobs"],"summary":"List Job Logs","description":"List all logs for a specific prompt optimization job.","operationId":"list_job_logs_api_v1_repos__owner___repo__optimization_jobs__job_id__logs_get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PromptOptimizationJobLog"},"title":"Response List Job Logs Api V1 Repos  Owner   Repo  Optimization Jobs  Job Id  Logs Get"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"post":{"tags":["optimization-jobs"],"summary":"Create Log","description":"Create a new log entry for a prompt optimization job.","operationId":"create_log_api_v1_repos__owner___repo__optimization_jobs__job_id__logs_post","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJobLogCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJobLog"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true}},"\/api\/v1\/repos\/{owner}\/{repo}\/optimization-jobs\/{job_id}\/logs\/{log_id}":{"get":{"tags":["optimization-jobs"],"summary":"Get Log","description":"Get a specific prompt optimization job log.","operationId":"get_log_api_v1_repos__owner___repo__optimization_jobs__job_id__logs__log_id__get","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PromptOptimizationJobLog"}}}},"422":{"description":"Validation Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPValidationError"}}}}},"x-public":true},"delete":{"tags":["optimization-jobs"],"summary":"Delete Log","description":"Delete a prompt optimization job log.","operationId":"delete_log_api_v1_repos__owner___repo__optimization_jobs__job_id__logs__log_id__delete","security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Log 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}},"\/.well-known\/oauth-authorization-server":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns OAuth2 authorization server metadata per RFC 8414, including supported endpoints, grant types, and response types.","tags":["oauth"],"summary":"Get OAuth2 authorization server metadata","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.AuthorizationServerMetadata"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}}},"x-public":true,"parameters":[]}},"\/.well-known\/openid-configuration":{"get":{"description":"Returns the OpenID Connect discovery document (OpenID Connect Discovery 1.0), advertising the authorization, token, userinfo, and JWKS endpoints plus supported scopes, response types, and signing algorithms.","tags":["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\/hub\/environments":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the hub environments model for the current tenant.\nReturns 404 if no custom configuration exists.","tags":["hub_environments"],"summary":"List hub environments","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/hub_environments.HubEnvironmentsModel"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/hub_environments.ErrorResponse"}}}},"404":{"description":"Not Found","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"}}}}},"x-public":true,"parameters":[]},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Creates the hub environments configuration for the current tenant.","tags":["hub_environments"],"summary":"Create hub environments model","parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$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"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/hub_environments.CreateEnvironmentsRequest"}}}}}},"\/api\/v1\/hub\/environments\/{id}":{"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Deletes the hub environments configuration. Tenant reverts to defaults.","tags":["hub_environments"],"summary":"Delete hub environments model","parameters":[{"description":"Model ID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/hub_environments.ErrorResponse"}}}},"404":{"description":"Not Found","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"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Replaces the environments array on an existing model.","tags":["hub_environments"],"summary":"Update hub environments model","parameters":[{"description":"Model ID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/hub_environments.HubEnvironmentsModel"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/hub_environments.ErrorResponse"}}}},"404":{"description":"Not Found","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"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/hub_environments.UpdateEnvironmentsRequest"}}}}}},"\/auth\/public":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns public authentication information for the current workspace-level session.","tags":["auth"],"summary":"Get public auth info","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/authn.PublicAuthInfo"}}}}},"x-public":true,"parameters":[]}},"\/auth\/sandbox-access":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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.","tags":["sandboxes"],"summary":"Get sandbox access decision","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","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/authn.PublicAuthInfo"}}}},"400":{"description":"Bad Request","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: <reason>","content":{"application\/json":{"schema":{"type":"string"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/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"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"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"]}}}}}},"\/commits\/{owner}\/{repo}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"List commits for a repository, with pagination support.\nThis endpoint supports both authenticated and unauthenticated access.\nAuthenticated users can access private repositories; unauthenticated users can only access public repositories.\nThe include_stats parameter controls whether download and view statistics are computed (defaults to true).","tags":["commits"],"summary":"List commits","parameters":[{"description":"Repository owner (tenant handle) or '-' for private repos","name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"description":"Repository handle","name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"description":"IncludeStats determines whether to compute num_downloads and num_views","name":"include_stats","in":"query","schema":{"type":"boolean","default":true,"title":"Include Stats"}},{"description":"Limit is the pagination limit","name":"limit","in":"query","schema":{"type":"integer","default":20,"maximum":100,"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":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ListCommitsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Creates a new commit in a repository.\nRequires authentication and write access to the repository.","tags":["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"}}],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.CreateCommitResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.CreateCommitReq"}}}}}},"\/commits\/{owner}\/{repo}\/{commit}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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","tags":["commits"],"summary":"Get 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"}},{"description":"Commit hash, tag, or 'latest'","name":"commit","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","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.CommitResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/commits.ErrorResponse"}}}}},"x-public":true}},"\/datasets\/{dataset_id}\/experiment-view-overrides":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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","tags":["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"}}],"responses":{"200":{"description":"Successfully retrieved experiment view override configurations","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/experiment_view_overrides.ExperimentViewOverride"}}}}},"400":{"description":"Invalid dataset ID format\" example({\"error\":\"invalid dataset 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":"Dataset not found or not accessible\" example({\"error\":\"dataset not found or not accessible\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error\" example({\"error\":\"internal server error\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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).","tags":["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"}}],"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\"})","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":{"type":"object","additionalProperties":{"type":"string"}}}}},"409":{"description":"Override already exists\" example({\"error\":\"experiment view override already exists\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"422":{"description":"Validation error\" example({\"error\":\"column name at index 0 must start with one of: inputs, outputs, reference_outputs, feedback, metrics, attachments, metadata\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error\" example({\"error\":\"internal server error\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/experiment_view_overrides.ExperimentViewOverridePostRequest"}}}}}},"\/datasets\/{dataset_id}\/experiment-view-overrides\/{id}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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.","tags":["experiment-view-overrides"],"summary":"Get experiment view override configuration by specific ID","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":{"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\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Override not found\" example({\"error\":\"experiment view override not found\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error\" example({\"error\":\"internal server error\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true},"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\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized access\" example({\"error\":\"Unauthorized\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Override not found\" example({\"error\":\"experiment view override not found\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error\" example({\"error\":\"internal server error\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Updates an existing experiment view override configuration by completely replacing\nthe column overrides for the specified dataset and override ID.\n\nThis endpoint performs a complete replacement of the column overrides configuration.\nAll existing column overrides will be replaced with the new configuration provided\nin the request body. To add or modify individual columns, include the complete\ndesired configuration in the request.\n\nThe request format is identical to the create endpoint:\n- column_overrides: Required array with at least one override configuration\n- Each override can specify color gradients, precision, and visibility\n\nExample request body:\n{\n\"column_overrides\": [\n{\n\"column\": \"metrics.f1_score\",\n\"color_gradient\": [[0.0, \"#ff4444\"], [0.8, \"#44ff44\"]],\n\"precision\": 4\n},\n{\n\"column\": \"feedback.rating\",\n\"hide\": false\n}\n]\n}\n\nBoth the dataset and override must exist and be accessible by the authenticated user.","tags":["experiment-view-overrides"],"summary":"Update existing experiment view override configuration","parameters":[{"example":"\"550e8400-e29b-41d4-a716-446655440000\"","description":"Dataset ID","name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"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":"Successfully updated experiment view override","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/experiment_view_overrides.ExperimentViewOverride"}}}},"400":{"description":"Invalid request data\" example({\"error\":\"invalid experiment view override ID format\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized access\" example({\"error\":\"Unauthorized\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Override not found\" example({\"error\":\"experiment view override not found\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"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\"})","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/experiment_view_overrides.ExperimentViewOverridePatchRequest"}}}}}},"\/issues-agent\/lcu-spend":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the authoritative Engine LCU spend for the caller's\norganization in the window (`total_lcu`, independent of\npagination). Set `group_by=tenant` for a workspace breakdown or\n`group_by=session` for a (tenant, session) breakdown \u2014 each\nspend-ranked and cursor-paginated (`page_size`, `cursor`); omit\n`group_by` for the total only. The window defaults to the current\ncalendar month (UTC) and can be overridden with `start`\/`end`\n(RFC 3339, capped at 31 days). Hours the rate card did not price\nare excluded from LCU and surfaced via the `*_unpriced_row_count`\nfields so callers can detect coverage gaps without inflating spend.","tags":["issues-agent"],"summary":"Get issues-agent (Engine) LCU spend per project for the calling org","parameters":[{"description":"Inclusive window start, RFC 3339. Defaults to first instant of current calendar month (UTC).","name":"start","in":"query","schema":{"type":"string","title":"Start"}},{"description":"Exclusive window end, RFC 3339. Defaults to first instant of next calendar month (UTC).","name":"end","in":"query","schema":{"type":"string","title":"End"}},{"description":"Optional workspace filter (UUID).","name":"tenant_id","in":"query","schema":{"type":"string","title":"Tenant Id"}},{"description":"Optional project filter (UUID).","name":"session_id","in":"query","schema":{"type":"string","title":"Session Id"}},{"description":"`tenant` (workspace breakdown) or `session` ((tenant, session) breakdown); omit for the total only.","name":"group_by","in":"query","schema":{"type":"string","title":"Group By"}},{"description":"Breakdown page size (default 20, max 100). Only applies with group_by.","name":"page_size","in":"query","schema":{"type":"integer","title":"Page Size"}},{"description":"Opaque pagination cursor from a prior response. Only applies with group_by.","name":"cursor","in":"query","schema":{"type":"string","title":"Cursor"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/issues_agent_usage.LCUSpendResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/issues_agent_usage.LCUSpendErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/issues_agent_usage.LCUSpendErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/issues_agent_usage.LCUSpendErrorResponse"}}}}},"x-public":true}},"\/me\/providers\/{providerType}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the provider user ID associated with the authenticated user for a given provider type, or null if not set. Scoped to the current tenant.","tags":["me"],"summary":"Get the authenticated user's provider user ID","parameters":[{"description":"Provider type (e.g. slack, github)","name":"providerType","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"string"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"type":"string"}}}}},"x-public":true}},"\/oauth\/authorize":{"get":{"security":[{"API Key":[]},{"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\/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"}}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$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":{"multipart\/form-data":{"schema":{"type":"object","properties":{"organization_id":{"type":"string","description":"Organization ID; must match the authenticated org"},"workspace_id":{"type":"string","description":"Default workspace ID; must belong to organization and be accessible to user"},"client_id":{"type":"string","description":"OAuth2 client ID"},"redirect_uri":{"type":"string","description":"Redirect URI registered with the client"},"code_challenge":{"type":"string","description":"PKCE code challenge"},"code_challenge_method":{"type":"string","description":"PKCE method, must be 'S256'"},"state":{"type":"string","description":"Opaque state value to prevent CSRF"}},"required":["organization_id","client_id","redirect_uri","code_challenge","code_challenge_method"]}}}}}},"\/oauth\/client\/{clientID}":{"get":{"description":"Returns the display metadata (name, logo, homepage\/terms\/privacy links) for a registered OAuth2 client. Used by the consent screen to show a human-readable client identity instead of the raw client_id. Public endpoint; exposes only non-sensitive display fields.","tags":["oauth"],"summary":"Get public OAuth2 client metadata","parameters":[{"description":"OAuth2 client ID","name":"clientID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.ClientPublicMetadata"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}}},"x-public":true}},"\/oauth\/device\/authorize":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Marks a device code as authorized for the authenticated user. Called by the \/activate page when the user enters their user code. Requires authentication.","tags":["oauth"],"summary":"Authorize a device code","parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$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"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"organization_id":{"type":"string","description":"Organization ID; must match the authenticated org"},"workspace_id":{"type":"string","description":"Default workspace ID; must belong to organization and be accessible to user"},"user_code":{"type":"string","description":"User code displayed on the device"}},"required":["organization_id","user_code"]}}}}}},"\/oauth\/device\/code":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Issues a device code and user code for the device authorization flow per RFC 8628.","tags":["oauth"],"summary":"Request OAuth2 device authorization","parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.DeviceCodeResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"client_id":{"type":"string","description":"OAuth2 client ID"}},"required":["client_id"]}}}}}},"\/oauth\/register":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Public RFC 7591 Dynamic Client Registration endpoint. Only mints public clients with allowed loopback, HTTPS, or native client redirect URIs. Body limit 8 KB.","tags":["oauth"],"summary":"Register an OAuth2 dynamic client","parameters":[],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.ClientRegistrationResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}},"413":{"description":"Request Entity Too Large","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":{"schema":{"$ref":"#\/components\/schemas\/oauth.ClientRegistrationRequest"}}}}}},"\/oauth\/revoke":{"post":{"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":["oauth"],"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":[]},{"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\/oauth.TokenResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"grant_type":{"type":"string","description":"Grant type: authorization_code, urn:ietf:params:oauth:grant-type:device_code, or refresh_token"},"client_id":{"type":"string","description":"OAuth2 client ID"},"code":{"type":"string","description":"Authorization code (authorization_code grant)"},"code_verifier":{"type":"string","description":"PKCE code verifier (authorization_code grant)"},"redirect_uri":{"type":"string","description":"Redirect URI (authorization_code grant)"},"device_code":{"type":"string","description":"Device code (device_code grant)"},"refresh_token":{"type":"string","description":"Refresh token (refresh_token grant)"}},"required":["grant_type","client_id"]}}}}}},"\/orgs\/current\/data-planes":{"get":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Returns up to 50 data planes owned by the caller's organization. Sorted status priority (active first), then newest first. Requires BYOC to be enabled for the org.","tags":["data_planes"],"summary":"List data planes for the current organization","responses":{"200":{"description":"Data planes","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.ListPublicDataPlanesResponse"}}}},"400":{"description":"Invalid organization ID","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"BYOC not enabled for this organization","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"parameters":[]},"post":{"security":[{"API Key":[]},{"Organization 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.","tags":["data_planes"],"summary":"Create a new data plane","parameters":[],"responses":{"202":{"description":"Data plane requested","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.PublicDataPlane"}}}},"400":{"description":"Invalid input","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.ErrorResponse"}}}},"403":{"description":"BYOC not enabled or insufficient permissions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.ErrorResponse"}}}},"409":{"description":"Name already exists for this organization","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.CreateDataPlaneRequestAws"}}}}}},"\/orgs\/current\/data-planes\/{id}":{"delete":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"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":["data_planes"],"summary":"Delete a data plane","parameters":[{"description":"Data plane ID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Data plane deprovisioning started","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.PublicDataPlane"}}}},"400":{"description":"Invalid data plane ID or confirmed missing delete permissions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/data_planes.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"BYOC not enabled or insufficient permissions","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Data plane not found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"409":{"description":"Data plane is already in a terminal status","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true}},"\/repos\/{owner}\/{repo}\/tags\/{tag_name}\/history":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the paginated audit log of transitions for a specific\ntag in a repository. Each entry records a commit change\n(from_commit \u2192 to_commit) along with who performed it.","tags":["tag-transitions"],"summary":"Get tag transition history","parameters":[{"description":"Repository owner (tenant handle)","name":"owner","in":"path","required":true,"schema":{"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":{"type":"integer","default":50,"maximum":100,"minimum":1,"title":"Limit"}},{"name":"offset","in":"query","schema":{"type":"integer","default":0,"minimum":0,"title":"Offset"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tag_transitions.TagTransitionHistoryResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tag_transitions.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tag_transitions.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tag_transitions.ErrorResponse"}}}}},"x-public":true}},"\/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":["runs"],"summary":"Create a Run","parameters":[],"responses":{"202":{"description":"Run created","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\/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"}}}}}},"\/runs\/batch":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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\u2011run ingestion when submitting hundreds of runs, but `\/runs\/multipart` offers better handling for very large fields and attachments.","tags":["runs"],"summary":"Ingest Runs (Batch JSON)","parameters":[],"responses":{"202":{"description":"Runs batch ingested","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\/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"}}}}}}}}},"\/runs\/multipart":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Ingests multiple runs, feedback objects, and binary attachments in a single `multipart\/form-data` request.\n**Part\u2011name pattern**: `<event>.<run_id>[.<field>]` where `event` \u2208 {`post`, `patch`, `feedback`, `attachment`}.\n* `post|patch.<run_id>` \u2013\u00a0JSON run payload.\n* `post|patch.<run_id>.<field>` \u2013 out\u2011of\u2011band run data (`inputs`, `outputs`, `events`, `error`, `extra`, `serialized`).\n* `feedback.<run_id>` \u2013 JSON feedback payload (must include `trace_id`).\n* `attachment.<run_id>.<filename>` \u2013 arbitrary binary attachment stored in S3.\n**Headers**: every part must set `Content-Type` **and** either a `Content-Length` header or `length` parameter. Per\u2011part `Content-Encoding` is **not** allowed; the top\u2011level request may be `Content-Encoding: gzip` or `Content-Encoding: zstd`.\n**Best performance** for high\u2011volume ingestion.","tags":["runs"],"summary":"Ingest Runs (Multipart)","parameters":[],"responses":{"202":{"description":"Accepted","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runs.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runs.ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runs.ErrorResponse"}}}},"413":{"description":"Request Entity Too Large","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runs.ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runs.ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/runs.ErrorResponse"}}}}},"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\u2011of\u2011band"},"patch.{run_id}.outputs":{"type":"string","format":"binary","description":"Large outputs object (JSON) stored out\u2011of\u2011band"},"feedback.{run_id}":{"type":"string","format":"binary","description":"Feedback object (JSON) \u2013 must include trace_id"},"attachment.{run_id}.{filename}":{"type":"string","format":"binary","description":"Binary attachment linked to run {run_id}"}}}}}}}},"\/runs\/{run_id}":{"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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"}}],"responses":{"202":{"description":"Run 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\/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":"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"}}}}}},"\/userinfo":{"get":{"security":[{"Bearer Auth":[]}],"description":"Returns identity claims for the user represented by a LangSmith access token whose audience is the identity resource or the API resource. The token is passed as a Bearer credential in the Authorization header (OpenID Connect Core 1.0 \u00a75.3).","tags":["oauth"],"summary":"Get OpenID Connect userinfo","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.UserinfoResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/oauth.TokenErrorResponse"}}}}},"x-public":true,"parameters":[]}},"\/v1\/agent-builder\/integrations":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns default policy, integration overrides, and known integrations for the current workspace.","tags":["integrations"],"summary":"Get Agent Builder integrations settings","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/integrations.AgentBuilderIntegrationsPayload"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"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"}}}}}},"x-public":true,"parameters":[]},"put":{"security":[{"API Key":[]},{"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\/integrations.AgentBuilderIntegrationsPayload"}}}},"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"}}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/integrations.AgentBuilderIntegrationsUpdatePayload"}}}}}},"\/v1\/fleet\/orgs":{"get":{"security":[{"API Key":[]},{"Bearer Auth":[]}],"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":["fleet orgs"],"summary":"List organizations","parameters":[{"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\/orgs.ListOrgsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/httperr.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/httperr.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/httperr.ErrorResponse"}}}}},"x-public":true}},"\/v1\/fleet\/orgs\/{org_id}\/tenants":{"get":{"security":[{"API Key":[]},{"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"}},{"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\/tenants.ListTenantsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tenants.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tenants.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tenants.ErrorResponse"}}}}},"x-public":true}},"\/v1\/fleet\/secrets":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"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":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/secrets.ListResponse"}}}},"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"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/secrets.ErrorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"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\/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":{"type":"array","items":{"$ref":"#\/components\/schemas\/secrets.bulkUpsertItem"}}}}}}},"\/v1\/fleet\/secrets\/{name}":{"put":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"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":["fleet secrets"],"summary":"Set a workspace secret","parameters":[{"description":"Secret name (e.g. ANTHROPIC_API_KEY)","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/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"}}}}},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Removes a single workspace secret by name. Succeeds whether or not the secret currently exists. Secrets are a single shared namespace per workspace. Any agent (triggered by any member) can use them, and any member whose role grants workspaces:manage-secrets (Workspace Admins by default) can overwrite or delete them. Setting an existing name replaces its value for everyone. Treat them as shared team credentials, not personal keys.","tags":["fleet secrets"],"summary":"Delete a workspace secret","parameters":[{"description":"Secret name (e.g. ANTHROPIC_API_KEY)","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/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}},"\/v1\/fleet\/tenants\/{tenant_id}\/users\/{id}":{"get":{"security":[{"API Key":[]},{"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"}},{"description":"User ID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.UserRef"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}}},"x-public":true}},"\/v1\/fleet\/users\/current":{"get":{"security":[{"API Key":[]},{"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\/users.User"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/users.ErrorResponse"}}}}},"x-public":true,"parameters":[]}},"\/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"}}}}},"x-public":true,"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"}}}}},"x-public":true}},"\/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"}}}}},"x-public":true},"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"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Updates an alert rule.","tags":["alert_rules"],"summary":"Update an alert rule","parameters":[{"description":"Session ID","name":"session_id","in":"path","required":true,"schema":{"type":"string"}},{"description":"Alert rule ID","name":"alert_rule_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Alert rule updated","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"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"}}}}},"x-public":true,"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"}}}}}},"x-public":true,"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"}}}}}},"x-public":true}},"\/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"}}}}},"x-public":true,"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"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"{example_id}":{"type":"string","format":"binary","description":"The Example info as JSON. Can have fields 'metadata', 'split', 'use_source_run_io', 'source_run_id', 'created_at', 'modified_at'"},"{example_id}.inputs":{"type":"string","format":"binary","description":"The Example inputs as JSON"},"{example_id}.outputs":{"type":"string","format":"binary","description":"THe Example outputs as JSON"},"{example_id}.attachments.{name}":{"type":"string","format":"binary","description":"File attachment named {name}"}},"required":["{example_id}","{example_id}.inputs"]}}}}},"patch":{"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"}}}}},"x-public":true,"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\/evaluators":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"List evaluators for the current workspace, with optional filtering by type, name, tag, feedback key, or resource ID.","tags":["evaluators"],"summary":"List evaluators","parameters":[{"description":"Filter by evaluator type","name":"type","in":"query","schema":{"type":"string","title":"Type"}},{"description":"Filter by name substring (also searches creator names)","name":"name_contains","in":"query","schema":{"type":"string","title":"Name Contains"}},{"description":"Filter by tag value IDs","name":"tag_value_id","in":"query","style":"form","explode":false,"schema":{"items":{"type":"string"},"type":"array","title":"Tag Value Id"}},{"description":"Filter by feedback key","name":"feedback_key","in":"query","schema":{"type":"string","title":"Feedback Key"}},{"description":"Filter by resource IDs","name":"resource_id","in":"query","style":"form","explode":false,"schema":{"items":{"type":"string"},"type":"array","title":"Resource Id"}},{"description":"Field to sort by","name":"sort_by","in":"query","schema":{"type":"string","title":"Sort By"}},{"description":"Sort in descending order","name":"sort_by_desc","in":"query","schema":{"type":"boolean","title":"Sort By Desc"}},{"description":"Maximum number of results (1-100)","name":"limit","in":"query","schema":{"type":"integer","default":100,"title":"Limit"}},{"description":"Offset for pagination","name":"offset","in":"query","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"}}}}},"x-public":true},"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"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.CreateEvaluatorRequest"}}}}},"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","in":"query","required":true,"style":"form","explode":false,"schema":{"items":{"type":"string"},"type":"array","title":"Evaluator Ids"}},{"description":"When true, delete all run rules for this evaluator before deleting the evaluator","name":"delete_run_rules","in":"query","schema":{"type":"boolean","title":"Delete Run Rules"}}],"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":{"schema":{"$ref":"#\/components\/schemas\/evaluators.ErrorResponse"}}}}},"x-public":true}},"\/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. resource_id, type, and feedback_key may be supplied with group_by to narrow listing aggregations.","tags":["evaluators"],"summary":"Get evaluator spend","parameters":[{"description":"Aggregation mode: 'evaluator', 'resource', or 'run_rule'. Mutually exclusive with entity filters.","name":"group_by","in":"query","schema":{"type":"string","title":"Group By"}},{"description":"Filter to a specific evaluator (UUID). Mutually exclusive with group_by.","name":"evaluator_id","in":"query","schema":{"type":"string","title":"Evaluator Id"}},{"description":"Filter to a specific project (UUID). Mutually exclusive with group_by.","name":"session_id","in":"query","schema":{"type":"string","title":"Session Id"}},{"description":"Filter to a specific dataset (UUID). Mutually exclusive with group_by.","name":"dataset_id","in":"query","schema":{"type":"string","title":"Dataset Id"}},{"description":"Filter grouped results to evaluators attached to all supplied project or dataset IDs. Only valid with group_by.","name":"resource_id","in":"query","style":"form","explode":false,"schema":{"items":{"type":"string"},"type":"array","title":"Resource Id"}},{"description":"Filter grouped results by evaluator type: 'llm' or 'code'. Only valid with group_by.","name":"type","in":"query","schema":{"type":"string","title":"Type"}},{"description":"Filter grouped results by evaluator feedback key. Only valid with group_by.","name":"feedback_key","in":"query","schema":{"type":"string","title":"Feedback Key"}},{"description":"Start of the 7-day window (YYYY-MM-DD).","name":"period_start","in":"query","required":true,"schema":{"type":"string","title":"Period Start"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.GetEvaluatorSpendResponse"}}}},"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"}}}},"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\/evaluators.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/evaluators\/{evaluator_id}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Retrieve a single evaluator by its ID.","tags":["evaluators"],"summary":"Get evaluator","parameters":[{"description":"Evaluator ID","name":"evaluator_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.Evaluator"}}}},"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"}}}},"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\/evaluators.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Delete an evaluator. When delete_run_rules is true, all run rules referencing this evaluator are deleted first (same tenant). Associated llm_evaluators and code_evaluators rows are removed by foreign-key cascade when the evaluator row is deleted.","tags":["evaluators"],"summary":"Delete evaluator","parameters":[{"description":"Evaluator ID","name":"evaluator_id","in":"path","required":true,"schema":{"type":"string"}},{"description":"When true, delete all run rules for this evaluator before deleting the evaluator","name":"delete_run_rules","in":"query","schema":{"type":"boolean","title":"Delete Run Rules"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.ErrorResponse"}}}},"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-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Update an existing evaluator's name, LLM configuration, or code configuration.","tags":["evaluators"],"summary":"Update evaluator","parameters":[{"description":"Evaluator ID","name":"evaluator_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.UpdateEvaluatorResponse"}}}},"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"}}}},"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\/evaluators.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/evaluators.UpdateEvaluatorRequest"}}}}}},"\/v1\/platform\/features":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns a consolidated view of default models and disabled models per feature for the workspace.","tags":["features"],"summary":"List feature configurations","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/features.FeatureConfig"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}}},"x-public":true,"parameters":[]}},"\/v1\/platform\/features\/{feature}\/default-model":{"put":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Sets or replaces the default model for a feature in the workspace.","tags":["features"],"summary":"Set default 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\/features.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.UpsertDefaultModelRequest"}}}}},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Removes the default model for a feature in the workspace.","tags":["features"],"summary":"Delete default model for a feature","parameters":[{"description":"Feature name","name":"feature","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/features\/{feature}\/disabled-models":{"put":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Adds a model to the disabled list for a feature in the workspace.","tags":["features"],"summary":"Disable a model for a feature","parameters":[{"description":"Feature name","name":"feature","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.DisableModelRequest"}}}}}},"\/v1\/platform\/features\/{feature}\/disabled-models\/{model}":{"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Removes a model from the disabled list for a feature in the workspace.","tags":["features"],"summary":"Re-enable a disabled model for a feature","parameters":[{"description":"Feature name","name":"feature","in":"path","required":true,"schema":{"type":"string"}},{"description":"Model name (URL-encoded)","name":"model","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/features.ErrorResponse"}}}}},"x-public":true}},"\/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` and\n`default_rate_limit` policies (children carry `parent_policy_id`).\n\n**Spend tracking:** each spend-cap policy carries\n`current_spend_usd` \u2014 the spend accumulated in the policy's\nactive window.\n\n**Filters** (all optional):\n- `policy_type` \u2014 `spend_cap`, `default_spend_cap`, `guard`, `route_config`, `rate_limit`, or `default_rate_limit`\n- `subject_matcher_key` + `subject_matcher_value` \u2014 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":["gateway-policies"],"summary":"List gateway policies","parameters":[{"description":"Filter by policy_type","name":"policy_type","in":"query","schema":{"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":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/gateway_policies.GatewayPolicyRecord"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"403":{"description":"LLM Gateway not enabled, or caller lacks OrganizationRead","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Bearer Auth":[]}],"description":"Creates a gateway policy for the calling organization.\n\n**policy_type** is one of `spend_cap`, `default_spend_cap`,\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\": <number>}`\n- `guard`:\n`{\"version\": 1, \"detect\": {\"pii\": <bool>, \"secrets\": <bool>}, \"timeout_seconds\": <number>, \"timeout_action\": \"allow\"|\"block\"}`\n`timeout_seconds` (optional, 0.1\u201330) caps guard pipeline execution time; defaults to 2s. `timeout_action` defaults to `allow`.\n- `route_config`:\n`{\"strategy\": \"priority_fallback\", \"triggers\": {\"status_codes\": [<int>]}, \"fallbacks\": [{\"model_configs\": [{\"model_config_id\": \"<playground-settings-uuid>\"}]}]}`\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\u20135). `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\": <integer>}]}`\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 \u2014 name must be unique per organization (409 on\nconflict). Returns 201 either way.","tags":["gateway-policies"],"summary":"Create a gateway policy","parameters":[],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.GatewayPolicyRecord"}}}},"400":{"description":"validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"401":{"description":"missing or invalid auth","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"403":{"description":"LLM Gateway not enabled for the organization, or caller lacks OrganizationManage","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"409":{"description":"policy name conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}}},"x-codeSamples":[{"label":"spend_cap","lang":"json","source":"{\n  \"name\": \"monthly-cap\",\n  \"policy_type\": \"spend_cap\",\n  \"action\": \"block\",\n  \"subject_matchers\": [{\"key\":\"organization_id\",\"value\":\"<org-uuid>\"}],\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\":\"<org-uuid>\"}],\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\": \"<workspace-uuid>\"}],\n  \"config\": {\"strategy\": \"priority_fallback\", \"triggers\": {\"status_codes\": [429, 500, 502, 503, 504]}, \"fallbacks\": [{\"model_configs\": [{\"model_config_id\": \"11111111-1111-1111-1111-111111111111\"}]}]}\n}"}],"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.CreateGatewayPolicyRequest"}}}}}},"\/v1\/platform\/gateway-policies\/search":{"post":{"security":[{"API Key":[]},{"Bearer Auth":[]}],"description":"Batch variant of GET \/v1\/platform\/gateway-policies for\nfetching policies that match a set of subject_matcher_values\nunder one subject_matcher_key. Accepts the values in a JSON\nbody so callers can include hundreds of subject ids without\nbumping into per-server URL-length limits.\n\nVisibility, response shape, and matcher semantics are\nidentical to the GET list. With `subject_matcher_values`\nempty (or omitted) this returns the same result as GET\nwith only `policy_type` set.","tags":["gateway-policies"],"summary":"Search gateway policies by subject value set","parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/gateway_policies.GatewayPolicyRecord"}}}}},"400":{"description":"validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"403":{"description":"LLM Gateway not enabled, or caller lacks OrganizationRead","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.SearchGatewayPoliciesRequest"}}}}}},"\/v1\/platform\/gateway-policies\/{id}":{"get":{"security":[{"API Key":[]},{"Bearer Auth":[]}],"description":"Returns a single gateway policy by id. Cross-org access is\nrejected with 404\n\n**Spend tracking:** spend-cap policies include\n`current_spend_usd` for the active window so callers can\nread per-policy cost without hitting a separate endpoint.\nGuard policies leave it null.","tags":["gateway-policies"],"summary":"Get a gateway policy","parameters":[{"description":"Policy ID","name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.GatewayPolicyRecord"}}}},"400":{"description":"validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"403":{"description":"LLM Gateway not enabled, or caller lacks OrganizationRead","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"404":{"description":"policy not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Bearer Auth":[]}],"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":["gateway-policies"],"summary":"Delete a gateway policy","parameters":[{"description":"Policy ID","name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"403":{"description":"LLM Gateway not enabled, or caller lacks OrganizationManage","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"404":{"description":"policy not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Bearer Auth":[]}],"description":"Partially updates a gateway policy. Only fields present in\nthe request body are applied; absent fields are left\nunchanged. `policy_type` is immutable \u2014 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\": <number>, \"timeout_action\": \"allow\"|\"block\"}`\n- rate-limit: `{\"version\": 1, \"limits\": [{\"metric\": \"requests\"|\"tokens\", \"window\": \"minute\"|\"hour\", \"value\": <integer>}]}`\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\/gateway_policies.GatewayPolicyRecord"}}}},"400":{"description":"validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"403":{"description":"LLM Gateway not enabled, or caller lacks OrganizationManage","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"404":{"description":"policy not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"409":{"description":"matcher edit collides with another policy in the same family","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.errorResponse"}}}}},"x-codeSamples":[{"label":"spend_cap","lang":"json","source":"{\n  \"config\": {\"window\": \"monthly\", \"limit_usd\": 200},\n  \"enabled\": false\n}"},{"label":"guard","lang":"json","source":"{\n  \"config\": {\"version\": 1, \"detect\": {\"pii\": true, \"secrets\": true}, \"timeout_seconds\": 5},\n  \"enabled\": true\n}"},{"label":"rate_limit","lang":"json","source":"{\n  \"config\": {\"version\": 1, \"limits\": [{\"metric\": \"requests\", \"window\": \"minute\", \"value\": 100}]},\n  \"enabled\": true\n}"}],"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/gateway_policies.UpdateGatewayPolicyRequest"}}}}}},"\/v1\/platform\/hub\/repos\/{owner}\/{repo}\/directories":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.","tags":["directories"],"summary":"Get directory contents","parameters":[{"description":"Repository owner handle or '-' for current tenant","name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"description":"Repository handle","name":"repo","in":"path","required":true,"schema":{"type":"string"}},{"description":"Commit hash\/tag to resolve (defaults to latest)","name":"commit","in":"query","schema":{"type":"string","title":"Commit"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/directories.GetDirectoryResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Deletes an agent or skill repository and its owned child file repositories.","tags":["directories"],"summary":"Delete directory repository","parameters":[{"description":"Repository owner handle or '-' for current tenant","name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"description":"Repository handle","name":"repo","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true}},"\/v1\/platform\/hub\/repos\/{owner}\/{repo}\/directories\/commits":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Creates a new directory commit for an agent or skill repository by applying file\/link create, update, and delete operations.","tags":["directories"],"summary":"Create directory commit","parameters":[{"description":"Repository owner handle or '-' for current tenant","name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"description":"Repository handle","name":"repo","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/directories.CommitResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"409":{"description":"Conflict","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/directories.CreateDirectoryCommitRequest"}}}}}},"\/v1\/platform\/issues":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nReturns issues for the authenticated tenant, optionally filtered\nby session, status, severity, tag, or last modified time.","tags":["issues"],"summary":"[Beta] List issues","parameters":[{"description":"Filter by session ID (UUID)","name":"session_id","in":"query","schema":{"type":"string","title":"Session Id"}},{"description":"Filter by session name (exact match)","name":"session_name","in":"query","schema":{"type":"string","title":"Session Name"}},{"description":"Filter by status","name":"status","in":"query","schema":{"enum":["open","completed","ignored"],"type":"string","title":"Status"}},{"description":"Filter by severity","name":"severity","in":"query","schema":{"enum":[0,1,2,3],"type":"integer","title":"Severity"}},{"description":"Filter by tag (exact match)","name":"tag","in":"query","schema":{"type":"string","title":"Tag"}},{"description":"Return only issues updated at or after this RFC3339 timestamp","name":"updated_at","in":"query","schema":{"type":"string","title":"Updated At"}},{"description":"Sort field","name":"sort_by","in":"query","schema":{"enum":["created_at","updated_at","severity"],"type":"string","title":"Sort By"}},{"description":"Page size (positive integer; 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":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/tracer_session_issues.Issue"}}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/issues-agent":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nReturns every issues agent config configured for the authenticated tenant.","tags":["issues-agent"],"summary":"[Beta] List issues agent configs","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.IssuesAgent"}}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}}},"x-public":true,"parameters":[]}},"\/v1\/platform\/issues\/{id}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nReturns one issue for the authenticated tenant.","tags":["issues"],"summary":"[Beta] Get issue","parameters":[{"description":"Issue ID (UUID)","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.Issue"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/issues\/{id}\/fix-verdict":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Records whether a fix resolved the issue when replayed against its preview deployment.","tags":["issues"],"summary":"Record a fix-verification verdict","parameters":[{"description":"Issue ID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.FixVerification"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.RecordFixVerdictRequest"}}}}}},"\/v1\/platform\/issues\/{id}\/start-preview":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Opens\/reuses the fix PR, applies the preview label, and schedules the poll that resumes the fix run when the preview is up.","tags":["issues"],"summary":"Start preview-deploy verification for a fix","parameters":[{"description":"Issue ID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.StartPreviewResponse"}}}},"400":{"description":"Bad Request","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"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.StartPreviewRequest"}}}}}},"\/v1\/platform\/issues\/{id}\/views":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** Records that the current user opened this issue.\nIdempotent. Drives the Engine tab unread-issues badge.","tags":["issues"],"summary":"[Beta] Mark issue viewed","parameters":[{"description":"Issue ID (UUID)","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/mcp-vendors":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the catalog of available MCP vendors.","tags":["mcp_vendors"],"summary":"List MCP vendors","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ListMcpVendorsResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true,"parameters":[]}},"\/v1\/platform\/mcp-vendors\/{vendor_slug}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns vendor metadata and current settings.","tags":["mcp_vendors"],"summary":"Get MCP vendor","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.GetMcpVendorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/mcp-vendors\/{vendor_slug}\/account":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Resolves OAuth token and returns the vendor's account info.","tags":["mcp_vendors"],"summary":"Get vendor account","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeAccountResponseList"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/mcp-vendors\/{vendor_slug}\/mcp-servers":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the MCP gateways from the vendor for the workspace's configured org\/project.","tags":["mcp_vendors"],"summary":"List MCP servers for a vendor","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}},{"description":"Max items to return (default 100)","name":"limit","in":"query","schema":{"type":"integer","title":"Limit"}},{"description":"Number of items to skip (default 0)","name":"offset","in":"query","schema":{"type":"integer","title":"Offset"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ListMcpGatewaysResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/mcp-vendors\/{vendor_slug}\/settings":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the current vendor-specific settings.","tags":["mcp_vendors"],"summary":"Get vendor settings","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeSettingsResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true},"put":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Replaces vendor settings.","tags":["mcp_vendors"],"summary":"Replace vendor settings","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeSettingsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeSettingsRequest"}}}}},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Initializes vendor settings.","tags":["mcp_vendors"],"summary":"Create vendor settings","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeSettingsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeSettingsRequest"}}}}},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Removes vendor settings.","tags":["mcp_vendors"],"summary":"Delete vendor settings","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeSettingsResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/mcp-vendors\/{vendor_slug}\/tools":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns the tool catalog for this vendor.","tags":["mcp_vendors"],"summary":"List tools for a vendor","parameters":[{"description":"Vendor slug (e.g. arcade)","name":"vendor_slug","in":"path","required":true,"schema":{"type":"string"}},{"description":"Max tools to return (default 50)","name":"limit","in":"query","schema":{"type":"integer","title":"Limit"}},{"description":"Number of tools to skip (default 0)","name":"offset","in":"query","schema":{"type":"integer","title":"Offset"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ListVendorToolsResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/mcp_vendors.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/ops\/backfills\/restart":{"post":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Deletes the backfill job record, causing the backfill to restart from the beginning on the next cron tick. Requires instance admin access.","tags":["backfills"],"summary":"Restart a backfill job","parameters":[],"responses":{"200":{"description":"Backfill restarted","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"400":{"description":"Bad request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Backfill not found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/backfills.restartBackfillRequest"}}}}}},"\/v1\/platform\/orgs\/current\/access-policies":{"get":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Lists all access policies for the organization.","tags":["access_policies"],"summary":"List access policies","responses":{"200":{"description":"List of access policies","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/authz_internal.ListAccessPoliciesResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}}},"x-public":true,"parameters":[]},"post":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Creates a new access policy.","tags":["access_policies"],"summary":"Create an access policy","parameters":[],"responses":{"201":{"description":"Access policy created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/authz_internal.AccessPolicyCreateResponse"}}}},"400":{"description":"Bad request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"404":{"description":"Role not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/authz_internal.CreateAccessPolicyPayload"}}}}}},"\/v1\/platform\/orgs\/current\/access-policies\/roles\/{role_id}\/access-policies":{"post":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Attaches one or more access policies to a specific role. The request body must contain an array of access policy IDs.","tags":["access_policies"],"summary":"Attach access policies to a role","parameters":[{"description":"Role ID","name":"role_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Access policies attached successfully"},"400":{"description":"Bad request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"404":{"description":"Role not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/authz_internal.AttachAccessPoliciesPayload"}}}}}},"\/v1\/platform\/orgs\/current\/access-policies\/{access_policy_id}":{"get":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Gets a specific access policy by ID.","tags":["access_policies"],"summary":"Get an access policy","parameters":[{"description":"Access Policy ID","name":"access_policy_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Access policy details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/authz_internal.AccessPolicy"}}}},"400":{"description":"Bad request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"404":{"description":"Access policy not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Deletes a specific access policy by ID.","tags":["access_policies"],"summary":"Delete an access policy","parameters":[{"description":"Access Policy ID","name":"access_policy_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Access policy deleted successfully"},"400":{"description":"Bad request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/abac.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/orgs\/current\/info":{"get":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Returns organization info for the authenticated user's current organization.","tags":["Organizations"],"summary":"Get current organization info","responses":{"200":{"description":"Organization info","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/orgs.OrganizationInfo"}}}},"400":{"description":"Invalid organization ID","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"parameters":[]}},"\/v1\/platform\/orgs\/current\/members":{"get":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Returns a paginated list of org members (active and pending) enriched with workspace memberships.","tags":["orgs"],"summary":"List org members with workspace roles","parameters":[{"description":"Page size (default 50, max 500)","name":"limit","in":"query","schema":{"type":"integer","title":"Limit"}},{"description":"Page offset (default 0)","name":"offset","in":"query","schema":{"type":"integer","title":"Offset"}},{"description":"Filter: true = only active members; false = only pending members","name":"active_is","in":"query","schema":{"type":"boolean","title":"Active Is"}},{"description":"Filter: true = only pending members; false = only active members","name":"pending_is","in":"query","schema":{"type":"boolean","title":"Pending Is"}},{"description":"Glob filter on display name; use * as wildcard (repeatable, matches any)","name":"name_like","in":"query","style":"form","explode":true,"schema":{"items":{"type":"string"},"type":"array","title":"Name Like"}},{"description":"Glob filter on email; use * as wildcard (repeatable, matches any)","name":"email_like","in":"query","style":"form","explode":true,"schema":{"items":{"type":"string"},"type":"array","title":"Email Like"}},{"description":"Glob filter on workspace name or ID; use * as wildcard (repeatable, matches any)","name":"workspace_name_like","in":"query","style":"form","explode":true,"schema":{"items":{"type":"string"},"type":"array","title":"Workspace Name Like"}},{"description":"Glob filter on organization role name; use * as wildcard (repeatable, matches any)","name":"organization_role_like","in":"query","style":"form","explode":true,"schema":{"items":{"type":"string"},"type":"array","title":"Organization Role Like"}},{"description":"Glob filter on workspace role name; use * as wildcard (repeatable, matches any)","name":"workspace_role_like","in":"query","style":"form","explode":true,"schema":{"items":{"type":"string"},"type":"array","title":"Workspace Role Like"}}],"responses":{"200":{"description":"Org members","headers":{"X-Members-Anonymity-Restricted":{"description":"Set to 'true' when the response was restricted by the organization's anonymity setting.","schema":{"type":"string"}},"X-Members-List-All-Workspaces":{"description":"true if caller has organization:manage","schema":{"type":"string"}},"X-Pagination-Total":{"description":"Total number of matching members","schema":{"type":"string"}}},"content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/orgs.OrgMemberEnriched"}}}}},"400":{"description":"Bad request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true}},"\/v1\/platform\/orgs\/current\/scim\/tokens":{"get":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"List all SCIM bearer tokens for the current organization. The full token values are not returned.","tags":["SCIM Tokens"],"summary":"List SCIM tokens","responses":{"200":{"description":"List of SCIM tokens","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/scim.ScimTokenResponse"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"403":{"description":"Forbidden - requires OrganizationRead permission","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}}},"x-public":true,"parameters":[]},"post":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Create a new SCIM bearer token for the current organization. The full token value is only returned once upon creation.","tags":["SCIM Tokens"],"summary":"Create a SCIM token","parameters":[],"responses":{"201":{"description":"Created SCIM token with full token value","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ScimTokenSensitiveResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"403":{"description":"Forbidden - requires OrganizationManage permission","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.CreateScimTokenPayload"}}}}}},"\/v1\/platform\/orgs\/current\/scim\/tokens\/{scim_token_id}":{"get":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Retrieve a specific SCIM token by ID for the current organization. The full token value is not returned.","tags":["SCIM Tokens"],"summary":"Get a SCIM token","parameters":[{"description":"SCIM Token ID","name":"scim_token_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SCIM token details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ScimTokenResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"403":{"description":"Forbidden - requires OrganizationRead permission","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"404":{"description":"Token not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Delete a SCIM bearer token from the current organization.","tags":["SCIM Tokens"],"summary":"Delete a SCIM token","parameters":[{"description":"SCIM Token ID","name":"scim_token_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content - token deleted successfully"},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"403":{"description":"Forbidden - requires OrganizationManage permission","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"404":{"description":"Token not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Organization ID":[]},{"Bearer Auth":[]}],"description":"Update the description of an existing SCIM token for the current organization.","tags":["SCIM Tokens"],"summary":"Update a SCIM token","parameters":[{"description":"SCIM Token ID","name":"scim_token_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated SCIM token details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ScimTokenResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"403":{"description":"Forbidden - requires OrganizationManage permission","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"404":{"description":"Token not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/scim.UpdateScimTokenPayload"}}}}}},"\/v1\/platform\/sessions\/{sessionID}\/agent-versions":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns all agent versions (commit SHAs) seen in the given tracing project, ordered by first_seen_at descending.","tags":["sessions"],"summary":"List agent versions for a project","parameters":[{"description":"Tracing project (session) UUID","name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent versions","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/tracer_sessions.AgentVersionResponse"}}}}},"400":{"description":"Invalid session ID","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true}},"\/v1\/platform\/sessions\/{session_id}\/issues-agent":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nReturns the issues agent config attached to the given tracer session.","tags":["issues-agent"],"summary":"[Beta] Get the issues agent config for a session","parameters":[{"description":"Tracer session ID (UUID)","name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.IssuesAgent"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nConfigures the issues agent for the given tracer session and enqueues\nthe initial scan. Fails if an agent already exists for the session.","tags":["issues-agent"],"summary":"[Beta] Create the issues agent for a session","parameters":[{"description":"Tracer session ID (UUID)","name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.IssuesAgent"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.CreateIssuesAgentRequest"}}}}},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nRemoves the agent config, its issues, and the agent-overview hub repo.","tags":["issues-agent"],"summary":"[Beta] Delete the issues agent for a session","parameters":[{"description":"Tracer session ID (UUID)","name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nPatches the agent config. All side effects (clearing fix fields when\nthe GitHub repo changes, setting agent_overview_repo_id) happen in a\nsingle CRUD transaction. Omitted fields are left unchanged.","tags":["issues-agent"],"summary":"[Beta] Update the issues agent config for a session","parameters":[{"description":"Tracer session ID (UUID)","name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.IssuesAgent"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.UpdateIssuesAgentRequest"}}}}}},"\/v1\/platform\/sessions\/{session_id}\/issues-agent\/overview":{"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** This endpoint is in active development and may change without notice.\n\nSaves the issues agent overview content server-side, creating or updating\nthe backing private Prompt Hub repo and linking it to the issues agent config.","tags":["issues-agent"],"summary":"[Beta] Save the agent overview for a session","parameters":[{"description":"Tracer session ID (UUID)","name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.SaveOverviewResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent.SaveOverviewRequest"}}}}}},"\/v1\/platform\/sessions\/{session_id}\/issues-agent\/webhooks\/{id}\/roll-secret":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Replaces the signing secret for the given issues agent webhook and returns the\nupdated webhook. Future deliveries are signed with the new secret immediately.","tags":["issues-agent"],"summary":"Roll an issues agent webhook signing secret","parameters":[{"description":"Tracer session ID (UUID)","name":"session_id","in":"path","required":true,"schema":{"type":"string"}},{"description":"Webhook ID (UUID)","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues_agent_webhooks.IssuesAgentWebhook"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true}},"\/v1\/platform\/sessions\/{session_id}\/issues\/views":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"**Beta:** Returns the issues in this session that the current\nuser has opened, with timestamps. Used by the UI to derive\nthe per-row \"unread\" indicator and the Engine tab badge.","tags":["issues"],"summary":"[Beta] List viewed issues for a session","parameters":[{"description":"Session ID (UUID)","name":"session_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ListViewsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tracer_session_issues.ErrorResponse"}}}}},"x-public":true}},"\/v1\/platform\/tools":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns a paginated list of tools in the workspace.","tags":["tools"],"summary":"List tools","parameters":[{"description":"Maximum number of tools to return","name":"limit","in":"query","schema":{"type":"integer","title":"Limit"}},{"description":"Number of tools to skip","name":"offset","in":"query","schema":{"type":"integer","title":"Offset"}},{"description":"Search query to filter tools by name or description","name":"query","in":"query","schema":{"type":"string","title":"Query"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ListToolsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Creates a new tool in the workspace.","tags":["tools"],"summary":"Create a tool","parameters":[],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.Tool"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.CreateToolPayload"}}}}}},"\/v1\/platform\/tools\/id\/{id}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns a tool identified by its UUID.","tags":["tools"],"summary":"Get a tool by ID","parameters":[{"description":"Tool UUID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.Tool"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Deletes a tool identified by its UUID.","tags":["tools"],"summary":"Delete a tool by ID","parameters":[{"description":"Tool UUID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Updates an existing tool identified by its UUID.","tags":["tools"],"summary":"Update a tool by ID","parameters":[{"description":"Tool UUID","name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.Tool"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.UpdateToolPayload"}}}}}},"\/v1\/platform\/tools\/{handle}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Returns a tool identified by its handle.","tags":["tools"],"summary":"Get a tool by handle","parameters":[{"description":"Tool handle","name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.Tool"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Deletes a tool identified by its handle.","tags":["tools"],"summary":"Delete a tool by handle","parameters":[{"description":"Tool handle","name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Updates an existing tool identified by its handle.","tags":["tools"],"summary":"Update a tool by handle","parameters":[{"description":"Tool handle","name":"handle","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.Tool"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/tools.UpdateToolPayload"}}}}}},"\/v2\/datasets\/public\/{share_token}\/experiment-runs":{"post":{"description":"Public share-token variant of POST \/v2\/datasets\/{dataset_id}\/experiment-runs.\nReturns a paginated page of dataset examples with runs from the requested experiments.","tags":["datasets"],"summary":"Fetch shared experiment runs for dataset examples","parameters":[{"description":"Dataset share token","name":"share_token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/datasets.V2DatasetsExperimentRunsResponseBody"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"Unprocessable Entity","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/datasets.V2DatasetsExperimentRunsRequestBody"}}}}}},"\/v2\/datasets\/{dataset_id}\/experiment-runs":{"post":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"Tenant ID":[]}],"description":"Returns a paginated page of dataset examples with runs from the requested experiments.\nResponse uses the canonical `{items, next_cursor}` envelope.","tags":["datasets"],"summary":"Fetch experiment runs for dataset examples","parameters":[{"description":"Dataset ID","name":"dataset_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/datasets.V2DatasetsExperimentRunsResponseBody"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"Unprocessable Entity","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"502":{"description":"Bad Gateway","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/datasets.V2DatasetsExperimentRunsRequestBody"}}}}}},"\/v2\/public\/{share_token}\/run\/{run_id}":{"get":{"description":"**Alpha:** The request and response contract may change;\nReturns 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.","tags":["runs"],"summary":"Get a public shared trace run","parameters":[{"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":{"items":{"type":"string"},"type":"array","title":"Selects"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/query.RunResponse"}}}},"400":{"description":"bad request (missing or malformed start_time)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"share token or run not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"501":{"description":"no V2 backend configured and no V1 proxy fallback","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"503":{"description":"service unavailable","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}},"\/v2\/public\/{share_token}\/runs\/v2\/query":{"post":{"description":"**Alpha:** The request and response contract may change;\nReturns all runs within the trace identified by the share token. The share token supplies the tenant, project, and trace scope.","tags":["runs"],"summary":"Query public shared trace runs","parameters":[{"description":"application\/json","name":"Accept","in":"header","schema":{"type":"string"}},{"description":"application\/json","name":"Content-Type","in":"header","schema":{"type":"string"}},{"description":"Share token UUID","name":"share_token","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/query.QueryTraceResponseBody"}}}},"400":{"description":"bad request (malformed JSON or invalid parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"share token or shared trace not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"501":{"description":"no V2 backend configured and no V1 proxy fallback","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"503":{"description":"service unavailable","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.PublicSharedTraceRunsRequestBody"}}}}}},"\/v2\/runs\/query":{"post":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"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.","tags":["runs"],"summary":"Query runs","parameters":[{"description":"application\/json","name":"Accept","in":"header","schema":{"type":"string"}},{"description":"application\/json (required for JSON body)","name":"Content-Type","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/query.QueryRunsResponseBody"}}}},"400":{"description":"bad request (malformed JSON or invalid parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden (insufficient permission)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"session not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"unprocessable entity (e.g. invalid UUID)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/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"}}}}}},"\/v2\/runs\/{run_id}":{"get":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"Tenant ID":[]}],"description":"**Alpha:** The request and response contract may change;\nReturns one run by ID for the given session. Use the `selects` query parameter (repeatable) to select fields to return.","tags":["runs"],"summary":"Get a single run","parameters":[{"description":"application\/json","name":"Accept","in":"header","schema":{"type":"string"}},{"description":"Run UUID","name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"description":"`project_id` is the UUID of the tracing project that owns the run.","name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"description":"`selects` lists which properties to include on the returned run (repeatable query parameter). Accepts any value of the `RunSelectField` enum. If omitted, only `id` is returned.","name":"selects","in":"query","style":"form","explode":true,"schema":{"items":{"enum":["ID","NAME","RUN_TYPE","STATUS","START_TIME","END_TIME","LATENCY_SECONDS","FIRST_TOKEN_TIME","ERROR","ERROR_PREVIEW","EXTRA","METADATA","EVENTS","INPUTS","INPUTS_PREVIEW","OUTPUTS","OUTPUTS_PREVIEW","MANIFEST","PARENT_RUN_IDS","PROJECT_ID","TRACE_ID","THREAD_ID","DOTTED_ORDER","IS_ROOT","REFERENCE_EXAMPLE_ID","REFERENCE_DATASET_ID","TOTAL_TOKENS","PROMPT_TOKENS","COMPLETION_TOKENS","TOTAL_COST","PROMPT_COST","COMPLETION_COST","PROMPT_TOKEN_DETAILS","COMPLETION_TOKEN_DETAILS","PROMPT_COST_DETAILS","COMPLETION_COST_DETAILS","PRICE_MODEL_ID","TAGS","APP_PATH","ATTACHMENTS","THREAD_EVALUATION_TIME","IS_IN_DATASET","LAST_QUEUED_AT","SHARE_URL","FEEDBACK_STATS"],"type":"string"},"type":"array","title":"Selects"}},{"description":"`start_time` is the run's `start_time` (RFC3339 date-time). Providing it speeds up retrieval.","name":"start_time","in":"query","schema":{"type":"string","format":"date-time","title":"Start Time"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/query.RunResponse"}}}},"400":{"description":"bad request (missing or invalid query parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden (insufficient permission)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"run or session not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"unprocessable entity (e.g. invalid UUID)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/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}},"\/v2\/runs\/{run_id}\/share":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Creates or returns a share token for a run. Child runs share their trace root.","tags":["runs"],"summary":"Share a run","parameters":[{"description":"Run UUID","name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/share.CreateShareTokenResponseBody"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"413":{"description":"Request Entity Too Large","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/share.CreateShareTokenRequestBody"}}}}}},"\/v2\/runs\/{run_id}\/url":{"get":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"Tenant ID":[]}],"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.","tags":["runs"],"summary":"Get the LangSmith UI URL for a run","parameters":[{"description":"Run UUID","name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"description":"Project (session) UUID","name":"project_id","in":"query","required":true,"schema":{"type":"string","title":"Project Id"}},{"description":"Trace UUID","name":"trace_id","in":"query","required":true,"schema":{"type":"string","title":"Trace Id"}},{"description":"Run start time in RFC3339 format; omit if unknown","name":"start_time","in":"query","schema":{"type":"string","title":"Start Time"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/query.RunURLResponse"}}}},"400":{"description":"missing or invalid query parameters","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"project not found or does not belong to this workspace","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}}},"x-public":true}},"\/v2\/runs\/{trace_id}\/share":{"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"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.","tags":["runs"],"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\/shared.ProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"413":{"description":"Request Entity Too Large","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/share.DeleteShareTokenRequestBody"}}}}}},"\/v2\/sandboxes\/boxes":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"X-Service-Key":[]}],"description":"List sandboxes for the authenticated tenant, with optional filtering, sorting, and pagination.","tags":["sandboxes"],"summary":"List sandboxes","parameters":[{"description":"Maximum number of results","name":"limit","in":"query","schema":{"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":"Filter by creator identity. Only 'me' is supported.","name":"created_by","in":"query","schema":{"type":"string","title":"Created By"}},{"description":"Filter by label. Repeatable; all must match. Use 'key' to match on key presence or 'key=value' for equality.","name":"label","in":"query","style":"form","explode":true,"schema":{"items":{"type":"string"},"type":"array","title":"Label"}},{"description":"Sort column (name, status, created_at)","name":"sort_by","in":"query","schema":{"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"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SandboxListResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"X-Service-Key":[]}],"description":"Create a new sandbox from a snapshot. Provide at most one of `snapshot_id` or `snapshot_name`; if neither is provided, the server uses the default snapshot.","tags":["sandboxes"],"summary":"Create a sandbox","parameters":[],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SandboxResponse"}}}},"400":{"description":"Snapshot not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"409":{"description":"Name already exists","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"429":{"description":"Quota exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Sandbox creation failed or internal error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"504":{"description":"Sandbox did not become ready in time","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.CreateSandboxPayload"}}}}}},"\/v2\/sandboxes\/boxes\/batch-delete":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Delete multiple sandboxes by name or UUID in a single request.","tags":["sandboxes"],"summary":"Batch delete sandboxes","parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.BatchDeleteResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.BatchDeleteRequest"}}}}}},"\/v2\/sandboxes\/boxes\/{name}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"X-Service-Key":[]}],"description":"Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.","tags":["sandboxes"],"summary":"Get a sandbox","parameters":[{"description":"Sandbox display name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SandboxResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"X-Service-Key":[]}],"description":"Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the DB record.","tags":["sandboxes"],"summary":"Delete a sandbox","parameters":[{"description":"Sandbox display name or UUID","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content"},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"X-Service-Key":[]}],"description":"Update a sandbox's display name. The name must be unique within the tenant.","tags":["sandboxes"],"summary":"Update a sandbox","parameters":[{"description":"Current sandbox display name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SandboxResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"409":{"description":"Name already exists","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"422":{"description":"Validation error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.UpdateSandboxPayload"}}}}}},"\/v2\/sandboxes\/boxes\/{name}\/service-url":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Create a short-lived JWT for accessing an HTTP service running on a specific port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw token, and its expiry.","tags":["sandboxes"],"summary":"Generate a service access token","parameters":[{"description":"Sandbox display name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ServiceURLResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"501":{"description":"Not Implemented","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ServiceURLPayload"}}}}}},"\/v2\/sandboxes\/boxes\/{name}\/snapshot":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Create a snapshot by capturing the current state of a sandbox or promoting an existing checkpoint.","tags":["sandboxes"],"summary":"Capture a snapshot from a sandbox","parameters":[{"description":"Sandbox display name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SnapshotResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.CaptureSnapshotPayload"}}}}}},"\/v2\/sandboxes\/boxes\/{name}\/start":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Start a stopped or failed sandbox. This endpoint is not idempotent.","tags":["sandboxes"],"summary":"Start a sandbox","parameters":[{"description":"Sandbox display name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SandboxResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/v2\/sandboxes\/boxes\/{name}\/status":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"X-Service-Key":[]}],"description":"Retrieve the lightweight status of a sandbox for polling.","tags":["sandboxes"],"summary":"Get sandbox status","parameters":[{"description":"Sandbox display name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SandboxStatusResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/v2\/sandboxes\/boxes\/{name}\/stop":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Stop a ready sandbox. This endpoint is not idempotent; the filesystem is preserved for later restart.","tags":["sandboxes"],"summary":"Stop a sandbox","parameters":[{"description":"Sandbox display name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Sandbox stopped"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/v2\/sandboxes\/registries":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"List sandbox registries for pulling private images.","tags":["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"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.RegistryListResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Create a sandbox registry for pulling private images.","tags":["sandboxes"],"summary":"Create a registry","parameters":[],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.RegistryResponse"}}}},"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"}}}},"409":{"description":"Conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.CreateRegistryPayload"}}}}}},"\/v2\/sandboxes\/registries\/{name}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Get a sandbox registry by name.","tags":["sandboxes"],"summary":"Get a registry","parameters":[{"description":"Registry name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.RegistryResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Delete a sandbox registry by name.","tags":["sandboxes"],"summary":"Delete a registry","parameters":[{"description":"Registry name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"patch":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Update a sandbox registry's name and\/or credentials.","tags":["sandboxes"],"summary":"Update a registry","parameters":[{"description":"Registry name","name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.RegistryResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.UpdateRegistryPayload"}}}}}},"\/v2\/sandboxes\/snapshots":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"List sandbox snapshots for the authenticated tenant, with optional filtering, sorting, and pagination.","tags":["sandboxes"],"summary":"List snapshots","parameters":[{"description":"Maximum number of results","name":"limit","in":"query","schema":{"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":"Filter by creator identity. Only 'me' is supported.","name":"created_by","in":"query","schema":{"type":"string","title":"Created By"}},{"description":"Filter by label. Repeatable; all must match. Use 'key' to match on key presence or 'key=value' for equality.","name":"label","in":"query","style":"form","explode":true,"schema":{"items":{"type":"string"},"type":"array","title":"Label"}},{"description":"Sort column (name, status, created_at)","name":"sort_by","in":"query","schema":{"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"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SnapshotListResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Create a snapshot from a Docker image (async build).","tags":["sandboxes"],"summary":"Create a snapshot","parameters":[],"responses":{"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SnapshotResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.CreateSnapshotPayload"}}}}}},"\/v2\/sandboxes\/snapshots\/{snapshot_id}":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Get a sandbox snapshot by ID.","tags":["sandboxes"],"summary":"Get a snapshot","parameters":[{"description":"Snapshot UUID","name":"snapshot_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.SnapshotResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true},"delete":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Delete a snapshot by ID. The underlying storage is reclaimed asynchronously.","tags":["sandboxes"],"summary":"Delete a snapshot","parameters":[{"description":"Snapshot UUID","name":"snapshot_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Snapshot deleted"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/v2\/sandboxes\/usage":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]},{"X-Service-Key":[]}],"description":"Get current sandbox resource usage and quota limits for the workspace","tags":["sandboxes"],"summary":"Get sandbox resource usage","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.UsageResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"parameters":[]}},"\/v2\/sandboxes\/{sandbox_id}\/download":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Download file contents from a sandbox filesystem path.","tags":["sandboxes"],"summary":"Download a sandbox file","parameters":[{"description":"Sandbox ID or name","name":"sandbox_id","in":"path","required":true,"schema":{"type":"string"}},{"description":"File path to download","name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"File content"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/v2\/sandboxes\/{sandbox_id}\/execute":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Execute a command inside a sandbox and return stdout, stderr, and exit code.","tags":["sandboxes"],"summary":"Execute a sandbox command","parameters":[{"description":"Sandbox ID or name","name":"sandbox_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ExecResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ExecRequest"}}}}}},"\/v2\/sandboxes\/{sandbox_id}\/execute\/ws":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Open a WebSocket connection for streaming command execution inside a sandbox.","tags":["sandboxes"],"summary":"Execute a sandbox command over WebSocket","parameters":[{"description":"Sandbox ID or name","name":"sandbox_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"101":{"description":"WebSocket upgrade"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/v2\/sandboxes\/{sandbox_id}\/glob":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Find files under a root path matching a glob pattern (supports **). Entries are returned in lexical order by path.","tags":["sandboxes"],"summary":"Glob a sandbox filesystem","parameters":[{"description":"Sandbox ID or name","name":"sandbox_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.GlobResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.GlobRequest"}}}}}},"\/v2\/sandboxes\/{sandbox_id}\/grep":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Search files under a root path for a literal text pattern (not a regex).","tags":["sandboxes"],"summary":"Grep a sandbox filesystem","parameters":[{"description":"Sandbox ID or name","name":"sandbox_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.GrepResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.GrepRequest"}}}}}},"\/v2\/sandboxes\/{sandbox_id}\/tunnel":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Open a WebSocket tunnel to a specific port inside a sandbox.","tags":["sandboxes"],"summary":"Open a sandbox TCP tunnel","parameters":[{"description":"Sandbox ID or name","name":"sandbox_id","in":"path","required":true,"schema":{"type":"string"}},{"description":"Target sandbox TCP port","name":"X-Sandbox-Port","in":"header","schema":{"type":"integer"}}],"responses":{"101":{"description":"WebSocket upgrade"},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"x-public":true}},"\/v2\/sandboxes\/{sandbox_id}\/upload":{"post":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Upload a file to a sandbox filesystem path.","tags":["sandboxes"],"summary":"Upload a sandbox file","parameters":[{"description":"Sandbox ID or name","name":"sandbox_id","in":"path","required":true,"schema":{"type":"string"}},{"description":"Destination file path","name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.UploadResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/sandboxes.ErrorResponse"}}}}},"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"]}}}}}},"\/v2\/threads\/query":{"post":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"Tenant ID":[]}],"description":"**Alpha:** The request and response contract may change;\nQuery threads within a project (session), with cursor-based pagination.\nReturns threads matching the given time range and optional filter.","tags":["threads"],"summary":"Query Threads","parameters":[],"responses":{"200":{"description":"items and pagination","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/threads.QueryThreadsResponseBody"}}}},"400":{"description":"bad request (malformed JSON or invalid parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden (insufficient permission)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"session not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"unprocessable entity (e.g. invalid project UUID)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"503":{"description":"service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/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\/threads.QueryThreadsRequestBody"}}}}}},"\/v2\/threads\/{thread_id}\/stats":{"get":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"Tenant ID":[]}],"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.","tags":["threads"],"summary":"Query Single Thread Stats","parameters":[{"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":{"items":{"enum":["TURNS","FIRST_START_TIME","LAST_START_TIME","LAST_END_TIME","LATENCY_P50","LATENCY_P99","PROMPT_TOKENS","PROMPT_COST","COMPLETION_TOKENS","COMPLETION_COST","TOTAL_TOKENS","TOTAL_COST","PROMPT_TOKEN_DETAILS","COMPLETION_TOKEN_DETAILS","PROMPT_COST_DETAILS","COMPLETION_COST_DETAILS","FEEDBACK_STATS"],"type":"string"},"type":"array","title":"Selects"}},{"description":"`session_id` is the tracing project (session) UUID (required).","name":"session_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"aggregate stats for the thread","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/threads.QuerySingleThreadStatsResponseBody"}}}},"400":{"description":"bad request (missing or invalid query parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden (insufficient permission)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"session not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"unprocessable entity (e.g. invalid project UUID)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"503":{"description":"service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"504":{"description":"gateway timeout or deadline exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}}},"x-public":true}},"\/v2\/threads\/{thread_id}\/traces":{"get":{"security":[{"API Key":[],"Tenant ID":[]},{"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":{"type":"integer","default":20,"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":{"items":{"enum":["THREAD_ID","TRACE_ID","OP","PROMPT_TOKENS","COMPLETION_TOKENS","TOTAL_TOKENS","START_TIME","END_TIME","LATENCY","FIRST_TOKEN_TIME","INPUTS_PREVIEW","OUTPUTS_PREVIEW","INPUTS","OUTPUTS","ERROR","PROMPT_COST","COMPLETION_COST","TOTAL_COST","PROMPT_TOKEN_DETAILS","COMPLETION_TOKEN_DETAILS","PROMPT_COST_DETAILS","COMPLETION_COST_DETAILS","NAME","ERROR_PREVIEW"],"type":"string"},"type":"array","title":"Selects"}}],"responses":{"200":{"description":"items and pagination","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/threads.QueryThreadTracesResponseBody"}}}},"400":{"description":"bad request (missing or invalid query parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden (insufficient permission)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"session not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"unprocessable entity (e.g. invalid project UUID)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"503":{"description":"service unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"504":{"description":"gateway timeout or deadline exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}}},"x-public":true}},"\/v2\/traces\/query":{"post":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"Tenant ID":[]}],"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`).","tags":["runs"],"summary":"Query traces","parameters":[{"description":"application\/json (required for JSON body)","name":"Content-Type","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/query.QueryTracesResponseBody"}}}},"400":{"description":"bad request (malformed JSON or invalid parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden (insufficient permission)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"session not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"unprocessable entity (e.g. invalid UUID)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/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.QueryTracesRequestBody"}}}}}},"\/v2\/traces\/{trace_id}\/runs":{"get":{"security":[{"API Key":[],"Tenant ID":[]},{"Bearer Auth":[],"Tenant ID":[]}],"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.","tags":["runs"],"summary":"List runs in a trace","parameters":[{"description":"application\/json","name":"Accept","in":"header","schema":{"type":"string"}},{"description":"Trace UUID","name":"trace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"description":"`filter` narrows which runs within this trace are returned, using a LangSmith filter expression evaluated against each run. For example: `eq(run_type, \"llm\")` for LLM runs only, or `eq(status, \"error\")` for failed runs.\nSee https:\/\/docs.langchain.com\/langsmith\/trace-query-syntax#filter-query-language for syntax.","name":"filter","in":"query","schema":{"type":"string","title":"Filter"}},{"description":"`max_start_time` is the optional inclusive upper bound for run `start_time` (RFC3339 date-time). Required together with `min_start_time`.","name":"max_start_time","in":"query","schema":{"type":"string","format":"date-time","title":"Max Start Time"}},{"description":"`min_start_time` is the optional inclusive lower bound for run `start_time` (RFC3339 date-time). Required together with `max_start_time`.","name":"min_start_time","in":"query","schema":{"type":"string","format":"date-time","title":"Min Start Time"}},{"description":"`project_id` is the UUID of the tracing project that owns the trace.","name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"description":"`selects` lists which properties to include on each returned run (repeatable query parameter). Accepts any value of the `RunSelectField` enum. If omitted, only `id` is returned.","name":"selects","in":"query","style":"form","explode":true,"schema":{"items":{"enum":["ID","NAME","RUN_TYPE","STATUS","START_TIME","END_TIME","LATENCY_SECONDS","FIRST_TOKEN_TIME","ERROR","ERROR_PREVIEW","EXTRA","METADATA","EVENTS","INPUTS","INPUTS_PREVIEW","OUTPUTS","OUTPUTS_PREVIEW","MANIFEST","PARENT_RUN_IDS","PROJECT_ID","TRACE_ID","THREAD_ID","DOTTED_ORDER","IS_ROOT","REFERENCE_EXAMPLE_ID","REFERENCE_DATASET_ID","TOTAL_TOKENS","PROMPT_TOKENS","COMPLETION_TOKENS","TOTAL_COST","PROMPT_COST","COMPLETION_COST","PROMPT_TOKEN_DETAILS","COMPLETION_TOKEN_DETAILS","PROMPT_COST_DETAILS","COMPLETION_COST_DETAILS","PRICE_MODEL_ID","TAGS","APP_PATH","ATTACHMENTS","THREAD_EVALUATION_TIME","IS_IN_DATASET","LAST_QUEUED_AT","SHARE_URL","FEEDBACK_STATS"],"type":"string"},"type":"array","title":"Selects"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/query.QueryTraceResponseBody"}}}},"400":{"description":"bad request (missing or invalid query parameters)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"401":{"description":"missing or invalid authentication","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"403":{"description":"forbidden (insufficient permission)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"404":{"description":"session not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"422":{"description":"unprocessable entity (e.g. invalid UUID)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/shared.ProblemDetails"}}}},"500":{"description":"internal server error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/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}},"\/workspaces\/current\/ttl-settings":{"get":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Get the longlived trace TTL settings for a workspace","tags":["TTL Settings"],"summary":"Get workspace TTL settings","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ttl_settings.TTLSettingsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"parameters":[]},"put":{"security":[{"API Key":[]},{"Tenant ID":[]},{"Bearer Auth":[]}],"description":"Update the longlived trace TTL for a workspace.","tags":["TTL Settings"],"summary":"Update workspace TTL settings","parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ttl_settings.TTLSettingsResponse"}}}},"400":{"description":"Bad Request","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Not Found","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"x-public":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ttl_settings.UpdateTTLSettingsRequest"}}}}}}},"components":{"schemas":{"AIMessage":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"ai","title":"Type","default":"ai"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"tool_calls":{"items":{"$ref":"#\/components\/schemas\/ToolCall"},"type":"array","title":"Tool Calls"},"invalid_tool_calls":{"items":{"$ref":"#\/components\/schemas\/InvalidToolCall"},"type":"array","title":"Invalid Tool Calls"},"usage_metadata":{"anyOf":[{"$ref":"#\/components\/schemas\/UsageMetadata"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["content"],"title":"AIMessage","description":"Message from an AI.\n\nAn `AIMessage` is returned from a chat model as a response to a prompt.\n\nThis message represents the output of the model and consists of both\nthe raw output as returned by the model and standardized fields\n(e.g., tool calls, usage metadata) added by the LangChain framework."},"AIMessageChunk":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"AIMessageChunk","title":"Type","default":"AIMessageChunk"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"tool_calls":{"items":{"$ref":"#\/components\/schemas\/ToolCall"},"type":"array","title":"Tool Calls"},"invalid_tool_calls":{"items":{"$ref":"#\/components\/schemas\/InvalidToolCall"},"type":"array","title":"Invalid Tool Calls"},"usage_metadata":{"anyOf":[{"$ref":"#\/components\/schemas\/UsageMetadata"},{"type":"null"}]},"tool_call_chunks":{"items":{"$ref":"#\/components\/schemas\/ToolCallChunk"},"type":"array","title":"Tool Call Chunks"},"chunk_position":{"anyOf":[{"type":"string","const":"last"},{"type":"null"}],"title":"Chunk Position"}},"additionalProperties":true,"type":"object","required":["content"],"title":"AIMessageChunk","description":"Message chunk from an AI (yielded when streaming)."},"APIFeedbackSource":{"properties":{"type":{"type":"string","const":"api","title":"Type","default":"api"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"APIFeedbackSource","description":"API feedback source."},"APIKeyCreateRequest":{"properties":{"description":{"type":"string","title":"Description","default":"Default API key"},"read_only":{"type":"boolean","title":"Read Only","default":false,"deprecated":true},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"workspaces":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Workspaces"},"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"},"default_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Workspace Id"}},"type":"object","title":"APIKeyCreateRequest","description":"API key POST schema.\n\nexpires_at: Optional datetime when the API key will expire.\nworkspaces: List of workspace UUIDs this key can access (feature-flagged).\nrole_id: Optional UUID of the role to assign to API key.\n    If not provided, uses default role based on read_only flag:\n    - WORKSPACE_ADMIN if read_only is False\n    - WORKSPACE_READER if read_only is True\norg_role_id: UUID of a org role for org-scoped keys\n    If not provided, defaults to ORG_USER\ndefault_workspace_id: UUID of the default workspace for PATs.\n    If not provided, uses the current logic (first available workspace)."},"APIKeyCreateResponse":{"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"}]},"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"}]}},"type":"object","required":["id","short_key","description"],"title":"APIKeyGetResponse","description":"API key GET schema.\n\nrole_id, org_role_id, and access_scope let clients render the key's\ncurrent role state without a second round trip. For workspace-scoped\nkeys, org_role_id is null (the api_key's identity_id points at a\nworkspace identity, so there is no caller-meaningful org role to surface)."},"APIKeyUpdateRequest":{"properties":{"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"}},"type":"object","title":"APIKeyUpdateRequest","description":"API key PATCH schema.\n\nrole_id: New workspace-level role to apply to every workspace identity\n    attached to the key. Optional; omit to leave workspace roles unchanged.\norg_role_id: New org-level role to apply to the key's org identity. Only\n    valid for org-scoped keys (workspaces=None at creation). Optional."},"AccessScope":{"type":"string","enum":["organization","workspace"],"title":"AccessScope"},"AddRepoOwnerRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"AddRepoOwnerRequest","description":"Request to add a repo owner."},"AddRunToQueueByKeyRequest":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"source_proposed_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Proposed Example Id"}},"type":"object","required":["run_id","session_id","start_time"],"title":"AddRunToQueueByKeyRequest","description":"Add run to AQ by SmithDB key. is_root derived server-side (LSAQ-141)."},"AddRunToQueueRequest":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"source_proposed_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Proposed Example Id"}},"type":"object","required":["run_id"],"title":"AddRunToQueueRequest","description":"Add a single run to AQ (CH path) with an optional back-pointer to the\nissues-agent proposal that seeded this add. Use when bulk-adding runs\nthat come from different proposals \u2014 each row carries its own\nsource_proposed_example_id. For unrelated bulk adds, prefer plain\nList[UUID] on the same endpoint."},"AllowedLoginMethodsUpdate":{"properties":{"sso_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sso Only"}},"type":"object","title":"AllowedLoginMethodsUpdate"},"AnnotationQueueBulkDeleteRunsRequest":{"properties":{"delete_all":{"type":"boolean","title":"Delete All","default":false},"run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Run Ids"},"exclude_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Exclude Run Ids"}},"type":"object","title":"AnnotationQueueBulkDeleteRunsRequest"},"AnnotationQueueCreateSchema":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"num_reviewers_per_item":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Reviewers Per Item","default":1},"enable_reservations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Reservations","default":true},"reservation_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reservation Minutes","default":1},"reviewer_access_mode":{"type":"string","title":"Reviewer Access Mode","default":"any"},"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"},"default_dataset":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset"},"rubric_items":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/AnnotationQueueRubricItemSchema"},"type":"array"},{"type":"null"}],"title":"Rubric Items"},"rubric_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubric Instructions"},"session_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Session Ids"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["name"],"title":"AnnotationQueueCreateSchema","description":"AnnotationQueue schema."},"AnnotationQueueRubricItemSchema":{"properties":{"feedback_key":{"type":"string","title":"Feedback Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"value_descriptions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Value Descriptions"},"score_descriptions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Score Descriptions"},"is_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Required"},"is_assertion":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Assertion"}},"type":"object","required":["feedback_key"],"title":"AnnotationQueueRubricItemSchema"},"AnnotationQueueRunAddSchema":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id","deprecated":true},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time","deprecated":true},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id","deprecated":true},"trace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trace Id","deprecated":true},"parent_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Run Id","deprecated":true},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}],"deprecated":true}},"type":"object","required":["run_id"],"title":"AnnotationQueueRunAddSchema","description":"Deprecated: use plain UUID list or AddRunToQueueByKeyRequest instead."},"AnnotationQueueRunSchema":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"queue_id":{"type":"string","format":"uuid","title":"Queue Id"},"last_reviewed_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reviewed Time"},"added_at":{"type":"string","format":"date-time","title":"Added At"},"source_proposed_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Proposed Example Id"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["run_id","queue_id","id"],"title":"AnnotationQueueRunSchema"},"AnnotationQueueRunUpdateSchema":{"properties":{"last_reviewed_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reviewed Time"},"added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Added At"}},"type":"object","title":"AnnotationQueueRunUpdateSchema"},"AnnotationQueueSchema":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"num_reviewers_per_item":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Reviewers Per Item","default":1},"enable_reservations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Reservations","default":true},"reservation_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reservation Minutes","default":1},"reviewer_access_mode":{"type":"string","title":"Reviewer Access Mode","default":"any"},"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"source_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Rule Id"},"run_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Rule Id"},"default_dataset":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset"},"queue_type":{"type":"string","enum":["single","pairwise"],"title":"Queue Type"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"assigned_reviewers":{"items":{"$ref":"#\/components\/schemas\/AssignedReviewerSchema"},"type":"array","title":"Assigned Reviewers","default":[]}},"type":"object","required":["name","id","tenant_id","queue_type"],"title":"AnnotationQueueSchema","description":"AnnotationQueue schema."},"AnnotationQueueSchemaWithRubric":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"num_reviewers_per_item":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Reviewers Per Item","default":1},"enable_reservations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Reservations","default":true},"reservation_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reservation Minutes","default":1},"reviewer_access_mode":{"type":"string","title":"Reviewer Access Mode","default":"any"},"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"source_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Rule Id"},"run_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Rule Id"},"default_dataset":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset"},"queue_type":{"type":"string","enum":["single","pairwise"],"title":"Queue Type"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"assigned_reviewers":{"items":{"$ref":"#\/components\/schemas\/AssignedReviewerSchema"},"type":"array","title":"Assigned Reviewers","default":[]},"rubric_items":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/AnnotationQueueRubricItemSchema"},"type":"array"},{"type":"null"}],"title":"Rubric Items"},"rubric_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubric Instructions"}},"type":"object","required":["name","id","tenant_id","queue_type"],"title":"AnnotationQueueSchemaWithRubric","description":"AnnotationQueue schema with rubric."},"AnnotationQueueSchemaWithSize":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"num_reviewers_per_item":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Reviewers Per Item","default":1},"enable_reservations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Reservations","default":true},"reservation_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reservation Minutes","default":1},"reviewer_access_mode":{"type":"string","title":"Reviewer Access Mode","default":"any"},"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"source_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Rule Id"},"run_rule_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Rule Id"},"default_dataset":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset"},"queue_type":{"type":"string","enum":["single","pairwise"],"title":"Queue Type"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"assigned_reviewers":{"items":{"$ref":"#\/components\/schemas\/AssignedReviewerSchema"},"type":"array","title":"Assigned Reviewers","default":[]},"total_runs":{"type":"integer","title":"Total Runs"}},"type":"object","required":["name","id","tenant_id","queue_type","total_runs"],"title":"AnnotationQueueSchemaWithSize","description":"AnnotationQueue schema with size."},"AnnotationQueueSizeSchema":{"properties":{"size":{"type":"integer","title":"Size"}},"type":"object","required":["size"],"title":"AnnotationQueueSizeSchema","description":"Size of an Annotation Queue"},"AnnotationQueueUpdateSchema":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_dataset":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset"},"num_reviewers_per_item":{"anyOf":[{"type":"integer"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Num Reviewers Per Item","default":1},"enable_reservations":{"type":"boolean","title":"Enable Reservations","default":true},"reservation_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reservation Minutes"},"rubric_items":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/AnnotationQueueRubricItemSchema"},"type":"array"},{"type":"null"}],"title":"Rubric Items"},"rubric_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubric Instructions"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Metadata","default":{"__missing__":"__missing__"}},"reviewer_access_mode":{"anyOf":[{"type":"string","enum":["any","assigned"]},{"type":"null"}],"title":"Reviewer Access Mode"}},"type":"object","title":"AnnotationQueueUpdateSchema","description":"AnnotationQueue update schema."},"AppFeedbackSource":{"properties":{"type":{"type":"string","const":"app","title":"Type","default":"app"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"AppFeedbackSource","description":"Feedback from the LangChainPlus App."},"Artifact":{"properties":{"id":{"type":"string","title":"Id"},"contents":{"items":{"$ref":"#\/components\/schemas\/ArtifactContent"},"type":"array","title":"Contents"},"current_content_index":{"type":"integer","title":"Current Content Index"}},"type":"object","required":["id","contents","current_content_index"],"title":"Artifact"},"ArtifactContent":{"properties":{"index":{"type":"integer","title":"Index"},"content":{"type":"string","title":"Content"}},"type":"object","required":["index","content"],"title":"ArtifactContent"},"AssignedReviewerSchema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id"],"title":"AssignedReviewerSchema","description":"Identity info for an assigned reviewer on an annotation queue."},"AttachmentsOperations":{"properties":{"rename":{"additionalProperties":{"type":"string"},"type":"object","title":"Rename","description":"Mapping of old attachment names to new names"},"retain":{"items":{"type":"string"},"type":"array","title":"Retain","description":"List of attachment names to keep"}},"type":"object","title":"AttachmentsOperations"},"AuditLogEnrichments":{"properties":{"request_method":{"type":"string","title":"Request Method"},"request_path":{"type":"string","title":"Request Path"},"client_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Host"},"client_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Client Port"},"x_forwarded_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Forwarded For"},"response_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Status Code"},"resource_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Resource Ids"}},"type":"object","title":"AuditLogEnrichments","description":"Non-indexed request metadata stored in the enrichments JSONB column."},"AuditLogMessage":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"operation_name":{"type":"string","title":"Operation Name"},"operation_succeeded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Operation Succeeded"},"request_time":{"type":"string","format":"date-time","title":"Request Time"},"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ls User Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"enrichments":{"anyOf":[{"$ref":"#\/components\/schemas\/AuditLogEnrichments"},{"type":"null"}]}},"type":"object","required":["id","operation_name","operation_succeeded","request_time","api_key_id","user_id","ls_user_id","organization_id","workspace_id","enrichments"],"title":"AuditLogMessage","description":"Represents an audit log message.\n\nIndexed columns are individual DB columns. All other fields\n(request_method, request_path, client_host, etc.) live in the\nenrichments JSONB column."},"AuditLogOperation":{"type":"string","enum":["create_api_key","delete_api_key","create_personal_access_token","delete_personal_access_token","create_service_key","delete_service_key","update_service_key","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","update_sso_settings","delete_sso_settings","update_default_sso_provision_organization","update_login_methods","update_organization_info","update_business_info","update_payment_plan","update_payment_method","create_payment_setup_intent","create_payment_checkout_session","confirm_payment_checkout_session","create_payment_account_link","create_workspace","update_workspace","delete_workspace","add_member_to_workspace","add_members_to_workspace_batch","delete_workspace_member","update_workspace_member","delete_workspace_pending_member","update_workspace_pending_member","update_workspace_secrets","delete_workspace_secret","unshare_entities","set_tenant_handle","create_tag_key","update_tag_key","delete_tag_key","create_tag_value","update_tag_value","delete_tag_value","create_tagging","delete_tagging","update_tracer_session","delete_tracer_session","delete_tracer_sessions","delete_runs","share_run","unshare_run","create_dataset","create_csv_dataset","create_experiment_via_upload","create_playground_experiment","create_comparative_experiment","delete_comparative_experiment","delete_dataset","delete_datasets","update_dataset","update_dataset_version","update_dataset_splits","share_dataset","unshare_dataset","clone_dataset","download_dataset","create_example","create_examples","update_example","update_examples","update_examples_metadata","sync_examples","delete_example","delete_examples","create_bulk_export","cancel_bulk_export","read_bulk_export_destination","create_bulk_export_destination","update_bulk_export_destination","update_ttl_settings","update_usage_limit","delete_usage_limit","create_model_price_map","update_model_price_map","delete_model_price_map","create_chart","update_chart","delete_chart","create_chart_section","update_chart_section","delete_chart_section","clone_chart_section","create_org_chart","update_org_chart","delete_org_chart","create_org_chart_section","update_org_chart_section","delete_org_chart_section","create_prompt_webhook","update_prompt_webhook","delete_prompt_webhook","test_prompt_webhook","create_deployment","update_deployment","delete_deployment","create_access_policy","delete_access_policy","list_access_policies","read_access_policy","attach_access_policies","read_role_access_policies","create_scim_token","update_scim_token","delete_scim_token","create_scim_user","update_scim_user","delete_scim_user","create_scim_group","update_scim_group","delete_scim_group","create_prompt_canvas_quick_action","update_prompt_canvas_quick_action","delete_prompt_canvas_quick_action","create_fleet_usage_limit","update_fleet_usage_limit","delete_fleet_usage_limit","create_experiment_view_override","update_experiment_view_override","delete_experiment_view_override","create_alert_rule","update_alert_rule","delete_alert_rule","test_alert_rule","create_forge_configuration","update_forge_configuration","delete_forge_configuration","trigger_forge_configuration","add_annotation_queue_reviewer","remove_annotation_queue_reviewer","add_items_to_annotation_queue","delete_annotation_queue_item","get_annotation_queue_items","submit_nps_response","create_mcp_server","update_mcp_server","delete_mcp_server","register_mcp_server_oauth","create_credential","create_tool","update_tool","delete_tool","create_mcp_vendor_settings","update_mcp_vendor_settings","delete_mcp_vendor_settings","create_evaluator","update_evaluator","delete_evaluator","bulk_delete_evaluators","upsert_feature_default_model","delete_feature_default_model","upsert_feature_disabled_model","delete_feature_disabled_model","create_fleet_webhook","update_fleet_webhook","delete_fleet_webhook","test_fleet_webhook","create_commit","create_hub_environment","update_hub_environment","delete_hub_environment","create_directory_commit","delete_directory","create_gateway_policy","update_gateway_policy","delete_gateway_policy","invoke_gateway","create_sandbox_proxy_profile","update_sandbox_proxy_profile","delete_sandbox_proxy_profile","create_sandbox_policy","update_sandbox_policy","delete_sandbox_policy","list_sandbox_claims","get_sandbox_claim","get_sandbox_claim_status","create_sandbox_claim","update_sandbox_claim","delete_sandbox_claim","batch_delete_sandbox_claims","start_sandbox_claim","stop_sandbox_claim","generate_sandbox_service_url","capture_sandbox_snapshot","list_sandbox_snapshots","get_sandbox_snapshot","create_sandbox_snapshot","delete_sandbox_snapshot","list_sandbox_registries","get_sandbox_registry","create_sandbox_registry","update_sandbox_registry","delete_sandbox_registry","create_data_plane","delete_data_plane","create_annotation_queue","populate_annotation_queue","delete_annotation_queue","delete_annotation_queues","update_annotation_queue","add_runs_to_annotation_queue","export_annotation_queue","update_annotation_queue_run","delete_annotation_queue_run","delete_annotation_queue_runs","create_annotation_queue_run_status","login","send_sso_email_confirmation","confirm_sso_user_email","execute_custom_code","generate_dataset","evaluate_experiment","create_feedback_formula","update_feedback_formula","delete_feedback_formula","create_feedback_config","update_feedback_config","delete_feedback_config","invalidate_mcp_tools_cache","mcp_proxy","create_onboarding_state","update_onboarding_state","create_organization","delete_pending_organization_invite","claim_pending_organization_invite","create_playground_settings","update_playground_settings","delete_playground_settings","create_service_account","delete_service_account","create_tenant","create_filter_view","update_filter_view","rename_filter_view","delete_filter_view","create_insights_job","create_insights_job_config","update_insights_job_config","delete_insights_job_config","update_insights_job","delete_insights_job","read_charts","read_chart_preview","read_chart","read_chart_section","validate_example","validate_examples","read_shared_delta","read_shared_delta_stream","generate_shared_dataset_query","generate_runs_query","read_tracing_dashboard","generate_insights_job_config","read_dataset_delta","delete_pending_workspace_invite","claim_pending_workspace_invite","list_annotation_queues","get_annotation_queue","get_annotation_queue_runs","get_annotation_queue_run","get_annotation_queues_for_run","get_annotation_queue_size","get_annotation_queue_archived_size","get_annotation_queue_total_size","resolve_annotation_queue_run","get_audit_logs","get_sso_settings","list_bulk_exports","list_bulk_export_destinations","get_bulk_export","get_bulk_export_runs","get_bulk_export_run","get_bulk_export_runs_filtered","list_chart_sections","get_dataset_versions","diff_dataset_versions","get_dataset_version","read_dataset_share_state","count_examples","list_feedback_formulas","get_feedback_formula","list_feedback_configs","get_mcp_tools","mcp_proxy_get","get_onboarding_state","read_model_price_map","list_organizations","get_organization_info","get_organization_billing_info","get_org_dashboard","get_company_info","list_organization_roles","list_permissions","list_pending_organization_invites","list_org_members","get_org_usage","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","list_org_service_keys","list_org_personal_access_tokens","list_service_accounts","list_filter_views","get_filter_view","list_insights_jobs","list_insights_job_configs","get_insights_job","get_insights_job_runs","get_run_cluster","get_usage_limits","get_org_usage_limits","list_workspaces","list_pending_workspace_invites","get_workspace_stats","list_workspace_members","get_shared_tokens","get_workspace_usage_limits_info","list_tag_keys","get_tag_key","list_tag_values","get_tag_value","list_tags","list_tags_for_resource","list_taggings","get_shared_examples_count","list_examples","get_example","get_experiment_view_overrides","get_experiment_view_override","get_dataset_comparison_view","stream_dataset_comparison_view","stream_feedback_delta","read_comparative_experiments","stream_grouped_experiments","get_run_url","query_run","query_runs","batch_query_runs","query_trace","query_traces","query_trace_messages","batch_query_trace_messages","query_thread_messages","query_single_thread_stats","query_thread_traces","query_threads","list_pairwise_queues","get_pairwise_queue","list_pairwise_entries","read_run","read_runs","read_example","read_examples","read_feedback","read_feedbacks","create_license_share_link","create_provisioned_saas_org","mint_self_hosted_license","invite_provisioned_org_member","create_self_hosted_customer","update_self_hosted_customer","update_self_hosted_license","get_self_hosted_customer","get_provisioned_saas_org","update_provisioned_saas_org","test_op_generic"],"title":"AuditLogOperation","description":"Operations that are logged in audit_logs database table."},"AuthProvider":{"type":"string","enum":["email","supabase:non-sso","supabase:sso","oidc","custom-oidc"],"title":"AuthProvider"},"AutoEvalFeedbackSource":{"properties":{"type":{"type":"string","const":"auto_eval","title":"Type","default":"auto_eval"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"AutoEvalFeedbackSource","description":"Auto eval feedback source."},"BasicAuthMemberCreate":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ls User Id"},"email":{"type":"string","title":"Email"},"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only","deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"workspace_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Role Id"},"workspace_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Workspace Ids"}},"type":"object","required":["email"],"title":"BasicAuthMemberCreate"},"BasicAuthResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["access_token"],"title":"BasicAuthResponse"},"BasicAuthUserPatch":{"properties":{"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"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":{"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 \u2014 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":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Session"},"reference_example":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Reference Example"},"execution_order":{"anyOf":[{"type":"integer","maximum":1,"minimum":1},{"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},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"limit":{"type":"integer","maximum":100,"minimum":1,"title":"Limit","description":"Maximum number of runs to return. Not applied when trace is set \u2014 all runs in the trace are returned in a single response.","default":100},"select":{"items":{"$ref":"#\/components\/schemas\/RunSelect"},"type":"array","title":"Select","default":["id","name","run_type","start_time","end_time","status","error","extra","events","inputs","outputs","parent_run_id","manifest_id","manifest_s3_id","manifest","session_id","serialized","reference_example_id","reference_dataset_id","total_tokens","prompt_tokens","prompt_token_details","completion_tokens","completion_token_details","total_cost","prompt_cost","prompt_cost_details","completion_cost","completion_cost_details","price_model_id","first_token_time","trace_id","dotted_order","last_queued_at","feedback_stats","parent_run_ids","tags","in_dataset","app_path","share_token","trace_tier","trace_first_received_at","ttl_seconds","trace_upgrade","thread_id"]},"order":{"$ref":"#\/components\/schemas\/RunDateOrder","default":"desc"},"skip_prev_cursor":{"type":"boolean","title":"Skip Prev Cursor","default":false}},"type":"object","title":"BodyParamsForRunSchema","description":"Query params for run endpoints."},"BodyParamsForRunsQuerySchema":{"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 \u2014 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":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Session"},"reference_example":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Reference Example"},"execution_order":{"anyOf":[{"type":"integer","maximum":1,"minimum":1},{"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},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"limit":{"type":"integer","maximum":100,"minimum":1,"title":"Limit","description":"Maximum number of runs to return. Not applied when trace is set \u2014 all runs in the trace are returned in a single response.","default":100},"select":{"items":{"$ref":"#\/components\/schemas\/RunSelect"},"type":"array","title":"Select","default":["id","name","run_type","start_time","end_time","status","error","extra","events","inputs","outputs","parent_run_id","manifest_id","manifest_s3_id","manifest","session_id","serialized","reference_example_id","reference_dataset_id","total_tokens","prompt_tokens","prompt_token_details","completion_tokens","completion_token_details","total_cost","prompt_cost","prompt_cost_details","completion_cost","completion_cost_details","price_model_id","first_token_time","trace_id","dotted_order","last_queued_at","feedback_stats","parent_run_ids","tags","in_dataset","app_path","share_token","trace_tier","trace_first_received_at","ttl_seconds","trace_upgrade","thread_id"]},"order":{"$ref":"#\/components\/schemas\/RunDateOrder","default":"desc"},"skip_prev_cursor":{"type":"boolean","title":"Skip Prev Cursor","default":false}},"type":"object","title":"BodyParamsForRunsQuerySchema","description":"Query params for runs query endpoint."},"Body_clone_dataset_api_v1_datasets_clone_post":{"properties":{"target_dataset_id":{"type":"string","format":"uuid","title":"Target Dataset Id"},"source_dataset_id":{"type":"string","format":"uuid","title":"Source Dataset Id"},"as_of":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."},{"type":"null"}],"title":"As Of"},"examples":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Examples","default":[]},"split":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Split"},"tag_value_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100},{"type":"null"}],"title":"Tag Value Ids"}},"type":"object","required":["target_dataset_id","source_dataset_id"],"title":"Body_clone_dataset_api_v1_datasets_clone_post"},"Body_delete_runs_abac_api_v1_runs_delete_traces_post":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"trace_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Trace Ids"}},"type":"object","required":["session_id","trace_ids"],"title":"Body_delete_runs_abac_api_v1_runs_delete_traces_post"},"Body_delete_runs_api_v1_runs_delete_post":{"properties":{"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"trace_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Trace Ids"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"delete_examples":{"type":"boolean","title":"Delete Examples","default":false},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"}},"type":"object","title":"Body_delete_runs_api_v1_runs_delete_post"},"Body_execute_api_v1_ace_execute_post":{"properties":{"args":{"items":{},"type":"array","title":"Args"},"code":{"type":"string","title":"Code"},"language":{"type":"string","title":"Language"}},"type":"object","required":["args","code","language"],"title":"Body_execute_api_v1_ace_execute_post"},"Body_update_dataset_splits_api_v1_datasets__dataset_id__splits_put":{"properties":{"split_name":{"type":"string","title":"Split Name"},"examples":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Examples"},"remove":{"type":"boolean","title":"Remove","default":false}},"type":"object","required":["split_name","examples"],"title":"Body_update_dataset_splits_api_v1_datasets__dataset_id__splits_put"},"Body_upload_csv_dataset_api_v1_datasets_upload_post":{"properties":{"file":{"type":"string","title":"File","format":"binary"},"input_keys":{"items":{"type":"string"},"type":"array","title":"Input Keys"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"data_type":{"$ref":"#\/components\/schemas\/DataType","default":"kv"},"output_keys":{"items":{"type":"string"},"type":"array","title":"Output Keys","default":[]},"metadata_keys":{"items":{"type":"string"},"type":"array","title":"Metadata Keys","default":[]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"inputs_schema_definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputs Schema Definition"},"outputs_schema_definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outputs Schema Definition"},"transformations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformations"},"input_key_mappings":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Key Mappings"},"output_key_mappings":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Key Mappings"},"metadata_key_mappings":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Key Mappings"},"tag_value_ids":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Value Ids"}},"type":"object","required":["file","input_keys"],"title":"Body_upload_csv_dataset_api_v1_datasets_upload_post"},"Body_upload_examples_from_csv_api_v1_examples_upload__dataset_id__post":{"properties":{"file":{"type":"string","title":"File","format":"binary"},"input_keys":{"items":{"type":"string"},"type":"array","title":"Input Keys"},"output_keys":{"items":{"type":"string"},"type":"array","title":"Output Keys"},"metadata_keys":{"items":{"type":"string"},"type":"array","title":"Metadata Keys"}},"type":"object","required":["file","input_keys"],"title":"Body_upload_examples_from_csv_api_v1_examples_upload__dataset_id__post"},"BotocoreS3Config":{"properties":{"addressing_style":{"anyOf":[{"type":"string","enum":["auto","virtual","path"]},{"type":"null"}],"title":"Addressing Style","description":"S3 addressing style. Use \"virtual\" for services that require virtual-hosted style (e.g. Volcengine TOS), \"path\" for path-style, or \"auto\" (default) to let boto3 decide."},"use_accelerate_endpoint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Accelerate Endpoint","description":"Whether to use the S3 Accelerate endpoint."},"payload_signing_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Payload Signing Enabled","description":"Whether to SHA256 sign SigV4 payloads."},"us_east_1_regional_endpoint":{"anyOf":[{"type":"string","enum":["regional","legacy"]},{"type":"null"}],"title":"Us East 1 Regional Endpoint","description":"Which S3 endpoint to use when region is us-east-1."}},"type":"object","title":"BotocoreS3Config","description":"Typed subset of botocore Config s3 parameter.\n\nSee: https:\/\/botocore.amazonaws.com\/v1\/documentation\/api\/latest\/reference\/config.html"},"BulkExport":{"properties":{"bulk_export_destination_id":{"type":"string","format":"uuid","title":"Bulk Export Destination Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"all_experiments":{"type":"boolean","title":"All Experiments","default":false},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"},"format":{"$ref":"#\/components\/schemas\/BulkExportFormat","default":"Parquet"},"format_version":{"$ref":"#\/components\/schemas\/BulkExportFormatVersion","default":"v1"},"compression":{"$ref":"#\/components\/schemas\/BulkExportCompression","default":"zstandard"},"interval_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interval Hours"},"export_fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Export Fields"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"status":{"$ref":"#\/components\/schemas\/BulkExportStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"source_bulk_export_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Bulk Export Id"}},"type":"object","required":["bulk_export_destination_id","start_time","id","tenant_id","status","created_at","updated_at","finished_at"],"title":"BulkExport"},"BulkExportCompression":{"type":"string","enum":["none","gzip","snappy","zstandard"],"title":"BulkExportCompression"},"BulkExportCreate":{"properties":{"bulk_export_destination_id":{"type":"string","format":"uuid","title":"Bulk Export Destination Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"all_experiments":{"type":"boolean","title":"All Experiments","default":false},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"},"format":{"$ref":"#\/components\/schemas\/BulkExportFormat","default":"Parquet"},"format_version":{"$ref":"#\/components\/schemas\/BulkExportFormatVersion","default":"v1"},"compression":{"$ref":"#\/components\/schemas\/BulkExportCompression","default":"zstandard"},"interval_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interval Hours"},"export_fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Export Fields"}},"type":"object","required":["bulk_export_destination_id","start_time"],"title":"BulkExportCreate"},"BulkExportDestination":{"properties":{"destination_type":{"$ref":"#\/components\/schemas\/BulkExportDestinationType","default":"s3"},"display_name":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9\\-_ ']+$","title":"Display Name"},"config":{"$ref":"#\/components\/schemas\/BulkExportDestinationS3Config"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"credentials_keys":{"items":{"type":"string"},"type":"array","title":"Credentials Keys"}},"type":"object","required":["display_name","config","id","tenant_id","created_at","updated_at","credentials_keys"],"title":"BulkExportDestination"},"BulkExportDestinationCreate":{"properties":{"destination_type":{"$ref":"#\/components\/schemas\/BulkExportDestinationType","default":"s3"},"display_name":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9\\-_ ']+$","title":"Display Name"},"config":{"$ref":"#\/components\/schemas\/BulkExportDestinationS3Config"},"credentials":{"anyOf":[{"$ref":"#\/components\/schemas\/BulkExportDestinationS3Credentials"},{"type":"null"}]}},"type":"object","required":["display_name","config"],"title":"BulkExportDestinationCreate"},"BulkExportDestinationS3Config":{"properties":{"endpoint_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Endpoint Url"},"prefix":{"type":"string","maxLength":2048,"title":"Prefix","default":""},"bucket_name":{"anyOf":[{"type":"string","maxLength":63,"minLength":3},{"type":"null"}],"title":"Bucket Name"},"region":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Region"},"s3_additional_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Additional Kwargs"},"config_kwargs_s3":{"anyOf":[{"$ref":"#\/components\/schemas\/BotocoreS3Config"},{"type":"null"}],"description":"Passed to botocore Config s3 parameter. Use {\"addressing_style\": \"virtual\"} for S3-compatible services that require virtual-hosted style addressing (e.g. Volcengine TOS), or {\"addressing_style\": \"path\"} for path-style."},"include_bucket_in_prefix":{"type":"boolean","title":"Include Bucket In Prefix","description":"Whether to prepend the bucket name to the S3 file path. Defaults to True. Set to False to skip prepending the bucket name if bucket name is already in the endpoint URL.","default":true},"aws_role_arn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aws Role Arn","description":"AWS IAM role ARN that LangSmith assumes instead of using static credentials."}},"type":"object","title":"BulkExportDestinationS3Config"},"BulkExportDestinationS3Credentials":{"properties":{"access_key_id":{"type":"string","maxLength":255,"minLength":1,"title":"Access Key Id"},"secret_access_key":{"type":"string","maxLength":2048,"minLength":1,"title":"Secret Access Key"},"session_token":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["access_key_id","secret_access_key"],"title":"BulkExportDestinationS3Credentials"},"BulkExportDestinationType":{"type":"string","enum":["s3"],"title":"BulkExportDestinationType"},"BulkExportDestinationUpdate":{"properties":{"credentials":{"$ref":"#\/components\/schemas\/BulkExportDestinationS3Credentials"}},"type":"object","required":["credentials"],"title":"BulkExportDestinationUpdate"},"BulkExportFormat":{"type":"string","enum":["Parquet"],"title":"BulkExportFormat"},"BulkExportFormatVersion":{"type":"string","enum":["v1","v2_beta"],"title":"BulkExportFormatVersion","description":"Enum for bulk export format versions."},"BulkExportRun":{"properties":{"bulk_export_id":{"type":"string","format":"uuid","title":"Bulk Export Id"},"metadata":{"$ref":"#\/components\/schemas\/BulkExportRunMetadata"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"id":{"type":"string","format":"uuid","title":"Id"},"status":{"$ref":"#\/components\/schemas\/BulkExportRunStatus"},"retry_number":{"type":"integer","title":"Retry Number","default":0},"errors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Errors"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},"type":"object","required":["bulk_export_id","metadata","id","status","created_at","updated_at","finished_at"],"title":"BulkExportRun"},"BulkExportRunMetadata":{"properties":{"prefix":{"type":"string","title":"Prefix"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"execution_backend":{"anyOf":[{"type":"string","enum":["clickhouse","smithdb"]},{"type":"null"}],"title":"Execution Backend"},"result":{"anyOf":[{"$ref":"#\/components\/schemas\/BulkExportRunProgress"},{"type":"null"}]}},"type":"object","required":["prefix","start_time","end_time"],"title":"BulkExportRunMetadata"},"BulkExportRunProgress":{"properties":{"rows_written":{"type":"integer","title":"Rows Written"},"exported_files":{"items":{"type":"string"},"type":"array","title":"Exported Files"},"export_path":{"type":"string","title":"Export Path"},"latest_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Cursor"},"pending_upload":{"anyOf":[{"$ref":"#\/components\/schemas\/PendingUpload"},{"type":"null"}]}},"type":"object","required":["rows_written","exported_files","export_path","latest_cursor"],"title":"BulkExportRunProgress"},"BulkExportRunStatus":{"type":"string","enum":["Cancelled","Completed","Created","Failed","TimedOut","Running"],"title":"BulkExportRunStatus"},"BulkExportStatus":{"type":"string","enum":["Cancelled","Completed","Created","IntervalScheduled","Failed","TimedOut","Running"],"title":"BulkExportStatus"},"BulkExportUpdatableStatus":{"type":"string","enum":["Cancelled"],"title":"BulkExportUpdatableStatus"},"BulkExportUpdate":{"properties":{"status":{"$ref":"#\/components\/schemas\/BulkExportUpdatableStatus","default":"Cancelled"}},"type":"object","title":"BulkExportUpdate"},"ChangePaymentPlanReq":{"type":"string","enum":["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_07_2026"],"title":"ChangePaymentPlanReq","description":"Enum for payment plans that the user can change to. Developer plans are permanent and enterprise plans will be changed manually."},"ChangePaymentPlanSchema":{"properties":{"tier":{"$ref":"#\/components\/schemas\/ChangePaymentPlanReq"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["tier"],"title":"ChangePaymentPlanSchema","description":"Change payment plan schema."},"ChatMessage":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"chat","title":"Type","default":"chat"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"role":{"type":"string","title":"Role"}},"additionalProperties":true,"type":"object","required":["content","role"],"title":"ChatMessage","description":"Message that can be assigned an arbitrary speaker (i.e. role)."},"ChatMessageChunk":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"ChatMessageChunk","title":"Type","default":"ChatMessageChunk"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"role":{"type":"string","title":"Role"}},"additionalProperties":true,"type":"object","required":["content","role"],"title":"ChatMessageChunk","description":"Chat Message chunk."},"ClusteringJobConfigResponse":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"$ref":"#\/components\/schemas\/SavedRunClusteringJobRequest"},"prebuilt":{"type":"boolean","title":"Prebuilt"},"schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Cron"}},"type":"object","required":["id","name","config","prebuilt"],"title":"ClusteringJobConfigResponse","description":"Full clustering job config with all details."},"CodeEvaluatorLanguage":{"type":"string","enum":["python","javascript"],"title":"CodeEvaluatorLanguage"},"CodeEvaluatorTopLevel":{"properties":{"code":{"type":"string","title":"Code"},"language":{"anyOf":[{"$ref":"#\/components\/schemas\/CodeEvaluatorLanguage"},{"type":"null"}],"default":"python"}},"type":"object","required":["code"],"title":"CodeEvaluatorTopLevel"},"Comment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"comment_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comment By"},"comment_on":{"type":"string","format":"uuid","title":"Comment On"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"comment_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment By Name"},"num_sub_comments":{"type":"integer","title":"Num Sub Comments"},"num_likes":{"type":"integer","title":"Num Likes"},"liked_by_auth_user":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Liked By Auth User"}},"type":"object","required":["id","comment_on","content","created_at","updated_at","num_sub_comments","num_likes"],"title":"Comment"},"CommitManifestResponse":{"properties":{"commit_hash":{"type":"string","title":"Commit Hash"},"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"},"examples":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RepoExampleResponse"},"type":"array"},{"type":"null"}],"title":"Examples"}},"type":"object","required":["commit_hash","manifest"],"title":"CommitManifestResponse","description":"Response model for get_commit_manifest."},"ComparativeExperiment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"reference_dataset_id":{"type":"string","format":"uuid","title":"Reference Dataset Id"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"experiments_info":{"items":{"$ref":"#\/components\/schemas\/SimpleExperimentInfo"},"type":"array","title":"Experiments Info"},"feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Feedback Stats"}},"type":"object","required":["id","tenant_id","created_at","modified_at","reference_dataset_id","experiments_info"],"title":"ComparativeExperiment","description":"ComparativeExperiment schema."},"ComparativeExperimentBase":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"reference_dataset_id":{"type":"string","format":"uuid","title":"Reference Dataset Id"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"}},"type":"object","required":["id","tenant_id","created_at","modified_at","reference_dataset_id"],"title":"ComparativeExperimentBase","description":"ComparativeExperiment schema."},"ComparativeExperimentCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"experiment_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Experiment Ids"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"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"},"failed":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Failed"}},"type":"object","required":["migrated","skipped","failed"],"title":"CompositeMigrationResult","description":"Per-id outcome of a composite migration batch."},"ConfiguredBy":{"type":"string","enum":["system","user"],"title":"ConfiguredBy"},"CreateClusteringJobConfigRequest":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"$ref":"#\/components\/schemas\/CreateRunClusteringJobRequest"},"schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Cron"}},"type":"object","required":["name","config"],"title":"CreateClusteringJobConfigRequest","description":"Request to create a clustering job config."},"CreateClusteringJobConfigResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"$ref":"#\/components\/schemas\/SavedRunClusteringJobRequest"},"schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Cron"}},"type":"object","required":["id","name","description","config"],"title":"CreateClusteringJobConfigResponse","description":"Response to create a clustering job config."},"CreateCommentRequest":{"properties":{"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"CreateCommentRequest"},"CreateFeedbackConfigSchema":{"properties":{"feedback_key":{"type":"string","title":"Feedback Key"},"feedback_config":{"$ref":"#\/components\/schemas\/FeedbackConfig"},"is_lower_score_better":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Lower Score Better","default":false}},"type":"object","required":["feedback_key","feedback_config"],"title":"CreateFeedbackConfigSchema"},"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"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"readme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readme"},"is_public":{"type":"boolean","title":"Is Public"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"repo_type":{"type":"string","enum":["prompt","file","agent","skill"],"title":"Repo Type","default":"prompt"},"source":{"anyOf":[{"type":"string","enum":["internal","external"]},{"type":"null"}],"title":"Source"},"restricted_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted Mode"}},"type":"object","required":["repo_handle","is_public"],"title":"CreateRepoRequest","description":"Fields to create a repo"},"CreateRepoResponse":{"properties":{"repo":{"$ref":"#\/components\/schemas\/RepoWithLookups"}},"type":"object","required":["repo"],"title":"CreateRepoResponse"},"CreateRoleRequest":{"properties":{"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["display_name","description","permissions"],"title":"CreateRoleRequest"},"CreateRunClusteringJobRequest":{"properties":{"config_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Config Id"},"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"},"last_n_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last N Hours"},"hierarchy":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Hierarchy"},"partitions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object","maxProperties":10},{"type":"null"}],"title":"Partitions"},"sample":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Sample"},"summary_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Prompt"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"attribute_schemas":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attribute Schemas"},"user_context":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"User Context"},"model":{"type":"string","enum":["openai","anthropic"],"title":"Model","default":"openai"},"cluster_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Model"},"summary_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Model"},"is_scheduled":{"type":"boolean","title":"Is Scheduled","default":false},"validate_model_secrets":{"type":"boolean","title":"Validate Model Secrets","default":true}},"type":"object","title":"CreateRunClusteringJobRequest","description":"Request to create a run clustering job."},"CreateRunClusteringJobResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","name","status"],"title":"CreateRunClusteringJobResponse","description":"Response to creating a run clustering job."},"CustomChartCreate":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"index":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"title":"Index"},"chart_type":{"$ref":"#\/components\/schemas\/CustomChartType"},"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"},"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"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"},"field":{"$ref":"#\/components\/schemas\/CustomChartMetricField"},"params":{"$ref":"#\/components\/schemas\/CustomChartMetricPercentileParams"}},"type":"object","required":["type","field","params"],"title":"CustomChartMetricPercentile"},"CustomChartMetricPercentileParams":{"properties":{"p":{"type":"number","maximum":1,"minimum":0,"title":"P"}},"type":"object","required":["p"],"title":"CustomChartMetricPercentileParams"},"CustomChartMetricRatio-Input":{"properties":{"type":{"type":"string","const":"ratio","title":"Type"},"numerator":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricPercentile"}],"title":"Numerator"},"denominator":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricPercentile"}],"title":"Denominator"}},"type":"object","required":["type","numerator","denominator"],"title":"CustomChartMetricRatio"},"CustomChartMetricRatio-Output":{"properties":{"type":{"type":"string","const":"ratio","title":"Type"},"numerator":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricPercentile"}],"title":"Numerator"},"denominator":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricPercentile"}],"title":"Denominator"}},"type":"object","required":["type","numerator","denominator"],"title":"CustomChartMetricRatio"},"CustomChartMetricScalar":{"properties":{"type":{"anyOf":[{"type":"string","const":"sum"},{"type":"string","const":"max"},{"type":"string","const":"min"},{"type":"string","const":"avg"}],"title":"Type"},"field":{"$ref":"#\/components\/schemas\/CustomChartMetricField"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"}},"type":"object","required":["type","field"],"title":"CustomChartMetricScalar"},"CustomChartPreviewRequest":{"properties":{"bucket_info":{"$ref":"#\/components\/schemas\/CustomChartsRequestBase"},"chart":{"$ref":"#\/components\/schemas\/CustomChartCreatePreview"}},"type":"object","required":["bucket_info","chart"],"title":"CustomChartPreviewRequest"},"CustomChartResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"index":{"type":"integer","title":"Index"},"chart_type":{"$ref":"#\/components\/schemas\/CustomChartType"},"section_id":{"type":"string","format":"uuid","title":"Section Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"series":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/CustomChartSeries-Output"},"type":"array"},{"type":"null"}],"title":"Series"}},"type":"object","required":["id","title","index","chart_type","section_id","series"],"title":"CustomChartResponse"},"CustomChartSeries-Input":{"properties":{"name":{"type":"string","title":"Name"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"filters":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartSeriesFilters"},{"type":"null"}]},"metric":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetric"},{"type":"null"}]},"project_metric":{"anyOf":[{"$ref":"#\/components\/schemas\/HostProjectChartMetric"},{"type":"null"}]},"feedback_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Key"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"metric_definition":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$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":[{"$ref":"#\/components\/schemas\/HostProjectChartMetric"},{"type":"null"}]},"feedback_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Key"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"metric_definition":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$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":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"group_by":{"anyOf":[{"$ref":"#\/components\/schemas\/RunStatsGroupBySeriesResponse"},{"type":"null"}]}},"type":"object","required":["name","id"],"title":"CustomChartSeries"},"CustomChartSeriesCreate":{"properties":{"name":{"type":"string","title":"Name"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"filters":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartSeriesFilters"},{"type":"null"}]},"metric":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetric"},{"type":"null"}]},"project_metric":{"anyOf":[{"$ref":"#\/components\/schemas\/HostProjectChartMetric"},{"type":"null"}]},"feedback_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Key"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"metric_definition":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$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":[{"$ref":"#\/components\/schemas\/RunStatsGroupBy"},{"type":"null"}]}},"type":"object","required":["name"],"title":"CustomChartSeriesCreate"},"CustomChartSeriesFilters":{"properties":{"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"},"session":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Session"}},"type":"object","title":"CustomChartSeriesFilters"},"CustomChartSeriesUpdate":{"properties":{"name":{"type":"string","title":"Name"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"filters":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartSeriesFilters"},{"type":"null"}]},"metric":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetric"},{"type":"null"}]},"project_metric":{"anyOf":[{"$ref":"#\/components\/schemas\/HostProjectChartMetric"},{"type":"null"}]},"feedback_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Key"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"metric_definition":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartMetricCount"},{"$ref":"#\/components\/schemas\/CustomChartFeedbackScoreMetricScalar"},{"$ref":"#\/components\/schemas\/CustomChartMetricScalar"},{"$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":[{"$ref":"#\/components\/schemas\/RunStatsGroupBy"},{"type":"null"}]},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"}},"type":"object","required":["name"],"title":"CustomChartSeriesUpdate"},"CustomChartType":{"type":"string","enum":["line","bar","table","kpi","top-k","pie"],"title":"CustomChartType","description":"Enum for custom chart types."},"CustomChartUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"$ref":"#\/components\/schemas\/Missing"}],"title":"Title","default":{"__missing__":"__missing__"}},"description":{"anyOf":[{"type":"string"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Description","default":{"__missing__":"__missing__"}},"index":{"anyOf":[{"type":"integer"},{"$ref":"#\/components\/schemas\/Missing"}],"title":"Index","default":{"__missing__":"__missing__"},"minimum":0,"maximum":100},"chart_type":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartType"},{"$ref":"#\/components\/schemas\/Missing"}],"title":"Chart Type","default":{"__missing__":"__missing__"}},"series":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/CustomChartSeriesUpdate"},"type":"array"},{"$ref":"#\/components\/schemas\/Missing"}],"title":"Series","default":{"__missing__":"__missing__"}},"section_id":{"anyOf":[{"type":"string","format":"uuid"},{"$ref":"#\/components\/schemas\/Missing"}],"title":"Section Id","default":{"__missing__":"__missing__"}},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Metadata","default":{"__missing__":"__missing__"}},"common_filters":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartSeriesFilters"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Common Filters","default":{"__missing__":"__missing__"}}},"type":"object","title":"CustomChartUpdate"},"CustomChartsDataPoint":{"properties":{"series_id":{"type":"string","title":"Series Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"value":{"anyOf":[{"type":"integer"},{"type":"number"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Value"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group"}},"type":"object","required":["series_id","timestamp","value"],"title":"CustomChartsDataPoint"},"CustomChartsRequest":{"properties":{"timezone":{"type":"string","title":"Timezone","default":"UTC"},"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"},"stride":{"$ref":"#\/components\/schemas\/TimedeltaInput","default":{"days":0,"hours":0,"minutes":15}},"omit_data":{"type":"boolean","title":"Omit Data","default":false},"after_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"After Index"},"tag_value_id":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Tag Value Id"}},"type":"object","title":"CustomChartsRequest"},"CustomChartsRequestBase":{"properties":{"timezone":{"type":"string","title":"Timezone","default":"UTC"},"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"},"stride":{"$ref":"#\/components\/schemas\/TimedeltaInput","default":{"days":0,"hours":0,"minutes":15}},"omit_data":{"type":"boolean","title":"Omit Data","default":false}},"type":"object","title":"CustomChartsRequestBase"},"CustomChartsResponse":{"properties":{"sections":{"items":{"$ref":"#\/components\/schemas\/CustomChartsSection"},"type":"array","title":"Sections"}},"type":"object","required":["sections"],"title":"CustomChartsResponse"},"CustomChartsSection":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Index"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"charts":{"items":{"$ref":"#\/components\/schemas\/SingleCustomChartResponse"},"type":"array","title":"Charts"},"sub_sections":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/SingleCustomChartSubSectionResponse"},"type":"array"},{"type":"null"}],"title":"Sub Sections"},"layout":{"anyOf":[{"$ref":"#\/components\/schemas\/DashboardLayout-Output"},{"type":"null"}]}},"type":"object","required":["title","id","charts"],"title":"CustomChartsSection"},"CustomChartsSectionCreate":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Index"}},"type":"object","required":["title"],"title":"CustomChartsSectionCreate"},"CustomChartsSectionRequest":{"properties":{"timezone":{"type":"string","title":"Timezone","default":"UTC"},"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"},"stride":{"$ref":"#\/components\/schemas\/TimedeltaInput","default":{"days":0,"hours":0,"minutes":15}},"omit_data":{"type":"boolean","title":"Omit Data","default":false},"group_by":{"anyOf":[{"$ref":"#\/components\/schemas\/RunStatsGroupBy"},{"type":"null"}]}},"type":"object","title":"CustomChartsSectionRequest"},"CustomChartsSectionResponse":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Index"},"id":{"type":"string","format":"uuid","title":"Id"},"chart_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chart Count"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"}},"type":"object","required":["title","id"],"title":"CustomChartsSectionResponse"},"CustomChartsSectionUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"$ref":"#\/components\/schemas\/Missing"}],"title":"Title","default":{"__missing__":"__missing__"}},"description":{"anyOf":[{"type":"string"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Description","default":{"__missing__":"__missing__"}},"index":{"anyOf":[{"type":"integer"},{"$ref":"#\/components\/schemas\/Missing"}],"title":"Index","default":{"__missing__":"__missing__"}},"layout":{"anyOf":[{"$ref":"#\/components\/schemas\/DashboardLayout-Input"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Layout","default":{"__missing__":"__missing__"}}},"type":"object","title":"CustomChartsSectionUpdate"},"CustomChartsSectionsCloneRequest":{"properties":{"section_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Section Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},"type":"object","title":"CustomChartsSectionsCloneRequest"},"CustomerInfo":{"properties":{"customer_id":{"type":"string","title":"Customer Id"},"customer_name":{"type":"string","title":"Customer Name"}},"type":"object","required":["customer_id","customer_name"],"title":"CustomerInfo","description":"Customer info."},"CustomerVisiblePlanInfo":{"properties":{"tier":{"$ref":"#\/components\/schemas\/PaymentPlanTier"},"started_on":{"type":"string","format":"date-time","title":"Started On"},"ends_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends On"}},"type":"object","required":["tier","started_on"],"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,"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":["kv","llm","chat"],"title":"DataType","description":"Enum for dataset data types."},"Dataset":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"inputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs Schema Definition"},"outputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs Schema Definition"},"externally_managed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Externally Managed","default":false},"transformations":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/DatasetTransformation"},"type":"array"},{"type":"null"}],"title":"Transformations"},"data_type":{"anyOf":[{"$ref":"#\/components\/schemas\/DataType"},{"type":"null"}],"default":"kv"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"example_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Example Count"},"session_count":{"type":"integer","title":"Session Count"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"last_session_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Session Start Time"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"baseline_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Baseline Experiment Id"}},"type":"object","required":["name","id","tenant_id","session_count","modified_at"],"title":"Dataset","description":"Dataset schema."},"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"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"inputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs Schema Definition"},"outputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs Schema Definition"},"externally_managed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Externally Managed","default":false},"transformations":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/DatasetTransformation"},"type":"array"},{"type":"null"}],"title":"Transformations"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"data_type":{"$ref":"#\/components\/schemas\/DataType","default":"kv"}},"type":"object","required":["name"],"title":"DatasetCreate","description":"Create class for Dataset."},"DatasetDiffInfo":{"properties":{"examples_modified":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Examples Modified"},"examples_added":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Examples Added"},"examples_removed":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Examples Removed"}},"type":"object","required":["examples_modified","examples_added","examples_removed"],"title":"DatasetDiffInfo","description":"Dataset diff schema."},"DatasetPublicSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"inputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs Schema Definition"},"outputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs Schema Definition"},"externally_managed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Externally Managed","default":false},"transformations":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/DatasetTransformation"},"type":"array"},{"type":"null"}],"title":"Transformations"},"data_type":{"anyOf":[{"$ref":"#\/components\/schemas\/DataType"},{"type":"null"}],"default":"kv"},"id":{"type":"string","format":"uuid","title":"Id"},"example_count":{"type":"integer","title":"Example Count"}},"type":"object","required":["name","id","example_count"],"title":"DatasetPublicSchema","description":"Public schema for datasets.\n\nDoesn't currently include session counts\/stats\nsince public test project sharing is not yet shipped"},"DatasetSchemaForUpdate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"inputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs Schema Definition"},"outputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs Schema Definition"},"externally_managed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Externally Managed","default":false},"transformations":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/DatasetTransformation"},"type":"array"},{"type":"null"}],"title":"Transformations"},"data_type":{"anyOf":[{"$ref":"#\/components\/schemas\/DataType"},{"type":"null"}],"default":"kv"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"}},"type":"object","required":["name","id","tenant_id"],"title":"DatasetSchemaForUpdate"},"DatasetShareSchema":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"share_token":{"type":"string","format":"uuid","title":"Share Token"}},"type":"object","required":["dataset_id","share_token"],"title":"DatasetShareSchema"},"DatasetTransformation":{"properties":{"path":{"items":{"type":"string"},"type":"array","title":"Path"},"transformation_type":{"$ref":"#\/components\/schemas\/DatasetTransformationType"}},"type":"object","required":["path","transformation_type"],"title":"DatasetTransformation"},"DatasetTransformationType":{"type":"string","enum":["convert_to_openai_message","convert_to_openai_tool","remove_system_messages","remove_extra_fields","extract_tools_from_run"],"title":"DatasetTransformationType","description":"Enum for dataset transformation types.\nOrdering determines the order in which transformations are applied if there are multiple transformations on the same path."},"DatasetUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Name","default":{"__missing__":"__missing__"}},"description":{"anyOf":[{"type":"string"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Description","default":{"__missing__":"__missing__"}},"inputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Inputs Schema Definition","default":{"__missing__":"__missing__"}},"outputs_schema_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Outputs Schema Definition","default":{"__missing__":"__missing__"}},"patch_examples":{"anyOf":[{"additionalProperties":{"$ref":"#\/components\/schemas\/ExampleUpdate"},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Patch Examples"},"transformations":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/DatasetTransformation"},"type":"array"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Transformations","default":{"__missing__":"__missing__"}},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Metadata","default":{"__missing__":"__missing__"}},"baseline_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"$ref":"#\/components\/schemas\/Missing"},{"type":"null"}],"title":"Baseline Experiment Id","default":{"__missing__":"__missing__"}}},"type":"object","title":"DatasetUpdate","description":"Update class for Dataset."},"DatasetVersion":{"properties":{"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"as_of":{"type":"string","format":"date-time","title":"As Of"}},"type":"object","required":["as_of"],"title":"DatasetVersion","description":"Dataset version schema."},"DeleteClusteringJobConfigResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","message"],"title":"DeleteClusteringJobConfigResponse","description":"Response to delete a clustering job config."},"DeleteRunClusteringJobResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","message"],"title":"DeleteRunClusteringJobResponse","description":"Response to delete a session cluster job."},"DemoConfig":{"properties":{"message_index":{"type":"integer","title":"Message Index"},"metaprompt":{"additionalProperties":true,"type":"object","title":"Metaprompt"},"examples":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Examples"},"overall_feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall Feedback"}},"type":"object","required":["message_index","metaprompt","examples","overall_feedback"],"title":"DemoConfig"},"EPromptOptimizationAlgorithm":{"type":"string","enum":["promptim","demo"],"title":"EPromptOptimizationAlgorithm"},"EPromptOptimizationJobLogType":{"type":"string","enum":["info","result","error","link"],"title":"EPromptOptimizationJobLogType"},"EPromptOptimizationJobStatus":{"type":"string","enum":["created","running","successful","failed"],"title":"EPromptOptimizationJobStatus"},"EPromptWebhookTrigger":{"type":"string","enum":["commit","tag:create","tag:update"],"title":"EPromptWebhookTrigger","description":"Valid trigger types for prompt webhooks."},"EvaluateExperimentRequest":{"properties":{"rule_id":{"type":"string","format":"uuid","title":"Rule Id"}},"type":"object","required":["rule_id"],"title":"EvaluateExperimentRequest","description":"Request body for evaluating an experiment."},"EvaluatorSpendDefaultBody":{"properties":{"limit_usd":{"type":"number","exclusiveMinimum":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":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hub Ref"},"prompt":{"anyOf":[{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"type":"null"}],"title":"Prompt"},"template_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Format"},"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema"},"variable_mapping":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Variable Mapping"},"model":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Model"},"playground_settings_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Configuration ID"}},"type":"object","title":"EvaluatorStructuredOutput","description":"Evaluator structured output schema."},"EvaluatorTopLevel":{"properties":{"structured":{"$ref":"#\/components\/schemas\/EvaluatorStructuredOutput"}},"type":"object","required":["structured"],"title":"EvaluatorTopLevel"},"Example":{"properties":{"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"source_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"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":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"attachment_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attachment Urls"}},"type":"object","required":["dataset_id","inputs","id","name"],"title":"Example","description":"Example schema."},"ExampleGroupWithSessions":{"properties":{"filter":{"type":"string","title":"Filter"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"min_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Min Start Time"},"max_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Max Start Time"},"latency_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P50"},"latency_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P99"},"feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"group_key":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"}],"title":"Group Key"},"sessions":{"items":{"$ref":"#\/components\/schemas\/GroupedRunsSessionStats"},"type":"array","title":"Sessions"},"examples":{"items":{"$ref":"#\/components\/schemas\/ExampleWithRunsCH"},"type":"array","title":"Examples"},"example_count":{"type":"integer","title":"Example Count"},"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"}},"type":"object","required":["filter","group_key","sessions","examples","example_count"],"title":"ExampleGroupWithSessions","description":"Group of examples with a specific metadata value across multiple sessions.\n\nExtends RunGroupBase with:\n- group_key: metadata value that defines this group\n- sessions: per-session stats for runs matching this metadata value\n- examples: shared examples across all sessions (intersection logic)\n            with flat array of runs (each run has session_id field for frontend to determine column)\n- example_count: unique example count (pagination-aware, same across all sessions due to intersection)\n\nInherited from RunGroupBase:\n- filter: metadata filter for this group (e.g., \"and(eq(is_root, true), and(eq(metadata_key, 'model'), eq(metadata_value, 'gpt-4')))\")\n- count: total run count across all sessions (includes duplicate runs)\n- total_tokens, total_cost: aggregate across sessions\n- min_start_time, max_start_time: time range across sessions\n- latency_p50, latency_p99: aggregate latency stats across sessions\n- feedback_stats: weighted average feedback across sessions\n\nAdditional aggregate stats:\n- prompt_tokens, completion_tokens: separate token counts\n- prompt_cost, completion_cost: separate costs\n- error_rate: average error rate"},"ExampleListOrder":{"type":"string","enum":["recent","random","recently_created","id"],"title":"ExampleListOrder"},"ExampleSelect":{"type":"string","enum":["id","created_at","modified_at","name","dataset_id","source_run_id","source_session_id","source_run_start_time","source_trace_id","metadata","inputs","outputs","attachment_urls"],"title":"ExampleSelect"},"ExampleUpdate":{"properties":{"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"attachments_operations":{"anyOf":[{"$ref":"#\/components\/schemas\/AttachmentsOperations"},{"type":"null"}]},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"split":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Split"},"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"type":"object","title":"ExampleUpdate","description":"Update class for Example."},"ExampleUpdateWithID":{"properties":{"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"attachments_operations":{"anyOf":[{"$ref":"#\/components\/schemas\/AttachmentsOperations"},{"type":"null"}]},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"split":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Split"},"overwrite":{"type":"boolean","title":"Overwrite","default":false},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["id"],"title":"ExampleUpdateWithID","description":"Bulk update class for Example (includes example id)."},"ExampleValidationResult":{"properties":{"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"source_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Run Id"},"split":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Split","default":"base"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"use_source_run_io":{"type":"boolean","title":"Use Source Run Io","default":false},"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"type":"object","title":"ExampleValidationResult","description":"Validation result for Example, combining fields from Create\/Base\/Update schemas."},"ExampleWithRunsCH":{"properties":{"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"source_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"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":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"attachment_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attachment Urls"},"runs":{"items":{"$ref":"#\/components\/schemas\/RunSchemaComparisonView"},"type":"array","title":"Runs"}},"type":"object","required":["dataset_id","inputs","id","name","runs"],"title":"ExampleWithRunsCH","description":"Example schema with list of runs from ClickHouse.\n\nFor non-grouped endpoint (\/datasets\/{dataset_id}\/runs): runs from single session.\nFor grouped endpoint (\/datasets\/{dataset_id}\/group\/runs): flat array of runs from\nall sessions, where each run has a session_id field for frontend to determine column placement."},"ExperimentProgress":{"properties":{"expected_run_count":{"type":"integer","title":"Expected Run Count"},"run_progress":{"type":"number","title":"Run Progress"},"evaluator_progress":{"additionalProperties":{"type":"number"},"type":"object","title":"Evaluator Progress"}},"type":"object","required":["expected_run_count","run_progress","evaluator_progress"],"title":"ExperimentProgress"},"ExperimentResultRow":{"properties":{"row_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Row Id"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs"},"expected_outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Expected Outputs"},"actual_outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Actual Outputs"},"evaluation_scores":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/FeedbackCreateCoreSchema"},"type":"array"},{"type":"null"}],"title":"Evaluation Scores"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"run_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Name"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"run_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Run Metadata"}},"type":"object","required":["inputs","start_time","end_time"],"title":"ExperimentResultRow","description":"Class for a single row in the uploaded experiment results."},"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"},"experiment_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experiment Description"},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name"},"dataset_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Description"},"summary_experiment_scores":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/FeedbackCreateCoreSchema"},"type":"array"},{"type":"null"}],"title":"Summary Experiment Scores"},"results":{"items":{"$ref":"#\/components\/schemas\/ExperimentResultRow"},"type":"array","title":"Results"},"experiment_start_time":{"type":"string","format":"date-time","title":"Experiment Start Time"},"experiment_end_time":{"type":"string","format":"date-time","title":"Experiment End Time"},"experiment_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Experiment Metadata"}},"type":"object","required":["experiment_name","results","experiment_start_time","experiment_end_time"],"title":"ExperimentResultsUpload","description":"Class for uploading the results of an already-run experiment."},"ExperimentResultsUploadResult":{"properties":{"dataset":{"$ref":"#\/components\/schemas\/Dataset"},"experiment":{"$ref":"#\/components\/schemas\/TracerSession"}},"type":"object","required":["dataset","experiment"],"title":"ExperimentResultsUploadResult","description":"Class for uploading the results of an already-run experiment."},"ExportAnnotationQueueRunsRequest":{"properties":{"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"},"include_annotator_detail":{"type":"boolean","title":"Include Annotator Detail","default":false}},"type":"object","title":"ExportAnnotationQueueRunsRequest","description":"Export annotation queue runs request schema."},"FeedbackCategory":{"properties":{"value":{"type":"number","title":"Value"},"label":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Label"}},"type":"object","required":["value"],"title":"FeedbackCategory","description":"Specific value and label pair for feedback"},"FeedbackConfig":{"properties":{"type":{"$ref":"#\/components\/schemas\/FeedbackType"},"min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min"},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max"},"categories":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/FeedbackCategory"},"type":"array"},{"type":"null"}],"title":"Categories"}},"type":"object","required":["type"],"title":"FeedbackConfig"},"FeedbackConfigSchema":{"properties":{"feedback_key":{"type":"string","title":"Feedback Key"},"feedback_config":{"$ref":"#\/components\/schemas\/FeedbackConfig"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"is_lower_score_better":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Lower Score Better"}},"type":"object","required":["feedback_key","feedback_config","tenant_id","modified_at"],"title":"FeedbackConfigSchema"},"FeedbackCreateCoreSchema":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"key":{"type":"string","maxLength":180,"title":"Key"},"score":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}],"title":"Score"},"value":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Value"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"correction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Correction"},"feedback_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Feedback Group Id"},"comparative_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparative Experiment Id"},"id":{"type":"string","format":"uuid","title":"Id"},"feedback_source":{"anyOf":[{"oneOf":[{"$ref":"#\/components\/schemas\/AppFeedbackSource"},{"$ref":"#\/components\/schemas\/APIFeedbackSource"},{"$ref":"#\/components\/schemas\/ModelFeedbackSource"},{"$ref":"#\/components\/schemas\/AutoEvalFeedbackSource"}],"discriminator":{"propertyName":"type","mapping":{"api":"#\/components\/schemas\/APIFeedbackSource","app":"#\/components\/schemas\/AppFeedbackSource","auto_eval":"#\/components\/schemas\/AutoEvalFeedbackSource","model":"#\/components\/schemas\/ModelFeedbackSource"}}},{"type":"null"}],"title":"Feedback Source"},"feedback_config":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackConfig"},{"type":"null"}]},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"}},"type":"object","required":["key"],"title":"FeedbackCreateCoreSchema","description":"Schema used for creating feedback without run id or session id."},"FeedbackCreateSchema":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"key":{"type":"string","maxLength":180,"title":"Key"},"score":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}],"title":"Score"},"value":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Value"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"correction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Correction"},"feedback_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Feedback Group Id"},"comparative_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparative Experiment Id"},"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"trace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trace Id"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"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","title":"Id"},"feedback_source":{"anyOf":[{"oneOf":[{"$ref":"#\/components\/schemas\/AppFeedbackSource"},{"$ref":"#\/components\/schemas\/APIFeedbackSource"},{"$ref":"#\/components\/schemas\/ModelFeedbackSource"},{"$ref":"#\/components\/schemas\/AutoEvalFeedbackSource"}],"discriminator":{"propertyName":"type","mapping":{"api":"#\/components\/schemas\/APIFeedbackSource","app":"#\/components\/schemas\/AppFeedbackSource","auto_eval":"#\/components\/schemas\/AutoEvalFeedbackSource","model":"#\/components\/schemas\/ModelFeedbackSource"}}},{"type":"null"}],"title":"Feedback Source"},"feedback_config":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackConfig"},{"type":"null"}]},"error":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Error"}},"type":"object","required":["key"],"title":"FeedbackCreateSchema","description":"Schema used for creating feedback."},"FeedbackCreateWithTokenExtendedSchema":{"properties":{"score":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}],"title":"Score"},"extend_trace_retention":{"type":"boolean","title":"Extend Trace Retention","default":true},"value":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Value"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"correction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Correction"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"FeedbackCreateWithTokenExtendedSchema","description":"Feedback create schema with token."},"FeedbackDelta":{"properties":{"improved_examples":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Improved Examples"},"regressed_examples":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Regressed Examples"}},"type":"object","required":["improved_examples","regressed_examples"],"title":"FeedbackDelta","description":"Feedback key with number of improvements and regressions."},"FeedbackFormula":{"properties":{"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"feedback_key":{"type":"string","title":"Feedback Key"},"aggregation_type":{"type":"string","enum":["sum","avg"],"title":"Aggregation Type"},"formula_parts":{"items":{"$ref":"#\/components\/schemas\/FeedbackFormulaWeightedVariable"},"type":"array","maxItems":50,"minItems":1,"title":"Formula Parts"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["feedback_key","aggregation_type","formula_parts","id","created_at","modified_at"],"title":"FeedbackFormula"},"FeedbackFormulaCreate":{"properties":{"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"feedback_key":{"type":"string","title":"Feedback Key"},"aggregation_type":{"type":"string","enum":["sum","avg"],"title":"Aggregation Type"},"formula_parts":{"items":{"$ref":"#\/components\/schemas\/FeedbackFormulaWeightedVariable"},"type":"array","maxItems":50,"minItems":1,"title":"Formula Parts"}},"type":"object","required":["feedback_key","aggregation_type","formula_parts"],"title":"FeedbackFormulaCreate"},"FeedbackFormulaUpdate":{"properties":{"feedback_key":{"type":"string","title":"Feedback Key"},"aggregation_type":{"type":"string","enum":["sum","avg"],"title":"Aggregation Type"},"formula_parts":{"items":{"$ref":"#\/components\/schemas\/FeedbackFormulaWeightedVariable"},"type":"array","maxItems":50,"minItems":1,"title":"Formula Parts"}},"type":"object","required":["feedback_key","aggregation_type","formula_parts"],"title":"FeedbackFormulaUpdate"},"FeedbackFormulaWeightedVariable":{"properties":{"part_type":{"type":"string","const":"weighted_key","title":"Part Type"},"weight":{"type":"number","title":"Weight"},"key":{"type":"string","minLength":1,"title":"Key"}},"type":"object","required":["part_type","weight","key"],"title":"FeedbackFormulaWeightedVariable"},"FeedbackIngestTokenCreateSchema":{"properties":{"expires_in":{"anyOf":[{"$ref":"#\/components\/schemas\/TimedeltaInput"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"feedback_key":{"type":"string","title":"Feedback Key"},"feedback_config":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackConfig"},{"type":"null"}]}},"type":"object","required":["run_id","feedback_key"],"title":"FeedbackIngestTokenCreateSchema","description":"Feedback ingest token create schema."},"FeedbackIngestTokenSchema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"feedback_key":{"type":"string","title":"Feedback Key"}},"type":"object","required":["id","url","expires_at","feedback_key"],"title":"FeedbackIngestTokenSchema","description":"Feedback ingest token schema."},"FeedbackLevel":{"type":"string","enum":["run","session"],"title":"FeedbackLevel","description":"Enum for feedback levels."},"FeedbackSchema":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"key":{"type":"string","title":"Key"},"score":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}],"title":"Score"},"value":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Value"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"correction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Correction"},"feedback_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Feedback Group Id"},"comparative_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparative Experiment Id"},"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"id":{"type":"string","format":"uuid","title":"Id"},"trace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trace Id"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"is_root":{"type":"boolean","title":"Is Root","default":false},"feedback_source":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackSource"},{"type":"null"}]},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"feedback_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Thread Id"}},"type":"object","required":["key","id"],"title":"FeedbackSchema","description":"Schema for getting feedback."},"FeedbackSource":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ls User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"}},"type":"object","title":"FeedbackSource","description":"The feedback source loaded from the database."},"FeedbackSourceParam":{"type":"string","enum":["session","run"],"title":"FeedbackSourceParam"},"FeedbackType":{"type":"string","enum":["continuous","categorical","freeform"],"title":"FeedbackType","description":"Enum for feedback types."},"FeedbackUpdateSchema":{"properties":{"score":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"null"}],"title":"Score"},"value":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"boolean"},{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Value"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"correction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Correction"},"feedback_config":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackConfig"},{"type":"null"}]}},"type":"object","title":"FeedbackUpdateSchema","description":"Schema used for updating feedback"},"FetchClusteringJobRunsResult":{"properties":{"runs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Runs"},"offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},"type":"object","required":["runs","offset"],"title":"FetchClusteringJobRunsResult"},"FilterView":{"properties":{"filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter String"},"trace_filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Filter String"},"tree_filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tree Filter String"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"$ref":"#\/components\/schemas\/FilterViewType","default":"runs"},"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"},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"},"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["display_name","id","created_at","updated_at"],"title":"FilterView"},"FilterViewCreate":{"properties":{"filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter String"},"trace_filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Filter String"},"tree_filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tree Filter String"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"$ref":"#\/components\/schemas\/FilterViewType","default":"runs"},"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"},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"}},"type":"object","required":["display_name"],"title":"FilterViewCreate"},"FilterViewRename":{"properties":{"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["display_name"],"title":"FilterViewRename"},"FilterViewType":{"type":"string","enum":["runs","threads","single_run"],"title":"FilterViewType"},"FilterViewUpdate":{"properties":{"filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter String"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"trace_filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Filter String"},"tree_filter_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tree Filter String"},"type":{"anyOf":[{"$ref":"#\/components\/schemas\/FilterViewType"},{"type":"null"}]},"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"},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"}},"type":"object","title":"FilterViewUpdate"},"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"},"readme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readme"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public"}},"type":"object","required":["repo_handle"],"title":"ForkRepoRequest","description":"Fields to fork a repo"},"FunctionMessage":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"function","title":"Type","default":"function"},"name":{"type":"string","title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["content","name"],"title":"FunctionMessage","description":"Message for passing the result of executing a tool back to a model.\n\n`FunctionMessage` are an older version of the `ToolMessage` schema, and\ndo not contain the `tool_call_id` field.\n\nThe `tool_call_id` field is used to associate the tool call request with the\ntool call response. Useful in situations where a chat model is able\nto request multiple tool calls in parallel."},"FunctionMessageChunk":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"FunctionMessageChunk","title":"Type","default":"FunctionMessageChunk"},"name":{"type":"string","title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["content","name"],"title":"FunctionMessageChunk","description":"Function Message chunk."},"GenerateClusteringJobConfigRequest":{"properties":{"user_context":{"additionalProperties":{"type":"string"},"type":"object","title":"User Context"},"model":{"type":"string","enum":["openai","anthropic"],"title":"Model","default":"openai"},"cluster_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Model"},"summary_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Model"}},"type":"object","required":["user_context"],"title":"GenerateClusteringJobConfigRequest","description":"Request to auto-generate a clustering job config."},"GenerateClusteringJobConfigResponse":{"properties":{"summary_prompt":{"type":"string","title":"Summary Prompt"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"attribute_schemas":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Attribute Schemas"}},"type":"object","required":["summary_prompt"],"title":"GenerateClusteringJobConfigResponse","description":"Auto-generated clustering job config (not persisted; frontend creates the config)."},"GenerateSyntheticExamplesBody":{"properties":{"example_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Example Ids"},"num_examples":{"type":"integer","title":"Num Examples"}},"type":"object","required":["num_examples"],"title":"GenerateSyntheticExamplesBody"},"GetClusteringJobConfigsResponse":{"properties":{"configs":{"items":{"$ref":"#\/components\/schemas\/ClusteringJobConfigResponse"},"type":"array","title":"Configs"}},"type":"object","required":["configs"],"title":"GetClusteringJobConfigsResponse","description":"Response to get clustering job configs."},"GetDatasetsSelect":{"type":"string","enum":["example_count"],"title":"GetDatasetsSelect"},"GetRepoResponse":{"properties":{"repo":{"$ref":"#\/components\/schemas\/RepoWithLookups"}},"type":"object","required":["repo"],"title":"GetRepoResponse"},"GetRunClusterResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"num_children":{"type":"integer","title":"Num Children"},"level":{"type":"integer","title":"Level"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["id","num_children","level","name","description"],"title":"GetRunClusterResponse","description":"Response to get a specific cluster from a specific cluster job."},"GetRunClusteringJobResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"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"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"shape":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Shape"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"config_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Config Id"},"clusters":{"items":{"$ref":"#\/components\/schemas\/RunCluster"},"type":"array","title":"Clusters"},"report":{"anyOf":[{"$ref":"#\/components\/schemas\/InsightsSummary"},{"type":"null"}]}},"type":"object","required":["id","name","status","created_at","clusters"],"title":"GetRunClusteringJobResponse","description":"Response to get a specific cluster job for a session."},"GetRunClusteringJobsResponse":{"properties":{"clustering_jobs":{"items":{"$ref":"#\/components\/schemas\/RunClusteringJobPydantic"},"type":"array","title":"Clustering Jobs"}},"type":"object","required":["clustering_jobs"],"title":"GetRunClusteringJobsResponse","description":"Response to get all cluster jobs for a session."},"GranularUsageDimensions":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"api_key_short_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Short Key"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]}},"type":"object","title":"GranularUsageDimensions","description":"Dimension values for a granular usage record."},"GranularUsageGroupBy":{"type":"string","enum":["user","api_key","project","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 \u2014 existing callers of\n`GET \/granular-usage` without a `kind` query param get the same\nresponse shape they always did."},"GranularUsageRecord":{"properties":{"time_bucket":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Time Bucket"},"dimensions":{"$ref":"#\/components\/schemas\/GranularUsageDimensions"},"traces":{"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","required":["dimensions"],"title":"GranularUsageRecord","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":{"stride":{"$ref":"#\/components\/schemas\/GranularUsageStride"},"usage":{"items":{"$ref":"#\/components\/schemas\/GranularUsageRecord"},"type":"array","title":"Usage"}},"type":"object","required":["stride","usage"],"title":"GranularUsageResponse","description":"Response for granular usage query."},"GranularUsageStride":{"properties":{"days":{"type":"integer","title":"Days","default":0},"hours":{"type":"integer","title":"Hours","default":0}},"type":"object","title":"GranularUsageStride","description":"Stride configuration for time bucketing - only ONE field should be non-zero."},"GroupExampleRunsByField":{"type":"string","enum":["run_metadata","example_metadata"],"title":"GroupExampleRunsByField"},"GroupedExamplesWithRunsResponse":{"properties":{"groups":{"items":{"$ref":"#\/components\/schemas\/ExampleGroupWithSessions"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"GroupedExamplesWithRunsResponse","description":"Response for grouped comparison view of dataset examples.\n\nReturns dataset examples grouped by a run metadata value (e.g., model='gpt-4').\nOptional filters are applied to all runs before grouping.\n\nShows:\n- Which examples were executed with each metadata value\n- Per-session aggregate statistics for runs on those examples\n- The actual example data with their associated runs\n\nUsed for comparing how different sessions performed on the same set of examples."},"GroupedExperimentsRequest":{"properties":{"stats_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stats Start Time"},"name_contains":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Contains"},"tag_value_id":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Tag Value Id"},"dataset_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Version"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"},"use_approx_stats":{"type":"boolean","title":"Use Approx Stats","default":false},"metadata_keys":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1,"title":"Metadata Keys"},"experiment_limit":{"type":"integer","maximum":1000,"minimum":1,"title":"Experiment Limit","default":1000}},"type":"object","required":["metadata_keys"],"title":"GroupedExperimentsRequest","description":"Schema for grouped experiment (tracer session) query."},"GroupedRunsSessionStats":{"properties":{"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset Id"},"reference_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Dataset Id"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]},"id":{"type":"string","format":"uuid","title":"Id"},"run_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run Count"},"latency_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P50"},"latency_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P99"},"first_token_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P50"},"first_token_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P99"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"last_run_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run Start Time"},"last_run_start_time_live":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run Start Time Live"},"feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"session_feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Session Feedback Stats"},"run_facets":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Run Facets"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"},"streaming_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Streaming Rate"},"test_run_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Test Run Number"},"experiment_progress":{"anyOf":[{"$ref":"#\/components\/schemas\/ExperimentProgress"},{"type":"null"}]},"example_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Example Count"},"filter":{"type":"string","title":"Filter"},"min_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Min Start Time"},"max_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Max Start Time"}},"type":"object","required":["id","tenant_id","filter"],"title":"GroupedRunsSessionStats","description":"TracerSession stats filtered to runs matching a specific metadata value.\n\nExtends TracerSession with:\n- example_count: unique examples (vs run_count = total runs including duplicates)\n- filter: ClickHouse filter for fetching runs in this session\/group\n- min\/max_start_time: time range for runs in this session\/group"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#\/components\/schemas\/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthInfoGetResponse":{"properties":{"clickhouse_disk_free_pct":{"type":"number","title":"Clickhouse Disk Free Pct"}},"type":"object","required":["clickhouse_disk_free_pct"],"title":"HealthInfoGetResponse","description":"The LangSmith server info."},"Highlight":{"properties":{"prompt_chunk_start_index":{"type":"integer","title":"Prompt Chunk Start Index"},"prompt_chunk_end_index":{"type":"integer","title":"Prompt Chunk End Index"},"prompt_chunk":{"type":"string","title":"Prompt Chunk"},"highlight_text":{"type":"string","title":"Highlight Text"}},"type":"object","required":["prompt_chunk_start_index","prompt_chunk_end_index","prompt_chunk","highlight_text"],"title":"Highlight"},"HighlightedRun":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cluster Id"},"cluster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Name"},"rank":{"type":"integer","title":"Rank"},"highlight_reason":{"type":"string","title":"Highlight Reason"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["run_id","rank","highlight_reason"],"title":"HighlightedRun","description":"A trace highlighted in an insights report summary. Up to 10 per insights job."},"HostProjectChartMetric":{"type":"string","enum":["memory_usage","cpu_usage","disk_usage","restart_count","replica_count","worker_count","lg_run_count","responses_per_second","error_responses_per_second","p95_latency","run_queue_wait_time"],"title":"HostProjectChartMetric","description":"LGP Metrics you can chart."},"HumanMessage":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"human","title":"Type","default":"human"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["content"],"title":"HumanMessage","description":"Message from the user.\n\nA `HumanMessage` is a message that is passed in from a user to the model.\n\nExample:\n    ```python\n    from langchain_core.messages import HumanMessage, SystemMessage\n\n    messages = [\n        SystemMessage(content=\"You are a helpful assistant! Your name is Bob.\"),\n        HumanMessage(content=\"What is your name?\"),\n    ]\n\n    # Instantiate a chat model and invoke it with the messages\n    model = ...\n    print(model.invoke(messages))\n    ```"},"HumanMessageChunk":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"HumanMessageChunk","title":"Type","default":"HumanMessageChunk"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["content"],"title":"HumanMessageChunk","description":"Human Message chunk."},"Identity":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"ls_user_id":{"type":"string","format":"uuid","title":"Ls User Id"},"read_only":{"type":"boolean","title":"Read Only","deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"access_scope":{"$ref":"#\/components\/schemas\/AccessScope","default":"workspace"}},"type":"object","required":["id","organization_id","created_at","user_id","ls_user_id","read_only"],"title":"Identity"},"IdentityAnnotationQueueRunStatusCreateSchema":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"override_added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Override Added At"}},"type":"object","title":"IdentityAnnotationQueueRunStatusCreateSchema","description":"Identity annotation queue run status create schema."},"IdentityCreate":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id","deprecated":true},"org_identity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Identity Id"},"ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ls User Id"},"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only","deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"}},"type":"object","title":"IdentityCreate"},"IdentityPatch":{"properties":{"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only","deprecated":true},"role_id":{"type":"string","format":"uuid","title":"Role Id"}},"type":"object","required":["role_id"],"title":"IdentityPatch"},"InfoGetResponse":{"properties":{"version":{"type":"string","title":"Version"},"git_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Git Sha"},"license_expiration_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"License Expiration Time"},"batch_ingest_config":{"$ref":"#\/components\/schemas\/BatchIngestConfig","default":{"use_multipart_endpoint":true,"scale_up_qsize_trigger":1000,"scale_up_nthreads_limit":16,"scale_down_nempty_trigger":4,"size_limit":100,"size_limit_bytes":20971520}},"instance_flags":{"additionalProperties":true,"type":"object","title":"Instance Flags"},"customer_info":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomerInfo"},{"type":"null"}]}},"type":"object","required":["version"],"title":"InfoGetResponse","description":"The LangSmith server info."},"InputTokenDetails":{"properties":{"audio":{"type":"integer","title":"Audio"},"cache_creation":{"type":"integer","title":"Cache Creation"},"cache_read":{"type":"integer","title":"Cache Read"}},"type":"object","title":"InputTokenDetails","description":"Breakdown of input token counts.\n\nDoes *not* need to sum to full input token count. Does *not* need to have all keys.\n\nExample:\n    ```python\n    {\n        \"audio\": 10,\n        \"cache_creation\": 200,\n        \"cache_read\": 100,\n    }\n    ```\n\nMay also hold extra provider-specific keys.\n\n!!! version-added \"Added in `langchain-core` 0.3.9\""},"InsightsSummary":{"properties":{"key_points":{"items":{"type":"string"},"type":"array","title":"Key Points"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"highlighted_traces":{"items":{"$ref":"#\/components\/schemas\/HighlightedRun"},"type":"array","title":"Highlighted Traces"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","title":"InsightsSummary","description":"High level summary of an insights job that pulls out patterns and specific traces."},"InternalSecretsResponse":{"properties":{"encrypted_secrets":{"type":"string","title":"Encrypted Secrets"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["encrypted_secrets"],"title":"InternalSecretsResponse"},"InvalidToolCall":{"properties":{"type":{"type":"string","const":"invalid_tool_call","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"args":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Args"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"index":{"anyOf":[{"type":"integer"},{"type":"string"}],"title":"Index"},"extras":{"additionalProperties":true,"type":"object","title":"Extras"}},"type":"object","required":["type","id","name","args","error"],"title":"InvalidToolCall","description":"Allowance for errors made by LLM.\n\nHere we add an `error` key to surface errors made during generation\n(e.g., invalid JSON arguments.)"},"InvokePromptPayload":{"properties":{"messages":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Messages"},"template_format":{"type":"string","title":"Template Format"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs"}},"type":"object","required":["messages","template_format","inputs"],"title":"InvokePromptPayload"},"LikeRepoRequest":{"properties":{"like":{"type":"boolean","title":"Like"}},"type":"object","required":["like"],"title":"LikeRepoRequest"},"LikeRepoResponse":{"properties":{"likes":{"type":"integer","title":"Likes"}},"type":"object","required":["likes"],"title":"LikeRepoResponse"},"ListAuditLogsOCSFResponse":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"items":{"items":{"$ref":"#\/components\/schemas\/OCSFApiActivity"},"type":"array","title":"Items"}},"type":"object","required":["cursor","items"],"title":"ListAuditLogsOCSFResponse","description":"Response model for listing audit logs in OCSF format with pagination."},"ListCommentsResponse":{"properties":{"comments":{"items":{"$ref":"#\/components\/schemas\/Comment"},"type":"array","title":"Comments"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["comments","total"],"title":"ListCommentsResponse"},"ListPublicDatasetRunsResponse":{"properties":{"runs":{"items":{"$ref":"#\/components\/schemas\/RunPublicDatasetSchema"},"type":"array","title":"Runs"},"cursors":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Cursors"},"parsed_query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Query"}},"type":"object","required":["runs","cursors"],"title":"ListPublicDatasetRunsResponse"},"ListPublicRunsResponse":{"properties":{"runs":{"items":{"$ref":"#\/components\/schemas\/RunPublicSchema"},"type":"array","title":"Runs"},"cursors":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Cursors"},"parsed_query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Query"}},"type":"object","required":["runs","cursors"],"title":"ListPublicRunsResponse"},"ListRepoOwnersResponse":{"properties":{"owners":{"items":{"$ref":"#\/components\/schemas\/RepoOwner"},"type":"array","title":"Owners"}},"type":"object","required":["owners"],"title":"ListRepoOwnersResponse","description":"Response for listing repo owners."},"ListReposResponse":{"properties":{"repos":{"items":{"$ref":"#\/components\/schemas\/RepoWithLookups"},"type":"array","title":"Repos"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["repos","total"],"title":"ListReposResponse"},"ListRunsResponse":{"properties":{"runs":{"items":{"$ref":"#\/components\/schemas\/RunSchema"},"type":"array","title":"Runs"},"cursors":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Cursors"},"search_cursors":{"anyOf":[{"additionalProperties":{"anyOf":[{},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Search Cursors"},"parsed_query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Query"}},"type":"object","required":["runs","cursors"],"title":"ListRunsResponse"},"ListTagsForResourceRequest":{"properties":{"resource_id":{"type":"string","format":"uuid","title":"Resource Id"},"resource_type":{"$ref":"#\/components\/schemas\/ResourceType"}},"type":"object","required":["resource_id","resource_type"],"title":"ListTagsForResourceRequest"},"ListTagsResponse":{"properties":{"tags":{"items":{"$ref":"#\/components\/schemas\/TagCount"},"type":"array","title":"Tags"}},"type":"object","required":["tags"],"title":"ListTagsResponse"},"MemberIdentity":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"ls_user_id":{"type":"string","format":"uuid","title":"Ls User Id"},"read_only":{"type":"boolean","title":"Read Only","deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"access_scope":{"$ref":"#\/components\/schemas\/AccessScope","default":"workspace"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"linked_login_methods":{"items":{"$ref":"#\/components\/schemas\/ProviderUserSlim"},"type":"array","title":"Linked Login Methods","default":[]},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"is_disabled":{"type":"boolean","title":"Is Disabled","default":false},"org_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Role Id"},"org_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Role Name"}},"type":"object","required":["id","organization_id","created_at","user_id","ls_user_id","read_only"],"title":"MemberIdentity"},"MemberSortField":{"type":"string","enum":["name","email","role","created_at"],"title":"MemberSortField","description":"Sort fields for members list endpoints."},"Missing":{"properties":{"__missing__":{"type":"string","const":"__missing__","title":"Missing"}},"type":"object","required":["__missing__"],"title":"Missing"},"ModelFeedbackSource":{"properties":{"type":{"type":"string","const":"model","title":"Type","default":"model"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"ModelFeedbackSource","description":"Model feedback source."},"ModelPriceMapCreateSchema":{"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"}],"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."},"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","title":"Prompt Cost"},"completion_cost":{"type":"string","title":"Completion Cost"},"prompt_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Prompt Cost Details"},"completion_cost_details":{"anyOf":[{"additionalProperties":{"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":"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"}],"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":"ModelPriceMapUpdateSchema","description":"Model price map update schema."},"OCSFActivityId":{"type":"integer","enum":[0,1,2,3,4,99],"title":"OCSFActivityId","description":"Activity types for API Activity class."},"OCSFActor":{"properties":{"user":{"$ref":"#\/components\/schemas\/OCSFUser"}},"type":"object","required":["user"],"title":"OCSFActor","description":"OCSF actor object."},"OCSFApi":{"properties":{"operation":{"$ref":"#\/components\/schemas\/AuditLogOperation","x-extensible-enum":true}},"type":"object","required":["operation"],"title":"OCSFApi","description":"OCSF API details object."},"OCSFApiActivity":{"properties":{"class_uid":{"$ref":"#\/components\/schemas\/OCSFClassUid"},"class_name":{"$ref":"#\/components\/schemas\/OCSFClassName"},"category_uid":{"$ref":"#\/components\/schemas\/OCSFCategoryUid"},"category_name":{"$ref":"#\/components\/schemas\/OCSFCategoryName"},"severity_id":{"$ref":"#\/components\/schemas\/OCSFSeverityId"},"type_uid":{"$ref":"#\/components\/schemas\/OCSFTypeUid"},"activity_id":{"$ref":"#\/components\/schemas\/OCSFActivityId"},"activity_name":{"type":"string","title":"Activity Name"},"status_id":{"$ref":"#\/components\/schemas\/OCSFStatusId"},"status":{"type":"string","title":"Status"},"time":{"type":"integer","title":"Time"},"metadata":{"$ref":"#\/components\/schemas\/OCSFMetadata"},"api":{"$ref":"#\/components\/schemas\/OCSFApi"},"http_request":{"$ref":"#\/components\/schemas\/OCSFHttpRequest"},"http_response":{"$ref":"#\/components\/schemas\/OCSFHttpResponse"},"actor":{"$ref":"#\/components\/schemas\/OCSFActor"},"src_endpoint":{"$ref":"#\/components\/schemas\/OCSFEndpoint"},"resources":{"items":{"$ref":"#\/components\/schemas\/OCSFResourceDetails"},"type":"array","title":"Resources"},"unmapped":{"$ref":"#\/components\/schemas\/OCSFUnmapped"}},"type":"object","required":["class_uid","class_name","category_uid","category_name","severity_id","type_uid","activity_id","activity_name","status_id","status","time","metadata","api","http_request","http_response","actor","src_endpoint","resources","unmapped"],"title":"OCSFApiActivity","description":"OCSF API Activity event (Class UID: 6003).\n\nThis represents an API call event in the OCSF format.\nReference: https:\/\/schema.ocsf.io\/1.7.0\/classes\/api_activity\n\nRemember to try to validate the OCSF event against the official OCSF schema validator API: https:\/\/schema.ocsf.io\/doc\/index.html#\/Tools\/SchemaWeb.SchemaController.validate\nOr with `test_ocsf_validates_against_schema()` in test_audit_logs_models.py."},"OCSFCategoryName":{"type":"string","enum":["Application Activity"],"title":"OCSFCategoryName","description":"OCSF category names."},"OCSFCategoryUid":{"type":"integer","enum":[6],"title":"OCSFCategoryUid","description":"OCSF category UIDs."},"OCSFClassName":{"type":"string","enum":["API Activity"],"title":"OCSFClassName","description":"OCSF class names."},"OCSFClassUid":{"type":"integer","enum":[6003],"title":"OCSFClassUid","description":"OCSF class UIDs."},"OCSFEndpoint":{"properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"intermediate_ips":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Intermediate Ips"}},"type":"object","required":["ip","port","intermediate_ips"],"title":"OCSFEndpoint","description":"OCSF network endpoint object."},"OCSFHttpRequest":{"properties":{"http_method":{"type":"string","title":"Http Method"},"url":{"$ref":"#\/components\/schemas\/OCSFUrl"}},"type":"object","required":["http_method","url"],"title":"OCSFHttpRequest","description":"OCSF HTTP request object."},"OCSFHttpResponse":{"properties":{"code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Code"}},"type":"object","required":["code"],"title":"OCSFHttpResponse","description":"OCSF HTTP response object."},"OCSFMetadata":{"properties":{"uid":{"type":"string","format":"uuid","title":"Uid"},"product":{"$ref":"#\/components\/schemas\/OCSFProduct"}},"type":"object","required":["uid","product"],"title":"OCSFMetadata","description":"OCSF event metadata."},"OCSFProduct":{"properties":{"name":{"type":"string","title":"Name"},"vendor_name":{"type":"string","title":"Vendor Name"}},"type":"object","required":["name","vendor_name"],"title":"OCSFProduct","description":"OCSF product object."},"OCSFResourceDetails":{"properties":{"uid":{"type":"string","format":"uuid","title":"Uid"}},"type":"object","required":["uid"],"title":"OCSFResourceDetails","description":"OCSF resource details object."},"OCSFSeverityId":{"type":"integer","enum":[99],"title":"OCSFSeverityId","description":"Severity levels for OCSF events."},"OCSFStatusId":{"type":"integer","enum":[0,1,2,99],"title":"OCSFStatusId","description":"Status values for OCSF events."},"OCSFTypeUid":{"type":"integer","enum":[600300,600301,600302,600303,600304,600399],"title":"OCSFTypeUid","description":"OCSF type UIDs for API Activity (class_uid * 100 + activity_id)."},"OCSFUnmapped":{"properties":{"original_audit_log":{"$ref":"#\/components\/schemas\/AuditLogMessage"}},"type":"object","required":["original_audit_log"],"title":"OCSFUnmapped","description":"OCSF unmapped attribute for source-specific data.\n\nReference: https:\/\/schema.ocsf.io\/1.7.0\/classes\/base_event"},"OCSFUrl":{"properties":{"path":{"type":"string","title":"Path"}},"type":"object","required":["path"],"title":"OCSFUrl","description":"OCSF URL object."},"OCSFUser":{"properties":{"uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Uid"},"credential_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credential Uid"}},"type":"object","required":["uid","credential_uid"],"title":"OCSFUser","description":"OCSF user object within actor."},"OptimizePromptJobRequest":{"properties":{"algorithm":{"$ref":"#\/components\/schemas\/EPromptOptimizationAlgorithm"},"config":{"anyOf":[{"$ref":"#\/components\/schemas\/PromptimConfig"},{"$ref":"#\/components\/schemas\/DemoConfig"}],"title":"Config"},"prompt_name":{"type":"string","title":"Prompt Name"}},"type":"object","required":["algorithm","config","prompt_name"],"title":"OptimizePromptJobRequest","description":"Request to optimize a prompt."},"OptimizePromptResponse":{"properties":{"optimization_job_id":{"type":"string","format":"uuid","title":"Optimization Job Id"}},"type":"object","required":["optimization_job_id"],"title":"OptimizePromptResponse","description":"Response from optimizing a prompt."},"OrgIdentityPatch":{"properties":{"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"}},"type":"object","title":"OrgIdentityPatch"},"OrgMemberIdentity":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"ls_user_id":{"type":"string","format":"uuid","title":"Ls User Id"},"read_only":{"type":"boolean","title":"Read Only","deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"access_scope":{"$ref":"#\/components\/schemas\/AccessScope","default":"workspace"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"linked_login_methods":{"items":{"$ref":"#\/components\/schemas\/ProviderUserSlim"},"type":"array","title":"Linked Login Methods","default":[]},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"is_disabled":{"type":"boolean","title":"Is Disabled","default":false},"org_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Role Id"},"org_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Role Name"},"tenant_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Tenant Ids","default":[]}},"type":"object","required":["id","organization_id","created_at","user_id","ls_user_id","read_only"],"title":"OrgMemberIdentity"},"OrgPendingIdentity":{"properties":{"email":{"type":"string","title":"Email"},"read_only":{"type":"boolean","title":"Read Only","default":false,"deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"workspace_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Workspace Ids"},"workspace_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Role Id"},"workspace_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Role Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"access_scope":{"$ref":"#\/components\/schemas\/AccessScope","default":"workspace"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"org_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Role Id"},"org_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Role Name"},"tenant_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Tenant Ids","default":[]}},"type":"object","required":["email","id","created_at"],"title":"OrgPendingIdentity"},"OrgUsage":{"properties":{"customer_id":{"type":"string","title":"Customer Id"},"billable_metric_id":{"type":"string","title":"Billable Metric Id"},"billable_metric_name":{"type":"string","title":"Billable Metric Name"},"start_timestamp":{"type":"string","title":"Start Timestamp"},"end_timestamp":{"type":"string","title":"End Timestamp"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"groups":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Groups"}},"type":"object","required":["customer_id","billable_metric_id","billable_metric_name","start_timestamp","end_timestamp","value","groups"],"title":"OrgUsage"},"Organization":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"config":{"$ref":"#\/components\/schemas\/OrganizationConfig"},"connected_to_stripe":{"type":"boolean","title":"Connected To Stripe"},"connected_to_metronome":{"type":"boolean","title":"Connected To Metronome"},"is_personal":{"type":"boolean","title":"Is Personal"},"tier":{"anyOf":[{"$ref":"#\/components\/schemas\/PaymentPlanTier"},{"type":"null"}]},"payment_method":{"anyOf":[{"$ref":"#\/components\/schemas\/StripePaymentMethodInfo"},{"type":"null"}]},"has_cancelled":{"type":"boolean","title":"Has Cancelled"},"end_of_billing_period":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Of Billing Period"},"current_plan":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomerVisiblePlanInfo"},{"type":"null"}]},"upcoming_plan":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomerVisiblePlanInfo"},{"type":"null"}]},"reached_max_workspaces":{"type":"boolean","title":"Reached Max Workspaces","default":false},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","default":[]},"marketplace_payouts_enabled":{"type":"boolean","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","default":false},"security_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Security Contact"},"scim_group_name_separator":{"type":"string","title":"Scim Group Name Separator","default":":"}},"type":"object","required":["config","connected_to_stripe","connected_to_metronome","is_personal","has_cancelled"],"title":"Organization","description":"Information about an organization."},"OrganizationBillingInfo":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"display_name":{"type":"string","title":"Display Name"},"config":{"$ref":"#\/components\/schemas\/OrganizationConfig"},"connected_to_stripe":{"type":"boolean","title":"Connected To Stripe"},"connected_to_metronome":{"type":"boolean","title":"Connected To Metronome"},"is_personal":{"type":"boolean","title":"Is Personal"},"tier":{"anyOf":[{"$ref":"#\/components\/schemas\/PaymentPlanTier"},{"type":"null"}]},"payment_method":{"anyOf":[{"$ref":"#\/components\/schemas\/StripePaymentMethodInfo"},{"type":"null"}]},"end_of_billing_period":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Of Billing Period"},"current_plan":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomerVisiblePlanInfo"},{"type":"null"}]},"upcoming_plan":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomerVisiblePlanInfo"},{"type":"null"}]},"reached_max_workspaces":{"type":"boolean","title":"Reached Max Workspaces","default":false},"disabled":{"type":"boolean","title":"Disabled","default":false},"default_sso_provision":{"type":"boolean","title":"Default Sso Provision","default":false},"plus_plan_transition":{"anyOf":[{"$ref":"#\/components\/schemas\/PlusPlanTransitionInfo"},{"type":"null"}]}},"type":"object","required":["display_name","config","connected_to_stripe","connected_to_metronome","is_personal"],"title":"OrganizationBillingInfo","description":"Information about an organization's billing configuration."},"OrganizationConfig":{"properties":{"plan_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Tier"},"engine_default_enabled":{"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","title":"Max Identities","default":5},"max_workspaces":{"type":"integer","title":"Max Workspaces","default":1},"can_use_rbac":{"type":"boolean","title":"Can Use Rbac","default":false},"can_use_abac":{"type":"boolean","title":"Can Use Abac","default":false},"can_use_audit_logs":{"type":"boolean","title":"Can Use Audit Logs","default":false},"can_add_seats":{"type":"boolean","title":"Can Add Seats","default":true},"startup_plan_approval_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startup Plan Approval Date"},"partner_plan_approval_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Plan Approval Date"},"premier_plan_approval_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Premier Plan Approval Date"},"can_disable_public_sharing":{"type":"boolean","title":"Can Disable Public Sharing","default":false},"can_use_langgraph_cloud":{"type":"boolean","title":"Can Use Langgraph Cloud","default":false},"max_langgraph_cloud_deployments":{"type":"integer","title":"Max Langgraph Cloud Deployments","default":3},"max_free_langgraph_cloud_deployments":{"type":"integer","title":"Max Free Langgraph Cloud Deployments","default":0},"sandbox_enabled":{"type":"boolean","title":"Sandbox Enabled","default":false},"max_sandboxes":{"type":"integer","title":"Max Sandboxes","default":10},"max_sandbox_cpu":{"type":"string","title":"Max Sandbox Cpu","default":"200"},"max_sandbox_memory":{"type":"string","title":"Max Sandbox Memory","default":"400Gi"},"can_use_saml_sso":{"type":"boolean","title":"Can Use Saml Sso","default":false},"can_use_bulk_export":{"type":"boolean","title":"Can Use Bulk Export","default":false},"show_updated_sidenav":{"type":"boolean","title":"Show Updated Sidenav","default":false},"show_updated_resource_tags":{"type":"boolean","title":"Show Updated Resource Tags","default":false},"kv_dataset_message_support":{"type":"boolean","title":"Kv Dataset Message Support","default":true},"show_playground_prompt_canvas":{"type":"boolean","title":"Show Playground Prompt Canvas","default":false},"allow_custom_iframes":{"type":"boolean","title":"Allow Custom Iframes","default":false},"byoc_enabled":{"type":"boolean","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","default":false},"enable_thread_view_playground":{"type":"boolean","title":"Enable Thread View Playground","default":false},"use_exact_search_for_prompts":{"type":"boolean","title":"Use Exact Search For Prompts","default":false},"langgraph_deploy_own_cloud_enabled":{"type":"boolean","title":"Langgraph Deploy Own Cloud Enabled","default":false},"prompt_optimization_jobs_enabled":{"type":"boolean","title":"Prompt Optimization Jobs Enabled","default":false},"demo_lgp_new_graph_enabled":{"type":"boolean","title":"Demo Lgp New Graph Enabled","default":false},"datadog_rum_session_sample_rate":{"type":"integer","title":"Datadog Rum Session Sample Rate","default":20},"langgraph_remote_reconciler_enabled":{"type":"boolean","title":"Langgraph Remote Reconciler Enabled","default":false},"langgraph_enterprise_enabled":{"type":"boolean","title":"Langgraph Enterprise Enabled","default":false},"langsmith_alerts_poc_enabled":{"type":"boolean","title":"Langsmith Alerts Poc Enabled","default":true},"tenant_skip_topk_facets":{"type":"boolean","title":"Tenant Skip Topk Facets","default":false},"lgp_templates_enabled":{"type":"boolean","title":"Lgp Templates Enabled","default":false},"enable_align_evaluators":{"type":"boolean","title":"Enable Align Evaluators","default":false},"enable_run_tree_streaming":{"type":"boolean","title":"Enable Run Tree Streaming","default":false},"enable_querying_v2_endpoints":{"type":"boolean","title":"Enable Querying V2 Endpoints","default":false},"enable_threads_improvements":{"type":"boolean","title":"Enable Threads Improvements","default":false},"max_prompt_webhooks":{"type":"integer","title":"Max Prompt Webhooks","default":1},"playground_evaluator_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playground Evaluator Strategy","default":"sync"},"can_set_api_key_max_expiry":{"type":"boolean","title":"Can Set Api Key Max Expiry","default":false},"can_use_llm_auth_proxy":{"type":"boolean","title":"Can Use Llm Auth Proxy","default":false},"can_restrict_browser_secrets":{"type":"boolean","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","default":3},"enable_lgp_listeners_page":{"type":"boolean","title":"Enable Lgp Listeners Page","default":false},"clio_enabled":{"type":"boolean","title":"Clio Enabled","default":false},"enable_markdown_in_tracing":{"type":"boolean","title":"Enable Markdown In Tracing","default":false},"enable_pricing_redesign":{"type":"boolean","title":"Enable Pricing Redesign","default":false},"arbitrary_cost_tracking_enabled":{"type":"boolean","title":"Arbitrary Cost Tracking Enabled","default":false},"langsmith_deployment_distributed_runtime_enabled":{"type":"boolean","title":"Langsmith Deployment Distributed Runtime Enabled","default":false},"agent_builder_enabled":{"type":"boolean","title":"Agent Builder Enabled","default":true},"fleet_builtin_models_enabled":{"type":"boolean","title":"Fleet Builtin Models 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"},"max_agent_builder_assistants":{"type":"integer","title":"Max Agent Builder Assistants","default":1000},"enable_granular_usage_reporting":{"type":"boolean","title":"Enable Granular Usage Reporting","default":false},"enable_burndown_vs_commit_view":{"type":"boolean","title":"Enable Burndown Vs Commit View","default":false},"max_agent_builder_runs":{"type":"integer","title":"Max Agent Builder Runs","default":-1},"langsmith_deployment_dr_enabled_dev":{"type":"boolean","title":"Langsmith Deployment Dr Enabled Dev","default":false},"ip_allowlist_enabled":{"type":"boolean","title":"Ip Allowlist Enabled","default":false},"llm_gateway_enabled":{"type":"boolean","title":"Llm Gateway Enabled","default":false},"managed_deep_agents_enabled":{"type":"boolean","title":"Managed Deep Agents Enabled","default":false},"is_anonymous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Anonymous"}},"type":"object","title":"OrganizationConfig","description":"Organization level configuration. May include any field that exists in tenant config and additional fields."},"OrganizationCreate":{"properties":{"display_name":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9\\-_ ]+$","title":"Display Name"},"is_personal":{"type":"boolean","title":"Is Personal"},"security_contact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Security Contact"}},"type":"object","required":["display_name","is_personal"],"title":"OrganizationCreate","description":"Create organization schema."},"OrganizationDashboardColorScheme":{"type":"string","enum":["light","dark"],"title":"OrganizationDashboardColorScheme","description":"Enum for acceptable color schemes of dashboards."},"OrganizationDashboardSchema":{"properties":{"embeddable_url":{"type":"string","title":"Embeddable Url"}},"type":"object","required":["embeddable_url"],"title":"OrganizationDashboardSchema","description":"Organization dashboard for usage or invoices."},"OrganizationDashboardType":{"type":"string","enum":["invoices","usage","credits"],"title":"OrganizationDashboardType","description":"Enum for acceptable types of dashboards."},"OrganizationInfo":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"config":{"$ref":"#\/components\/schemas\/OrganizationConfig"},"engine_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Engine Enabled"},"engine_lcu_spend_limit_monthly":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Lcu Spend Limit Monthly"},"is_personal":{"type":"boolean","title":"Is Personal"},"tier":{"anyOf":[{"$ref":"#\/components\/schemas\/PaymentPlanTier"},{"type":"null"}]},"reached_max_workspaces":{"type":"boolean","title":"Reached Max Workspaces","default":false},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","default":[]},"disabled":{"type":"boolean","title":"Disabled","default":false},"member_disabled":{"type":"boolean","title":"Member Disabled","default":false},"sso_only":{"type":"boolean","title":"Sso Only","default":false},"jit_provisioning_enabled":{"type":"boolean","title":"Jit Provisioning Enabled","default":true},"invites_enabled":{"type":"boolean","title":"Invites Enabled","default":true},"sso_login_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sso Login Slug"},"public_sharing_disabled":{"type":"boolean","title":"Public Sharing Disabled","default":false},"pat_creation_disabled":{"type":"boolean","title":"Pat Creation Disabled","default":false},"workspace_admin_can_invite_to_org":{"type":"boolean","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","default":false},"default_sso_provision":{"type":"boolean","title":"Default Sso Provision","default":false},"max_api_key_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Api Key Expiry Days"},"security_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Security Contact"},"max_pat_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pat Expiry Days"},"max_service_key_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Service Key Expiry Days"},"scim_group_name_separator":{"type":"string","title":"Scim Group Name Separator","default":":"},"can_export_usage_backfill":{"type":"boolean","title":"Can Export Usage Backfill","default":false},"llm_auth_proxy_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Llm Auth Proxy Enabled"},"llm_auth_proxy_jwt_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Auth Proxy Jwt Audience"},"ip_allowlist":{"items":{"type":"string"},"type":"array","title":"Ip Allowlist"},"ip_allowlist_enabled":{"type":"boolean","title":"Ip Allowlist Enabled","default":false},"disabled_model_providers":{"items":{"type":"string"},"type":"array","title":"Disabled Model Providers"},"restrict_browser_secrets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restrict Browser Secrets"},"llm_auth_proxy_allowed_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Llm Auth Proxy Allowed Urls"},"managed_evals_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Managed Evals Enabled"},"managed_eval_terms_accepted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managed Eval Terms Accepted At"}},"type":"object","required":["config","is_personal"],"title":"OrganizationInfo","description":"Information about an organization.\n\nIMPORTANT: Keep in sync with Go OrganizationInfo in smith-go\/orgs\/handler.go\nwhile both implementations are in use (weighted routing rollout)."},"OrganizationMembers":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"members":{"items":{"$ref":"#\/components\/schemas\/OrgMemberIdentity"},"type":"array","title":"Members"},"pending":{"items":{"$ref":"#\/components\/schemas\/OrgPendingIdentity"},"type":"array","title":"Pending"}},"type":"object","required":["organization_id","members","pending"],"title":"OrganizationMembers","description":"Organization members schema."},"OrganizationPGSchemaSlim":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"tier":{"anyOf":[{"$ref":"#\/components\/schemas\/PaymentPlanTier"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"created_by_ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Ls User Id"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"is_personal":{"type":"boolean","title":"Is Personal"},"disabled":{"type":"boolean","title":"Disabled"},"sso_login_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sso Login Slug"},"sso_only":{"type":"boolean","title":"Sso Only","default":false},"jit_provisioning_enabled":{"type":"boolean","title":"Jit Provisioning Enabled","default":true},"invites_enabled":{"type":"boolean","title":"Invites Enabled","default":true},"public_sharing_disabled":{"type":"boolean","title":"Public Sharing Disabled","default":false},"pat_creation_disabled":{"type":"boolean","title":"Pat Creation Disabled","default":false},"workspace_admin_can_invite_to_org":{"type":"boolean","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","default":false},"max_api_key_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Api Key Expiry Days"},"security_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Security Contact"},"max_pat_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pat Expiry Days"},"max_service_key_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Service Key Expiry Days"},"scim_group_name_separator":{"type":"string","title":"Scim Group Name Separator","default":":"},"llm_auth_proxy_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Llm Auth Proxy Enabled"},"llm_auth_proxy_jwt_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Auth Proxy Jwt Audience"},"ip_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ip Allowlist"},"disabled_model_providers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disabled Model Providers"},"restrict_browser_secrets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restrict Browser Secrets"},"llm_auth_proxy_allowed_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Llm Auth Proxy Allowed Urls"},"engine_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Engine Enabled"},"engine_lcu_spend_limit_monthly":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Lcu Spend Limit Monthly"},"managed_evals_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Managed Evals Enabled"}},"type":"object","required":["id","display_name","is_personal","disabled"],"title":"OrganizationPGSchemaSlim","description":"Schema for an organization in postgres for list views."},"OrganizationUpdate":{"properties":{"display_name":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9\\-_ ]+$","title":"Display Name"},"public_sharing_disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public Sharing Disabled"},"pat_creation_disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pat Creation Disabled"},"unshare_all":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unshare All"},"jit_provisioning_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Jit Provisioning Enabled"},"workspace_admin_can_invite_to_org":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Workspace Admin Can Invite To Org"},"invites_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Invites Enabled"},"max_api_key_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Api Key Expiry Days"},"security_contact":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Security Contact"},"max_pat_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pat Expiry Days"},"max_service_key_expiry_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Service Key Expiry Days"},"scim_group_name_separator":{"type":"string","maxLength":1,"minLength":1,"title":"Scim Group Name Separator"},"llm_auth_proxy_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Llm Auth Proxy Enabled"},"llm_auth_proxy_jwt_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Auth Proxy Jwt Audience"},"ip_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ip Allowlist"},"disabled_model_providers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disabled Model Providers"},"restrict_browser_secrets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"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":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Llm Auth Proxy Allowed Urls"},"engine_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Engine Enabled"},"engine_lcu_spend_limit_monthly":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Engine Lcu Spend Limit Monthly"}},"type":"object","title":"OrganizationUpdate","description":"Update organization schema."},"OutputTokenDetails":{"properties":{"audio":{"type":"integer","title":"Audio"},"reasoning":{"type":"integer","title":"Reasoning"}},"type":"object","title":"OutputTokenDetails","description":"Breakdown of output token counts.\n\nDoes *not* need to sum to full output token count. Does *not* need to have all keys.\n\nExample:\n    ```python\n    {\n        \"audio\": 10,\n        \"reasoning\": 200,\n    }\n    ```\n\nMay also hold extra provider-specific keys.\n\n!!! version-added \"Added in `langchain-core` 0.3.9\""},"PagerdutySeverity":{"type":"string","enum":["critical","warning","error","info"],"title":"PagerdutySeverity","description":"Enum for severity."},"PaymentPlanTier":{"type":"string","enum":["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"],"title":"PaymentPlanTier"},"PendingIdentity":{"properties":{"email":{"type":"string","title":"Email"},"read_only":{"type":"boolean","title":"Read Only","default":false,"deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"workspace_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Workspace Ids"},"workspace_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Role Id"},"workspace_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Role Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"access_scope":{"$ref":"#\/components\/schemas\/AccessScope","default":"workspace"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"org_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Role Id"},"org_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Role Name"}},"type":"object","required":["email","id","created_at"],"title":"PendingIdentity"},"PendingIdentityCreate":{"properties":{"email":{"type":"string","title":"Email"},"read_only":{"type":"boolean","title":"Read Only","default":false,"deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"workspace_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Workspace Ids"},"workspace_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Role Id"},"workspace_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Role Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["email"],"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":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Cursor"},"file_path":{"type":"string","title":"File Path"},"rows_count":{"type":"integer","title":"Rows Count"}},"type":"object","required":["target_cursor","file_path","rows_count"],"title":"PendingUpload","description":"Tracks a file upload that is in progress or needs to be verified.\n\nThis allows us to handle cases where:\n1. File upload succeeds but progress update fails\n2. Job crashes during upload\n3. Need to verify uploaded files before advancing cursor"},"PermissionResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"access_scope":{"$ref":"#\/components\/schemas\/AccessScope"}},"type":"object","required":["name","description","access_scope"],"title":"PermissionResponse"},"PlaygroundPromptCanvasPayload":{"properties":{"messages":{"items":{"oneOf":[{"$ref":"#\/components\/schemas\/AIMessage"},{"$ref":"#\/components\/schemas\/HumanMessage"},{"$ref":"#\/components\/schemas\/ChatMessage"},{"$ref":"#\/components\/schemas\/SystemMessage"},{"$ref":"#\/components\/schemas\/FunctionMessage"},{"$ref":"#\/components\/schemas\/ToolMessage"},{"$ref":"#\/components\/schemas\/AIMessageChunk"},{"$ref":"#\/components\/schemas\/HumanMessageChunk"},{"$ref":"#\/components\/schemas\/ChatMessageChunk"},{"$ref":"#\/components\/schemas\/SystemMessageChunk"},{"$ref":"#\/components\/schemas\/FunctionMessageChunk"},{"$ref":"#\/components\/schemas\/ToolMessageChunk"}]},"type":"array","title":"Messages"},"highlighted":{"anyOf":[{"$ref":"#\/components\/schemas\/Highlight"},{"type":"null"}]},"artifact":{"anyOf":[{"$ref":"#\/components\/schemas\/Artifact"},{"type":"null"}]},"artifact_length":{"anyOf":[{"type":"string","enum":["shortest","short","long","longest"]},{"type":"null"}],"title":"Artifact Length"},"reading_level":{"anyOf":[{"type":"string","enum":["child","teenager","college","phd"]},{"type":"null"}],"title":"Reading Level"},"custom_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Action"},"template_format":{"type":"string","enum":["f-string","mustache"],"title":"Template Format"},"secrets":{"additionalProperties":{"type":"string"},"type":"object","title":"Secrets"}},"type":"object","required":["messages","template_format","secrets"],"title":"PlaygroundPromptCanvasPayload"},"PlaygroundSavedOptions":{"properties":{"requests_per_second":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Per Second"}},"type":"object","title":"PlaygroundSavedOptions"},"PlaygroundSettingsCreateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"options":{"anyOf":[{"$ref":"#\/components\/schemas\/PlaygroundSavedOptions"},{"type":"null"}]},"settings_type":{"type":"string","enum":["complex","simple"],"title":"Settings Type","default":"complex"},"oauth_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Oauth Enabled"},"oauth_token_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Token Url"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Secret"},"oauth_token_endpoint_auth_method":{"anyOf":[{"type":"string","enum":["client_secret_basic","client_secret_post"]},{"type":"null"}],"title":"Oauth Token Endpoint Auth Method"},"oauth_params":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Oauth Params"},"oauth_headers":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Oauth Headers"}},"type":"object","required":["settings"],"title":"PlaygroundSettingsCreateRequest"},"PlaygroundSettingsResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"options":{"anyOf":[{"$ref":"#\/components\/schemas\/PlaygroundSavedOptions"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"settings_type":{"type":"string","enum":["complex","simple"],"title":"Settings Type","default":"complex"},"created_by_ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Ls User Id"},"updated_by_ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By Ls User Id"},"available_in_playground":{"type":"boolean","title":"Available In Playground","default":true},"available_in_evaluators":{"type":"boolean","title":"Available In Evaluators","default":true},"available_in_agent_builder":{"type":"boolean","title":"Available In Agent Builder","default":false},"available_in_polly":{"type":"boolean","title":"Available In Polly","default":false},"available_in_insights_heavy":{"type":"boolean","title":"Available In Insights Heavy","default":false},"available_in_insights_light":{"type":"boolean","title":"Available In Insights Light","default":false},"oauth_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Oauth Enabled"},"oauth_token_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Token Url"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Secret"},"oauth_token_endpoint_auth_method":{"anyOf":[{"type":"string","enum":["client_secret_basic","client_secret_post"]},{"type":"null"}],"title":"Oauth Token Endpoint Auth Method"},"oauth_params":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Oauth Params"},"oauth_headers":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Oauth Headers"}},"type":"object","required":["id","settings","created_at","updated_at"],"title":"PlaygroundSettingsResponse"},"PlaygroundSettingsUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"},"options":{"anyOf":[{"$ref":"#\/components\/schemas\/PlaygroundSavedOptions"},{"type":"null"}]},"available_in_playground":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available In Playground"},"available_in_evaluators":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available In Evaluators"},"available_in_agent_builder":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available In Agent Builder"},"available_in_polly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available In Polly"},"available_in_insights_heavy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available In Insights Heavy"},"available_in_insights_light":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available In Insights Light"},"oauth_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Oauth Enabled"},"oauth_token_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Token Url"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Secret"},"oauth_token_endpoint_auth_method":{"anyOf":[{"type":"string","enum":["client_secret_basic","client_secret_post"]},{"type":"null"}],"title":"Oauth Token Endpoint Auth Method"},"oauth_params":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Oauth Params"},"oauth_headers":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Oauth Headers"}},"type":"object","title":"PlaygroundSettingsUpdateRequest"},"PlusPlanTransitionInfo":{"properties":{"transition_date":{"type":"string","format":"date-time","title":"Transition Date"},"plan_tier_before":{"type":"string","title":"Plan Tier Before"},"transitioned":{"type":"boolean","title":"Transitioned"}},"type":"object","required":["transition_date","plan_tier_before","transitioned"],"title":"PlusPlanTransitionInfo","description":"Info about an org's automated startup-to-Plus plan transition."},"PopulateAnnotationQueueSchema":{"properties":{"queue_id":{"type":"string","format":"uuid","title":"Queue Id"},"session_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Session Ids"},"extend_trace_retention":{"type":"boolean","title":"Extend Trace Retention","default":false}},"type":"object","required":["queue_id","session_ids"],"title":"PopulateAnnotationQueueSchema"},"PromptOptimizationJob":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"repo_id":{"type":"string","format":"uuid","title":"Repo Id"},"status":{"$ref":"#\/components\/schemas\/EPromptOptimizationJobStatus"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"algorithm":{"$ref":"#\/components\/schemas\/EPromptOptimizationAlgorithm"},"config":{"anyOf":[{"$ref":"#\/components\/schemas\/PromptimConfig"},{"$ref":"#\/components\/schemas\/DemoConfig"}],"title":"Config"},"results":{"items":{"$ref":"#\/components\/schemas\/PromptOptimizationResult"},"type":"array","title":"Results"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","repo_id","status","tenant_id","algorithm","config","created_at","updated_at"],"title":"PromptOptimizationJob"},"PromptOptimizationJobCreate":{"properties":{"algorithm":{"$ref":"#\/components\/schemas\/EPromptOptimizationAlgorithm"},"config":{"anyOf":[{"$ref":"#\/components\/schemas\/PromptimConfig"},{"$ref":"#\/components\/schemas\/DemoConfig"}],"title":"Config"}},"type":"object","required":["algorithm","config"],"title":"PromptOptimizationJobCreate"},"PromptOptimizationJobLog":{"properties":{"log_type":{"$ref":"#\/components\/schemas\/EPromptOptimizationJobLogType"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["log_type","message","id","job_id","created_at"],"title":"PromptOptimizationJobLog"},"PromptOptimizationJobLogCreate":{"properties":{"log_type":{"$ref":"#\/components\/schemas\/EPromptOptimizationJobLogType"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"}},"type":"object","required":["log_type","message"],"title":"PromptOptimizationJobLogCreate"},"PromptOptimizationJobUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#\/components\/schemas\/EPromptOptimizationJobStatus"},{"type":"null"}]},"result":{"anyOf":[{"$ref":"#\/components\/schemas\/PromptOptimizationResult"},{"type":"null"}]}},"type":"object","title":"PromptOptimizationJobUpdate"},"PromptOptimizationJobWithLogs":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"repo_id":{"type":"string","format":"uuid","title":"Repo Id"},"status":{"$ref":"#\/components\/schemas\/EPromptOptimizationJobStatus"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"algorithm":{"$ref":"#\/components\/schemas\/EPromptOptimizationAlgorithm"},"config":{"anyOf":[{"$ref":"#\/components\/schemas\/PromptimConfig"},{"$ref":"#\/components\/schemas\/DemoConfig"}],"title":"Config"},"results":{"items":{"$ref":"#\/components\/schemas\/PromptOptimizationResult"},"type":"array","title":"Results"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"logs":{"items":{"$ref":"#\/components\/schemas\/PromptOptimizationJobLog"},"type":"array","title":"Logs"}},"type":"object","required":["id","repo_id","status","tenant_id","algorithm","config","created_at","updated_at","logs"],"title":"PromptOptimizationJobWithLogs"},"PromptOptimizationResult":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}},"type":"object","required":["timestamp","x","y"],"title":"PromptOptimizationResult"},"PromptWebhook":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"include_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Include Prompts"},"exclude_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Exclude Prompts"},"triggers":{"items":{"$ref":"#\/components\/schemas\/EPromptWebhookTrigger"},"type":"array","title":"Triggers"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["url","id","tenant_id","created_at","updated_at"],"title":"PromptWebhook","description":"Schema for a prompt webhook."},"PromptWebhookBase":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"include_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Include Prompts"},"exclude_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Exclude Prompts"},"triggers":{"items":{"$ref":"#\/components\/schemas\/EPromptWebhookTrigger"},"type":"array","title":"Triggers"}},"type":"object","required":["url"],"title":"PromptWebhookBase","description":"Base schema for prompt webhooks."},"PromptWebhookCreate":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"include_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Include Prompts"},"exclude_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Exclude Prompts"},"triggers":{"items":{"$ref":"#\/components\/schemas\/EPromptWebhookTrigger"},"type":"array","title":"Triggers"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"}},"type":"object","required":["url"],"title":"PromptWebhookCreate","description":"Schema for creating a prompt webhook."},"PromptWebhookPayload":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id"},"prompt_name":{"type":"string","title":"Prompt Name"},"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"},"commit_hash":{"type":"string","title":"Commit Hash"},"created_at":{"type":"string","title":"Created At"},"created_by":{"type":"string","title":"Created By"},"event":{"$ref":"#\/components\/schemas\/EPromptWebhookTrigger"},"tag_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Name"}},"type":"object","required":["prompt_id","prompt_name","manifest","commit_hash","created_at","created_by","event"],"title":"PromptWebhookPayload"},"PromptWebhookTest":{"properties":{"webhook":{"$ref":"#\/components\/schemas\/PromptWebhookBase"},"payload":{"$ref":"#\/components\/schemas\/PromptWebhookPayload"}},"type":"object","required":["webhook","payload"],"title":"PromptWebhookTest","description":"Schema for testing a prompt webhook."},"PromptWebhookUpdate":{"properties":{"include_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Include Prompts"},"exclude_prompts":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Exclude Prompts"},"url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"triggers":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/EPromptWebhookTrigger"},"type":"array"},{"type":"null"}],"title":"Triggers"}},"type":"object","title":"PromptWebhookUpdate","description":"Schema for updating a prompt webhook."},"PromptimConfig":{"properties":{"message_index":{"type":"integer","title":"Message Index"},"task_description":{"type":"string","title":"Task Description"},"dataset_name":{"type":"string","title":"Dataset Name"},"train_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Train Split"},"dev_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dev Split"},"test_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Split"},"evaluators":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Evaluators"},"num_epochs":{"type":"integer","title":"Num Epochs"},"auto_commit":{"type":"boolean","title":"Auto Commit"}},"type":"object","required":["message_index","task_description","dataset_name","train_split","dev_split","test_split","evaluators","num_epochs","auto_commit"],"title":"PromptimConfig"},"ProviderUserSlim":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider":{"anyOf":[{"$ref":"#\/components\/schemas\/AuthProvider"},{"type":"null"}]},"ls_user_id":{"type":"string","format":"uuid","title":"Ls User Id"},"saml_provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Saml Provider Id"},"provider_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"is_disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Disabled"},"provisioning_method":{"anyOf":[{"$ref":"#\/components\/schemas\/ProvisioningMethod"},{"type":"null"}]},"email_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Confirmed At"}},"type":"object","required":["id","ls_user_id","created_at","updated_at"],"title":"ProviderUserSlim"},"ProvisioningMethod":{"type":"string","enum":["scim","saml:jit","bootstrap"],"title":"ProvisioningMethod"},"ProxyRequest":{"properties":{"url":{"type":"string","title":"Url"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"title":"Method","default":"GET"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","default":{}},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout","default":120},"body":{"anyOf":[{},{"type":"null"}],"title":"Body"},"oauth_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Provider Id"}},"type":"object","required":["url"],"title":"ProxyRequest"},"PublicComparativeExperiment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"experiments_info":{"items":{"$ref":"#\/components\/schemas\/SimpleExperimentInfo"},"type":"array","title":"Experiments Info"},"feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Feedback Stats"}},"type":"object","required":["id","created_at","modified_at","experiments_info"],"title":"PublicComparativeExperiment","description":"Publicly-shared ComparativeExperiment schema."},"PublicExampleWithRuns":{"properties":{"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"source_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"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":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"attachment_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attachment Urls"},"runs":{"items":{"$ref":"#\/components\/schemas\/RunPublicDatasetSchema"},"type":"array","title":"Runs"}},"type":"object","required":["dataset_id","inputs","id","name","runs"],"title":"PublicExampleWithRuns","description":"Schema for an example in a publicly-shared dataset with list of runs."},"PutDatasetVersionsSchema":{"properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"As Of","description":"Only modifications made on or before this time are included. If None, the latest version of the dataset is used."},"tag":{"type":"string","title":"Tag"}},"type":"object","required":["as_of","tag"],"title":"PutDatasetVersionsSchema"},"QueryExampleSchemaWithRuns":{"properties":{"session_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Session Ids"},"offset":{"type":"integer","minimum":0,"title":"Offset","default":0},"limit":{"type":"integer","minimum":1,"title":"Limit","default":10},"preview":{"type":"boolean","title":"Preview","default":false},"comparative_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparative Experiment Id"},"sort_params":{"anyOf":[{"$ref":"#\/components\/schemas\/SortParamsForRunsComparisonView"},{"type":"null"}]},"filters":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Filters"},"example_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Example Ids"},"include_annotator_detail":{"type":"boolean","title":"Include Annotator Detail","default":false}},"type":"object","required":["session_ids"],"title":"QueryExampleSchemaWithRuns"},"QueryExampleSchemaWithRunsRequest":{"properties":{"session_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Session Ids"},"offset":{"type":"integer","minimum":0,"title":"Offset","default":0},"limit":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Limit"},"preview":{"type":"boolean","title":"Preview","default":false},"comparative_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparative Experiment Id"},"sort_params":{"anyOf":[{"$ref":"#\/components\/schemas\/SortParamsForRunsComparisonView"},{"type":"null"}]},"filters":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Filters"},"example_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Example Ids"},"include_annotator_detail":{"type":"boolean","title":"Include Annotator Detail","default":false}},"type":"object","required":["session_ids"],"title":"QueryExampleSchemaWithRunsRequest","description":"Request DTO for querying examples with runs - used for API input.\n\nThis is separate from the internal schema to cleanly handle optional limit values.\nWhen limit is None, the internal schema will apply appropriate defaults based on\nformat."},"QueryFeedbackDelta":{"properties":{"baseline_session_id":{"type":"string","format":"uuid","title":"Baseline Session Id"},"comparison_session_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Comparison Session Ids"},"feedback_key":{"type":"string","title":"Feedback Key"},"filters":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Filters"},"offset":{"type":"integer","minimum":0,"title":"Offset","default":0},"limit":{"type":"integer","maximum":100,"minimum":1,"title":"Limit","default":100},"comparative_experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparative Experiment Id"}},"type":"object","required":["baseline_session_id","comparison_session_ids","feedback_key"],"title":"QueryFeedbackDelta"},"QueryFeedbackDeltaBatch":{"properties":{"baseline_session_id":{"type":"string","format":"uuid","title":"Baseline Session Id"},"comparison_session_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10,"minItems":1,"title":"Comparison Session Ids"},"feedback_keys":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Feedback Keys"},"filters":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Filters"}},"type":"object","required":["baseline_session_id","comparison_session_ids","feedback_keys"],"title":"QueryFeedbackDeltaBatch","description":"Request schema for batched feedback delta queries with multiple feedback keys."},"QueryGroupedExamplesWithRuns":{"properties":{"session_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10,"minItems":1,"title":"Session Ids"},"offset":{"type":"integer","minimum":0,"title":"Offset","default":0},"limit":{"type":"integer","maximum":20,"minimum":1,"title":"Limit","default":10},"preview":{"type":"boolean","title":"Preview","default":false},"group_by":{"$ref":"#\/components\/schemas\/GroupExampleRunsByField"},"metadata_key":{"type":"string","title":"Metadata Key"},"per_group_limit":{"type":"integer","maximum":10,"minimum":1,"title":"Per Group Limit","default":5},"filters":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Filters"}},"type":"object","required":["session_ids","group_by","metadata_key"],"title":"QueryGroupedExamplesWithRuns"},"QueryParamsForPublicRunSchema":{"properties":{"id":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Id"}},"type":"object","title":"QueryParamsForPublicRunSchema","description":"Query params for public run endpoints."},"QueueInfoResponse":{"properties":{"queued":{"type":"integer","title":"Queued"},"active":{"type":"integer","title":"Active"},"scheduled":{"type":"integer","title":"Scheduled"}},"type":"object","required":["queued","active","scheduled"],"title":"QueueInfoResponse","description":"Short summary of queue counts."},"RemoveRepoOwnerRequest":{"properties":{"identity_id":{"type":"string","format":"uuid","title":"Identity Id"}},"type":"object","required":["identity_id"],"title":"RemoveRepoOwnerRequest","description":"Request to remove a repo owner."},"RepoExampleResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"session_id":{"type":"string","format":"uuid","title":"Session Id"}},"type":"object","required":["id","session_id"],"title":"RepoExampleResponse","description":"Response model for example runs"},"RepoOwner":{"properties":{"identity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Identity Id"},"ls_user_id":{"type":"string","format":"uuid","title":"Ls User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["identity_id","ls_user_id","email","full_name","created_at"],"title":"RepoOwner","description":"A repo owner with user details.\n\nNote: identity_id and email may be None when returned to users\noutside the repo's tenant (PII protection)."},"RepoTag":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"repo_id":{"type":"string","format":"uuid","title":"Repo Id"},"commit_id":{"type":"string","format":"uuid","title":"Commit Id"},"commit_hash":{"type":"string","title":"Commit Hash"},"tag_name":{"type":"string","title":"Tag Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","repo_id","commit_id","commit_hash","tag_name","created_at","updated_at"],"title":"RepoTag","description":"Fields for a prompt tag"},"RepoTagRequest":{"properties":{"tag_name":{"type":"string","title":"Tag Name"},"commit_id":{"type":"string","format":"uuid","title":"Commit Id"},"skip_webhooks":{"anyOf":[{"type":"boolean"},{"items":{"type":"string","format":"uuid"},"type":"array"}],"title":"Skip Webhooks","default":false}},"type":"object","required":["tag_name","commit_id"],"title":"RepoTagRequest","description":"Fields to create a prompt tag"},"RepoUpdateTagRequest":{"properties":{"commit_id":{"type":"string","format":"uuid","title":"Commit Id"},"skip_webhooks":{"anyOf":[{"type":"boolean"},{"items":{"type":"string","format":"uuid"},"type":"array"}],"title":"Skip Webhooks","default":false}},"type":"object","required":["commit_id"],"title":"RepoUpdateTagRequest","description":"Fields to update a prompt tag"},"RepoWithLookups":{"properties":{"repo_handle":{"type":"string","title":"Repo Handle"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"readme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readme"},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_public":{"type":"boolean","title":"Is Public"},"is_archived":{"type":"boolean","title":"Is Archived"},"restricted_mode":{"type":"boolean","title":"Restricted Mode","default":false},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"original_repo_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Original Repo Id"},"upstream_repo_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Upstream Repo Id"},"commit_tags":{"items":{"type":"string"},"type":"array","title":"Commit Tags","default":[]},"repo_type":{"type":"string","enum":["prompt","file","agent","skill"],"title":"Repo Type"},"source":{"anyOf":[{"type":"string","enum":["internal","external"]},{"type":"null"}],"title":"Source"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"full_name":{"type":"string","title":"Full Name"},"num_likes":{"type":"integer","title":"Num Likes"},"num_downloads":{"type":"integer","title":"Num Downloads"},"num_views":{"type":"integer","title":"Num Views"},"liked_by_auth_user":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Liked By Auth User"},"last_commit_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Commit Hash"},"num_commits":{"type":"integer","title":"Num Commits"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"original_repo_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Repo Full Name"},"upstream_repo_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Repo Full Name"},"latest_commit_manifest":{"anyOf":[{"$ref":"#\/components\/schemas\/CommitManifestResponse"},{"type":"null"}]},"owners":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RepoOwner"},"type":"array"},{"type":"null"}],"title":"Owners"}},"type":"object","required":["repo_handle","id","tenant_id","created_at","updated_at","is_public","is_archived","tags","repo_type","owner","full_name","num_likes","num_downloads","num_views","num_commits"],"title":"RepoWithLookups","description":"All database fields for repos, plus helpful computed fields."},"RequestBodyForRunsGenerateQuery":{"properties":{"query":{"type":"string","title":"Query"},"feedback_keys":{"items":{"$ref":"#\/components\/schemas\/RunsGenerateQueryFeedbackKeys"},"type":"array","title":"Feedback Keys"}},"type":"object","required":["query"],"title":"RequestBodyForRunsGenerateQuery"},"ResolvedAnnotationQueueRunSchema":{"properties":{"section":{"type":"string","enum":["needs_my_review","needs_others_review","completed"],"title":"Section"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["section","position"],"title":"ResolvedAnnotationQueueRunSchema","description":"Resolved annotation queue run position for deep linking."},"Resource":{"properties":{"tagging_id":{"type":"string","format":"uuid","title":"Tagging Id"},"resource_name":{"type":"string","title":"Resource Name"},"resource_id":{"type":"string","format":"uuid","title":"Resource Id"}},"type":"object","required":["tagging_id","resource_name","resource_id"],"title":"Resource"},"ResourceType":{"type":"string","enum":["agent","dashboard","dataset","deployment","evaluator","experiment","fleet_integration","mcp_server","project","prompt","queue","sandbox","skill"],"title":"ResourceType"},"ResponseBodyForRunsGenerateQuery":{"properties":{"filter":{"type":"string","title":"Filter"},"feedback_urls":{"additionalProperties":{"type":"string"},"propertyNames":{"$ref":"#\/components\/schemas\/RunsGenerateQueryFeedbackKeys"},"type":"object","title":"Feedback Urls"}},"type":"object","required":["filter","feedback_urls"],"title":"ResponseBodyForRunsGenerateQuery"},"Role":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"access_scope":{"anyOf":[{"$ref":"#\/components\/schemas\/AccessScope"},{"type":"null"}]},"is_restricted":{"type":"boolean","title":"Is Restricted","default":false}},"type":"object","required":["id","name","display_name","description","permissions"],"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":{"type":"string"},"type":"array"},"type":"object","title":"RootModel[Dict[str, list[str]]]"},"RuleLogActionOutcome":{"type":"string","enum":["success","skipped","error"],"title":"RuleLogActionOutcome"},"RuleLogActionResponse":{"properties":{"outcome":{"$ref":"#\/components\/schemas\/RuleLogActionOutcome"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"type":"object","required":["outcome"],"title":"RuleLogActionResponse"},"RuleLogSchema":{"properties":{"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"run_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Name"},"run_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Type"},"run_session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"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","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"application_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Application Time"},"add_to_annotation_queue":{"anyOf":[{"$ref":"#\/components\/schemas\/RuleLogActionResponse"},{"type":"null"}]},"add_to_dataset":{"anyOf":[{"$ref":"#\/components\/schemas\/RuleLogActionResponse"},{"type":"null"}]},"evaluators":{"anyOf":[{"$ref":"#\/components\/schemas\/RuleLogActionResponse"},{"type":"null"}]},"alerts":{"anyOf":[{"$ref":"#\/components\/schemas\/RuleLogActionResponse"},{"type":"null"}]},"webhooks":{"anyOf":[{"$ref":"#\/components\/schemas\/RuleLogActionResponse"},{"type":"null"}]},"extend_only":{"anyOf":[{"$ref":"#\/components\/schemas\/RuleLogActionResponse"},{"type":"null"}]},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}},"type":"object","required":["rule_id","run_id","start_time","end_time"],"title":"RuleLogSchema","description":"Run rules log schema."},"RuleLogsPaginatedResponse":{"properties":{"logs":{"items":{"$ref":"#\/components\/schemas\/RuleLogSchema"},"type":"array","title":"Logs"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["logs"],"title":"RuleLogsPaginatedResponse","description":"Paginated response for rule logs with cursor-based pagination."},"RunCluster":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"level":{"type":"integer","title":"Level"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"parent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Name"},"num_runs":{"type":"integer","title":"Num Runs"},"stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stats"}},"type":"object","required":["id","level","name","description","num_runs","stats"],"title":"RunCluster","description":"A single cluster of runs."},"RunClusteringJobPydantic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"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"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"shape":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Shape"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"config_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Config Id"}},"type":"object","required":["id","name","status","created_at"],"title":"RunClusteringJobPydantic","description":"Session cluster job"},"RunDateOrder":{"type":"string","enum":["asc","desc"],"title":"RunDateOrder","description":"Enum for run start date order."},"RunGroupBy":{"type":"string","enum":["conversation"],"title":"RunGroupBy"},"RunGroupRequest":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"group_by":{"$ref":"#\/components\/schemas\/RunGroupBy"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"},"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"},"offset":{"type":"integer","minimum":0,"title":"Offset","default":0},"limit":{"type":"integer","maximum":100,"minimum":1,"title":"Limit","default":10}},"type":"object","required":["session_id","group_by"],"title":"RunGroupRequest"},"RunGroupStats":{"properties":{"run_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run Count"},"latency_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P50"},"latency_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P99"},"first_token_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P50"},"first_token_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P99"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"median_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Median Tokens"},"completion_tokens_p50":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens P50"},"prompt_tokens_p50":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens P50"},"tokens_p99":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens P99"},"completion_tokens_p99":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens P99"},"prompt_tokens_p99":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens P99"},"last_run_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run Start Time"},"feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"run_facets":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Run Facets"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"},"streaming_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Streaming Rate"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Completion Cost"},"cost_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost P50"},"cost_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost P99"},"prompt_token_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prompt Token Details"},"completion_token_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Completion Token Details"},"prompt_cost_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prompt Cost Details"},"completion_cost_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Completion Cost Details"},"group_count":{"type":"integer","title":"Group Count"}},"type":"object","required":["group_count"],"title":"RunGroupStats"},"RunPublicDatasetSchema":{"properties":{"name":{"type":"string","title":"Name"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"inputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputs Preview"},"run_type":{"$ref":"#\/components\/schemas\/RunTypeEnum"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"execution_order":{"type":"integer","minimum":1,"title":"Execution Order","default":1},"serialized":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Serialized"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"outputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outputs Preview"},"parent_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Run Id"},"manifest_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest Id"},"manifest_s3_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest S3 Id"},"events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Events"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"inputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs S3 Urls"},"outputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs S3 Urls"},"s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Urls"},"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"dotted_order":{"type":"string","title":"Dotted Order"},"trace_min_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Min Start Time"},"trace_max_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Max Start Time"},"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Child Run Ids"},"direct_child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Direct Child Run Ids"},"parent_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Parent Run Ids"},"feedback_stats":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"reference_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Example Id"},"total_tokens":{"type":"integer","title":"Total Tokens","default":0},"prompt_tokens":{"type":"integer","title":"Prompt Tokens","default":0},"completion_tokens":{"type":"integer","title":"Completion Tokens","default":0},"prompt_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Prompt Token Details"},"completion_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Completion Token Details"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"prompt_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Prompt Cost Details"},"completion_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Completion Cost Details"},"price_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Price Model Id"},"first_token_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Token Time"},"messages":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Messages"},"session_id":{"type":"string","format":"uuid","title":"Session Id"}},"type":"object","required":["name","run_type","trace_id","dotted_order","id","status","session_id"],"title":"RunPublicDatasetSchema","description":"Schema for a run in a publicly-shared dataset."},"RunPublicSchema":{"properties":{"name":{"type":"string","title":"Name"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"inputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputs Preview"},"run_type":{"$ref":"#\/components\/schemas\/RunTypeEnum"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"execution_order":{"type":"integer","minimum":1,"title":"Execution Order","default":1},"serialized":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Serialized"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"outputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outputs Preview"},"parent_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Run Id"},"manifest_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest Id"},"manifest_s3_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest S3 Id"},"events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Events"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"inputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs S3 Urls"},"outputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs S3 Urls"},"s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Urls"},"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"dotted_order":{"type":"string","title":"Dotted Order"},"trace_min_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Min Start Time"},"trace_max_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Max Start Time"},"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Child Run Ids"},"direct_child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Direct Child Run Ids"},"parent_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Parent Run Ids"},"feedback_stats":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"reference_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Example Id"},"total_tokens":{"type":"integer","title":"Total Tokens","default":0},"prompt_tokens":{"type":"integer","title":"Prompt Tokens","default":0},"completion_tokens":{"type":"integer","title":"Completion Tokens","default":0},"prompt_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Prompt Token Details"},"completion_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Completion Token Details"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"prompt_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Prompt Cost Details"},"completion_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Completion Cost Details"},"price_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Price Model Id"},"first_token_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Token Time"},"messages":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Messages"}},"type":"object","required":["name","run_type","trace_id","dotted_order","id","status"],"title":"RunPublicSchema"},"RunRuleSpendLimitSchema-Input":{"properties":{"limit_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"string"}],"title":"Limit Usd"},"window":{"$ref":"#\/components\/schemas\/RunRuleSpendLimitWindow"}},"type":"object","required":["limit_usd","window"],"title":"RunRuleSpendLimitSchema"},"RunRuleSpendLimitSchema-Output":{"properties":{"limit_usd":{"type":"string","title":"Limit Usd"},"window":{"$ref":"#\/components\/schemas\/RunRuleSpendLimitWindow"}},"type":"object","required":["limit_usd","window"],"title":"RunRuleSpendLimitSchema"},"RunRuleSpendLimitWindow":{"type":"string","enum":["weekly"],"title":"RunRuleSpendLimitWindow"},"RunRulesAlertType":{"type":"string","enum":["pagerduty"],"title":"RunRulesAlertType","description":"Enum for alert types."},"RunRulesCreateSchema":{"properties":{"display_name":{"type":"string","title":"Display Name"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"sampling_rate":{"type":"number","title":"Sampling Rate"},"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"},"backfill_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfill From"},"use_corrections_dataset":{"type":"boolean","title":"Use Corrections Dataset","default":false},"num_few_shot_examples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Few Shot Examples"},"extend_only":{"type":"boolean","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","default":false},"add_to_annotation_queue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Annotation Queue Id"},"add_to_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Dataset Id"},"add_to_dataset_prefer_correction":{"type":"boolean","title":"Add To Dataset Prefer Correction","default":false},"evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/EvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Evaluators"},"code_evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/CodeEvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Code Evaluators"},"evaluator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evaluator Id"},"alerts":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesPagerdutyAlertSchema"},"type":"array"},{"type":"null"}],"title":"Alerts"},"webhooks":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesWebhookSchema"},"type":"array"},{"type":"null"}],"title":"Webhooks"},"evaluator_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evaluator Version"},"create_alignment_queue":{"type":"boolean","title":"Create Alignment Queue","default":false},"include_extended_stats":{"type":"boolean","title":"Include Extended Stats","default":false},"group_by":{"anyOf":[{"type":"string","const":"thread_id"},{"type":"null"}],"title":"Group By"},"spend_limit":{"anyOf":[{"$ref":"#\/components\/schemas\/RunRuleSpendLimitSchema-Input"},{"type":"null"}]},"tracer_session_issue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tracer Session Issue Id"}},"type":"object","required":["display_name","sampling_rate"],"title":"RunRulesCreateSchema"},"RunRulesPagerdutyAlertSchema":{"properties":{"type":{"anyOf":[{"$ref":"#\/components\/schemas\/RunRulesAlertType"},{"type":"null"}],"default":"pagerduty"},"routing_key":{"type":"string","title":"Routing Key"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"severity":{"anyOf":[{"$ref":"#\/components\/schemas\/PagerdutySeverity"},{"type":"null"}],"default":"warning"}},"type":"object","required":["routing_key"],"title":"RunRulesPagerdutyAlertSchema"},"RunRulesSchema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"session_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Name"},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name"},"display_name":{"type":"string","title":"Display Name"},"sampling_rate":{"type":"number","title":"Sampling Rate"},"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"},"add_to_annotation_queue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Annotation Queue Id"},"add_to_annotation_queue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Add To Annotation Queue Name"},"add_to_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Dataset Id"},"add_to_dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Add To Dataset Name"},"add_to_dataset_prefer_correction":{"type":"boolean","title":"Add To Dataset Prefer Correction","default":false},"corrections_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Corrections Dataset Id"},"use_corrections_dataset":{"type":"boolean","title":"Use Corrections Dataset","default":false},"num_few_shot_examples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Few Shot Examples"},"evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/EvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Evaluators"},"code_evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/CodeEvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Code Evaluators"},"alerts":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesPagerdutyAlertSchema"},"type":"array"},{"type":"null"}],"title":"Alerts"},"webhooks":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesWebhookSchema"},"type":"array"},{"type":"null"}],"title":"Webhooks"},"extend_only":{"type":"boolean","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","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"backfill_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfill From"},"backfill_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Backfill Id"},"backfill_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backfill Status"},"backfill_progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Backfill Progress"},"backfill_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backfill Error"},"backfill_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfill Completed At"},"transient":{"type":"boolean","title":"Transient","default":false},"evaluator_version":{"type":"integer","title":"Evaluator Version"},"evaluator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evaluator Id"},"alignment_annotation_queue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Alignment Annotation Queue Id"},"group_by":{"anyOf":[{"type":"string","const":"thread_id"},{"type":"null"}],"title":"Group By"},"spend_limit":{"anyOf":[{"$ref":"#\/components\/schemas\/RunRuleSpendLimitSchema-Output"},{"type":"null"}]},"trace_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trace Count"},"spend_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend Usd"}},"type":"object","required":["id","tenant_id","display_name","sampling_rate","webhooks","created_at","updated_at","evaluator_version"],"title":"RunRulesSchema","description":"Run rules schema."},"RunRulesUpdateSchema":{"properties":{"display_name":{"type":"string","title":"Display Name"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"sampling_rate":{"type":"number","title":"Sampling Rate"},"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"},"backfill_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfill From"},"use_corrections_dataset":{"type":"boolean","title":"Use Corrections Dataset","default":false},"num_few_shot_examples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Few Shot Examples"},"extend_only":{"type":"boolean","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","default":false},"add_to_annotation_queue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Annotation Queue Id"},"add_to_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Dataset Id"},"add_to_dataset_prefer_correction":{"type":"boolean","title":"Add To Dataset Prefer Correction","default":false},"evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/EvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Evaluators"},"code_evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/CodeEvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Code Evaluators"},"evaluator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evaluator Id"},"alerts":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesPagerdutyAlertSchema"},"type":"array"},{"type":"null"}],"title":"Alerts"},"webhooks":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesWebhookSchema"},"type":"array"},{"type":"null"}],"title":"Webhooks"},"evaluator_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evaluator Version"},"create_alignment_queue":{"type":"boolean","title":"Create Alignment Queue","default":false},"include_extended_stats":{"type":"boolean","title":"Include Extended Stats","default":false},"group_by":{"anyOf":[{"type":"string","const":"thread_id"},{"type":"null"}],"title":"Group By"},"spend_limit":{"anyOf":[{"$ref":"#\/components\/schemas\/RunRuleSpendLimitSchema-Input"},{"type":"null"}]}},"type":"object","required":["display_name","sampling_rate"],"title":"RunRulesUpdateSchema"},"RunRulesValidateSchema":{"properties":{"display_name":{"type":"string","title":"Display Name"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"sampling_rate":{"type":"number","title":"Sampling Rate"},"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"},"backfill_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Backfill From"},"use_corrections_dataset":{"type":"boolean","title":"Use Corrections Dataset","default":false},"num_few_shot_examples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Few Shot Examples"},"extend_only":{"type":"boolean","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","default":false},"add_to_annotation_queue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Annotation Queue Id"},"add_to_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Add To Dataset Id"},"add_to_dataset_prefer_correction":{"type":"boolean","title":"Add To Dataset Prefer Correction","default":false},"evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/EvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Evaluators"},"code_evaluators":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/CodeEvaluatorTopLevel"},"type":"array"},{"type":"null"}],"title":"Code Evaluators"},"evaluator_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evaluator Id"},"alerts":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesPagerdutyAlertSchema"},"type":"array"},{"type":"null"}],"title":"Alerts"},"webhooks":{"anyOf":[{"items":{"$ref":"#\/components\/schemas\/RunRulesWebhookSchema"},"type":"array"},{"type":"null"}],"title":"Webhooks"},"evaluator_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evaluator Version"},"create_alignment_queue":{"type":"boolean","title":"Create Alignment Queue","default":false},"include_extended_stats":{"type":"boolean","title":"Include Extended Stats","default":false},"group_by":{"anyOf":[{"type":"string","const":"thread_id"},{"type":"null"}],"title":"Group By"},"spend_limit":{"anyOf":[{"$ref":"#\/components\/schemas\/RunRuleSpendLimitSchema-Input"},{"type":"null"}]},"tracer_session_issue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tracer Session Issue Id"},"test_inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Test Inputs"},"test_outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Test Outputs"},"test_reference_outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Test Reference Outputs"},"test_attachments":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Test Attachments"},"test_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Thread Id"}},"type":"object","required":["display_name","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.\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":{"url":{"type":"string","title":"Url"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"type":"object","required":["url"],"title":"RunRulesWebhookSchema"},"RunSchema":{"properties":{"name":{"type":"string","title":"Name"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"inputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputs Preview"},"run_type":{"$ref":"#\/components\/schemas\/RunTypeEnum"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"execution_order":{"type":"integer","minimum":1,"title":"Execution Order","default":1},"serialized":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Serialized"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"outputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outputs Preview"},"parent_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Run Id"},"manifest_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest Id"},"manifest_s3_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest S3 Id"},"events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Events"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"inputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs S3 Urls"},"outputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs S3 Urls"},"s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Urls"},"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"dotted_order":{"type":"string","title":"Dotted Order"},"trace_min_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Min Start Time"},"trace_max_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Max Start Time"},"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Child Run Ids"},"direct_child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Direct Child Run Ids"},"parent_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Parent Run Ids"},"feedback_stats":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"reference_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Example Id"},"total_tokens":{"type":"integer","title":"Total Tokens","default":0},"prompt_tokens":{"type":"integer","title":"Prompt Tokens","default":0},"completion_tokens":{"type":"integer","title":"Completion Tokens","default":0},"prompt_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Prompt Token Details"},"completion_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Completion Token Details"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"prompt_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Prompt Cost Details"},"completion_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Completion Cost Details"},"price_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Price Model Id"},"first_token_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Token Time"},"messages":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Messages"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"app_path":{"type":"string","title":"App Path"},"last_queued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Queued At"},"in_dataset":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Dataset"},"share_token":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Share Token"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]},"trace_first_received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace First Received At"},"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds"},"trace_upgrade":{"type":"boolean","title":"Trace Upgrade","default":false},"reference_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Dataset Id"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}},"type":"object","required":["name","run_type","trace_id","dotted_order","id","status","session_id","app_path"],"title":"RunSchema","description":"Run schema."},"RunSchemaComparisonView":{"properties":{"name":{"type":"string","title":"Name"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"inputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputs Preview"},"run_type":{"$ref":"#\/components\/schemas\/RunTypeEnum"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"execution_order":{"type":"integer","minimum":1,"title":"Execution Order","default":1},"serialized":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Serialized"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"outputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outputs Preview"},"parent_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Run Id"},"manifest_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest Id"},"manifest_s3_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest S3 Id"},"events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Events"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"inputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs S3 Urls"},"outputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs S3 Urls"},"s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Urls"},"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"dotted_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dotted Order"},"trace_min_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Min Start Time"},"trace_max_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Max Start Time"},"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"reference_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Example Id"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"first_token_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Token Time"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"status":{"type":"string","title":"Status"},"feedback_stats":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"app_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Path"}},"type":"object","required":["name","run_type","trace_id","id","session_id","status"],"title":"RunSchemaComparisonView","description":"Run schema for comparison view."},"RunSchemaWithAnnotationQueueInfo":{"properties":{"name":{"type":"string","title":"Name"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"inputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputs Preview"},"run_type":{"$ref":"#\/components\/schemas\/RunTypeEnum"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"execution_order":{"type":"integer","minimum":1,"title":"Execution Order","default":1},"serialized":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Serialized"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"outputs_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outputs Preview"},"parent_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Run Id"},"manifest_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest Id"},"manifest_s3_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manifest S3 Id"},"events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Events"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"inputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs S3 Urls"},"outputs_s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs S3 Urls"},"s3_urls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"S3 Urls"},"trace_id":{"type":"string","format":"uuid","title":"Trace Id"},"dotted_order":{"type":"string","title":"Dotted Order"},"trace_min_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Min Start Time"},"trace_max_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace Max Start Time"},"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Child Run Ids"},"direct_child_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Direct Child Run Ids"},"parent_run_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Parent Run Ids"},"feedback_stats":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"reference_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Example Id"},"total_tokens":{"type":"integer","title":"Total Tokens","default":0},"prompt_tokens":{"type":"integer","title":"Prompt Tokens","default":0},"completion_tokens":{"type":"integer","title":"Completion Tokens","default":0},"prompt_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Prompt Token Details"},"completion_token_details":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Completion Token Details"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"prompt_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Prompt Cost Details"},"completion_cost_details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Completion Cost Details"},"price_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Price Model Id"},"first_token_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Token Time"},"messages":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Messages"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"app_path":{"type":"string","title":"App Path"},"last_queued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Queued At"},"in_dataset":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Dataset"},"share_token":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Share Token"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]},"trace_first_received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trace First Received At"},"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds"},"trace_upgrade":{"type":"boolean","title":"Trace Upgrade","default":false},"reference_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Dataset Id"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"queue_run_id":{"type":"string","format":"uuid","title":"Queue Run Id"},"last_reviewed_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reviewed Time"},"added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Added At"},"effective_added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Effective Added At"},"reserved_by":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Reserved By","default":[]},"completed_by":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Completed By","default":[]},"source_proposed_example_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Proposed Example Id"}},"type":"object","required":["name","run_type","trace_id","dotted_order","id","status","session_id","app_path","queue_run_id"],"title":"RunSchemaWithAnnotationQueueInfo","description":"Run schema with annotation queue info."},"RunSelect":{"type":"string","enum":["id","name","run_type","start_time","end_time","status","error","extra","events","inputs","inputs_preview","inputs_s3_urls","inputs_or_signed_url","outputs","outputs_preview","outputs_s3_urls","outputs_or_signed_url","s3_urls","error_or_signed_url","events_or_signed_url","extra_or_signed_url","serialized_or_signed_url","parent_run_id","manifest_id","manifest_s3_id","manifest","session_id","serialized","reference_example_id","reference_dataset_id","total_tokens","prompt_tokens","prompt_token_details","completion_tokens","completion_token_details","total_cost","prompt_cost","prompt_cost_details","completion_cost","completion_cost_details","price_model_id","first_token_time","trace_id","dotted_order","last_queued_at","feedback_stats","child_run_ids","parent_run_ids","tags","in_dataset","app_path","share_token","trace_tier","trace_first_received_at","ttl_seconds","trace_upgrade","thread_id","trace_min_max_start_time","messages","inserted_at"],"title":"RunSelect","description":"Enum for available run columns."},"RunShareSchema":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"shared_trace_id":{"type":"string","format":"uuid","title":"Shared Trace Id"},"share_token":{"type":"string","format":"uuid","title":"Share Token"}},"type":"object","required":["run_id","shared_trace_id","share_token"],"title":"RunShareSchema"},"RunStats":{"properties":{"run_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run Count"},"latency_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P50"},"latency_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P99"},"first_token_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P50"},"first_token_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P99"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"median_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Median Tokens"},"completion_tokens_p50":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens P50"},"prompt_tokens_p50":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens P50"},"tokens_p99":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens P99"},"completion_tokens_p99":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens P99"},"prompt_tokens_p99":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens P99"},"last_run_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run Start Time"},"feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"run_facets":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Run Facets"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"},"streaming_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Streaming Rate"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Completion Cost"},"cost_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost P50"},"cost_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost P99"},"prompt_token_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prompt Token Details"},"completion_token_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Completion Token Details"},"prompt_cost_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prompt Cost Details"},"completion_cost_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Completion Cost Details"}},"type":"object","title":"RunStats"},"RunStatsGroupBy":{"properties":{"attribute":{"type":"string","enum":["name","run_type","tag","metadata"],"title":"Attribute"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"max_groups":{"type":"integer","title":"Max Groups","default":5}},"type":"object","required":["attribute"],"title":"RunStatsGroupBy","description":"Group by param for run stats."},"RunStatsGroupBySeriesResponse":{"properties":{"attribute":{"type":"string","enum":["name","run_type","tag","metadata"],"title":"Attribute"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"max_groups":{"type":"integer","title":"Max Groups","default":5},"set_by":{"anyOf":[{"type":"string","enum":["section","series"]},{"type":"null"}],"title":"Set By"}},"type":"object","required":["attribute"],"title":"RunStatsGroupBySeriesResponse","description":"Include additional information about where the group_by param was set."},"RunStatsQueryParams":{"properties":{"id":{"anyOf":[{"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 \u2014 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":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Session"},"reference_example":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Reference Example"},"execution_order":{"anyOf":[{"type":"integer","maximum":1,"minimum":1},{"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","title":"RunStatsQueryParams","description":"Query params for run stats."},"RunStatsSelect":{"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","last_run_start_time","feedback_stats","thread_feedback_stats","run_facets","error_rate","streaming_rate","total_cost","prompt_cost","completion_cost","cost_p50","cost_p99","session_feedback_stats","all_run_stats","all_token_stats","group_count","prompt_token_details","completion_token_details","prompt_cost_details","completion_cost_details"],"title":"RunStatsSelect","description":"Metrics you can select from run stats endpoint."},"RunTypeEnum":{"type":"string","enum":["tool","chain","llm","retriever","embedding","prompt","parser"],"title":"RunTypeEnum","description":"Enum for run types."},"RunsFilterDataSourceTypeEnum":{"type":"string","enum":["current","historical","lite","root_lite","runs_feedbacks_rmt_wide"],"title":"RunsFilterDataSourceTypeEnum","description":"Enum for run data source types."},"RunsGenerateQueryFeedbackKeys":{"type":"string","enum":["user_score","user_edited","user_removed","user_opened_run","user_selected_run","results_size","valid_filter"],"title":"RunsGenerateQueryFeedbackKeys"},"RunsQueryValidationError":{"properties":{"field":{"type":"string","title":"Field"},"message":{"type":"string","title":"Message"}},"type":"object","required":["field","message"],"title":"RunsQueryValidationError","description":"A single validation error for the runs query validate endpoint."},"RunsQueryValidationResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"errors":{"items":{"$ref":"#\/components\/schemas\/RunsQueryValidationError"},"type":"array","title":"Errors"}},"type":"object","required":["valid"],"title":"RunsQueryValidationResponse","description":"Response for POST \/runs\/query\/validate."},"SSOConfirmEmailRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"SSOConfirmEmailRequest"},"SSOEmailVerificationSendRequest":{"properties":{"email":{"type":"string","title":"Email"},"saml_provider_id":{"type":"string","format":"uuid","title":"Saml Provider Id"}},"type":"object","required":["email","saml_provider_id"],"title":"SSOEmailVerificationSendRequest"},"SSOEmailVerificationStatusRequest":{"properties":{"email":{"type":"string","title":"Email"},"saml_provider_id":{"type":"string","format":"uuid","title":"Saml Provider Id"}},"type":"object","required":["email","saml_provider_id"],"title":"SSOEmailVerificationStatusRequest"},"SSOEmailVerificationStatusResponse":{"properties":{"email_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Confirmed At"}},"type":"object","title":"SSOEmailVerificationStatusResponse"},"SSOProvider":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"provider_id":{"type":"string","format":"uuid","title":"Provider Id"},"default_workspace_role_id":{"type":"string","format":"uuid","title":"Default Workspace Role Id"},"default_workspace_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Default Workspace Ids"},"metadata_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Url"},"metadata_xml":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Xml"},"sso_groups_enabled":{"type":"boolean","title":"Sso Groups Enabled","default":false},"sso_groups_claim_field":{"type":"string","title":"Sso Groups Claim Field","default":"groups"},"sso_groups_required":{"type":"boolean","title":"Sso Groups Required","default":false},"sso_groups_role_sync_enabled":{"type":"boolean","title":"Sso Groups Role Sync Enabled","default":true},"attribute_mapping":{"anyOf":[{"$ref":"#\/components\/schemas\/SupabaseAttributeMapping"},{"type":"null"}]},"attribute_mapping_load_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute Mapping Load Error"}},"type":"object","required":["id","organization_id","provider_id","default_workspace_role_id","default_workspace_ids"],"title":"SSOProvider"},"SSOProviderSlim":{"properties":{"provider_id":{"type":"string","format":"uuid","title":"Provider Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"organization_display_name":{"type":"string","title":"Organization Display Name"}},"type":"object","required":["provider_id","organization_id","organization_display_name"],"title":"SSOProviderSlim"},"SSOSettingsCreate":{"properties":{"default_workspace_role_id":{"type":"string","format":"uuid","title":"Default Workspace Role Id"},"default_workspace_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Default Workspace Ids"},"metadata_xml":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Xml"},"metadata_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Url"},"attribute_mapping":{"anyOf":[{"$ref":"#\/components\/schemas\/SupabaseAttributeMapping"},{"type":"null"}]},"sso_groups_enabled":{"type":"boolean","title":"Sso Groups Enabled","default":false},"sso_groups_claim_field":{"type":"string","title":"Sso Groups Claim Field","default":"groups"},"sso_groups_required":{"type":"boolean","title":"Sso Groups Required","default":false},"sso_groups_role_sync_enabled":{"type":"boolean","title":"Sso Groups Role Sync Enabled","default":true}},"type":"object","required":["default_workspace_role_id","default_workspace_ids"],"title":"SSOSettingsCreate"},"SSOSettingsUpdate":{"properties":{"default_workspace_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Workspace Role Id"},"default_workspace_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Default Workspace Ids"},"metadata_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Url"},"metadata_xml":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Xml"},"sso_groups_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sso Groups Enabled"},"sso_groups_claim_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sso Groups Claim Field"},"sso_groups_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sso Groups Required"},"sso_groups_role_sync_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sso Groups Role Sync Enabled"},"attribute_mapping":{"anyOf":[{"$ref":"#\/components\/schemas\/SupabaseAttributeMapping"},{"type":"null"}]}},"type":"object","title":"SSOSettingsUpdate"},"SavedRunClusteringJobRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"last_n_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last N Hours"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"hierarchy":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Hierarchy"},"partitions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Partitions"},"sample":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Sample"},"summary_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Prompt"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter"},"attribute_schemas":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attribute Schemas"},"user_context":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"User Context"},"model":{"type":"string","enum":["openai","anthropic"],"title":"Model"},"cluster_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Model"},"summary_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Model"}},"type":"object","required":["name","hierarchy","partitions","sample","summary_prompt","filter","attribute_schemas","model"],"title":"SavedRunClusteringJobRequest","description":"Request to create a run clustering job."},"SecretKey":{"properties":{"key":{"type":"string","title":"Key"}},"type":"object","required":["key"],"title":"SecretKey"},"SecretUpsert":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["key","value"],"title":"SecretUpsert"},"ServiceAccount":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"default_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Workspace Id"}},"type":"object","required":["id","created_at","updated_at","name","organization_id","default_workspace_id"],"title":"ServiceAccount"},"ServiceAccountCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"workspaces":{"items":{"$ref":"#\/components\/schemas\/ServiceAccountWorkspaceAssignment"},"type":"array","title":"Workspaces","default":[]}},"type":"object","required":["name"],"title":"ServiceAccountCreateRequest"},"ServiceAccountCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"default_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Workspace Id"},"organization_identity_id":{"type":"string","format":"uuid","title":"Organization Identity Id"}},"type":"object","required":["id","created_at","updated_at","name","organization_id","default_workspace_id","organization_identity_id"],"title":"ServiceAccountCreateResponse"},"ServiceAccountDeleteResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"default_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Workspace Id"}},"type":"object","required":["id","created_at","updated_at","name","organization_id","default_workspace_id"],"title":"ServiceAccountDeleteResponse"},"ServiceAccountWorkspaceAssignment":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"}},"type":"object","required":["workspace_id"],"title":"ServiceAccountWorkspaceAssignment"},"SessionFeedbackDelta":{"properties":{"feedback_deltas":{"additionalProperties":{"$ref":"#\/components\/schemas\/FeedbackDelta"},"propertyNames":{"format":"uuid"},"type":"object","title":"Feedback Deltas"}},"type":"object","required":["feedback_deltas"],"title":"SessionFeedbackDelta","description":"List of feedback keys with number of improvements and regressions for each."},"SessionSortableColumns":{"type":"string","enum":["name","start_time","last_run_start_time","latency_p50","latency_p99","error_rate","feedback"],"title":"SessionSortableColumns"},"SetTenantHandleRequest":{"properties":{"tenant_handle":{"type":"string","title":"Tenant Handle"}},"type":"object","required":["tenant_handle"],"title":"SetTenantHandleRequest"},"SimpleExperimentInfo":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"SimpleExperimentInfo","description":"Simple experiment info schema for use with comparative experiments"},"SingleCustomChartResponse":{"properties":{"data":{"items":{"$ref":"#\/components\/schemas\/CustomChartsDataPoint"},"type":"array","title":"Data"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"index":{"type":"integer","title":"Index"},"chart_type":{"$ref":"#\/components\/schemas\/CustomChartType"},"series":{"items":{"$ref":"#\/components\/schemas\/CustomChartSeries-Output"},"type":"array","title":"Series"},"common_filters":{"anyOf":[{"$ref":"#\/components\/schemas\/CustomChartSeriesFilters"},{"type":"null"}]}},"type":"object","required":["data","id","title","index","chart_type","series"],"title":"SingleCustomChartResponse"},"SingleCustomChartResponseBase":{"properties":{"data":{"items":{"$ref":"#\/components\/schemas\/CustomChartsDataPoint"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"SingleCustomChartResponseBase"},"SingleCustomChartSubSectionResponse":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"index":{"type":"integer","title":"Index"},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"charts":{"items":{"$ref":"#\/components\/schemas\/SingleCustomChartResponse"},"type":"array","title":"Charts"}},"type":"object","required":["title","index","id","charts"],"title":"SingleCustomChartSubSectionResponse"},"SortByComparativeExperimentColumn":{"type":"string","enum":["name","created_at"],"title":"SortByComparativeExperimentColumn","description":"Enum for available comparative experiment columns to sort by."},"SortByDatasetColumn":{"type":"string","enum":["name","created_at","last_session_start_time","example_count","session_count","modified_at"],"title":"SortByDatasetColumn","description":"Enum for available dataset columns to sort by."},"SortParamsForRunsComparisonView":{"properties":{"sort_by":{"type":"string","title":"Sort By"},"sort_order":{"type":"string","enum":["ASC","DESC"],"title":"Sort Order","default":"DESC"}},"type":"object","required":["sort_by"],"title":"SortParamsForRunsComparisonView"},"SourceType":{"type":"string","enum":["api","model","app","auto_eval"],"title":"SourceType","description":"Enum for feedback source types."},"StripeAccountLinksCreate":{"properties":{"success_path":{"type":"string","title":"Success Path"}},"type":"object","required":["success_path"],"title":"StripeAccountLinksCreate"},"StripeBusinessBillingInfo":{"properties":{"name":{"type":"string","title":"Name"},"address":{"anyOf":[{"$ref":"#\/components\/schemas\/StripeCustomerAddress"},{"type":"null"}]}},"type":"object","required":["name"],"title":"StripeBusinessBillingInfo","description":"Stripe customer billing information."},"StripeBusinessInfo-Input":{"properties":{"company_info":{"anyOf":[{"$ref":"#\/components\/schemas\/StripeBusinessBillingInfo"},{"type":"null"}]},"tax_id":{"anyOf":[{"$ref":"#\/components\/schemas\/StripeTaxId"},{"type":"null"}]},"invoice_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Email"},"is_business":{"type":"boolean","title":"Is Business","default":false}},"type":"object","title":"StripeBusinessInfo"},"StripeBusinessInfo-Output":{"properties":{"company_info":{"anyOf":[{"$ref":"#\/components\/schemas\/StripeBusinessBillingInfo"},{"type":"null"}]},"tax_id":{"anyOf":[{"$ref":"#\/components\/schemas\/StripeTaxId"},{"type":"null"}]},"invoice_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Email"},"is_business":{"type":"boolean","title":"Is Business","default":false}},"type":"object","title":"StripeBusinessInfo"},"StripeCheckoutSessionsCreate":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"success_path":{"type":"string","title":"Success Path"}},"type":"object","required":["amount_cents","success_path"],"title":"StripeCheckoutSessionsCreate"},"StripeCustomerAddress":{"properties":{"line1":{"type":"string","title":"Line1"},"line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line2"},"city":{"type":"string","title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","title":"Country"}},"type":"object","required":["line1","city","postal_code","country"],"title":"StripeCustomerAddress","description":"Stripe customer address."},"StripeCustomerBillingInfo":{"properties":{"name":{"type":"string","title":"Name"},"address":{"$ref":"#\/components\/schemas\/StripeCustomerAddress"}},"type":"object","required":["name","address"],"title":"StripeCustomerBillingInfo","description":"Stripe customer billing information."},"StripePaymentInformation":{"properties":{"billing_info":{"$ref":"#\/components\/schemas\/StripeCustomerBillingInfo"},"setup_intent":{"type":"string","title":"Setup Intent"}},"type":"object","required":["billing_info","setup_intent"],"title":"StripePaymentInformation","description":"Stripe payment information."},"StripePaymentMethodInfo":{"properties":{"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last4"},"exp_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Month"},"exp_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Year"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"StripePaymentMethodInfo","description":"Stripe customer billing info."},"StripeSetupIntentResponse":{"properties":{"client_secret":{"type":"string","title":"Client Secret"}},"type":"object","required":["client_secret"],"title":"StripeSetupIntentResponse","description":"Stripe setup intent response."},"StripeTaxId":{"properties":{"value":{"type":"string","title":"Value"},"type":{"type":"string","title":"Type"}},"type":"object","required":["value","type"],"title":"StripeTaxId","description":"Stripe tax ID."},"StudioRunOverDatasetRequestSchema":{"properties":{"project_name":{"type":"string","title":"Project Name"},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"evaluator_rules":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Evaluator Rules"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["project_name","dataset_id"],"title":"StudioRunOverDatasetRequestSchema"},"SupabaseAttributeMapping":{"properties":{"keys":{"additionalProperties":{"$ref":"#\/components\/schemas\/SupabaseAttributeMappingKey"},"type":"object","title":"Keys"}},"type":"object","title":"SupabaseAttributeMapping","description":"Supabase SAML provider attribute_mapping. Empty keys is a valid value\n(clears the mapping). Map key is the claim key written into identity_data;\nvalue points at the SAML assertion attribute name."},"SupabaseAttributeMappingKey":{"properties":{"name":{"type":"string","title":"Name"},"array":{"type":"boolean","title":"Array","default":false}},"type":"object","required":["name"],"title":"SupabaseAttributeMappingKey","description":"Single entry in a Supabase SAML attribute_mapping.keys map."},"SystemMessage":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"system","title":"Type","default":"system"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["content"],"title":"SystemMessage","description":"Message for priming AI behavior.\n\nThe system message is usually passed in as the first of a sequence\nof input messages.\n\nExample:\n    ```python\n    from langchain_core.messages import HumanMessage, SystemMessage\n\n    messages = [\n        SystemMessage(content=\"You are a helpful assistant! Your name is Bob.\"),\n        HumanMessage(content=\"What is your name?\"),\n    ]\n\n    # Define a chat model and invoke it with the messages\n    print(model.invoke(messages))\n    ```"},"SystemMessageChunk":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"SystemMessageChunk","title":"Type","default":"SystemMessageChunk"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["content"],"title":"SystemMessageChunk","description":"System Message chunk."},"TTLSettings":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"default_trace_tier":{"$ref":"#\/components\/schemas\/TraceTier"},"apply_to_all_projects":{"type":"boolean","title":"Apply To All Projects","default":false},"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"configured_by":{"$ref":"#\/components\/schemas\/ConfiguredBy"},"longlived_ttl_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Longlived Ttl Days"}},"type":"object","required":["default_trace_tier","id","organization_id","created_at","updated_at","configured_by"],"title":"TTLSettings","description":"TTL settings model."},"TagCount":{"properties":{"tag":{"type":"string","title":"Tag"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["tag","count"],"title":"TagCount"},"TagKey":{"properties":{"key":{"type":"string","maxLength":255,"minLength":1,"title":"Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["key","id","created_at","updated_at"],"title":"TagKey"},"TagKeyCreate":{"properties":{"key":{"type":"string","maxLength":255,"minLength":1,"title":"Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["key"],"title":"TagKeyCreate"},"TagKeyUpdate":{"properties":{"key":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"TagKeyUpdate"},"TagKeyWithValues":{"properties":{"key":{"type":"string","maxLength":255,"minLength":1,"title":"Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"values":{"items":{"$ref":"#\/components\/schemas\/TagValue"},"type":"array","title":"Values"}},"type":"object","required":["key","id","created_at","updated_at"],"title":"TagKeyWithValues"},"TagKeyWithValuesAndTaggings":{"properties":{"key":{"type":"string","maxLength":255,"minLength":1,"title":"Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"values":{"items":{"$ref":"#\/components\/schemas\/TagValueWithTaggings"},"type":"array","title":"Values"}},"type":"object","required":["key","id","created_at","updated_at"],"title":"TagKeyWithValuesAndTaggings"},"TagValue":{"properties":{"value":{"type":"string","maxLength":255,"minLength":1,"title":"Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"tag_key_id":{"type":"string","format":"uuid","title":"Tag Key Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["value","id","tag_key_id","created_at","updated_at"],"title":"TagValue"},"TagValueCreate":{"properties":{"value":{"type":"string","maxLength":255,"minLength":1,"title":"Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["value"],"title":"TagValueCreate"},"TagValueUpdate":{"properties":{"value":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"TagValueUpdate"},"TagValueWithTaggings":{"properties":{"value":{"type":"string","maxLength":255,"minLength":1,"title":"Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"tag_key_id":{"type":"string","format":"uuid","title":"Tag Key Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"taggings":{"items":{"$ref":"#\/components\/schemas\/Tagging"},"type":"array","title":"Taggings"}},"type":"object","required":["value","id","tag_key_id","created_at","updated_at"],"title":"TagValueWithTaggings"},"Tagging":{"properties":{"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"resource_type":{"$ref":"#\/components\/schemas\/ResourceType"},"resource_id":{"type":"string","format":"uuid","title":"Resource Id"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["tag_value_id","resource_type","resource_id","id","created_at"],"title":"Tagging"},"TaggingCreate":{"properties":{"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"resource_type":{"$ref":"#\/components\/schemas\/ResourceType"},"resource_id":{"type":"string","format":"uuid","title":"Resource Id"}},"type":"object","required":["tag_value_id","resource_type","resource_id"],"title":"TaggingCreate"},"TaggingsByResourceType":{"properties":{"agents":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Agents","default":[]},"alerts":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Alerts","default":[]},"dashboards":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Dashboards","default":[]},"datasets":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Datasets","default":[]},"deployments":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Deployments","default":[]},"experiments":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Experiments","default":[]},"fleet_integrations":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Fleet Integrations","default":[]},"mcp_servers":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Mcp Servers","default":[]},"projects":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Projects","default":[]},"prompts":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Prompts","default":[]},"queues":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Queues","default":[]},"sandboxes":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Sandboxes","default":[]},"skills":{"items":{"$ref":"#\/components\/schemas\/Resource"},"type":"array","title":"Skills","default":[]}},"type":"object","title":"TaggingsByResourceType"},"TaggingsResponse":{"properties":{"tag_key":{"type":"string","title":"Tag Key"},"tag_key_id":{"type":"string","format":"uuid","title":"Tag Key Id"},"tag_value":{"type":"string","title":"Tag Value"},"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"resources":{"$ref":"#\/components\/schemas\/TaggingsByResourceType"}},"type":"object","required":["tag_key","tag_key_id","tag_value","tag_value_id","resources"],"title":"TaggingsResponse"},"TenantBulkUnshareRequest":{"properties":{"share_tokens":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Share Tokens"},"unshare_all":{"type":"boolean","title":"Unshare All","default":false}},"type":"object","title":"TenantBulkUnshareRequest"},"TenantCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"display_name":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9\\-_ ']+$","title":"Display Name"},"tenant_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Handle"},"is_personal":{"type":"boolean","title":"Is Personal","default":false}},"type":"object","required":["display_name"],"title":"TenantCreate","description":"Creation model for the tenant."},"TenantForUser":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"display_name":{"type":"string","title":"Display Name"},"is_personal":{"type":"boolean","title":"Is Personal"},"is_deleted":{"type":"boolean","title":"Is Deleted"},"tenant_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Handle"},"data_plane_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Plane Url"},"read_only":{"type":"boolean","title":"Read Only","default":false,"deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"}},"type":"object","required":["id","created_at","display_name","is_personal","is_deleted"],"title":"TenantForUser"},"TenantMembers":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"members":{"items":{"$ref":"#\/components\/schemas\/MemberIdentity"},"type":"array","title":"Members"},"pending":{"items":{"$ref":"#\/components\/schemas\/PendingIdentity"},"type":"array","title":"Pending"}},"type":"object","required":["tenant_id","members","pending"],"title":"TenantMembers","description":"Tenant members schema."},"TenantShareDatasetToken":{"properties":{"type":{"type":"string","const":"dataset","title":"Type"},"share_token":{"type":"string","title":"Share Token"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name"}},"type":"object","required":["type","share_token","created_at","dataset_id"],"title":"TenantShareDatasetToken"},"TenantShareRunToken":{"properties":{"type":{"type":"string","const":"run","title":"Type"},"share_token":{"type":"string","title":"Share Token"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"run_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Name"},"run_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Type"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"session_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Name"}},"type":"object","required":["type","share_token","created_at","run_id"],"title":"TenantShareRunToken"},"TenantShareTokensResponse":{"properties":{"entities":{"items":{"oneOf":[{"$ref":"#\/components\/schemas\/TenantShareRunToken"},{"$ref":"#\/components\/schemas\/TenantShareDatasetToken"}],"discriminator":{"propertyName":"type","mapping":{"dataset":"#\/components\/schemas\/TenantShareDatasetToken","run":"#\/components\/schemas\/TenantShareRunToken"}}},"type":"array","title":"Entities"}},"type":"object","required":["entities"],"title":"TenantShareTokensResponse"},"TenantStats":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"dataset_count":{"type":"integer","title":"Dataset Count"},"tracer_session_count":{"type":"integer","title":"Tracer Session Count"},"repo_count":{"type":"integer","title":"Repo Count"},"annotation_queue_count":{"type":"integer","title":"Annotation Queue Count"},"deployment_count":{"type":"integer","title":"Deployment Count"},"dashboards_count":{"type":"integer","title":"Dashboards Count"},"evaluator_count":{"type":"integer","title":"Evaluator Count"},"custom_app_count":{"type":"integer","title":"Custom App Count"}},"type":"object","required":["tenant_id","dataset_count","tracer_session_count","repo_count","annotation_queue_count","deployment_count","dashboards_count","evaluator_count","custom_app_count"],"title":"TenantStats","description":"Stats for a tenant."},"TenantUsageLimitInfo":{"properties":{"in_reject_set":{"type":"boolean","title":"In Reject Set"},"usage_limit_type":{"anyOf":[{"$ref":"#\/components\/schemas\/TenantUsageLimitType"},{"type":"null"}]},"tenant_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tenant Limit"}},"type":"object","required":["in_reject_set"],"title":"TenantUsageLimitInfo"},"TenantUsageLimitType":{"type":"string","enum":["payload_size","events_ingested_per_hour","total_unique_traces","events_ingested_per_minute","traces_deleted_per_hour","user_defined_monthly_traces","user_defined_monthly_longlived_traces","user_defined_unknown"],"title":"TenantUsageLimitType"},"ThreadMessagesFormatType":{"type":"string","enum":["all_messages","human_ai_pairs","first_human_last_ai"],"title":"ThreadMessagesFormatType","description":"Enum for thread messages format types."},"ThreadPreviewResponse":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"previews":{"additionalProperties":{"type":"string"},"propertyNames":{"$ref":"#\/components\/schemas\/ThreadMessagesFormatType"},"type":"object","title":"Previews"}},"type":"object","required":["thread_id","previews"],"title":"ThreadPreviewResponse","description":"Response to preview a thread."},"TimedeltaInput":{"properties":{"days":{"type":"integer","title":"Days","default":0},"hours":{"type":"integer","title":"Hours","default":0},"minutes":{"type":"integer","title":"Minutes","default":0}},"type":"object","title":"TimedeltaInput","description":"Timedelta input."},"ToolCall":{"properties":{"name":{"type":"string","title":"Name"},"args":{"additionalProperties":true,"type":"object","title":"Args"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"type":{"type":"string","const":"tool_call","title":"Type"}},"type":"object","required":["name","args","id"],"title":"ToolCall","description":"Represents an AI's request to call a tool.\n\nExample:\n    ```python\n    {\"name\": \"foo\", \"args\": {\"a\": 1}, \"id\": \"123\"}\n    ```\n\n    This represents a request to call the tool named `'foo'` with arguments\n    `{\"a\": 1}` and an identifier of `'123'`.\n\n!!! note \"Factory function\"\n\n    `tool_call` may also be used as a factory to create a `ToolCall`. Benefits\n    include:\n\n    * Required arguments strictly validated at creation time"},"ToolCallChunk":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"args":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Args"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Index"},"type":{"type":"string","const":"tool_call_chunk","title":"Type"}},"type":"object","required":["name","args","id","index"],"title":"ToolCallChunk","description":"A chunk of a tool call (yielded when streaming).\n\nWhen merging `ToolCallChunk` objects (e.g., via `AIMessageChunk.__add__`), all\nstring attributes are concatenated. Chunks are only merged if their values of\n`index` are equal and not `None`.\n\nExample:\n```python\nleft_chunks = [ToolCallChunk(name=\"foo\", args='{\"a\":', index=0)]\nright_chunks = [ToolCallChunk(name=None, args=\"1}\", index=0)]\n\n(\n    AIMessageChunk(content=\"\", tool_call_chunks=left_chunks)\n    + AIMessageChunk(content=\"\", tool_call_chunks=right_chunks)\n).tool_call_chunks == [ToolCallChunk(name=\"foo\", args='{\"a\":1}', index=0)]\n```"},"ToolMessage":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"tool","title":"Type","default":"tool"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"tool_call_id":{"type":"string","title":"Tool Call Id"},"artifact":{"title":"Artifact"},"status":{"type":"string","enum":["success","error"],"title":"Status","default":"success"}},"additionalProperties":true,"type":"object","required":["content","tool_call_id"],"title":"ToolMessage","description":"Message for passing the result of executing a tool back to a model.\n\n`ToolMessage` objects contain the result of a tool invocation. Typically, the result\nis encoded inside the `content` field.\n\n`tool_call_id` is used to associate the tool call request with the tool call\nresponse. Useful in situations where a chat model is able to request multiple tool\ncalls in parallel.\n\nExample:\n    A `ToolMessage` representing a result of `42` from a tool call with id\n\n    ```python\n    from langchain_core.messages import ToolMessage\n\n    ToolMessage(content=\"42\", tool_call_id=\"call_Jja7J89XsjrOLA5r!MEOW!SL\")\n    ```\n\nExample:\n    A `ToolMessage` where only part of the tool output is sent to the model\n    and the full output is passed in to artifact.\n\n    ```python\n    from langchain_core.messages import ToolMessage\n\n    tool_output = {\n        \"stdout\": \"From the graph we can see that the correlation between \"\n        \"x and y is ...\",\n        \"stderr\": None,\n        \"artifacts\": {\"type\": \"image\", \"base64_data\": \"\/9j\/4gIcSU...\"},\n    }\n\n    ToolMessage(\n        content=tool_output[\"stdout\"],\n        artifact=tool_output,\n        tool_call_id=\"call_Jja7J89XsjrOLA5r!MEOW!SL\",\n    )\n    ```"},"ToolMessageChunk":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"}],"title":"Content"},"additional_kwargs":{"additionalProperties":true,"type":"object","title":"Additional Kwargs"},"response_metadata":{"additionalProperties":true,"type":"object","title":"Response Metadata"},"type":{"type":"string","const":"ToolMessageChunk","title":"Type","default":"ToolMessageChunk"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"tool_call_id":{"type":"string","title":"Tool Call Id"},"artifact":{"title":"Artifact"},"status":{"type":"string","enum":["success","error"],"title":"Status","default":"success"}},"additionalProperties":true,"type":"object","required":["content","tool_call_id"],"title":"ToolMessageChunk","description":"Tool Message chunk."},"TraceTier":{"type":"string","enum":["longlived","shortlived"],"title":"TraceTier"},"TracerSession":{"properties":{"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset Id"},"reference_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Dataset Id"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]},"id":{"type":"string","format":"uuid","title":"Id"},"run_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Run Count"},"latency_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P50"},"latency_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency P99"},"first_token_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P50"},"first_token_p99":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Token P99"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Cost"},"prompt_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cost"},"completion_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Cost"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"last_run_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run Start Time"},"last_run_start_time_live":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run Start Time Live"},"feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Feedback Stats"},"session_feedback_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Session Feedback Stats"},"run_facets":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Run Facets"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"},"streaming_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Streaming Rate"},"test_run_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Test Run Number"},"experiment_progress":{"anyOf":[{"$ref":"#\/components\/schemas\/ExperimentProgress"},{"type":"null"}]}},"type":"object","required":["id","tenant_id"],"title":"TracerSession","description":"TracerSession schema."},"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","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset Id"},"reference_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Dataset Id"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]},"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"num_examples":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Examples"},"num_repetitions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Repetitions"},"evaluator_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Evaluator Keys"},"kicked_off_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kicked Off By"}},"type":"object","title":"TracerSessionCreate","description":"Create class for TracerSession."},"TracerSessionUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset Id"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]}},"type":"object","title":"TracerSessionUpdate","description":"Update class for TracerSession."},"TracerSessionWithoutVirtualFields":{"properties":{"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"default_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Dataset Id"},"reference_dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Dataset Id"},"trace_tier":{"anyOf":[{"$ref":"#\/components\/schemas\/TraceTier"},{"type":"null"}]},"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"last_run_start_time_live":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run Start Time Live"}},"type":"object","required":["id","tenant_id"],"title":"TracerSessionWithoutVirtualFields","description":"TracerSession schema."},"TriggerRulesRequest":{"properties":{"rule_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Rule Ids"},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"}},"type":"object","title":"TriggerRulesRequest"},"TrueFalseLiteral":{"type":"string","enum":["true","false"],"title":"TrueFalseLiteral"},"UpdateClusteringJobConfigRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"anyOf":[{"$ref":"#\/components\/schemas\/CreateRunClusteringJobRequest"},{"type":"null"}]},"schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Cron"}},"type":"object","title":"UpdateClusteringJobConfigRequest","description":"Request to update a clustering job config."},"UpdateFeedbackConfigSchema":{"properties":{"feedback_key":{"type":"string","title":"Feedback Key"},"feedback_config":{"anyOf":[{"$ref":"#\/components\/schemas\/FeedbackConfig"},{"type":"null"}]},"is_lower_score_better":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Lower Score Better"}},"type":"object","required":["feedback_key"],"title":"UpdateFeedbackConfigSchema"},"UpdateRepoRequest":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"readme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readme"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"},"restricted_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted Mode"}},"additionalProperties":false,"type":"object","title":"UpdateRepoRequest","description":"Fields to update a repo"},"UpdateRoleRequest":{"properties":{"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["display_name","description","permissions"],"title":"UpdateRoleRequest"},"UpdateRunClusteringJobRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"UpdateRunClusteringJobRequest","description":"Request to update a session cluster job."},"UpdateRunClusteringJobResponse":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"}},"type":"object","required":["name","status"],"title":"UpdateRunClusteringJobResponse","description":"Response to update a session cluster job."},"UpsertTTLSettingsRequest":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"default_trace_tier":{"$ref":"#\/components\/schemas\/TraceTier"},"apply_to_all_projects":{"type":"boolean","title":"Apply To All Projects","default":false}},"type":"object","required":["default_trace_tier"],"title":"UpsertTTLSettingsRequest","description":"Base TTL settings model."},"UpsertUsageLimit":{"properties":{"limit_type":{"$ref":"#\/components\/schemas\/UsageLimitType"},"limit_value":{"type":"integer","title":"Limit Value"},"id":{"type":"string","format":"uuid","title":"Id"},"scope":{"$ref":"#\/components\/schemas\/UsageLimitScope","default":"workspace"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"identity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Identity Id"}},"type":"object","required":["limit_type","limit_value"],"title":"UpsertUsageLimit","description":"Request body for creating or updating a usage limit."},"UsageLimit":{"properties":{"limit_type":{"$ref":"#\/components\/schemas\/UsageLimitType"},"limit_value":{"type":"integer","title":"Limit Value"},"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","format":"uuid","title":"Tenant Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["limit_type","limit_value","tenant_id","created_at","updated_at"],"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":["monthly_traces","monthly_longlived_traces"],"title":"UsageLimitType","description":"Type of usage limit."},"UsageMetadata":{"properties":{"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"total_tokens":{"type":"integer","title":"Total Tokens"},"input_token_details":{"$ref":"#\/components\/schemas\/InputTokenDetails"},"output_token_details":{"$ref":"#\/components\/schemas\/OutputTokenDetails"}},"type":"object","required":["input_tokens","output_tokens","total_tokens"],"title":"UsageMetadata","description":"Usage metadata for a message, such as token counts.\n\nThis is a standard representation of token usage that is consistent across models.\n\nExample:\n    ```python\n    {\n        \"input_tokens\": 350,\n        \"output_tokens\": 240,\n        \"total_tokens\": 590,\n        \"input_token_details\": {\n            \"audio\": 10,\n            \"cache_creation\": 200,\n            \"cache_read\": 100,\n        },\n        \"output_token_details\": {\n            \"audio\": 10,\n            \"reasoning\": 200,\n        },\n    }\n    ```\n\n!!! warning \"Behavior changed in `langchain-core` 0.3.9\"\n\n    Added `input_token_details` and `output_token_details`.\n\n!!! note \"LangSmith SDK\"\n\n    The LangSmith SDK also has a `UsageMetadata` class. While the two share fields,\n    LangSmith's `UsageMetadata` has additional fields to capture cost information\n    used by the LangSmith platform."},"UserOnboardingStateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ls_user_id":{"type":"string","format":"uuid","title":"Ls User Id"},"tracing_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tracing Completed At"},"lgstudio_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lgstudio Completed At"},"playground_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Playground Completed At"},"evaluation_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Evaluation Completed At"},"success_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Success Viewed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","ls_user_id","created_at","updated_at"],"title":"UserOnboardingStateResponse"},"UserWithPassword":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ls_user_id":{"type":"string","format":"uuid","title":"Ls User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","required":["id","ls_user_id","created_at","updated_at","email"],"title":"UserWithPassword"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkspaceCreate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9\\-_ '@()]+$","title":"Display Name"},"tenant_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Handle"}},"type":"object","required":["display_name"],"title":"WorkspaceCreate","description":"Creation model for the workspace."},"WorkspaceInviteResult":{"properties":{"email":{"type":"string","title":"Email"},"read_only":{"type":"boolean","title":"Read Only","default":false,"deprecated":true},"role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"workspace_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Workspace Ids"},"workspace_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Role Id"},"workspace_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Role Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"access_scope":{"$ref":"#\/components\/schemas\/AccessScope","default":"workspace"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"org_role_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Role Id"},"org_role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Role Name"},"ls_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ls User Id"}},"type":"object","required":["email","id","created_at"],"title":"WorkspaceInviteResult","description":"Response type for the batch workspace invite endpoint.\n\nExtends PendingIdentity so existing clients continue to work. When the\ninvitee was already an active org member, ``ls_user_id`` is populated\nand ``email`` is filled from the request payload."},"WorkspacePatch":{"properties":{"display_name":{"type":"string","minLength":1,"pattern":"^[a-zA-Z0-9\\-_ '@()]+$","title":"Display Name"}},"type":"object","required":["display_name"],"title":"WorkspacePatch","description":"Patch model for the workspace."},"_SSOEmailLookupRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"_SSOEmailLookupRequest"},"app__hub__crud__tenants__Tenant":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"type":"string","title":"Display Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"tenant_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Handle"}},"type":"object","required":["id","display_name","created_at"],"title":"Tenant"},"app__schemas__Tenant":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"display_name":{"type":"string","title":"Display Name"},"is_personal":{"type":"boolean","title":"Is Personal"},"is_deleted":{"type":"boolean","title":"Is Deleted"},"tenant_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Handle"},"data_plane_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Plane Url"}},"type":"object","required":["id","created_at","display_name","is_personal","is_deleted"],"title":"Tenant","description":"Tenant schema."},"abac.ErrorResponse":{"type":"object","properties":{"error":{"type":"string","example":"Invalid request: missing required fields"}}},"alerts.AlertAction":{"type":"object","required":["config","target"],"properties":{"alert_rule_id":{"type":"string"},"config":{"type":"object"},"created_at":{"type":"string"},"id":{"type":"string"},"target":{"type":"string","enum":["pagerduty","webhook","dynatrace","slack"]},"updated_at":{"type":"string"}}},"alerts.AlertActionBase":{"type":"object","required":["config","target"],"properties":{"alert_rule_id":{"type":"string"},"config":{"type":"object"},"id":{"type":"string"},"target":{"type":"string","enum":["pagerduty","webhook","dynatrace","slack"]}}},"alerts.AlertRule":{"type":"object","required":["aggregation","attribute","description","name","operator","type","window_minutes"],"properties":{"aggregation":{"type":"string","enum":["avg","sum","pct"]},"attribute":{"type":"string","enum":["latency","error_count","feedback_score","run_latency","run_count","total_cost"]},"created_at":{"type":"string"},"denominator_filter":{"type":"string"},"description":{"type":"string"},"filter":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"operator":{"type":"string","enum":["gte","lte","gt","lt"]},"session_id":{"type":"string"},"session_name":{"type":"string"},"threshold":{"type":"number"},"threshold_multiplier":{"type":"number"},"threshold_window_minutes":{"type":"integer","maximum":60},"type":{"type":"string","enum":["threshold","change"]},"updated_at":{"type":"string"},"window_minutes":{"description":"1-60 minutes for alert rule","type":"integer","maximum":60,"minimum":1}}},"alerts.AlertRuleBase":{"type":"object","required":["aggregation","attribute","description","name","operator","type","window_minutes"],"properties":{"aggregation":{"type":"string","enum":["avg","sum","pct"]},"attribute":{"type":"string","enum":["latency","error_count","feedback_score","run_latency","run_count","total_cost"]},"denominator_filter":{"type":"string"},"description":{"type":"string"},"filter":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"operator":{"type":"string","enum":["gte","lte","gt","lt"]},"threshold":{"type":"number"},"threshold_multiplier":{"type":"number"},"threshold_window_minutes":{"type":"integer","maximum":60},"type":{"type":"string","enum":["threshold","change"]},"window_minutes":{"description":"1-60 minutes for alert rule","type":"integer","maximum":60,"minimum":1}}},"alerts.AlertRuleResponse":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"#\/components\/schemas\/alerts.AlertAction"}},"rule":{"$ref":"#\/components\/schemas\/alerts.AlertRule"}}},"alerts.CreateAlertRuleRequest":{"type":"object","required":["actions","rule"],"properties":{"actions":{"type":"array","items":{"$ref":"#\/components\/schemas\/alerts.AlertActionBase"}},"rule":{"$ref":"#\/components\/schemas\/alerts.AlertRuleBase"}}},"alerts.ErrorResponse":{"type":"object","properties":{"error":{"type":"string","example":"Invalid request: missing required fields"}}},"alerts.UpdateAlertRuleRequest":{"type":"object","required":["actions","rule"],"properties":{"actions":{"type":"array","items":{"$ref":"#\/components\/schemas\/alerts.AlertActionBase"}},"rule":{"$ref":"#\/components\/schemas\/alerts.AlertRuleBase"}}},"annotationqueues.AddReviewerRequest":{"type":"object","required":["identity_id"],"properties":{"identity_id":{"type":"string"}}},"annotationqueues.AddReviewerResponse":{"type":"object","properties":{"identity_id":{"type":"string"}}},"authn.OrganizationConfig":{"type":"object","properties":{"agent_builder_enabled":{"description":"AgentBuilderEnabled indicates whether Agent Builder is enabled for the organization.","type":"boolean"},"allow_custom_iframes":{"description":"AllowCustomIframes indicates whether to allow custom iframes for trace rendering.","type":"boolean"},"arbitrary_cost_tracking_enabled":{"description":"ArbitraryCostTrackingEnabled indicates whether arbitrary cost tracking flows are enabled","type":"boolean"},"byoc_enabled":{"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"},"can_disable_public_sharing":{"description":"CanDisablePublicSharing indicates whether this org can disable public sharing of resources like traces, datasets, and prompts.","type":"boolean"},"can_restrict_browser_secrets":{"description":"CanRestrictBrowserSecrets indicates whether the org can restrict browser-level secrets in the Playground (enterprise-only).","type":"boolean"},"can_set_api_key_max_expiry":{"description":"CanSetApiKeyMaxExpiry indicates whether the org can set a maximum expiry duration for API keys (enterprise-only).","type":"boolean"},"can_use_abac":{"description":"CanUseAbac indicates whether this org can use attribute-based access control policies.","type":"boolean"},"can_use_audit_logs":{"description":"CanUseAuditLogs indicates whether this org can use audit logging functionality.","type":"boolean"},"can_use_bulk_export":{"description":"CanUseBulkExport indicates whether this org can create bulk exports.","type":"boolean"},"can_use_langgraph_cloud":{"description":"CanUseLanggraphCloud indicates whether this org can use LangGraph Platform.","type":"boolean"},"can_use_llm_auth_proxy":{"description":"CanUseLLMAuthProxy indicates whether the org can use the LLM auth proxy (enterprise-only).","type":"boolean"},"can_use_rbac":{"description":"CanUseRbac indicates whether this org can create new users using roles based on their plan.","type":"boolean"},"can_use_saml_sso":{"description":"CanUseSamlSso indicates whether this org can configure SAML SSO.","type":"boolean"},"clio_enabled":{"description":"CLIOEnabled indicates whether CLIO is enabled for this org.","type":"boolean"},"datadog_rum_session_sample_rate":{"description":"DatadogRumSessionSampleRate indicates the sampling rate for datadog RUM sessions.","type":"integer"},"demo_lgp_new_graph_enabled":{"description":"DemoLgpNewGraphEnabled indicates whether this org can use the demo page for creating new graphs.","type":"boolean"},"dev_zero_deployments_enabled":{"description":"DevZeroDeploymentsEnabled indicates whether the org can create development deployments that scale to zero.","type":"boolean"},"enable_align_evaluators":{"description":"EnableAlignEvaluators indicates whether to enable the align evaluators flow for this org.","type":"boolean"},"enable_burndown_vs_commit_view":{"description":"EnableBurndownVsCommitView indicates whether the org can view contract usage (burndown vs commitment).","type":"boolean"},"enable_granular_usage_reporting":{"description":"EnableGranularUsageReporting indicates whether the org can use granular usage reporting.","type":"boolean"},"enable_langgraph_pricing":{"description":"EnableLanggraphPricing indicates whether to show Agent marketplace in Langgraph tab.","type":"boolean"},"enable_lgp_listeners_page":{"description":"EnableLgpListenersPage indicates whether the lgp listeners page should be shown","type":"boolean"},"enable_markdown_in_tracing":{"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_pricing_redesign":{"description":"EnablePricingRedesign indicates whether the pricing redesign is enabled","type":"boolean"},"enable_querying_v2_endpoints":{"description":"EnableQueryingV2Endpoints indicates whether to enable the querying v2 endpoints for this org.","type":"boolean"},"enable_run_tree_streaming":{"description":"EnableRunTreeStreaming indicates whether to enable the run tree streaming feature for this org.","type":"boolean"},"enable_thread_view_playground":{"description":"EnableThreadViewPlayground indicates whether to allow opening top-level thread view runs in the playground.","type":"boolean"},"enable_threads_improvements":{"description":"EnableThreadsImprovements indicates whether to enable the threads improvements feature for this org.","type":"boolean"},"engine_default_enabled":{"description":"EngineDefaultEnabled indicates whether Engine is enabled by default for this organization's plan.","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"},"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"},"langgraph_deploy_own_cloud_enabled":{"description":"LangGraphDeployOwnCloudEnabled indicates whether the org can deploy LangGraph cloud to their own cloud.","type":"boolean"},"langgraph_enterprise_enabled":{"description":"LangGraphEnterpriseEnabled indicates whether the org has access to LangGraph Enterprise features.","type":"boolean"},"langgraph_remote_reconciler_enabled":{"description":"LangGraphRemoteReconcilerEnabled indicates whether an org's LangGraph deployments are reconciled via a remote reconciler instance.","type":"boolean"},"langsmith_alerts_poc_enabled":{"description":"LangsmithAlertsPocEnabled indicates whether to enable the legacy alerts POC for this org.","type":"boolean"},"langsmith_deployment_distributed_runtime_enabled":{"description":"LangSmithDeploymentDistributedRuntimeEnabled indicates whether distributed runtime is enabled for the organization.","type":"boolean"},"langsmith_deployment_dr_enabled_dev":{"type":"boolean"},"lgp_templates_enabled":{"description":"LgpTemplatesEnabled indicates whether to enable LGP templates for this org.","type":"boolean"},"llm_gateway_enabled":{"description":"LLMGatewayEnabled indicates whether this org can use the LLM Gateway\n(admin UI and gateway policies).","type":"boolean"},"max_agent_builder_assistants":{"description":"MaxAgentBuilderAssistants is the maximum number of Agent Builder assistants allowed for this org.","type":"integer"},"max_agent_builder_runs":{"description":"MaxAgentBuilderRuns is the maximum number of Agent Builder runs per month.\nDefault is -1 (unlimited). Set to a positive value for a specific limit.","type":"integer"},"max_free_langgraph_cloud_deployments":{"description":"MaxFreeLanggraphCloudDeployments is the maximum number of free LangGraph Platform deployments allowed for this org.","type":"integer"},"max_identities":{"description":"MaxIdentities is the maximum number of identities allowed in this org.","type":"integer"},"max_langgraph_cloud_deployments":{"description":"MaxLanggraphCloudDeployments is the maximum number of LangGraph Platform deployments allowed for this org.","type":"integer"},"max_prompt_webhooks":{"description":"MaxPromptWebhooks independently limits each org's Prompt Hub and Context Hub webhook collections.","type":"integer"},"max_sandbox_cpu":{"description":"MaxSandboxCpu is the total CPU cores allowed for sandboxes (e.g., \"4\", \"8\").","type":"string"},"max_sandbox_memory":{"description":"MaxSandboxMemory is the total memory allowed for sandboxes (e.g., \"8Gi\", \"16Gi\").","type":"string"},"max_sandboxes":{"description":"MaxSandboxes is the maximum number of sandboxes allowed for this org.","type":"integer"},"max_workspaces":{"description":"MaxWorkspaces is the maximum number of workspaces allowed in this org. -1 means no limit.","type":"integer"},"new_rule_evaluator_creation_version":{"description":"New Evaluator Version","type":"integer"},"plan_tier":{"description":"PlanTier is the organization's payment plan tier (e.g., \"free\", \"developer\", \"plus\", \"enterprise\").\nPopulated from Metronome's __tier custom field during auth verification.","type":"string"},"playground_evaluator_strategy":{"description":"PlaygroundEvaluatorStrategy indicates the method of running evaluators in the playground\noptions are \"cron\", \"background\", or \"sync\"","type":"string"},"premier_plan_approval_date":{"description":"PremierPlanApprovalDate is the date when the org was approved for the premier plan in YYYY-MM-DD format.","type":"string"},"prompt_optimization_jobs_enabled":{"description":"PromptOptimizationJobsEnabled indicates whether the org can use the prompt optimization jobs feature.","type":"boolean"},"sandbox_enabled":{"description":"SandboxEnabled indicates whether this org can use sandboxes.","type":"boolean"},"show_playground_prompt_canvas":{"description":"ShowPlaygroundPromptCanvas indicates whether to show the playground prompt canvas.","type":"boolean"},"show_updated_resource_tags":{"description":"ShowUpdatedResourceTags indicates whether to show updated resource tags to users in this org.","type":"boolean"},"show_updated_sidenav":{"description":"ShowUpdatedSidenav indicates whether to show updated side nav to users in this org.","type":"boolean"},"startup_plan_approval_date":{"description":"StartupPlanApprovalDate is the date when the org was approved for the startup plan in YYYY-MM-DD format.","type":"string"},"tenant_skip_topk_facets":{"description":"TenantSkipTopkFacets indicates whether the tenant should skip topk facets in run stats.","type":"boolean"},"use_exact_search_for_prompts":{"description":"UseExactSearchForPrompts indicates whether to use exact search for prompts.","type":"boolean"}}},"authn.PublicAuthInfo":{"type":"object","properties":{"ls_user_id":{"type":"string"},"organization_id":{"type":"string"},"tenant_id":{"type":"string"},"user_email":{"type":"string"},"user_id":{"type":"string"}}},"authz_internal.AbacAttributeName":{"type":"string","enum":["resource_tag_key"],"x-enum-varnames":["AbacAttributeNameResourceTagKey"]},"authz_internal.AbacOperator":{"type":"string","enum":["equals","not_equals","equals_ignore_case","not_equals_ignore_case","matches","not_matches","equals_if_exists","not_equals_if_exists","equals_ignore_case_if_exists","not_equals_ignore_case_if_exists","matches_if_exists","not_matches_if_exists"],"x-enum-varnames":["AbacOperatorEquals","AbacOperatorNotEquals","AbacOperatorEqualsIgnoreCase","AbacOperatorNotEqualsIgnoreCase","AbacOperatorMatches","AbacOperatorNotMatches","AbacOperatorEqualsIfExists","AbacOperatorNotEqualsIfExists","AbacOperatorEqualsIgnoreCaseIfExists","AbacOperatorNotEqualsIgnoreCaseIfExists","AbacOperatorMatchesIfExists","AbacOperatorNotMatchesIfExists"]},"authz_internal.AccessPolicy":{"type":"object","properties":{"condition_groups":{"type":"array","items":{"$ref":"#\/components\/schemas\/authz_internal.ConditionGroup"}},"created_at":{"type":"string"},"description":{"type":"string"},"effect":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"role_ids":{"type":"array","items":{"type":"string"}},"updated_at":{"type":"string"}}},"authz_internal.AccessPolicyCreateResponse":{"type":"object","properties":{"id":{"type":"string"}}},"authz_internal.AttachAccessPoliciesPayload":{"type":"object","properties":{"access_policy_ids":{"type":"array","items":{"type":"string"}}}},"authz_internal.Condition":{"type":"object","properties":{"attribute_key":{"type":"string"},"attribute_name":{"$ref":"#\/components\/schemas\/authz_internal.AbacAttributeName"},"attribute_value":{"type":"string"},"operator":{"$ref":"#\/components\/schemas\/authz_internal.AbacOperator"}}},"authz_internal.ConditionGroup":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#\/components\/schemas\/authz_internal.Condition"}},"permission":{"$ref":"#\/components\/schemas\/authz_internal.Permission"},"resource_type":{"type":"string"}}},"authz_internal.CreateAccessPolicyPayload":{"type":"object","properties":{"condition_groups":{"type":"array","items":{"$ref":"#\/components\/schemas\/authz_internal.ConditionGroup"}},"description":{"type":"string"},"effect":{"type":"string"},"name":{"type":"string"},"role_ids":{"description":"if present, attach to the specified roles","type":"array","items":{"type":"string"}}}},"authz_internal.ListAccessPoliciesResponse":{"type":"object","properties":{"access_policies":{"type":"array","items":{"$ref":"#\/components\/schemas\/authz_internal.AccessPolicy"}}}},"authz_internal.Permission":{"type":"string","enum":["annotation-queues:create","annotation-queues:delete","annotation-queues:read","annotation-queues:update","charts:create","charts:delete","charts:read","charts:update","datasets:create","datasets:delete","datasets:download","datasets:read","datasets:share","datasets:tag-on-create","datasets:update","deployments:create","deployments:delete","deployments:read","deployments:update","feedback:create","feedback:delete","feedback:read","feedback:update","experiments:run","issues:create","issues:delete","issues:read","issues:update","projects:create","projects:delete","projects:read","projects:tag-on-create","projects:update","projects:increase-trace-tier","projects:decrease-trace-tier","prompts:create","prompts:delete","prompts:read","prompts:tag-on-create","prompts:update","prompts:share","rules:create","rules:delete","rules:read","rules:update","rules:configure-retention","runs:create","runs:read","runs:share","runs:delete","sandboxes:create","sandboxes:delete","sandboxes:read","sandboxes:tag-on-create","sandboxes:update","sandboxes:exec","workspaces:manage-members","workspaces:manage-secrets","workspaces:manage","workspaces:manage-model-configs","workspaces:read","alerts:create","alerts:update","alerts:delete","alerts:read","bulk-exports:read","bulk-exports:manage","mcp-servers:create","mcp-servers:delete","mcp-servers:invoke","mcp-servers:read","mcp-servers:update","gateway:invoke","fleet:read-admin-config","fleet:write-admin-config","organization:pats:create","organization:read","organization:manage"],"x-enum-varnames":["AnnotationQueuesCreate","AnnotationQueuesDelete","AnnotationQueuesRead","AnnotationQueuesUpdate","ChartsCreate","ChartsDelete","ChartsRead","ChartsUpdate","DatasetsCreate","DatasetsDelete","DatasetsDownload","DatasetsRead","DatasetsShare","DatasetsTagOnCreate","DatasetsUpdate","DeploymentsCreate","DeploymentsDelete","DeploymentsRead","DeploymentsUpdate","FeedbackCreate","FeedbackDelete","FeedbackRead","FeedbackUpdate","ExperimentsRun","IssuesCreate","IssuesDelete","IssuesRead","IssuesUpdate","ProjectsCreate","ProjectsDelete","ProjectsRead","ProjectsTagOnCreate","ProjectsUpdate","ProjectsIncreaseTraceTier","ProjectsDecreaseTraceTier","PromptsCreate","PromptsDelete","PromptsRead","PromptsTagOnCreate","PromptsUpdate","PromptsShare","RulesCreate","RulesDelete","RulesRead","RulesUpdate","RulesConfigureRetention","RunsCreate","RunsRead","RunsShare","RunsDelete","SandboxesCreate","SandboxesDelete","SandboxesRead","SandboxesTagOnCreate","SandboxesUpdate","SandboxesExec","WorkspacesManageMembers","WorkspacesManageSecrets","WorkspacesManage","WorkspacesManageModelConfigs","WorkspacesRead","AlertsCreate","AlertsUpdate","AlertsDelete","AlertsRead","BulkExportsRead","BulkExportsManage","McpServersCreate","McpServersDelete","McpServersInvoke","McpServersRead","McpServersUpdate","GatewayInvoke","FleetReadAdminConfig","FleetWriteAdminConfig","OrganizationPATsCreate","OrganizationRead","OrganizationManage"]},"backfills.restartBackfillRequest":{"type":"object","properties":{"backfill_name":{"type":"string"}}},"commits.CommitResponse":{"type":"object","properties":{"commit_hash":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"$ref":"#\/components\/schemas\/commits.ExampleRun"}},"is_draft":{"type":"boolean"},"manifest":{"type":"object"},"model_config":{"type":"object"},"model_provider":{"type":"string"}}},"commits.CommitWithLookups":{"type":"object","properties":{"commit_hash":{"description":"The hash of the commit","type":"string"},"created_at":{"description":"When the commit was created","type":"string","format":"date-time"},"description":{"description":"Optional human-readable description for the commit","type":"string"},"example_run_ids":{"description":"Example run IDs associated with the commit","type":"array","items":{"type":"string","format":"uuid"}},"full_name":{"description":"Author's full name","type":"string"},"id":{"description":"The commit ID","type":"string","format":"uuid"},"manifest":{"description":"The manifest of the commit","type":"object"},"manifest_sha":{"description":"The SHA of the manifest","type":"array","items":{"type":"integer"}},"num_downloads":{"description":"Number of API downloads","type":"integer"},"num_views":{"description":"Number of web views","type":"integer"},"parent_commit_hash":{"description":"The hash of the parent commit","type":"string"},"parent_id":{"description":"The ID of the parent commit","type":"string","format":"uuid"},"repo_id":{"description":"Repository ID","type":"string","format":"uuid"},"updated_at":{"description":"When the commit was last updated","type":"string","format":"date-time"}}},"commits.CreateCommitReq":{"type":"object","properties":{"description":{"type":"string"},"manifest":{"type":"object"},"parent_commit":{"type":"string"},"skip_webhooks":{"description":"SkipWebhooks allows skipping webhook notifications. Can be true (boolean) to skip all, or an array of webhook UUIDs to skip specific ones."}}},"commits.CreateCommitResponse":{"type":"object","properties":{"commit":{"$ref":"#\/components\/schemas\/commits.CommitWithLookups"}}},"commits.ErrorResponse":{"type":"object","properties":{"error":{"description":"Error message","type":"string"}}},"commits.ExampleRun":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"inputs":{"type":"object"},"outputs":{"type":"object"},"session_id":{"type":"string","format":"uuid"},"start_time":{"type":"string"}}},"commits.ListCommitsResponse":{"type":"object","properties":{"commits":{"description":"List of commits with lookup information","type":"array","items":{"$ref":"#\/components\/schemas\/commits.CommitWithLookups"}},"total":{"description":"Total number of commits","type":"integer"}}},"data_planes.CreateDataPlaneRequestAws":{"type":"object","properties":{"external_id":{"type":"string"},"name":{"type":"string"},"public_load_balancer":{"type":"boolean"},"region":{"type":"string"},"role_arn":{"type":"string"},"vpc_cidr":{"type":"string"}}},"data_planes.ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"error":{"type":"string"},"missing_permissions":{"type":"array","items":{"$ref":"#\/components\/schemas\/data_planes.MissingPermission"}}}},"data_planes.ListPublicDataPlanesResponse":{"type":"object","properties":{"data_planes":{"type":"array","items":{"$ref":"#\/components\/schemas\/data_planes.PublicDataPlane"}}}},"data_planes.MissingPermission":{"type":"object","properties":{"action":{"type":"string"},"decision":{"type":"string"},"resource_arn":{"type":"string"}}},"data_planes.PublicDataPlane":{"type":"object","properties":{"api_url":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"$ref":"#\/components\/schemas\/data_planes.Status"},"status_updated_at":{"type":"string"},"workspaces":{"type":"array","items":{"$ref":"#\/components\/schemas\/data_planes.PublicDataPlaneWorkspace"}}}},"data_planes.PublicDataPlaneWorkspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"data_planes.Status":{"type":"string","enum":["requested","provisioning","provisioning_failed","active","inactive","deprovisioning","deleted","revoked"],"x-enum-varnames":["DataPlaneStatusRequested","DataPlaneStatusProvisioning","DataPlaneStatusProvisioningFailed","DataPlaneStatusActive","DataPlaneStatusInactive","DataPlaneStatusDeprovisioning","DataPlaneStatusDeleted","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":{"commit_hash":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"}}},"directories.CommitResponse":{"type":"object","properties":{"commit":{"$ref":"#\/components\/schemas\/directories.CommitInfo"}}},"directories.CreateDirectoryCommitRequest":{"type":"object","properties":{"files":{"description":"Files maps path to an Entry (object = create\/update\/link, null = delete\/unlink).","type":"object","additionalProperties":{}},"parent_commit":{"type":"string"},"skip_webhooks":{"description":"SkipWebhooks, when true, suppresses Context Hub commit webhooks for this\ncommit. Deliberately a plain bool, not the any (bool | []string) shape of\nthe prompt-hub CreateCommitReq.SkipWebhooks: Context Hub v1 has no\nper-webhook filtering, so a bool is the correct shape.","type":"boolean"}}},"directories.GetDirectoryResponse":{"type":"object","properties":{"commit_hash":{"type":"string"},"commit_id":{"type":"string"},"files":{"type":"object","additionalProperties":{}}}},"evaluators.BulkDeleteEvaluatorFailedItem":{"type":"object","properties":{"error":{"type":"string"},"id":{"type":"string"}}},"evaluators.BulkDeleteEvaluatorsResponse":{"type":"object","properties":{"failed":{"type":"array","items":{"$ref":"#\/components\/schemas\/evaluators.BulkDeleteEvaluatorFailedItem"}},"succeeded":{"type":"array","items":{"type":"string"}}}},"evaluators.CodeEvaluator":{"type":"object","properties":{"code":{"type":"string"},"evaluator_id":{"type":"string"},"language":{"description":"Default: \"python\"","type":"string"}}},"evaluators.CreateCodeEvaluatorRequest":{"type":"object","properties":{"code":{"type":"string"},"language":{"description":"Default: \"python\"","type":"string"}}},"evaluators.CreateEvaluatorRequest":{"type":"object","properties":{"code_evaluator":{"$ref":"#\/components\/schemas\/evaluators.CreateCodeEvaluatorRequest"},"llm_evaluator":{"$ref":"#\/components\/schemas\/evaluators.CreateLLMEvaluatorRequest"},"name":{"type":"string"},"type":{"$ref":"#\/components\/schemas\/evaluators.EvaluatorType"}}},"evaluators.CreateEvaluatorResponse":{"type":"object","properties":{"evaluator":{"$ref":"#\/components\/schemas\/evaluators.Evaluator"}}},"evaluators.CreateLLMEvaluatorRequest":{"type":"object","properties":{"commit_hash_or_tag":{"type":"string"},"playground_settings_id":{"description":"Model Configuration ID","type":"string"},"prompt_repo_handle":{"type":"string"},"variable_mapping":{"type":"object"}}},"evaluators.ErrorResponse":{"type":"object","properties":{"error":{"description":"Error message","type":"string"}}},"evaluators.Evaluator":{"type":"object","properties":{"code_evaluator":{"$ref":"#\/components\/schemas\/evaluators.CodeEvaluator"},"created_at":{"type":"string"},"created_by":{"type":"string"},"feedback_keys":{"type":"array","items":{"type":"string"}},"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":[{"$ref":"#\/components\/schemas\/evaluators.LLMEvaluator"}]},"name":{"type":"string"},"run_rules":{"type":"array","items":{"$ref":"#\/components\/schemas\/evaluators.EvaluatorRunRule"}},"tenant_id":{"type":"string"},"type":{"$ref":"#\/components\/schemas\/evaluators.EvaluatorType"},"updated_at":{"type":"string"}}},"evaluators.EvaluatorRunRule":{"type":"object","properties":{"corrections_dataset_id":{"type":"string"},"dataset_id":{"type":"string"},"dataset_name":{"type":"string"},"group_by":{"type":"string"},"id":{"type":"string"},"num_few_shot_examples":{"type":"integer"},"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"},"trace_count":{"type":"integer"},"use_corrections_dataset":{"type":"boolean"}}},"evaluators.EvaluatorType":{"type":"string","enum":["llm","code"],"x-enum-varnames":["EvaluatorTypeLLM","EvaluatorTypeCode"]},"evaluators.GetEvaluatorSpendResponse":{"type":"object","properties":{"groups":{"type":"array","items":{"$ref":"#\/components\/schemas\/evaluators.SpendGroup"}},"period_end":{"type":"string"},"period_start":{"type":"string"}}},"evaluators.LLMEvaluator":{"type":"object","properties":{"annotation_queue_id":{"type":"string"},"commit_hash_or_tag":{"type":"string"},"corrections_dataset_id":{"type":"string"},"evaluator_id":{"type":"string"},"num_few_shot_examples":{"type":"integer"},"prompt_id":{"type":"string"},"prompt_repo_handle":{"type":"string"},"use_corrections_dataset":{"description":"Derived from the evaluator's run rules \u2014 shared across all rules on this evaluator.\nNil when the evaluator has no run rules.","type":"boolean"},"variable_mapping":{"description":"JSONB","type":"object"}}},"evaluators.ListEvaluatorsResponse":{"type":"object","properties":{"evaluators":{"type":"array","items":{"$ref":"#\/components\/schemas\/evaluators.Evaluator"}},"total":{"type":"integer"}}},"evaluators.SpendDay":{"type":"object","properties":{"date":{"type":"string"},"spend_usd":{"type":"number"},"trace_count":{"type":"integer"}}},"evaluators.SpendGroup":{"type":"object","properties":{"dataset_id":{"type":"string"},"dataset_name":{"type":"string"},"days":{"type":"array","items":{"$ref":"#\/components\/schemas\/evaluators.SpendDay"}},"evaluator_id":{"type":"string"},"evaluator_name":{"type":"string"},"prev_total_spend_usd":{"type":"number"},"prev_total_trace_count":{"type":"integer"},"run_rule_id":{"type":"string"},"run_rule_name":{"type":"string"},"session_id":{"type":"string"},"session_name":{"type":"string"},"spend_limit":{"$ref":"#\/components\/schemas\/evaluators.SpendLimit"},"total_spend_usd":{"type":"number"},"total_trace_count":{"type":"integer"}}},"evaluators.SpendLimit":{"type":"object","properties":{"limit_usd":{"type":"number"},"utilization_pct":{"type":"number"},"window":{"type":"string"}}},"evaluators.UpdateCodeEvaluatorRequest":{"type":"object","properties":{"code":{"type":"string"},"language":{"type":"string"}}},"evaluators.UpdateEvaluatorRequest":{"type":"object","properties":{"code_evaluator":{"$ref":"#\/components\/schemas\/evaluators.UpdateCodeEvaluatorRequest"},"llm_evaluator":{"$ref":"#\/components\/schemas\/evaluators.UpdateLLMEvaluatorRequest"},"name":{"type":"string"}}},"evaluators.UpdateEvaluatorResponse":{"type":"object","properties":{"evaluator":{"$ref":"#\/components\/schemas\/evaluators.Evaluator"}}},"evaluators.UpdateLLMEvaluatorRequest":{"type":"object","properties":{"commit_hash_or_tag":{"type":"string"},"num_few_shot_examples":{"type":"integer"},"playground_settings_id":{"description":"Model Configuration ID","type":"string"},"prompt_repo_handle":{"type":"string"},"use_corrections_dataset":{"type":"boolean"},"variable_mapping":{"type":"object"}}},"examples.DeleteExamplesRequest":{"type":"object","required":["example_ids","hard_delete"],"properties":{"example_ids":{"description":"ExampleIDs is a list of UUIDs identifying the examples to delete.","type":"array","maxItems":1000,"minItems":1,"items":{"type":"string"}},"hard_delete":{"description":"HardDelete indicates whether to perform a hard delete.\nCurrently only True is supported.","type":"boolean"}}},"examples.ErrorResponse":{"type":"object","properties":{"details":{"description":"Optional error details as JSON string","type":"string","example":"{\"field\":\"dataset_id\",\"reason\":\"required\"}"},"error":{"description":"Error message","type":"string","example":"Invalid request: missing required fields"}}},"examples.ExamplesCreatedResponse":{"type":"object","properties":{"as_of":{"type":"string","example":"2024-01-21T10:00:00.123456Z"},"count":{"type":"integer","example":1},"example_ids":{"type":"array","items":{"type":"string"},"example":["[\"123e4567-e89b-12d3-a456-426614174000\"]"]}}},"examples.ExamplesDeletedResponse":{"type":"object","properties":{"count":{"type":"integer","example":1},"example_ids":{"type":"array","items":{"type":"string"},"example":["[\"123e4567-e89b-12d3-a456-426614174000\"]"]}}},"examples.ExamplesUpdatedResponse":{"type":"object","properties":{"as_of":{"type":"string","example":"2024-01-21T10:00:00.123456Z"},"count":{"type":"integer","example":1},"example_ids":{"type":"array","items":{"type":"string"},"example":["[\"123e4567-e89b-12d3-a456-426614174000\"]"]}}},"experiment_view_overrides.ColumnOverride":{"type":"object","required":["column"],"properties":{"color_gradient":{"type":"array","maxItems":20,"items":{"type":"array","items":{}}},"color_map":{"type":"object","additionalProperties":true},"column":{"type":"string","maxLength":200},"disable_colors":{"type":"boolean"},"hide":{"type":"boolean"},"precision":{"type":"integer","maximum":6,"minimum":1}}},"experiment_view_overrides.ExperimentViewOverride":{"type":"object","properties":{"column_overrides":{"type":"array","items":{"$ref":"#\/components\/schemas\/experiment_view_overrides.ColumnOverride"}},"created_at":{"type":"string"},"dataset_id":{"type":"string"},"id":{"type":"string"},"modified_at":{"type":"string"}}},"experiment_view_overrides.ExperimentViewOverridePatchRequest":{"type":"object","required":["column_overrides"],"properties":{"column_overrides":{"type":"array","maxItems":50,"minItems":1,"items":{"$ref":"#\/components\/schemas\/experiment_view_overrides.ColumnOverride"}}}},"experiment_view_overrides.ExperimentViewOverridePostRequest":{"type":"object","required":["column_overrides"],"properties":{"column_overrides":{"type":"array","maxItems":50,"minItems":1,"items":{"$ref":"#\/components\/schemas\/experiment_view_overrides.ColumnOverride"}}}},"features.DisableModelRequest":{"type":"object","properties":{"model":{"type":"string"}}},"features.ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}},"features.FeatureConfig":{"type":"object","properties":{"default_model":{"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"}},"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"}}}},"features.UpsertDefaultModelRequest":{"type":"object","properties":{"model":{"type":"string"}}},"gateway_policies.CreateGatewayPolicyRequest":{"type":"object","properties":{"action":{"type":"string"},"config":{"type":"object"},"description":{"type":"string"},"enabled":{"type":"boolean"},"name":{"type":"string"},"policy_type":{"type":"string"},"priority":{"type":"integer"},"subject_matchers":{"type":"array","items":{"$ref":"#\/components\/schemas\/gateway_policies.SubjectMatcher"}}}},"gateway_policies.GatewayPolicyRecord":{"type":"object","properties":{"action":{"type":"string"},"config":{"type":"object"},"created_at":{"type":"string"},"created_by":{"type":"string"},"current_spend_usd":{"description":"CurrentSpendUSD is the spend in the policy's current window. Set for\nany spend_cap policy regardless of enabled state \u2014 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"},"enabled":{"type":"boolean"},"id":{"type":"string"},"is_system_generated":{"type":"boolean"},"name":{"type":"string"},"organization_id":{"type":"string"},"parent_policy_id":{"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":{"type":"string"},"priority":{"type":"integer"},"subject_matchers":{"type":"array","items":{"$ref":"#\/components\/schemas\/gateway_policies.SubjectMatcher"}},"updated_at":{"type":"string"}}},"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":{"key":{"type":"string"},"value":{"type":"string"}}},"gateway_policies.UpdateGatewayPolicyRequest":{"type":"object","properties":{"action":{"type":"string","example":"block"},"config":{"type":"object"},"description":{"type":"string","example":"Blocks overspend on the production org"},"enabled":{"type":"boolean","example":true},"name":{"type":"string","example":"monthly-cap"},"priority":{"type":"integer","example":0},"subject_matchers":{"type":"array","items":{"$ref":"#\/components\/schemas\/gateway_policies.SubjectMatcher"}}}},"gateway_policies.errorResponse":{"type":"object","properties":{"error":{"type":"string"}}},"httperr.ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"detail":{"type":"string"},"status":{"type":"integer"},"type":{"type":"string"}}},"hub_environments.CreateEnvironmentsRequest":{"type":"object","required":["environments"],"properties":{"environments":{"type":"array","maxItems":4,"minItems":1,"items":{"$ref":"#\/components\/schemas\/hub_environments.EnvironmentEntry"}}}},"hub_environments.EnvironmentEntry":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":64,"minLength":1}}},"hub_environments.ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}},"hub_environments.HubEnvironmentsModel":{"type":"object","properties":{"environments":{"type":"array","items":{"$ref":"#\/components\/schemas\/hub_environments.EnvironmentEntry"}},"id":{"type":"string"}}},"hub_environments.UpdateEnvironmentsRequest":{"type":"object","required":["environments"],"properties":{"environments":{"type":"array","maxItems":4,"items":{"$ref":"#\/components\/schemas\/hub_environments.EnvironmentEntry"}}}},"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.IntegrationCatalogEntry":{"type":"object","properties":{"can_invoke":{"type":"boolean"},"display_name":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"}}},"integrations.IntegrationOverride":{"type":"object","properties":{"integration_key":{"type":"string"},"is_enabled":{"type":"boolean"}}},"integrations.IntegrationOverrideUpdate":{"type":"object","properties":{"integration_key":{"type":"string"},"is_enabled":{"type":"boolean"}}},"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"},"session_id":{"type":"string"},"session_name":{"type":"string"},"tenant_id":{"type":"string"},"tenant_name":{"type":"string"}}},"issues_agent_usage.LCUSpendResponse":{"type":"object","properties":{"default_monthly_spend_limit_lcu":{"description":"DefaultMonthlySpendLimitLCU is the org-admin default applied when the admin limit\nis unset (NULL) \u2014 what the UI shows as \"using the default\". Lets the UI label the\ndefault without hardcoding it. Serialized as a string for NUMERIC precision.","type":"string"},"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/issues_agent_usage.LCUSpendItem"}},"next_cursor":{"type":"string"},"organization_id":{"type":"string"},"period_end":{"type":"string"},"period_start":{"type":"string"},"resolved_monthly_spend_limit_lcu":{"description":"ResolvedMonthlySpendLimitLCU is the effective monthly LCU spend limit enforced for\nthis org \u2014 the minimum of the finance, plan, and admin layers \u2014 or null when\nunlimited. Surfaced so the UI can render spend against the true enforced limit\nrather than the admin layer alone. Serialized as a string for NUMERIC precision.","type":"string"},"total_lcu":{"type":"string"},"total_unpriced_row_count":{"type":"integer"}}},"mcp_vendors.ArcadeAccountOrg":{"type":"object","properties":{"is_default":{"type":"boolean"},"name":{"type":"string"},"organization_id":{"type":"string"}}},"mcp_vendors.ArcadeAccountProject":{"type":"object","properties":{"is_default":{"type":"boolean"},"name":{"type":"string"},"organization_id":{"type":"string"},"project_id":{"type":"string"}}},"mcp_vendors.ArcadeAccountResponseList":{"type":"object","properties":{"organizations":{"type":"array","items":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeAccountOrg"}},"projects":{"type":"array","items":{"$ref":"#\/components\/schemas\/mcp_vendors.ArcadeAccountProject"}}}},"mcp_vendors.ArcadeSettingsRequest":{"type":"object","properties":{"organization_id":{"type":"string"},"project_id":{"type":"string"}}},"mcp_vendors.ArcadeSettingsResponse":{"type":"object","properties":{"is_configured":{"type":"boolean"},"organization_id":{"type":"string"},"project_id":{"type":"string"}}},"mcp_vendors.ErrorResponse":{"type":"object","properties":{"detail":{"type":"string"},"message":{"type":"string"}}},"mcp_vendors.GetMcpVendorResponse":{"type":"object","properties":{"description":{"type":"string"},"icon":{"type":"string"},"name":{"type":"string"},"provider_id":{"type":"string"},"settings":{},"status":{"$ref":"#\/components\/schemas\/mcp_vendors.McpVendorStatus"},"vendor_id":{"type":"string"}}},"mcp_vendors.ListMcpGatewaysResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/mcp_vendors.McpGateway"}},"limit":{"type":"integer"},"offset":{"type":"integer"},"page_count":{"type":"integer"},"total_count":{"type":"integer"}}},"mcp_vendors.ListMcpVendorsResponse":{"type":"object","properties":{"mcp_vendors":{"type":"array","items":{"$ref":"#\/components\/schemas\/mcp_vendors.McpVendor"}}}},"mcp_vendors.ListVendorToolsResponse":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"},"tools":{"type":"array","items":{"$ref":"#\/components\/schemas\/mcp_vendors.VendorTool"}},"total":{"type":"integer"}}},"mcp_vendors.McpGateway":{"type":"object","properties":{"auth_type":{"type":"string"},"binding":{"$ref":"#\/components\/schemas\/mcp_vendors.McpGatewayBinding"},"created_at":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"instructions":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string"},"tool_filter":{"$ref":"#\/components\/schemas\/mcp_vendors.McpGatewayToolFilter"},"updated_at":{"type":"string"}}},"mcp_vendors.McpGatewayBinding":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"}}},"mcp_vendors.McpGatewayToolFilter":{"type":"object","properties":{"allowed_tools":{"type":"array","items":{"type":"string"}}}},"mcp_vendors.McpVendor":{"type":"object","properties":{"description":{"type":"string"},"icon":{"type":"string"},"name":{"type":"string"},"status":{"$ref":"#\/components\/schemas\/mcp_vendors.McpVendorStatus"},"vendor_id":{"type":"string"}}},"mcp_vendors.McpVendorStatus":{"type":"string","enum":["enabled","disabled"],"x-enum-varnames":["McpVendorStatusEnabled","McpVendorStatusDisabled"]},"mcp_vendors.VendorTool":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"}}},"oauth.AuthorizationServerMetadata":{"type":"object","properties":{"authorization_endpoint":{"type":"string"},"code_challenge_methods_supported":{"type":"array","items":{"type":"string"}},"device_authorization_endpoint":{"type":"string"},"grant_types_supported":{"type":"array","items":{"type":"string"}},"issuer":{"type":"string"},"jwks_uri":{"type":"string"},"protected_resources_supported":{"type":"array","items":{"type":"string"}},"registration_endpoint":{"type":"string"},"resource_parameter_supported":{"type":"boolean"},"response_types_supported":{"type":"array","items":{"type":"string"}},"revocation_endpoint":{"type":"string"},"scopes_supported":{"type":"array","items":{"type":"string"}},"token_endpoint":{"type":"string"},"token_endpoint_auth_methods_supported":{"type":"array","items":{"type":"string"}}}},"oauth.ClientPublicMetadata":{"type":"object","properties":{"client_id":{"type":"string"},"client_name":{"type":"string"},"client_uri":{"type":"string"},"logo_uri":{"type":"string"},"policy_uri":{"type":"string"},"tos_uri":{"type":"string"}}},"oauth.ClientRegistrationRequest":{"type":"object","properties":{"client_name":{"type":"string"},"client_uri":{"type":"string"},"grant_types":{"type":"array","items":{"type":"string"}},"logo_uri":{"type":"string"},"policy_uri":{"type":"string"},"redirect_uris":{"type":"array","items":{"type":"string"}},"response_types":{"type":"array","items":{"type":"string"}},"scope":{"type":"string"},"token_endpoint_auth_method":{"type":"string"},"tos_uri":{"type":"string"}}},"oauth.ClientRegistrationResponse":{"type":"object","properties":{"client_id":{"type":"string"},"client_id_issued_at":{"type":"integer"},"client_name":{"type":"string"},"client_uri":{"type":"string"},"grant_types":{"type":"array","items":{"type":"string"}},"logo_uri":{"type":"string"},"policy_uri":{"type":"string"},"redirect_uris":{"type":"array","items":{"type":"string"}},"response_types":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"type":"string"},"tos_uri":{"type":"string"}}},"oauth.DeviceCodeResponse":{"type":"object","properties":{"device_code":{"type":"string"},"expires_in":{"type":"integer"},"interval":{"type":"integer"},"user_code":{"type":"string"},"verification_uri":{"type":"string"}}},"oauth.OIDCProviderMetadata":{"type":"object","properties":{"authorization_endpoint":{"type":"string"},"claims_supported":{"type":"array","items":{"type":"string"}},"code_challenge_methods_supported":{"type":"array","items":{"type":"string"}},"grant_types_supported":{"type":"array","items":{"type":"string"}},"id_token_signing_alg_values_supported":{"type":"array","items":{"type":"string"}},"issuer":{"type":"string"},"jwks_uri":{"type":"string"},"response_types_supported":{"type":"array","items":{"type":"string"}},"scopes_supported":{"type":"array","items":{"type":"string"}},"subject_types_supported":{"type":"array","items":{"type":"string"}},"token_endpoint":{"type":"string"},"token_endpoint_auth_methods_supported":{"type":"array","items":{"type":"string"}},"userinfo_endpoint":{"type":"string"}}},"oauth.TokenErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"error_description":{"type":"string"}}},"oauth.TokenResponse":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"integer"},"id_token":{"type":"string"},"refresh_token":{"type":"string"},"token_type":{"type":"string"},"workspace_id":{"type":"string"}}},"oauth.UserinfoResponse":{"type":"object","properties":{"email":{"type":"string"},"email_verified":{"type":"boolean"},"ls_org_id":{"type":"string"},"ls_org_name":{"type":"string"},"name":{"type":"string"},"picture":{"type":"string"},"sub":{"type":"string"}}},"orgs.LinkedLoginMethod":{"type":"object","properties":{"provider":{"type":"string"},"provisioning":{"description":"provisioning_method","type":"string"}}},"orgs.ListOrgsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/orgs.Org"}},"next_cursor":{"type":"string"}}},"orgs.Org":{"type":"object","properties":{"display_name":{"type":"string"},"id":{"type":"string"},"is_personal":{"type":"boolean"}}},"orgs.OrgMemberEnriched":{"type":"object","properties":{"avatar_url":{"type":"string"},"created_at":{"type":"string"},"display_name":{"description":"auth-resolved display name","type":"string"},"email":{"type":"string"},"id":{"description":"identity_id or pending_identity_id","type":"string"},"is_disabled":{"description":"user disabled","type":"boolean"},"is_pending":{"description":"true for pending invitations","type":"boolean"},"linked_login_methods":{"type":"array","items":{"$ref":"#\/components\/schemas\/orgs.LinkedLoginMethod"}},"ls_user_id":{"description":"nil for pending members","type":"string"},"role_id":{"description":"org role","type":"string"},"role_name":{"description":"org role name","type":"string"},"scim_groups":{"type":"array","items":{"$ref":"#\/components\/schemas\/orgs.SCIMGroup"}},"workspace_memberships":{"type":"array","items":{"$ref":"#\/components\/schemas\/orgs.WorkspaceMembership"}}}},"orgs.OrganizationInfo":{"type":"object","properties":{"byoc_create_saas_workspace_enabled":{"type":"boolean"},"can_export_usage_backfill":{"type":"boolean"},"config":{"$ref":"#\/components\/schemas\/authn.OrganizationConfig"},"default_sso_provision":{"type":"boolean"},"disabled":{"type":"boolean"},"disabled_model_providers":{"type":"array","items":{"type":"string"}},"display_name":{"type":"string"},"engine_enabled":{"type":"boolean"},"engine_lcu_spend_limit_monthly":{"description":"EngineLCUSpendLimitMonthly is the org admin (Layer 3) monthly Engine LCU spend\nlimit; null means the admin set no limit. The effective enforced limit is the\nminimum of this and the finance\/plan limits carried on Config.","type":"string"},"id":{"type":"string"},"invites_enabled":{"type":"boolean"},"ip_allowlist":{"type":"array","items":{"type":"string"}},"ip_allowlist_enabled":{"type":"boolean"},"is_personal":{"type":"boolean"},"jit_provisioning_enabled":{"type":"boolean"},"llm_auth_proxy_allowed_urls":{"type":"array","items":{"type":"string"}},"llm_auth_proxy_enabled":{"type":"boolean"},"llm_auth_proxy_jwt_audience":{"type":"string"},"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"},"max_api_key_expiry_days":{"type":"integer"},"max_pat_expiry_days":{"type":"integer"},"max_service_key_expiry_days":{"type":"integer"},"member_disabled":{"type":"boolean"},"pat_creation_disabled":{"type":"boolean"},"permissions":{"type":"array","items":{"type":"string"}},"public_sharing_disabled":{"type":"boolean"},"reached_max_workspaces":{"type":"boolean"},"scim_group_name_separator":{"type":"string"},"security_contact":{"type":"string"},"sso_login_slug":{"type":"string"},"sso_only":{"type":"boolean"},"tier":{"type":"string"},"workspace_admin_can_invite_to_org":{"type":"boolean"}}},"orgs.SCIMGroup":{"type":"object","properties":{"created_at":{"type":"string"},"name":{"type":"string"}}},"orgs.WorkspaceMembership":{"type":"object","properties":{"role_id":{"type":"string"},"role_name":{"type":"string"},"workspace_id":{"type":"string"},"workspace_name":{"type":"string"}}},"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"]},"example":["ID","NAME","PROJECT_ID","START_TIME","RUN_TYPE","STATUS","INPUTS_PREVIEW","OUTPUTS_PREVIEW","METADATA"]}}},"query.QueryRunsRequestBody":{"type":"object","properties":{"cursor":{"description":"`cursor` is the opaque string from a previous response's `next_cursor`. Treat it as opaque and pass it back unmodified.","type":"string","example":"eyJ2IjoxLCJhIjoicnVucy5xdWVyeSIsImsiOiJwYXNzIiwiYiI6InNkYiIsInQiOiJsdChjdXJzb3IsICcyMDI1LTEyLTEyIDE5OjAzOjI4LjQ4MTI1NTAxOWIxM2YyJykifQ"},"filter":{"description":"`filter` narrows results to runs matching this LangSmith filter expression, evaluated against each individual run.\nFor example: and(eq(run_type, \"llm\"), gt(latency, 5)) or eq(status, \"error\").\nSee https:\/\/docs.langchain.com\/langsmith\/trace-query-syntax#filter-query-language for syntax.","type":"string","example":"and(eq(run_type, \"llm\"), gt(latency, 5))"},"has_error":{"description":"`has_error` filters to runs that errored (true) or completed without error (false).","type":"boolean","example":false},"ids":{"description":"`ids` optionally limits the request to these run UUIDs.","type":"array","items":{"type":"string","format":"uuid"},"example":["018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327","f47ac10b-58cc-4372-a567-0e02b2c3d479"]},"is_root":{"description":"`is_root` returns only root runs (true) or only non-root runs (false).","type":"boolean","example":true},"max_start_time":{"description":"`max_start_time` is the upper bound for run `start_time` (RFC3339). Defaults to now.","type":"string","format":"date-time","example":"2024-12-31T23:59:59Z"},"min_start_time":{"description":"`min_start_time` is the lower bound for run `start_time` (RFC3339). Defaults to 1 day ago.","type":"string","format":"date-time","example":"2024-01-01T00:00:00Z"},"page_size":{"description":"`page_size` is the maximum number of runs to return in this response. Defaults to 100 when omitted; must be between 1 and 1000 inclusive when set.","type":"integer","default":100,"maximum":1000,"minimum":1,"example":100},"project_ids":{"description":"`project_ids` lists tracing project UUIDs to query.\nRequired unless `reference_dataset_id` is set. Mutually exclusive with `reference_dataset_id` \u2014 set exactly one of them.","type":"array","items":{"type":"string","format":"uuid"},"example":["018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327","0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328"]},"reference_dataset_id":{"description":"`reference_dataset_id` resolves session IDs server-side from the dataset.\nRequired unless `project_ids` is set. Mutually exclusive with `project_ids` \u2014 set exactly one of them.\nWhen provided and `min_start_time` is omitted, the server derives it from the earliest session creation date.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"},"reference_examples":{"description":"`reference_examples` optionally limits to runs linked to these dataset example UUIDs.","type":"array","items":{"type":"string","format":"uuid"},"example":["b2c3d4e5-f6a7-4b5c-9d0e-1f2a3b4c5d6e","c3d4e5f6-a7b8-4c5d-0e1f-2a3b4c5d6e7f"]},"run_type":{"description":"`run_type`, when set, restricts results to runs whose `run_type` equals this value.","allOf":[{"$ref":"#\/components\/schemas\/query.RunType"}],"example":"LLM"},"selects":{"description":"`selects` lists which properties to include on each returned run. If omitted, only `id` is returned. Properties not listed are omitted from each run object.","type":"array","items":{"$ref":"#\/components\/schemas\/query.RunSelectField"},"example":["ID","NAME","PROJECT_ID","START_TIME","RUN_TYPE","STATUS"]},"trace_filter":{"description":"`trace_filter` narrows results to runs whose root trace matches this LangSmith filter expression.\nUse this to filter by properties of the trace's root run \u2014 for example eq(status, \"success\") to include only traces that completed without error.\nSee https:\/\/docs.langchain.com\/langsmith\/trace-query-syntax#filter-query-language for syntax.","type":"string","example":"eq(status, \"success\")"},"trace_id":{"description":"`trace_id` optionally limits results to runs belonging to this trace UUID.","type":"string","format":"uuid","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479"},"tree_filter":{"description":"`tree_filter` narrows results to runs that belong to a trace containing at least one run matching this LangSmith filter expression anywhere in the run tree (not just the root).\nUse this to find runs inside traces that involved a specific tool, tag, or model \u2014 for example has(tags, \"production\") or eq(name, \"my_tool\").\nSee https:\/\/docs.langchain.com\/langsmith\/trace-query-syntax#filter-query-language for syntax.","type":"string","example":"has(tags, \"production\")"}}},"query.QueryRunsResponseBody":{"type":"object","properties":{"items":{"description":"`items` is the page of runs, sorted by `start_time` descending.","type":"array","items":{"$ref":"#\/components\/schemas\/query.RunResponse"}},"next_cursor":{"description":"`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.","type":"string","example":"eyJ2IjoxLCJhIjoicnVucy5xdWVyeSIsImsiOiJwYXNzIiwiYiI6InNkYiIsInQiOiJsdChjdXJzb3IsICcyMDI1LTEyLTEyIDE5OjAzOjI4LjQ4MTI1NTAxOWIxM2YyJykifQ"}}},"query.QueryTraceResponseBody":{"type":"object","properties":{"items":{"description":"`items` lists runs in the trace for the requested time window, in `start_time` order.","type":"array","items":{"$ref":"#\/components\/schemas\/query.RunResponse"}}}},"query.QueryTracesRequestBody":{"type":"object","properties":{"cursor":{"description":"`cursor` is the opaque string returned in a previous response's `next_cursor`.","type":"string"},"max_start_time":{"description":"`max_start_time` is the exclusive upper bound for the root-run start time scan (RFC3339). Defaults to the request time when omitted.","type":"string","format":"date-time","example":"2024-12-31T23:59:59Z"},"min_start_time":{"description":"`min_start_time` is the inclusive lower bound for the root-run start time scan (RFC3339). Defaults to 24 hours before the request when omitted.","type":"string","format":"date-time","example":"2024-01-01T00:00:00Z"},"page_size":{"description":"`page_size` is the maximum number of traces to return per page. Defaults to 20; must be between 1 and 100 when set.","type":"integer","default":20,"maximum":100,"minimum":1,"example":20},"project_id":{"description":"`project_id` is the UUID of the tracing project that owns the traces. Required.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"},"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 \u2014 `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":{"type":"string"}},"query.RunCompletionCostDetails":{"type":"object","properties":{"raw":{"description":"`raw` maps each category name to its estimated USD cost.","type":"object","additionalProperties":{"type":"number","format":"float64"}}}},"query.RunCompletionTokenDetails":{"type":"object","properties":{"raw":{"description":"`raw` maps each category name to its completion-token count.","type":"object","additionalProperties":{"type":"integer","format":"int64"}}}},"query.RunEvent":{"type":"object","properties":{"kwargs":{"description":"`kwargs` is the event payload \u2014 an opaque JSON object whose shape depends on `name` and on the emitting SDK. For example LangChain emits `{\"token\": {...}}` for `new_token` events, tool-call start\/end details for tool events, and arbitrary user-defined payloads for custom events. Clients should treat `kwargs` as untyped JSON: do not assume specific keys exist for a given `name`, and tolerate additional unknown keys appearing over time.","type":"object"},"name":{"description":"`name` is the event kind. Common values emitted by the LangChain\/LangSmith tracer SDKs include `\"start\"`, `\"end\"`, and `\"new_token\"`, but applications may emit arbitrary strings for their own instrumentation.","type":"string","example":"new_token"},"time":{"description":"`time` is when the event occurred (RFC3339 date-time with millisecond precision).","type":"string","format":"date-time","example":"2024-01-15T10:30:00.312Z"}}},"query.RunFeedbackStat":{"type":"object","properties":{"avg":{"description":"`avg` is the arithmetic mean of numeric feedback scores for this key on the run, or `null` when no numeric score has been recorded (for example purely categorical feedback).","type":"number","example":0.87},"comments":{"description":"`comments` is a sample of human-readable comments attached to feedback points for this key, in no particular order. May be empty; is not exhaustive when many comments exist.","type":"array","items":{"type":"string"},"example":["good answer","needs citation"]},"contains_thread_feedback":{"description":"`contains_thread_feedback` is true when at least one feedback point for this key was submitted at the thread level (rather than at an individual run). Always false on responses that already describe a single run in isolation.","type":"boolean","example":false},"errors":{"description":"`errors` is the number of feedback points recorded as errors rather than successful scores (for example an automated evaluator that raised an exception). Defaults to 0 when no errors occurred.","type":"integer","default":0,"example":0},"max":{"description":"`max` is the largest numeric feedback score recorded for this key on the run, or `null` when no numeric score has been recorded.","type":"number","example":0.95},"min":{"description":"`min` is the smallest numeric feedback score recorded for this key on the run, or `null` when no numeric score has been recorded.","type":"number","example":0.8},"n":{"description":"`n` is the number of feedback points recorded for this key on the run. For numeric feedback this is the sample size behind `avg`, `min`, `max`, and `stdev`; for categorical feedback it is the sum of the `values` counts.","type":"integer","example":42},"sources":{"description":"`sources` is a sample of feedback sources for this key. Each entry is either a plain string identifier (for example `\"api\"`, `\"app\"`, `\"model\"`) or a JSON object describing a synthetic source (for example `{\"type\": \"__ls_composite_feedback\"}` for a computed aggregate). Clients must tolerate both shapes.","type":"array","items":{}},"stdev":{"description":"`stdev` is the sample standard deviation of numeric feedback scores for this key on the run, or `null` when it cannot be computed (for example fewer than two numeric scores, or purely categorical feedback).","type":"number","example":0.05},"values":{"description":"`values` is the distribution of categorical feedback labels for this key, mapping each label to its occurrence count. Empty (`{}`) for purely numeric feedback.","type":"object","additionalProperties":{"type":"integer","format":"int64"}}}},"query.RunFeedbackStats":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/query.RunFeedbackStat"}},"query.RunPromptCostDetails":{"type":"object","properties":{"raw":{"description":"`raw` maps each category name to its estimated USD cost.","type":"object","additionalProperties":{"type":"number","format":"float64"}}}},"query.RunPromptTokenDetails":{"type":"object","properties":{"raw":{"description":"`raw` maps each category name to its prompt-token count.","type":"object","additionalProperties":{"type":"integer","format":"int64"}}}},"query.RunResponse":{"type":"object","properties":{"app_path":{"description":"`app_path` identifies the application code location that produced this run, if recorded.","type":"string","example":"\/app\/chains\/chat.py:invoke"},"attachments":{"description":"`attachments` maps each attachment file name to a pre-signed HTTPS download URL.","allOf":[{"$ref":"#\/components\/schemas\/query.RunAttachmentURLs"}],"example":{"{\"output.png\"":"\"https:\/\/storage.example.com\/bucket\/key?X-Amz-Signature=abc\"}"}},"completion_cost":{"description":"`completion_cost` is estimated USD cost for the completion.","type":"number","example":0.0003},"completion_cost_details":{"description":"`completion_cost_details` is the per-category USD breakdown of `completion_cost`. Categories mirror `completion_token_details`. Returned only when the `COMPLETION_COST_DETAILS` field is requested.","allOf":[{"$ref":"#\/components\/schemas\/query.RunCompletionCostDetails"}]},"completion_token_details":{"description":"`completion_token_details` is the per-category breakdown of `completion_tokens`. Category names are model-specific (for example `reasoning`, `audio`). Returned only when the `COMPLETION_TOKEN_DETAILS` field is requested.","allOf":[{"$ref":"#\/components\/schemas\/query.RunCompletionTokenDetails"}]},"completion_tokens":{"description":"`completion_tokens` is the completion-side token count.","type":"integer","example":150},"dotted_order":{"description":"`dotted_order` is the hierarchical ordering key for trace trees.","type":"string","example":"20240115T103000000000Z018e4c7ea9fb7ef0a5b66ea3a82e9327."},"end_time":{"description":"`end_time` is when the run ended (RFC3339 date-time). JSON null if the run has not finished yet.","type":"string","format":"date-time","example":"2024-01-15T10:30:01.500Z"},"error":{"description":"`error` is the error message when `status` indicates failure.","type":"string","example":"context deadline exceeded"},"error_preview":{"description":"`error_preview` is a truncated plain-text error snippet.","type":"string"},"events":{"description":"`events` is the ordered list of run events (for example streaming tokens).","type":"array","items":{"$ref":"#\/components\/schemas\/query.RunEvent"}},"extra":{"description":"`extra` is additional runtime JSON attached to the run.","type":"object"},"feedback_stats":{"description":"`feedback_stats` aggregates feedback scores keyed by feedback key.","allOf":[{"$ref":"#\/components\/schemas\/query.RunFeedbackStats"}]},"first_token_time":{"description":"`first_token_time` is when the first output token was produced (RFC3339 date-time), when recorded for streamed runs.","type":"string","format":"date-time","example":"2024-01-15T10:30:00.312Z"},"id":{"description":"`id` is this run's UUID.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"},"inputs":{"description":"`inputs` is the run input payload (arbitrary JSON object).","type":"object"},"inputs_preview":{"description":"`inputs_preview` is a truncated plain-text preview of inputs.","type":"string"},"is_in_dataset":{"description":"`is_in_dataset` is true when this run is linked to a dataset example.","type":"boolean","example":true},"is_root":{"description":"`is_root` is true when this run has no parent (it is the trace root).","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","example":1.523},"manifest":{"description":"`manifest` is the serialized configuration of the traced component (for example the model parameters, prompt template, or pipeline definition), when recorded.","type":"object"},"metadata":{"description":"`metadata` is arbitrary user-defined JSON metadata.","type":"object"},"name":{"description":"`name` is a human-readable label for the run (for example the model name, function name, or step name chosen when the run was traced).","type":"string","example":"ChatOpenAI"},"outputs":{"description":"`outputs` is the run output payload (arbitrary JSON object).","type":"object"},"outputs_preview":{"description":"`outputs_preview` is a truncated plain-text preview of outputs.","type":"string"},"parent_run_ids":{"description":"`parent_run_ids` lists ancestor run UUIDs from the trace root down to the direct parent.","type":"array","items":{"type":"string","format":"uuid"},"example":["018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327","a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d"]},"price_model_id":{"description":"`price_model_id` identifies the pricing model UUID used for cost estimates, when recorded.","type":"string","format":"uuid","example":"e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b"},"project_id":{"description":"`project_id` is the tracing project UUID this run was logged to.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"},"prompt_cost":{"description":"`prompt_cost` is estimated USD cost for the prompt.","type":"number","example":0.0002},"prompt_cost_details":{"description":"`prompt_cost_details` is the per-category USD breakdown of `prompt_cost`. Categories mirror `prompt_token_details`. Returned only when the `PROMPT_COST_DETAILS` field is requested.","allOf":[{"$ref":"#\/components\/schemas\/query.RunPromptCostDetails"}]},"prompt_token_details":{"description":"`prompt_token_details` is the per-category breakdown of `prompt_tokens`. Category names are model-specific (for example `cache_read`, `cache_write`). Returned only when the `PROMPT_TOKEN_DETAILS` field is requested.","allOf":[{"$ref":"#\/components\/schemas\/query.RunPromptTokenDetails"}]},"prompt_tokens":{"description":"`prompt_tokens` is the prompt-side token count.","type":"integer","example":200},"reference_dataset_id":{"description":"`reference_dataset_id` is the dataset UUID for the reference example, if any.","type":"string","format":"uuid","example":"c3d4e5f6-a7b8-4c5d-0e1f-2a3b4c5d6e7f"},"reference_example_id":{"description":"`reference_example_id` is the dataset example UUID this run was compared against, if any.","type":"string","format":"uuid","example":"b2c3d4e5-f6a7-4b5c-9d0e-1f2a3b4c5d6e"},"run_type":{"description":"`run_type` identifies what kind of operation this run represents (for example an LLM call, a tool invocation, or a chain step). See the `RunType` enum for allowed values.","allOf":[{"$ref":"#\/components\/schemas\/query.RunType"}],"example":"LLM"},"share_url":{"description":"`share_url` is the fully-qualified URL of this run's public view, rooted at the deployment's LangSmith app origin (for example `https:\/\/smith.langchain.com\/public\/4f7a1b2c-8d9e-4a0b-9c1d-2e3f4a5b6c7d\/r`). It is returned only when `SHARE_URL` is included in `selects`, and only when the run has been explicitly shared; the URL remains stable until the run is unshared. Anyone with this URL can view the run anonymously, so treat it as a secret and do not log it.","type":"string","example":"https:\/\/smith.langchain.com\/public\/4f7a1b2c-8d9e-4a0b-9c1d-2e3f4a5b6c7d\/r"},"start_time":{"description":"`start_time` is when the run started (RFC3339 date-time).","type":"string","format":"date-time","example":"2024-01-15T10:30:00.000Z"},"status":{"description":"`status` is the completion status of the run.","allOf":[{"$ref":"#\/components\/schemas\/query.RunStatus"}],"example":"SUCCESS"},"tags":{"description":"`tags` lists user-defined tags on this run.","type":"array","items":{"type":"string"},"example":["production","gpt-4"]},"thread_evaluation_time":{"description":"`thread_evaluation_time` is thread-level evaluation timing (RFC3339 date-time), when recorded.","type":"string","format":"date-time"},"thread_id":{"description":"`thread_id` is the conversation thread UUID this run belongs to, if any.","type":"string","format":"uuid","example":"d4e5f6a7-b8c9-4d5e-1f2a-3b4c5d6e7f8a"},"total_cost":{"description":"`total_cost` is total estimated USD cost (prompt plus completion).","type":"number","example":0.000525},"total_tokens":{"description":"`total_tokens` is prompt plus completion tokens.","type":"integer","example":350},"trace_id":{"description":"`trace_id` is the root trace UUID; for a root run it matches `id`.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"}}},"query.RunSelectField":{"type":"string","enum":["ID","NAME","RUN_TYPE","STATUS","START_TIME","END_TIME","LATENCY_SECONDS","FIRST_TOKEN_TIME","ERROR","ERROR_PREVIEW","EXTRA","METADATA","EVENTS","INPUTS","INPUTS_PREVIEW","OUTPUTS","OUTPUTS_PREVIEW","MANIFEST","PARENT_RUN_IDS","PROJECT_ID","TRACE_ID","THREAD_ID","DOTTED_ORDER","IS_ROOT","REFERENCE_EXAMPLE_ID","REFERENCE_DATASET_ID","TOTAL_TOKENS","PROMPT_TOKENS","COMPLETION_TOKENS","TOTAL_COST","PROMPT_COST","COMPLETION_COST","PROMPT_TOKEN_DETAILS","COMPLETION_TOKEN_DETAILS","PROMPT_COST_DETAILS","COMPLETION_COST_DETAILS","PRICE_MODEL_ID","TAGS","APP_PATH","ATTACHMENTS","THREAD_EVALUATION_TIME","IS_IN_DATASET","LAST_QUEUED_AT","SHARE_URL","FEEDBACK_STATS"],"x-enum-varnames":["RunSelectID","RunSelectName","RunSelectRunType","RunSelectStatus","RunSelectStartTime","RunSelectEndTime","RunSelectLatencySeconds","RunSelectFirstTokenTime","RunSelectError","RunSelectErrorPreview","RunSelectExtra","RunSelectMetadata","RunSelectEvents","RunSelectInputs","RunSelectInputsPreview","RunSelectOutputs","RunSelectOutputsPreview","RunSelectManifest","RunSelectParentRunIDs","RunSelectProjectID","RunSelectTraceID","RunSelectThreadID","RunSelectDottedOrder","RunSelectIsRoot","RunSelectReferenceExampleID","RunSelectReferenceDatasetID","RunSelectTotalTokens","RunSelectPromptTokens","RunSelectCompletionTokens","RunSelectTotalCost","RunSelectPromptCost","RunSelectCompletionCost","RunSelectPromptTokenDetails","RunSelectCompletionTokenDetails","RunSelectPromptCostDetails","RunSelectCompletionCostDetails","RunSelectPriceModelID","RunSelectTags","RunSelectAppPath","RunSelectAttachments","RunSelectThreadEvaluationTime","RunSelectIsInDataset","RunSelectLastQueuedAt","RunSelectShareURL","RunSelectFeedbackStats"]},"query.RunStatus":{"type":"string","enum":["SUCCESS","ERROR","PENDING"],"x-enum-varnames":["RunStatusSuccess","RunStatusError","RunStatusPending"]},"query.RunType":{"type":"string","enum":["TOOL","CHAIN","LLM","RETRIEVER","EMBEDDING","PROMPT","PARSER"],"x-enum-varnames":["RunTypeTool","RunTypeChain","RunTypeLLM","RunTypeRetriever","RunTypeEmbedding","RunTypePrompt","RunTypeParser"]},"query.RunURLResponse":{"type":"object","properties":{"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","properties":{"details":{"description":"Optional error details as JSON string","type":"string","example":"{\"field\":\"dataset_id\",\"reason\":\"required\"}"},"error":{"description":"Error message","type":"string","example":"Invalid request: missing required fields"}}},"runs.Run":{"type":"object","properties":{"dotted_order":{"type":"string"},"end_time":{"type":"string"},"error":{"type":"string"},"events":{"type":"array","items":{"type":"object","additionalProperties":true}},"extra":{"type":"object","additionalProperties":true},"id":{"type":"string"},"input_attachments":{"type":"object","additionalProperties":true},"inputs":{"type":"object","additionalProperties":true},"name":{"type":"string"},"output_attachments":{"type":"object","additionalProperties":true},"outputs":{"type":"object","additionalProperties":true},"parent_run_id":{"type":"string"},"reference_example_id":{"type":"string"},"run_type":{"type":"string","enum":["tool","chain","llm","retriever","embedding","prompt","parser"]},"serialized":{"type":"object","additionalProperties":true},"session_id":{"type":"string"},"session_name":{"type":"string"},"start_time":{"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"},"prefix":{"type":"string"},"region":{"type":"string"}}},"sandboxes.AccessControl":{"type":"object","properties":{"allow_list":{"type":"array","items":{"type":"string"}},"deny_list":{"type":"array","items":{"type":"string"}}}},"sandboxes.BatchDeleteRequest":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string"}}}},"sandboxes.BatchDeleteResponse":{"type":"object","properties":{"deleted":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"$ref":"#\/components\/schemas\/sandboxes.BatchDeleteSkipped"}}}},"sandboxes.BatchDeleteSkipped":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":"string"}}},"sandboxes.Callback":{"type":"object","required":["match_hosts","ttl_seconds","url"],"properties":{"full_request":{"type":"boolean"},"match_hosts":{"type":"array","minItems":1,"items":{"type":"string"}},"request_headers":{"type":"array","items":{"$ref":"#\/components\/schemas\/sandboxes.ProxyHeader"}},"ttl_seconds":{"type":"integer","maximum":3600,"minimum":60},"url":{"type":"string"}}},"sandboxes.CaptureSnapshotPayload":{"type":"object","required":["name"],"properties":{"checkpoint":{"description":"if omitted, creates a fresh checkpoint from the running VM","type":"string"},"docker_image":{"description":"sandbox-local Docker image to export","type":"string"},"fs_capacity_bytes":{"description":"required for Docker image export unless the sandbox has a capacity","type":"integer"},"include_memory":{"description":"IncludeMemory, when true, captures a full VM memory snapshot\nalongside the filesystem clone. Only honored when the sandbox is running\nAND Checkpoint is omitted (i.e. a fresh in-VM checkpoint is requested).\nDefaults to false to keep snapshots small unless memory restore is\nexplicitly desired.","type":"boolean"},"labels":{"description":"Labels seed the captured snapshot's labels.","allOf":[{"$ref":"#\/components\/schemas\/sandboxes.Labels"}]},"name":{"type":"string"}}},"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":{"type":"integer"},"mount_config":{"$ref":"#\/components\/schemas\/sandboxes.SandboxMountConfig"},"name":{"type":"string"},"preserve_memory_on_stop":{"description":"PreserveMemoryOnStop, when true, suspends the sandbox's memory on a\nvoluntary stop (idle timeout or explicit stop) so the next start resumes\nfrom where it left off. Default false discards memory and keeps only the\nfilesystem, so the next start is a cold boot. Restarts triggered by\ninfrastructure maintenance always preserve memory regardless of this setting.","type":"boolean"},"proxy_config":{"$ref":"#\/components\/schemas\/sandboxes.ProxyConfig"},"restore_memory":{"description":"RestoreMemory selects how the sandbox handles a snapshot's captured memory:\n\n  nil   \u2192 if-present: resume from memory when the snapshot has it, else cold-boot (default).\n  true  \u2192 always: resume from memory; rejected if the snapshot has none.\n  false \u2192 never: always cold-boot.\n\nApplies to this request only.","type":"boolean"},"snapshot_id":{"type":"string"},"snapshot_name":{"type":"string"},"tag_value_ids":{"type":"array","items":{"type":"string"}},"vcpus":{"type":"integer"}}},"sandboxes.CreateSnapshotPayload":{"type":"object","required":["docker_image","fs_capacity_bytes","name"],"properties":{"docker_image":{"type":"string"},"fs_capacity_bytes":{"type":"integer"},"labels":{"description":"Labels seed the snapshot's labels, overriding any label of the same key derived from the Docker image.","allOf":[{"$ref":"#\/components\/schemas\/sandboxes.Labels"}]},"name":{"type":"string"},"registry_id":{"type":"string"}}},"sandboxes.ErrorResponse":{"type":"object","properties":{"detail":{"type":"object","properties":{"error":{"type":"string"},"error_id":{"type":"string"},"message":{"type":"string"}}}}},"sandboxes.ExecRequest":{"type":"object","properties":{"command":{"description":"Command accepts either a shell command string or an argv string array.","type":"array","items":{"type":"string"}},"cwd":{"type":"string"},"env":{"type":"object","additionalProperties":{"type":"string"}},"shell":{"type":"string"},"timeout_seconds":{"type":"integer"}}},"sandboxes.ExecResponse":{"type":"object","properties":{"exit_code":{"type":"integer"},"stderr":{"type":"string"},"stdout":{"type":"string"}}},"sandboxes.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":["plaintext","opaque","workspace_secret"],"x-enum-varnames":["HeaderTypePlaintext","HeaderTypeOpaque","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":{"access_control":{"$ref":"#\/components\/schemas\/sandboxes.AccessControl"},"callbacks":{"type":"array","items":{"$ref":"#\/components\/schemas\/sandboxes.Callback"}},"no_proxy":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"$ref":"#\/components\/schemas\/sandboxes.ProxyRule"}}}},"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":["name","type"],"properties":{"is_set":{"type":"boolean"},"name":{"type":"string"},"type":{"enum":["plaintext","opaque","workspace_secret"],"allOf":[{"$ref":"#\/components\/schemas\/sandboxes.HeaderType"}]},"value":{"type":"string"}}},"sandboxes.ProxyRule":{"type":"object","required":["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 \u2014 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":{"$ref":"#\/components\/schemas\/sandboxes.ProxyHeader"}},"match_hosts":{"description":"MatchHosts is only accepted for header injection rules. Provider auth\nrules use built-in host matching.","type":"array","items":{"type":"string"}},"match_paths":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"type":{"type":"string"}}},"sandboxes.ProxySecretValue":{"type":"object","required":["type"],"properties":{"is_set":{"type":"boolean"},"type":{"enum":["plaintext","opaque","workspace_secret"],"allOf":[{"$ref":"#\/components\/schemas\/sandboxes.HeaderType"}]},"value":{"type":"string"}}},"sandboxes.RegistryListResponse":{"type":"object","properties":{"offset":{"type":"integer"},"registries":{"type":"array","items":{"$ref":"#\/components\/schemas\/sandboxes.RegistryResponse"}}}},"sandboxes.RegistryResponse":{"type":"object","properties":{"created_at":{"type":"string"},"created_by":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"updated_at":{"type":"string"},"updated_by":{"type":"string"},"url":{"type":"string"}}},"sandboxes.SandboxAWSMountAuthConfig":{"type":"object","required":["access_key_id","secret_access_key"],"properties":{"access_key_id":{"$ref":"#\/components\/schemas\/sandboxes.ProxySecretValue"},"secret_access_key":{"$ref":"#\/components\/schemas\/sandboxes.ProxySecretValue"}}},"sandboxes.SandboxGCPMountAuthConfig":{"type":"object","required":["service_account_json"],"properties":{"service_account_json":{"$ref":"#\/components\/schemas\/sandboxes.ProxySecretValue"}}},"sandboxes.SandboxListResponse":{"type":"object","properties":{"offset":{"type":"integer"},"sandboxes":{"type":"array","items":{"$ref":"#\/components\/schemas\/sandboxes.SandboxResponse"}}}},"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"},"created_by":{"type":"string"},"dataplane_url":{"type":"string"},"delete_after_stop_seconds":{"type":"integer"},"fs_capacity_bytes":{"type":"integer"},"id":{"type":"string"},"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"},"size_class":{"type":"string"},"snapshot_id":{"type":"string"},"status":{"type":"string"},"status_message":{"type":"string"},"stopped_at":{"type":"string"},"updated_at":{"type":"string"},"updated_by":{"type":"string"},"vcpus":{"type":"integer"}}},"sandboxes.SandboxStatusResponse":{"type":"object","properties":{"status":{"type":"string"},"status_message":{"type":"string"}}},"sandboxes.ServiceURLPayload":{"type":"object","properties":{"expires_in_seconds":{"type":"integer"},"port":{"type":"integer"}}},"sandboxes.ServiceURLResponse":{"type":"object","properties":{"browser_url":{"type":"string"},"expires_at":{"type":"string"},"service_url":{"type":"string"},"token":{"type":"string"}}},"sandboxes.SnapshotListResponse":{"type":"object","properties":{"offset":{"type":"integer"},"snapshots":{"type":"array","items":{"$ref":"#\/components\/schemas\/sandboxes.SnapshotResponse"}}}},"sandboxes.SnapshotResponse":{"type":"object","properties":{"created_at":{"type":"string"},"created_by":{"type":"string"},"docker_image":{"type":"string"},"fs_capacity_bytes":{"type":"integer"},"fs_used_bytes":{"type":"integer"},"id":{"type":"string"},"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"},"name":{"type":"string"},"registry_id":{"type":"string"},"source_sandbox_id":{"type":"string"},"status":{"type":"string"},"status_message":{"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"},"fs_capacity_bytes":{"type":"integer"},"idle_ttl_seconds":{"type":"integer"},"mem_bytes":{"type":"integer"},"name":{"type":"string"},"proxy_config":{"$ref":"#\/components\/schemas\/sandboxes.ProxyConfig"},"tag_value_ids":{"type":"array","items":{"type":"string"}},"vcpus":{"type":"integer"}}},"sandboxes.UploadResponse":{"type":"object","properties":{"path":{"type":"string"},"written":{"type":"integer"}}},"sandboxes.UsageResponse":{"type":"object","properties":{"cpu_limit_millicores":{"type":"integer"},"cpu_used_millicores":{"type":"integer"},"memory_limit_bytes":{"type":"integer"},"memory_used_bytes":{"type":"integer"},"pools_count":{"type":"integer"},"registries_count":{"type":"integer"},"sandbox_direct_count":{"type":"integer"},"sandbox_pool_replicas_count":{"type":"integer"},"sandbox_running_count":{"type":"integer"},"sandbox_stopped_count":{"type":"integer"},"sandboxes_limit":{"type":"integer"},"sandboxes_used":{"type":"integer"},"snapshots_count":{"type":"integer"},"templates_count":{"type":"integer"}}},"scim.CreateScimTokenPayload":{"type":"object","properties":{"description":{"type":"string"}}},"scim.ErrorResponse":{"type":"object","properties":{"error":{"type":"string","example":"Internal server error: reference ID abc123"}}},"scim.ScimTokenResponse":{"type":"object","properties":{"created_at":{"type":"string"},"description":{"type":"string"},"id":{"description":"Does not include token","type":"string"},"last_used_at":{"type":"string"},"short_token":{"type":"string"},"updated_at":{"type":"string"}}},"scim.ScimTokenSensitiveResponse":{"type":"object","properties":{"created_at":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"last_used_at":{"type":"string"},"short_token":{"type":"string"},"token":{"type":"string"},"updated_at":{"type":"string"}}},"scim.UpdateScimTokenPayload":{"type":"object","properties":{"description":{"type":"string"}}},"secrets.ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"detail":{"type":"string"},"status":{"type":"integer"},"type":{"type":"string"}}},"secrets.ListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/secrets.SecretItem"}},"next_cursor":{"type":"string"}}},"secrets.SecretItem":{"type":"object","properties":{"name":{"type":"string","example":"OPENAI_API_KEY"},"set":{"description":"Set is always true for items returned by the list endpoint \u2014 a key only\nappears when it has a value. It lets a client diff this list against a\nmodel's required_secrets to find which required keys are still missing.","type":"boolean","example":true}}},"secrets.bulkUpsertItem":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"secrets.putRequest":{"type":"object","properties":{"value":{"type":"string"}}},"share.CreateShareTokenRequestBody":{"type":"object","properties":{"session_id":{"description":"session_id is the tracing project UUID containing the trace.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"},"trace_id":{"description":"trace_id is the root trace UUID to share.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"}}},"share.CreateShareTokenResponseBody":{"type":"object","properties":{"share_token":{"type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"}}},"share.DeleteShareTokenRequestBody":{"type":"object","properties":{"session_id":{"description":"session_id is the tracing project UUID containing the trace.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"}}},"shared.ProblemDetails":{"description":"RFC 7807 problem details returned on V2 API errors.","type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"remedy":{"description":"Remedy is a LangSmith extension for user-recoverable errors.","type":"string"},"status":{"type":"integer"},"title":{"type":"string"},"type":{"type":"string"}}},"tag_transitions.ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}},"tag_transitions.TagTransition":{"type":"object","properties":{"created_at":{"type":"string"},"from_commit_hash":{"type":"string"},"from_commit_id":{"type":"string"},"id":{"type":"string"},"performed_by":{"type":"string"},"performed_by_name":{"type":"string"},"repo_id":{"type":"string"},"tag_name":{"type":"string"},"to_commit_hash":{"type":"string"},"to_commit_id":{"type":"string"}}},"tag_transitions.TagTransitionHistoryResponse":{"type":"object","properties":{"total":{"type":"integer"},"transitions":{"type":"array","items":{"$ref":"#\/components\/schemas\/tag_transitions.TagTransition"}}}},"tenants.ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"detail":{"type":"string"},"status":{"type":"integer"},"type":{"type":"string"}}},"tenants.ListTenantsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/tenants.Tenant"}},"next_cursor":{"type":"string"}}},"tenants.Tenant":{"type":"object","properties":{"created_at":{"type":"string"},"data_plane_url":{"type":"string"},"id":{"type":"string"},"is_personal":{"type":"boolean"},"name":{"type":"string"},"organization_id":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"tenant_handle":{"type":"string"}}},"threads.QuerySingleThreadStatsResponseBody":{"type":"object","properties":{"completion_cost":{"description":"`completion_cost` is the sum of per-trace completion costs across the thread, in USD. Populated when `COMPLETION_COST` is selected.","type":"number"},"completion_cost_details":{"description":"`completion_cost_details` is the per-sub-category sum of completion cost details across the thread. Populated when `COMPLETION_COST_DETAILS` is selected.","allOf":[{"$ref":"#\/components\/schemas\/query.RunCompletionCostDetails"}]},"completion_token_details":{"description":"`completion_token_details` is the per-sub-category sum of completion token details across the thread. Populated when `COMPLETION_TOKEN_DETAILS` is selected.","allOf":[{"$ref":"#\/components\/schemas\/query.RunCompletionTokenDetails"}]},"completion_tokens":{"description":"`completion_tokens` is the sum of per-trace completion token counts across the thread. Populated when `COMPLETION_TOKENS` is selected.","type":"integer"},"feedback_stats":{"description":"`feedback_stats` aggregates run-level feedback across the thread's traces, keyed by feedback key. Populated when `FEEDBACK_STATS` is selected.","allOf":[{"$ref":"#\/components\/schemas\/query.RunFeedbackStats"}]},"first_start_time":{"description":"`first_start_time` is the earliest trace start time in the thread (RFC3339). Populated when `FIRST_START_TIME` is selected.","type":"string","format":"date-time"},"last_end_time":{"description":"`last_end_time` is the latest trace end time in the thread (RFC3339). Populated when `LAST_END_TIME` is selected.","type":"string","format":"date-time"},"last_start_time":{"description":"`last_start_time` is the latest trace start time in the thread (RFC3339). Populated when `LAST_START_TIME` is selected.","type":"string","format":"date-time"},"latency_p50_seconds":{"description":"`latency_p50_seconds` is the approximate p50 of trace latency across the thread, in seconds. Populated when `LATENCY_P50` is selected.","type":"number"},"latency_p99_seconds":{"description":"`latency_p99_seconds` is the approximate p99 of trace latency across the thread, in seconds. Populated when `LATENCY_P99` is selected.","type":"number"},"prompt_cost":{"description":"`prompt_cost` is the sum of per-trace prompt costs across the thread, in USD. Populated when `PROMPT_COST` is selected.","type":"number"},"prompt_cost_details":{"description":"`prompt_cost_details` is the per-sub-category sum of prompt cost details across the thread. Populated when `PROMPT_COST_DETAILS` is selected.","allOf":[{"$ref":"#\/components\/schemas\/query.RunPromptCostDetails"}]},"prompt_token_details":{"description":"`prompt_token_details` is the per-sub-category sum of prompt token details across the thread. Populated when `PROMPT_TOKEN_DETAILS` is selected.","allOf":[{"$ref":"#\/components\/schemas\/query.RunPromptTokenDetails"}]},"prompt_tokens":{"description":"`prompt_tokens` is the sum of per-trace prompt token counts across the thread. Populated when `PROMPT_TOKENS` is selected.","type":"integer"},"total_cost":{"description":"`total_cost` is the sum of per-trace total costs across the thread, in USD. Populated when `TOTAL_COST` is selected.","type":"number"},"total_tokens":{"description":"`total_tokens` is the sum of per-trace total token counts across the thread. Populated when `TOTAL_TOKENS` is selected.","type":"integer"},"turns":{"description":"`turns` is the number of distinct traces (turns) in the thread. Populated when `TURNS` is selected.","type":"integer"}}},"threads.QueryThreadTracesResponseBody":{"type":"object","properties":{"items":{"description":"`items` is the page of root traces in this thread. Which properties are populated on each trace depends on the `selects` query parameter.","type":"array","items":{"$ref":"#\/components\/schemas\/threads.ThreadTraceListItem"}},"next_cursor":{"description":"`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.","type":"string","example":"eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ=="}}},"threads.QueryThreadsRequestBody":{"type":"object","properties":{"cursor":{"description":"`cursor` is the opaque string from a previous response's `next_cursor`. Omit on the first request; pass the returned cursor to fetch the next page.","type":"string"},"filter":{"description":"`filter` narrows which threads are returned, using a LangSmith filter expression evaluated against each thread's root run.\nFor example: has(tags, \"production\") or eq(status, \"error\").\nSee https:\/\/docs.langchain.com\/langsmith\/trace-query-syntax#filter-query-language for syntax.","type":"string"},"max_start_time":{"description":"`max_start_time` is the exclusive upper bound on thread activity (RFC3339 date-time). Defaults to now (UTC) when omitted.","type":"string","format":"date-time"},"min_start_time":{"description":"`min_start_time` is the inclusive lower bound on thread activity (RFC3339 date-time). Defaults to 1 day before now (UTC) when omitted.","type":"string","format":"date-time"},"page_size":{"description":"`page_size` is the maximum number of threads to return in this response. Defaults to 20 when omitted; must be between 1 and 100 inclusive when set. The response may contain fewer threads than `page_size` even when `next_cursor` is non-null.","type":"integer","default":20,"maximum":100,"minimum":1,"example":20},"project_id":{"description":"`project_id` is the tracing project UUID.","type":"string","format":"uuid","example":"0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328"}}},"threads.QueryThreadsResponseBody":{"type":"object","properties":{"items":{"description":"`items` is the page of thread summaries, sorted by the thread's most recent activity.","type":"array","items":{"$ref":"#\/components\/schemas\/threads.ThreadListItem"}},"next_cursor":{"description":"`next_cursor` is the opaque cursor to pass as `cursor` on the next request. Null on the final page.","type":"string","example":"eyJydW5zX2N1cnNvciI6Imx0KGN1cnNvciwiLi4uIikifQ=="}}},"threads.SingleThreadStatsSelectField":{"type":"string","enum":["TURNS","FIRST_START_TIME","LAST_START_TIME","LAST_END_TIME","LATENCY_P50","LATENCY_P99","PROMPT_TOKENS","PROMPT_COST","COMPLETION_TOKENS","COMPLETION_COST","TOTAL_TOKENS","TOTAL_COST","PROMPT_TOKEN_DETAILS","COMPLETION_TOKEN_DETAILS","PROMPT_COST_DETAILS","COMPLETION_COST_DETAILS","FEEDBACK_STATS"],"x-enum-varnames":["SingleThreadStatsSelectTurns","SingleThreadStatsSelectFirstStartTime","SingleThreadStatsSelectLastStartTime","SingleThreadStatsSelectLastEndTime","SingleThreadStatsSelectLatencyP50","SingleThreadStatsSelectLatencyP99","SingleThreadStatsSelectPromptTokens","SingleThreadStatsSelectPromptCost","SingleThreadStatsSelectCompletionTokens","SingleThreadStatsSelectCompletionCost","SingleThreadStatsSelectTotalTokens","SingleThreadStatsSelectTotalCost","SingleThreadStatsSelectPromptTokenDetails","SingleThreadStatsSelectCompletionTokenDetails","SingleThreadStatsSelectPromptCostDetails","SingleThreadStatsSelectCompletionCostDetails","SingleThreadStatsSelectFeedbackStats"]},"threads.ThreadListItem":{"type":"object","properties":{"count":{"description":"`count` is how many root traces (conversation turns) fall in this thread for the query time range.","type":"integer","example":3},"feedback_stats":{"description":"`feedback_stats` is the aggregated feedback across traces in the thread, keyed by feedback key; shape matches `feedback_stats` on a single run.","allOf":[{"$ref":"#\/components\/schemas\/query.RunFeedbackStats"}]},"first_inputs":{"description":"`first_inputs` is a truncated preview of inputs from the earliest trace in the thread for the query window.","type":"string"},"first_trace_id":{"description":"`first_trace_id` is the root trace UUID for the chronologically first trace in the query time window.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"},"last_error":{"description":"`last_error` is a short error summary from the most recent failing trace in the thread. Absent when there is no error in the window.","type":"string"},"last_outputs":{"description":"`last_outputs` is a truncated preview of outputs from the latest trace in the thread for the query window.","type":"string"},"last_trace_id":{"description":"`last_trace_id` is the root trace UUID for the chronologically last trace in the query time window.","type":"string","format":"uuid","example":"0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328"},"latency_p50":{"description":"`latency_p50` is the approximate median end-to-end latency of traces in the thread, in seconds.","type":"number","example":0.15},"latency_p99":{"description":"`latency_p99` is the approximate 99th percentile end-to-end latency of traces in the thread, in seconds.","type":"number","example":0.42},"max_start_time":{"description":"`max_start_time` is the latest trace start time in the thread (RFC3339 date-time).","type":"string","format":"date-time","example":"2025-01-15T12:05:00.000Z"},"min_start_time":{"description":"`min_start_time` is the earliest trace start time in the thread (RFC3339 date-time).","type":"string","format":"date-time","example":"2025-01-15T12:00:00.000Z"},"num_errored_turns":{"description":"`num_errored_turns` is the count of root traces in the thread (within the query window) whose status was an error.","type":"integer","example":1},"start_time":{"description":"`start_time` is a reference start time for this row (RFC3339 date-time), such as for sorting.","type":"string","format":"date-time","example":"2025-01-15T12:00:00.000Z"},"thread_id":{"description":"`thread_id` identifies this conversation thread within the project from the request body `project_id`.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"},"total_cost":{"description":"`total_cost` is the sum of estimated USD cost across those traces.","type":"number","example":0.045},"total_cost_details":{"description":"`total_cost_details` sums per-category estimated USD cost across traces in the thread. Keys mirror `total_token_details`.\n\nExample: `{\"cache_read\": 0.012, \"reasoning\": 0.008}`.","type":"object","additionalProperties":{"type":"number","format":"float64"}},"total_token_details":{"description":"`total_token_details` sums per-category token counts across traces in the thread. Keys are model-specific category names (for example `cache_read`, `cache_write`, `reasoning`, `audio`).\n\nExample: `{\"cache_read\": 400, \"reasoning\": 120}`.","type":"object","additionalProperties":{"type":"integer","format":"int64"}},"total_tokens":{"description":"`total_tokens` is the sum of token usage across those traces.","type":"integer","example":450},"trace_id":{"description":"`trace_id` is a representative root trace UUID when the summary includes one, for example for deep links.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9328"}}},"threads.ThreadTraceListItem":{"type":"object","properties":{"completion_cost":{"description":"`completion_cost` is the estimated USD cost for the completion. Omitted unless included in `selects`.","type":"number"},"completion_cost_details":{"description":"`completion_cost_details` is the USD cost breakdown for completion-side categories; per-category values are under `raw`. Omitted unless included in `selects`.","allOf":[{"$ref":"#\/components\/schemas\/query.RunCompletionCostDetails"}]},"completion_token_details":{"description":"`completion_token_details` is the completion-side token breakdown by category; per-category counts are under `raw`. Omitted unless included in `selects`.","allOf":[{"$ref":"#\/components\/schemas\/query.RunCompletionTokenDetails"}]},"completion_tokens":{"description":"`completion_tokens` is the completion-side token count. Omitted unless included in `selects`.","type":"integer"},"end_time":{"description":"`end_time` is when the root run ended (RFC3339 date-time). JSON null if the run is still in progress. Omitted unless included in `selects`.","type":"string","format":"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"},"first_token_time":{"description":"`first_token_time` is when the first output token was produced (RFC3339 date-time), for streamed runs when that metadata exists. Omitted unless included in `selects`.","type":"string","format":"date-time","example":"2024-01-15T10:30:00.312Z"},"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"},"latency":{"description":"`latency` is wall-clock duration from start to end in seconds. Omitted unless included in `selects`.","type":"number"},"name":{"description":"`name` is a human-readable label for the root run (for example the model name, function name, or step name chosen when the run was traced). Omitted unless included in `selects`.","type":"string"},"op":{"description":"`op` is a numeric code identifying the root run's `run_type` (for example LLM vs. tool vs. chain). Encoded as a number for compatibility with legacy clients; prefer the string `run_type` on `RunResponse` when available. Omitted unless included in `selects`.","type":"number"},"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"},"prompt_cost":{"description":"`prompt_cost` is the estimated USD cost for the prompt. Omitted unless included in `selects`.","type":"number"},"prompt_cost_details":{"description":"`prompt_cost_details` is the USD cost breakdown for prompt-side categories; per-category values are under `raw`. Omitted unless included in `selects`.","allOf":[{"$ref":"#\/components\/schemas\/query.RunPromptCostDetails"}]},"prompt_token_details":{"description":"`prompt_token_details` is the prompt-side token breakdown by category; per-category counts are under nested `raw`. Omitted unless included in `selects`.","allOf":[{"$ref":"#\/components\/schemas\/query.RunPromptTokenDetails"}]},"prompt_tokens":{"description":"`prompt_tokens` is the prompt-side token count. Omitted unless included in `selects`.","type":"integer"},"start_time":{"description":"`start_time` is when the trace started (RFC3339 date-time). Omitted unless included in `selects`.","type":"string","format":"date-time","example":"2025-01-15T12:00:00.000Z"},"thread_id":{"description":"`thread_id` is the conversation thread UUID that contains this trace. Matches the `thread_id` path parameter of the request. Omitted unless included in `selects`.","type":"string","format":"uuid","example":"d4e5f6a7-b8c9-4d5e-1f2a-3b4c5d6e7f8a"},"total_cost":{"description":"`total_cost` is the estimated total USD cost for the root run. Omitted unless included in `selects`.","type":"number"},"total_tokens":{"description":"`total_tokens` is the total token count (prompt plus completion). Omitted unless included in `selects`.","type":"integer"},"trace_id":{"description":"`trace_id` is the UUID of this trace (the root run). Always present.","type":"string","format":"uuid","example":"018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"}}},"threads.ThreadTraceSelectField":{"type":"string","enum":["THREAD_ID","TRACE_ID","OP","PROMPT_TOKENS","COMPLETION_TOKENS","TOTAL_TOKENS","START_TIME","END_TIME","LATENCY","FIRST_TOKEN_TIME","INPUTS_PREVIEW","OUTPUTS_PREVIEW","INPUTS","OUTPUTS","ERROR","PROMPT_COST","COMPLETION_COST","TOTAL_COST","PROMPT_TOKEN_DETAILS","COMPLETION_TOKEN_DETAILS","PROMPT_COST_DETAILS","COMPLETION_COST_DETAILS","NAME","ERROR_PREVIEW"],"x-enum-varnames":["ThreadTraceSelectThreadID","ThreadTraceSelectTraceID","ThreadTraceSelectOp","ThreadTraceSelectPromptTokens","ThreadTraceSelectCompletionTokens","ThreadTraceSelectTotalTokens","ThreadTraceSelectStartTime","ThreadTraceSelectEndTime","ThreadTraceSelectLatency","ThreadTraceSelectFirstTokenTime","ThreadTraceSelectInputsPreview","ThreadTraceSelectOutputsPreview","ThreadTraceSelectInputs","ThreadTraceSelectOutputs","ThreadTraceSelectError","ThreadTraceSelectPromptCost","ThreadTraceSelectCompletionCost","ThreadTraceSelectTotalCost","ThreadTraceSelectPromptTokenDetails","ThreadTraceSelectCompletionTokenDetails","ThreadTraceSelectPromptCostDetails","ThreadTraceSelectCompletionCostDetails","ThreadTraceSelectName","ThreadTraceSelectErrorPreview"]},"tools.CreateToolPayload":{"type":"object","required":["description","handle","name","parameters"],"properties":{"description":{"type":"string"},"enabled":{"type":"boolean"},"handle":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"name":{"type":"string"},"parameters":{"type":"object","additionalProperties":true},"returns":{"type":"object","additionalProperties":true}}},"tools.ErrorResponse":{"type":"object","properties":{"error":{"description":"Error message","type":"string"}}},"tools.ListToolsResponse":{"type":"object","properties":{"next_offset":{"type":"integer"},"tools":{"type":"array","items":{"$ref":"#\/components\/schemas\/tools.Tool"}},"total":{"type":"integer"}}},"tools.Tool":{"type":"object","properties":{"created_at":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"handle":{"type":"string"},"id":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"name":{"type":"string"},"parameters":{"type":"object","additionalProperties":true},"returns":{"type":"object","additionalProperties":true},"tenant_id":{"type":"string"},"updated_at":{"type":"string"}}},"tools.UpdateToolPayload":{"type":"object","properties":{"description":{"type":"string"},"enabled":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":true},"name":{"type":"string"},"parameters":{"type":"object","additionalProperties":true},"returns":{"type":"object","additionalProperties":true}}},"tracer_session_issues.ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}},"tracer_session_issues.FixVerification":{"type":"object","properties":{"attempt":{"type":"integer"},"commit_sha":{"type":"string"},"created_at":{"type":"string"},"deadline_at":{"type":"string"},"detail":{"type":"object"},"fix_branch":{"type":"string"},"id":{"type":"string"},"issue_id":{"type":"string"},"pr_number":{"type":"integer"},"preview_url":{"type":"string"},"ready_check":{"type":"string"},"run_id":{"type":"string"},"session_id":{"type":"string"},"status":{"type":"string"},"tenant_id":{"type":"string"},"thread_id":{"type":"string"},"updated_at":{"type":"string"}}},"tracer_session_issues.Issue":{"type":"object","properties":{"actions":{"type":"object"},"created_at":{"type":"string"},"description":{"type":"string"},"first_seen_at":{"type":"string"},"fix_branch":{"type":"string"},"fix_dispatched_at":{"type":"string"},"fix_pr_number":{"type":"integer"},"fix_prompt":{"type":"string"},"fix_verification":{"type":"object"},"id":{"type":"string"},"last_seen_at":{"type":"string"},"name":{"type":"string"},"proposed_context_fixes":{"type":"array","items":{"type":"object"}},"proposed_examples":{"type":"array","items":{"type":"object"}},"proposed_fix":{"type":"string"},"proposed_prompt_fixes":{"type":"array","items":{"type":"object"}},"recurrences_since_watching":{"description":"RecurrencesSinceWatching counts linked traces whose run start_time is after\nwatching_since \u2014 i.e. recurrences observed during the current watch period.","type":"integer"},"session_id":{"type":"string"},"severity":{"$ref":"#\/components\/schemas\/tracer_session_issues.Severity"},"status":{"$ref":"#\/components\/schemas\/tracer_session_issues.Status"},"tags":{"type":"array","items":{"type":"string"}},"tenant_id":{"type":"string"},"traces":{"type":"object"},"updated_at":{"type":"string"},"watching_since":{"type":"string"}}},"tracer_session_issues.ListViewsResponse":{"type":"object","properties":{"views":{"type":"array","items":{"$ref":"#\/components\/schemas\/tracer_session_issues.ViewedIssue"}}}},"tracer_session_issues.RecordFixVerdictRequest":{"type":"object","properties":{"detail":{"type":"object"},"status":{"type":"string"}}},"tracer_session_issues.Severity":{"type":"integer","enum":[0,1,2,3],"x-enum-varnames":["SeverityUrgent","SeverityHigh","SeverityMed","SeverityLow"]},"tracer_session_issues.StartPreviewRequest":{"type":"object","properties":{"commit_sha":{"type":"string"},"run_id":{"type":"string"},"thread_id":{"type":"string"}}},"tracer_session_issues.StartPreviewResponse":{"type":"object","properties":{"pr_number":{"type":"integer"},"preview_url":{"type":"string"}}},"tracer_session_issues.Status":{"type":"string","enum":["open","fixing","watching","completed","ignored"],"x-enum-varnames":["StatusOpen","StatusFixing","StatusWatching","StatusCompleted","StatusIgnored"]},"tracer_session_issues.ViewedIssue":{"type":"object","properties":{"issue_id":{"type":"string"},"viewed_at":{"type":"string"}}},"tracer_session_issues_agent.CreateIssuesAgentRequest":{"type":"object","properties":{"context_hub_repo_handle":{"type":"string"},"github_base_branch":{"type":"string"},"github_repo_subdir":{"type":"string"},"github_repo_url":{"type":"string"},"priorities":{"type":"array","items":{"type":"string"}},"run_filter":{"description":"Runs-filter-DSL trace scope; omit\/null\/empty for no scope.","type":"string"}}},"tracer_session_issues_agent.ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}},"tracer_session_issues_agent.IssuesAgent":{"type":"object","properties":{"agent_overview_accepted":{"type":"boolean"},"context_hub_repo_handle":{"type":"string"},"created_at":{"type":"string"},"cron_enabled":{"type":"boolean"},"cron_schedule":{"type":"string"},"github_base_branch":{"type":"string"},"github_repo_subdir":{"type":"string"},"github_repo_url":{"type":"string"},"id":{"type":"string"},"issue_count":{"type":"integer"},"latest_run_id":{"type":"string"},"latest_thread_id":{"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"},"tenant_id":{"type":"string"},"tenant_name":{"description":"JOINed from tenants (workspace label); resolved server-side so the org-admin list can label rows across workspaces the caller isn't a member of","type":"string"},"updated_at":{"type":"string"},"user_instructions":{"description":"User-owned freeform preferences. Engine reads this as authoritative\ncontext and reconciles it into the Agent Overview on the next scan, but\nnever edits it. NULL when the user hasn't set any.","type":"string"}}},"tracer_session_issues_agent.SaveOverviewRequest":{"type":"object","properties":{"content":{"type":"string"}}},"tracer_session_issues_agent.SaveOverviewResponse":{"type":"object","properties":{"commit_hash":{"type":"string"},"session_agent_overview_repo_id":{"type":"string"}}},"tracer_session_issues_agent.UpdateIssuesAgentRequest":{"type":"object","properties":{"agent_overview_accepted":{"type":"boolean"},"context_hub_repo_handle":{"type":"string"},"cron_enabled":{"type":"boolean"},"github_base_branch":{"type":"string"},"github_repo_subdir":{"type":"string"},"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"},"session_lcu_spend_limit_monthly":{"description":"SessionLCUSpendLimitMonthly sets the per-project monthly LCU spend limit.\nTri-state: absent (nil) = don't change; 0 or positive = monthly cap (a cap\nof 0 is always reached, blocking new runs); negative clears it (stored as\nNULL = no limit). The frontend sends a negative number to clear rather\nthan null, since null is indistinguishable from \"absent\". Serialized as a\nstring to preserve NUMERIC precision.","type":"string"},"user_instructions":{"description":"Freeform user preferences. Send \"\" to clear (the frontend must not send null).","type":"string"}}},"tracer_session_issues_agent_webhooks.IssuesAgentWebhook":{"type":"object","properties":{"created_at":{"type":"string"},"event_types":{"type":"array","items":{"type":"string"}},"headers":{"type":"object"},"id":{"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"}},"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"},"session_id":{"type":"string"},"severity_threshold":{"$ref":"#\/components\/schemas\/tracer_session_issues.Severity"},"signing_secret":{"type":"string"},"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"},"slack_team_id":{"type":"string"},"tenant_id":{"type":"string"},"updated_at":{"type":"string"},"url":{"type":"string"}}},"tracer_sessions.AgentVersionResponse":{"type":"object","properties":{"commit_sha":{"type":"string"},"first_seen_at":{"type":"string"}}},"ttl_settings.TTLSettingsResponse":{"type":"object","properties":{"is_custom":{"type":"boolean"},"longlived_ttl_days":{"type":"integer"},"tenant_id":{"type":"string"}}},"ttl_settings.UpdateTTLSettingsRequest":{"type":"object","properties":{"longlived_ttl_days":{"type":"integer"}}},"users.ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"detail":{"type":"string"},"status":{"type":"integer"},"type":{"type":"string"}}},"users.User":{"type":"object","properties":{"email":{"type":"string","example":"ada@example.com"},"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Ada Lovelace"}}},"users.UserRef":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Ada Lovelace"}}},"sandboxapi.S3BucketMountSpec":{"type":"object","required":["id","mount_path","type","s3"],"properties":{"cache":{"$ref":"#\/components\/schemas\/sandboxapi.MountCacheSpec"},"id":{"type":"string","maxLength":64},"mount_path":{"type":"string"},"read_only":{"type":"boolean"},"s3":{"$ref":"#\/components\/schemas\/sandboxapi.S3MountSpec"},"type":{"enum":["s3"],"allOf":[{"$ref":"#\/components\/schemas\/sandboxapi.MountKind"}]}},"not":{"anyOf":[{"required":["gcs"]},{"required":["git"]},{"required":["contexthub"]}]}},"sandboxapi.GCSBucketMountSpec":{"type":"object","required":["id","mount_path","type","gcs"],"properties":{"cache":{"$ref":"#\/components\/schemas\/sandboxapi.MountCacheSpec"},"gcs":{"$ref":"#\/components\/schemas\/sandboxapi.GCSMountSpec"},"id":{"type":"string","maxLength":64},"mount_path":{"type":"string"},"read_only":{"type":"boolean"},"type":{"enum":["gcs"],"allOf":[{"$ref":"#\/components\/schemas\/sandboxapi.MountKind"}]}},"not":{"anyOf":[{"required":["s3"]},{"required":["git"]},{"required":["contexthub"]}]}},"sandboxapi.GitRepoMountSpec":{"type":"object","required":["id","mount_path","type","git"],"properties":{"git":{"$ref":"#\/components\/schemas\/sandboxapi.GitMountSpec"},"id":{"type":"string","maxLength":64},"mount_path":{"type":"string"},"read_only":{"type":"boolean"},"type":{"enum":["git"],"allOf":[{"$ref":"#\/components\/schemas\/sandboxapi.MountKind"}]}},"not":{"anyOf":[{"required":["s3"]},{"required":["gcs"]},{"required":["contexthub"]}]}},"sandboxapi.ContextHubRepoMountSpec":{"type":"object","required":["id","mount_path","type","contexthub"],"properties":{"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"]}]}}},"securitySchemes":{"API Key":{"type":"apiKey","in":"header","name":"X-API-Key"},"Tenant ID":{"type":"apiKey","in":"header","name":"X-Tenant-Id"},"Bearer Auth":{"type":"http","description":"Bearer tokens are used to authenticate from the UI. Must also specify x-tenant-id or x-organization-id (for org scoped apis).","scheme":"bearer"},"Organization ID":{"type":"apiKey","in":"header","name":"X-Organization-Id"}}},"servers":[{"url":"\/"}]}