@arizeai/phoenix-client 2.4.0 → 3.0.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.
@@ -317,6 +317,30 @@ export interface paths {
317
317
  patch?: never;
318
318
  trace?: never;
319
319
  };
320
+ "/v1/traces/{trace_identifier}": {
321
+ parameters: {
322
+ query?: never;
323
+ header?: never;
324
+ path?: never;
325
+ cookie?: never;
326
+ };
327
+ get?: never;
328
+ put?: never;
329
+ post?: never;
330
+ /**
331
+ * Delete a trace by identifier
332
+ * @description Delete an entire trace by its identifier. The identifier can be either:
333
+ * 1. A Relay node ID (base64-encoded)
334
+ * 2. An OpenTelemetry trace_id (hex string)
335
+ *
336
+ * This will permanently remove all spans in the trace and their associated data.
337
+ */
338
+ delete: operations["deleteTrace"];
339
+ options?: never;
340
+ head?: never;
341
+ patch?: never;
342
+ trace?: never;
343
+ };
320
344
  "/v1/projects/{project_identifier}/spans/otlpv1": {
321
345
  parameters: {
322
346
  query?: never;
@@ -378,6 +402,38 @@ export interface paths {
378
402
  patch?: never;
379
403
  trace?: never;
380
404
  };
405
+ "/v1/spans/{span_identifier}": {
406
+ parameters: {
407
+ query?: never;
408
+ header?: never;
409
+ path?: never;
410
+ cookie?: never;
411
+ };
412
+ get?: never;
413
+ put?: never;
414
+ post?: never;
415
+ /**
416
+ * Delete a span by span_identifier
417
+ * @description Delete a single span by identifier.
418
+ *
419
+ * **Important**: This operation deletes ONLY the specified span itself and does NOT
420
+ * delete its descendants/children. All child spans will remain in the trace and
421
+ * become orphaned (their parent_id will point to a non-existent span).
422
+ *
423
+ * Behavior:
424
+ * - Deletes only the target span (preserves all descendant spans)
425
+ * - If this was the last span in the trace, the trace record is also deleted
426
+ * - If the deleted span had a parent, its cumulative metrics (error count, token counts)
427
+ * are subtracted from all ancestor spans in the chain
428
+ *
429
+ * **Note**: This operation is irreversible and may create orphaned spans.
430
+ */
431
+ delete: operations["deleteSpan"];
432
+ options?: never;
433
+ head?: never;
434
+ patch?: never;
435
+ trace?: never;
436
+ };
381
437
  "/v1/evaluations": {
382
438
  parameters: {
383
439
  query?: never;
@@ -881,6 +937,8 @@ export interface components {
881
937
  * Format: date-time
882
938
  */
883
939
  updated_at: string;
940
+ /** Example Count */
941
+ example_count: number;
884
942
  };
885
943
  /** DatasetExample */
886
944
  DatasetExample: {
@@ -1633,7 +1691,7 @@ export interface components {
1633
1691
  * Reasoning Effort
1634
1692
  * @enum {string}
1635
1693
  */
1636
- reasoning_effort?: "low" | "medium" | "high";
1694
+ reasoning_effort?: "minimal" | "low" | "medium" | "high";
1637
1695
  };
1638
1696
  /** PromptChatTemplate */
1639
1697
  PromptChatTemplate: {
@@ -1682,7 +1740,7 @@ export interface components {
1682
1740
  * Reasoning Effort
1683
1741
  * @enum {string}
1684
1742
  */
1685
- reasoning_effort?: "low" | "medium" | "high";
1743
+ reasoning_effort?: "minimal" | "low" | "medium" | "high";
1686
1744
  };
1687
1745
  /** PromptGoogleInvocationParameters */
1688
1746
  PromptGoogleInvocationParameters: {
@@ -1749,7 +1807,7 @@ export interface components {
1749
1807
  * Reasoning Effort
1750
1808
  * @enum {string}
1751
1809
  */
1752
- reasoning_effort?: "low" | "medium" | "high";
1810
+ reasoning_effort?: "minimal" | "low" | "medium" | "high";
1753
1811
  };
1754
1812
  /** PromptOpenAIInvocationParameters */
1755
1813
  PromptOpenAIInvocationParameters: {
@@ -1780,7 +1838,7 @@ export interface components {
1780
1838
  * Reasoning Effort
1781
1839
  * @enum {string}
1782
1840
  */
1783
- reasoning_effort?: "low" | "medium" | "high";
1841
+ reasoning_effort?: "minimal" | "low" | "medium" | "high";
1784
1842
  };
1785
1843
  /** PromptResponseFormatJSONSchema */
1786
1844
  PromptResponseFormatJSONSchema: {
@@ -1973,7 +2031,7 @@ export interface components {
1973
2031
  * Reasoning Effort
1974
2032
  * @enum {string}
1975
2033
  */
1976
- reasoning_effort?: "low" | "medium" | "high";
2034
+ reasoning_effort?: "minimal" | "low" | "medium" | "high";
1977
2035
  };
1978
2036
  /** Span */
1979
2037
  Span: {
@@ -3456,6 +3514,54 @@ export interface operations {
3456
3514
  };
3457
3515
  };
3458
3516
  };
3517
+ deleteTrace: {
3518
+ parameters: {
3519
+ query?: never;
3520
+ header?: never;
3521
+ path: {
3522
+ /** @description The trace identifier: either a relay GlobalID or OpenTelemetry trace_id */
3523
+ trace_identifier: string;
3524
+ };
3525
+ cookie?: never;
3526
+ };
3527
+ requestBody?: never;
3528
+ responses: {
3529
+ /** @description Successful Response */
3530
+ 204: {
3531
+ headers: {
3532
+ [name: string]: unknown;
3533
+ };
3534
+ content?: never;
3535
+ };
3536
+ /** @description Forbidden */
3537
+ 403: {
3538
+ headers: {
3539
+ [name: string]: unknown;
3540
+ };
3541
+ content: {
3542
+ "text/plain": string;
3543
+ };
3544
+ };
3545
+ /** @description Not Found */
3546
+ 404: {
3547
+ headers: {
3548
+ [name: string]: unknown;
3549
+ };
3550
+ content: {
3551
+ "text/plain": string;
3552
+ };
3553
+ };
3554
+ /** @description Validation Error */
3555
+ 422: {
3556
+ headers: {
3557
+ [name: string]: unknown;
3558
+ };
3559
+ content: {
3560
+ "application/json": components["schemas"]["HTTPValidationError"];
3561
+ };
3562
+ };
3563
+ };
3564
+ };
3459
3565
  spanSearch: {
3460
3566
  parameters: {
3461
3567
  query?: {
@@ -3691,6 +3797,54 @@ export interface operations {
3691
3797
  };
3692
3798
  };
3693
3799
  };
3800
+ deleteSpan: {
3801
+ parameters: {
3802
+ query?: never;
3803
+ header?: never;
3804
+ path: {
3805
+ /** @description The span identifier: either a relay GlobalID or OpenTelemetry span_id */
3806
+ span_identifier: string;
3807
+ };
3808
+ cookie?: never;
3809
+ };
3810
+ requestBody?: never;
3811
+ responses: {
3812
+ /** @description Successful Response */
3813
+ 204: {
3814
+ headers: {
3815
+ [name: string]: unknown;
3816
+ };
3817
+ content?: never;
3818
+ };
3819
+ /** @description Forbidden */
3820
+ 403: {
3821
+ headers: {
3822
+ [name: string]: unknown;
3823
+ };
3824
+ content: {
3825
+ "text/plain": string;
3826
+ };
3827
+ };
3828
+ /** @description Not Found */
3829
+ 404: {
3830
+ headers: {
3831
+ [name: string]: unknown;
3832
+ };
3833
+ content: {
3834
+ "text/plain": string;
3835
+ };
3836
+ };
3837
+ /** @description Validation Error */
3838
+ 422: {
3839
+ headers: {
3840
+ [name: string]: unknown;
3841
+ };
3842
+ content: {
3843
+ "application/json": components["schemas"]["HTTPValidationError"];
3844
+ };
3845
+ };
3846
+ };
3847
+ };
3694
3848
  getEvaluations: {
3695
3849
  parameters: {
3696
3850
  query?: {