@acurast/cli
Version:
A cli to interact with the Acurast Cloud.
52 lines • 2.36 kB
JavaScript
export var AssignmentStrategyVariant;
(function (AssignmentStrategyVariant) {
AssignmentStrategyVariant["Single"] = "Single";
AssignmentStrategyVariant["Competing"] = "Competing";
})(AssignmentStrategyVariant || (AssignmentStrategyVariant = {}));
export var RestartPolicy;
(function (RestartPolicy) {
/**
* The execution will not be restarted, it will run once and then stop. If it fails, it will not be restarted.
*/
RestartPolicy["No"] = "no";
/**
* The execution will be restarted only if it fails. It will restart 3 times per execution to prevent a crash-loop. If it succeeds, it will not be restarted. NOTE: There will be no failure reports on the first and second failure. Only the third failure will be reported.
*/
RestartPolicy["OnFailure"] = "onFailure";
/**
* The execution will be restarted if it fails or succeeds during the execution window, for a maximum of 3 times per execution. NOTE: There will be no execution reports for the first and second termination. Only the third termination will be reported.
*/
RestartPolicy["Always"] = "always";
})(RestartPolicy || (RestartPolicy = {}));
export var DeploymentRuntime;
(function (DeploymentRuntime) {
DeploymentRuntime["NodeJS"] = "NodeJS";
DeploymentRuntime["NodeJSWithBundle"] = "NodeJSWithBundle";
})(DeploymentRuntime || (DeploymentRuntime = {}));
export var ScriptMutability;
(function (ScriptMutability) {
ScriptMutability["Immutable"] = "Immutable";
ScriptMutability["Mutable"] = "Mutable";
})(ScriptMutability || (ScriptMutability = {}));
export var MultiOrigin;
(function (MultiOrigin) {
MultiOrigin["Acurast"] = "Acurast";
})(MultiOrigin || (MultiOrigin = {}));
export var RequiredModules;
(function (RequiredModules) {
RequiredModules["DataEncryption"] = "DataEncryption";
RequiredModules["LLM"] = "LLM";
})(RequiredModules || (RequiredModules = {}));
export class DeploymentError extends Error {
constructor(messageOrError, code, details) {
super(messageOrError instanceof Error
? messageOrError.message
: typeof messageOrError === 'string'
? messageOrError
: JSON.stringify(messageOrError));
this.code = code;
this.details = details;
this.name = 'DeploymentError';
}
}
//# sourceMappingURL=types.js.map