ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.557.0

This commit is contained in:
speakeasybot
2025-06-09 00:13:46 +00:00
parent 2b38478255
commit a7ec77cd04
281 changed files with 11113 additions and 10513 deletions

View File

@@ -15,6 +15,18 @@ export class SDKValidationError extends Error {
*/
public readonly rawMessage: unknown;
// Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError`
static override [Symbol.hasInstance](
instance: unknown,
): instance is SDKValidationError {
if (!(instance instanceof Error)) return false;
if (!("rawValue" in instance)) return false;
if (!("rawMessage" in instance)) return false;
if (!("pretty" in instance)) return false;
if (typeof instance.pretty !== "function") return false;
return true;
}
constructor(message: string, cause: unknown, rawValue: unknown) {
super(`${message}: ${cause}`);
this.name = "SDKValidationError";