@arizeai/phoenix-client 2.1.1 → 2.3.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 (122) hide show
  1. package/dist/esm/__generated__/api/v1.d.ts +331 -16
  2. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  3. package/dist/esm/datasets/appendDatasetExamples.d.ts.map +1 -1
  4. package/dist/esm/datasets/appendDatasetExamples.js +13 -1
  5. package/dist/esm/datasets/appendDatasetExamples.js.map +1 -1
  6. package/dist/esm/datasets/getDatasetExamples.d.ts.map +1 -1
  7. package/dist/esm/datasets/getDatasetExamples.js +13 -1
  8. package/dist/esm/datasets/getDatasetExamples.js.map +1 -1
  9. package/dist/esm/datasets/getDatasetInfo.d.ts.map +1 -1
  10. package/dist/esm/datasets/getDatasetInfo.js +7 -0
  11. package/dist/esm/datasets/getDatasetInfo.js.map +1 -1
  12. package/dist/esm/datasets/getDatasetInfoByName.d.ts +10 -0
  13. package/dist/esm/datasets/getDatasetInfoByName.d.ts.map +1 -0
  14. package/dist/esm/datasets/getDatasetInfoByName.js +26 -0
  15. package/dist/esm/datasets/getDatasetInfoByName.js.map +1 -0
  16. package/dist/esm/prompts/constants.d.ts.map +1 -1
  17. package/dist/esm/prompts/constants.js +4 -0
  18. package/dist/esm/prompts/constants.js.map +1 -1
  19. package/dist/esm/prompts/createPrompt.d.ts +12 -4
  20. package/dist/esm/prompts/createPrompt.d.ts.map +1 -1
  21. package/dist/esm/prompts/createPrompt.js +32 -0
  22. package/dist/esm/prompts/createPrompt.js.map +1 -1
  23. package/dist/esm/schemas/llm/anthropic/converters.d.ts +14 -14
  24. package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts +4 -4
  25. package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +12 -12
  26. package/dist/esm/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
  27. package/dist/esm/schemas/llm/constants.d.ts +3 -3
  28. package/dist/esm/schemas/llm/converters.d.ts +12 -12
  29. package/dist/esm/schemas/llm/openai/converters.d.ts +3 -3
  30. package/dist/esm/schemas/llm/schemas.d.ts +12 -12
  31. package/dist/esm/spans/getSpanAnnotations.d.ts +78 -0
  32. package/dist/esm/spans/getSpanAnnotations.d.ts.map +1 -0
  33. package/dist/esm/spans/getSpanAnnotations.js +83 -0
  34. package/dist/esm/spans/getSpanAnnotations.js.map +1 -0
  35. package/dist/esm/spans/getSpans.d.ts +78 -0
  36. package/dist/esm/spans/getSpans.d.ts.map +1 -0
  37. package/dist/esm/spans/getSpans.js +85 -0
  38. package/dist/esm/spans/getSpans.js.map +1 -0
  39. package/dist/esm/spans/index.d.ts +2 -0
  40. package/dist/esm/spans/index.d.ts.map +1 -1
  41. package/dist/esm/spans/index.js +2 -0
  42. package/dist/esm/spans/index.js.map +1 -1
  43. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  44. package/dist/esm/types/datasets.d.ts +3 -1
  45. package/dist/esm/types/datasets.d.ts.map +1 -1
  46. package/dist/esm/types/projects.d.ts +10 -0
  47. package/dist/esm/types/projects.d.ts.map +1 -0
  48. package/dist/esm/types/projects.js +2 -0
  49. package/dist/esm/types/projects.js.map +1 -0
  50. package/dist/esm/types/prompts.d.ts +17 -1
  51. package/dist/esm/types/prompts.d.ts.map +1 -1
  52. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  53. package/dist/esm/utils/getPromptBySelector.d.ts +1 -1
  54. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  55. package/dist/src/__generated__/api/v1.d.ts +331 -16
  56. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  57. package/dist/src/datasets/appendDatasetExamples.d.ts.map +1 -1
  58. package/dist/src/datasets/appendDatasetExamples.js +13 -1
  59. package/dist/src/datasets/appendDatasetExamples.js.map +1 -1
  60. package/dist/src/datasets/getDatasetExamples.d.ts.map +1 -1
  61. package/dist/src/datasets/getDatasetExamples.js +13 -1
  62. package/dist/src/datasets/getDatasetExamples.js.map +1 -1
  63. package/dist/src/datasets/getDatasetInfo.d.ts.map +1 -1
  64. package/dist/src/datasets/getDatasetInfo.js +7 -0
  65. package/dist/src/datasets/getDatasetInfo.js.map +1 -1
  66. package/dist/src/datasets/getDatasetInfoByName.d.ts +10 -0
  67. package/dist/src/datasets/getDatasetInfoByName.d.ts.map +1 -0
  68. package/dist/src/datasets/getDatasetInfoByName.js +41 -0
  69. package/dist/src/datasets/getDatasetInfoByName.js.map +1 -0
  70. package/dist/src/prompts/constants.d.ts.map +1 -1
  71. package/dist/src/prompts/constants.js +4 -0
  72. package/dist/src/prompts/constants.js.map +1 -1
  73. package/dist/src/prompts/createPrompt.d.ts +12 -4
  74. package/dist/src/prompts/createPrompt.d.ts.map +1 -1
  75. package/dist/src/prompts/createPrompt.js +32 -0
  76. package/dist/src/prompts/createPrompt.js.map +1 -1
  77. package/dist/src/schemas/llm/anthropic/converters.d.ts +14 -14
  78. package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts +4 -4
  79. package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +12 -12
  80. package/dist/src/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -4
  81. package/dist/src/schemas/llm/constants.d.ts +3 -3
  82. package/dist/src/schemas/llm/converters.d.ts +12 -12
  83. package/dist/src/schemas/llm/openai/converters.d.ts +3 -3
  84. package/dist/src/schemas/llm/schemas.d.ts +12 -12
  85. package/dist/src/spans/getSpanAnnotations.d.ts +78 -0
  86. package/dist/src/spans/getSpanAnnotations.d.ts.map +1 -0
  87. package/dist/src/spans/getSpanAnnotations.js +98 -0
  88. package/dist/src/spans/getSpanAnnotations.js.map +1 -0
  89. package/dist/src/spans/getSpans.d.ts +78 -0
  90. package/dist/src/spans/getSpans.d.ts.map +1 -0
  91. package/dist/src/spans/getSpans.js +100 -0
  92. package/dist/src/spans/getSpans.js.map +1 -0
  93. package/dist/src/spans/index.d.ts +2 -0
  94. package/dist/src/spans/index.d.ts.map +1 -1
  95. package/dist/src/spans/index.js +2 -0
  96. package/dist/src/spans/index.js.map +1 -1
  97. package/dist/src/types/datasets.d.ts +3 -1
  98. package/dist/src/types/datasets.d.ts.map +1 -1
  99. package/dist/src/types/projects.d.ts +10 -0
  100. package/dist/src/types/projects.d.ts.map +1 -0
  101. package/dist/src/types/projects.js +3 -0
  102. package/dist/src/types/projects.js.map +1 -0
  103. package/dist/src/types/prompts.d.ts +17 -1
  104. package/dist/src/types/prompts.d.ts.map +1 -1
  105. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  106. package/dist/src/utils/getPromptBySelector.d.ts +1 -1
  107. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  108. package/dist/tsconfig.tsbuildinfo +1 -1
  109. package/package.json +1 -1
  110. package/src/__generated__/api/v1.ts +331 -16
  111. package/src/datasets/appendDatasetExamples.ts +12 -1
  112. package/src/datasets/getDatasetExamples.ts +12 -1
  113. package/src/datasets/getDatasetInfo.ts +8 -0
  114. package/src/datasets/getDatasetInfoByName.ts +35 -0
  115. package/src/prompts/constants.ts +4 -0
  116. package/src/prompts/createPrompt.ts +51 -3
  117. package/src/spans/getSpanAnnotations.ts +131 -0
  118. package/src/spans/getSpans.ts +127 -0
  119. package/src/spans/index.ts +2 -0
  120. package/src/types/datasets.ts +2 -2
  121. package/src/types/projects.ts +5 -0
  122. 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, annotation names, and ordered by start_time. Supports cursor-based pagination.
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;
@@ -802,6 +826,24 @@ export interface components {
802
826
  CreatePromptResponseBody: {
803
827
  data: components["schemas"]["PromptVersion"];
804
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
+ };
805
847
  /** CreateUserRequestBody */
806
848
  CreateUserRequestBody: {
807
849
  /** User */
@@ -1220,7 +1262,7 @@ export interface components {
1220
1262
  * ModelProvider
1221
1263
  * @enum {string}
1222
1264
  */
1223
- ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI";
1265
+ ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI" | "OLLAMA" | "AWS";
1224
1266
  /** OAuth2User */
1225
1267
  OAuth2User: {
1226
1268
  /** Id */
@@ -1462,6 +1504,16 @@ export interface components {
1462
1504
  */
1463
1505
  trace_state?: string | null;
1464
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
+ };
1465
1517
  /** OtlpStatus */
1466
1518
  OtlpStatus: {
1467
1519
  /**
@@ -1534,6 +1586,24 @@ export interface components {
1534
1586
  /** Budget Tokens */
1535
1587
  budget_tokens: number;
1536
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
+ };
1537
1607
  /** PromptAzureOpenAIInvocationParameters */
1538
1608
  PromptAzureOpenAIInvocationParameters: {
1539
1609
  /**
@@ -1650,6 +1720,37 @@ export interface components {
1650
1720
  /** Content */
1651
1721
  content: string | (components["schemas"]["TextContentPart"] | components["schemas"]["ToolCallContentPart"] | components["schemas"]["ToolResultContentPart"])[];
1652
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
+ };
1653
1754
  /** PromptOpenAIInvocationParameters */
1654
1755
  PromptOpenAIInvocationParameters: {
1655
1756
  /**
@@ -1805,7 +1906,7 @@ export interface components {
1805
1906
  template_type: components["schemas"]["PromptTemplateType"];
1806
1907
  template_format: components["schemas"]["PromptTemplateFormat"];
1807
1908
  /** Invocation Parameters */
1808
- invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
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"];
1809
1910
  tools?: components["schemas"]["PromptTools"] | null;
1810
1911
  /** Response Format */
1811
1912
  response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
@@ -1824,7 +1925,7 @@ export interface components {
1824
1925
  template_type: components["schemas"]["PromptTemplateType"];
1825
1926
  template_format: components["schemas"]["PromptTemplateFormat"];
1826
1927
  /** Invocation Parameters */
1827
- invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
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"];
1828
1929
  tools?: components["schemas"]["PromptTools"] | null;
1829
1930
  /** Response Format */
1830
1931
  response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
@@ -1874,6 +1975,67 @@ export interface components {
1874
1975
  */
1875
1976
  reasoning_effort?: "low" | "medium" | "high";
1876
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
+ };
1877
2039
  /** SpanAnnotation */
1878
2040
  SpanAnnotation: {
1879
2041
  /**
@@ -1986,13 +2148,44 @@ export interface components {
1986
2148
  /** Next Cursor */
1987
2149
  next_cursor: string | null;
1988
2150
  };
1989
- /**
1990
- * SpanSearchResponseBody
1991
- * @description Paginated response where each span follows OTLP JSON structure.
1992
- */
1993
- SpanSearchResponseBody: {
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: {
1994
2187
  /** Data */
1995
- data: components["schemas"]["OtlpSpan"][];
2188
+ data: components["schemas"]["Span"][];
1996
2189
  /** Next Cursor */
1997
2190
  next_cursor: string | null;
1998
2191
  };
@@ -2366,6 +2559,10 @@ export interface operations {
2366
2559
  query: {
2367
2560
  /** @description One or more span id to fetch annotations for */
2368
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;
2369
2566
  /** @description A cursor for pagination */
2370
2567
  cursor?: string | null;
2371
2568
  /** @description The maximum number of annotations to return in a single request */
@@ -3262,18 +3459,73 @@ export interface operations {
3262
3459
  spanSearch: {
3263
3460
  parameters: {
3264
3461
  query?: {
3265
- /** @description Pagination cursor (GlobalID of Span) */
3462
+ /** @description Pagination cursor (Span Global ID) */
3463
+ cursor?: string | null;
3464
+ /** @description Maximum number of spans to return */
3465
+ limit?: number;
3466
+ /** @description Inclusive lower bound time */
3467
+ start_time?: string | null;
3468
+ /** @description Exclusive upper bound time */
3469
+ end_time?: string | null;
3470
+ };
3471
+ header?: never;
3472
+ path: {
3473
+ /** @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. */
3474
+ project_identifier: string;
3475
+ };
3476
+ cookie?: never;
3477
+ };
3478
+ requestBody?: never;
3479
+ responses: {
3480
+ /** @description Successful Response */
3481
+ 200: {
3482
+ headers: {
3483
+ [name: string]: unknown;
3484
+ };
3485
+ content: {
3486
+ "application/json": components["schemas"]["OtlpSpansResponseBody"];
3487
+ };
3488
+ };
3489
+ /** @description Forbidden */
3490
+ 403: {
3491
+ headers: {
3492
+ [name: string]: unknown;
3493
+ };
3494
+ content: {
3495
+ "text/plain": string;
3496
+ };
3497
+ };
3498
+ /** @description Not Found */
3499
+ 404: {
3500
+ headers: {
3501
+ [name: string]: unknown;
3502
+ };
3503
+ content: {
3504
+ "text/plain": string;
3505
+ };
3506
+ };
3507
+ /** @description Unprocessable Entity */
3508
+ 422: {
3509
+ headers: {
3510
+ [name: string]: unknown;
3511
+ };
3512
+ content: {
3513
+ "text/plain": string;
3514
+ };
3515
+ };
3516
+ };
3517
+ };
3518
+ getSpans: {
3519
+ parameters: {
3520
+ query?: {
3521
+ /** @description Pagination cursor (Span Global ID) */
3266
3522
  cursor?: string | null;
3267
3523
  /** @description Maximum number of spans to return */
3268
3524
  limit?: number;
3269
- /** @description Sort direction for the sort field */
3270
- sort_direction?: "asc" | "desc";
3271
3525
  /** @description Inclusive lower bound time */
3272
3526
  start_time?: string | null;
3273
3527
  /** @description Exclusive upper bound time */
3274
3528
  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
3529
  };
3278
3530
  header?: never;
3279
3531
  path: {
@@ -3290,7 +3542,7 @@ export interface operations {
3290
3542
  [name: string]: unknown;
3291
3543
  };
3292
3544
  content: {
3293
- "application/json": components["schemas"]["SpanSearchResponseBody"];
3545
+ "application/json": components["schemas"]["SpansResponseBody"];
3294
3546
  };
3295
3547
  };
3296
3548
  /** @description Forbidden */
@@ -3322,6 +3574,69 @@ export interface operations {
3322
3574
  };
3323
3575
  };
3324
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
+ };
3325
3640
  annotateSpans: {
3326
3641
  parameters: {
3327
3642
  query?: {