@arizeai/phoenix-client 2.1.0 → 2.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arizeai/phoenix-client",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "A client for the Phoenix API",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -553,6 +553,50 @@ export interface paths {
553
553
  patch?: never;
554
554
  trace?: never;
555
555
  };
556
+ "/v1/users": {
557
+ parameters: {
558
+ query?: never;
559
+ header?: never;
560
+ path?: never;
561
+ cookie?: never;
562
+ };
563
+ /**
564
+ * List all users
565
+ * @description Retrieve a paginated list of all users in the system.
566
+ */
567
+ get: operations["getUsers"];
568
+ put?: never;
569
+ /**
570
+ * Create a new user
571
+ * @description Create a new user with the specified configuration.
572
+ */
573
+ post: operations["createUser"];
574
+ delete?: never;
575
+ options?: never;
576
+ head?: never;
577
+ patch?: never;
578
+ trace?: never;
579
+ };
580
+ "/v1/users/{user_id}": {
581
+ parameters: {
582
+ query?: never;
583
+ header?: never;
584
+ path?: never;
585
+ cookie?: never;
586
+ };
587
+ get?: never;
588
+ put?: never;
589
+ post?: never;
590
+ /**
591
+ * Delete a user by ID
592
+ * @description Delete an existing user by their unique GlobalID.
593
+ */
594
+ delete: operations["deleteUser"];
595
+ options?: never;
596
+ head?: never;
597
+ patch?: never;
598
+ trace?: never;
599
+ };
556
600
  }
557
601
  export type webhooks = Record<string, never>;
