@mastra/client-js 1.53.0-alpha.7 → 1.53.0-alpha.8

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.
@@ -70,4 +70,15 @@ export declare function buildTenancyQuery(tenancy?: {
70
70
  * back to a manual listener merge for runtimes that lack it.
71
71
  */
72
72
  export declare function mergeAbortSignals(...signals: Array<AbortSignal | undefined>): AbortSignal | undefined;
73
+ /**
74
+ * Whether an error carries an HTTP status that retrying cannot fix: any 4xx
75
+ * client error (e.g. 401/403 auth failures) or 501 Not Implemented.
76
+ */
77
+ export declare function isTerminalHttpError(error: unknown): boolean;
78
+ /**
79
+ * Whether a failed resubscribe should end a long-lived subscription instead of
80
+ * retrying. Like {@link isTerminalHttpError}, but 408 Request Timeout and
81
+ * 429 Too Many Requests stay retryable because they mean "try again later".
82
+ */
83
+ export declare function isTerminalReconnectError(error: unknown): boolean;
73
84
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBvD;AAmCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAE,CAAC,MAAM,CAAC,CAAC,EAAO,GAAG,MAAM,CAwBjH;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAM3D;AAED,wBAAgB,yBAAyB,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,mCAQ9F;AAED,wBAAgB,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,MAAM,GAAG,SAAS,CAS7F;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrD,SAAS,GAAE,MAAY,GACtB,MAAM,CAOR;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAOnG;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,OAAO,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC,GAAG,WAAW,GAAG,SAAS,CA+BrG;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "1.53.0-alpha.7",
3
+ "version": "1.53.0-alpha.8",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "canonicalize": "^1.0.8",
39
39
  "jose": "^6.2.11",
40
40
  "json-schema": "^0.4.0",
41
- "@mastra/core": "1.76.0-alpha.7",
41
+ "@mastra/core": "1.76.0-alpha.8",
42
42
  "@mastra/schema-compat": "1.3.13"
43
43
  },
44
44
  "peerDependencies": {
@@ -57,8 +57,8 @@
57
57
  "zod": "^4.6.4",
58
58
  "@internal/ai-sdk-v4": "0.0.88",
59
59
  "@internal/ai-sdk-v5": "0.0.88",
60
- "@internal/types-builder": "0.0.116",
61
- "@internal/lint": "0.0.141"
60
+ "@internal/lint": "0.0.141",
61
+ "@internal/types-builder": "0.0.116"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22.13.0"