@arizeai/phoenix-client 7.1.1 → 7.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 (73) hide show
  1. package/README.md +25 -0
  2. package/dist/esm/__generated__/api/v1.d.ts +315 -9
  3. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  4. package/dist/esm/experiments/getExperiment.d.ts.map +1 -1
  5. package/dist/esm/experiments/getExperiment.js.map +1 -1
  6. package/dist/esm/projects/getProjects.d.ts +31 -0
  7. package/dist/esm/projects/getProjects.d.ts.map +1 -0
  8. package/dist/esm/projects/getProjects.js +45 -0
  9. package/dist/esm/projects/getProjects.js.map +1 -0
  10. package/dist/esm/projects/index.d.ts +2 -0
  11. package/dist/esm/projects/index.d.ts.map +1 -0
  12. package/dist/esm/projects/index.js +2 -0
  13. package/dist/esm/projects/index.js.map +1 -0
  14. package/dist/esm/prompts/createPrompt.js +1 -1
  15. package/dist/esm/prompts/createPrompt.js.map +1 -1
  16. package/dist/esm/prompts/sdks/toSDK.js +1 -1
  17. package/dist/esm/prompts/sdks/toSDK.js.map +1 -1
  18. package/dist/esm/schemas/llm/converters.js +5 -5
  19. package/dist/esm/schemas/llm/converters.js.map +1 -1
  20. package/dist/esm/schemas/llm/openai/converters.js +3 -3
  21. package/dist/esm/schemas/llm/openai/converters.js.map +1 -1
  22. package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts.map +1 -1
  23. package/dist/esm/schemas/llm/phoenixPrompt/converters.js +2 -0
  24. package/dist/esm/schemas/llm/phoenixPrompt/converters.js.map +1 -1
  25. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  26. package/dist/esm/types/projects.d.ts +5 -0
  27. package/dist/esm/types/projects.d.ts.map +1 -1
  28. package/dist/esm/types/projects.js.map +1 -1
  29. package/dist/esm/utils/serverVersionUtils.d.ts.map +1 -1
  30. package/dist/esm/utils/serverVersionUtils.js +3 -0
  31. package/dist/esm/utils/serverVersionUtils.js.map +1 -1
  32. package/dist/src/__generated__/api/v1.d.ts +315 -9
  33. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  34. package/dist/src/experiments/getExperiment.d.ts.map +1 -1
  35. package/dist/src/experiments/getExperiment.js.map +1 -1
  36. package/dist/src/projects/getProjects.d.ts +31 -0
  37. package/dist/src/projects/getProjects.d.ts.map +1 -0
  38. package/dist/src/projects/getProjects.js +53 -0
  39. package/dist/src/projects/getProjects.js.map +1 -0
  40. package/dist/src/projects/index.d.ts +2 -0
  41. package/dist/src/projects/index.d.ts.map +1 -0
  42. package/dist/src/projects/index.js +18 -0
  43. package/dist/src/projects/index.js.map +1 -0
  44. package/dist/src/prompts/createPrompt.js +1 -1
  45. package/dist/src/prompts/createPrompt.js.map +1 -1
  46. package/dist/src/prompts/sdks/toSDK.js +1 -1
  47. package/dist/src/prompts/sdks/toSDK.js.map +1 -1
  48. package/dist/src/schemas/llm/converters.js +5 -5
  49. package/dist/src/schemas/llm/converters.js.map +1 -1
  50. package/dist/src/schemas/llm/openai/converters.js +3 -3
  51. package/dist/src/schemas/llm/openai/converters.js.map +1 -1
  52. package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts.map +1 -1
  53. package/dist/src/schemas/llm/phoenixPrompt/converters.js +2 -0
  54. package/dist/src/schemas/llm/phoenixPrompt/converters.js.map +1 -1
  55. package/dist/src/types/projects.d.ts +5 -0
  56. package/dist/src/types/projects.d.ts.map +1 -1
  57. package/dist/src/types/projects.js.map +1 -1
  58. package/dist/src/utils/serverVersionUtils.d.ts.map +1 -1
  59. package/dist/src/utils/serverVersionUtils.js +3 -0
  60. package/dist/src/utils/serverVersionUtils.js.map +1 -1
  61. package/dist/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +16 -12
  63. package/src/__generated__/api/v1.ts +315 -9
  64. package/src/experiments/getExperiment.ts +4 -7
  65. package/src/projects/getProjects.ts +69 -0
  66. package/src/projects/index.ts +1 -0
  67. package/src/prompts/createPrompt.ts +1 -1
  68. package/src/prompts/sdks/toSDK.ts +1 -1
  69. package/src/schemas/llm/converters.ts +5 -5
  70. package/src/schemas/llm/openai/converters.ts +3 -3
  71. package/src/schemas/llm/phoenixPrompt/converters.ts +2 -0
  72. package/src/types/projects.ts +7 -0
  73. package/src/utils/serverVersionUtils.ts +3 -0
