@supernova-studio/model 0.47.5 → 0.47.7

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/index.d.mts CHANGED
@@ -2634,10 +2634,11 @@ declare const ContentLoaderPayload: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2634
2634
  }>]>;
2635
2635
  type ContentLoaderPayload = z.infer<typeof ContentLoaderPayload>;
2636
2636
 
2637
- type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "NoAccess" | "MissingCredentials";
2637
+ type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "NoAccess" | "MissingCredentials" | "ValidationError";
2638
2638
  declare class SupernovaException extends Error {
2639
2639
  readonly type: SupernovaExceptionType;
2640
2640
  static wrongFormat(message?: string): SupernovaException;
2641
+ static validationError(message?: string): SupernovaException;
2641
2642
  static accessDenied(message?: string): SupernovaException;
2642
2643
  static tooMuchWork(message?: string): SupernovaException;
2643
2644
  static notFound(message?: string): SupernovaException;
package/dist/index.d.ts CHANGED
@@ -2634,10 +2634,11 @@ declare const ContentLoaderPayload: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2634
2634
  }>]>;
2635
2635
  type ContentLoaderPayload = z.infer<typeof ContentLoaderPayload>;
2636
2636
 
2637
- type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "NoAccess" | "MissingCredentials";
2637
+ type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "NoAccess" | "MissingCredentials" | "ValidationError";
2638
2638
  declare class SupernovaException extends Error {
2639
2639
  readonly type: SupernovaExceptionType;
2640
2640
  static wrongFormat(message?: string): SupernovaException;
2641
+ static validationError(message?: string): SupernovaException;
2641
2642
  static accessDenied(message?: string): SupernovaException;
2642
2643
  static tooMuchWork(message?: string): SupernovaException;
2643
2644
  static notFound(message?: string): SupernovaException;
package/dist/index.js CHANGED
@@ -3732,6 +3732,9 @@ var SupernovaException = class _SupernovaException extends Error {
3732
3732
  static wrongFormat(message) {
3733
3733
  return new _SupernovaException("WrongFormat", message);
3734
3734
  }
3735
+ static validationError(message) {
3736
+ return new _SupernovaException("ValidationError", message);
3737
+ }
3735
3738
  static accessDenied(message) {
3736
3739
  return new _SupernovaException("AccessDenied", message);
3737
3740
  }