Skip to content

Commit efc0265

Browse files
committed
add Replay span type
1 parent 9be62fc commit efc0265

3 files changed

Lines changed: 28 additions & 2 deletions

File tree

generated_types.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@
109109
"format": "date-time",
110110
"description": "Date of last AI secret update"
111111
},
112+
"secret_updated_at": {
113+
"type": ["string", "null"],
114+
"format": "date-time",
115+
"description": "Date of last update to the encrypted secret value itself"
116+
},
112117
"org_id": {
113118
"type": "string",
114119
"format": "uuid",
@@ -1833,6 +1838,11 @@
18331838
"format": "date-time",
18341839
"description": "Date of environment variable creation"
18351840
},
1841+
"secret_updated_at": {
1842+
"type": ["string", "null"],
1843+
"format": "date-time",
1844+
"description": "Date of last update to the encrypted secret value itself"
1845+
},
18361846
"used": {
18371847
"type": ["string", "null"],
18381848
"format": "date-time",
@@ -1843,6 +1853,10 @@
18431853
"additionalProperties": {},
18441854
"description": "Optional metadata associated with the environment variable when managed via the function secrets API"
18451855
},
1856+
"preview_secret": {
1857+
"type": ["string", "null"],
1858+
"description": "Redacted preview of the stored secret value"
1859+
},
18461860
"secret_type": {
18471861
"type": ["string", "null"],
18481862
"description": "Optional classification for the secret (for example, the AI provider name)"
@@ -5823,7 +5837,8 @@
58235837
"facet",
58245838
"preprocessor",
58255839
"classifier",
5826-
"review"
5840+
"review",
5841+
"replay"
58275842
],
58285843
"description": "Type of the span, for display purposes only"
58295844
},
@@ -6097,6 +6112,10 @@
60976112
"generation_settings": {
60986113
"$ref": "#/components/schemas/TopicMapGenerationSettings"
60996114
},
6115+
"disable_reconciliation": {
6116+
"type": "boolean",
6117+
"description": "Whether new topic generation should ignore the previously saved report during reconciliation. Defaults to false when omitted."
6118+
},
61006119
"distance_threshold": {
61016120
"type": "number",
61026121
"description": "Maximum distance to nearest centroid. If exceeded, returns no_match."

js/src/generated_types.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Auto-generated file (content hash 87cf242c359a07f8) -- do not modify
1+
// Auto-generated file (content hash 75ec0d2b66921cdd) -- do not modify
22

33
import { z } from "zod/v3";
44

@@ -47,6 +47,7 @@ export const AISecret = z.object({
4747
id: z.string().uuid(),
4848
created: z.union([z.string(), z.null()]).optional(),
4949
updated_at: z.union([z.string(), z.null()]).optional(),
50+
secret_updated_at: z.union([z.string(), z.null()]).optional(),
5051
org_id: z.string().uuid(),
5152
name: z.string(),
5253
type: z.union([z.string(), z.null()]).optional(),
@@ -271,6 +272,7 @@ export const TopicMapData = z.object({
271272
report_key: z.string().optional(),
272273
topic_names: z.record(z.string()).optional(),
273274
generation_settings: TopicMapGenerationSettings.optional(),
275+
disable_reconciliation: z.boolean().optional(),
274276
distance_threshold: z.number().optional(),
275277
});
276278
export type TopicMapDataType = z.infer<typeof TopicMapData>;
@@ -666,10 +668,12 @@ export const EnvVar = z.object({
666668
object_id: z.string().uuid(),
667669
name: z.string(),
668670
created: z.union([z.string(), z.null()]).optional(),
671+
secret_updated_at: z.union([z.string(), z.null()]).optional(),
669672
used: z.union([z.string(), z.null()]).optional(),
670673
metadata: z
671674
.union([z.object({}).partial().passthrough(), z.null()])
672675
.optional(),
676+
preview_secret: z.union([z.string(), z.null()]).optional(),
673677
secret_type: z.union([z.string(), z.null()]).optional(),
674678
secret_category: z
675679
.enum(["env_var", "ai_provider", "sandbox_provider"])
@@ -743,6 +747,7 @@ export const SpanType = z.union([
743747
"preprocessor",
744748
"classifier",
745749
"review",
750+
"replay",
746751
]),
747752
z.null(),
748753
]);

js/util/span_types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const spanTypeAttributeValues = [
1010
"preprocessor",
1111
"classifier",
1212
"review",
13+
"replay",
1314
] as const;
1415

1516
// DEPRECATED: Use `spanTypeAttributeValues` instead
@@ -25,6 +26,7 @@ export enum SpanTypeAttribute {
2526
PREPROCESSOR = "preprocessor",
2627
CLASSIFIER = "classifier",
2728
REVIEW = "review",
29+
REPLAY = "replay",
2830
}
2931

3032
export type SpanType = (typeof spanTypeAttributeValues)[number];

0 commit comments

Comments
 (0)