@mastra/client-js 1.49.1-alpha.0 → 1.50.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.
- package/dist/client.d.ts +3 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/observability.d.ts +5 -1
- package/dist/resources/observability.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +174 -112
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -602,7 +602,7 @@ var BaseResource = class {
|
|
|
602
602
|
lastError = error;
|
|
603
603
|
if (signal?.aborted || error?.name === "AbortError") throw error;
|
|
604
604
|
const status = error.status;
|
|
605
|
-
if (status !== void 0 && status >= 400 && status < 500) throw error;
|
|
605
|
+
if (status !== void 0 && (status >= 400 && status < 500 || status === 501)) throw error;
|
|
606
606
|
if (attempt === retries) break;
|
|
607
607
|
await new Promise((resolve, reject) => {
|
|
608
608
|
const timer = setTimeout(() => {
|
|
@@ -4873,6 +4873,12 @@ var Observability = class extends BaseResource {
|
|
|
4873
4873
|
const queryString = toQueryParams(params);
|
|
4874
4874
|
return this.request(`/observability/discovery/tags${queryString ? `?${queryString}` : ""}`);
|
|
4875
4875
|
}
|
|
4876
|
+
/**
|
|
4877
|
+
* Returns which optional observability APIs the configured observability storage supports.
|
|
4878
|
+
*/
|
|
4879
|
+
getCapabilities() {
|
|
4880
|
+
return this.request("/observability/capabilities");
|
|
4881
|
+
}
|
|
4876
4882
|
};
|
|
4877
4883
|
//#endregion
|
|
4878
4884
|
//#region src/resources/stored-agent.ts
|
|
@@ -7278,6 +7284,10 @@ var MastraClient = class extends BaseResource {
|
|
|
7278
7284
|
getTags(params = {}) {
|
|
7279
7285
|
return this.observability.getTags(params);
|
|
7280
7286
|
}
|
|
7287
|
+
/** Returns which optional observability APIs the configured observability storage supports. */
|
|
7288
|
+
getObservabilityCapabilities() {
|
|
7289
|
+
return this.observability.getCapabilities();
|
|
7290
|
+
}
|
|
7281
7291
|
/**
|
|
7282
7292
|
* Lists all stored agents with optional pagination
|
|
7283
7293
|
* @param params - Optional pagination and ordering parameters
|