@dagger.io/dagger 0.0.1-0
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/LICENSE +191 -0
- package/README.md +88 -0
- package/dist/src/api/client.gen.d.ts +6123 -0
- package/dist/src/api/client.gen.d.ts.map +1 -0
- package/dist/src/api/client.gen.js +8494 -0
- package/dist/src/common/context.d.ts +12 -0
- package/dist/src/common/context.d.ts.map +1 -0
- package/dist/src/common/context.js +22 -0
- package/dist/src/common/errors/DaggerSDKError.d.ts +32 -0
- package/dist/src/common/errors/DaggerSDKError.d.ts.map +1 -0
- package/dist/src/common/errors/DaggerSDKError.js +26 -0
- package/dist/src/common/errors/DockerImageRefValidationError.d.ts +22 -0
- package/dist/src/common/errors/DockerImageRefValidationError.d.ts.map +1 -0
- package/dist/src/common/errors/DockerImageRefValidationError.js +21 -0
- package/dist/src/common/errors/EngineSessionConnectParamsParseError.d.ts +21 -0
- package/dist/src/common/errors/EngineSessionConnectParamsParseError.d.ts.map +1 -0
- package/dist/src/common/errors/EngineSessionConnectParamsParseError.js +20 -0
- package/dist/src/common/errors/EngineSessionConnectionTimeoutError.d.ts +21 -0
- package/dist/src/common/errors/EngineSessionConnectionTimeoutError.d.ts.map +1 -0
- package/dist/src/common/errors/EngineSessionConnectionTimeoutError.js +20 -0
- package/dist/src/common/errors/EngineSessionErrorOptions.d.ts +16 -0
- package/dist/src/common/errors/EngineSessionErrorOptions.d.ts.map +1 -0
- package/dist/src/common/errors/EngineSessionErrorOptions.js +16 -0
- package/dist/src/common/errors/ExecError.d.ts +42 -0
- package/dist/src/common/errors/ExecError.d.ts.map +1 -0
- package/dist/src/common/errors/ExecError.js +40 -0
- package/dist/src/common/errors/FunctionNotFound.d.ts +7 -0
- package/dist/src/common/errors/FunctionNotFound.d.ts.map +1 -0
- package/dist/src/common/errors/FunctionNotFound.js +9 -0
- package/dist/src/common/errors/GraphQLRequestError.d.ts +31 -0
- package/dist/src/common/errors/GraphQLRequestError.d.ts.map +1 -0
- package/dist/src/common/errors/GraphQLRequestError.js +30 -0
- package/dist/src/common/errors/InitEngineSessionBinaryError.d.ts +13 -0
- package/dist/src/common/errors/InitEngineSessionBinaryError.d.ts.map +1 -0
- package/dist/src/common/errors/InitEngineSessionBinaryError.js +15 -0
- package/dist/src/common/errors/IntrospectionError.d.ts +7 -0
- package/dist/src/common/errors/IntrospectionError.d.ts.map +1 -0
- package/dist/src/common/errors/IntrospectionError.js +9 -0
- package/dist/src/common/errors/NotAwaitedRequestError.d.ts +13 -0
- package/dist/src/common/errors/NotAwaitedRequestError.d.ts.map +1 -0
- package/dist/src/common/errors/NotAwaitedRequestError.js +15 -0
- package/dist/src/common/errors/TooManyNestedObjectsError.d.ts +21 -0
- package/dist/src/common/errors/TooManyNestedObjectsError.d.ts.map +1 -0
- package/dist/src/common/errors/TooManyNestedObjectsError.js +20 -0
- package/dist/src/common/errors/UnknownDaggerError.d.ts +13 -0
- package/dist/src/common/errors/UnknownDaggerError.d.ts.map +1 -0
- package/dist/src/common/errors/UnknownDaggerError.js +15 -0
- package/dist/src/common/errors/errors-codes.d.ts +55 -0
- package/dist/src/common/errors/errors-codes.d.ts.map +1 -0
- package/dist/src/common/errors/errors-codes.js +47 -0
- package/dist/src/common/errors/index.d.ts +15 -0
- package/dist/src/common/errors/index.d.ts.map +1 -0
- package/dist/src/common/errors/index.js +14 -0
- package/dist/src/common/graphql/client.d.ts +3 -0
- package/dist/src/common/graphql/client.d.ts.map +1 -0
- package/dist/src/common/graphql/client.js +58 -0
- package/dist/src/common/graphql/compute_query.d.ts +37 -0
- package/dist/src/common/graphql/compute_query.d.ts.map +1 -0
- package/dist/src/common/graphql/compute_query.js +171 -0
- package/dist/src/common/graphql/connect.d.ts +8 -0
- package/dist/src/common/graphql/connect.d.ts.map +1 -0
- package/dist/src/common/graphql/connect.js +22 -0
- package/dist/src/common/graphql/connection.d.ts +14 -0
- package/dist/src/common/graphql/connection.d.ts.map +1 -0
- package/dist/src/common/graphql/connection.js +23 -0
- package/dist/src/common/utils.d.ts +70 -0
- package/dist/src/common/utils.d.ts.map +1 -0
- package/dist/src/common/utils.js +6 -0
- package/dist/src/connect.d.ts +28 -0
- package/dist/src/connect.d.ts.map +1 -0
- package/dist/src/connect.js +64 -0
- package/dist/src/connectOpts.d.ts +24 -0
- package/dist/src/connectOpts.d.ts.map +1 -0
- package/dist/src/connectOpts.js +1 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +13 -0
- package/dist/src/module/decorators.d.ts +52 -0
- package/dist/src/module/decorators.d.ts.map +1 -0
- package/dist/src/module/decorators.js +55 -0
- package/dist/src/module/entrypoint/context.d.ts +8 -0
- package/dist/src/module/entrypoint/context.d.ts.map +1 -0
- package/dist/src/module/entrypoint/context.js +1 -0
- package/dist/src/module/entrypoint/entrypoint.d.ts +2 -0
- package/dist/src/module/entrypoint/entrypoint.d.ts.map +1 -0
- package/dist/src/module/entrypoint/entrypoint.js +92 -0
- package/dist/src/module/entrypoint/introspection_entrypoint.d.ts +2 -0
- package/dist/src/module/entrypoint/introspection_entrypoint.d.ts.map +1 -0
- package/dist/src/module/entrypoint/introspection_entrypoint.js +52 -0
- package/dist/src/module/entrypoint/invoke.d.ts +14 -0
- package/dist/src/module/entrypoint/invoke.d.ts.map +1 -0
- package/dist/src/module/entrypoint/invoke.js +66 -0
- package/dist/src/module/entrypoint/load.d.ts +53 -0
- package/dist/src/module/entrypoint/load.d.ts.map +1 -0
- package/dist/src/module/entrypoint/load.js +237 -0
- package/dist/src/module/entrypoint/register.d.ts +33 -0
- package/dist/src/module/entrypoint/register.d.ts.map +1 -0
- package/dist/src/module/entrypoint/register.js +227 -0
- package/dist/src/module/executor.d.ts +28 -0
- package/dist/src/module/executor.d.ts.map +1 -0
- package/dist/src/module/executor.js +171 -0
- package/dist/src/module/introspector/case_convertor.d.ts +2 -0
- package/dist/src/module/introspector/case_convertor.d.ts.map +1 -0
- package/dist/src/module/introspector/case_convertor.js +15 -0
- package/dist/src/module/introspector/dagger_module/argument.d.ts +50 -0
- package/dist/src/module/introspector/dagger_module/argument.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/argument.js +118 -0
- package/dist/src/module/introspector/dagger_module/constructor.d.ts +18 -0
- package/dist/src/module/introspector/dagger_module/constructor.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/constructor.js +38 -0
- package/dist/src/module/introspector/dagger_module/decorator.d.ts +8 -0
- package/dist/src/module/introspector/dagger_module/decorator.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/decorator.js +7 -0
- package/dist/src/module/introspector/dagger_module/enum.d.ts +41 -0
- package/dist/src/module/introspector/dagger_module/enum.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/enum.js +63 -0
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts +19 -0
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/enumBase.js +1 -0
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts +41 -0
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/enumClass.js +69 -0
- package/dist/src/module/introspector/dagger_module/function.d.ts +39 -0
- package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/function.js +102 -0
- package/dist/src/module/introspector/dagger_module/index.d.ts +15 -0
- package/dist/src/module/introspector/dagger_module/index.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/index.js +14 -0
- package/dist/src/module/introspector/dagger_module/interface.d.ts +25 -0
- package/dist/src/module/introspector/dagger_module/interface.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/interface.js +56 -0
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts +35 -0
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/interfaceFunction.js +92 -0
- package/dist/src/module/introspector/dagger_module/locatable.d.ts +12 -0
- package/dist/src/module/introspector/dagger_module/locatable.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/locatable.js +14 -0
- package/dist/src/module/introspector/dagger_module/module.d.ts +118 -0
- package/dist/src/module/introspector/dagger_module/module.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/module.js +316 -0
- package/dist/src/module/introspector/dagger_module/object.d.ts +46 -0
- package/dist/src/module/introspector/dagger_module/object.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/object.js +113 -0
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts +32 -0
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/objectBase.js +1 -0
- package/dist/src/module/introspector/dagger_module/property.d.ts +36 -0
- package/dist/src/module/introspector/dagger_module/property.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/property.js +82 -0
- package/dist/src/module/introspector/dagger_module/reference.d.ts +13 -0
- package/dist/src/module/introspector/dagger_module/reference.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/reference.js +33 -0
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts +49 -0
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/typeObject.js +87 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts +34 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.js +60 -0
- package/dist/src/module/introspector/index.d.ts +3 -0
- package/dist/src/module/introspector/index.d.ts.map +1 -0
- package/dist/src/module/introspector/index.js +19 -0
- package/dist/src/module/introspector/typedef.d.ts +52 -0
- package/dist/src/module/introspector/typedef.d.ts.map +1 -0
- package/dist/src/module/introspector/typedef.js +1 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts +64 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/ast.js +476 -0
- package/dist/src/module/introspector/typescript_module/declarations.d.ts +15 -0
- package/dist/src/module/introspector/typescript_module/declarations.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/declarations.js +10 -0
- package/dist/src/module/introspector/typescript_module/index.d.ts +4 -0
- package/dist/src/module/introspector/typescript_module/index.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/index.js +3 -0
- package/dist/src/module/introspector/typescript_module/location.d.ts +6 -0
- package/dist/src/module/introspector/typescript_module/location.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/location.js +1 -0
- package/dist/src/module/introspector/typescript_module/typedef_utils.d.ts +5 -0
- package/dist/src/module/introspector/typescript_module/typedef_utils.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/typedef_utils.js +26 -0
- package/dist/src/module/introspector/utils/files.d.ts +5 -0
- package/dist/src/module/introspector/utils/files.d.ts.map +1 -0
- package/dist/src/module/introspector/utils/files.js +28 -0
- package/dist/src/module/registry.d.ts +109 -0
- package/dist/src/module/registry.d.ts.map +1 -0
- package/dist/src/module/registry.js +123 -0
- package/dist/src/provisioning/bin.d.ts +77 -0
- package/dist/src/provisioning/bin.d.ts.map +1 -0
- package/dist/src/provisioning/bin.js +353 -0
- package/dist/src/provisioning/default.d.ts +2 -0
- package/dist/src/provisioning/default.d.ts.map +1 -0
- package/dist/src/provisioning/default.js +2 -0
- package/dist/src/provisioning/engineconn.d.ts +30 -0
- package/dist/src/provisioning/engineconn.d.ts.map +1 -0
- package/dist/src/provisioning/engineconn.js +1 -0
- package/dist/src/provisioning/index.d.ts +4 -0
- package/dist/src/provisioning/index.d.ts.map +1 -0
- package/dist/src/provisioning/index.js +14 -0
- package/dist/src/telemetry/index.d.ts +3 -0
- package/dist/src/telemetry/index.d.ts.map +1 -0
- package/dist/src/telemetry/index.js +2 -0
- package/dist/src/telemetry/init.d.ts +21 -0
- package/dist/src/telemetry/init.d.ts.map +1 -0
- package/dist/src/telemetry/init.js +86 -0
- package/dist/src/telemetry/live_processor.d.ts +12 -0
- package/dist/src/telemetry/live_processor.d.ts.map +1 -0
- package/dist/src/telemetry/live_processor.js +13 -0
- package/dist/src/telemetry/telemetry.d.ts +16 -0
- package/dist/src/telemetry/telemetry.d.ts.map +1 -0
- package/dist/src/telemetry/telemetry.js +38 -0
- package/dist/src/telemetry/tracer.d.ts +32 -0
- package/dist/src/telemetry/tracer.d.ts.map +1 -0
- package/dist/src/telemetry/tracer.js +54 -0
- package/package.json +74 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GraphQLClient } from "graphql-request";
|
|
2
|
+
import { QueryTree } from "./graphql/compute_query.js";
|
|
3
|
+
export declare class Context {
|
|
4
|
+
private _queryTree;
|
|
5
|
+
private _connection;
|
|
6
|
+
constructor(_queryTree?: QueryTree[], _connection?: import("./graphql/connection.js").Connection);
|
|
7
|
+
getGQLClient(): GraphQLClient;
|
|
8
|
+
copy(): Context;
|
|
9
|
+
select(operation: string, args?: Record<string, unknown>): Context;
|
|
10
|
+
execute<T>(): Promise<T>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/common/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,EAAgB,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAGpE,qBAAa,OAAO;IAEhB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,WAAW;gBADX,UAAU,GAAE,SAAS,EAAO,EAC5B,WAAW,+CAAmB;IAGxC,YAAY,IAAI,aAAa;IAI7B,IAAI,IAAI,OAAO;IAIf,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;IAOlE,OAAO,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC;CAGzB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { computeQuery } from "./graphql/compute_query.js";
|
|
2
|
+
import { globalConnection } from "./graphql/connection.js";
|
|
3
|
+
export class Context {
|
|
4
|
+
_queryTree;
|
|
5
|
+
_connection;
|
|
6
|
+
constructor(_queryTree = [], _connection = globalConnection) {
|
|
7
|
+
this._queryTree = _queryTree;
|
|
8
|
+
this._connection = _connection;
|
|
9
|
+
}
|
|
10
|
+
getGQLClient() {
|
|
11
|
+
return this._connection.getGQLClient();
|
|
12
|
+
}
|
|
13
|
+
copy() {
|
|
14
|
+
return new Context([], this._connection);
|
|
15
|
+
}
|
|
16
|
+
select(operation, args) {
|
|
17
|
+
return new Context([...this._queryTree, { operation, args }], this._connection);
|
|
18
|
+
}
|
|
19
|
+
execute() {
|
|
20
|
+
return computeQuery(this._queryTree, this._connection.getGQLClient());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ErrorCodes, ErrorNames } from "./errors-codes.js";
|
|
2
|
+
export interface DaggerSDKErrorOptions {
|
|
3
|
+
cause?: Error;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The base error. Every other error inherits this error.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class DaggerSDKError extends Error {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the dagger error.
|
|
11
|
+
*/
|
|
12
|
+
abstract readonly name: ErrorNames;
|
|
13
|
+
/**
|
|
14
|
+
* The dagger specific error code.
|
|
15
|
+
* Use this to identify dagger errors programmatically.
|
|
16
|
+
*/
|
|
17
|
+
abstract readonly code: ErrorCodes;
|
|
18
|
+
/**
|
|
19
|
+
* The original error, which caused the DaggerSDKError.
|
|
20
|
+
*/
|
|
21
|
+
cause?: Error;
|
|
22
|
+
protected constructor(message: string, options?: DaggerSDKErrorOptions);
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
get [Symbol.toStringTag](): "GraphQLRequestError" | "UnknownDaggerError" | "TooManyNestedObjectsError" | "EngineSessionConnectParamsParseError" | "EngineSessionConnectionTimeoutError" | "EngineSessionError" | "InitEngineSessionBinaryError" | "DockerImageRefValidationError" | "NotAwaitedRequestError" | "ExecError" | "IntrospectionError";
|
|
27
|
+
/**
|
|
28
|
+
* Pretty prints the error
|
|
29
|
+
*/
|
|
30
|
+
printStackTrace(): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=DaggerSDKError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DaggerSDKError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/DaggerSDKError.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED;;GAEG;AACH,8BAAsB,cAAe,SAAQ,KAAK;IAChD;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IAElC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;IAEb,SAAS,aAAa,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAKtE;;OAEG;IACH,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,0TAEvB;IAED;;OAEG;IACH,eAAe;CAGhB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { log } from "../utils.js";
|
|
2
|
+
/**
|
|
3
|
+
* The base error. Every other error inherits this error.
|
|
4
|
+
*/
|
|
5
|
+
export class DaggerSDKError extends Error {
|
|
6
|
+
/**
|
|
7
|
+
* The original error, which caused the DaggerSDKError.
|
|
8
|
+
*/
|
|
9
|
+
cause;
|
|
10
|
+
constructor(message, options) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.cause = options?.cause;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
get [Symbol.toStringTag]() {
|
|
18
|
+
return this.name;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Pretty prints the error
|
|
22
|
+
*/
|
|
23
|
+
printStackTrace() {
|
|
24
|
+
log(this.stack);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
interface DockerImageRefValidationErrorOptions extends DaggerSDKErrorOptions {
|
|
3
|
+
ref: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This error is thrown if the passed image reference does not pass validation and is not compliant with the
|
|
7
|
+
* DockerImage constructor.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DockerImageRefValidationError extends DaggerSDKError {
|
|
10
|
+
name: "DockerImageRefValidationError";
|
|
11
|
+
code: "D107";
|
|
12
|
+
/**
|
|
13
|
+
* The docker image reference, which caused the error.
|
|
14
|
+
*/
|
|
15
|
+
ref: string;
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
constructor(message: string, options: DockerImageRefValidationErrorOptions);
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=DockerImageRefValidationError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DockerImageRefValidationError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/DockerImageRefValidationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,UAAU,oCAAqC,SAAQ,qBAAqB;IAC1E,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,cAAc;IAC/D,IAAI,kCAA4C;IAChD,IAAI,SAA4C;IAEhD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,oCAAoC;CAI3E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown if the passed image reference does not pass validation and is not compliant with the
|
|
5
|
+
* DockerImage constructor.
|
|
6
|
+
*/
|
|
7
|
+
export class DockerImageRefValidationError extends DaggerSDKError {
|
|
8
|
+
name = ERROR_NAMES.DockerImageRefValidationError;
|
|
9
|
+
code = ERROR_CODES.DockerImageRefValidationError;
|
|
10
|
+
/**
|
|
11
|
+
* The docker image reference, which caused the error.
|
|
12
|
+
*/
|
|
13
|
+
ref;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
constructor(message, options) {
|
|
18
|
+
super(message, options);
|
|
19
|
+
this.ref = options?.ref;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
interface EngineSessionConnectParamsParseErrorOptions extends DaggerSDKErrorOptions {
|
|
3
|
+
parsedLine: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This error is thrown if the EngineSession does not manage to parse the required connection parameters from the session binary
|
|
7
|
+
*/
|
|
8
|
+
export declare class EngineSessionConnectParamsParseError extends DaggerSDKError {
|
|
9
|
+
name: "EngineSessionConnectParamsParseError";
|
|
10
|
+
code: "D103";
|
|
11
|
+
/**
|
|
12
|
+
* the line, which caused the error during parsing, if the error was caused because of parsing.
|
|
13
|
+
*/
|
|
14
|
+
parsedLine: string;
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
constructor(message: string, options: EngineSessionConnectParamsParseErrorOptions);
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=EngineSessionConnectParamsParseError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EngineSessionConnectParamsParseError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/EngineSessionConnectParamsParseError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,UAAU,2CAA4C,SAAQ,qBAAqB;IACjF,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,oCAAqC,SAAQ,cAAc;IACtE,IAAI,yCAAmD;IACvD,IAAI,SAAmD;IAEvD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;gBAED,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,2CAA2C;CAKvD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown if the EngineSession does not manage to parse the required connection parameters from the session binary
|
|
5
|
+
*/
|
|
6
|
+
export class EngineSessionConnectParamsParseError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.EngineSessionConnectParamsParseError;
|
|
8
|
+
code = ERROR_CODES.EngineSessionConnectParamsParseError;
|
|
9
|
+
/**
|
|
10
|
+
* the line, which caused the error during parsing, if the error was caused because of parsing.
|
|
11
|
+
*/
|
|
12
|
+
parsedLine;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
constructor(message, options) {
|
|
17
|
+
super(message, options);
|
|
18
|
+
this.parsedLine = options.parsedLine;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
interface EngineSessionConnectionTimeoutErrorOptions extends DaggerSDKErrorOptions {
|
|
3
|
+
timeOutDuration: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This error is thrown if the EngineSession does not manage to parse the required port successfully because the sessions connection timed out.
|
|
7
|
+
*/
|
|
8
|
+
export declare class EngineSessionConnectionTimeoutError extends DaggerSDKError {
|
|
9
|
+
name: "EngineSessionConnectionTimeoutError";
|
|
10
|
+
code: "D104";
|
|
11
|
+
/**
|
|
12
|
+
* The duration until the timeout occurred in ms.
|
|
13
|
+
*/
|
|
14
|
+
timeOutDuration: number;
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
constructor(message: string, options: EngineSessionConnectionTimeoutErrorOptions);
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=EngineSessionConnectionTimeoutError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EngineSessionConnectionTimeoutError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/EngineSessionConnectionTimeoutError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,UAAU,0CAA2C,SAAQ,qBAAqB;IAChF,eAAe,EAAE,MAAM,CAAA;CACxB;AAED;;GAEG;AACH,qBAAa,mCAAoC,SAAQ,cAAc;IACrE,IAAI,wCAAkD;IACtD,IAAI,SAAkD;IAEtD;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IAEvB;;OAEG;gBAED,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,0CAA0C;CAKtD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown if the EngineSession does not manage to parse the required port successfully because the sessions connection timed out.
|
|
5
|
+
*/
|
|
6
|
+
export class EngineSessionConnectionTimeoutError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.EngineSessionConnectionTimeoutError;
|
|
8
|
+
code = ERROR_CODES.EngineSessionConnectionTimeoutError;
|
|
9
|
+
/**
|
|
10
|
+
* The duration until the timeout occurred in ms.
|
|
11
|
+
*/
|
|
12
|
+
timeOutDuration;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
constructor(message, options) {
|
|
17
|
+
super(message, options);
|
|
18
|
+
this.timeOutDuration = options.timeOutDuration;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
type EngineSessionErrorOptions = DaggerSDKErrorOptions;
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown if the EngineSession does not manage to parse the required port successfully because a EOF is read before any valid port.
|
|
5
|
+
* This usually happens if no connection can be established.
|
|
6
|
+
*/
|
|
7
|
+
export declare class EngineSessionError extends DaggerSDKError {
|
|
8
|
+
name: "EngineSessionError";
|
|
9
|
+
code: "D105";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(message: string, options?: EngineSessionErrorOptions);
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=EngineSessionErrorOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EngineSessionErrorOptions.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/EngineSessionErrorOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,KAAK,yBAAyB,GAAG,qBAAqB,CAAA;AAEtD;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,IAAI,uBAAiC;IACrC,IAAI,SAAiC;IAErC;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB;CAGjE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown if the EngineSession does not manage to parse the required port successfully because a EOF is read before any valid port.
|
|
5
|
+
* This usually happens if no connection can be established.
|
|
6
|
+
*/
|
|
7
|
+
export class EngineSessionError extends DaggerSDKError {
|
|
8
|
+
name = ERROR_NAMES.EngineSessionError;
|
|
9
|
+
code = ERROR_CODES.EngineSessionError;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(message, options) {
|
|
14
|
+
super(message, options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { GraphQLErrorExtensions } from "graphql";
|
|
2
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
3
|
+
interface ExecErrorOptions extends DaggerSDKErrorOptions {
|
|
4
|
+
cmd: string[];
|
|
5
|
+
exitCode: number;
|
|
6
|
+
stdout: string;
|
|
7
|
+
stderr: string;
|
|
8
|
+
extensions?: GraphQLErrorExtensions;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* API error from an exec operation in a pipeline.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ExecError extends DaggerSDKError {
|
|
14
|
+
name: "ExecError";
|
|
15
|
+
code: "D109";
|
|
16
|
+
/**
|
|
17
|
+
* The command that caused the error.
|
|
18
|
+
*/
|
|
19
|
+
cmd: string[];
|
|
20
|
+
/**
|
|
21
|
+
* The exit code of the command.
|
|
22
|
+
*/
|
|
23
|
+
exitCode: number;
|
|
24
|
+
/**
|
|
25
|
+
* The stdout of the command.
|
|
26
|
+
*/
|
|
27
|
+
stdout: string;
|
|
28
|
+
/**
|
|
29
|
+
* The stderr of the command.
|
|
30
|
+
*/
|
|
31
|
+
stderr: string;
|
|
32
|
+
/**
|
|
33
|
+
* GraphQL error extensions
|
|
34
|
+
*/
|
|
35
|
+
extensions?: GraphQLErrorExtensions;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
constructor(message: string, options: ExecErrorOptions);
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=ExecError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/ExecError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,UAAU,gBAAiB,SAAQ,qBAAqB;IACtD,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,sBAAsB,CAAA;CACpC;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,cAAc;IAC3C,IAAI,cAAwB;IAC5B,IAAI,SAAwB;IAE5B;;OAEG;IACH,GAAG,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAA;IAEnC;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB;CAQvD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* API error from an exec operation in a pipeline.
|
|
5
|
+
*/
|
|
6
|
+
export class ExecError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.ExecError;
|
|
8
|
+
code = ERROR_CODES.ExecError;
|
|
9
|
+
/**
|
|
10
|
+
* The command that caused the error.
|
|
11
|
+
*/
|
|
12
|
+
cmd;
|
|
13
|
+
/**
|
|
14
|
+
* The exit code of the command.
|
|
15
|
+
*/
|
|
16
|
+
exitCode;
|
|
17
|
+
/**
|
|
18
|
+
* The stdout of the command.
|
|
19
|
+
*/
|
|
20
|
+
stdout;
|
|
21
|
+
/**
|
|
22
|
+
* The stderr of the command.
|
|
23
|
+
*/
|
|
24
|
+
stderr;
|
|
25
|
+
/**
|
|
26
|
+
* GraphQL error extensions
|
|
27
|
+
*/
|
|
28
|
+
extensions;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
constructor(message, options) {
|
|
33
|
+
super(message, options);
|
|
34
|
+
this.cmd = options.cmd;
|
|
35
|
+
this.exitCode = options.exitCode;
|
|
36
|
+
this.stdout = options.stdout;
|
|
37
|
+
this.stderr = options.stderr;
|
|
38
|
+
this.extensions = options.extensions;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
export declare class FunctionNotFound extends DaggerSDKError {
|
|
3
|
+
name: "ExecError";
|
|
4
|
+
code: "D109";
|
|
5
|
+
constructor(message: string, options?: DaggerSDKErrorOptions);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=FunctionNotFound.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionNotFound.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/FunctionNotFound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,qBAAa,gBAAiB,SAAQ,cAAc;IAClD,IAAI,cAAwB;IAC5B,IAAI,SAAwB;gBAEhB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
export class FunctionNotFound extends DaggerSDKError {
|
|
4
|
+
name = ERROR_NAMES.ExecError;
|
|
5
|
+
code = ERROR_CODES.ExecError;
|
|
6
|
+
constructor(message, options) {
|
|
7
|
+
super(message, options);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { GraphQLErrorExtensions } from "graphql";
|
|
2
|
+
import { ClientError } from "graphql-request";
|
|
3
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
4
|
+
interface GraphQLRequestErrorOptions extends DaggerSDKErrorOptions {
|
|
5
|
+
error: ClientError;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* This error originates from the dagger engine. It means that some error was thrown and sent back via GraphQL.
|
|
9
|
+
*/
|
|
10
|
+
export declare class GraphQLRequestError extends DaggerSDKError {
|
|
11
|
+
name: "GraphQLRequestError";
|
|
12
|
+
code: "D100";
|
|
13
|
+
/**
|
|
14
|
+
* The query and variables, which caused the error.
|
|
15
|
+
*/
|
|
16
|
+
requestContext: ClientError["request"];
|
|
17
|
+
/**
|
|
18
|
+
* the GraphQL response containing the error.
|
|
19
|
+
*/
|
|
20
|
+
response: ClientError["response"];
|
|
21
|
+
/**
|
|
22
|
+
* The GraphQL error extentions.
|
|
23
|
+
*/
|
|
24
|
+
extensions?: GraphQLErrorExtensions;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
constructor(message: string, options: GraphQLRequestErrorOptions);
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=GraphQLRequestError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphQLRequestError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/GraphQLRequestError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,UAAU,0BAA2B,SAAQ,qBAAqB;IAChE,KAAK,EAAE,WAAW,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,cAAc;IACrD,IAAI,wBAAkC;IACtC,IAAI,SAAkC;IAEtC;;OAEG;IACH,cAAc,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAEtC;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAA;IAEnC;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,0BAA0B;CAMjE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error originates from the dagger engine. It means that some error was thrown and sent back via GraphQL.
|
|
5
|
+
*/
|
|
6
|
+
export class GraphQLRequestError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.GraphQLRequestError;
|
|
8
|
+
code = ERROR_CODES.GraphQLRequestError;
|
|
9
|
+
/**
|
|
10
|
+
* The query and variables, which caused the error.
|
|
11
|
+
*/
|
|
12
|
+
requestContext;
|
|
13
|
+
/**
|
|
14
|
+
* the GraphQL response containing the error.
|
|
15
|
+
*/
|
|
16
|
+
response;
|
|
17
|
+
/**
|
|
18
|
+
* The GraphQL error extentions.
|
|
19
|
+
*/
|
|
20
|
+
extensions;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
constructor(message, options) {
|
|
25
|
+
super(message, options);
|
|
26
|
+
this.requestContext = options.error.request;
|
|
27
|
+
this.response = options.error.response;
|
|
28
|
+
this.extensions = options.error.response.errors?.[0]?.extensions;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
/**
|
|
3
|
+
* This error is thrown if the dagger binary cannot be copied from the dagger docker image and copied to the local host.
|
|
4
|
+
*/
|
|
5
|
+
export declare class InitEngineSessionBinaryError extends DaggerSDKError {
|
|
6
|
+
name: "InitEngineSessionBinaryError";
|
|
7
|
+
code: "D106";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
constructor(message: string, options?: DaggerSDKErrorOptions);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=InitEngineSessionBinaryError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitEngineSessionBinaryError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/InitEngineSessionBinaryError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,cAAc;IAC9D,IAAI,iCAA2C;IAC/C,IAAI,SAA2C;IAE/C;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown if the dagger binary cannot be copied from the dagger docker image and copied to the local host.
|
|
5
|
+
*/
|
|
6
|
+
export class InitEngineSessionBinaryError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.InitEngineSessionBinaryError;
|
|
8
|
+
code = ERROR_CODES.InitEngineSessionBinaryError;
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
constructor(message, options) {
|
|
13
|
+
super(message, options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
export declare class IntrospectionError extends DaggerSDKError {
|
|
3
|
+
name: "IntrospectionError";
|
|
4
|
+
code: "D110";
|
|
5
|
+
constructor(message: string, options?: DaggerSDKErrorOptions);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=IntrospectionError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntrospectionError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/IntrospectionError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,IAAI,uBAAiC;IACrC,IAAI,SAAiC;gBAEzB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
export class IntrospectionError extends DaggerSDKError {
|
|
4
|
+
name = ERROR_NAMES.IntrospectionError;
|
|
5
|
+
code = ERROR_CODES.IntrospectionError;
|
|
6
|
+
constructor(message, options) {
|
|
7
|
+
super(message, options);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
/**
|
|
3
|
+
* This error is thrown when the compute function isn't awaited.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NotAwaitedRequestError extends DaggerSDKError {
|
|
6
|
+
name: "NotAwaitedRequestError";
|
|
7
|
+
code: "D108";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
constructor(message: string, options?: DaggerSDKErrorOptions);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=NotAwaitedRequestError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotAwaitedRequestError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/NotAwaitedRequestError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,cAAc;IACxD,IAAI,2BAAqC;IACzC,IAAI,SAAqC;IAEzC;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAG7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown when the compute function isn't awaited.
|
|
5
|
+
*/
|
|
6
|
+
export class NotAwaitedRequestError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.NotAwaitedRequestError;
|
|
8
|
+
code = ERROR_CODES.NotAwaitedRequestError;
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
constructor(message, options) {
|
|
13
|
+
super(message, options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
interface TooManyNestedObjectsErrorOptions extends DaggerSDKErrorOptions {
|
|
3
|
+
response: unknown;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Dagger only expects one response value from the engine. If the engine returns more than one value this error is thrown.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TooManyNestedObjectsError extends DaggerSDKError {
|
|
9
|
+
name: "TooManyNestedObjectsError";
|
|
10
|
+
code: "D102";
|
|
11
|
+
/**
|
|
12
|
+
* the response containing more than one value.
|
|
13
|
+
*/
|
|
14
|
+
response: unknown;
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
constructor(message: string, options: TooManyNestedObjectsErrorOptions);
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=TooManyNestedObjectsError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooManyNestedObjectsError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/TooManyNestedObjectsError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E,UAAU,gCAAiC,SAAQ,qBAAqB;IACtE,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,cAAc;IAC3D,IAAI,8BAAwC;IAC5C,IAAI,SAAwC;IAE5C;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IAEjB;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,gCAAgC;CAIvE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* Dagger only expects one response value from the engine. If the engine returns more than one value this error is thrown.
|
|
5
|
+
*/
|
|
6
|
+
export class TooManyNestedObjectsError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.TooManyNestedObjectsError;
|
|
8
|
+
code = ERROR_CODES.TooManyNestedObjectsError;
|
|
9
|
+
/**
|
|
10
|
+
* the response containing more than one value.
|
|
11
|
+
*/
|
|
12
|
+
response;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
constructor(message, options) {
|
|
17
|
+
super(message, options);
|
|
18
|
+
this.response = options.response;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DaggerSDKError, DaggerSDKErrorOptions } from "./DaggerSDKError.js";
|
|
2
|
+
/**
|
|
3
|
+
* This error is thrown if the dagger SDK does not identify the error and just wraps the cause.
|
|
4
|
+
*/
|
|
5
|
+
export declare class UnknownDaggerError extends DaggerSDKError {
|
|
6
|
+
name: "UnknownDaggerError";
|
|
7
|
+
code: "D101";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
constructor(message: string, options: DaggerSDKErrorOptions);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=UnknownDaggerError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownDaggerError.d.ts","sourceRoot":"","sources":["../../../../src/common/errors/UnknownDaggerError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG3E;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,IAAI,uBAAiC;IACrC,IAAI,SAAiC;IAErC;;OAEG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;CAG5D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DaggerSDKError } from "./DaggerSDKError.js";
|
|
2
|
+
import { ERROR_CODES, ERROR_NAMES } from "./errors-codes.js";
|
|
3
|
+
/**
|
|
4
|
+
* This error is thrown if the dagger SDK does not identify the error and just wraps the cause.
|
|
5
|
+
*/
|
|
6
|
+
export class UnknownDaggerError extends DaggerSDKError {
|
|
7
|
+
name = ERROR_NAMES.UnknownDaggerError;
|
|
8
|
+
code = ERROR_CODES.UnknownDaggerError;
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
constructor(message, options) {
|
|
13
|
+
super(message, options);
|
|
14
|
+
}
|
|
15
|
+
}
|