@@ -1,3 +1,8 @@
1
+ import type { components } from "../__generated__/api/v1.js";
2
+ /**
3
+ * A project as returned by the Phoenix REST API.
4
+ */
5
+ export type Project = components["schemas"]["Project"];
1
6
  /**
2
7
  * Identifies a project. Accepts any of:
3
8
  * - `project` — a project ID or name (the server accepts either)
@@ -1 +1 @@
1
- {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/types/projects.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GACnB;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GACrB;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5B;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,iBAAiB,GAC5B,MAAM,CAIR"}
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/types/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GACnB;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GACrB;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5B;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,iBAAiB,GAC5B,MAAM,CAIR"}
@@ -1 +1 @@
1
- {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/types/projects.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAA6B;IAE7B,IAAI,SAAS,IAAI,UAAU;QAAE,OAAO,UAAU,CAAC,OAAO,CAAC;IACvD,IAAI,WAAW,IAAI,UAAU;QAAE,OAAO,UAAU,CAAC,SAAS,CAAC;IAC3D,OAAO,UAAU,CAAC,WAAW,CAAC;AAChC,CAAC"}
1
+ {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/types/projects.ts"],"names":[],"mappings":"AAkBA;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAA6B;IAE7B,IAAI,SAAS,IAAI,UAAU;QAAE,OAAO,UAAU,CAAC,OAAO,CAAC;IACvD,IAAI,WAAW,IAAI,UAAU;QAAE,OAAO,UAAU,CAAC,SAAS,CAAC;IAC3D,OAAO,UAAU,CAAC,WAAW,CAAC;AAChC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"serverVersionUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/serverVersionUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAOzE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,qBAAqB,GAAG,MAAM,CAQlE;AAMD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,MAAM,EACN,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,qBAAqB,CAAC;CACpC,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhB"}
1
+ {"version":3,"file":"serverVersionUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/serverVersionUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAQzE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,qBAAqB,GAAG,MAAM,CAUlE;AAMD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,MAAM,EACN,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,aAAa,CAAC;IACtB,WAAW,EAAE,qBAAqB,CAAC;CACpC,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhB"}
@@ -17,6 +17,7 @@
17
17
  * see *exactly* which feature is unavailable and which version they need,
18
18
  * rather than receiving an opaque HTTP 404 or 400 response.
19
19
  */
20
+ import { assertUnreachable } from "./assertUnreachable.js";
20
21
  import { formatVersion, satisfiesMinVersion } from "./semverUtils.js";
21
22
  // ---------------------------------------------------------------------------
22
23
  // Capability label
@@ -33,6 +34,8 @@ export function capabilityLabel(req) {
33
34
  return `The ${req.method} ${req.path} route`;
34
35
  case "parameter":
35
36
  return `The '${req.parameterName}' ${req.parameterLocation} parameter on ${req.route}`;
37
+ default:
38
+ return assertUnreachable(req);
36
39
  }
37
40
  }
38
41
  // ---------------------------------------------------------------------------
