@arizeai/phoenix-client 4.0.3 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/esm/__generated__/api/v1.d.ts +529 -4
  2. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  3. package/dist/esm/experiments/getExperimentRuns.d.ts +8 -2
  4. package/dist/esm/experiments/getExperimentRuns.d.ts.map +1 -1
  5. package/dist/esm/experiments/getExperimentRuns.js +34 -23
  6. package/dist/esm/experiments/getExperimentRuns.js.map +1 -1
  7. package/dist/esm/sessions/addSessionAnnotation.d.ts +44 -0
  8. package/dist/esm/sessions/addSessionAnnotation.d.ts.map +1 -0
  9. package/dist/esm/sessions/addSessionAnnotation.js +44 -0
  10. package/dist/esm/sessions/addSessionAnnotation.js.map +1 -0
  11. package/dist/esm/sessions/index.d.ts +3 -0
  12. package/dist/esm/sessions/index.d.ts.map +1 -0
  13. package/dist/esm/sessions/index.js +3 -0
  14. package/dist/esm/sessions/index.js.map +1 -0
  15. package/dist/esm/sessions/logSessionAnnotations.d.ts +56 -0
  16. package/dist/esm/sessions/logSessionAnnotations.d.ts.map +1 -0
  17. package/dist/esm/sessions/logSessionAnnotations.js +53 -0
  18. package/dist/esm/sessions/logSessionAnnotations.js.map +1 -0
  19. package/dist/esm/sessions/types.d.ts +19 -0
  20. package/dist/esm/sessions/types.d.ts.map +1 -0
  21. package/dist/esm/sessions/types.js +37 -0
  22. package/dist/esm/sessions/types.js.map +1 -0
  23. package/dist/esm/spans/types.d.ts +3 -50
  24. package/dist/esm/spans/types.d.ts.map +1 -1
  25. package/dist/esm/spans/types.js.map +1 -1
  26. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  27. package/dist/esm/types/annotations.d.ts +37 -0
  28. package/dist/esm/types/annotations.d.ts.map +1 -1
  29. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  30. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  31. package/dist/src/__generated__/api/v1.d.ts +529 -4
  32. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  33. package/dist/src/experiments/getExperimentRuns.d.ts +8 -2
  34. package/dist/src/experiments/getExperimentRuns.d.ts.map +1 -1
  35. package/dist/src/experiments/getExperimentRuns.js +35 -23
  36. package/dist/src/experiments/getExperimentRuns.js.map +1 -1
  37. package/dist/src/sessions/addSessionAnnotation.d.ts +44 -0
  38. package/dist/src/sessions/addSessionAnnotation.d.ts.map +1 -0
  39. package/dist/src/sessions/addSessionAnnotation.js +48 -0
  40. package/dist/src/sessions/addSessionAnnotation.js.map +1 -0
  41. package/dist/src/sessions/index.d.ts +3 -0
  42. package/dist/src/sessions/index.d.ts.map +1 -0
  43. package/dist/src/sessions/index.js +19 -0
  44. package/dist/src/sessions/index.js.map +1 -0
  45. package/dist/src/sessions/logSessionAnnotations.d.ts +56 -0
  46. package/dist/src/sessions/logSessionAnnotations.d.ts.map +1 -0
  47. package/dist/src/sessions/logSessionAnnotations.js +56 -0
  48. package/dist/src/sessions/logSessionAnnotations.js.map +1 -0
  49. package/dist/src/sessions/types.d.ts +19 -0
  50. package/dist/src/sessions/types.d.ts.map +1 -0
  51. package/dist/src/sessions/types.js +41 -0
  52. package/dist/src/sessions/types.js.map +1 -0
  53. package/dist/src/spans/types.d.ts +3 -50
  54. package/dist/src/spans/types.d.ts.map +1 -1
  55. package/dist/src/spans/types.js.map +1 -1
  56. package/dist/src/types/annotations.d.ts +37 -0
  57. package/dist/src/types/annotations.d.ts.map +1 -1
  58. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  59. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  60. package/dist/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +6 -1
  62. package/src/__generated__/api/v1.ts +529 -4
  63. package/src/experiments/getExperimentRuns.ts +44 -15
  64. package/src/sessions/addSessionAnnotation.ts +65 -0
  65. package/src/sessions/index.ts +2 -0
  66. package/src/sessions/logSessionAnnotations.ts +77 -0
  67. package/src/sessions/types.ts +67 -0
  68. package/src/spans/types.ts +3 -50
  69. package/src/types/annotations.ts +39 -0
