Skip to content

Commit 96ff1f7

Browse files
chore: generated SDK types (#221)
Co-authored-by: braintrust-bot[bot] <215900051+braintrust-bot[bot]@users.noreply.github.com>
1 parent a0e7d54 commit 96ff1f7

3 files changed

Lines changed: 239 additions & 54 deletions

File tree

generated_types.json

Lines changed: 131 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,16 @@
19731973
"format": "uuid",
19741974
"description": "Identifies the user who created the dataset"
19751975
},
1976+
"tags": {
1977+
"type": [
1978+
"array",
1979+
"null"
1980+
],
1981+
"items": {
1982+
"type": "string"
1983+
},
1984+
"description": "A list of tags for the dataset"
1985+
},
19761986
"metadata": {
19771987
"type": [
19781988
"object",
@@ -2213,6 +2223,51 @@
22132223
"root_span_id"
22142224
]
22152225
},
2226+
"DatasetSnapshot": {
2227+
"type": "object",
2228+
"properties": {
2229+
"id": {
2230+
"type": "string",
2231+
"format": "uuid",
2232+
"description": "Unique identifier for the dataset snapshot"
2233+
},
2234+
"dataset_id": {
2235+
"type": "string",
2236+
"format": "uuid",
2237+
"description": "Unique identifier for the dataset that this snapshot belongs to"
2238+
},
2239+
"name": {
2240+
"type": "string",
2241+
"description": "Name of the dataset snapshot"
2242+
},
2243+
"description": {
2244+
"type": [
2245+
"string",
2246+
"null"
2247+
]
2248+
},
2249+
"xact_id": {
2250+
"type": "string",
2251+
"description": "Transaction id of the brainstore version at the time of the snapshot"
2252+
},
2253+
"created": {
2254+
"type": [
2255+
"string",
2256+
"null"
2257+
],
2258+
"format": "date-time",
2259+
"description": "Date of dataset snapshot creation"
2260+
}
2261+
},
2262+
"required": [
2263+
"id",
2264+
"dataset_id",
2265+
"name",
2266+
"description",
2267+
"xact_id",
2268+
"created"
2269+
]
2270+
},
22162271
"EnvVar": {
22172272
"type": "object",
22182273
"properties": {
@@ -5173,7 +5228,7 @@
51735228
"description": "Textual description of the project automation"
51745229
},
51755230
"config": {
5176-
"anyOf": [
5231+
"oneOf": [
51775232
{
51785233
"type": "object",
51795234
"properties": {
@@ -7716,6 +7771,22 @@
77167771
],
77177772
"description": "Optional BTQL filter applied before topic automation."
77187773
},
7774+
"rerun_seconds": {
7775+
"type": [
7776+
"number",
7777+
"null"
7778+
],
7779+
"minimum": 600,
7780+
"description": "How often to recompute topic maps"
7781+
},
7782+
"relabel_overlap_seconds": {
7783+
"type": [
7784+
"number",
7785+
"null"
7786+
],
7787+
"minimum": 60,
7788+
"description": "How much recent history to relabel after a new topic map version becomes active"
7789+
},
77197790
"backfill_time_range": {
77207791
"anyOf": [
77217792
{
@@ -7740,7 +7811,7 @@
77407811
"type": "null"
77417812
}
77427813
],
7743-
"description": "Optional default time range for backfill operations."
7814+
"description": "Topic window used for classification coverage and initial backfill."
77447815
}
77457816
},
77467817
"required": [
@@ -7836,6 +7907,9 @@
78367907
},
78377908
"description": "Mapping from topic_id to topic name"
78387909
},
7910+
"generation_settings": {
7911+
"$ref": "#/components/schemas/TopicMapGenerationSettings"
7912+
},
78397913
"distance_threshold": {
78407914
"type": "number",
78417915
"description": "Maximum distance to nearest centroid. If exceeded, returns no_match."
@@ -7872,6 +7946,54 @@
78727946
"function"
78737947
]
78747948
},
7949+
"TopicMapGenerationSettings": {
7950+
"type": "object",
7951+
"properties": {
7952+
"algorithm": {
7953+
"type": "string",
7954+
"enum": [
7955+
"hdbscan",
7956+
"kmeans"
7957+
]
7958+
},
7959+
"dimension_reduction": {
7960+
"type": "string",
7961+
"enum": [
7962+
"umap",
7963+
"pca",
7964+
"none"
7965+
]
7966+
},
7967+
"sample_size": {
7968+
"type": "integer",
7969+
"exclusiveMinimum": 0
7970+
},
7971+
"n_clusters": {
7972+
"type": "integer",
7973+
"exclusiveMinimum": 0
7974+
},
7975+
"min_cluster_size": {
7976+
"type": "integer",
7977+
"exclusiveMinimum": 0
7978+
},
7979+
"min_samples": {
7980+
"type": "integer",
7981+
"exclusiveMinimum": 0
7982+
},
7983+
"hierarchy_threshold": {
7984+
"type": "integer",
7985+
"exclusiveMinimum": 0
7986+
},
7987+
"naming_model": {
7988+
"type": "string"
7989+
}
7990+
},
7991+
"required": [
7992+
"algorithm",
7993+
"dimension_reduction"
7994+
],
7995+
"description": "Clustering and naming settings used to generate this topic map"
7996+
},
78757997
"TraceScope": {
78767998
"type": "object",
78777999
"properties": {
@@ -8030,6 +8152,13 @@
80308152
],
80318153
"format": "date-time",
80328154
"description": "Date of user creation"
8155+
},
8156+
"last_active_at": {
8157+
"type": [
8158+
"number",
8159+
"null"
8160+
],
8161+
"description": "Unix timestamp in milliseconds of the user's last activity, when available"
80338162
}
80348163
},
80358164
"required": [

0 commit comments

Comments
 (0)