@@ -1 +1 @@
1
- {"version":3,"file":"serverVersionUtils.js","sourceRoot":"","sources":["../../../src/utils/serverVersionUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEnE,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,GAA0B;IACxD,IAAI,GAAG,CAAC,WAAW;QAAE,OAAO,GAAG,CAAC,WAAW,CAAC;IAC5C,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,OAAO,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,QAAQ,CAAC;QAC/C,KAAK,WAAW;YACd,OAAO,QAAQ,GAAG,CAAC,aAAa,KAAK,GAAG,CAAC,iBAAiB,iBAAiB,GAAG,CAAC,KAAK,EAAE,CAAC;IAC3F,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,SAAS;AACT,8EAA8E;AAE9E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,EAC3C,MAAM,EACN,WAAW,GAIZ;IACC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,gBAAgB,EAAE,CAAC;IAChD,IACE,CAAC,mBAAmB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,gBAAgB,EAAE,CAAC,EAC3E,CAAC;QACD,MAAM,IAAI,KAAK,CACb,GAAG,eAAe,CAAC,WAAW,CAAC,+BAA+B,aAAa,CAAC,WAAW,CAAC,gBAAgB,CAAC,IAAI;YAC3G,2BAA2B,aAAa,CAAC,OAAO,CAAC,uCAAuC,CAC3F,CAAC;IACJ,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"serverVersionUtils.js","sourceRoot":"","sources":["../../../src/utils/serverVersionUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEnE,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,GAA0B;IACxD,IAAI,GAAG,CAAC,WAAW;QAAE,OAAO,GAAG,CAAC,WAAW,CAAC;IAC5C,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,OAAO,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,QAAQ,CAAC;QAC/C,KAAK,WAAW;YACd,OAAO,QAAQ,GAAG,CAAC,aAAa,KAAK,GAAG,CAAC,iBAAiB,iBAAiB,GAAG,CAAC,KAAK,EAAE,CAAC;QACzF;YACE,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,SAAS;AACT,8EAA8E;AAE9E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,EAC3C,MAAM,EACN,WAAW,GAIZ;IACC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,gBAAgB,EAAE,CAAC;IAChD,IACE,CAAC,mBAAmB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,gBAAgB,EAAE,CAAC,EAC3E,CAAC;QACD,MAAM,IAAI,KAAK,CACb,GAAG,eAAe,CAAC,WAAW,CAAC,+BAA+B,aAAa,CAAC,WAAW,CAAC,gBAAgB,CAAC,IAAI;YAC3G,2BAA2B,aAAa,CAAC,OAAO,CAAC,uCAAuC,CAC3F,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1026,7 +1026,11 @@ export interface paths {
1026
1026
  delete: operations["deletePrompt"];
1027
1027
  options?: never;
1028
1028
  head?: never;
1029
- patch?: never;
1029
+ /**
1030
+ * Update prompt metadata
1031
+ * @description Update a prompt's description and metadata by identifier.
1032
+ */
1033
+ patch: operations["patchPrompt"];
1030
1034
  trace?: never;
1031
1035
  };
1032
1036
  "/v1/projects": {
@@ -1389,6 +1393,28 @@ export interface paths {
1389
1393
  patch?: never;
1390
1394
  trace?: never;
1391
1395
  };
1396
+ "/v1/chat/completions": {
1397
+ parameters: {
1398
+ query?: never;
1399
+ header?: never;
1400
+ path?: never;
1401
+ cookie?: never;
1402
+ };
1403
+ get?: never;
1404
+ put?: never;
1405
+ /**
1406
+ * OpenAI-compatible chat completions
1407
+ * @description Creates a chat completion using the OpenAI wire format, proxying to the selected provider with credentials resolved on the server (secret store first, environment second) — callers never handle provider API keys. Model must be '{provider}:{model_name}' for a built-in provider (one of anthropic, aws, azure_openai, cerebras, deepseek, fireworks, google, groq, moonshot, ollama, openai, perplexity, together, xai) or 'custom:{provider_id}:{model_name}' for a stored custom provider, e.g. 'openai:gpt-4o' or 'anthropic:claude-sonnet-4-5'. Set `stream: true` for server-sent events of `chat.completion.chunk` payloads terminated by `data: [DONE]`. Tool calling is not supported.
1408
+ *
1409
+ * **Phoenix is not an AI gateway.** The same server also takes on trace ingestion traffic, so routing production LLM calls through it competes with ingestion. Use this endpoint only to quickly try out different models in non-production environments.
1410
+ */
1411
+ post: operations["createChatCompletion"];
1412
+ delete?: never;
1413
+ options?: never;
1414
+ head?: never;
1415
+ patch?: never;
1416
+ trace?: never;
1417
+ };
1392
1418
  "/auth/login": {
1393
1419
  parameters: {
1394
1420
  query?: never;
@@ -1932,6 +1958,98 @@ export interface components {
1932
1958
  /** Score */
1933
1959
  score?: number | null;
1934
1960
  };
1961
+ /** ChatCompletion */
1962
+ ChatCompletion: {
1963
+ /** Id */
1964
+ id: string;
1965
+ /**
1966
+ * Object
1967
+ * @default chat.completion
1968
+ * @constant
1969
+ */
1970
+ object?: "chat.completion";
1971
+ /** Created */
1972
+ created: number;
1973
+ /** Model */
1974
+ model: string;
1975
+ /** Choices */
1976
+ choices: components["schemas"]["ChatCompletionChoice"][];
1977
+ usage: components["schemas"]["ChatCompletionUsage"];
1978
+ };
1979
+ /** ChatCompletionChoice */
1980
+ ChatCompletionChoice: {
1981
+ /**
1982
+ * Index
1983
+ * @default 0
1984
+ */
1985
+ index?: number;
1986
+ message: components["schemas"]["ChatCompletionMessage"];
1987
+ /** Finish Reason */
1988
+ finish_reason: string;
1989
+ };
1990
+ /** ChatCompletionErrorDetail */
1991
+ ChatCompletionErrorDetail: {
1992
+ /** Message */
1993
+ message: string;
1994
+ /** Type */
1995
+ type: string;
1996
+ /** Param */
1997
+ param?: string | null;
1998
+ /** Code */
1999
+ code?: string | null;
2000
+ };
2001
+ /** ChatCompletionErrorResponse */
2002
+ ChatCompletionErrorResponse: {
2003
+ error: components["schemas"]["ChatCompletionErrorDetail"];
2004
+ };
2005
+ /** ChatCompletionMessage */
2006
+ ChatCompletionMessage: {
2007
+ /**
2008
+ * Role
2009
+ * @default assistant
2010
+ * @constant
2011
+ */
2012
+ role?: "assistant";
2013
+ /** Content */
2014
+ content: string;
2015
+ };
2016
+ /** ChatCompletionRequestMessage */
2017
+ ChatCompletionRequestMessage: {
2018
+ /**
2019
+ * Role
2020
+ * @enum {string}
2021
+ */
2022
+ role: "system" | "developer" | "user" | "assistant";
2023
+ /** Content */
2024
+ content: string | components["schemas"]["ChatCompletionTextPart"][];
2025
+ };
2026
+ /** ChatCompletionStreamOptions */
2027
+ ChatCompletionStreamOptions: {
2028
+ /**
2029
+ * Include Usage
2030
+ * @default false
2031
+ */
2032
+ include_usage?: boolean;
2033
+ };
2034
+ /** ChatCompletionTextPart */
2035
+ ChatCompletionTextPart: {
2036
+ /**
2037
+ * Type
2038
+ * @constant
2039
+ */
2040
+ type: "text";
2041
+ /** Text */
2042
+ text: string;
2043
+ };
2044
+ /** ChatCompletionUsage */
2045
+ ChatCompletionUsage: {
2046
+ /** Prompt Tokens */
2047
+ prompt_tokens: number;
2048
+ /** Completion Tokens */
2049
+ completion_tokens: number;
2050
+ /** Total Tokens */
2051
+ total_tokens: number;
2052
+ };
1935
2053
  /**
1936
2054
  * ChatContext
1937
2055
  * @description Discriminated union of every UI-state context the agent understands.
@@ -2106,6 +2224,63 @@ export interface components {
2106
2224
  CreateApiKeyResponseBody: {
2107
2225
  data: components["schemas"]["CreatedApiKey"];
2108
2226
  };
2227
+ /**
2228
+ * CreateChatCompletionRequestBody
2229
+ * @example {
2230
+ * "messages": [
2231
+ * {
2232
+ * "content": "You are a helpful assistant.",
2233
+ * "role": "system"
2234
+ * },
2235
+ * {
2236
+ * "content": "Say hello.",
2237
+ * "role": "user"
2238
+ * }
2239
+ * ],
2240
+ * "model": "openai:gpt-4o"
2241
+ * }
2242
+ */
2243
+ CreateChatCompletionRequestBody: {
2244
+ /**
2245
+ * Model
2246
+ * @description Model must be '{provider}:{model_name}' for a built-in provider (one of anthropic, aws, azure_openai, cerebras, deepseek, fireworks, google, groq, moonshot, ollama, openai, perplexity, together, xai) or 'custom:{provider_id}:{model_name}' for a stored custom provider, e.g. 'openai:gpt-4o' or 'anthropic:claude-sonnet-4-5'.
2247
+ */
2248
+ model: string;
2249
+ /** Messages */
2250
+ messages: components["schemas"]["ChatCompletionRequestMessage"][];
2251
+ /**
2252
+ * Stream
2253
+ * @default false
2254
+ */
2255
+ stream?: boolean;
2256
+ /** Temperature */
2257
+ temperature?: number | null;
2258
+ /** Top P */
2259
+ top_p?: number | null;
2260
+ /** Max Tokens */
2261
+ max_tokens?: number | null;
2262
+ /** Max Completion Tokens */
2263
+ max_completion_tokens?: number | null;
2264
+ /** Stop */
2265
+ stop?: string | string[] | null;
2266
+ /** Frequency Penalty */
2267
+ frequency_penalty?: number | null;
2268
+ /** Presence Penalty */
2269
+ presence_penalty?: number | null;
2270
+ /** Seed */
2271
+ seed?: number | null;
2272
+ /** N */
2273
+ n?: number | null;
2274
+ stream_options?: components["schemas"]["ChatCompletionStreamOptions"] | null;
2275
+ /** Tools */
2276
+ tools?: unknown[] | null;
2277
+ /** Tool Choice */
2278
+ tool_choice?: unknown | null;
2279
+ /** Response Format */
2280
+ response_format?: {
2281
+ [key: string]: unknown;
2282
+ } | null;
2283
+ };
2109
2284
  /** CreateDatasetLabelRequestBody */
2110
2285
  CreateDatasetLabelRequestBody: {
2111
2286
  /**
@@ -3595,6 +3770,28 @@ export interface components {
3595
3770
  */
3596
3771
  message?: string | null;
3597
3772
  };
3773
+ /**
3774
+ * PatchPromptRequestBody
3775
+ * @description Fields to update on a prompt. Omit a field to leave it unchanged.
3776
+ */
3777
+ PatchPromptRequestBody: {
3778
+ /**
3779
+ * Description
3780
+ * @description New description for the prompt (null clears the description)
3781
+ */
3782
+ description?: string | null;
3783
+ /**
3784
+ * Metadata
3785
+ * @description New metadata object for the prompt (replaces the existing metadata as a whole)
3786
+ */
3787
+ metadata?: {
3788
+ [key: string]: unknown;
3789
+ };
3790
+ };
3791
+ /** PatchPromptResponseBody */
3792
+ PatchPromptResponseBody: {
3793
+ data: components["schemas"]["Prompt"];
3794
+ };
3598
3795
  /**
3599
3796
  * PhoenixUIMessage
3600
3797
  * @description `UIMessage` with `metadata` narrowed to the Phoenix wire shapes.
@@ -3755,12 +3952,9 @@ export interface components {
3755
3952
  *
3756
3953
  * ``span_filter`` carries the project-scoped span filter expression when the
3757
3954
  * span filter field is mounted — empty string when the field is mounted with
3758
- * no condition applied, ``None`` when the field is not present at all.
3759
- *
3760
- * ``root_spans_only`` carries the current state of the spans-table root vs.
3761
- * all toggle when that toggle is mounted — ``True`` when the table is
3762
- * restricted to root spans, ``False`` when it shows every span, ``None``
3763
- * when the toggle is not present (e.g. on the traces tab).
3955
+ * no condition applied, ``None`` when the field is not present at all. It
3956
+ * describes the view in full, root-span scoping included (which is expressed
3957
+ * within the filter DSL as ``parent_id is None``).
3764
3958
  */
3765
3959
  ProjectContext: {
3766
3960
  /**
@@ -3772,8 +3966,6 @@ export interface components {
3772
3966
  projectNodeId: string;
3773
3967
  /** Spanfilter */
3774
3968
  spanFilter?: string | null;
3775
- /** Rootspansonly */
3776
- rootSpansOnly?: boolean | null;
3777
3969
  };
3778
3970
  /** Prompt */
3779
3971
  Prompt: {
@@ -9479,6 +9671,60 @@ export interface operations {
9479
9671
  };
9480
9672
  };
9481
9673
  };
9674
+ patchPrompt: {
9675
+ parameters: {
9676
+ query?: never;
9677
+ header?: never;
9678
+ path: {
9679
+ /** @description The identifier of the prompt, i.e. name or ID. */
9680
+ prompt_identifier: string;
9681
+ };
9682
+ cookie?: never;
9683
+ };
9684
+ requestBody: {
9685
+ content: {
9686
+ "application/json": components["schemas"]["PatchPromptRequestBody"];
9687
+ };
9688
+ };
9689
+ responses: {
9690
+ /** @description The updated prompt */
9691
+ 200: {
9692
+ headers: {
9693
+ [name: string]: unknown;
9694
+ };
9695
+ content: {
9696
+ "application/json": components["schemas"]["PatchPromptResponseBody"];
9697
+ };
9698
+ };
9699
+ /** @description Forbidden */
9700
+ 403: {
9701
+ headers: {
9702
+ [name: string]: unknown;
9703
+ };
9704
+ content: {
9705
+ "text/plain": string;
9706
+ };
9707
+ };
9708
+ /** @description Not Found */
9709
+ 404: {
9710
+ headers: {
9711
+ [name: string]: unknown;
9712
+ };
9713
+ content: {
9714
+ "text/plain": string;
9715
+ };
9716
+ };
9717
+ /** @description Unprocessable Entity */
9718
+ 422: {
9719
+ headers: {
9720
+ [name: string]: unknown;
9721
+ };
9722
+ content: {
9723
+ "text/plain": string;
9724
+ };
9725
+ };
9726
+ };
9727
+ };
9482
9728
  getProjects: {
9483
9729
  parameters: {
9484
9730
  query?: {
@@ -10678,6 +10924,66 @@ export interface operations {
10678
10924
  };
10679
10925
  };
10680
10926
  };
10927
+ createChatCompletion: {
10928
+ parameters: {
10929
+ query?: never;
10930
+ header?: never;
10931
+ path?: never;
10932
+ cookie?: never;
10933
+ };
10934
+ requestBody: {
10935
+ content: {
10936
+ "application/json": components["schemas"]["CreateChatCompletionRequestBody"];
10937
+ };
10938
+ };
10939
+ responses: {
10940
+ /** @description Successful Response */
10941
+ 200: {
10942
+ headers: {
10943
+ [name: string]: unknown;
10944
+ };
10945
+ content: {
10946
+ "application/json": components["schemas"]["ChatCompletion"];
10947
+ };
10948
+ };
10949
+ /** @description Bad Request */
10950
+ 400: {
10951
+ headers: {
10952
+ [name: string]: unknown;
10953
+ };
10954
+ content: {
10955
+ "application/json": components["schemas"]["ChatCompletionErrorResponse"];
10956
+ };
10957
+ };
10958
+ /** @description Forbidden */
10959
+ 403: {
10960
+ headers: {
10961
+ [name: string]: unknown;
10962
+ };
10963
+ content: {
10964
+ "text/plain": string;
10965
+ };
10966
+ };
10967
+ /** @description Not Found */
10968
+ 404: {
10969
+ headers: {
10970
+ [name: string]: unknown;
10971
+ };
10972
+ content: {
10973
+ "application/json": components["schemas"]["ChatCompletionErrorResponse"];
10974
+ };
10975
+ };
10976
+ /** @description Unprocessable Entity */
10977
+ 422: {
10978
+ headers: {
10979
+ [name: string]: unknown;
10980
+ };
10981
+ content: {
10982
+ "application/json": components["schemas"]["ChatCompletionErrorResponse"];
10983
+ };
10984
+ };
10985
+ };
10986
+ };
10681
10987
  _login_auth_login_post: {
10682
10988
  parameters: {
10683
10989
  query?: never;