@@ -76,6 +76,40 @@ export interface paths {
76
76
  patch?: never;
77
77
  trace?: never;
78
78
  };
79
+ "/v1/projects/{project_identifier}/trace_annotations": {
80
+ parameters: {
81
+ query?: never;
82
+ header?: never;
83
+ path?: never;
84
+ cookie?: never;
85
+ };
86
+ /** Get trace annotations for a list of trace_ids. */
87
+ get: operations["listTraceAnnotationsByTraceIds"];
88
+ put?: never;
89
+ post?: never;
90
+ delete?: never;
91
+ options?: never;
92
+ head?: never;
93
+ patch?: never;
94
+ trace?: never;
95
+ };
96
+ "/v1/projects/{project_identifier}/session_annotations": {
97
+ parameters: {
98
+ query?: never;
99
+ header?: never;
100
+ path?: never;
101
+ cookie?: never;
102
+ };
103
+ /** Get session annotations for a list of session_ids. */
104
+ get: operations["listSessionAnnotationsBySessionIds"];
105
+ put?: never;
106
+ post?: never;
107
+ delete?: never;
108
+ options?: never;
109
+ head?: never;
110
+ patch?: never;
111
+ trace?: never;
112
+ };
79
113
  "/v1/datasets": {
80
114
  parameters: {
81
115
  query?: never;
@@ -320,6 +354,23 @@ export interface paths {
320
354
  patch?: never;
321
355
  trace?: never;
322
356
  };
357
+ "/v1/trace_annotations": {
358
+ parameters: {
359
+ query?: never;
360
+ header?: never;
361
+ path?: never;
362
+ cookie?: never;
363
+ };
364
+ get?: never;
365
+ put?: never;
366
+ /** Create trace annotations */
367
+ post: operations["annotateTraces"];
368
+ delete?: never;
369
+ options?: never;
370
+ head?: never;
371
+ patch?: never;
372
+ trace?: never;
373
+ };
323
374
  "/v1/traces/{trace_identifier}": {
324
375
  parameters: {
325
376
  query?: never;
@@ -635,6 +686,23 @@ export interface paths {
635
686
  patch?: never;
636
687
  trace?: never;
637
688
  };
689
+ "/v1/session_annotations": {
690
+ parameters: {
691
+ query?: never;
692
+ header?: never;
693
+ path?: never;
694
+ cookie?: never;
695
+ };
696
+ get?: never;
697
+ put?: never;
698
+ /** Create session annotations */
699
+ post: operations["annotateSessions"];
700
+ delete?: never;
701
+ options?: never;
702
+ head?: never;
703
+ patch?: never;
704
+ trace?: never;
705
+ };
638
706
  "/v1/document_annotations": {
639
707
  parameters: {
640
708
  query?: never;
@@ -700,6 +768,16 @@ export interface paths {
700
768
  export type webhooks = Record<string, never>;
701
769
  export interface components {
702
770
  schemas: {
771
+ /** AnnotateSessionsRequestBody */
772
+ AnnotateSessionsRequestBody: {
773
+ /** Data */
774
+ data: components["schemas"]["SessionAnnotationData"][];
775
+ };
776
+ /** AnnotateSessionsResponseBody */
777
+ AnnotateSessionsResponseBody: {
778
+ /** Data */
779
+ data: components["schemas"]["InsertedSessionAnnotation"][];
780
+ };
703
781
  /** AnnotateSpanDocumentsRequestBody */
704
782
  AnnotateSpanDocumentsRequestBody: {
705
783
  /** Data */
@@ -720,6 +798,19 @@ export interface components {
720
798
  /** Data */
721
799
  data: components["schemas"]["InsertedSpanAnnotation"][];
722
800
  };
801
+ /** AnnotateTracesRequestBody */
802
+ AnnotateTracesRequestBody: {
803
+ /**
804
+ * Data
805
+ * @description The trace annotations to be upserted
806
+ */
807
+ data: components["schemas"]["TraceAnnotationData"][];
808
+ };
809
+ /** AnnotateTracesResponseBody */
810
+ AnnotateTracesResponseBody: {
811
+ /** Data */
812
+ data: components["schemas"]["InsertedTraceAnnotation"][];
813
+ };
723
814
  /** AnnotationResult */
724
815
  AnnotationResult: {
725
816
  /**
@@ -1267,6 +1358,14 @@ export interface components {
1267
1358
  };
1268
1359
  /** Identifier */
1269
1360
  Identifier: string;
1361
+ /** InsertedSessionAnnotation */
1362
+ InsertedSessionAnnotation: {
1363
+ /**
1364
+ * Id
1365
+ * @description The ID of the inserted session annotation
1366
+ */
1367
+ id: string;
1368
+ };
1270
1369
  /** InsertedSpanAnnotation */
1271
1370
  InsertedSpanAnnotation: {
1272
1371
  /**
@@ -1283,6 +1382,14 @@ export interface components {
1283
1382
  */
1284
1383
  id: string;
1285
1384
  };
1385
+ /** InsertedTraceAnnotation */
1386
+ InsertedTraceAnnotation: {
1387
+ /**
1388
+ * Id
1389
+ * @description The ID of the inserted trace annotation
1390
+ */
1391
+ id: string;
1392
+ };
1286
1393
  /** ListDatasetExamplesData */
1287
1394
  ListDatasetExamplesData: {
1288
1395
  /** Dataset Id */
@@ -1344,7 +1451,7 @@ export interface components {
1344
1451
  * Role
1345
1452
  * @enum {string}
1346
1453
  */
1347
- role: "SYSTEM" | "ADMIN" | "MEMBER";
1454
+ role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
1348
1455
  /**
1349
1456
  * @description discriminator enum property added by openapi-typescript
1350
1457
  * @enum {string}
@@ -1365,7 +1472,7 @@ export interface components {
1365
1472
  * Role
1366
1473
  * @enum {string}
1367
1474
  */
1368
- role: "SYSTEM" | "ADMIN" | "MEMBER";
1475
+ role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
1369
1476
  /**
1370
1477
  * @description discriminator enum property added by openapi-typescript
1371
1478
  * @enum {string}
@@ -1401,7 +1508,7 @@ export interface components {
1401
1508
  * Role
1402
1509
  * @enum {string}
1403
1510
  */
1404
- role: "SYSTEM" | "ADMIN" | "MEMBER";
1511
+ role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
1405
1512
  /**
1406
1513
  * @description discriminator enum property added by openapi-typescript
1407
1514
  * @enum {string}
@@ -1424,7 +1531,7 @@ export interface components {
1424
1531
  * Role
1425
1532
  * @enum {string}
1426
1533
  */
1427
- role: "SYSTEM" | "ADMIN" | "MEMBER";
1534
+ role: "SYSTEM" | "ADMIN" | "MEMBER" | "VIEWER";
1428
1535
  /**
1429
1536
  * @description discriminator enum property added by openapi-typescript
1430
1537
  * @enum {string}
@@ -2091,6 +2198,100 @@ export interface components {
2091
2198
  */
2092
2199
  reasoning_effort?: "minimal" | "low" | "medium" | "high";
2093
2200
  };
2201
+ /** SessionAnnotation */
2202
+ SessionAnnotation: {
2203
+ /** Id */
2204
+ id: string;
2205
+ /**
2206
+ * Created At
2207
+ * Format: date-time
2208
+ */
2209
+ created_at: string;
2210
+ /**
2211
+ * Updated At
2212
+ * Format: date-time
2213
+ */
2214
+ updated_at: string;
2215
+ /**
2216
+ * Source
2217
+ * @enum {string}
2218
+ */
2219
+ source: "API" | "APP";
2220
+ /** User Id */
2221
+ user_id: string | null;
2222
+ /**
2223
+ * Name
2224
+ * @description The name of the annotation
2225
+ */
2226
+ name: string;
2227
+ /**
2228
+ * Annotator Kind
2229
+ * @description The kind of annotator used for the annotation
2230
+ * @enum {string}
2231
+ */
2232
+ annotator_kind: "LLM" | "CODE" | "HUMAN";
2233
+ /** @description The result of the annotation */
2234
+ result?: components["schemas"]["AnnotationResult"] | null;
2235
+ /**
2236
+ * Metadata
2237
+ * @description Metadata for the annotation
2238
+ */
2239
+ metadata?: {
2240
+ [key: string]: unknown;
2241
+ } | null;
2242
+ /**
2243
+ * Identifier
2244
+ * @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
2245
+ * @default
2246
+ */
2247
+ identifier?: string;
2248
+ /**
2249
+ * Session Id
2250
+ * @description Session ID
2251
+ */
2252
+ session_id: string;
2253
+ };
2254
+ /** SessionAnnotationData */
2255
+ SessionAnnotationData: {
2256
+ /**
2257
+ * Name
2258
+ * @description The name of the annotation
2259
+ */
2260
+ name: string;
2261
+ /**
2262
+ * Annotator Kind
2263
+ * @description The kind of annotator used for the annotation
2264
+ * @enum {string}
2265
+ */
2266
+ annotator_kind: "LLM" | "CODE" | "HUMAN";
2267
+ /** @description The result of the annotation */
2268
+ result?: components["schemas"]["AnnotationResult"] | null;
2269
+ /**
2270
+ * Metadata
2271
+ * @description Metadata for the annotation
2272
+ */
2273
+ metadata?: {
2274
+ [key: string]: unknown;
2275
+ } | null;
2276
+ /**
2277
+ * Identifier
2278
+ * @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
2279
+ * @default
2280
+ */
2281
+ identifier?: string;
2282
+ /**
2283
+ * Session Id
2284
+ * @description Session ID
2285
+ */
2286
+ session_id: string;
2287
+ };
2288
+ /** SessionAnnotationsResponseBody */
2289
+ SessionAnnotationsResponseBody: {
2290
+ /** Data */
2291
+ data: components["schemas"]["SessionAnnotation"][];
2292
+ /** Next Cursor */
2293
+ next_cursor: string | null;
2294
+ };
2094
2295
  /** Span */
2095
2296
  Span: {
2096
2297
  /**
@@ -2374,6 +2575,100 @@ export interface components {
2374
2575
  [key: string]: unknown;
2375
2576
  } | unknown[] | null;
2376
2577
  };
2578
+ /** TraceAnnotation */
2579
+ TraceAnnotation: {
2580
+ /** Id */
2581
+ id: string;
2582
+ /**
2583
+ * Created At
2584
+ * Format: date-time
2585
+ */
2586
+ created_at: string;
2587
+ /**
2588
+ * Updated At
2589
+ * Format: date-time
2590
+ */
2591
+ updated_at: string;
2592
+ /**
2593
+ * Source
2594
+ * @enum {string}
2595
+ */
2596
+ source: "API" | "APP";
2597
+ /** User Id */
2598
+ user_id: string | null;
2599
+ /**
2600
+ * Name
2601
+ * @description The name of the annotation
2602
+ */
2603
+ name: string;
2604
+ /**
2605
+ * Annotator Kind
2606
+ * @description The kind of annotator used for the annotation
2607
+ * @enum {string}
2608
+ */
2609
+ annotator_kind: "LLM" | "CODE" | "HUMAN";
2610
+ /** @description The result of the annotation */
2611
+ result?: components["schemas"]["AnnotationResult"] | null;
2612
+ /**
2613
+ * Metadata
2614
+ * @description Metadata for the annotation
2615
+ */
2616
+ metadata?: {
2617
+ [key: string]: unknown;
2618
+ } | null;
2619
+ /**
2620
+ * Identifier
2621
+ * @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
2622
+ * @default
2623
+ */
2624
+ identifier?: string;
2625
+ /**
2626
+ * Trace Id
2627
+ * @description OpenTelemetry Trace ID (hex format w/o 0x prefix)
2628
+ */
2629
+ trace_id: string;
2630
+ };
2631
+ /** TraceAnnotationData */
2632
+ TraceAnnotationData: {
2633
+ /**
2634
+ * Name
2635
+ * @description The name of the annotation
2636
+ */
2637
+ name: string;
2638
+ /**
2639
+ * Annotator Kind
2640
+ * @description The kind of annotator used for the annotation
2641
+ * @enum {string}
2642
+ */
2643
+ annotator_kind: "LLM" | "CODE" | "HUMAN";
2644
+ /** @description The result of the annotation */
2645
+ result?: components["schemas"]["AnnotationResult"] | null;
2646
+ /**
2647
+ * Metadata
2648
+ * @description Metadata for the annotation
2649
+ */
2650
+ metadata?: {
2651
+ [key: string]: unknown;
2652
+ } | null;
2653
+ /**
2654
+ * Identifier
2655
+ * @description The identifier of the annotation. If provided, the annotation will be updated if it already exists.
2656
+ * @default
2657
+ */
2658
+ identifier?: string;
2659
+ /**
2660
+ * Trace Id
2661
+ * @description OpenTelemetry Trace ID (hex format w/o 0x prefix)
2662
+ */
2663
+ trace_id: string;
2664
+ };
2665
+ /** TraceAnnotationsResponseBody */
2666
+ TraceAnnotationsResponseBody: {
2667
+ /** Data */
2668
+ data: components["schemas"]["TraceAnnotation"][];
2669
+ /** Next Cursor */
2670
+ next_cursor: string | null;
2671
+ };
2377
2672
  /** UpdateAnnotationConfigResponseBody */
2378
2673
  UpdateAnnotationConfigResponseBody: {
2379
2674
  /** Data */
@@ -2752,6 +3047,128 @@ export interface operations {
2752
3047
  };
2753
3048
  };
2754
3049
  };
3050
+ listTraceAnnotationsByTraceIds: {
3051
+ parameters: {
3052
+ query: {
3053
+ /** @description One or more trace id to fetch annotations for */
3054
+ trace_ids: string[];
3055
+ /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
3056
+ include_annotation_names?: string[] | null;
3057
+ /** @description Optional list of annotation names to exclude from results. */
3058
+ exclude_annotation_names?: string[] | null;
3059
+ /** @description A cursor for pagination */
3060
+ cursor?: string | null;
3061
+ /** @description The maximum number of annotations to return in a single request */
3062
+ limit?: number;
3063
+ };
3064
+ header?: never;
3065
+ path: {
3066
+ /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
3067
+ project_identifier: string;
3068
+ };
3069
+ cookie?: never;
3070
+ };
3071
+ requestBody?: never;
3072
+ responses: {
3073
+ /** @description Successful Response */
3074
+ 200: {
3075
+ headers: {
3076
+ [name: string]: unknown;
3077
+ };
3078
+ content: {
3079
+ "application/json": components["schemas"]["TraceAnnotationsResponseBody"];
3080
+ };
3081
+ };
3082
+ /** @description Forbidden */
3083
+ 403: {
3084
+ headers: {
3085
+ [name: string]: unknown;
3086
+ };
3087
+ content: {
3088
+ "text/plain": string;
3089
+ };
3090
+ };
3091
+ /** @description Project or traces not found */
3092
+ 404: {
3093
+ headers: {
3094
+ [name: string]: unknown;
3095
+ };
3096
+ content: {
3097
+ "text/plain": string;
3098
+ };
3099
+ };
3100
+ /** @description Invalid parameters */
3101
+ 422: {
3102
+ headers: {
3103
+ [name: string]: unknown;
3104
+ };
3105
+ content: {
3106
+ "text/plain": string;
3107
+ };
3108
+ };
3109
+ };
3110
+ };
3111
+ listSessionAnnotationsBySessionIds: {
3112
+ parameters: {
3113
+ query: {
3114
+ /** @description One or more session id to fetch annotations for */
3115
+ session_ids: string[];
3116
+ /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
3117
+ include_annotation_names?: string[] | null;
3118
+ /** @description Optional list of annotation names to exclude from results. */
3119
+ exclude_annotation_names?: string[] | null;
3120
+ /** @description A cursor for pagination */
3121
+ cursor?: string | null;
3122
+ /** @description The maximum number of annotations to return in a single request */
3123
+ limit?: number;
3124
+ };
3125
+ header?: never;
3126
+ path: {
3127
+ /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
3128
+ project_identifier: string;
3129
+ };
3130
+ cookie?: never;
3131
+ };
3132
+ requestBody?: never;
3133
+ responses: {
3134
+ /** @description Successful Response */
3135
+ 200: {
3136
+ headers: {
3137
+ [name: string]: unknown;
3138
+ };
3139
+ content: {
3140
+ "application/json": components["schemas"]["SessionAnnotationsResponseBody"];
3141
+ };
3142
+ };
3143
+ /** @description Forbidden */
3144
+ 403: {
3145
+ headers: {
3146
+ [name: string]: unknown;
3147
+ };
3148
+ content: {
3149
+ "text/plain": string;
3150
+ };
3151
+ };
3152
+ /** @description Project or sessions not found */
3153
+ 404: {
3154
+ headers: {
3155
+ [name: string]: unknown;
3156
+ };
3157
+ content: {
3158
+ "text/plain": string;
3159
+ };
3160
+ };
3161
+ /** @description Invalid parameters */
3162
+ 422: {
3163
+ headers: {
3164
+ [name: string]: unknown;
3165
+ };
3166
+ content: {
3167
+ "text/plain": string;
3168
+ };
3169
+ };
3170
+ };
3171
+ };
2755
3172
  listDatasets: {
2756
3173
  parameters: {
2757
3174
  query?: {
@@ -3598,6 +4015,60 @@ export interface operations {
3598
4015
  };
3599
4016
  };
3600
4017
  };
4018
+ annotateTraces: {
4019
+ parameters: {
4020
+ query?: {
4021
+ /** @description If true, fulfill request synchronously. */
4022
+ sync?: boolean;
4023
+ };
4024
+ header?: never;
4025
+ path?: never;
4026
+ cookie?: never;
4027
+ };
4028
+ requestBody: {
4029
+ content: {
4030
+ "application/json": components["schemas"]["AnnotateTracesRequestBody"];
4031
+ };
4032
+ };
4033
+ responses: {
4034
+ /** @description Successful Response */
4035
+ 200: {
4036
+ headers: {
4037
+ [name: string]: unknown;
4038
+ };
4039
+ content: {
4040
+ "application/json": components["schemas"]["AnnotateTracesResponseBody"];
4041
+ };
4042
+ };
4043
+ /** @description Forbidden */
4044
+ 403: {
4045
+ headers: {
4046
+ [name: string]: unknown;
4047
+ };
4048
+ content: {
4049
+ "text/plain": string;
4050
+ };
4051
+ };
4052
+ /** @description Trace not found */
4053
+ 404: {
4054
+ headers: {
4055
+ [name: string]: unknown;
4056
+ };
4057
+ content: {
4058
+ "text/plain": string;
4059
+ };
4060
+ };
4061
+ /** @description Validation Error */
4062
+ 422: {
4063
+ headers: {
4064
+ [name: string]: unknown;
4065
+ };
4066
+ content: {
4067
+ "application/json": components["schemas"]["HTTPValidationError"];
4068
+ };
4069
+ };
4070
+ };
4071
+ };
3601
4072
  deleteTrace: {
3602
4073
  parameters: {
3603
4074
  query?: never;
@@ -4670,6 +5141,60 @@ export interface operations {
4670
5141
  };
4671
5142
  };
4672
5143
  };
5144
+ annotateSessions: {
5145
+ parameters: {
5146
+ query?: {
5147
+ /** @description If true, fulfill request synchronously. */
5148
+ sync?: boolean;
5149
+ };
5150
+ header?: never;
5151
+ path?: never;
5152
+ cookie?: never;
5153
+ };
5154
+ requestBody: {
5155
+ content: {
5156
+ "application/json": components["schemas"]["AnnotateSessionsRequestBody"];
5157
+ };
5158
+ };
5159
+ responses: {
5160
+ /** @description Session annotations inserted successfully */
5161
+ 200: {
5162
+ headers: {
5163
+ [name: string]: unknown;
5164
+ };
5165
+ content: {
5166
+ "application/json": components["schemas"]["AnnotateSessionsResponseBody"];
5167
+ };
5168
+ };
5169
+ /** @description Forbidden */
5170
+ 403: {
5171
+ headers: {
5172
+ [name: string]: unknown;
5173
+ };
5174
+ content: {
5175
+ "text/plain": string;
5176
+ };
5177
+ };
5178
+ /** @description Session not found */
5179
+ 404: {
5180
+ headers: {
5181
+ [name: string]: unknown;
5182
+ };
5183
+ content: {
5184
+ "text/plain": string;
5185
+ };
5186
+ };
5187
+ /** @description Validation Error */
5188
+ 422: {
5189
+ headers: {
5190
+ [name: string]: unknown;
5191
+ };
5192
+ content: {
5193
+ "application/json": components["schemas"]["HTTPValidationError"];
5194
+ };
5195
+ };
5196
+ };
5197
+ };
4673
5198
  annotateSpanDocuments: {
4674
5199
  parameters: {
4675
5200
  query?: {