@alienplatform/testing 3.3.68 → 3.3.70
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.ts +17 -17
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as node_child_process0 from "node:child_process";
|
|
2
2
|
import * as z from "zod/v4";
|
|
3
|
-
import { z as z$
|
|
4
|
-
import * as z$
|
|
3
|
+
import { z as z$1 } from "zod/v4";
|
|
4
|
+
import * as z$2 from "zod";
|
|
5
5
|
|
|
6
6
|
// src/types.d.ts
|
|
7
7
|
|
|
@@ -129,17 +129,17 @@ declare function deploy(options: DeployOptions): Promise<Deployment>;
|
|
|
129
129
|
/**
|
|
130
130
|
* @description Canonical error container that provides a structured way to represent errors\nwith rich metadata including error codes, human-readable messages, context,\nand chaining capabilities for error propagation.\n\nThis struct is designed to be both machine-readable and user-friendly,\nsupporting serialization for API responses and detailed error reporting\nin distributed systems.
|
|
131
131
|
*/
|
|
132
|
-
declare const AlienErrorSchema: z$
|
|
133
|
-
code: z$
|
|
134
|
-
context: z$
|
|
135
|
-
hint: z$
|
|
136
|
-
httpStatusCode: z$
|
|
137
|
-
internal: z$
|
|
138
|
-
message: z$
|
|
139
|
-
retryable: z$
|
|
140
|
-
source: z$
|
|
141
|
-
}, z$
|
|
142
|
-
type AlienError$1 = z$
|
|
132
|
+
declare const AlienErrorSchema: z$2.ZodObject<{
|
|
133
|
+
code: z$2.ZodString;
|
|
134
|
+
context: z$2.ZodOptional<z$2.ZodAny>;
|
|
135
|
+
hint: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
|
|
136
|
+
httpStatusCode: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodInt>>;
|
|
137
|
+
internal: z$2.ZodBoolean;
|
|
138
|
+
message: z$2.ZodString;
|
|
139
|
+
retryable: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
140
|
+
source: z$2.ZodOptional<z$2.ZodAny>;
|
|
141
|
+
}, z$2.core.$strip>;
|
|
142
|
+
type AlienError$1 = z$2.infer<typeof AlienErrorSchema>;
|
|
143
143
|
/**
|
|
144
144
|
* @description Represents all possible events in the Alien system
|
|
145
145
|
*/
|
|
@@ -152,7 +152,7 @@ type AlienError$1 = z$1.infer<typeof AlienErrorSchema>;
|
|
|
152
152
|
*
|
|
153
153
|
* @template TContext - Zod schema type for the error context
|
|
154
154
|
*/
|
|
155
|
-
interface AlienErrorMetadata<TContext extends z$
|
|
155
|
+
interface AlienErrorMetadata<TContext extends z$1.ZodTypeAny> {
|
|
156
156
|
/** Unique error code (e.g., "DATABASE_CONNECTION_FAILED") */
|
|
157
157
|
code: string;
|
|
158
158
|
/** Zod schema for type-safe context validation */
|
|
@@ -164,7 +164,7 @@ interface AlienErrorMetadata<TContext extends z$2.ZodTypeAny> {
|
|
|
164
164
|
/** HTTP status code for API responses */
|
|
165
165
|
httpStatusCode?: number;
|
|
166
166
|
/** Worker to generate human-readable error message from context */
|
|
167
|
-
message: (context: z$
|
|
167
|
+
message: (context: z$1.infer<TContext>) => string;
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* Helper function to create type-safe error definitions.
|
|
@@ -207,10 +207,10 @@ interface AlienErrorMetadata<TContext extends z$2.ZodTypeAny> {
|
|
|
207
207
|
*
|
|
208
208
|
* @template TContext - Zod schema type for the error context
|
|
209
209
|
*/
|
|
210
|
-
interface AlienErrorDefinition<TContext extends z$
|
|
210
|
+
interface AlienErrorDefinition<TContext extends z$1.ZodTypeAny> {
|
|
211
211
|
metadata: AlienErrorMetadata<TContext>;
|
|
212
212
|
contextSchema: TContext;
|
|
213
|
-
context: z$
|
|
213
|
+
context: z$1.infer<TContext>;
|
|
214
214
|
/**
|
|
215
215
|
* Convert this error definition directly to AlienErrorOptions.
|
|
216
216
|
*
|