@arizeai/phoenix-client 7.3.0 → 7.3.1

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.
@@ -422,6 +422,41 @@ export interface paths {
422
422
  patch?: never;
423
423
  trace?: never;
424
424
  };
425
+ "/v1/datasets/{dataset_identifier}/splits": {
426
+ parameters: {
427
+ query?: never;
428
+ header?: never;
429
+ path?: never;
430
+ cookie?: never;
431
+ };
432
+ get?: never;
433
+ put?: never;
434
+ /** Create a dataset split */
435
+ post: operations["createDatasetSplit"];
436
+ delete?: never;
437
+ options?: never;
438
+ head?: never;
439
+ patch?: never;
440
+ trace?: never;
441
+ };
442
+ "/v1/datasets/{dataset_identifier}/splits/{split_id}": {
443
+ parameters: {
444
+ query?: never;
445
+ header?: never;
446
+ path?: never;
447
+ cookie?: never;
448
+ };
449
+ get?: never;
450
+ put?: never;
451
+ post?: never;
452
+ /** Delete a dataset split */
453
+ delete: operations["deleteDatasetSplit"];
454
+ options?: never;
455
+ head?: never;
456
+ /** Update a dataset split */
457
+ patch: operations["updateDatasetSplit"];
458
+ trace?: never;
459
+ };
425
460
  "/v1/datasets/{id}/csv": {
426
461
  parameters: {
427
462
  query?: never;
@@ -599,6 +634,50 @@ export interface paths {
599
634
  patch?: never;
600
635
  trace?: never;
601
636
  };
637
+ "/v1/experiments/{experiment_id}/tags": {
638
+ parameters: {
639
+ query?: never;
640
+ header?: never;
641
+ path?: never;
642
+ cookie?: never;
643
+ };
644
+ /**
645
+ * List the tags applied to an experiment
646
+ * @description List the tags currently pointing at this experiment. Tags are scoped to the experiment's dataset, so a tag appears here only while this experiment owns it.
647
+ */
648
+ get: operations["listExperimentTags"];
649
+ put?: never;
650
+ /**
651
+ * Assign a tag to an experiment
652
+ * @description Assign a tag to an experiment. Tags are scoped to the experiment's dataset and each tag name points at a single experiment, so assigning a tag that another experiment on the same dataset owns atomically moves the tag to this experiment. Re-assigning a tag the experiment already owns is idempotent and replaces the description. Assigning the reserved 'baseline' tag makes this experiment the dataset's baseline; ephemeral experiments cannot become the baseline.
653
+ */
654
+ post: operations["setExperimentTag"];
655
+ delete?: never;
656
+ options?: never;
657
+ head?: never;
658
+ patch?: never;
659
+ trace?: never;
660
+ };
661
+ "/v1/experiments/{experiment_id}/tags/{tag_identifier}": {
662
+ parameters: {
663
+ query?: never;
664
+ header?: never;
665
+ path?: never;
666
+ cookie?: never;
667
+ };
668
+ get?: never;
669
+ put?: never;
670
+ post?: never;
671
+ /**
672
+ * Remove a tag from an experiment
673
+ * @description Remove a tag, identified by its node ID or name, from the experiment that owns it. This operation is idempotent and never steals a tag from another experiment: if the experiment does not currently own the tag, the request is a no-op.
674
+ */
675
+ delete: operations["deleteExperimentTag"];
676
+ options?: never;
677
+ head?: never;
678
+ patch?: never;
679
+ trace?: never;
680
+ };
602
681
  "/v1/experiments/{experiment_id}/runs": {
603
682
  parameters: {
604
683
  query?: never;
@@ -2303,6 +2382,40 @@ export interface components {
2303
2382
  CreateDatasetLabelResponseBody: {
2304
2383
  data: components["schemas"]["DatasetLabel"];
2305
2384
  };
2385
+ /** CreateDatasetSplitRequestBody */
2386
+ CreateDatasetSplitRequestBody: {
2387
+ /**
2388
+ * Name
2389
+ * @description A unique name for the split.
2390
+ */
2391
+ name: string;
2392
+ /**
2393
+ * Description
2394
+ * @description An optional description of the split.
2395
+ */
2396
+ description?: string | null;
2397
+ /**
2398
+ * Color
2399
+ * @description An optional hex color for the split (e.g. #33c5e8). Omit for a default.
2400
+ */
2401
+ color?: string | null;
2402
+ /**
2403
+ * Metadata
2404
+ * @description Arbitrary JSON metadata for the split.
2405
+ */
2406
+ metadata?: {
2407
+ [key: string]: unknown;
2408
+ };
2409
+ /**
2410
+ * Example Ids
2411
+ * @description Optional dataset example IDs (GlobalIDs) to seed the split with. Each example must belong to this dataset. Omit to create an empty split.
2412
+ */
2413
+ example_ids?: string[];
2414
+ };
2415
+ /** CreateDatasetSplitResponseBody */
2416
+ CreateDatasetSplitResponseBody: {
2417
+ data: components["schemas"]["DatasetSplit"];
2418
+ };
2306
2419
  /**
2307
2420
  * CreateExperimentRequestBody
2308
2421
  * @description Details of the experiment to be created
@@ -2611,6 +2724,33 @@ export interface components {
2611
2724
  /** Color */
2612
2725
  color: string;
2613
2726
  };
2727
+ /** DatasetSplit */
2728
+ DatasetSplit: {
2729
+ /** Id */
2730
+ id: string;
2731
+ /** Name */
2732
+ name: string;
2733
+ /** Description */
2734
+ description: string | null;
2735
+ /** Color */
2736
+ color: string;
2737
+ /** Metadata */
2738
+ metadata: {
2739
+ [key: string]: unknown;
2740
+ };
2741
+ /** Example Count */
2742
+ example_count: number;
2743
+ /**
2744
+ * Created At
2745
+ * Format: date-time
2746
+ */
2747
+ created_at: string;
2748
+ /**
2749
+ * Updated At
2750
+ * Format: date-time
2751
+ */
2752
+ updated_at: string;
2753
+ };
2614
2754
  /** DatasetVersion */
2615
2755
  DatasetVersion: {
2616
2756
  /** Version Id */
@@ -3068,6 +3208,24 @@ export interface components {
3068
3208
  */
3069
3209
  experiment_id: string;
3070
3210
  };
3211
+ /** ExperimentTag */
3212
+ ExperimentTag: {
3213
+ /**
3214
+ * Id
3215
+ * @description The node ID of the tag
3216
+ */
3217
+ id: string;
3218
+ /**
3219
+ * Name
3220
+ * @description The name of the tag
3221
+ */
3222
+ name: string;
3223
+ /**
3224
+ * Description
3225
+ * @description The description of the tag
3226
+ */
3227
+ description: string | null;
3228
+ };
3071
3229
  /**
3072
3230
  * FileUIPart
3073
3231
  * @description A file part of a message.
@@ -3429,6 +3587,11 @@ export interface components {
3429
3587
  /** Next Cursor */
3430
3588
  next_cursor: string | null;
3431
3589
  };
3590
+ /** ListExperimentTagsResponseBody */
3591
+ ListExperimentTagsResponseBody: {
3592
+ /** Data */
3593
+ data: components["schemas"]["ExperimentTag"][];
3594
+ };
3432
3595
  /** ListExperimentsResponseBody */
3433
3596
  ListExperimentsResponseBody: {
3434
3597
  /** Data */
@@ -4988,6 +5151,20 @@ export interface components {
4988
5151
  */
4989
5152
  dataset_label_ids?: string[];
4990
5153
  };
5154
+ /** SetExperimentTagRequestBody */
5155
+ SetExperimentTagRequestBody: {
5156
+ /** @description The name of the tag to assign, e.g. 'baseline'. If another experiment on the same dataset already owns this tag, the tag is moved to this experiment. */
5157
+ name: components["schemas"]["Identifier"];
5158
+ /**
5159
+ * Description
5160
+ * @description An optional description of the tag (replaces any existing description)
5161
+ */
5162
+ description?: string | null;
5163
+ };
5164
+ /** SetExperimentTagResponseBody */
5165
+ SetExperimentTagResponseBody: {
5166
+ data: components["schemas"]["ExperimentTag"];
5167
+ };
4991
5168
  /** SetProjectAnnotationConfigsRequestBody */
4992
5169
  SetProjectAnnotationConfigsRequestBody: {
4993
5170
  /**
@@ -5923,6 +6100,45 @@ export interface components {
5923
6100
  UpdateDatasetLabelResponseBody: {
5924
6101
  data: components["schemas"]["DatasetLabel"];
5925
6102
  };
6103
+ /** UpdateDatasetSplitRequestBody */
6104
+ UpdateDatasetSplitRequestBody: {
6105
+ /**
6106
+ * Name
6107
+ * @description A new unique name for the split.
6108
+ */
6109
+ name?: string | null;
6110
+ /**
6111
+ * Description
6112
+ * @description A new description, or null to clear it.
6113
+ */
6114
+ description?: string | null;
6115
+ /**
6116
+ * Color
6117
+ * @description A new hex color for the split.
6118
+ */
6119
+ color?: string | null;
6120
+ /**
6121
+ * Metadata
6122
+ * @description New JSON metadata that replaces the existing metadata.
6123
+ */
6124
+ metadata?: {
6125
+ [key: string]: unknown;
6126
+ } | null;
6127
+ /**
6128
+ * Add Example Ids
6129
+ * @description Dataset example IDs (GlobalIDs) to add to the split. Each example must belong to this dataset. Adding an example already in the split is a no-op.
6130
+ */
6131
+ add_example_ids?: string[];
6132
+ /**
6133
+ * Remove Example Ids
6134
+ * @description Dataset example IDs (GlobalIDs) to remove from the split.
6135
+ */
6136
+ remove_example_ids?: string[];
6137
+ };
6138
+ /** UpdateDatasetSplitResponseBody */
6139
+ UpdateDatasetSplitResponseBody: {
6140
+ data: components["schemas"]["DatasetSplit"];
6141
+ };
5926
6142
  /**
5927
6143
  * UpdateExperimentRequestBody
5928
6144
  * @description Fields to update on an experiment. Omit a field to leave it unchanged.
@@ -7792,6 +8008,184 @@ export interface operations {
7792
8008
  };
7793
8009
  };
7794
8010
  };
8011
+ createDatasetSplit: {
8012
+ parameters: {
8013
+ query?: never;
8014
+ header?: never;
8015
+ path: {
8016
+ /** @description The dataset identifier: either dataset ID or dataset name. */
8017
+ dataset_identifier: string;
8018
+ };
8019
+ cookie?: never;
8020
+ };
8021
+ requestBody: {
8022
+ content: {
8023
+ "application/json": components["schemas"]["CreateDatasetSplitRequestBody"];
8024
+ };
8025
+ };
8026
+ responses: {
8027
+ /** @description Successful Response */
8028
+ 201: {
8029
+ headers: {
8030
+ [name: string]: unknown;
8031
+ };
8032
+ content: {
8033
+ "application/json": components["schemas"]["CreateDatasetSplitResponseBody"];
8034
+ };
8035
+ };
8036
+ /** @description Forbidden */
8037
+ 403: {
8038
+ headers: {
8039
+ [name: string]: unknown;
8040
+ };
8041
+ content: {
8042
+ "text/plain": string;
8043
+ };
8044
+ };
8045
+ /** @description Dataset or example not found */
8046
+ 404: {
8047
+ headers: {
8048
+ [name: string]: unknown;
8049
+ };
8050
+ content: {
8051
+ "text/plain": string;
8052
+ };
8053
+ };
8054
+ /** @description A dataset split with the given name already exists */
8055
+ 409: {
8056
+ headers: {
8057
+ [name: string]: unknown;
8058
+ };
8059
+ content: {
8060
+ "text/plain": string;
8061
+ };
8062
+ };
8063
+ /** @description Invalid request */
8064
+ 422: {
8065
+ headers: {
8066
+ [name: string]: unknown;
8067
+ };
8068
+ content: {
8069
+ "text/plain": string;
8070
+ };
8071
+ };
8072
+ };
8073
+ };
8074
+ deleteDatasetSplit: {
8075
+ parameters: {
8076
+ query?: never;
8077
+ header?: never;
8078
+ path: {
8079
+ /** @description The dataset identifier: either dataset ID or dataset name. */
8080
+ dataset_identifier: string;
8081
+ /** @description The ID (GlobalID) of the dataset split. */
8082
+ split_id: string;
8083
+ };
8084
+ cookie?: never;
8085
+ };
8086
+ requestBody?: never;
8087
+ responses: {
8088
+ /** @description Successful Response */
8089
+ 204: {
8090
+ headers: {
8091
+ [name: string]: unknown;
8092
+ };
8093
+ content?: never;
8094
+ };
8095
+ /** @description Forbidden */
8096
+ 403: {
8097
+ headers: {
8098
+ [name: string]: unknown;
8099
+ };
8100
+ content: {
8101
+ "text/plain": string;
8102
+ };
8103
+ };
8104
+ /** @description Dataset or split not found */
8105
+ 404: {
8106
+ headers: {
8107
+ [name: string]: unknown;
8108
+ };
8109
+ content: {
8110
+ "text/plain": string;
8111
+ };
8112
+ };
8113
+ /** @description Invalid dataset split ID */
8114
+ 422: {
8115
+ headers: {
8116
+ [name: string]: unknown;
8117
+ };
8118
+ content: {
8119
+ "text/plain": string;
8120
+ };
8121
+ };
8122
+ };
8123
+ };
8124
+ updateDatasetSplit: {
8125
+ parameters: {
8126
+ query?: never;
8127
+ header?: never;
8128
+ path: {
8129
+ /** @description The dataset identifier: either dataset ID or dataset name. */
8130
+ dataset_identifier: string;
8131
+ /** @description The ID (GlobalID) of the dataset split. */
8132
+ split_id: string;
8133
+ };
8134
+ cookie?: never;
8135
+ };
8136
+ requestBody: {
8137
+ content: {
8138
+ "application/json": components["schemas"]["UpdateDatasetSplitRequestBody"];
8139
+ };
8140
+ };
8141
+ responses: {
8142
+ /** @description Successful Response */
8143
+ 200: {
8144
+ headers: {
8145
+ [name: string]: unknown;
8146
+ };
8147
+ content: {
8148
+ "application/json": components["schemas"]["UpdateDatasetSplitResponseBody"];
8149
+ };
8150
+ };
8151
+ /** @description Forbidden */
8152
+ 403: {
8153
+ headers: {
8154
+ [name: string]: unknown;
8155
+ };
8156
+ content: {
8157
+ "text/plain": string;
8158
+ };
8159
+ };
8160
+ /** @description Dataset, split, or example not found */
8161
+ 404: {
8162
+ headers: {
8163
+ [name: string]: unknown;
8164
+ };
8165
+ content: {
8166
+ "text/plain": string;
8167
+ };
8168
+ };
8169
+ /** @description A dataset split with the given name already exists */
8170
+ 409: {
8171
+ headers: {
8172
+ [name: string]: unknown;
8173
+ };
8174
+ content: {
8175
+ "text/plain": string;
8176
+ };
8177
+ };
8178
+ /** @description Invalid request */
8179
+ 422: {
8180
+ headers: {
8181
+ [name: string]: unknown;
8182
+ };
8183
+ content: {
8184
+ "text/plain": string;
8185
+ };
8186
+ };
8187
+ };
8188
+ };
7795
8189
  getDatasetCsv: {
7796
8190
  parameters: {
7797
8191
  query?: {
@@ -8362,6 +8756,160 @@ export interface operations {
8362
8756
  };
8363
8757
  };
8364
8758
  };
8759
+ listExperimentTags: {
8760
+ parameters: {
8761
+ query?: never;
8762
+ header?: never;
8763
+ path: {
8764
+ /** @description The ID of the experiment */
8765
+ experiment_id: string;
8766
+ };
8767
+ cookie?: never;
8768
+ };
8769
+ requestBody?: never;
8770
+ responses: {
8771
+ /** @description The tags currently applied to the experiment */
8772
+ 200: {
8773
+ headers: {
8774
+ [name: string]: unknown;
8775
+ };
8776
+ content: {
8777
+ "application/json": components["schemas"]["ListExperimentTagsResponseBody"];
8778
+ };
8779
+ };
8780
+ /** @description Forbidden */
8781
+ 403: {
8782
+ headers: {
8783
+ [name: string]: unknown;
8784
+ };
8785
+ content: {
8786
+ "text/plain": string;
8787
+ };
8788
+ };
8789
+ /** @description Experiment not found */
8790
+ 404: {
8791
+ headers: {
8792
+ [name: string]: unknown;
8793
+ };
8794
+ content: {
8795
+ "text/plain": string;
8796
+ };
8797
+ };
8798
+ /** @description Invalid experiment ID */
8799
+ 422: {
8800
+ headers: {
8801
+ [name: string]: unknown;
8802
+ };
8803
+ content: {
8804
+ "text/plain": string;
8805
+ };
8806
+ };
8807
+ };
8808
+ };
8809
+ setExperimentTag: {
8810
+ parameters: {
8811
+ query?: never;
8812
+ header?: never;
8813
+ path: {
8814
+ /** @description The ID of the experiment */
8815
+ experiment_id: string;
8816
+ };
8817
+ cookie?: never;
8818
+ };
8819
+ requestBody: {
8820
+ content: {
8821
+ "application/json": components["schemas"]["SetExperimentTagRequestBody"];
8822
+ };
8823
+ };
8824
+ responses: {
8825
+ /** @description The tag as it now applies to the experiment */
8826
+ 200: {
8827
+ headers: {
8828
+ [name: string]: unknown;
8829
+ };
8830
+ content: {
8831
+ "application/json": components["schemas"]["SetExperimentTagResponseBody"];
8832
+ };
8833
+ };
8834
+ /** @description Forbidden */
8835
+ 403: {
8836
+ headers: {
8837
+ [name: string]: unknown;
8838
+ };
8839
+ content: {
8840
+ "text/plain": string;
8841
+ };
8842
+ };
8843
+ /** @description Experiment not found */
8844
+ 404: {
8845
+ headers: {
8846
+ [name: string]: unknown;
8847
+ };
8848
+ content: {
8849
+ "text/plain": string;
8850
+ };
8851
+ };
8852
+ /** @description Invalid experiment ID or request body, or the experiment is ephemeral and cannot be tagged as the baseline */
8853
+ 422: {
8854
+ headers: {
8855
+ [name: string]: unknown;
8856
+ };
8857
+ content: {
8858
+ "text/plain": string;
8859
+ };
8860
+ };
8861
+ };
8862
+ };
8863
+ deleteExperimentTag: {
8864
+ parameters: {
8865
+ query?: never;
8866
+ header?: never;
8867
+ path: {
8868
+ /** @description The ID of the experiment */
8869
+ experiment_id: string;
8870
+ /** @description The node ID or name of the tag to remove */
8871
+ tag_identifier: string;
8872
+ };
8873
+ cookie?: never;
8874
+ };
8875
+ requestBody?: never;
8876
+ responses: {
8877
+ /** @description No content returned on successful tag removal */
8878
+ 204: {
8879
+ headers: {
8880
+ [name: string]: unknown;
8881
+ };
8882
+ content?: never;
8883
+ };
8884
+ /** @description Forbidden */
8885
+ 403: {
8886
+ headers: {
8887
+ [name: string]: unknown;
8888
+ };
8889
+ content: {
8890
+ "text/plain": string;
8891
+ };
8892
+ };
8893
+ /** @description Experiment not found */
8894
+ 404: {
8895
+ headers: {
8896
+ [name: string]: unknown;
8897
+ };
8898
+ content: {
8899
+ "text/plain": string;
8900
+ };
8901
+ };
8902
+ /** @description Invalid experiment ID or tag identifier */
8903
+ 422: {
8904
+ headers: {
8905
+ [name: string]: unknown;
8906
+ };
8907
+ content: {
8908
+ "text/plain": string;
8909
+ };
8910
+ };
8911
+ };
8912
+ };
8365
8913
  listExperimentRuns: {
8366
8914
  parameters: {
8367
8915
  query?: {