@supernova-studio/model 1.48.13 → 1.48.15

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
@@ -184,7 +184,7 @@ declare const ContentLoaderPayload: z$1.ZodUnion<[z$1.ZodUnion<[z$1.ZodObject<{
184
184
  }>]>;
185
185
  type ContentLoaderPayload = z$1.infer<typeof ContentLoaderPayload>;
186
186
 
187
- type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError";
187
+ type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError" | "UserDeactivated";
188
188
  declare class SupernovaException extends Error {
189
189
  readonly type: SupernovaExceptionType;
190
190
  static wrongFormat(message?: string): SupernovaException;
@@ -207,6 +207,7 @@ declare class SupernovaException extends Error {
207
207
  static noAccess(message?: string): SupernovaException;
208
208
  static missingCredentials(message?: string): SupernovaException;
209
209
  static thirdPartyError(message?: string): SupernovaException;
210
+ static userDeactivated(message?: string): SupernovaException;
210
211
  static badRequest(message?: string): SupernovaException;
211
212
  constructor(type: SupernovaExceptionType, message?: string);
212
213
  }
package/dist/index.d.ts CHANGED
@@ -184,7 +184,7 @@ declare const ContentLoaderPayload: z$1.ZodUnion<[z$1.ZodUnion<[z$1.ZodObject<{
184
184
  }>]>;
185
185
  type ContentLoaderPayload = z$1.infer<typeof ContentLoaderPayload>;
186
186
 
187
- type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError";
187
+ type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError" | "UserDeactivated";
188
188
  declare class SupernovaException extends Error {
189
189
  readonly type: SupernovaExceptionType;
190
190
  static wrongFormat(message?: string): SupernovaException;
@@ -207,6 +207,7 @@ declare class SupernovaException extends Error {
207
207
  static noAccess(message?: string): SupernovaException;
208
208
  static missingCredentials(message?: string): SupernovaException;
209
209
  static thirdPartyError(message?: string): SupernovaException;
210
+ static userDeactivated(message?: string): SupernovaException;
210
211
  static badRequest(message?: string): SupernovaException;
211
212
  constructor(type: SupernovaExceptionType, message?: string);
212
213
  }
package/dist/index.js CHANGED
@@ -953,6 +953,9 @@ var SupernovaException = class _SupernovaException extends Error {
953
953
  static thirdPartyError(message) {
954
954
  return new _SupernovaException("ThirdPartyError", message);
955
955
  }
956
+ static userDeactivated(message) {
957
+ return new _SupernovaException("UserDeactivated", message);
958
+ }
956
959
  //
957
960
  // To refactor
958
961
  //