@arizeai/phoenix-client 2.0.1 → 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.
Files changed (37) hide show
  1. package/dist/esm/__generated__/api/v1.d.ts +687 -3
  2. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  3. package/dist/esm/prompts/createPrompt.d.ts +9 -1
  4. package/dist/esm/prompts/createPrompt.d.ts.map +1 -1
  5. package/dist/esm/prompts/createPrompt.js +32 -0
  6. package/dist/esm/prompts/createPrompt.js.map +1 -1
  7. package/dist/esm/schemas/llm/anthropic/converters.d.ts +21 -21
  8. package/dist/esm/schemas/llm/constants.d.ts +294 -294
  9. package/dist/esm/schemas/llm/converters.d.ts +1176 -1176
  10. package/dist/esm/schemas/llm/openai/converters.d.ts +168 -168
  11. package/dist/esm/schemas/llm/openai/toolSchemas.d.ts +63 -63
  12. package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +21 -21
  13. package/dist/esm/schemas/llm/schemas.d.ts +63 -63
  14. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  15. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  16. package/dist/esm/utils/getPromptBySelector.d.ts +1 -1
  17. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  18. package/dist/src/__generated__/api/v1.d.ts +687 -3
  19. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  20. package/dist/src/prompts/createPrompt.d.ts +9 -1
  21. package/dist/src/prompts/createPrompt.d.ts.map +1 -1
  22. package/dist/src/prompts/createPrompt.js +32 -0
  23. package/dist/src/prompts/createPrompt.js.map +1 -1
  24. package/dist/src/schemas/llm/anthropic/converters.d.ts +21 -21
  25. package/dist/src/schemas/llm/constants.d.ts +294 -294
  26. package/dist/src/schemas/llm/converters.d.ts +1176 -1176
  27. package/dist/src/schemas/llm/openai/converters.d.ts +168 -168
  28. package/dist/src/schemas/llm/openai/toolSchemas.d.ts +63 -63
  29. package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +21 -21
  30. package/dist/src/schemas/llm/schemas.d.ts +63 -63
  31. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  32. package/dist/src/utils/getPromptBySelector.d.ts +1 -1
  33. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +1 -1
  36. package/src/__generated__/api/v1.ts +687 -3
  37. package/src/prompts/createPrompt.ts +45 -1
@@ -318,6 +318,26 @@ export interface paths {
318
318
  patch?: never;
319
319
  trace?: never;
320
320
  };
