@supernova-studio/model 1.6.5 → 1.6.6
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -173,7 +173,7 @@ declare const ContentLoaderPayload: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
173
173
|
}>]>;
|
|
174
174
|
type ContentLoaderPayload = z.infer<typeof ContentLoaderPayload>;
|
|
175
175
|
|
|
176
|
-
type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError";
|
|
176
|
+
type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError" | "CodeMismatch" | "PasswordMismatch" | "PasswordSameAsUsername";
|
|
177
177
|
declare class SupernovaException extends Error {
|
|
178
178
|
readonly type: SupernovaExceptionType;
|
|
179
179
|
static wrongFormat(message?: string): SupernovaException;
|
|
@@ -197,6 +197,9 @@ declare class SupernovaException extends Error {
|
|
|
197
197
|
static missingCredentials(message?: string): SupernovaException;
|
|
198
198
|
static thirdPartyError(message?: string): SupernovaException;
|
|
199
199
|
static badRequest(message?: string): SupernovaException;
|
|
200
|
+
static codeMismatch(message?: string): SupernovaException;
|
|
201
|
+
static passwordMismatch(message?: string): SupernovaException;
|
|
202
|
+
static passwordSameAsUsername(message?: string): SupernovaException;
|
|
200
203
|
constructor(type: SupernovaExceptionType, message?: string);
|
|
201
204
|
}
|
|
202
205
|
|
package/dist/index.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ declare const ContentLoaderPayload: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
173
173
|
}>]>;
|
|
174
174
|
type ContentLoaderPayload = z.infer<typeof ContentLoaderPayload>;
|
|
175
175
|
|
|
176
|
-
type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError";
|
|
176
|
+
type SupernovaExceptionType = "AccessDenied" | "ResourceNotFound" | "WrongFormat" | "TooMuchWork" | "Timeout" | "Conflict" | "NotImplemented" | "BadRequest" | "WrongActionOrder" | "InvalidOperation" | "UnexpectedError" | "IPRestricted" | "PlanRestricted" | "MissingWorkspacePermission" | "MissingExporterPermission" | "MissingIntegration" | "MissingIntegrationAccess" | "NoAccess" | "MissingCredentials" | "ValidationError" | "ThirdPartyError" | "CodeMismatch" | "PasswordMismatch" | "PasswordSameAsUsername";
|
|
177
177
|
declare class SupernovaException extends Error {
|
|
178
178
|
readonly type: SupernovaExceptionType;
|
|
179
179
|
static wrongFormat(message?: string): SupernovaException;
|
|
@@ -197,6 +197,9 @@ declare class SupernovaException extends Error {
|
|
|
197
197
|
static missingCredentials(message?: string): SupernovaException;
|
|
198
198
|
static thirdPartyError(message?: string): SupernovaException;
|
|
199
199
|
static badRequest(message?: string): SupernovaException;
|
|
200
|
+
static codeMismatch(message?: string): SupernovaException;
|
|
201
|
+
static passwordMismatch(message?: string): SupernovaException;
|
|
202
|
+
static passwordSameAsUsername(message?: string): SupernovaException;
|
|
200
203
|
constructor(type: SupernovaExceptionType, message?: string);
|
|
201
204
|
}
|
|
202
205
|
|
package/dist/index.js
CHANGED
|
@@ -885,6 +885,15 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
885
885
|
static badRequest(message) {
|
|
886
886
|
return new _SupernovaException("BadRequest", message);
|
|
887
887
|
}
|
|
888
|
+
static codeMismatch(message) {
|
|
889
|
+
return new _SupernovaException("CodeMismatch", message);
|
|
890
|
+
}
|
|
891
|
+
static passwordMismatch(message) {
|
|
892
|
+
return new _SupernovaException("PasswordMismatch", message);
|
|
893
|
+
}
|
|
894
|
+
static passwordSameAsUsername(message) {
|
|
895
|
+
return new _SupernovaException("PasswordSameAsUsername", message);
|
|
896
|
+
}
|
|
888
897
|
};
|
|
889
898
|
|
|
890
899
|
// src/utils/common.ts
|