File tree 5 files changed +18
-1
lines changed
apps/opik-documentation/documentation/fern/openapi
code_generation/fern/openapi
python/src/opik/rest_api/types
typescript/src/opik/rest_api
5 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -6707,6 +6707,10 @@ components:
6707
6707
id :
6708
6708
type : string
6709
6709
format : uuid
6710
+ project_name :
6711
+ pattern : (?s)^\s*(\S.*\S|\S)\s*$
6712
+ type : string
6713
+ description : " If null, the default project is used"
6710
6714
project_id :
6711
6715
type : string
6712
6716
format : uuid
Original file line number Diff line number Diff line change @@ -6707,6 +6707,10 @@ components:
6707
6707
id :
6708
6708
type : string
6709
6709
format : uuid
6710
+ project_name :
6711
+ pattern : (?s)^\s*(\S.*\S|\S)\s*$
6712
+ type : string
6713
+ description : " If null, the default project is used"
6710
6714
project_id :
6711
6715
type : string
6712
6716
format : uuid
Original file line number Diff line number Diff line change 2
2
3
3
from ..core .pydantic_utilities import UniversalBaseModel
4
4
import typing
5
+ import pydantic
5
6
from .span_public_type import SpanPublicType
6
7
import datetime as dt
7
8
from .json_node_public import JsonNodePublic
8
9
from .error_info_public import ErrorInfoPublic
9
10
from .feedback_score_public import FeedbackScorePublic
10
11
from .comment_public import CommentPublic
11
- import pydantic
12
12
from ..core .pydantic_utilities import IS_PYDANTIC_V2
13
13
14
14
15
15
class SpanPublic (UniversalBaseModel ):
16
16
id : typing .Optional [str ] = None
17
+ project_name : typing .Optional [str ] = pydantic .Field (default = None )
18
+ """
19
+ If null, the default project is used
20
+ """
21
+
17
22
project_id : typing .Optional [str ] = None
18
23
trace_id : str
19
24
parent_span_id : typing .Optional [str ] = None
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import * as OpikApi from "../index";
6
6
7
7
export interface SpanPublic {
8
8
id ?: string ;
9
+ /** If null, the default project is used */
10
+ projectName ?: string ;
9
11
projectId ?: string ;
10
12
traceId : string ;
11
13
parentSpanId ?: string ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { CommentPublic } from "./CommentPublic";
14
14
export const SpanPublic : core . serialization . ObjectSchema < serializers . SpanPublic . Raw , OpikApi . SpanPublic > =
15
15
core . serialization . object ( {
16
16
id : core . serialization . string ( ) . optional ( ) ,
17
+ projectName : core . serialization . property ( "project_name" , core . serialization . string ( ) . optional ( ) ) ,
17
18
projectId : core . serialization . property ( "project_id" , core . serialization . string ( ) . optional ( ) ) ,
18
19
traceId : core . serialization . property ( "trace_id" , core . serialization . string ( ) ) ,
19
20
parentSpanId : core . serialization . property ( "parent_span_id" , core . serialization . string ( ) . optional ( ) ) ,
@@ -49,6 +50,7 @@ export const SpanPublic: core.serialization.ObjectSchema<serializers.SpanPublic.
49
50
export declare namespace SpanPublic {
50
51
export interface Raw {
51
52
id ?: string | null ;
53
+ project_name ?: string | null ;
52
54
project_id ?: string | null ;
53
55
trace_id : string ;
54
56
parent_span_id ?: string | null ;
You can’t perform that action at this time.
0 commit comments