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