@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.
- package/dist/esm/__generated__/api/v1.d.ts +687 -3
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/prompts/createPrompt.d.ts +9 -1
- package/dist/esm/prompts/createPrompt.d.ts.map +1 -1
- package/dist/esm/prompts/createPrompt.js +32 -0
- package/dist/esm/prompts/createPrompt.js.map +1 -1
- package/dist/esm/schemas/llm/anthropic/converters.d.ts +21 -21
- package/dist/esm/schemas/llm/constants.d.ts +294 -294
- package/dist/esm/schemas/llm/converters.d.ts +1176 -1176
- package/dist/esm/schemas/llm/openai/converters.d.ts +168 -168
- package/dist/esm/schemas/llm/openai/toolSchemas.d.ts +63 -63
- package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +21 -21
- package/dist/esm/schemas/llm/schemas.d.ts +63 -63
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/__generated__/api/v1.d.ts +687 -3
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/prompts/createPrompt.d.ts +9 -1
- package/dist/src/prompts/createPrompt.d.ts.map +1 -1
- package/dist/src/prompts/createPrompt.js +32 -0
- package/dist/src/prompts/createPrompt.js.map +1 -1
- package/dist/src/schemas/llm/anthropic/converters.d.ts +21 -21
- package/dist/src/schemas/llm/constants.d.ts +294 -294
- package/dist/src/schemas/llm/converters.d.ts +1176 -1176
- package/dist/src/schemas/llm/openai/converters.d.ts +168 -168
- package/dist/src/schemas/llm/openai/toolSchemas.d.ts +63 -63
- package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +21 -21
- package/dist/src/schemas/llm/schemas.d.ts +63 -63
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/__generated__/api/v1.ts +687 -3
- package/src/prompts/createPrompt.ts +45 -1
|
@@ -317,6 +317,26 @@ export interface paths {
|
|
|
317
317
|
patch?: never;
|
|
318
318
|
trace?: never;
|
|
319
319
|
};
|
|
320
|
+
"/v1/projects/{project_identifier}/spans/otlpv1": {
|
|
321
|
+
parameters: {
|
|
322
|
+
query?: never;
|
|
323
|
+
header?: never;
|
|
324
|
+
path?: never;
|
|
325
|
+
cookie?: never;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* Search spans with simple filters (no DSL)
|
|
329
|
+
* @description Return spans within a project filtered by time range, annotation names, and ordered by start_time. Supports cursor-based pagination.
|
|
330
|
+
*/
|
|
331
|
+
get: operations["spanSearch"];
|
|
332
|
+
put?: never;
|
|
333
|
+
post?: never;
|
|
334
|
+
delete?: never;
|
|
335
|
+
options?: never;
|
|
336
|
+
head?: never;
|
|
337
|
+
patch?: never;
|
|
338
|
+
trace?: never;
|
|
339
|
+
};
|
|
320
340
|
"/v1/span_annotations": {
|
|
321
341
|
parameters: {
|
|
322
342
|
query?: never;
|
|
@@ -532,6 +552,50 @@ export interface paths {
|
|
|
532
552
|
patch?: never;
|
|
533
553
|
trace?: never;
|
|
534
554
|
};
|
|
555
|
+
"/v1/users": {
|
|
556
|
+
parameters: {
|
|
557
|
+
query?: never;
|
|
558
|
+
header?: never;
|
|
559
|
+
path?: never;
|
|
560
|
+
cookie?: never;
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* List all users
|
|
564
|
+
* @description Retrieve a paginated list of all users in the system.
|
|
565
|
+
*/
|
|
566
|
+
get: operations["getUsers"];
|
|
567
|
+
put?: never;
|
|
568
|
+
/**
|
|
569
|
+
* Create a new user
|
|
570
|
+
* @description Create a new user with the specified configuration.
|
|
571
|
+
*/
|
|
572
|
+
post: operations["createUser"];
|
|
573
|
+
delete?: never;
|
|
574
|
+
options?: never;
|
|
575
|
+
head?: never;
|
|
576
|
+
patch?: never;
|
|
577
|
+
trace?: never;
|
|
578
|
+
};
|
|
579
|
+
"/v1/users/{user_id}": {
|
|
580
|
+
parameters: {
|
|
581
|
+
query?: never;
|
|
582
|
+
header?: never;
|
|
583
|
+
path?: never;
|
|
584
|
+
cookie?: never;
|
|
585
|
+
};
|
|
586
|
+
get?: never;
|
|
587
|
+
put?: never;
|
|
588
|
+
post?: never;
|
|
589
|
+
/**
|
|
590
|
+
* Delete a user by ID
|
|
591
|
+
* @description Delete an existing user by their unique GlobalID.
|
|
592
|
+
*/
|
|
593
|
+
delete: operations["deleteUser"];
|
|
594
|
+
options?: never;
|
|
595
|
+
head?: never;
|
|
596
|
+
patch?: never;
|
|
597
|
+
trace?: never;
|
|
598
|
+
};
|
|
535
599
|
}
|
|
536
600
|
export type webhooks = Record<string, never>;
|
|
537
601
|
export interface components {
|
|
@@ -738,6 +802,21 @@ export interface components {
|
|
|
738
802
|
CreatePromptResponseBody: {
|
|
739
803
|
data: components["schemas"]["PromptVersion"];
|
|
740
804
|
};
|
|
805
|
+
/** CreateUserRequestBody */
|
|
806
|
+
CreateUserRequestBody: {
|
|
807
|
+
/** User */
|
|
808
|
+
user: components["schemas"]["LocalUserData"] | components["schemas"]["OAuth2UserData"];
|
|
809
|
+
/**
|
|
810
|
+
* Send Welcome Email
|
|
811
|
+
* @default true
|
|
812
|
+
*/
|
|
813
|
+
send_welcome_email?: boolean;
|
|
814
|
+
};
|
|
815
|
+
/** CreateUserResponseBody */
|
|
816
|
+
CreateUserResponseBody: {
|
|
817
|
+
/** Data */
|
|
818
|
+
data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"];
|
|
819
|
+
};
|
|
741
820
|
/** Dataset */
|
|
742
821
|
Dataset: {
|
|
743
822
|
/** Id */
|
|
@@ -1026,6 +1105,13 @@ export interface components {
|
|
|
1026
1105
|
/** Next Cursor */
|
|
1027
1106
|
next_cursor: string | null;
|
|
1028
1107
|
};
|
|
1108
|
+
/** GetUsersResponseBody */
|
|
1109
|
+
GetUsersResponseBody: {
|
|
1110
|
+
/** Data */
|
|
1111
|
+
data: (components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"])[];
|
|
1112
|
+
/** Next Cursor */
|
|
1113
|
+
next_cursor: string | null;
|
|
1114
|
+
};
|
|
1029
1115
|
/** HTTPValidationError */
|
|
1030
1116
|
HTTPValidationError: {
|
|
1031
1117
|
/** Detail */
|
|
@@ -1078,16 +1164,317 @@ export interface components {
|
|
|
1078
1164
|
/** Data */
|
|
1079
1165
|
data: components["schemas"]["Experiment"][];
|
|
1080
1166
|
};
|
|
1167
|
+
/** LocalUser */
|
|
1168
|
+
LocalUser: {
|
|
1169
|
+
/** Id */
|
|
1170
|
+
id: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Created At
|
|
1173
|
+
* Format: date-time
|
|
1174
|
+
*/
|
|
1175
|
+
created_at: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* Updated At
|
|
1178
|
+
* Format: date-time
|
|
1179
|
+
*/
|
|
1180
|
+
updated_at: string;
|
|
1181
|
+
/** Email */
|
|
1182
|
+
email: string;
|
|
1183
|
+
/** Username */
|
|
1184
|
+
username: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* Role
|
|
1187
|
+
* @enum {string}
|
|
1188
|
+
*/
|
|
1189
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1190
|
+
/**
|
|
1191
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1192
|
+
* @enum {string}
|
|
1193
|
+
*/
|
|
1194
|
+
auth_method: "LOCAL";
|
|
1195
|
+
/** Password */
|
|
1196
|
+
password?: string;
|
|
1197
|
+
/** Password Needs Reset */
|
|
1198
|
+
password_needs_reset: boolean;
|
|
1199
|
+
};
|
|
1200
|
+
/** LocalUserData */
|
|
1201
|
+
LocalUserData: {
|
|
1202
|
+
/** Email */
|
|
1203
|
+
email: string;
|
|
1204
|
+
/** Username */
|
|
1205
|
+
username: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* Role
|
|
1208
|
+
* @enum {string}
|
|
1209
|
+
*/
|
|
1210
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1211
|
+
/**
|
|
1212
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1213
|
+
* @enum {string}
|
|
1214
|
+
*/
|
|
1215
|
+
auth_method: "LOCAL";
|
|
1216
|
+
/** Password */
|
|
1217
|
+
password?: string;
|
|
1218
|
+
};
|
|
1081
1219
|
/**
|
|
1082
1220
|
* ModelProvider
|
|
1083
1221
|
* @enum {string}
|
|
1084
1222
|
*/
|
|
1085
|
-
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE";
|
|
1223
|
+
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI";
|
|
1224
|
+
/** OAuth2User */
|
|
1225
|
+
OAuth2User: {
|
|
1226
|
+
/** Id */
|
|
1227
|
+
id: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* Created At
|
|
1230
|
+
* Format: date-time
|
|
1231
|
+
*/
|
|
1232
|
+
created_at: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Updated At
|
|
1235
|
+
* Format: date-time
|
|
1236
|
+
*/
|
|
1237
|
+
updated_at: string;
|
|
1238
|
+
/** Email */
|
|
1239
|
+
email: string;
|
|
1240
|
+
/** Username */
|
|
1241
|
+
username: string;
|
|
1242
|
+
/**
|
|
1243
|
+
* Role
|
|
1244
|
+
* @enum {string}
|
|
1245
|
+
*/
|
|
1246
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1247
|
+
/**
|
|
1248
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1249
|
+
* @enum {string}
|
|
1250
|
+
*/
|
|
1251
|
+
auth_method: "OAUTH2";
|
|
1252
|
+
/** Oauth2 Client Id */
|
|
1253
|
+
oauth2_client_id?: string;
|
|
1254
|
+
/** Oauth2 User Id */
|
|
1255
|
+
oauth2_user_id?: string;
|
|
1256
|
+
/** Profile Picture Url */
|
|
1257
|
+
profile_picture_url?: string;
|
|
1258
|
+
};
|
|
1259
|
+
/** OAuth2UserData */
|
|
1260
|
+
OAuth2UserData: {
|
|
1261
|
+
/** Email */
|
|
1262
|
+
email: string;
|
|
1263
|
+
/** Username */
|
|
1264
|
+
username: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* Role
|
|
1267
|
+
* @enum {string}
|
|
1268
|
+
*/
|
|
1269
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1270
|
+
/**
|
|
1271
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1272
|
+
* @enum {string}
|
|
1273
|
+
*/
|
|
1274
|
+
auth_method: "OAUTH2";
|
|
1275
|
+
/** Oauth2 Client Id */
|
|
1276
|
+
oauth2_client_id?: string;
|
|
1277
|
+
/** Oauth2 User Id */
|
|
1278
|
+
oauth2_user_id?: string;
|
|
1279
|
+
};
|
|
1086
1280
|
/**
|
|
1087
1281
|
* OptimizationDirection
|
|
1088
1282
|
* @enum {string}
|
|
1089
1283
|
*/
|
|
1090
1284
|
OptimizationDirection: "MINIMIZE" | "MAXIMIZE" | "NONE";
|
|
1285
|
+
/** OtlpAnyValue */
|
|
1286
|
+
OtlpAnyValue: {
|
|
1287
|
+
array_value?: components["schemas"]["OtlpArrayValue"] | null;
|
|
1288
|
+
/** Bool Value */
|
|
1289
|
+
bool_value?: boolean | null;
|
|
1290
|
+
/** Bytes Value */
|
|
1291
|
+
bytes_value?: string | null;
|
|
1292
|
+
/** Double Value */
|
|
1293
|
+
double_value?: number | components["schemas"]["OtlpDoubleValue"] | string | null;
|
|
1294
|
+
/** Int Value */
|
|
1295
|
+
int_value?: number | string | null;
|
|
1296
|
+
/** Kvlist Value */
|
|
1297
|
+
kvlist_value?: null;
|
|
1298
|
+
/** String Value */
|
|
1299
|
+
string_value?: string | null;
|
|
1300
|
+
};
|
|
1301
|
+
/** OtlpArrayValue */
|
|
1302
|
+
OtlpArrayValue: {
|
|
1303
|
+
/**
|
|
1304
|
+
* Values
|
|
1305
|
+
* @description Array of values. The array may be empty (contain 0 elements).
|
|
1306
|
+
*/
|
|
1307
|
+
values?: components["schemas"]["OtlpAnyValue"][] | null;
|
|
1308
|
+
};
|
|
1309
|
+
/**
|
|
1310
|
+
* OtlpDoubleValue
|
|
1311
|
+
* @enum {string}
|
|
1312
|
+
*/
|
|
1313
|
+
OtlpDoubleValue: "Infinity" | "-Infinity" | "NaN";
|
|
1314
|
+
/** OtlpEvent */
|
|
1315
|
+
OtlpEvent: {
|
|
1316
|
+
/**
|
|
1317
|
+
* Attributes
|
|
1318
|
+
* @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).
|
|
1319
|
+
*/
|
|
1320
|
+
attributes?: components["schemas"]["OtlpKeyValue"][] | null;
|
|
1321
|
+
/**
|
|
1322
|
+
* Dropped Attributes Count
|
|
1323
|
+
* @description dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.
|
|
1324
|
+
*/
|
|
1325
|
+
dropped_attributes_count?: number | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Name
|
|
1328
|
+
* @description name of the event. This field is semantically required to be set to non-empty string.
|
|
1329
|
+
*/
|
|
1330
|
+
name?: string | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* Time Unix Nano
|
|
1333
|
+
* @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.
|
|
1334
|
+
*/
|
|
1335
|
+
time_unix_nano?: number | string | null;
|
|
1336
|
+
};
|
|
1337
|
+
/** OtlpKeyValue */
|
|
1338
|
+
OtlpKeyValue: {
|
|
1339
|
+
/** Key */
|
|
1340
|
+
key?: string | null;
|
|
1341
|
+
value?: components["schemas"]["OtlpAnyValue"] | null;
|
|
1342
|
+
};
|
|
1343
|
+
/**
|
|
1344
|
+
* OtlpKind
|
|
1345
|
+
* @enum {string}
|
|
1346
|
+
*/
|
|
1347
|
+
OtlpKind: "SPAN_KIND_UNSPECIFIED" | "SPAN_KIND_INTERNAL" | "SPAN_KIND_SERVER" | "SPAN_KIND_CLIENT" | "SPAN_KIND_PRODUCER" | "SPAN_KIND_CONSUMER";
|
|
1348
|
+
/** OtlpSpan */
|
|
1349
|
+
OtlpSpan: {
|
|
1350
|
+
/**
|
|
1351
|
+
* Attributes
|
|
1352
|
+
* @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:
|
|
1353
|
+
*
|
|
1354
|
+
* "/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"
|
|
1355
|
+
* "/http/server_latency": 300
|
|
1356
|
+
* "example.com/myattribute": true
|
|
1357
|
+
* "example.com/score": 10.239
|
|
1358
|
+
*
|
|
1359
|
+
* The OpenTelemetry API specification further restricts the allowed value types:
|
|
1360
|
+
* https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
|
|
1361
|
+
* Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
|
|
1362
|
+
*/
|
|
1363
|
+
attributes?: components["schemas"]["OtlpKeyValue"][] | null;
|
|
1364
|
+
/**
|
|
1365
|
+
* Dropped Attributes Count
|
|
1366
|
+
* @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.
|
|
1367
|
+
*/
|
|
1368
|
+
dropped_attributes_count?: number | null;
|
|
1369
|
+
/**
|
|
1370
|
+
* Dropped Events Count
|
|
1371
|
+
* @description dropped_events_count is the number of dropped events. If the value is 0, then no events were dropped.
|
|
1372
|
+
*/
|
|
1373
|
+
dropped_events_count?: number | null;
|
|
1374
|
+
/**
|
|
1375
|
+
* Dropped Links Count
|
|
1376
|
+
* @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.
|
|
1377
|
+
*/
|
|
1378
|
+
dropped_links_count?: number | null;
|
|
1379
|
+
/**
|
|
1380
|
+
* End Time Unix Nano
|
|
1381
|
+
* @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.
|
|
1382
|
+
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
|
|
1383
|
+
*
|
|
1384
|
+
* This field is semantically required and it is expected that end_time >= start_time.
|
|
1385
|
+
*/
|
|
1386
|
+
end_time_unix_nano?: number | string | null;
|
|
1387
|
+
/**
|
|
1388
|
+
* Events
|
|
1389
|
+
* @description events is a collection of Event items. A span with no events is valid.
|
|
1390
|
+
*/
|
|
1391
|
+
events?: components["schemas"]["OtlpEvent"][] | null;
|
|
1392
|
+
/**
|
|
1393
|
+
* Flags
|
|
1394
|
+
* @description Flags, a bit field.
|
|
1395
|
+
*
|
|
1396
|
+
* 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`.
|
|
1397
|
+
*
|
|
1398
|
+
* See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
|
|
1399
|
+
*
|
|
1400
|
+
* 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).
|
|
1401
|
+
* To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
|
|
1402
|
+
* To read whether the span is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
|
|
1403
|
+
*
|
|
1404
|
+
* 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.
|
|
1405
|
+
* Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
|
|
1406
|
+
*
|
|
1407
|
+
* [Optional].
|
|
1408
|
+
*/
|
|
1409
|
+
flags?: number | null;
|
|
1410
|
+
/**
|
|
1411
|
+
* Kind
|
|
1412
|
+
* @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.
|
|
1413
|
+
* @default SPAN_KIND_INTERNAL
|
|
1414
|
+
*/
|
|
1415
|
+
kind?: components["schemas"]["OtlpKind"] | number | null;
|
|
1416
|
+
/** Links */
|
|
1417
|
+
links?: null;
|
|
1418
|
+
/**
|
|
1419
|
+
* Name
|
|
1420
|
+
* @description A description of the span's operation.
|
|
1421
|
+
*
|
|
1422
|
+
* 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.
|
|
1423
|
+
*
|
|
1424
|
+
* This field is semantically required to be set to non-empty string. Empty value is equivalent to an unknown span name.
|
|
1425
|
+
*
|
|
1426
|
+
* This field is required.
|
|
1427
|
+
*/
|
|
1428
|
+
name?: string | null;
|
|
1429
|
+
/**
|
|
1430
|
+
* Parent Span Id
|
|
1431
|
+
* @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.
|
|
1432
|
+
*/
|
|
1433
|
+
parent_span_id?: string | null;
|
|
1434
|
+
/**
|
|
1435
|
+
* Span Id
|
|
1436
|
+
* @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).
|
|
1437
|
+
*
|
|
1438
|
+
* This field is required.
|
|
1439
|
+
*/
|
|
1440
|
+
span_id?: string | null;
|
|
1441
|
+
/**
|
|
1442
|
+
* Start Time Unix Nano
|
|
1443
|
+
* @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.
|
|
1444
|
+
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
|
|
1445
|
+
*
|
|
1446
|
+
* This field is semantically required and it is expected that end_time >= start_time.
|
|
1447
|
+
*/
|
|
1448
|
+
start_time_unix_nano?: number | string | null;
|
|
1449
|
+
/** @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). */
|
|
1450
|
+
status?: components["schemas"]["OtlpStatus"] | null;
|
|
1451
|
+
/**
|
|
1452
|
+
* Trace Id
|
|
1453
|
+
* @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).
|
|
1454
|
+
*
|
|
1455
|
+
* This field is required.
|
|
1456
|
+
*/
|
|
1457
|
+
trace_id?: string | null;
|
|
1458
|
+
/**
|
|
1459
|
+
* Trace State
|
|
1460
|
+
* @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
|
|
1461
|
+
* See also https://github.com/w3c/distributed-tracing for more details about this field.
|
|
1462
|
+
*/
|
|
1463
|
+
trace_state?: string | null;
|
|
1464
|
+
};
|
|
1465
|
+
/** OtlpStatus */
|
|
1466
|
+
OtlpStatus: {
|
|
1467
|
+
/**
|
|
1468
|
+
* Code
|
|
1469
|
+
* @description The status code.
|
|
1470
|
+
*/
|
|
1471
|
+
code?: number | null;
|
|
1472
|
+
/**
|
|
1473
|
+
* Message
|
|
1474
|
+
* @description A developer-facing human readable error message.
|
|
1475
|
+
*/
|
|
1476
|
+
message?: string | null;
|
|
1477
|
+
};
|
|
1091
1478
|
/** Project */
|
|
1092
1479
|
Project: {
|
|
1093
1480
|
/** Name */
|
|
@@ -1196,6 +1583,37 @@ export interface components {
|
|
|
1196
1583
|
/** Source Prompt Id */
|
|
1197
1584
|
source_prompt_id?: string | null;
|
|
1198
1585
|
};
|
|
1586
|
+
/** PromptDeepSeekInvocationParameters */
|
|
1587
|
+
PromptDeepSeekInvocationParameters: {
|
|
1588
|
+
/**
|
|
1589
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1590
|
+
* @enum {string}
|
|
1591
|
+
*/
|
|
1592
|
+
type: "deepseek";
|
|
1593
|
+
deepseek: components["schemas"]["PromptDeepSeekInvocationParametersContent"];
|
|
1594
|
+
};
|
|
1595
|
+
/** PromptDeepSeekInvocationParametersContent */
|
|
1596
|
+
PromptDeepSeekInvocationParametersContent: {
|
|
1597
|
+
/** Temperature */
|
|
1598
|
+
temperature?: number;
|
|
1599
|
+
/** Max Tokens */
|
|
1600
|
+
max_tokens?: number;
|
|
1601
|
+
/** Max Completion Tokens */
|
|
1602
|
+
max_completion_tokens?: number;
|
|
1603
|
+
/** Frequency Penalty */
|
|
1604
|
+
frequency_penalty?: number;
|
|
1605
|
+
/** Presence Penalty */
|
|
1606
|
+
presence_penalty?: number;
|
|
1607
|
+
/** Top P */
|
|
1608
|
+
top_p?: number;
|
|
1609
|
+
/** Seed */
|
|
1610
|
+
seed?: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* Reasoning Effort
|
|
1613
|
+
* @enum {string}
|
|
1614
|
+
*/
|
|
1615
|
+
reasoning_effort?: "low" | "medium" | "high";
|
|
1616
|
+
};
|
|
1199
1617
|
/** PromptGoogleInvocationParameters */
|
|
1200
1618
|
PromptGoogleInvocationParameters: {
|
|
1201
1619
|
/**
|
|
@@ -1387,7 +1805,7 @@ export interface components {
|
|
|
1387
1805
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
1388
1806
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
1389
1807
|
/** Invocation Parameters */
|
|
1390
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"];
|
|
1808
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
|
|
1391
1809
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
1392
1810
|
/** Response Format */
|
|
1393
1811
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -1406,7 +1824,7 @@ export interface components {
|
|
|
1406
1824
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
1407
1825
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
1408
1826
|
/** Invocation Parameters */
|
|
1409
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"];
|
|
1827
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
|
|
1410
1828
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
1411
1829
|
/** Response Format */
|
|
1412
1830
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -1425,6 +1843,37 @@ export interface components {
|
|
|
1425
1843
|
/** Description */
|
|
1426
1844
|
description?: string | null;
|
|
1427
1845
|
};
|
|
1846
|
+
/** PromptXAIInvocationParameters */
|
|
1847
|
+
PromptXAIInvocationParameters: {
|
|
1848
|
+
/**
|
|
1849
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1850
|
+
* @enum {string}
|
|
1851
|
+
*/
|
|
1852
|
+
type: "xai";
|
|
1853
|
+
xai: components["schemas"]["PromptXAIInvocationParametersContent"];
|
|
1854
|
+
};
|
|
1855
|
+
/** PromptXAIInvocationParametersContent */
|
|
1856
|
+
PromptXAIInvocationParametersContent: {
|
|
1857
|
+
/** Temperature */
|
|
1858
|
+
temperature?: number;
|
|
1859
|
+
/** Max Tokens */
|
|
1860
|
+
max_tokens?: number;
|
|
1861
|
+
/** Max Completion Tokens */
|
|
1862
|
+
max_completion_tokens?: number;
|
|
1863
|
+
/** Frequency Penalty */
|
|
1864
|
+
frequency_penalty?: number;
|
|
1865
|
+
/** Presence Penalty */
|
|
1866
|
+
presence_penalty?: number;
|
|
1867
|
+
/** Top P */
|
|
1868
|
+
top_p?: number;
|
|
1869
|
+
/** Seed */
|
|
1870
|
+
seed?: number;
|
|
1871
|
+
/**
|
|
1872
|
+
* Reasoning Effort
|
|
1873
|
+
* @enum {string}
|
|
1874
|
+
*/
|
|
1875
|
+
reasoning_effort?: "low" | "medium" | "high";
|
|
1876
|
+
};
|
|
1428
1877
|
/** SpanAnnotation */
|
|
1429
1878
|
SpanAnnotation: {
|
|
1430
1879
|
/**
|
|
@@ -1537,6 +1986,16 @@ export interface components {
|
|
|
1537
1986
|
/** Next Cursor */
|
|
1538
1987
|
next_cursor: string | null;
|
|
1539
1988
|
};
|
|
1989
|
+
/**
|
|
1990
|
+
* SpanSearchResponseBody
|
|
1991
|
+
* @description Paginated response where each span follows OTLP JSON structure.
|
|
1992
|
+
*/
|
|
1993
|
+
SpanSearchResponseBody: {
|
|
1994
|
+
/** Data */
|
|
1995
|
+
data: components["schemas"]["OtlpSpan"][];
|
|
1996
|
+
/** Next Cursor */
|
|
1997
|
+
next_cursor: string | null;
|
|
1998
|
+
};
|
|
1540
1999
|
/** TextContentPart */
|
|
1541
2000
|
TextContentPart: {
|
|
1542
2001
|
/**
|
|
@@ -1603,6 +2062,8 @@ export interface components {
|
|
|
1603
2062
|
UploadDatasetData: {
|
|
1604
2063
|
/** Dataset Id */
|
|
1605
2064
|
dataset_id: string;
|
|
2065
|
+
/** Version Id */
|
|
2066
|
+
version_id: string;
|
|
1606
2067
|
};
|
|
1607
2068
|
/** UploadDatasetResponseBody */
|
|
1608
2069
|
UploadDatasetResponseBody: {
|
|
@@ -2727,6 +3188,15 @@ export interface operations {
|
|
|
2727
3188
|
"text/plain": string;
|
|
2728
3189
|
};
|
|
2729
3190
|
};
|
|
3191
|
+
/** @description This experiment run has already been submitted */
|
|
3192
|
+
409: {
|
|
3193
|
+
headers: {
|
|
3194
|
+
[name: string]: unknown;
|
|
3195
|
+
};
|
|
3196
|
+
content: {
|
|
3197
|
+
"text/plain": string;
|
|
3198
|
+
};
|
|
3199
|
+
};
|
|
2730
3200
|
/** @description Validation Error */
|
|
2731
3201
|
422: {
|
|
2732
3202
|
headers: {
|
|
@@ -2789,6 +3259,69 @@ export interface operations {
|
|
|
2789
3259
|
};
|
|
2790
3260
|
};
|
|
2791
3261
|
};
|
|
3262
|
+
spanSearch: {
|
|
3263
|
+
parameters: {
|
|
3264
|
+
query?: {
|
|
3265
|
+
/** @description Pagination cursor (GlobalID of Span) */
|
|
3266
|
+
cursor?: string | null;
|
|
3267
|
+
/** @description Maximum number of spans to return */
|
|
3268
|
+
limit?: number;
|
|
3269
|
+
/** @description Sort direction for the sort field */
|
|
3270
|
+
sort_direction?: "asc" | "desc";
|
|
3271
|
+
/** @description Inclusive lower bound time */
|
|
3272
|
+
start_time?: string | null;
|
|
3273
|
+
/** @description Exclusive upper bound time */
|
|
3274
|
+
end_time?: string | null;
|
|
3275
|
+
/** @description If provided, only include spans that have at least one annotation with one of these names. */
|
|
3276
|
+
annotationNames?: string[] | null;
|
|
3277
|
+
};
|
|
3278
|
+
header?: never;
|
|
3279
|
+
path: {
|
|
3280
|
+
/** @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. */
|
|
3281
|
+
project_identifier: string;
|
|
3282
|
+
};
|
|
3283
|
+
cookie?: never;
|
|
3284
|
+
};
|
|
3285
|
+
requestBody?: never;
|
|
3286
|
+
responses: {
|
|
3287
|
+
/** @description Successful Response */
|
|
3288
|
+
200: {
|
|
3289
|
+
headers: {
|
|
3290
|
+
[name: string]: unknown;
|
|
3291
|
+
};
|
|
3292
|
+
content: {
|
|
3293
|
+
"application/json": components["schemas"]["SpanSearchResponseBody"];
|
|
3294
|
+
};
|
|
3295
|
+
};
|
|
3296
|
+
/** @description Forbidden */
|
|
3297
|
+
403: {
|
|
3298
|
+
headers: {
|
|
3299
|
+
[name: string]: unknown;
|
|
3300
|
+
};
|
|
3301
|
+
content: {
|
|
3302
|
+
"text/plain": string;
|
|
3303
|
+
};
|
|
3304
|
+
};
|
|
3305
|
+
/** @description Not Found */
|
|
3306
|
+
404: {
|
|
3307
|
+
headers: {
|
|
3308
|
+
[name: string]: unknown;
|
|
3309
|
+
};
|
|
3310
|
+
content: {
|
|
3311
|
+
"text/plain": string;
|
|
3312
|
+
};
|
|
3313
|
+
};
|
|
3314
|
+
/** @description Unprocessable Entity */
|
|
3315
|
+
422: {
|
|
3316
|
+
headers: {
|
|
3317
|
+
[name: string]: unknown;
|
|
3318
|
+
};
|
|
3319
|
+
content: {
|
|
3320
|
+
"text/plain": string;
|
|
3321
|
+
};
|
|
3322
|
+
};
|
|
3323
|
+
};
|
|
3324
|
+
};
|
|
2792
3325
|
annotateSpans: {
|
|
2793
3326
|
parameters: {
|
|
2794
3327
|
query?: {
|
|
@@ -3584,5 +4117,156 @@ export interface operations {
|
|
|
3584
4117
|
};
|
|
3585
4118
|
};
|
|
3586
4119
|
};
|
|
4120
|
+
getUsers: {
|
|
4121
|
+
parameters: {
|
|
4122
|
+
query?: {
|
|
4123
|
+
/** @description Cursor for pagination (base64-encoded user ID) */
|
|
4124
|
+
cursor?: string;
|
|
4125
|
+
/** @description The max number of users to return at a time. */
|
|
4126
|
+
limit?: number;
|
|
4127
|
+
};
|
|
4128
|
+
header?: never;
|
|
4129
|
+
path?: never;
|
|
4130
|
+
cookie?: never;
|
|
4131
|
+
};
|
|
4132
|
+
requestBody?: never;
|
|
4133
|
+
responses: {
|
|
4134
|
+
/** @description A list of users. */
|
|
4135
|
+
200: {
|
|
4136
|
+
headers: {
|
|
4137
|
+
[name: string]: unknown;
|
|
4138
|
+
};
|
|
4139
|
+
content: {
|
|
4140
|
+
"application/json": components["schemas"]["GetUsersResponseBody"];
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
/** @description Forbidden */
|
|
4144
|
+
403: {
|
|
4145
|
+
headers: {
|
|
4146
|
+
[name: string]: unknown;
|
|
4147
|
+
};
|
|
4148
|
+
content: {
|
|
4149
|
+
"text/plain": string;
|
|
4150
|
+
};
|
|
4151
|
+
};
|
|
4152
|
+
/** @description Unprocessable Entity */
|
|
4153
|
+
422: {
|
|
4154
|
+
headers: {
|
|
4155
|
+
[name: string]: unknown;
|
|
4156
|
+
};
|
|
4157
|
+
content: {
|
|
4158
|
+
"text/plain": string;
|
|
4159
|
+
};
|
|
4160
|
+
};
|
|
4161
|
+
};
|
|
4162
|
+
};
|
|
4163
|
+
createUser: {
|
|
4164
|
+
parameters: {
|
|
4165
|
+
query?: never;
|
|
4166
|
+
header?: never;
|
|
4167
|
+
path?: never;
|
|
4168
|
+
cookie?: never;
|
|
4169
|
+
};
|
|
4170
|
+
requestBody: {
|
|
4171
|
+
content: {
|
|
4172
|
+
"application/json": components["schemas"]["CreateUserRequestBody"];
|
|
4173
|
+
};
|
|
4174
|
+
};
|
|
4175
|
+
responses: {
|
|
4176
|
+
/** @description The newly created user. */
|
|
4177
|
+
201: {
|
|
4178
|
+
headers: {
|
|
4179
|
+
[name: string]: unknown;
|
|
4180
|
+
};
|
|
4181
|
+
content: {
|
|
4182
|
+
"application/json": components["schemas"]["CreateUserResponseBody"];
|
|
4183
|
+
};
|
|
4184
|
+
};
|
|
4185
|
+
/** @description Role not found. */
|
|
4186
|
+
400: {
|
|
4187
|
+
headers: {
|
|
4188
|
+
[name: string]: unknown;
|
|
4189
|
+
};
|
|
4190
|
+
content: {
|
|
4191
|
+
"text/plain": string;
|
|
4192
|
+
};
|
|
4193
|
+
};
|
|
4194
|
+
/** @description Forbidden */
|
|
4195
|
+
403: {
|
|
4196
|
+
headers: {
|
|
4197
|
+
[name: string]: unknown;
|
|
4198
|
+
};
|
|
4199
|
+
content: {
|
|
4200
|
+
"text/plain": string;
|
|
4201
|
+
};
|
|
4202
|
+
};
|
|
4203
|
+
/** @description Username or email already exists. */
|
|
4204
|
+
409: {
|
|
4205
|
+
headers: {
|
|
4206
|
+
[name: string]: unknown;
|
|
4207
|
+
};
|
|
4208
|
+
content: {
|
|
4209
|
+
"text/plain": string;
|
|
4210
|
+
};
|
|
4211
|
+
};
|
|
4212
|
+
/** @description Unprocessable Entity */
|
|
4213
|
+
422: {
|
|
4214
|
+
headers: {
|
|
4215
|
+
[name: string]: unknown;
|
|
4216
|
+
};
|
|
4217
|
+
content: {
|
|
4218
|
+
"text/plain": string;
|
|
4219
|
+
};
|
|
4220
|
+
};
|
|
4221
|
+
};
|
|
4222
|
+
};
|
|
4223
|
+
deleteUser: {
|
|
4224
|
+
parameters: {
|
|
4225
|
+
query?: never;
|
|
4226
|
+
header?: never;
|
|
4227
|
+
path: {
|
|
4228
|
+
/** @description The GlobalID of the user (e.g. 'VXNlcjox'). */
|
|
4229
|
+
user_id: string;
|
|
4230
|
+
};
|
|
4231
|
+
cookie?: never;
|
|
4232
|
+
};
|
|
4233
|
+
requestBody?: never;
|
|
4234
|
+
responses: {
|
|
4235
|
+
/** @description No content returned on successful deletion. */
|
|
4236
|
+
204: {
|
|
4237
|
+
headers: {
|
|
4238
|
+
[name: string]: unknown;
|
|
4239
|
+
};
|
|
4240
|
+
content?: never;
|
|
4241
|
+
};
|
|
4242
|
+
/** @description Cannot delete the default admin or system user */
|
|
4243
|
+
403: {
|
|
4244
|
+
headers: {
|
|
4245
|
+
[name: string]: unknown;
|
|
4246
|
+
};
|
|
4247
|
+
content: {
|
|
4248
|
+
"text/plain": string;
|
|
4249
|
+
};
|
|
4250
|
+
};
|
|
4251
|
+
/** @description User not found. */
|
|
4252
|
+
404: {
|
|
4253
|
+
headers: {
|
|
4254
|
+
[name: string]: unknown;
|
|
4255
|
+
};
|
|
4256
|
+
content: {
|
|
4257
|
+
"text/plain": string;
|
|
4258
|
+
};
|
|
4259
|
+
};
|
|
4260
|
+
/** @description Unprocessable Entity */
|
|
4261
|
+
422: {
|
|
4262
|
+
headers: {
|
|
4263
|
+
[name: string]: unknown;
|
|
4264
|
+
};
|
|
4265
|
+
content: {
|
|
4266
|
+
"text/plain": string;
|
|
4267
|
+
};
|
|
4268
|
+
};
|
|
4269
|
+
};
|
|
4270
|
+
};
|
|
3587
4271
|
}
|
|
3588
4272
|
//# sourceMappingURL=v1.d.ts.map
|