@aikirun/types 0.10.0 → 0.10.1

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.
@@ -1,5 +1,13 @@
1
- interface Schema<Data> {
2
- parse: (data: unknown) => Awaited<Data>;
1
+ declare class SchemaValidationError extends Error {
2
+ readonly issues: ReadonlyArray<Issue>;
3
+ constructor(message: string, issues: ReadonlyArray<Issue>);
4
+ }
5
+ interface Issue {
6
+ readonly message: string;
7
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
8
+ }
9
+ interface PathSegment {
10
+ readonly key: PropertyKey;
3
11
  }
4
12
 
5
- export type { Schema };
13
+ export { SchemaValidationError };
package/dist/validator.js CHANGED
@@ -0,0 +1,12 @@
1
+ // validator.ts
2
+ var SchemaValidationError = class extends Error {
3
+ issues;
4
+ constructor(message, issues) {
5
+ super(message);
6
+ this.name = "SchemaValidationError";
7
+ this.issues = issues;
8
+ }
9
+ };
10
+ export {
11
+ SchemaValidationError
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikirun/types",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Core type definitions for Aiki - including workflow, task, client, and trigger types",
5
5
  "type": "module",
6
6
  "exports": {