@arizeai/phoenix-client 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/__generated__/api/v1.d.ts +687 -16
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/prompts/constants.d.ts.map +1 -1
- package/dist/esm/prompts/constants.js +4 -0
- package/dist/esm/prompts/constants.js.map +1 -1
- package/dist/esm/prompts/createPrompt.d.ts +15 -3
- package/dist/esm/prompts/createPrompt.d.ts.map +1 -1
- package/dist/esm/prompts/createPrompt.js +48 -0
- package/dist/esm/prompts/createPrompt.js.map +1 -1
- package/dist/esm/spans/getSpanAnnotations.d.ts +78 -0
- package/dist/esm/spans/getSpanAnnotations.d.ts.map +1 -0
- package/dist/esm/spans/getSpanAnnotations.js +83 -0
- package/dist/esm/spans/getSpanAnnotations.js.map +1 -0
- package/dist/esm/spans/getSpans.d.ts +78 -0
- package/dist/esm/spans/getSpans.d.ts.map +1 -0
- package/dist/esm/spans/getSpans.js +85 -0
- package/dist/esm/spans/getSpans.js.map +1 -0
- package/dist/esm/spans/index.d.ts +2 -0
- package/dist/esm/spans/index.d.ts.map +1 -1
- package/dist/esm/spans/index.js +2 -0
- package/dist/esm/spans/index.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/types/projects.d.ts +10 -0
- package/dist/esm/types/projects.d.ts.map +1 -0
- package/dist/esm/types/projects.js +2 -0
- package/dist/esm/types/projects.js.map +1 -0
- package/dist/esm/types/prompts.d.ts +17 -1
- package/dist/esm/types/prompts.d.ts.map +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 -16
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/prompts/constants.d.ts.map +1 -1
- package/dist/src/prompts/constants.js +4 -0
- package/dist/src/prompts/constants.js.map +1 -1
- package/dist/src/prompts/createPrompt.d.ts +15 -3
- package/dist/src/prompts/createPrompt.d.ts.map +1 -1
- package/dist/src/prompts/createPrompt.js +48 -0
- package/dist/src/prompts/createPrompt.js.map +1 -1
- package/dist/src/spans/getSpanAnnotations.d.ts +78 -0
- package/dist/src/spans/getSpanAnnotations.d.ts.map +1 -0
- package/dist/src/spans/getSpanAnnotations.js +98 -0
- package/dist/src/spans/getSpanAnnotations.js.map +1 -0
- package/dist/src/spans/getSpans.d.ts +78 -0
- package/dist/src/spans/getSpans.d.ts.map +1 -0
- package/dist/src/spans/getSpans.js +100 -0
- package/dist/src/spans/getSpans.js.map +1 -0
- package/dist/src/spans/index.d.ts +2 -0
- package/dist/src/spans/index.d.ts.map +1 -1
- package/dist/src/spans/index.js +2 -0
- package/dist/src/spans/index.js.map +1 -1
- package/dist/src/types/projects.d.ts +10 -0
- package/dist/src/types/projects.d.ts.map +1 -0
- package/dist/src/types/projects.js +3 -0
- package/dist/src/types/projects.js.map +1 -0
- package/dist/src/types/prompts.d.ts +17 -1
- package/dist/src/types/prompts.d.ts.map +1 -1
- 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 -16
- package/src/prompts/constants.ts +4 -0
- package/src/prompts/createPrompt.ts +72 -2
- package/src/spans/getSpanAnnotations.ts +131 -0
- package/src/spans/getSpans.ts +127 -0
- package/src/spans/index.ts +2 -0
- package/src/types/projects.ts +5 -0
- package/src/types/prompts.ts +29 -1
|
@@ -326,7 +326,7 @@ export interface paths {
|
|
|
326
326
|
};
|
|
327
327
|
/**
|
|
328
328
|
* Search spans with simple filters (no DSL)
|
|
329
|
-
* @description Return spans within a project filtered by time range
|
|
329
|
+
* @description Return spans within a project filtered by time range. Supports cursor-based pagination.
|
|
330
330
|
*/
|
|
331
331
|
get: operations["spanSearch"];
|
|
332
332
|
put?: never;
|
|
@@ -337,6 +337,30 @@ export interface paths {
|
|
|
337
337
|
patch?: never;
|
|
338
338
|
trace?: never;
|
|
339
339
|
};
|
|
340
|
+
"/v1/projects/{project_identifier}/spans": {
|
|
341
|
+
parameters: {
|
|
342
|
+
query?: never;
|
|
343
|
+
header?: never;
|
|
344
|
+
path?: never;
|
|
345
|
+
cookie?: never;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* List spans with simple filters (no DSL)
|
|
349
|
+
* @description Return spans within a project filtered by time range. Supports cursor-based pagination.
|
|
350
|
+
*/
|
|
351
|
+
get: operations["getSpans"];
|
|
352
|
+
put?: never;
|
|
353
|
+
/**
|
|
354
|
+
* Create spans
|
|
355
|
+
* @description Submit spans to be inserted into a project. If any spans are invalid or duplicates, no spans will be inserted.
|
|
356
|
+
*/
|
|
357
|
+
post: operations["createSpans"];
|
|
358
|
+
delete?: never;
|
|
359
|
+
options?: never;
|
|
360
|
+
head?: never;
|
|
361
|
+
patch?: never;
|
|
362
|
+
trace?: never;
|
|
363
|
+
};
|
|
340
364
|
"/v1/span_annotations": {
|
|
341
365
|
parameters: {
|
|
342
366
|
query?: never;
|
|
@@ -552,6 +576,50 @@ export interface paths {
|
|
|
552
576
|
patch?: never;
|
|
553
577
|
trace?: never;
|
|
554
578
|
};
|
|
579
|
+
"/v1/users": {
|
|
580
|
+
parameters: {
|
|
581
|
+
query?: never;
|
|
582
|
+
header?: never;
|
|
583
|
+
path?: never;
|
|
584
|
+
cookie?: never;
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* List all users
|
|
588
|
+
* @description Retrieve a paginated list of all users in the system.
|
|
589
|
+
*/
|
|
590
|
+
get: operations["getUsers"];
|
|
591
|
+
put?: never;
|
|
592
|
+
/**
|
|
593
|
+
* Create a new user
|
|
594
|
+
* @description Create a new user with the specified configuration.
|
|
595
|
+
*/
|
|
596
|
+
post: operations["createUser"];
|
|
597
|
+
delete?: never;
|
|
598
|
+
options?: never;
|
|
599
|
+
head?: never;
|
|
600
|
+
patch?: never;
|
|
601
|
+
trace?: never;
|
|
602
|
+
};
|
|
603
|
+
"/v1/users/{user_id}": {
|
|
604
|
+
parameters: {
|
|
605
|
+
query?: never;
|
|
606
|
+
header?: never;
|
|
607
|
+
path?: never;
|
|
608
|
+
cookie?: never;
|
|
609
|
+
};
|
|
610
|
+
get?: never;
|
|
611
|
+
put?: never;
|
|
612
|
+
post?: never;
|
|
613
|
+
/**
|
|
614
|
+
* Delete a user by ID
|
|
615
|
+
* @description Delete an existing user by their unique GlobalID.
|
|
616
|
+
*/
|
|
617
|
+
delete: operations["deleteUser"];
|
|
618
|
+
options?: never;
|
|
619
|
+
head?: never;
|
|
620
|
+
patch?: never;
|
|
621
|
+
trace?: never;
|
|
622
|
+
};
|
|
555
623
|
}
|
|
556
624
|
export type webhooks = Record<string, never>;
|
|
557
625
|
export interface components {
|
|
@@ -758,6 +826,39 @@ export interface components {
|
|
|
758
826
|
CreatePromptResponseBody: {
|
|
759
827
|
data: components["schemas"]["PromptVersion"];
|
|
760
828
|
};
|
|
829
|
+
/** CreateSpansRequestBody */
|
|
830
|
+
CreateSpansRequestBody: {
|
|
831
|
+
/** Data */
|
|
832
|
+
data: components["schemas"]["Span"][];
|
|
833
|
+
};
|
|
834
|
+
/** CreateSpansResponseBody */
|
|
835
|
+
CreateSpansResponseBody: {
|
|
836
|
+
/**
|
|
837
|
+
* Total Received
|
|
838
|
+
* @description Total number of spans received
|
|
839
|
+
*/
|
|
840
|
+
total_received: number;
|
|
841
|
+
/**
|
|
842
|
+
* Total Queued
|
|
843
|
+
* @description Number of spans successfully queued for insertion
|
|
844
|
+
*/
|
|
845
|
+
total_queued: number;
|
|
846
|
+
};
|
|
847
|
+
/** CreateUserRequestBody */
|
|
848
|
+
CreateUserRequestBody: {
|
|
849
|
+
/** User */
|
|
850
|
+
user: components["schemas"]["LocalUserData"] | components["schemas"]["OAuth2UserData"];
|
|
851
|
+
/**
|
|
852
|
+
* Send Welcome Email
|
|
853
|
+
* @default true
|
|
854
|
+
*/
|
|
855
|
+
send_welcome_email?: boolean;
|
|
856
|
+
};
|
|
857
|
+
/** CreateUserResponseBody */
|
|
858
|
+
CreateUserResponseBody: {
|
|
859
|
+
/** Data */
|
|
860
|
+
data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"];
|
|
861
|
+
};
|
|
761
862
|
/** Dataset */
|
|
762
863
|
Dataset: {
|
|
763
864
|
/** Id */
|
|
@@ -1046,6 +1147,13 @@ export interface components {
|
|
|
1046
1147
|
/** Next Cursor */
|
|
1047
1148
|
next_cursor: string | null;
|
|
1048
1149
|
};
|
|
1150
|
+
/** GetUsersResponseBody */
|
|
1151
|
+
GetUsersResponseBody: {
|
|
1152
|
+
/** Data */
|
|
1153
|
+
data: (components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"])[];
|
|
1154
|
+
/** Next Cursor */
|
|
1155
|
+
next_cursor: string | null;
|
|
1156
|
+
};
|
|
1049
1157
|
/** HTTPValidationError */
|
|
1050
1158
|
HTTPValidationError: {
|
|
1051
1159
|
/** Detail */
|
|
@@ -1098,11 +1206,119 @@ export interface components {
|
|
|
1098
1206
|
/** Data */
|
|
1099
1207
|
data: components["schemas"]["Experiment"][];
|
|
1100
1208
|
};
|
|
1209
|
+
/** LocalUser */
|
|
1210
|
+
LocalUser: {
|
|
1211
|
+
/** Id */
|
|
1212
|
+
id: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* Created At
|
|
1215
|
+
* Format: date-time
|
|
1216
|
+
*/
|
|
1217
|
+
created_at: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Updated At
|
|
1220
|
+
* Format: date-time
|
|
1221
|
+
*/
|
|
1222
|
+
updated_at: string;
|
|
1223
|
+
/** Email */
|
|
1224
|
+
email: string;
|
|
1225
|
+
/** Username */
|
|
1226
|
+
username: string;
|
|
1227
|
+
/**
|
|
1228
|
+
* Role
|
|
1229
|
+
* @enum {string}
|
|
1230
|
+
*/
|
|
1231
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1232
|
+
/**
|
|
1233
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1234
|
+
* @enum {string}
|
|
1235
|
+
*/
|
|
1236
|
+
auth_method: "LOCAL";
|
|
1237
|
+
/** Password */
|
|
1238
|
+
password?: string;
|
|
1239
|
+
/** Password Needs Reset */
|
|
1240
|
+
password_needs_reset: boolean;
|
|
1241
|
+
};
|
|
1242
|
+
/** LocalUserData */
|
|
1243
|
+
LocalUserData: {
|
|
1244
|
+
/** Email */
|
|
1245
|
+
email: string;
|
|
1246
|
+
/** Username */
|
|
1247
|
+
username: string;
|
|
1248
|
+
/**
|
|
1249
|
+
* Role
|
|
1250
|
+
* @enum {string}
|
|
1251
|
+
*/
|
|
1252
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1253
|
+
/**
|
|
1254
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1255
|
+
* @enum {string}
|
|
1256
|
+
*/
|
|
1257
|
+
auth_method: "LOCAL";
|
|
1258
|
+
/** Password */
|
|
1259
|
+
password?: string;
|
|
1260
|
+
};
|
|
1101
1261
|
/**
|
|
1102
1262
|
* ModelProvider
|
|
1103
1263
|
* @enum {string}
|
|
1104
1264
|
*/
|
|
1105
|
-
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK";
|
|
1265
|
+
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI" | "OLLAMA" | "AWS";
|
|
1266
|
+
/** OAuth2User */
|
|
1267
|
+
OAuth2User: {
|
|
1268
|
+
/** Id */
|
|
1269
|
+
id: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* Created At
|
|
1272
|
+
* Format: date-time
|
|
1273
|
+
*/
|
|
1274
|
+
created_at: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* Updated At
|
|
1277
|
+
* Format: date-time
|
|
1278
|
+
*/
|
|
1279
|
+
updated_at: string;
|
|
1280
|
+
/** Email */
|
|
1281
|
+
email: string;
|
|
1282
|
+
/** Username */
|
|
1283
|
+
username: string;
|
|
1284
|
+
/**
|
|
1285
|
+
* Role
|
|
1286
|
+
* @enum {string}
|
|
1287
|
+
*/
|
|
1288
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1289
|
+
/**
|
|
1290
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1291
|
+
* @enum {string}
|
|
1292
|
+
*/
|
|
1293
|
+
auth_method: "OAUTH2";
|
|
1294
|
+
/** Oauth2 Client Id */
|
|
1295
|
+
oauth2_client_id?: string;
|
|
1296
|
+
/** Oauth2 User Id */
|
|
1297
|
+
oauth2_user_id?: string;
|
|
1298
|
+
/** Profile Picture Url */
|
|
1299
|
+
profile_picture_url?: string;
|
|
1300
|
+
};
|
|
1301
|
+
/** OAuth2UserData */
|
|
1302
|
+
OAuth2UserData: {
|
|
1303
|
+
/** Email */
|
|
1304
|
+
email: string;
|
|
1305
|
+
/** Username */
|
|
1306
|
+
username: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* Role
|
|
1309
|
+
* @enum {string}
|
|
1310
|
+
*/
|
|
1311
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1312
|
+
/**
|
|
1313
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1314
|
+
* @enum {string}
|
|
1315
|
+
*/
|
|
1316
|
+
auth_method: "OAUTH2";
|
|
1317
|
+
/** Oauth2 Client Id */
|
|
1318
|
+
oauth2_client_id?: string;
|
|
1319
|
+
/** Oauth2 User Id */
|
|
1320
|
+
oauth2_user_id?: string;
|
|
1321
|
+
};
|
|
1106
1322
|
/**
|
|
1107
1323
|
* OptimizationDirection
|
|
1108
1324
|
* @enum {string}
|
|
@@ -1288,6 +1504,16 @@ export interface components {
|
|
|
1288
1504
|
*/
|
|
1289
1505
|
trace_state?: string | null;
|
|
1290
1506
|
};
|
|
1507
|
+
/**
|
|
1508
|
+
* OtlpSpansResponseBody
|
|
1509
|
+
* @description Paginated response where each span follows OTLP JSON structure.
|
|
1510
|
+
*/
|
|
1511
|
+
OtlpSpansResponseBody: {
|
|
1512
|
+
/** Data */
|
|
1513
|
+
data: components["schemas"]["OtlpSpan"][];
|
|
1514
|
+
/** Next Cursor */
|
|
1515
|
+
next_cursor: string | null;
|
|
1516
|
+
};
|
|
1291
1517
|
/** OtlpStatus */
|
|
1292
1518
|
OtlpStatus: {
|
|
1293
1519
|
/**
|
|
@@ -1360,6 +1586,24 @@ export interface components {
|
|
|
1360
1586
|
/** Budget Tokens */
|
|
1361
1587
|
budget_tokens: number;
|
|
1362
1588
|
};
|
|
1589
|
+
/** PromptAwsInvocationParameters */
|
|
1590
|
+
PromptAwsInvocationParameters: {
|
|
1591
|
+
/**
|
|
1592
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1593
|
+
* @enum {string}
|
|
1594
|
+
*/
|
|
1595
|
+
type: "aws";
|
|
1596
|
+
aws: components["schemas"]["PromptAwsInvocationParametersContent"];
|
|
1597
|
+
};
|
|
1598
|
+
/** PromptAwsInvocationParametersContent */
|
|
1599
|
+
PromptAwsInvocationParametersContent: {
|
|
1600
|
+
/** Max Tokens */
|
|
1601
|
+
max_tokens?: number;
|
|
1602
|
+
/** Temperature */
|
|
1603
|
+
temperature?: number;
|
|
1604
|
+
/** Top P */
|
|
1605
|
+
top_p?: number;
|
|
1606
|
+
};
|
|
1363
1607
|
/** PromptAzureOpenAIInvocationParameters */
|
|
1364
1608
|
PromptAzureOpenAIInvocationParameters: {
|
|
1365
1609
|
/**
|
|
@@ -1476,6 +1720,37 @@ export interface components {
|
|
|
1476
1720
|
/** Content */
|
|
1477
1721
|
content: string | (components["schemas"]["TextContentPart"] | components["schemas"]["ToolCallContentPart"] | components["schemas"]["ToolResultContentPart"])[];
|
|
1478
1722
|
};
|
|
1723
|
+
/** PromptOllamaInvocationParameters */
|
|
1724
|
+
PromptOllamaInvocationParameters: {
|
|
1725
|
+
/**
|
|
1726
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1727
|
+
* @enum {string}
|
|
1728
|
+
*/
|
|
1729
|
+
type: "ollama";
|
|
1730
|
+
ollama: components["schemas"]["PromptOllamaInvocationParametersContent"];
|
|
1731
|
+
};
|
|
1732
|
+
/** PromptOllamaInvocationParametersContent */
|
|
1733
|
+
PromptOllamaInvocationParametersContent: {
|
|
1734
|
+
/** Temperature */
|
|
1735
|
+
temperature?: number;
|
|
1736
|
+
/** Max Tokens */
|
|
1737
|
+
max_tokens?: number;
|
|
1738
|
+
/** Max Completion Tokens */
|
|
1739
|
+
max_completion_tokens?: number;
|
|
1740
|
+
/** Frequency Penalty */
|
|
1741
|
+
frequency_penalty?: number;
|
|
1742
|
+
/** Presence Penalty */
|
|
1743
|
+
presence_penalty?: number;
|
|
1744
|
+
/** Top P */
|
|
1745
|
+
top_p?: number;
|
|
1746
|
+
/** Seed */
|
|
1747
|
+
seed?: number;
|
|
1748
|
+
/**
|
|
1749
|
+
* Reasoning Effort
|
|
1750
|
+
* @enum {string}
|
|
1751
|
+
*/
|
|
1752
|
+
reasoning_effort?: "low" | "medium" | "high";
|
|
1753
|
+
};
|
|
1479
1754
|
/** PromptOpenAIInvocationParameters */
|
|
1480
1755
|
PromptOpenAIInvocationParameters: {
|
|
1481
1756
|
/**
|
|
@@ -1631,7 +1906,7 @@ export interface components {
|
|
|
1631
1906
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
1632
1907
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
1633
1908
|
/** Invocation Parameters */
|
|
1634
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"];
|
|
1909
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"] | components["schemas"]["PromptOllamaInvocationParameters"] | components["schemas"]["PromptAwsInvocationParameters"];
|
|
1635
1910
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
1636
1911
|
/** Response Format */
|
|
1637
1912
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -1650,7 +1925,7 @@ export interface components {
|
|
|
1650
1925
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
1651
1926
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
1652
1927
|
/** Invocation Parameters */
|
|
1653
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"];
|
|
1928
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"] | components["schemas"]["PromptOllamaInvocationParameters"] | components["schemas"]["PromptAwsInvocationParameters"];
|
|
1654
1929
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
1655
1930
|
/** Response Format */
|
|
1656
1931
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -1669,6 +1944,98 @@ export interface components {
|
|
|
1669
1944
|
/** Description */
|
|
1670
1945
|
description?: string | null;
|
|
1671
1946
|
};
|
|
1947
|
+
/** PromptXAIInvocationParameters */
|
|
1948
|
+
PromptXAIInvocationParameters: {
|
|
1949
|
+
/**
|
|
1950
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1951
|
+
* @enum {string}
|
|
1952
|
+
*/
|
|
1953
|
+
type: "xai";
|
|
1954
|
+
xai: components["schemas"]["PromptXAIInvocationParametersContent"];
|
|
1955
|
+
};
|
|
1956
|
+
/** PromptXAIInvocationParametersContent */
|
|
1957
|
+
PromptXAIInvocationParametersContent: {
|
|
1958
|
+
/** Temperature */
|
|
1959
|
+
temperature?: number;
|
|
1960
|
+
/** Max Tokens */
|
|
1961
|
+
max_tokens?: number;
|
|
1962
|
+
/** Max Completion Tokens */
|
|
1963
|
+
max_completion_tokens?: number;
|
|
1964
|
+
/** Frequency Penalty */
|
|
1965
|
+
frequency_penalty?: number;
|
|
1966
|
+
/** Presence Penalty */
|
|
1967
|
+
presence_penalty?: number;
|
|
1968
|
+
/** Top P */
|
|
1969
|
+
top_p?: number;
|
|
1970
|
+
/** Seed */
|
|
1971
|
+
seed?: number;
|
|
1972
|
+
/**
|
|
1973
|
+
* Reasoning Effort
|
|
1974
|
+
* @enum {string}
|
|
1975
|
+
*/
|
|
1976
|
+
reasoning_effort?: "low" | "medium" | "high";
|
|
1977
|
+
};
|
|
1978
|
+
/** Span */
|
|
1979
|
+
Span: {
|
|
1980
|
+
/**
|
|
1981
|
+
* Id
|
|
1982
|
+
* @description Span Global ID, distinct from the OpenTelemetry span ID
|
|
1983
|
+
* @default
|
|
1984
|
+
*/
|
|
1985
|
+
id?: string;
|
|
1986
|
+
/**
|
|
1987
|
+
* Name
|
|
1988
|
+
* @description Name of the span operation
|
|
1989
|
+
*/
|
|
1990
|
+
name: string;
|
|
1991
|
+
/** @description Span context containing trace_id and span_id */
|
|
1992
|
+
context: components["schemas"]["SpanContext"];
|
|
1993
|
+
/**
|
|
1994
|
+
* Span Kind
|
|
1995
|
+
* @description Type of work that the span encapsulates
|
|
1996
|
+
*/
|
|
1997
|
+
span_kind: string;
|
|
1998
|
+
/**
|
|
1999
|
+
* Parent Id
|
|
2000
|
+
* @description OpenTelemetry span ID of the parent span
|
|
2001
|
+
*/
|
|
2002
|
+
parent_id?: string | null;
|
|
2003
|
+
/**
|
|
2004
|
+
* Start Time
|
|
2005
|
+
* Format: date-time
|
|
2006
|
+
* @description Start time of the span
|
|
2007
|
+
*/
|
|
2008
|
+
start_time: string;
|
|
2009
|
+
/**
|
|
2010
|
+
* End Time
|
|
2011
|
+
* Format: date-time
|
|
2012
|
+
* @description End time of the span
|
|
2013
|
+
*/
|
|
2014
|
+
end_time: string;
|
|
2015
|
+
/**
|
|
2016
|
+
* Status Code
|
|
2017
|
+
* @description Status code of the span
|
|
2018
|
+
*/
|
|
2019
|
+
status_code: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* Status Message
|
|
2022
|
+
* @description Status message
|
|
2023
|
+
* @default
|
|
2024
|
+
*/
|
|
2025
|
+
status_message?: string;
|
|
2026
|
+
/**
|
|
2027
|
+
* Attributes
|
|
2028
|
+
* @description Span attributes
|
|
2029
|
+
*/
|
|
2030
|
+
attributes?: {
|
|
2031
|
+
[key: string]: unknown;
|
|
2032
|
+
};
|
|
2033
|
+
/**
|
|
2034
|
+
* Events
|
|
2035
|
+
* @description Span events
|
|
2036
|
+
*/
|
|
2037
|
+
events?: components["schemas"]["SpanEvent"][];
|
|
2038
|
+
};
|
|
1672
2039
|
/** SpanAnnotation */
|
|
1673
2040
|
SpanAnnotation: {
|
|
1674
2041
|
/**
|
|
@@ -1781,13 +2148,44 @@ export interface components {
|
|
|
1781
2148
|
/** Next Cursor */
|
|
1782
2149
|
next_cursor: string | null;
|
|
1783
2150
|
};
|
|
1784
|
-
/**
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
2151
|
+
/** SpanContext */
|
|
2152
|
+
SpanContext: {
|
|
2153
|
+
/**
|
|
2154
|
+
* Trace Id
|
|
2155
|
+
* @description OpenTelemetry trace ID
|
|
2156
|
+
*/
|
|
2157
|
+
trace_id: string;
|
|
2158
|
+
/**
|
|
2159
|
+
* Span Id
|
|
2160
|
+
* @description OpenTelemetry span ID
|
|
2161
|
+
*/
|
|
2162
|
+
span_id: string;
|
|
2163
|
+
};
|
|
2164
|
+
/** SpanEvent */
|
|
2165
|
+
SpanEvent: {
|
|
2166
|
+
/**
|
|
2167
|
+
* Name
|
|
2168
|
+
* @description Name of the event
|
|
2169
|
+
*/
|
|
2170
|
+
name: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* Timestamp
|
|
2173
|
+
* Format: date-time
|
|
2174
|
+
* @description When the event occurred
|
|
2175
|
+
*/
|
|
2176
|
+
timestamp: string;
|
|
2177
|
+
/**
|
|
2178
|
+
* Attributes
|
|
2179
|
+
* @description Event attributes
|
|
2180
|
+
*/
|
|
2181
|
+
attributes?: {
|
|
2182
|
+
[key: string]: unknown;
|
|
2183
|
+
};
|
|
2184
|
+
};
|
|
2185
|
+
/** SpansResponseBody */
|
|
2186
|
+
SpansResponseBody: {
|
|
1789
2187
|
/** Data */
|
|
1790
|
-
data: components["schemas"]["
|
|
2188
|
+
data: components["schemas"]["Span"][];
|
|
1791
2189
|
/** Next Cursor */
|
|
1792
2190
|
next_cursor: string | null;
|
|
1793
2191
|
};
|
|
@@ -2161,6 +2559,10 @@ export interface operations {
|
|
|
2161
2559
|
query: {
|
|
2162
2560
|
/** @description One or more span id to fetch annotations for */
|
|
2163
2561
|
span_ids: string[];
|
|
2562
|
+
/** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
|
|
2563
|
+
include_annotation_names?: string[] | null;
|
|
2564
|
+
/** @description Optional list of annotation names to exclude from results. */
|
|
2565
|
+
exclude_annotation_names?: string[] | null;
|
|
2164
2566
|
/** @description A cursor for pagination */
|
|
2165
2567
|
cursor?: string | null;
|
|
2166
2568
|
/** @description The maximum number of annotations to return in a single request */
|
|
@@ -3057,18 +3459,14 @@ export interface operations {
|
|
|
3057
3459
|
spanSearch: {
|
|
3058
3460
|
parameters: {
|
|
3059
3461
|
query?: {
|
|
3060
|
-
/** @description Pagination cursor (
|
|
3462
|
+
/** @description Pagination cursor (Span Global ID) */
|
|
3061
3463
|
cursor?: string | null;
|
|
3062
3464
|
/** @description Maximum number of spans to return */
|
|
3063
3465
|
limit?: number;
|
|
3064
|
-
/** @description Sort direction for the sort field */
|
|
3065
|
-
sort_direction?: "asc" | "desc";
|
|
3066
3466
|
/** @description Inclusive lower bound time */
|
|
3067
3467
|
start_time?: string | null;
|
|
3068
3468
|
/** @description Exclusive upper bound time */
|
|
3069
3469
|
end_time?: string | null;
|
|
3070
|
-
/** @description If provided, only include spans that have at least one annotation with one of these names. */
|
|
3071
|
-
annotationNames?: string[] | null;
|
|
3072
3470
|
};
|
|
3073
3471
|
header?: never;
|
|
3074
3472
|
path: {
|
|
@@ -3085,7 +3483,7 @@ export interface operations {
|
|
|
3085
3483
|
[name: string]: unknown;
|
|
3086
3484
|
};
|
|
3087
3485
|
content: {
|
|
3088
|
-
"application/json": components["schemas"]["
|
|
3486
|
+
"application/json": components["schemas"]["OtlpSpansResponseBody"];
|
|
3089
3487
|
};
|
|
3090
3488
|
};
|
|
3091
3489
|
/** @description Forbidden */
|
|
@@ -3117,6 +3515,128 @@ export interface operations {
|
|
|
3117
3515
|
};
|
|
3118
3516
|
};
|
|
3119
3517
|
};
|
|
3518
|
+
getSpans: {
|
|
3519
|
+
parameters: {
|
|
3520
|
+
query?: {
|
|
3521
|
+
/** @description Pagination cursor (Span Global ID) */
|
|
3522
|
+
cursor?: string | null;
|
|
3523
|
+
/** @description Maximum number of spans to return */
|
|
3524
|
+
limit?: number;
|
|
3525
|
+
/** @description Inclusive lower bound time */
|
|
3526
|
+
start_time?: string | null;
|
|
3527
|
+
/** @description Exclusive upper bound time */
|
|
3528
|
+
end_time?: string | null;
|
|
3529
|
+
};
|
|
3530
|
+
header?: never;
|
|
3531
|
+
path: {
|
|
3532
|
+
/** @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. */
|
|
3533
|
+
project_identifier: string;
|
|
3534
|
+
};
|
|
3535
|
+
cookie?: never;
|
|
3536
|
+
};
|
|
3537
|
+
requestBody?: never;
|
|
3538
|
+
responses: {
|
|
3539
|
+
/** @description Successful Response */
|
|
3540
|
+
200: {
|
|
3541
|
+
headers: {
|
|
3542
|
+
[name: string]: unknown;
|
|
3543
|
+
};
|
|
3544
|
+
content: {
|
|
3545
|
+
"application/json": components["schemas"]["SpansResponseBody"];
|
|
3546
|
+
};
|
|
3547
|
+
};
|
|
3548
|
+
/** @description Forbidden */
|
|
3549
|
+
403: {
|
|
3550
|
+
headers: {
|
|
3551
|
+
[name: string]: unknown;
|
|
3552
|
+
};
|
|
3553
|
+
content: {
|
|
3554
|
+
"text/plain": string;
|
|
3555
|
+
};
|
|
3556
|
+
};
|
|
3557
|
+
/** @description Not Found */
|
|
3558
|
+
404: {
|
|
3559
|
+
headers: {
|
|
3560
|
+
[name: string]: unknown;
|
|
3561
|
+
};
|
|
3562
|
+
content: {
|
|
3563
|
+
"text/plain": string;
|
|
3564
|
+
};
|
|
3565
|
+
};
|
|
3566
|
+
/** @description Unprocessable Entity */
|
|
3567
|
+
422: {
|
|
3568
|
+
headers: {
|
|
3569
|
+
[name: string]: unknown;
|
|
3570
|
+
};
|
|
3571
|
+
content: {
|
|
3572
|
+
"text/plain": string;
|
|
3573
|
+
};
|
|
3574
|
+
};
|
|
3575
|
+
};
|
|
3576
|
+
};
|
|
3577
|
+
createSpans: {
|
|
3578
|
+
parameters: {
|
|
3579
|
+
query?: never;
|
|
3580
|
+
header?: never;
|
|
3581
|
+
path: {
|
|
3582
|
+
/** @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. */
|
|
3583
|
+
project_identifier: string;
|
|
3584
|
+
};
|
|
3585
|
+
cookie?: never;
|
|
3586
|
+
};
|
|
3587
|
+
requestBody: {
|
|
3588
|
+
content: {
|
|
3589
|
+
"application/json": components["schemas"]["CreateSpansRequestBody"];
|
|
3590
|
+
};
|
|
3591
|
+
};
|
|
3592
|
+
responses: {
|
|
3593
|
+
/** @description Successful Response */
|
|
3594
|
+
202: {
|
|
3595
|
+
headers: {
|
|
3596
|
+
[name: string]: unknown;
|
|
3597
|
+
};
|
|
3598
|
+
content: {
|
|
3599
|
+
"application/json": components["schemas"]["CreateSpansResponseBody"];
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
/** @description Bad Request */
|
|
3603
|
+
400: {
|
|
3604
|
+
headers: {
|
|
3605
|
+
[name: string]: unknown;
|
|
3606
|
+
};
|
|
3607
|
+
content: {
|
|
3608
|
+
"text/plain": string;
|
|
3609
|
+
};
|
|
3610
|
+
};
|
|
3611
|
+
/** @description Forbidden */
|
|
3612
|
+
403: {
|
|
3613
|
+
headers: {
|
|
3614
|
+
[name: string]: unknown;
|
|
3615
|
+
};
|
|
3616
|
+
content: {
|
|
3617
|
+
"text/plain": string;
|
|
3618
|
+
};
|
|
3619
|
+
};
|
|
3620
|
+
/** @description Not Found */
|
|
3621
|
+
404: {
|
|
3622
|
+
headers: {
|
|
3623
|
+
[name: string]: unknown;
|
|
3624
|
+
};
|
|
3625
|
+
content: {
|
|
3626
|
+
"text/plain": string;
|
|
3627
|
+
};
|
|
3628
|
+
};
|
|
3629
|
+
/** @description Validation Error */
|
|
3630
|
+
422: {
|
|
3631
|
+
headers: {
|
|
3632
|
+
[name: string]: unknown;
|
|
3633
|
+
};
|
|
3634
|
+
content: {
|
|
3635
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
3636
|
+
};
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3639
|
+
};
|
|
3120
3640
|
annotateSpans: {
|
|
3121
3641
|
parameters: {
|
|
3122
3642
|
query?: {
|
|
@@ -3912,5 +4432,156 @@ export interface operations {
|
|
|
3912
4432
|
};
|
|
3913
4433
|
};
|
|
3914
4434
|
};
|
|
4435
|
+
getUsers: {
|
|
4436
|
+
parameters: {
|
|
4437
|
+
query?: {
|
|
4438
|
+
/** @description Cursor for pagination (base64-encoded user ID) */
|
|
4439
|
+
cursor?: string;
|
|
4440
|
+
/** @description The max number of users to return at a time. */
|
|
4441
|
+
limit?: number;
|
|
4442
|
+
};
|
|
4443
|
+
header?: never;
|
|
4444
|
+
path?: never;
|
|
4445
|
+
cookie?: never;
|
|
4446
|
+
};
|
|
4447
|
+
requestBody?: never;
|
|
4448
|
+
responses: {
|
|
4449
|
+
/** @description A list of users. */
|
|
4450
|
+
200: {
|
|
4451
|
+
headers: {
|
|
4452
|
+
[name: string]: unknown;
|
|
4453
|
+
};
|
|
4454
|
+
content: {
|
|
4455
|
+
"application/json": components["schemas"]["GetUsersResponseBody"];
|
|
4456
|
+
};
|
|
4457
|
+
};
|
|
4458
|
+
/** @description Forbidden */
|
|
4459
|
+
403: {
|
|
4460
|
+
headers: {
|
|
4461
|
+
[name: string]: unknown;
|
|
4462
|
+
};
|
|
4463
|
+
content: {
|
|
4464
|
+
"text/plain": string;
|
|
4465
|
+
};
|
|
4466
|
+
};
|
|
4467
|
+
/** @description Unprocessable Entity */
|
|
4468
|
+
422: {
|
|
4469
|
+
headers: {
|
|
4470
|
+
[name: string]: unknown;
|
|
4471
|
+
};
|
|
4472
|
+
content: {
|
|
4473
|
+
"text/plain": string;
|
|
4474
|
+
};
|
|
4475
|
+
};
|
|
4476
|
+
};
|
|
4477
|
+
};
|
|
4478
|
+
createUser: {
|
|
4479
|
+
parameters: {
|
|
4480
|
+
query?: never;
|
|
4481
|
+
header?: never;
|
|
4482
|
+
path?: never;
|
|
4483
|
+
cookie?: never;
|
|
4484
|
+
};
|
|
4485
|
+
requestBody: {
|
|
4486
|
+
content: {
|
|
4487
|
+
"application/json": components["schemas"]["CreateUserRequestBody"];
|
|
4488
|
+
};
|
|
4489
|
+
};
|
|
4490
|
+
responses: {
|
|
4491
|
+
/** @description The newly created user. */
|
|
4492
|
+
201: {
|
|
4493
|
+
headers: {
|
|
4494
|
+
[name: string]: unknown;
|
|
4495
|
+
};
|
|
4496
|
+
content: {
|
|
4497
|
+
"application/json": components["schemas"]["CreateUserResponseBody"];
|
|
4498
|
+
};
|
|
4499
|
+
};
|
|
4500
|
+
/** @description Role not found. */
|
|
4501
|
+
400: {
|
|
4502
|
+
headers: {
|
|
4503
|
+
[name: string]: unknown;
|
|
4504
|
+
};
|
|
4505
|
+
content: {
|
|
4506
|
+
"text/plain": string;
|
|
4507
|
+
};
|
|
4508
|
+
};
|
|
4509
|
+
/** @description Forbidden */
|
|
4510
|
+
403: {
|
|
4511
|
+
headers: {
|
|
4512
|
+
[name: string]: unknown;
|
|
4513
|
+
};
|
|
4514
|
+
content: {
|
|
4515
|
+
"text/plain": string;
|
|
4516
|
+
};
|
|
4517
|
+
};
|
|
4518
|
+
/** @description Username or email already exists. */
|
|
4519
|
+
409: {
|
|
4520
|
+
headers: {
|
|
4521
|
+
[name: string]: unknown;
|
|
4522
|
+
};
|
|
4523
|
+
content: {
|
|
4524
|
+
"text/plain": string;
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
/** @description Unprocessable Entity */
|
|
4528
|
+
422: {
|
|
4529
|
+
headers: {
|
|
4530
|
+
[name: string]: unknown;
|
|
4531
|
+
};
|
|
4532
|
+
content: {
|
|
4533
|
+
"text/plain": string;
|
|
4534
|
+
};
|
|
4535
|
+
};
|
|
4536
|
+
};
|
|
4537
|
+
};
|
|
4538
|
+
deleteUser: {
|
|
4539
|
+
parameters: {
|
|
4540
|
+
query?: never;
|
|
4541
|
+
header?: never;
|
|
4542
|
+
path: {
|
|
4543
|
+
/** @description The GlobalID of the user (e.g. 'VXNlcjox'). */
|
|
4544
|
+
user_id: string;
|
|
4545
|
+
};
|
|
4546
|
+
cookie?: never;
|
|
4547
|
+
};
|
|
4548
|
+
requestBody?: never;
|
|
4549
|
+
responses: {
|
|
4550
|
+
/** @description No content returned on successful deletion. */
|
|
4551
|
+
204: {
|
|
4552
|
+
headers: {
|
|
4553
|
+
[name: string]: unknown;
|
|
4554
|
+
};
|
|
4555
|
+
content?: never;
|
|
4556
|
+
};
|
|
4557
|
+
/** @description Cannot delete the default admin or system user */
|
|
4558
|
+
403: {
|
|
4559
|
+
headers: {
|
|
4560
|
+
[name: string]: unknown;
|
|
4561
|
+
};
|
|
4562
|
+
content: {
|
|
4563
|
+
"text/plain": string;
|
|
4564
|
+
};
|
|
4565
|
+
};
|
|
4566
|
+
/** @description User not found. */
|
|
4567
|
+
404: {
|
|
4568
|
+
headers: {
|
|
4569
|
+
[name: string]: unknown;
|
|
4570
|
+
};
|
|
4571
|
+
content: {
|
|
4572
|
+
"text/plain": string;
|
|
4573
|
+
};
|
|
4574
|
+
};
|
|
4575
|
+
/** @description Unprocessable Entity */
|
|
4576
|
+
422: {
|
|
4577
|
+
headers: {
|
|
4578
|
+
[name: string]: unknown;
|
|
4579
|
+
};
|
|
4580
|
+
content: {
|
|
4581
|
+
"text/plain": string;
|
|
4582
|
+
};
|
|
4583
|
+
};
|
|
4584
|
+
};
|
|
4585
|
+
};
|
|
3915
4586
|
}
|
|
3916
4587
|
//# sourceMappingURL=v1.d.ts.map
|