558
602
  export interface components {
@@ -759,6 +803,21 @@ export interface components {
759
803
  CreatePromptResponseBody: {
760
804
  data: components["schemas"]["PromptVersion"];
761
805
  };
806
+ /** CreateUserRequestBody */
807
+ CreateUserRequestBody: {
808
+ /** User */
809
+ user: components["schemas"]["LocalUserData"] | components["schemas"]["OAuth2UserData"];
810
+ /**
811
+ * Send Welcome Email
812
+ * @default true
813
+ */
814
+ send_welcome_email?: boolean;
815
+ };
816
+ /** CreateUserResponseBody */
817
+ CreateUserResponseBody: {
818
+ /** Data */
819
+ data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"];
820
+ };
762
821
  /** Dataset */
763
822
  Dataset: {
764
823
  /** Id */
@@ -1047,6 +1106,13 @@ export interface components {
1047
1106
  /** Next Cursor */
1048
1107
  next_cursor: string | null;
1049
1108
  };
1109
+ /** GetUsersResponseBody */
1110
+ GetUsersResponseBody: {
1111
+ /** Data */
1112
+ data: (components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"])[];
1113
+ /** Next Cursor */
1114
+ next_cursor: string | null;
1115
+ };
1050
1116
  /** HTTPValidationError */
1051
1117
  HTTPValidationError: {
1052
1118
  /** Detail */
@@ -1099,11 +1165,119 @@ export interface components {
1099
1165
  /** Data */
1100
1166
  data: components["schemas"]["Experiment"][];
1101
1167
  };
1168
+ /** LocalUser */
1169
+ LocalUser: {
1170
+ /** Id */
1171
+ id: string;
1172
+ /**
1173
+ * Created At
1174
+ * Format: date-time
1175
+ */
1176
+ created_at: string;
1177
+ /**
1178
+ * Updated At
1179
+ * Format: date-time
1180
+ */
1181
+ updated_at: string;
1182
+ /** Email */
1183
+ email: string;
1184
+ /** Username */
1185
+ username: string;
1186
+ /**
1187
+ * Role
1188
+ * @enum {string}
1189
+ */
1190
+ role: "SYSTEM" | "ADMIN" | "MEMBER";
1191
+ /**
1192
+ * @description discriminator enum property added by openapi-typescript
1193
+ * @enum {string}
1194
+ */
1195
+ auth_method: "LOCAL";
1196
+ /** Password */
1197
+ password?: string;
1198
+ /** Password Needs Reset */
1199
+ password_needs_reset: boolean;
1200
+ };
1201
+ /** LocalUserData */
1202
+ LocalUserData: {
1203
+ /** Email */
1204
+ email: string;
1205
+ /** Username */
1206
+ username: string;
1207
+ /**
1208
+ * Role
1209
+ * @enum {string}
1210
+ */
1211
+ role: "SYSTEM" | "ADMIN" | "MEMBER";
1212
+ /**
1213
+ * @description discriminator enum property added by openapi-typescript
1214
+ * @enum {string}
1215
+ */
1216
+ auth_method: "LOCAL";
1217
+ /** Password */
1218
+ password?: string;
1219
+ };
1102
1220
  /**
1103
1221
  * ModelProvider
1104
1222
  * @enum {string}
1105
1223
  */
1106
- ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK";
1224
+ ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI";
1225
+ /** OAuth2User */
1226
+ OAuth2User: {
1227
+ /** Id */
1228
+ id: string;
1229
+ /**
1230
+ * Created At
1231
+ * Format: date-time
1232
+ */
1233
+ created_at: string;
1234
+ /**
1235
+ * Updated At
1236
+ * Format: date-time
1237
+ */
1238
+ updated_at: string;
1239
+ /** Email */
1240
+ email: string;
1241
+ /** Username */
1242
+ username: string;
1243
+ /**
1244
+ * Role
1245
+ * @enum {string}
1246
+ */
1247
+ role: "SYSTEM" | "ADMIN" | "MEMBER";
1248
+ /**
1249
+ * @description discriminator enum property added by openapi-typescript
1250
+ * @enum {string}
1251
+ */
1252
+ auth_method: "OAUTH2";
1253
+ /** Oauth2 Client Id */
1254
+ oauth2_client_id?: string;
1255
+ /** Oauth2 User Id */
1256
+ oauth2_user_id?: string;
1257
+ /** Profile Picture Url */
1258
+ profile_picture_url?: string;
1259
+ };
1260
+ /** OAuth2UserData */
1261
+ OAuth2UserData: {
1262
+ /** Email */
1263
+ email: string;
1264
+ /** Username */
1265
+ username: string;
1266
+ /**
1267
+ * Role
1268
+ * @enum {string}
1269
+ */
1270
+ role: "SYSTEM" | "ADMIN" | "MEMBER";
1271
+ /**
1272
+ * @description discriminator enum property added by openapi-typescript
1273
+ * @enum {string}
1274
+ */
1275
+ auth_method: "OAUTH2";
1276
+ /** Oauth2 Client Id */
1277
+ oauth2_client_id?: string;
1278
+ /** Oauth2 User Id */
1279
+ oauth2_user_id?: string;
1280
+ };
1107
1281
  /**
1108
1282
  * OptimizationDirection
1109
1283
  * @enum {string}
@@ -1632,7 +1806,7 @@ export interface components {
1632
1806
  template_type: components["schemas"]["PromptTemplateType"];
1633
1807
  template_format: components["schemas"]["PromptTemplateFormat"];
1634
1808
  /** Invocation Parameters */
1635
- invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"];
1809
+ invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
1636
1810
  tools?: components["schemas"]["PromptTools"] | null;
1637
1811
  /** Response Format */
1638
1812
  response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
@@ -1651,7 +1825,7 @@ export interface components {
1651
1825
  template_type: components["schemas"]["PromptTemplateType"];
1652
1826
  template_format: components["schemas"]["PromptTemplateFormat"];
1653
1827
  /** Invocation Parameters */
1654
- invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"];
1828
+ invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
1655
1829
  tools?: components["schemas"]["PromptTools"] | null;
1656
1830
  /** Response Format */
1657
1831
  response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
@@ -1670,6 +1844,37 @@ export interface components {
1670
1844
  /** Description */
1671
1845
  description?: string | null;
1672
1846
  };
1847
+ /** PromptXAIInvocationParameters */
1848
+ PromptXAIInvocationParameters: {
1849
+ /**
1850
+ * @description discriminator enum property added by openapi-typescript
1851
+ * @enum {string}
1852
+ */
1853
+ type: "xai";
1854
+ xai: components["schemas"]["PromptXAIInvocationParametersContent"];
1855
+ };
1856
+ /** PromptXAIInvocationParametersContent */
1857
+ PromptXAIInvocationParametersContent: {
1858
+ /** Temperature */
1859
+ temperature?: number;
1860
+ /** Max Tokens */
1861
+ max_tokens?: number;
1862
+ /** Max Completion Tokens */
1863
+ max_completion_tokens?: number;
1864
+ /** Frequency Penalty */
1865
+ frequency_penalty?: number;
1866
+ /** Presence Penalty */
1867
+ presence_penalty?: number;
1868
+ /** Top P */
1869
+ top_p?: number;
1870
+ /** Seed */
1871
+ seed?: number;
1872
+ /**
1873
+ * Reasoning Effort
1874
+ * @enum {string}
1875
+ */
1876
+ reasoning_effort?: "low" | "medium" | "high";
1877
+ };
1673
1878
  /** SpanAnnotation */
1674
1879
  SpanAnnotation: {
1675
1880
  /**
@@ -3913,4 +4118,155 @@ export interface operations {
3913
4118
  };
3914
4119
  };
3915
4120
  };
4121
+ getUsers: {
4122
+ parameters: {
4123
+ query?: {
4124
+ /** @description Cursor for pagination (base64-encoded user ID) */
4125
+ cursor?: string;
4126
+ /** @description The max number of users to return at a time. */
4127
+ limit?: number;
4128
+ };
4129
+ header?: never;
4130
+ path?: never;
4131
+ cookie?: never;
4132
+ };
4133
+ requestBody?: never;
4134
+ responses: {
4135
+ /** @description A list of users. */
4136
+ 200: {
4137
+ headers: {
4138
+ [name: string]: unknown;
4139
+ };
4140
+ content: {
4141
+ "application/json": components["schemas"]["GetUsersResponseBody"];
4142
+ };
4143
+ };
4144
+ /** @description Forbidden */
4145
+ 403: {
4146
+ headers: {
4147
+ [name: string]: unknown;
4148
+ };
4149
+ content: {
4150
+ "text/plain": string;
4151
+ };
4152
+ };
4153
+ /** @description Unprocessable Entity */
4154
+ 422: {
4155
+ headers: {
4156
+ [name: string]: unknown;
4157
+ };
4158
+ content: {
4159
+ "text/plain": string;
4160
+ };
4161
+ };
4162
+ };
4163
+ };
4164
+ createUser: {
4165
+ parameters: {
4166
+ query?: never;
4167
+ header?: never;
4168
+ path?: never;
4169
+ cookie?: never;
4170
+ };
4171
+ requestBody: {
4172
+ content: {
4173
+ "application/json": components["schemas"]["CreateUserRequestBody"];
4174
+ };
4175
+ };
4176
+ responses: {
4177
+ /** @description The newly created user. */
4178
+ 201: {
4179
+ headers: {
4180
+ [name: string]: unknown;
4181
+ };
4182
+ content: {
4183
+ "application/json": components["schemas"]["CreateUserResponseBody"];
4184
+ };
4185
+ };
4186
+ /** @description Role not found. */
4187
+ 400: {
4188
+ headers: {
4189
+ [name: string]: unknown;
4190
+ };
4191
+ content: {
4192
+ "text/plain": string;
4193
+ };
4194
+ };
4195
+ /** @description Forbidden */
4196
+ 403: {
4197
+ headers: {
4198
+ [name: string]: unknown;
4199
+ };
4200
+ content: {
4201
+ "text/plain": string;
4202
+ };
4203
+ };
4204
+ /** @description Username or email already exists. */
4205
+ 409: {
4206
+ headers: {
4207
+ [name: string]: unknown;
4208
+ };
4209
+ content: {
4210
+ "text/plain": string;
4211
+ };
4212
+ };
4213
+ /** @description Unprocessable Entity */
4214
+ 422: {
4215
+ headers: {
4216
+ [name: string]: unknown;
4217
+ };
4218
+ content: {
4219
+ "text/plain": string;
4220
+ };
4221
+ };
4222
+ };
4223
+ };
4224
+ deleteUser: {
4225
+ parameters: {
4226
+ query?: never;
4227
+ header?: never;
4228
+ path: {
4229
+ /** @description The GlobalID of the user (e.g. 'VXNlcjox'). */
4230
+ user_id: string;
4231
+ };
4232
+ cookie?: never;
4233
+ };
4234
+ requestBody?: never;
4235
+ responses: {
4236
+ /** @description No content returned on successful deletion. */
4237
+ 204: {
4238
+ headers: {
4239
+ [name: string]: unknown;
4240
+ };
4241
+ content?: never;
4242
+ };
4243
+ /** @description Cannot delete the default admin or system user */
4244
+ 403: {
4245
+ headers: {
4246
+ [name: string]: unknown;
4247
+ };
4248
+ content: {
4249
+ "text/plain": string;
4250
+ };
4251
+ };
4252
+ /** @description User not found. */
4253
+ 404: {
4254
+ headers: {
4255
+ [name: string]: unknown;
4256
+ };
4257
+ content: {
4258
+ "text/plain": string;
4259
+ };
4260
+ };
4261
+ /** @description Unprocessable Entity */
4262
+ 422: {
4263
+ headers: {
4264
+ [name: string]: unknown;
4265
+ };
4266
+ content: {
4267
+ "text/plain": string;
4268
+ };
4269
+ };
4270
+ };
4271
+ };
3916
4272
  }
@@ -107,12 +107,18 @@ interface DeepSeekPromptVersionInput extends PromptVersionInputBase {
107
107
  invocationParameters?: OpenAIInvocationParameters;
108
108
  }
109
109
 
110
+ interface XAIPromptVersionInput extends PromptVersionInputBase {
111
+ modelProvider: "XAI";
112
+ invocationParameters?: OpenAIInvocationParameters;
113
+ }
114
+
110
115
  type PromptVersionInput =
111
116
  | OpenAIPromptVersionInput
112
117
  | AzureOpenAIPromptVersionInput
113
118
  | AnthropicPromptVersionInput
114
119
  | GooglePromptVersionInput
115
- | DeepSeekPromptVersionInput;
120
+ | DeepSeekPromptVersionInput
121
+ | XAIPromptVersionInput;
116
122
 
117
123
  /**
118
124
  * A helper function to construct a prompt version declaratively.
@@ -212,6 +218,22 @@ export function promptVersion(params: PromptVersionInput): PromptVersionData {
212
218
  deepseek: invocation_parameters ?? {},
213
219
  },
214
220
  };
221
+ case "XAI":
222
+ return {
223
+ description,
224
+ model_provider,
225
+ model_name,
226
+ template_type: "CHAT",
227
+ template_format,
228
+ template: {
229
+ type: "chat",
230
+ messages: templateMessages,
231
+ },
232
+ invocation_parameters: {
233
+ type: "xai",
234
+ xai: invocation_parameters ?? {},
235
+ },
236
+ };
215
237
  default:
216
238
  assertUnreachable(model_provider);
217
239
  }