Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 109 additions & 2 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3928,6 +3928,34 @@
}
]
},
"NamedScore": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"score": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 1
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"metadata": {
"type": "object",
"additionalProperties": {}
}
},
"required": ["name"]
},
"NullableSavedFunctionId": {
"anyOf": [
{
Expand Down Expand Up @@ -4721,6 +4749,18 @@
}
],
"description": "The configuration for the automation rule"
},
"runtime_block": {
"type": "object",
"properties": {
"reason": {
"type": "string"
},
"model": {
"type": "string"
}
},
"required": ["reason", "model"]
}
},
"required": ["id", "project_id", "name", "config"]
Expand Down Expand Up @@ -5296,6 +5336,10 @@
"type": ["boolean", "null"],
"description": "If true, use metrics.start rather than created for monitor chart time bucket dimensions."
},
"coding_agent_insights_dashboard": {
"type": ["boolean", "null"],
"description": "If true, enable the agent insights dashboard for this project."
},
"blind_reviews": {
"type": ["boolean", "null"],
"description": "If true, hide peer review scores, comments, and aggregate results from reviewers without project update permissions until they submit their own review."
Expand Down Expand Up @@ -6307,6 +6351,68 @@
}
]
},
"ScoreObject": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The score name. Defaults to the function name for a single score."
},
"score": {
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 1
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"metadata": {
"type": "object",
"additionalProperties": {}
}
},
"required": ["score"]
},
"ScoreResult": {
"anyOf": [
{
"$ref": "#/components/schemas/ScoreObject"
},
{
"$ref": "#/components/schemas/NamedScore"
},
{
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 1
},
{
"type": "boolean"
}
]
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/NamedScore"
},
"description": "Multiple scores. Each score must have a unique name."
},
{
"type": "null"
}
],
"description": "The return value of a scorer function."
},
"ServiceToken": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -6443,7 +6549,8 @@
"facet",
"preprocessor",
"classifier",
"review"
"review",
"log"
],
"description": "Type of the span, for display purposes only"
},
Expand Down Expand Up @@ -6616,7 +6723,7 @@
"relabel_overlap_seconds": {
"type": ["number", "null"],
"minimum": 60,
"description": "How much recent history to relabel after a new topic map version becomes active"
"description": "Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active."
},
"backfill_time_range": {
"anyOf": [
Expand Down
71 changes: 64 additions & 7 deletions js/src/generated_plain_types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Auto-generated file (content hash 48f2c828cb95730e) -- do not modify
// Auto-generated file (content hash 3c4918b25bc4930d) -- do not modify

export type AclObjectTypeType =
/**
Expand Down Expand Up @@ -2228,12 +2228,12 @@ export type SpanTypeType =
/**
* Type of the span, for display purposes only
*
* @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review
* @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log
*/
| /**
* Type of the span, for display purposes only
*
* @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review
* @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log
*/
(| "llm"
| "score"
Expand All @@ -2246,11 +2246,12 @@ export type SpanTypeType =
| "preprocessor"
| "classifier"
| "review"
| "log"
)
/**
* Type of the span, for display purposes only
*
* @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review
* @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log
*/
| null;
export type SpanAttributesType =
Expand Down Expand Up @@ -4177,6 +4178,17 @@ export type MessageRoleType =
* @enum system, user, assistant, function, tool, model, developer
*/
"system" | "user" | "assistant" | "function" | "tool" | "model" | "developer";
export type NamedScoreType = {
name: string;
score?:
| /**
* @minimum 0
* @maximum 1
*/
(number | boolean | null)
| undefined;
metadata?: {} | undefined;
};
export type NullableSavedFunctionIdType =
/**
* Default preprocessor for this project. When set, functions that use preprocessors will use this instead of their built-in default.
Expand Down Expand Up @@ -4542,6 +4554,17 @@ export type ProjectSettingsType = Partial<{
* If true, use metrics.start rather than created for monitor chart time bucket dimensions.
*/
| null;
/**
* If true, enable the agent insights dashboard for this project.
*/
coding_agent_insights_dashboard: /**
* If true, enable the agent insights dashboard for this project.
*/
| boolean
/**
* If true, enable the agent insights dashboard for this project.
*/
| null;
/**
* If true, hide peer review scores, comments, and aggregate results from reviewers without project update permissions until they submit their own review.
*/
Expand Down Expand Up @@ -5059,18 +5082,18 @@ export type TopicAutomationConfigType = {
| undefined;
relabel_overlap_seconds?:
| /**
* How much recent history to relabel after a new topic map version becomes active
* Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active.
*
* @minimum 60
*/
/**
* How much recent history to relabel after a new topic map version becomes active
* Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active.
*
* @minimum 60
*/
(| number
/**
* How much recent history to relabel after a new topic map version becomes active
* Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active.
*
* @minimum 60
*/
Expand Down Expand Up @@ -5539,6 +5562,12 @@ export type ProjectAutomationType = {
| WindowedAutomationConfigType
| TopicAutomationConfigType
| TopicDigestAutomationConfigType;
runtime_block?:
| {
reason: string;
model: string;
}
| undefined;
};
export type ProjectGroupType = {
/**
Expand Down Expand Up @@ -6692,6 +6721,34 @@ export type RunEvalType = {
)
| undefined;
};
export type ScoreObjectType = {
name?: /**
* The score name. Defaults to the function name for a single score.
*/
string | undefined;
score: /**
* @minimum 0
* @maximum 1
*/
number | boolean | null;
metadata?: {} | undefined;
};
export type ScoreResultType =
/**
* The return value of a scorer function.
*/
| ScoreObjectType
| NamedScoreType
/**
* @minimum 0
* @maximum 1
*/
| (number | boolean)
/**
* Multiple scores. Each score must have a unique name.
*/
| Array<NamedScoreType>
| null;
export type ServiceTokenType = {
/**
* Unique identifier for the service token
Expand Down
25 changes: 24 additions & 1 deletion js/src/generated_types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Auto-generated file (content hash 48f2c828cb95730e) -- do not modify
// Auto-generated file (content hash 3c4918b25bc4930d) -- do not modify

import { z } from "zod/v3";

Expand Down Expand Up @@ -816,6 +816,7 @@ export const SpanType = z.union([
"preprocessor",
"classifier",
"review",
"log",
]),
z.null(),
]);
Expand Down Expand Up @@ -1535,6 +1536,12 @@ export const MessageRole = z.enum([
"developer",
]);
export type MessageRoleType = z.infer<typeof MessageRole>;
export const NamedScore = z.object({
name: z.string(),
score: z.union([z.number(), z.boolean(), z.null()]).optional(),
metadata: z.object({}).partial().passthrough().optional(),
});
export type NamedScoreType = z.infer<typeof NamedScore>;
export const NullableSavedFunctionId = z.union([
z.object({
type: z.literal("function"),
Expand Down Expand Up @@ -1649,6 +1656,7 @@ export const ProjectSettings = z.union([
]),
disable_realtime_queries: z.union([z.boolean(), z.null()]),
monitor_charts_use_metrics_start: z.union([z.boolean(), z.null()]),
coding_agent_insights_dashboard: z.union([z.boolean(), z.null()]),
blind_reviews: z.union([z.boolean(), z.null()]),
default_preprocessor: NullableSavedFunctionId,
})
Expand Down Expand Up @@ -1910,6 +1918,7 @@ export const ProjectAutomation = z.object({
TopicAutomationConfig,
TopicDigestAutomationConfig,
]),
runtime_block: z.object({ reason: z.string(), model: z.string() }).optional(),
});
export type ProjectAutomationType = z.infer<typeof ProjectAutomation>;
export const ProjectGroup = z.object({
Expand Down Expand Up @@ -2218,6 +2227,20 @@ export const RunEval = z.object({
endpoint_name: z.union([z.string(), z.null()]).optional(),
});
export type RunEvalType = z.infer<typeof RunEval>;
export const ScoreObject = z.object({
name: z.string().optional(),
score: z.union([z.number(), z.boolean(), z.null()]),
metadata: z.object({}).partial().passthrough().optional(),
});
export type ScoreObjectType = z.infer<typeof ScoreObject>;
export const ScoreResult = z.union([
ScoreObject,
NamedScore,
z.union([z.number(), z.boolean()]),
z.array(NamedScore),
z.null(),
]);
export type ScoreResultType = z.infer<typeof ScoreResult>;
export const ServiceToken = z.object({
id: z.string().uuid(),
created: z.union([z.string(), z.null()]).optional(),
Expand Down
Loading
Loading