@arizeai/phoenix-client 7.5.0 → 7.7.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 (124) hide show
  1. package/CHANGELOG.md +781 -0
  2. package/README.md +27 -3
  3. package/dist/esm/__generated__/api/v1.d.ts +749 -203
  4. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  5. package/dist/esm/constants/serverRequirements.d.ts +2 -0
  6. package/dist/esm/constants/serverRequirements.d.ts.map +1 -1
  7. package/dist/esm/constants/serverRequirements.js +14 -0
  8. package/dist/esm/constants/serverRequirements.js.map +1 -1
  9. package/dist/esm/projects/index.d.ts +1 -0
  10. package/dist/esm/projects/index.d.ts.map +1 -1
  11. package/dist/esm/projects/index.js +1 -0
  12. package/dist/esm/projects/index.js.map +1 -1
  13. package/dist/esm/projects/setProjectRetentionPolicy.d.ts +49 -0
  14. package/dist/esm/projects/setProjectRetentionPolicy.d.ts.map +1 -0
  15. package/dist/esm/projects/setProjectRetentionPolicy.js +52 -0
  16. package/dist/esm/projects/setProjectRetentionPolicy.js.map +1 -0
  17. package/dist/esm/prompts/deletePrompt.d.ts +39 -0
  18. package/dist/esm/prompts/deletePrompt.d.ts.map +1 -0
  19. package/dist/esm/prompts/deletePrompt.js +52 -0
  20. package/dist/esm/prompts/deletePrompt.js.map +1 -0
  21. package/dist/esm/prompts/index.d.ts +1 -0
  22. package/dist/esm/prompts/index.d.ts.map +1 -1
  23. package/dist/esm/prompts/index.js +1 -0
  24. package/dist/esm/prompts/index.js.map +1 -1
  25. package/dist/esm/testing/reporter-format.d.ts.map +1 -1
  26. package/dist/esm/testing/reporter-format.js +13 -3
  27. package/dist/esm/testing/reporter-format.js.map +1 -1
  28. package/dist/esm/traces/getTraces.d.ts +1 -1
  29. package/dist/esm/traces/getTraces.d.ts.map +1 -1
  30. package/dist/esm/traces/index.d.ts +1 -0
  31. package/dist/esm/traces/index.d.ts.map +1 -1
  32. package/dist/esm/traces/index.js +1 -0
  33. package/dist/esm/traces/index.js.map +1 -1
  34. package/dist/esm/traces/transferTraces.d.ts +56 -0
  35. package/dist/esm/traces/transferTraces.d.ts.map +1 -0
  36. package/dist/esm/traces/transferTraces.js +56 -0
  37. package/dist/esm/traces/transferTraces.js.map +1 -0
  38. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  39. package/dist/esm/types/prompts.d.ts +9 -0
  40. package/dist/esm/types/prompts.d.ts.map +1 -1
  41. package/dist/esm/types/prompts.js.map +1 -1
  42. package/dist/esm/users/getCurrentUser.d.ts +25 -0
  43. package/dist/esm/users/getCurrentUser.d.ts.map +1 -0
  44. package/dist/esm/users/getCurrentUser.js +30 -0
  45. package/dist/esm/users/getCurrentUser.js.map +1 -0
  46. package/dist/esm/users/index.d.ts +2 -0
  47. package/dist/esm/users/index.d.ts.map +1 -0
  48. package/dist/esm/users/index.js +2 -0
  49. package/dist/esm/users/index.js.map +1 -0
  50. package/dist/esm/utils/resolvePromptIdentifier.d.ts +17 -0
  51. package/dist/esm/utils/resolvePromptIdentifier.d.ts.map +1 -0
  52. package/dist/esm/utils/resolvePromptIdentifier.js +36 -0
  53. package/dist/esm/utils/resolvePromptIdentifier.js.map +1 -0
  54. package/dist/src/__generated__/api/v1.d.ts +749 -203
  55. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  56. package/dist/src/constants/serverRequirements.d.ts +2 -0
  57. package/dist/src/constants/serverRequirements.d.ts.map +1 -1
  58. package/dist/src/constants/serverRequirements.js +15 -1
  59. package/dist/src/constants/serverRequirements.js.map +1 -1
  60. package/dist/src/projects/index.d.ts +1 -0
  61. package/dist/src/projects/index.d.ts.map +1 -1
  62. package/dist/src/projects/index.js +1 -0
  63. package/dist/src/projects/index.js.map +1 -1
  64. package/dist/src/projects/setProjectRetentionPolicy.d.ts +49 -0
  65. package/dist/src/projects/setProjectRetentionPolicy.d.ts.map +1 -0
  66. package/dist/src/projects/setProjectRetentionPolicy.js +59 -0
  67. package/dist/src/projects/setProjectRetentionPolicy.js.map +1 -0
  68. package/dist/src/prompts/deletePrompt.d.ts +39 -0
  69. package/dist/src/prompts/deletePrompt.d.ts.map +1 -0
  70. package/dist/src/prompts/deletePrompt.js +55 -0
  71. package/dist/src/prompts/deletePrompt.js.map +1 -0
  72. package/dist/src/prompts/index.d.ts +1 -0
  73. package/dist/src/prompts/index.d.ts.map +1 -1
  74. package/dist/src/prompts/index.js +1 -0
  75. package/dist/src/prompts/index.js.map +1 -1
  76. package/dist/src/testing/reporter-format.d.ts.map +1 -1
  77. package/dist/src/testing/reporter-format.js +13 -3
  78. package/dist/src/testing/reporter-format.js.map +1 -1
  79. package/dist/src/traces/getTraces.d.ts +1 -1
  80. package/dist/src/traces/getTraces.d.ts.map +1 -1
  81. package/dist/src/traces/index.d.ts +1 -0
  82. package/dist/src/traces/index.d.ts.map +1 -1
  83. package/dist/src/traces/index.js +1 -0
  84. package/dist/src/traces/index.js.map +1 -1
  85. package/dist/src/traces/transferTraces.d.ts +56 -0
  86. package/dist/src/traces/transferTraces.d.ts.map +1 -0
  87. package/dist/src/traces/transferTraces.js +59 -0
  88. package/dist/src/traces/transferTraces.js.map +1 -0
  89. package/dist/src/types/prompts.d.ts +9 -0
  90. package/dist/src/types/prompts.d.ts.map +1 -1
  91. package/dist/src/types/prompts.js.map +1 -1
  92. package/dist/src/users/getCurrentUser.d.ts +25 -0
  93. package/dist/src/users/getCurrentUser.d.ts.map +1 -0
  94. package/dist/src/users/getCurrentUser.js +36 -0
  95. package/dist/src/users/getCurrentUser.js.map +1 -0
  96. package/dist/src/users/index.d.ts +2 -0
  97. package/dist/src/users/index.d.ts.map +1 -0
  98. package/dist/src/users/index.js +18 -0
  99. package/dist/src/users/index.js.map +1 -0
  100. package/dist/src/utils/resolvePromptIdentifier.d.ts +17 -0
  101. package/dist/src/utils/resolvePromptIdentifier.d.ts.map +1 -0
  102. package/dist/src/utils/resolvePromptIdentifier.js +39 -0
  103. package/dist/src/utils/resolvePromptIdentifier.js.map +1 -0
  104. package/dist/tsconfig.tsbuildinfo +1 -1
  105. package/docs/overview.mdx +8 -4
  106. package/docs/projects.mdx +71 -0
  107. package/docs/prompts.mdx +19 -1
  108. package/docs/traces.mdx +28 -2
  109. package/docs/users.mdx +44 -0
  110. package/package.json +16 -12
  111. package/src/__generated__/api/v1.ts +749 -203
  112. package/src/constants/serverRequirements.ts +16 -0
  113. package/src/projects/index.ts +1 -0
  114. package/src/projects/setProjectRetentionPolicy.ts +80 -0
  115. package/src/prompts/deletePrompt.ts +70 -0
  116. package/src/prompts/index.ts +1 -0
  117. package/src/testing/reporter-format.ts +13 -3
  118. package/src/traces/getTraces.ts +1 -1
  119. package/src/traces/index.ts +1 -0
  120. package/src/traces/transferTraces.ts +89 -0
  121. package/src/types/prompts.ts +10 -0
  122. package/src/users/getCurrentUser.ts +39 -0
  123. package/src/users/index.ts +1 -0
  124. package/src/utils/resolvePromptIdentifier.ts +41 -0