321
+ "/v1/projects/{project_identifier}/spans/otlpv1": {
322
+ parameters: {
323
+ query?: never;
324
+ header?: never;
325
+ path?: never;
326
+ cookie?: never;
327
+ };
328
+ /**
329
+ * Search spans with simple filters (no DSL)
330
+ * @description Return spans within a project filtered by time range, annotation names, and ordered by start_time. Supports cursor-based pagination.
331
+ */
332
+ get: operations["spanSearch"];
333
+ put?: never;
334
+ post?: never;
335
+ delete?: never;
336
+ options?: never;
337
+ head?: never;
338
+ patch?: never;
339
+ trace?: never;
340
+ };
321
341
  "/v1/span_annotations": {
322
342
  parameters: {
323
343
  query?: never;
@@ -533,6 +553,50 @@ export interface paths {
533
553
  patch?: never;
534
554
  trace?: never;
535
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
+ };
536
600
  }
537
601
  export type webhooks = Record<string, never>;
538
602
  export interface components {
@@ -739,6 +803,21 @@ export interface components {
739
803
  CreatePromptResponseBody: {
740
804
  data: components["schemas"]["PromptVersion"];
741
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
+ };
742
821
  /** Dataset */
743
822
  Dataset: {
744
823
  /** Id */
@@ -1027,6 +1106,13 @@ export interface components {
1027
1106
  /** Next Cursor */
1028
1107
  next_cursor: string | null;
1029
1108
  };
1109
+ /** GetUsersResponseBody */
1110
+ GetUsersResponseBody: {
1111
+ /** Data */
1112
+ data: (components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"])[];
1113
+ /** Next Cursor */
1114
+ next_cursor: string | null;
1115
+ };
1030
1116
  /** HTTPValidationError */
1031
1117
  HTTPValidationError: {
1032
1118
  /** Detail */
@@ -1079,16 +1165,317 @@ export interface components {
1079
1165
  /** Data */
1080
1166
  data: components["schemas"]["Experiment"][];
1081
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
+ };
1082
1220
  /**
1083
1221
  * ModelProvider
1084
1222
  * @enum {string}
1085
1223
  */
1086
- ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE";
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
+ };
1087
1281
  /**
1088
1282
  * OptimizationDirection
1089
1283
  * @enum {string}
1090
1284
  */
1091
1285
  OptimizationDirection: "MINIMIZE" | "MAXIMIZE" | "NONE";
1286
+ /** OtlpAnyValue */
1287
+ OtlpAnyValue: {
1288
+ array_value?: components["schemas"]["OtlpArrayValue"] | null;
1289
+ /** Bool Value */
1290
+ bool_value?: boolean | null;
1291
+ /** Bytes Value */
1292
+ bytes_value?: string | null;
1293
+ /** Double Value */
1294
+ double_value?: number | components["schemas"]["OtlpDoubleValue"] | string | null;
1295
+ /** Int Value */
1296
+ int_value?: number | string | null;
1297
+ /** Kvlist Value */
1298
+ kvlist_value?: null;
1299
+ /** String Value */
1300
+ string_value?: string | null;
1301
+ };
1302
+ /** OtlpArrayValue */
1303
+ OtlpArrayValue: {
1304
+ /**
1305
+ * Values
1306
+ * @description Array of values. The array may be empty (contain 0 elements).
1307
+ */
1308
+ values?: components["schemas"]["OtlpAnyValue"][] | null;
1309
+ };
1310
+ /**
1311
+ * OtlpDoubleValue
1312
+ * @enum {string}
1313
+ */
1314
+ OtlpDoubleValue: "Infinity" | "-Infinity" | "NaN";
1315
+ /** OtlpEvent */
1316
+ OtlpEvent: {
1317
+ /**
1318
+ * Attributes
1319
+ * @description attributes is a collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
1320
+ */
1321
+ attributes?: components["schemas"]["OtlpKeyValue"][] | null;
1322
+ /**
1323
+ * Dropped Attributes Count
1324
+ * @description dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.
1325
+ */
1326
+ dropped_attributes_count?: number | null;
1327
+ /**
1328
+ * Name
1329
+ * @description name of the event. This field is semantically required to be set to non-empty string.
1330
+ */
1331
+ name?: string | null;
1332
+ /**
1333
+ * Time Unix Nano
1334
+ * @description time_unix_nano is the time the event occurred. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
1335
+ */
1336
+ time_unix_nano?: number | string | null;
1337
+ };
1338
+ /** OtlpKeyValue */
1339
+ OtlpKeyValue: {
1340
+ /** Key */
1341
+ key?: string | null;
1342
+ value?: components["schemas"]["OtlpAnyValue"] | null;
1343
+ };
1344
+ /**
1345
+ * OtlpKind
1346
+ * @enum {string}
1347
+ */
1348
+ OtlpKind: "SPAN_KIND_UNSPECIFIED" | "SPAN_KIND_INTERNAL" | "SPAN_KIND_SERVER" | "SPAN_KIND_CLIENT" | "SPAN_KIND_PRODUCER" | "SPAN_KIND_CONSUMER";
1349
+ /** OtlpSpan */
1350
+ OtlpSpan: {
1351
+ /**
1352
+ * Attributes
1353
+ * @description attributes is a collection of key/value pairs. Note, global attributes like server name can be set using the resource API. Examples of attributes:
1354
+ *
1355
+ * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
1356
+ * "/http/server_latency": 300
1357
+ * "example.com/myattribute": true
1358
+ * "example.com/score": 10.239
1359
+ *
1360
+ * The OpenTelemetry API specification further restricts the allowed value types:
1361
+ * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
1362
+ * Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
1363
+ */
1364
+ attributes?: components["schemas"]["OtlpKeyValue"][] | null;
1365
+ /**
1366
+ * Dropped Attributes Count
1367
+ * @description dropped_attributes_count is the number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
1368
+ */
1369
+ dropped_attributes_count?: number | null;
1370
+ /**
1371
+ * Dropped Events Count
1372
+ * @description dropped_events_count is the number of dropped events. If the value is 0, then no events were dropped.
1373
+ */
1374
+ dropped_events_count?: number | null;
1375
+ /**
1376
+ * Dropped Links Count
1377
+ * @description dropped_links_count is the number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped.
1378
+ */
1379
+ dropped_links_count?: number | null;
1380
+ /**
1381
+ * End Time Unix Nano
1382
+ * @description end_time_unix_nano is the end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
1383
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
1384
+ *
1385
+ * This field is semantically required and it is expected that end_time >= start_time.
1386
+ */
1387
+ end_time_unix_nano?: number | string | null;
1388
+ /**
1389
+ * Events
1390
+ * @description events is a collection of Event items. A span with no events is valid.
1391
+ */
1392
+ events?: components["schemas"]["OtlpEvent"][] | null;
1393
+ /**
1394
+ * Flags
1395
+ * @description Flags, a bit field.
1396
+ *
1397
+ * Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace Context specification. To read the 8-bit W3C trace flag, use `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
1398
+ *
1399
+ * See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
1400
+ *
1401
+ * Bits 8 and 9 represent the 3 states of whether a span's parent is remote. The states are (unknown, is not remote, is remote).
1402
+ * To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
1403
+ * To read whether the span is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
1404
+ *
1405
+ * When creating span messages, if the message is logically forwarded from another source with an equivalent flags fields (i.e., usually another OTLP span message), the field SHOULD be copied as-is. If creating from a source that does not have an equivalent flags field (such as a runtime representation of an OpenTelemetry span), the high 22 bits MUST be set to zero.
1406
+ * Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
1407
+ *
1408
+ * [Optional].
1409
+ */
1410
+ flags?: number | null;
1411
+ /**
1412
+ * Kind
1413
+ * @description Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify queueing latency associated with the span.
1414
+ * @default SPAN_KIND_INTERNAL
1415
+ */
1416
+ kind?: components["schemas"]["OtlpKind"] | number | null;
1417
+ /** Links */
1418
+ links?: null;
1419
+ /**
1420
+ * Name
1421
+ * @description A description of the span's operation.
1422
+ *
1423
+ * For example, the name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name at the same call point in an application. This makes it easier to correlate spans in different traces.
1424
+ *
1425
+ * This field is semantically required to be set to non-empty string. Empty value is equivalent to an unknown span name.
1426
+ *
1427
+ * This field is required.
1428
+ */
1429
+ name?: string | null;
1430
+ /**
1431
+ * Parent Span Id
1432
+ * @description The `span_id` of this span's parent span. If this is a root span, then this field must be empty. The ID is an 8-byte array.
1433
+ */
1434
+ parent_span_id?: string | null;
1435
+ /**
1436
+ * Span Id
1437
+ * @description A unique identifier for a span within a trace, assigned when the span is created. The ID is an 8-byte array. An ID with all zeroes OR of length other than 8 bytes is considered invalid (empty string in OTLP/JSON is zero-length and thus is also invalid).
1438
+ *
1439
+ * This field is required.
1440
+ */
1441
+ span_id?: string | null;
1442
+ /**
1443
+ * Start Time Unix Nano
1444
+ * @description start_time_unix_nano is the start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
1445
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
1446
+ *
1447
+ * This field is semantically required and it is expected that end_time >= start_time.
1448
+ */
1449
+ start_time_unix_nano?: number | string | null;
1450
+ /** @description An optional final status for this span. Semantically when Status isn't set, it means span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0). */
1451
+ status?: components["schemas"]["OtlpStatus"] | null;
1452
+ /**
1453
+ * Trace Id
1454
+ * @description A unique identifier for a trace. All spans from the same trace share the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR of length other than 16 bytes is considered invalid (empty string in OTLP/JSON is zero-length and thus is also invalid).
1455
+ *
1456
+ * This field is required.
1457
+ */
1458
+ trace_id?: string | null;
1459
+ /**
1460
+ * Trace State
1461
+ * @description trace_state conveys information about request position in multiple distributed tracing graphs. It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header
1462
+ * See also https://github.com/w3c/distributed-tracing for more details about this field.
1463
+ */
1464
+ trace_state?: string | null;
1465
+ };
1466
+ /** OtlpStatus */
1467
+ OtlpStatus: {
1468
+ /**
1469
+ * Code
1470
+ * @description The status code.
1471
+ */
1472
+ code?: number | null;
1473
+ /**
1474
+ * Message
1475
+ * @description A developer-facing human readable error message.
1476
+ */
1477
+ message?: string | null;
1478
+ };
1092
1479
  /** Project */
1093
1480
  Project: {
1094
1481
  /** Name */
@@ -1197,6 +1584,37 @@ export interface components {
1197
1584
  /** Source Prompt Id */
1198
1585
  source_prompt_id?: string | null;
1199
1586
  };
1587
+ /** PromptDeepSeekInvocationParameters */
1588
+ PromptDeepSeekInvocationParameters: {
1589
+ /**
1590
+ * @description discriminator enum property added by openapi-typescript
1591
+ * @enum {string}
1592
+ */
1593
+ type: "deepseek";
1594
+ deepseek: components["schemas"]["PromptDeepSeekInvocationParametersContent"];
1595
+ };
1596
+ /** PromptDeepSeekInvocationParametersContent */
1597
+ PromptDeepSeekInvocationParametersContent: {
1598
+ /** Temperature */
1599
+ temperature?: number;
1600
+ /** Max Tokens */
1601
+ max_tokens?: number;
1602
+ /** Max Completion Tokens */
1603
+ max_completion_tokens?: number;
1604
+ /** Frequency Penalty */
1605
+ frequency_penalty?: number;
1606
+ /** Presence Penalty */
1607
+ presence_penalty?: number;
1608
+ /** Top P */
1609
+ top_p?: number;
1610
+ /** Seed */
1611
+ seed?: number;
1612
+ /**
1613
+ * Reasoning Effort
1614
+ * @enum {string}
1615
+ */
1616
+ reasoning_effort?: "low" | "medium" | "high";
1617
+ };
1200
1618
  /** PromptGoogleInvocationParameters */
1201
1619
  PromptGoogleInvocationParameters: {
1202
1620
  /**
@@ -1388,7 +1806,7 @@ export interface components {
1388
1806
  template_type: components["schemas"]["PromptTemplateType"];
1389
1807
  template_format: components["schemas"]["PromptTemplateFormat"];
1390
1808
  /** Invocation Parameters */
1391
- invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"];
1809
+ invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
1392
1810
  tools?: components["schemas"]["PromptTools"] | null;
1393
1811
  /** Response Format */
1394
1812
  response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
@@ -1407,7 +1825,7 @@ export interface components {
1407
1825
  template_type: components["schemas"]["PromptTemplateType"];
1408
1826
  template_format: components["schemas"]["PromptTemplateFormat"];
1409
1827
  /** Invocation Parameters */
1410
- invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"];
1828
+ invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
1411
1829
  tools?: components["schemas"]["PromptTools"] | null;
1412
1830
  /** Response Format */
1413
1831
  response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
@@ -1426,6 +1844,37 @@ export interface components {
1426
1844
  /** Description */
1427
1845
  description?: string | null;
1428
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
+ };
1429
1878
  /** SpanAnnotation */
1430
1879
  SpanAnnotation: {
1431
1880
  /**
@@ -1538,6 +1987,16 @@ export interface components {
1538
1987
  /** Next Cursor */
1539
1988
  next_cursor: string | null;
1540
1989
  };
1990
+ /**
1991
+ * SpanSearchResponseBody
1992
+ * @description Paginated response where each span follows OTLP JSON structure.
1993
+ */
1994
+ SpanSearchResponseBody: {
1995
+ /** Data */
1996
+ data: components["schemas"]["OtlpSpan"][];
1997
+ /** Next Cursor */
1998
+ next_cursor: string | null;
1999
+ };
1541
2000
  /** TextContentPart */
1542
2001
  TextContentPart: {
1543
2002
  /**
@@ -1604,6 +2063,8 @@ export interface components {
1604
2063
  UploadDatasetData: {
1605
2064
  /** Dataset Id */
1606
2065
  dataset_id: string;
2066
+ /** Version Id */
2067
+ version_id: string;
1607
2068
  };
1608
2069
  /** UploadDatasetResponseBody */
1609
2070
  UploadDatasetResponseBody: {
@@ -2728,6 +3189,15 @@ export interface operations {
2728
3189
  "text/plain": string;
2729
3190
  };
2730
3191
  };
3192
+ /** @description This experiment run has already been submitted */
3193
+ 409: {
3194
+ headers: {
3195
+ [name: string]: unknown;
3196
+ };
3197
+ content: {
3198
+ "text/plain": string;
3199
+ };
3200
+ };
2731
3201
  /** @description Validation Error */
2732
3202
  422: {
2733
3203
  headers: {
@@ -2790,6 +3260,69 @@ export interface operations {
2790
3260
  };
2791
3261
  };
2792
3262
  };
3263
+ spanSearch: {
3264
+ parameters: {
3265
+ query?: {
3266
+ /** @description Pagination cursor (GlobalID of Span) */
3267
+ cursor?: string | null;
3268
+ /** @description Maximum number of spans to return */
3269
+ limit?: number;
3270
+ /** @description Sort direction for the sort field */
3271
+ sort_direction?: "asc" | "desc";
3272
+ /** @description Inclusive lower bound time */
3273
+ start_time?: string | null;
3274
+ /** @description Exclusive upper bound time */
3275
+ end_time?: string | null;
3276
+ /** @description If provided, only include spans that have at least one annotation with one of these names. */
3277
+ annotationNames?: string[] | null;
3278
+ };
3279
+ header?: never;
3280
+ path: {
3281
+ /** @description The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
3282
+ project_identifier: string;
3283
+ };
3284
+ cookie?: never;
3285
+ };
3286
+ requestBody?: never;
3287
+ responses: {
3288
+ /** @description Successful Response */
3289
+ 200: {
3290
+ headers: {
3291
+ [name: string]: unknown;
3292
+ };
3293
+ content: {
3294
+ "application/json": components["schemas"]["SpanSearchResponseBody"];
3295
+ };
3296
+ };
3297
+ /** @description Forbidden */
3298
+ 403: {
3299
+ headers: {
3300
+ [name: string]: unknown;
3301
+ };
3302
+ content: {
3303
+ "text/plain": string;
3304
+ };
3305
+ };
3306
+ /** @description Not Found */
3307
+ 404: {
3308
+ headers: {
3309
+ [name: string]: unknown;
3310
+ };
3311
+ content: {
3312
+ "text/plain": string;
3313
+ };
3314
+ };
3315
+ /** @description Unprocessable Entity */
3316
+ 422: {
3317
+ headers: {
3318
+ [name: string]: unknown;
3319
+ };
3320
+ content: {
3321
+ "text/plain": string;
3322
+ };
3323
+ };
3324
+ };
3325
+ };
2793
3326
  annotateSpans: {
2794
3327
  parameters: {
2795
3328
  query?: {
@@ -3585,4 +4118,155 @@ export interface operations {
3585
4118
  };
3586
4119
  };
3587
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
+ };
3588
4272
  }