@jxsuite/protocol 2.3.0 → 2.3.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/protocol",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "The Studio Backend Protocol — wire types and the canonical route table every Jx Studio backend implements",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/types.ts CHANGED
@@ -758,6 +758,13 @@ export interface AiModelsResponse {
758
758
  defaultModel?: string;
759
759
  /** Set when the upstream provider was unreachable and defaults were returned. */
760
760
  upstreamError?: number | string;
761
+ /**
762
+ * The upstream's own error message, when {@link upstreamError} is set. Populated from whatever
763
+ * envelope the upstream used — OpenAI's `{error}`, or an array-shaped one like Cloudflare's
764
+ * `{errors: [{message}]}` — so a caller can show the real reason (e.g. "No route for that URI")
765
+ * instead of a bare status code.
766
+ */
767
+ upstreamMessage?: string;
761
768
  /**
762
769
  * Why the backend holds no working credentials, when it holds none.
763
770
  *