@@ -804,6 +804,26 @@ export interface paths {
804
804
  patch?: never;
805
805
  trace?: never;
806
806
  };
807
+ "/v1/traces/transfer": {
808
+ parameters: {
809
+ query?: never;
810
+ header?: never;
811
+ path?: never;
812
+ cookie?: never;
813
+ };
814
+ get?: never;
815
+ put?: never;
816
+ /**
817
+ * Transfer traces to a project
818
+ * @description Move traces into a different project. This re-parents the traces rather than copying them, so they no longer appear under their original project. All traces must currently belong to the same source project.
819
+ */
820
+ post: operations["transferTraces"];
821
+ delete?: never;
822
+ options?: never;
823
+ head?: never;
824
+ patch?: never;
825
+ trace?: never;
826
+ };
807
827
  "/v1/traces/{trace_identifier}": {
808
828
  parameters: {
809
829
  query?: never;
@@ -978,7 +998,11 @@ export interface paths {
978
998
  */
979
999
  get: operations["listPromptVersions"];
980
1000
  put?: never;
981
- post?: never;
1001
+ /**
1002
+ * Create prompt version
1003
+ * @description Create a new version for an existing prompt by identifier.
1004
+ */
1005
+ post: operations["createPromptVersion"];
982
1006
  delete?: never;
983
1007
  options?: never;
984
1008
  head?: never;
@@ -1165,6 +1189,66 @@ export interface paths {
1165
1189
  patch?: never;
1166
1190
  trace?: never;
1167
1191
  };
1192
+ "/v1/projects/{project_identifier}/retention": {
1193
+ parameters: {
1194
+ query?: never;
1195
+ header?: never;
1196
+ path?: never;
1197
+ cookie?: never;
1198
+ };
1199
+ get?: never;
1200
+ put?: never;
1201
+ post?: never;
1202
+ delete?: never;
1203
+ options?: never;
1204
+ head?: never;
1205
+ /**
1206
+ * Set a project's trace retention policy
1207
+ * @description Assign an existing trace retention policy to a project, or reset the project to the default policy with a null `policy_id`. Retention policies are standalone, reusable entities: this endpoint only changes which policy the project points at, and never creates, edits, or deletes a policy.
1208
+ */
1209
+ patch: operations["setProjectRetentionPolicy"];
1210
+ trace?: never;
1211
+ };
1212
+ "/v1/model_providers": {
1213
+ parameters: {
1214
+ query?: never;
1215
+ header?: never;
1216
+ path?: never;
1217
+ cookie?: never;
1218
+ };
1219
+ /**
1220
+ * List built-in model provider families
1221
+ * @description Retrieve the built-in model provider families available to this deployment. Built-in families are a fixed enum rather than stored records, so this list is not paginated; it is narrowed by the PHOENIX_ALLOWED_PROVIDERS environment variable when that is set. User-defined providers are listed separately by `GET /v1/custom_model_providers`.
1222
+ */
1223
+ get: operations["getModelProviders"];
1224
+ put?: never;
1225
+ post?: never;
1226
+ delete?: never;
1227
+ options?: never;
1228
+ head?: never;
1229
+ patch?: never;
1230
+ trace?: never;
1231
+ };
1232
+ "/v1/custom_model_providers": {
1233
+ parameters: {
1234
+ query?: never;
1235
+ header?: never;
1236
+ path?: never;
1237
+ cookie?: never;
1238
+ };
1239
+ /**
1240
+ * List custom model providers
1241
+ * @description Retrieve a paginated list of user-defined custom model providers. Encrypted provider credentials are never returned. Built-in provider families are listed separately by `GET /v1/model_providers`.
1242
+ */
1243
+ get: operations["getCustomModelProviders"];
1244
+ put?: never;
1245
+ post?: never;
1246
+ delete?: never;
1247
+ options?: never;
1248
+ head?: never;
1249
+ patch?: never;
1250
+ trace?: never;
1251
+ };
1168
1252
  "/v1/sessions/{session_identifier}": {
1169
1253
  parameters: {
1170
1254
  query?: never;
@@ -1660,7 +1744,7 @@ export interface paths {
1660
1744
  get?: never;
1661
1745
  put?: never;
1662
1746
  /**
1663
- * Run Server Agent
1747
+ * Run Headless Agent
1664
1748
  * @deprecated
1665
1749
  */
1666
1750
  post: operations["legacyServerAgentChat"];
@@ -1775,6 +1859,26 @@ export interface paths {
1775
1859
  patch?: never;
1776
1860
  trace?: never;
1777
1861
  };
1862
+ "/v1/agent_sessions/{session_id}/tool_approvals": {
1863
+ parameters: {
1864
+ query?: never;
1865
+ header?: never;
1866
+ path?: never;
1867
+ cookie?: never;
1868
+ };
1869
+ get?: never;
1870
+ put?: never;
1871
+ /**
1872
+ * Submit Agent Session Tool Approvals
1873
+ * @description Persist answered tool approvals for the session's open turn.
1874
+ */
1875
+ post: operations["submitAgentSessionToolApprovals"];
1876
+ delete?: never;
1877
+ options?: never;
1878
+ head?: never;
1879
+ patch?: never;
1880
+ trace?: never;
1881
+ };
1778
1882
  "/v1/agent_sessions/{session_id}/chat": {
1779
1883
  parameters: {
1780
1884
  query?: never;
@@ -1868,6 +1972,12 @@ export interface components {
1868
1972
  * mismatch). Unlike ``agent_session_messages_stale`` this is not a
1869
1973
  * concurrent-writer race but an inconsistent request; fix the client
1870
1974
  * rather than retrying.
1975
+ * - ``agent_session_tool_approvals_conflict``: the submitted ``toolApprovals``
1976
+ * do not match the transcript's trailing assistant message (no trailing
1977
+ * assistant message to answer, an unknown ``toolCallId``, a call that is
1978
+ * not awaiting approval, or a reversal of an already-persisted answer).
1979
+ * Like the tool-output conflict this is an inconsistent request rather than
1980
+ * a concurrent-writer race; fix the client rather than retrying.
1871
1981
  * - ``agent_session_already_compact``: there are no complete turns to
1872
1982
  * compact — either nothing new has finished since the transcript's latest
1873
1983
  * checkpoint, or a concurrent request's checkpoint already covers them.
@@ -1881,7 +1991,7 @@ export interface components {
1881
1991
  * @description Machine-readable reason the request conflicted.
1882
1992
  * @enum {string}
1883
1993
  */
1884
- code: "agent_session_busy" | "agent_session_model_stale" | "agent_session_messages_stale" | "agent_session_tool_outputs_conflict" | "agent_session_already_compact" | "agent_session_compaction_conflict";
1994
+ code: "agent_session_busy" | "agent_session_model_stale" | "agent_session_messages_stale" | "agent_session_tool_outputs_conflict" | "agent_session_tool_approvals_conflict" | "agent_session_already_compact" | "agent_session_compaction_conflict";
1885
1995
  /**
1886
1996
  * Message
1887
1997
  * @description Optional human-readable elaboration on the conflict.
@@ -1937,27 +2047,6 @@ export interface components {
1937
2047
  /** Is Ephemeral */
1938
2048
  is_ephemeral: boolean;
1939
2049
  };
1940
- /**
1941
- * AgentSpanContext
1942
- * @description Span the user has selected.
1943
- *
1944
- * Exactly one of ``span_node_id`` (relay) or ``otel_span_id`` (OpenTelemetry
1945
- * hex) must be set. ``project_node_id`` is optional because a span can be
1946
- * selected from views outside a project route.
1947
- */
1948
- AgentSpanContext: {
1949
- /**
1950
- * @description discriminator enum property added by openapi-typescript
1951
- * @enum {string}
1952
- */
1953
- type: "span";
1954
- /** Projectnodeid */
1955
- projectNodeId?: string | null;
1956
- /** Spannodeid */
1957
- spanNodeId?: string | null;
1958
- /** Otelspanid */
1959
- otelSpanId?: string | null;
1960
- };
1961
2050
  /** AnnotateSessionsRequestBody */
1962
2051
  AnnotateSessionsRequestBody: {
1963
2052
  /** Data */
@@ -2115,6 +2204,16 @@ export interface components {
2115
2204
  /** Total */
2116
2205
  total: number;
2117
2206
  };
2207
+ /** BuiltInModelProvider */
2208
+ BuiltInModelProvider: {
2209
+ /** @description The provider family identifier, accepted wherever a built-in model provider is specified (e.g. 'OPENAI'). */
2210
+ provider: components["schemas"]["ModelProvider"];
2211
+ /**
2212
+ * Name
2213
+ * @description The human-readable name of the provider family (e.g. 'OpenAI').
2214
+ */
2215
+ name: string;
2216
+ };
2118
2217
  /**
2119
2218
  * BuiltInProviderModelSelection
2120
2219
  * @description Chat against a Phoenix built-in provider.
@@ -2263,12 +2362,18 @@ export interface components {
2263
2362
  completion_tokens: number;
2264
2363
  /** Total Tokens */
2265
2364
  total_tokens: number;
2365
+ prompt_tokens_details?: components["schemas"]["ChatCompletionUsagePromptTokensDetails"] | null;
2366
+ };
2367
+ /** ChatCompletionUsagePromptTokensDetails */
2368
+ ChatCompletionUsagePromptTokensDetails: {
2369
+ /** Cached Tokens */
2370
+ cached_tokens: number;
2266
2371
  };
2267
2372
  /**
2268
2373
  * ChatContext
2269
2374
  * @description Discriminated union of every UI-state context the agent understands.
2270
2375
  */
2271
- ChatContext: components["schemas"]["AppContext"] | components["schemas"]["ProjectContext"] | components["schemas"]["TraceContext"] | components["schemas"]["SessionContext"] | components["schemas"]["PromptContext"] | components["schemas"]["PromptVersionContext"] | components["schemas"]["AgentSpanContext"] | components["schemas"]["PlaygroundContext"] | components["schemas"]["CodeEvaluatorContext"] | components["schemas"]["LlmEvaluatorContext"] | components["schemas"]["DatasetContext"] | components["schemas"]["GraphQLContext"] | components["schemas"]["WebAccessContext"] | components["schemas"]["SubagentsContext"];
2376
+ ChatContext: components["schemas"]["AppContext"] | components["schemas"]["ProjectUIContext"] | components["schemas"]["TraceUIContext"] | components["schemas"]["SessionUIContext"] | components["schemas"]["PromptUIContext"] | components["schemas"]["PromptVersionUIContext"] | components["schemas"]["SpanUIContext"] | components["schemas"]["PlaygroundUIContext"] | components["schemas"]["CodeEvaluatorUIContext"] | components["schemas"]["LlmEvaluatorUIContext"] | components["schemas"]["DatasetUIContext"] | components["schemas"]["GraphQLContext"] | components["schemas"]["WebAccessContext"] | components["schemas"]["SubagentsContext"];
2272
2377
  /**
2273
2378
  * ChatRequestBody
2274
2379
  * @description Assistant chat submit request payload.
@@ -2309,6 +2414,11 @@ export interface components {
2309
2414
  * @description Client-executed tool results for pending tool calls on the transcript's trailing assistant message, matched by ``toolCallId``. Submitted alone they continue the assistant turn; submitted with ``message`` they resolve dangling tool calls before the new user turn runs.
2310
2415
  */
2311
2416
  toolOutputs?: (components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputErrorPart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputErrorPart"])[];
2417
+ /**
2418
+ * Toolapprovals
2419
+ * @description Responses to tool calls awaiting approval on the trailing assistant message, matched by ``toolCallId``. Cannot be combined with ``message``.
2420
+ */
2421
+ toolApprovals?: components["schemas"]["ToolApproval"][];
2312
2422
  /**
2313
2423
  * Lastmessageid
2314
2424
  * @description The id of the last transcript message the client has rendered, used for optimistic concurrency. Omit when the session has no messages; required (and validated against the persisted transcript) once it does. On mismatch the server rejects the send with HTTP 409 and code ``agent_session_messages_stale`` — the client should refetch the session before retrying.
@@ -2331,11 +2441,8 @@ export interface components {
2331
2441
  */
2332
2442
  instrumentUserId?: boolean;
2333
2443
  };
2334
- /**
2335
- * CodeEvaluatorContext
2336
- * @description Code-evaluator create/edit form mounted in the current browser route.
2337
- */
2338
- CodeEvaluatorContext: {
2444
+ /** CodeEvaluatorUIContext */
2445
+ CodeEvaluatorUIContext: {
2339
2446
  /**
2340
2447
  * @description discriminator enum property added by openapi-typescript
2341
2448
  * @enum {string}
@@ -2663,6 +2770,16 @@ export interface components {
2663
2770
  CreatePromptResponseBody: {
2664
2771
  data: components["schemas"]["PromptVersion"];
2665
2772
  };
2773
+ /** CreatePromptVersionRequestBody */
2774
+ CreatePromptVersionRequestBody: {
2775
+ version: components["schemas"]["PromptVersionData"];
2776
+ /** Tags */
2777
+ tags?: components["schemas"]["PromptVersionTagData"][] | null;
2778
+ };
2779
+ /** CreatePromptVersionResponseBody */
2780
+ CreatePromptVersionResponseBody: {
2781
+ data: components["schemas"]["PromptVersion"];
2782
+ };
2666
2783
  /** CreateSessionNoteRequestBody */
2667
2784
  CreateSessionNoteRequestBody: {
2668
2785
  data: components["schemas"]["SessionNoteData"];
@@ -2749,6 +2866,47 @@ export interface components {
2749
2866
  */
2750
2867
  key: string;
2751
2868
  };
2869
+ /** CustomModelProvider */
2870
+ CustomModelProvider: {
2871
+ /**
2872
+ * Id
2873
+ * @description The ID of the custom provider.
2874
+ */
2875
+ id: string;
2876
+ /**
2877
+ * Name
2878
+ * @description The unique name of the custom provider.
2879
+ */
2880
+ name: string;
2881
+ /**
2882
+ * Description
2883
+ * @description An optional description of the custom provider.
2884
+ */
2885
+ description?: string | null;
2886
+ /**
2887
+ * Provider
2888
+ * @description The free-form provider label recorded on the custom provider. Unlike the `provider` of a built-in family, this is not drawn from a fixed set.
2889
+ */
2890
+ provider: string;
2891
+ /**
2892
+ * Sdk
2893
+ * @description The SDK used to communicate with the custom provider.
2894
+ * @enum {string}
2895
+ */
2896
+ sdk: "openai" | "azure_openai" | "anthropic" | "google_genai" | "aws_bedrock";
2897
+ /**
2898
+ * Created At
2899
+ * Format: date-time
2900
+ * @description The time the custom provider was created.
2901
+ */
2902
+ created_at: string;
2903
+ /**
2904
+ * Updated At
2905
+ * Format: date-time
2906
+ * @description The time the custom provider was last updated.
2907
+ */
2908
+ updated_at: string;
2909
+ };
2752
2910
  /**
2753
2911
  * CustomProviderModelSelection
2754
2912
  * @description Chat against a stored custom provider record.
@@ -2801,26 +2959,6 @@ export interface components {
2801
2959
  /** Example Count */
2802
2960
  example_count: number;
2803
2961
  };
2804
- /**
2805
- * DatasetContext
2806
- * @description Dataset the user is currently viewing or has bound to a workflow.
2807
- *
2808
- * Carries the dataset's relay node id and, when known, the active version
2809
- * node id. These IDs scope the create-form handoff link and the sampling of
2810
- * active dataset examples used as prompt context; the dataset schema itself
2811
- * is open.
2812
- */
2813
- DatasetContext: {
2814
- /**
2815
- * @description discriminator enum property added by openapi-typescript
2816
- * @enum {string}
2817
- */
2818
- type: "dataset";
2819
- /** Datasetnodeid */
2820
- datasetNodeId: string;
2821
- /** Datasetversionnodeid */
2822
- datasetVersionNodeId?: string | null;
2823
- };
2824
2962
  /** DatasetExample */
2825
2963
  DatasetExample: {
2826
2964
  /** Id */
@@ -2891,6 +3029,18 @@ export interface components {
2891
3029
  */
2892
3030
  updated_at: string;
2893
3031
  };
3032
+ /** DatasetUIContext */
3033
+ DatasetUIContext: {
3034
+ /**
3035
+ * @description discriminator enum property added by openapi-typescript
3036
+ * @enum {string}
3037
+ */
3038
+ type: "dataset";
3039
+ /** Datasetnodeid */
3040
+ datasetNodeId: string;
3041
+ /** Datasetversionnodeid */
3042
+ datasetVersionNodeId?: string | null;
3043
+ };
2894
3044
  /** DatasetVersion */
2895
3045
  DatasetVersion: {
2896
3046
  /** Version Id */
@@ -3380,6 +3530,13 @@ export interface components {
3380
3530
  /** Data */
3381
3531
  data: components["schemas"]["ApiKey"][];
3382
3532
  };
3533
+ /** GetCustomModelProvidersResponseBody */
3534
+ GetCustomModelProvidersResponseBody: {
3535
+ /** Data */
3536
+ data: components["schemas"]["CustomModelProvider"][];
3537
+ /** Next Cursor */
3538
+ next_cursor: string | null;
3539
+ };
3383
3540
  /** GetDatasetLabelResponseBody */
3384
3541
  GetDatasetLabelResponseBody: {
3385
3542
  data: components["schemas"]["DatasetLabel"];
@@ -3413,6 +3570,11 @@ export interface components {
3413
3570
  /** Next Cursor */
3414
3571
  next_cursor: string | null;
3415
3572
  };
3573
+ /** GetModelProvidersResponseBody */
3574
+ GetModelProvidersResponseBody: {
3575
+ /** Data */
3576
+ data: components["schemas"]["BuiltInModelProvider"][];
3577
+ };
3416
3578
  /** GetProjectAnnotationConfigsResponseBody */
3417
3579
  GetProjectAnnotationConfigsResponseBody: {
3418
3580
  /** Data */
@@ -3488,7 +3650,8 @@ export interface components {
3488
3650
  };
3489
3651
  /**
3490
3652
  * GraphQLContext
3491
- * @description GraphQL runtime state.
3653
+ * @deprecated
3654
+ * @description Deprecated GraphQL mutations opt-in.
3492
3655
  */
3493
3656
  GraphQLContext: {
3494
3657
  /**
@@ -3819,11 +3982,8 @@ export interface components {
3819
3982
  /** Next Cursor */
3820
3983
  next_cursor: string | null;
3821
3984
  };
3822
- /**
3823
- * LlmEvaluatorContext
3824
- * @description LLM-evaluator create/edit form mounted in the current browser route.
3825
- */
3826
- LlmEvaluatorContext: {
3985
+ /** LlmEvaluatorUIContext */
3986
+ LlmEvaluatorUIContext: {
3827
3987
  /**
3828
3988
  * @description discriminator enum property added by openapi-typescript
3829
3989
  * @enum {string}
@@ -4257,12 +4417,16 @@ export interface components {
4257
4417
  * @default false
4258
4418
  */
4259
4419
  isCompactionMessage?: boolean;
4420
+ uiContexts?: components["schemas"]["UIContexts"] | null;
4421
+ /**
4422
+ * Editpermission
4423
+ * @default manual
4424
+ * @enum {string}
4425
+ */
4426
+ editPermission?: "manual" | "bypass";
4260
4427
  };
4261
- /**
4262
- * PlaygroundBuiltinModelContext
4263
- * @description Built-in playground model selection.
4264
- */
4265
- PlaygroundBuiltinModelContext: {
4428
+ /** PlaygroundBuiltinModelUIContext */
4429
+ PlaygroundBuiltinModelUIContext: {
4266
4430
  /**
4267
4431
  * @description discriminator enum property added by openapi-typescript
4268
4432
  * @enum {string}
@@ -4273,37 +4437,8 @@ export interface components {
4273
4437
  /** Modelname */
4274
4438
  modelName: string;
4275
4439
  };
4276
- /**
4277
- * PlaygroundContext
4278
- * @description Playground prompt editor state mounted in the current browser route.
4279
- */
4280
- PlaygroundContext: {
4281
- /**
4282
- * @description discriminator enum property added by openapi-typescript
4283
- * @enum {string}
4284
- */
4285
- type: "playground";
4286
- /**
4287
- * Recordexperiments
4288
- * @default true
4289
- */
4290
- recordExperiments?: boolean;
4291
- /**
4292
- * Repetitions
4293
- * @default 1
4294
- */
4295
- repetitions?: number;
4296
- nextExperimentScaffold?: components["schemas"]["PlaygroundExperimentScaffoldContext"] | null;
4297
- /** Instances */
4298
- instances?: components["schemas"]["PlaygroundInstanceContext"][];
4299
- /** Evaluators */
4300
- evaluators?: components["schemas"]["PlaygroundEvaluatorContext"][];
4301
- };
4302
- /**
4303
- * PlaygroundCustomProviderModelContext
4304
- * @description Custom-provider playground model selection.
4305
- */
4306
- PlaygroundCustomProviderModelContext: {
4440
+ /** PlaygroundCustomProviderModelUIContext */
4441
+ PlaygroundCustomProviderModelUIContext: {
4307
4442
  /**
4308
4443
  * @description discriminator enum property added by openapi-typescript
4309
4444
  * @enum {string}
@@ -4318,12 +4453,8 @@ export interface components {
4318
4453
  /** Modelname */
4319
4454
  modelName: string;
4320
4455
  };
4321
- /**
4322
- * PlaygroundEvaluatorContext
4323
- * @description One dataset evaluator on the mounted playground's roster. ``name`` is
4324
- * user-controlled; sanitize at every model-visible boundary.
4325
- */
4326
- PlaygroundEvaluatorContext: {
4456
+ /** PlaygroundEvaluatorUIContext */
4457
+ PlaygroundEvaluatorUIContext: {
4327
4458
  /** Datasetevaluatorid */
4328
4459
  datasetEvaluatorId: string;
4329
4460
  /** Name */
@@ -4338,27 +4469,8 @@ export interface components {
4338
4469
  /** Isapplied */
4339
4470
  isApplied: boolean;
4340
4471
  };
4341
- /**
4342
- * PlaygroundExperimentScaffoldContext
4343
- * @description Experiment name/description/metadata the user has staged for the playground's
4344
- * *next* dataset-backed run, before that run has started.
4345
- *
4346
- * The playground UI lets the user pre-set how the next recorded run's experiment
4347
- * will be named, described, and tagged (via the ``set_playground_experiment_recording``
4348
- * tool or the recording form). That staged state is surfaced here so the agent can
4349
- * see what is already set and avoid re-staging it.
4350
- *
4351
- * Field semantics:
4352
- * - ``name`` / ``description``: the staged values, surfaced to the model verbatim,
4353
- * or ``None`` when the user has not staged them.
4354
- * - ``has_metadata``: a presence flag, not the value. Only *whether* metadata has
4355
- * been staged is model-relevant (so the agent knows not to re-attach it); the
4356
- * metadata object itself is deliberately kept out of the prompt.
4357
- *
4358
- * A field left unstaged (``None`` / ``False``) falls back to the server default when
4359
- * the run starts. The scaffold is consumed once that next run begins.
4360
- */
4361
- PlaygroundExperimentScaffoldContext: {
4472
+ /** PlaygroundExperimentScaffoldUIContext */
4473
+ PlaygroundExperimentScaffoldUIContext: {
4362
4474
  /** Name */
4363
4475
  name?: string | null;
4364
4476
  /** Description */
@@ -4369,23 +4481,38 @@ export interface components {
4369
4481
  */
4370
4482
  hasMetadata?: boolean;
4371
4483
  };
4372
- /**
4373
- * PlaygroundInstanceContext
4374
- * @description One mounted playground instance and its current model selection.
4375
- *
4376
- * ``experiment_id`` carries the relay node id of the experiment produced by
4377
- * this instance's last dataset-backed run, or ``None`` when the instance has
4378
- * not produced one. Ephemeral experiments are included: they remain queryable
4379
- * until the server sweeps them ~24h after their last update.
4380
- */
4381
- PlaygroundInstanceContext: {
4484
+ /** PlaygroundInstanceUIContext */
4485
+ PlaygroundInstanceUIContext: {
4382
4486
  /** Instanceid */
4383
4487
  instanceId: number;
4384
4488
  /** Model */
4385
- model?: (components["schemas"]["PlaygroundBuiltinModelContext"] | components["schemas"]["PlaygroundCustomProviderModelContext"]) | null;
4489
+ model?: (components["schemas"]["PlaygroundBuiltinModelUIContext"] | components["schemas"]["PlaygroundCustomProviderModelUIContext"]) | null;
4386
4490
  /** Experimentid */
4387
4491
  experimentId?: string | null;
4388
4492
  };
4493
+ /** PlaygroundUIContext */
4494
+ PlaygroundUIContext: {
4495
+ /**
4496
+ * @description discriminator enum property added by openapi-typescript
4497
+ * @enum {string}
4498
+ */
4499
+ type: "playground";
4500
+ /**
4501
+ * Recordexperiments
4502
+ * @default true
4503
+ */
4504
+ recordExperiments?: boolean;
4505
+ /**
4506
+ * Repetitions
4507
+ * @default 1
4508
+ */
4509
+ repetitions?: number;
4510
+ nextExperimentScaffold?: components["schemas"]["PlaygroundExperimentScaffoldUIContext"] | null;
4511
+ /** Instances */
4512
+ instances?: components["schemas"]["PlaygroundInstanceUIContext"][];
4513
+ /** Evaluators */
4514
+ evaluators?: components["schemas"]["PlaygroundEvaluatorUIContext"][];
4515
+ };
4389
4516
  /** Project */
4390
4517
  Project: {
4391
4518
  /** Name */
@@ -4395,17 +4522,18 @@ export interface components {
4395
4522
  /** Id */
4396
4523
  id: string;
4397
4524
  };
4398
- /**
4399
- * ProjectContext
4400
- * @description Project the user is currently viewing.
4401
- *
4402
- * ``span_filter`` carries the project-scoped span filter expression when the
4403
- * span filter field is mounted — empty string when the field is mounted with
4404
- * no condition applied, ``None`` when the field is not present at all. It
4405
- * describes the view in full, root-span scoping included (which is expressed
4406
- * within the filter DSL as ``parent_id is None``).
4407
- */
4408
- ProjectContext: {
4525
+ /** ProjectRetentionPolicyData */
4526
+ ProjectRetentionPolicyData: {
4527
+ /** Project Id */
4528
+ project_id: string;
4529
+ /**
4530
+ * Policy Id
4531
+ * @description The retention policy the project now uses, or null when the project falls back to the default policy.
4532
+ */
4533
+ policy_id: string | null;
4534
+ };
4535
+ /** ProjectUIContext */
4536
+ ProjectUIContext: {
4409
4537
  /**
4410
4538
  * @description discriminator enum property added by openapi-typescript
4411
4539
  * @enum {string}
@@ -4605,19 +4733,6 @@ export interface components {
4605
4733
  /** Messages */
4606
4734
  messages: components["schemas"]["PromptMessage"][];
4607
4735
  };
4608
- /**
4609
- * PromptContext
4610
- * @description Prompt the user is currently viewing.
4611
- */
4612
- PromptContext: {
4613
- /**
4614
- * @description discriminator enum property added by openapi-typescript
4615
- * @enum {string}
4616
- */
4617
- type: "prompt";
4618
- /** Promptnodeid */
4619
- promptNodeId: string;
4620
- };
4621
4736
  /** PromptData */
4622
4737
  PromptData: {
4623
4738
  name: components["schemas"]["Identifier"];
@@ -5099,12 +5214,22 @@ export interface components {
5099
5214
  /** Disable Parallel Tool Calls */
5100
5215
  disable_parallel_tool_calls?: boolean;
5101
5216
  };
5102
- /** PromptVersion */
5103
- PromptVersion: {
5104
- /** Description */
5105
- description?: string | null;
5106
- model_provider: components["schemas"]["ModelProvider"];
5107
- /** Model Name */
5217
+ /** PromptUIContext */
5218
+ PromptUIContext: {
5219
+ /**
5220
+ * @description discriminator enum property added by openapi-typescript
5221
+ * @enum {string}
5222
+ */
5223
+ type: "prompt";
5224
+ /** Promptnodeid */
5225
+ promptNodeId: string;
5226
+ };
5227
+ /** PromptVersion */
5228
+ PromptVersion: {
5229
+ /** Description */
5230
+ description?: string | null;
5231
+ model_provider: components["schemas"]["ModelProvider"];
5232
+ /** Model Name */
5108
5233
  model_name: string;
5109
5234
  /** Template */
5110
5235
  template: components["schemas"]["PromptChatTemplate"] | components["schemas"]["PromptStringTemplate"];
@@ -5118,21 +5243,6 @@ export interface components {
5118
5243
  /** Id */
5119
5244
  id: string;
5120
5245
  };
5121
- /**
5122
- * PromptVersionContext
5123
- * @description Prompt version the user is currently viewing.
5124
- */
5125
- PromptVersionContext: {
5126
- /**
5127
- * @description discriminator enum property added by openapi-typescript
5128
- * @enum {string}
5129
- */
5130
- type: "prompt_version";
5131
- /** Promptnodeid */
5132
- promptNodeId: string;
5133
- /** Promptversionnodeid */
5134
- promptVersionNodeId: string;
5135
- };
5136
5246
  /** PromptVersionData */
5137
5247
  PromptVersionData: {
5138
5248
  /** Description */
@@ -5164,6 +5274,18 @@ export interface components {
5164
5274
  /** Description */
5165
5275
  description?: string | null;
5166
5276
  };
5277
+ /** PromptVersionUIContext */
5278
+ PromptVersionUIContext: {
5279
+ /**
5280
+ * @description discriminator enum property added by openapi-typescript
5281
+ * @enum {string}
5282
+ */
5283
+ type: "prompt_version";
5284
+ /** Promptnodeid */
5285
+ promptNodeId: string;
5286
+ /** Promptversionnodeid */
5287
+ promptVersionNodeId: string;
5288
+ };
5167
5289
  /** PromptXAIInvocationParameters */
5168
5290
  PromptXAIInvocationParameters: {
5169
5291
  /**
@@ -5222,6 +5344,8 @@ export interface components {
5222
5344
  * @constant
5223
5345
  */
5224
5346
  type?: "reasoning";
5347
+ /** Id */
5348
+ id?: string | null;
5225
5349
  /** Text */
5226
5350
  text: string;
5227
5351
  /** State */
@@ -5344,21 +5468,6 @@ export interface components {
5344
5468
  /** Next Cursor */
5345
5469
  next_cursor: string | null;
5346
5470
  };
5347
- /**
5348
- * SessionContext
5349
- * @description Session the user is currently viewing.
5350
- */
5351
- SessionContext: {
5352
- /**
5353
- * @description discriminator enum property added by openapi-typescript
5354
- * @enum {string}
5355
- */
5356
- type: "session";
5357
- /** Projectnodeid */
5358
- projectNodeId: string;
5359
- /** Sessionnodeid */
5360
- sessionNodeId: string;
5361
- };
5362
5471
  /** SessionData */
5363
5472
  SessionData: {
5364
5473
  /** Id */
@@ -5434,6 +5543,18 @@ export interface components {
5434
5543
  */
5435
5544
  end_time: string;
5436
5545
  };
5546
+ /** SessionUIContext */
5547
+ SessionUIContext: {
5548
+ /**
5549
+ * @description discriminator enum property added by openapi-typescript
5550
+ * @enum {string}
5551
+ */
5552
+ type: "session";
5553
+ /** Projectnodeid */
5554
+ projectNodeId: string;
5555
+ /** Sessionnodeid */
5556
+ sessionNodeId: string;
5557
+ };
5437
5558
  /** SetDatasetLabelsForDatasetResponseBody */
5438
5559
  SetDatasetLabelsForDatasetResponseBody: {
5439
5560
  /** Data */
@@ -5476,6 +5597,18 @@ export interface components {
5476
5597
  /** Next Cursor */
5477
5598
  next_cursor: string | null;
5478
5599
  };
5600
+ /** SetProjectRetentionPolicyRequestBody */
5601
+ SetProjectRetentionPolicyRequestBody: {
5602
+ /**
5603
+ * Policy Id
5604
+ * @description The ID (GlobalID) of an existing trace retention policy to assign, or null to reset the project to the default policy.
5605
+ */
5606
+ policy_id: string | null;
5607
+ };
5608
+ /** SetProjectRetentionPolicyResponseBody */
5609
+ SetProjectRetentionPolicyResponseBody: {
5610
+ data: components["schemas"]["ProjectRetentionPolicyData"];
5611
+ };
5479
5612
  /**
5480
5613
  * SourceDocumentUIPart
5481
5614
  * @description A document source part of a message.
@@ -5808,6 +5941,20 @@ export interface components {
5808
5941
  */
5809
5942
  identifier?: string;
5810
5943
  };
5944
+ /** SpanUIContext */
5945
+ SpanUIContext: {
5946
+ /**
5947
+ * @description discriminator enum property added by openapi-typescript
5948
+ * @enum {string}
5949
+ */
5950
+ type: "span";
5951
+ /** Projectnodeid */
5952
+ projectNodeId?: string | null;
5953
+ /** Spannodeid */
5954
+ spanNodeId?: string | null;
5955
+ /** Otelspanid */
5956
+ otelSpanId?: string | null;
5957
+ };
5811
5958
  /** SpansResponseBody */
5812
5959
  SpansResponseBody: {
5813
5960
  /** Data */
@@ -5840,6 +5987,29 @@ export interface components {
5840
5987
  /** Enabled */
5841
5988
  enabled: boolean;
5842
5989
  };
5990
+ /**
5991
+ * SubmitAgentSessionToolApprovalsRequestBody
5992
+ * @description Persist answered tool approvals without continuing the turn.
5993
+ */
5994
+ SubmitAgentSessionToolApprovalsRequestBody: {
5995
+ /**
5996
+ * Toolapprovals
5997
+ * @description Answers to tool calls awaiting approval on the trailing assistant message, matched by ``toolCallId``. Resending a persisted answer is a no-op; an answer that reverses one, or that matches no call awaiting approval, is rejected with HTTP 409 and code ``agent_session_tool_approvals_conflict``.
5998
+ */
5999
+ toolApprovals: components["schemas"]["ToolApproval"][];
6000
+ /**
6001
+ * Lastmessageid
6002
+ * @description The trailing assistant message's id. On mismatch the submission is rejected with HTTP 409 and code ``agent_session_messages_stale``.
6003
+ */
6004
+ lastMessageId: string;
6005
+ };
6006
+ /**
6007
+ * SubmitAgentSessionToolApprovalsResponseBody
6008
+ * @description The trailing assistant message with the submitted approvals applied.
6009
+ */
6010
+ SubmitAgentSessionToolApprovalsResponseBody: {
6011
+ data: components["schemas"]["PhoenixUIMessage"];
6012
+ };
5843
6013
  /**
5844
6014
  * SubmitAgentSessionToolOutputsRequestBody
5845
6015
  * @description Persist resolved client tool outputs without continuing the turn.
@@ -5895,6 +6065,19 @@ export interface components {
5895
6065
  };
5896
6066
  } | null;
5897
6067
  };
6068
+ /**
6069
+ * ToolApproval
6070
+ * @description A user's response to a tool call awaiting approval.
6071
+ */
6072
+ ToolApproval: {
6073
+ /** Toolcallid */
6074
+ toolCallId: string;
6075
+ /**
6076
+ * Approved
6077
+ * @description Whether the user approved the tool call.
6078
+ */
6079
+ approved: boolean;
6080
+ };
5898
6081
  /**
5899
6082
  * ToolApprovalRequested
5900
6083
  * @description Tool approval in requested state (awaiting user response).
@@ -6197,18 +6380,6 @@ export interface components {
6197
6380
  /** Next Cursor */
6198
6381
  next_cursor: string | null;
6199
6382
  };
6200
- /** TraceContext */
6201
- TraceContext: {
6202
- /**
6203
- * @description discriminator enum property added by openapi-typescript
6204
- * @enum {string}
6205
- */
6206
- type: "trace";
6207
- /** Projectnodeid */
6208
- projectNodeId: string;
6209
- /** Oteltraceid */
6210
- otelTraceId: string;
6211
- };
6212
6383
  /** TraceData */
6213
6384
  TraceData: {
6214
6385
  /** Id */
@@ -6292,6 +6463,48 @@ export interface components {
6292
6463
  */
6293
6464
  end_time: string;
6294
6465
  };
6466
+ /** TraceUIContext */
6467
+ TraceUIContext: {
6468
+ /**
6469
+ * @description discriminator enum property added by openapi-typescript
6470
+ * @enum {string}
6471
+ */
6472
+ type: "trace";
6473
+ /** Projectnodeid */
6474
+ projectNodeId: string;
6475
+ /** Oteltraceid */
6476
+ otelTraceId: string;
6477
+ };
6478
+ /** TransferTracesData */
6479
+ TransferTracesData: {
6480
+ /**
6481
+ * Transferred Trace Count
6482
+ * @description The number of traces that were moved to the destination project.
6483
+ */
6484
+ transferred_trace_count: number;
6485
+ /**
6486
+ * Destination Project Id
6487
+ * @description The ID (GlobalID) of the project the traces were moved to.
6488
+ */
6489
+ destination_project_id: string;
6490
+ };
6491
+ /** TransferTracesRequestBody */
6492
+ TransferTracesRequestBody: {
6493
+ /**
6494
+ * Trace Identifiers
6495
+ * @description The traces to transfer. Each identifier is either a trace ID (GlobalID) or an OpenTelemetry trace_id (hex string). Must be non-empty, and all traces must currently belong to the same source project.
6496
+ */
6497
+ trace_identifiers: string[];
6498
+ /**
6499
+ * Destination Project Identifier
6500
+ * @description The destination project: either project ID (GlobalID) or project name.
6501
+ */
6502
+ destination_project_identifier: string;
6503
+ };
6504
+ /** TransferTracesResponseBody */
6505
+ TransferTracesResponseBody: {
6506
+ data: components["schemas"]["TransferTracesData"];
6507
+ };
6295
6508
  /**
6296
6509
  * TurnTraceContext
6297
6510
  * @description The trace identity a turn's spans are parented to.
@@ -6307,6 +6520,19 @@ export interface components {
6307
6520
  */
6308
6521
  startedAt: string;
6309
6522
  };
6523
+ /** UIContexts */
6524
+ UIContexts: {
6525
+ project?: components["schemas"]["ProjectUIContext"] | null;
6526
+ trace?: components["schemas"]["TraceUIContext"] | null;
6527
+ session?: components["schemas"]["SessionUIContext"] | null;
6528
+ span?: components["schemas"]["SpanUIContext"] | null;
6529
+ prompt?: components["schemas"]["PromptUIContext"] | null;
6530
+ promptVersion?: components["schemas"]["PromptVersionUIContext"] | null;
6531
+ dataset?: components["schemas"]["DatasetUIContext"] | null;
6532
+ playground?: components["schemas"]["PlaygroundUIContext"] | null;
6533
+ codeEvaluator?: components["schemas"]["CodeEvaluatorUIContext"] | null;
6534
+ llmEvaluator?: components["schemas"]["LlmEvaluatorUIContext"] | null;
6535
+ };
6310
6536
  /** UpdateAnnotationConfigResponseBody */
6311
6537
  UpdateAnnotationConfigResponseBody: {
6312
6538
  /** Data */
@@ -9761,7 +9987,7 @@ export interface operations {
9761
9987
  order?: "asc" | "desc";
9762
9988
  /** @description Maximum number of traces to return */
9763
9989
  limit?: number;
9764
- /** @description Pagination cursor (Trace GlobalID) */
9990
+ /** @description Pagination cursor returned by a previous request */
9765
9991
  cursor?: string | null;
9766
9992
  /** @description If true, include full span details for each trace. This significantly increases response size and query latency, especially with large page sizes. Prefer fetching spans lazily for individual traces when possible. */
9767
9993
  include_spans?: boolean;
@@ -9920,6 +10146,57 @@ export interface operations {
9920
10146
  };
9921
10147
  };
9922
10148
  };
10149
+ transferTraces: {
10150
+ parameters: {
10151
+ query?: never;
10152
+ header?: never;
10153
+ path?: never;
10154
+ cookie?: never;
10155
+ };
10156
+ requestBody: {
10157
+ content: {
10158
+ "application/json": components["schemas"]["TransferTracesRequestBody"];
10159
+ };
10160
+ };
10161
+ responses: {
10162
+ /** @description Successful Response */
10163
+ 200: {
10164
+ headers: {
10165
+ [name: string]: unknown;
10166
+ };
10167
+ content: {
10168
+ "application/json": components["schemas"]["TransferTracesResponseBody"];
10169
+ };
10170
+ };
10171
+ /** @description Forbidden */
10172
+ 403: {
10173
+ headers: {
10174
+ [name: string]: unknown;
10175
+ };
10176
+ content: {
10177
+ "text/plain": string;
10178
+ };
10179
+ };
10180
+ /** @description Destination project or trace not found */
10181
+ 404: {
10182
+ headers: {
10183
+ [name: string]: unknown;
10184
+ };
10185
+ content: {
10186
+ "text/plain": string;
10187
+ };
10188
+ };
10189
+ /** @description Invalid request */
10190
+ 422: {
10191
+ headers: {
10192
+ [name: string]: unknown;
10193
+ };
10194
+ content: {
10195
+ "text/plain": string;
10196
+ };
10197
+ };
10198
+ };
10199
+ };
9923
10200
  deleteTrace: {
9924
10201
  parameters: {
9925
10202
  query?: never;
@@ -10468,6 +10745,60 @@ export interface operations {
10468
10745
  };
10469
10746
  };
10470
10747
  };
10748
+ createPromptVersion: {
10749
+ parameters: {
10750
+ query?: never;
10751
+ header?: never;
10752
+ path: {
10753
+ /** @description The identifier of the prompt, i.e. name or ID. */
10754
+ prompt_identifier: string;
10755
+ };
10756
+ cookie?: never;
10757
+ };
10758
+ requestBody: {
10759
+ content: {
10760
+ "application/json": components["schemas"]["CreatePromptVersionRequestBody"];
10761
+ };
10762
+ };
10763
+ responses: {
10764
+ /** @description The created prompt version */
10765
+ 201: {
10766
+ headers: {
10767
+ [name: string]: unknown;
10768
+ };
10769
+ content: {
10770
+ "application/json": components["schemas"]["CreatePromptVersionResponseBody"];
10771
+ };
10772
+ };
10773
+ /** @description Forbidden */
10774
+ 403: {
10775
+ headers: {
10776
+ [name: string]: unknown;
10777
+ };
10778
+ content: {
10779
+ "text/plain": string;
10780
+ };
10781
+ };
10782
+ /** @description Not Found */
10783
+ 404: {
10784
+ headers: {
10785
+ [name: string]: unknown;
10786
+ };
10787
+ content: {
10788
+ "text/plain": string;
10789
+ };
10790
+ };
10791
+ /** @description Unprocessable Entity */
10792
+ 422: {
10793
+ headers: {
10794
+ [name: string]: unknown;
10795
+ };
10796
+ content: {
10797
+ "text/plain": string;
10798
+ };
10799
+ };
10800
+ };
10801
+ };
10471
10802
  getPromptVersionByPromptVersionId: {
10472
10803
  parameters: {
10473
10804
  query?: never;
@@ -11122,6 +11453,132 @@ export interface operations {
11122
11453
  };
11123
11454
  };
11124
11455
  };
11456
+ setProjectRetentionPolicy: {
11457
+ parameters: {
11458
+ query?: never;
11459
+ header?: never;
11460
+ path: {
11461
+ /** @description The project identifier: either project ID or project name. */
11462
+ project_identifier: string;
11463
+ };
11464
+ cookie?: never;
11465
+ };
11466
+ requestBody: {
11467
+ content: {
11468
+ "application/json": components["schemas"]["SetProjectRetentionPolicyRequestBody"];
11469
+ };
11470
+ };
11471
+ responses: {
11472
+ /** @description The project's retention policy assignment */
11473
+ 200: {
11474
+ headers: {
11475
+ [name: string]: unknown;
11476
+ };
11477
+ content: {
11478
+ "application/json": components["schemas"]["SetProjectRetentionPolicyResponseBody"];
11479
+ };
11480
+ };
11481
+ /** @description Forbidden */
11482
+ 403: {
11483
+ headers: {
11484
+ [name: string]: unknown;
11485
+ };
11486
+ content: {
11487
+ "text/plain": string;
11488
+ };
11489
+ };
11490
+ /** @description Not Found */
11491
+ 404: {
11492
+ headers: {
11493
+ [name: string]: unknown;
11494
+ };
11495
+ content: {
11496
+ "text/plain": string;
11497
+ };
11498
+ };
11499
+ /** @description Unprocessable Entity */
11500
+ 422: {
11501
+ headers: {
11502
+ [name: string]: unknown;
11503
+ };
11504
+ content: {
11505
+ "text/plain": string;
11506
+ };
11507
+ };
11508
+ };
11509
+ };
11510
+ getModelProviders: {
11511
+ parameters: {
11512
+ query?: never;
11513
+ header?: never;
11514
+ path?: never;
11515
+ cookie?: never;
11516
+ };
11517
+ requestBody?: never;
11518
+ responses: {
11519
+ /** @description A list of built-in model provider families */
11520
+ 200: {
11521
+ headers: {
11522
+ [name: string]: unknown;
11523
+ };
11524
+ content: {
11525
+ "application/json": components["schemas"]["GetModelProvidersResponseBody"];
11526
+ };
11527
+ };
11528
+ /** @description Forbidden */
11529
+ 403: {
11530
+ headers: {
11531
+ [name: string]: unknown;
11532
+ };
11533
+ content: {
11534
+ "text/plain": string;
11535
+ };
11536
+ };
11537
+ };
11538
+ };
11539
+ getCustomModelProviders: {
11540
+ parameters: {
11541
+ query?: {
11542
+ /** @description Cursor for pagination (custom provider ID) */
11543
+ cursor?: string | null;
11544
+ /** @description The max number of custom providers to return at a time (at most 1000). */
11545
+ limit?: number;
11546
+ };
11547
+ header?: never;
11548
+ path?: never;
11549
+ cookie?: never;
11550
+ };
11551
+ requestBody?: never;
11552
+ responses: {
11553
+ /** @description A list of custom model providers with pagination information */
11554
+ 200: {
11555
+ headers: {
11556
+ [name: string]: unknown;
11557
+ };
11558
+ content: {
11559
+ "application/json": components["schemas"]["GetCustomModelProvidersResponseBody"];
11560
+ };
11561
+ };
11562
+ /** @description Forbidden */
11563
+ 403: {
11564
+ headers: {
11565
+ [name: string]: unknown;
11566
+ };
11567
+ content: {
11568
+ "text/plain": string;
11569
+ };
11570
+ };
11571
+ /** @description Unprocessable Entity */
11572
+ 422: {
11573
+ headers: {
11574
+ [name: string]: unknown;
11575
+ };
11576
+ content: {
11577
+ "text/plain": string;
11578
+ };
11579
+ };
11580
+ };
11581
+ };
11125
11582
  getSession: {
11126
11583
  parameters: {
11127
11584
  query?: never;
@@ -12978,6 +13435,95 @@ export interface operations {
12978
13435
  };
12979
13436
  };
12980
13437
  };
13438
+ submitAgentSessionToolApprovals: {
13439
+ parameters: {
13440
+ query?: never;
13441
+ header?: never;
13442
+ path: {
13443
+ session_id: string;
13444
+ };
13445
+ cookie?: never;
13446
+ };
13447
+ requestBody: {
13448
+ content: {
13449
+ "application/json": components["schemas"]["SubmitAgentSessionToolApprovalsRequestBody"];
13450
+ };
13451
+ };
13452
+ responses: {
13453
+ /** @description Successful Response */
13454
+ 200: {
13455
+ headers: {
13456
+ [name: string]: unknown;
13457
+ };
13458
+ content: {
13459
+ "application/json": components["schemas"]["SubmitAgentSessionToolApprovalsResponseBody"];
13460
+ };
13461
+ };
13462
+ /** @description Bad Request */
13463
+ 400: {
13464
+ headers: {
13465
+ [name: string]: unknown;
13466
+ };
13467
+ content: {
13468
+ "text/plain": string;
13469
+ };
13470
+ };
13471
+ /** @description Unauthorized */
13472
+ 401: {
13473
+ headers: {
13474
+ [name: string]: unknown;
13475
+ };
13476
+ content: {
13477
+ "text/plain": string;
13478
+ };
13479
+ };
13480
+ /** @description Forbidden */
13481
+ 403: {
13482
+ headers: {
13483
+ [name: string]: unknown;
13484
+ };
13485
+ content: {
13486
+ "text/plain": string;
13487
+ };
13488
+ };
13489
+ /** @description Not Found */
13490
+ 404: {
13491
+ headers: {
13492
+ [name: string]: unknown;
13493
+ };
13494
+ content: {
13495
+ "text/plain": string;
13496
+ };
13497
+ };
13498
+ /** @description The request conflicts with the session's current state; the body's ``code`` field says how. */
13499
+ 409: {
13500
+ headers: {
13501
+ [name: string]: unknown;
13502
+ };
13503
+ content: {
13504
+ "application/json": components["schemas"]["AgentSessionConflictError"];
13505
+ };
13506
+ };
13507
+ /** @description Validation Error */
13508
+ 422: {
13509
+ headers: {
13510
+ [name: string]: unknown;
13511
+ };
13512
+ content: {
13513
+ "application/json": components["schemas"]["HTTPValidationError"];
13514
+ };
13515
+ };
13516
+ /** @description Insufficient Storage */
13517
+ 507: {
13518
+ headers: {
13519
+ [name: string]: unknown;
13520
+ };
13521
+ content: {
13522
+ "text/plain": string;
13523
+ };
13524
+ };
13525
+ };
13526
+ };
12981
13527
  agentSessionChat: {
12982
13528
  parameters: {
12983
13529
  query?: never;