@kinotic-ai/idl 1.0.9 → 5.0.0-beta.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/dist/index.cjs CHANGED
@@ -43,6 +43,7 @@ __export(exports_src, {
43
43
  VoidC3Type: () => VoidC3Type,
44
44
  UnionC3Type: () => UnionC3Type,
45
45
  StringC3Type: () => StringC3Type,
46
+ StreamC3Type: () => StreamC3Type,
46
47
  ShortC3Type: () => ShortC3Type,
47
48
  ServiceDefinition: () => ServiceDefinition,
48
49
  ReferenceC3Type: () => ReferenceC3Type,
@@ -65,7 +66,9 @@ __export(exports_src, {
65
66
  C3Decorator: () => C3Decorator,
66
67
  ByteC3Type: () => ByteC3Type,
67
68
  BooleanC3Type: () => BooleanC3Type,
68
- ArrayC3Type: () => ArrayC3Type
69
+ AsyncC3Type: () => AsyncC3Type,
70
+ ArrayC3Type: () => ArrayC3Type,
71
+ AnyC3Type: () => AnyC3Type
69
72
  });
70
73
  module.exports = __toCommonJS(exports_src);
71
74
 
@@ -88,6 +91,12 @@ class C3Type {
88
91
  }
89
92
  }
90
93
 
94
+ // packages/idl/src/api/AnyC3Type.ts
95
+ class AnyC3Type extends C3Type {
96
+ constructor() {
97
+ super("any");
98
+ }
99
+ }
91
100
  // packages/idl/src/api/ArrayC3Type.ts
92
101
  class ArrayC3Type extends C3Type {
93
102
  contains;
@@ -96,6 +105,14 @@ class ArrayC3Type extends C3Type {
96
105
  this.contains = contains;
97
106
  }
98
107
  }
108
+ // packages/idl/src/api/AsyncC3Type.ts
109
+ class AsyncC3Type extends C3Type {
110
+ valueType;
111
+ constructor(valueType) {
112
+ super("async");
113
+ this.valueType = valueType;
114
+ }
115
+ }
99
116
  // packages/idl/src/api/BooleanC3Type.ts
100
117
  class BooleanC3Type extends C3Type {
101
118
  constructor() {
@@ -377,6 +394,14 @@ class ShortC3Type extends C3Type {
377
394
  super("short");
378
395
  }
379
396
  }
397
+ // packages/idl/src/api/StreamC3Type.ts
398
+ class StreamC3Type extends C3Type {
399
+ valueType;
400
+ constructor(valueType) {
401
+ super("stream");
402
+ this.valueType = valueType;
403
+ }
404
+ }
380
405
  // packages/idl/src/api/StringC3Type.ts
381
406
  class StringC3Type extends C3Type {
382
407
  constructor() {
package/dist/index.d.cts CHANGED
@@ -23,6 +23,13 @@ declare class C3Type {
23
23
  protected constructor(type: string);
24
24
  }
25
25
  /**
26
+ * Represents a value of any type: the schema intentionally places no constraint on the shape.
27
+ * Created by Navíd Mitchell 🤪 on 7/22/26.
28
+ */
29
+ declare class AnyC3Type extends C3Type {
30
+ constructor();
31
+ }
32
+ /**
26
33
  * Arrays are used for ordered elements.
27
34
  * Created by navid on 2023-4-13.
28
35
  */
@@ -35,6 +42,17 @@ declare class ArrayC3Type extends C3Type {
35
42
  constructor(contains: C3Type);
36
43
  }
37
44
  /**
45
+ * Represents a value that is produced asynchronously, resolving to a single result.
46
+ * Created by Navíd Mitchell 🤪 on 7/22/26.
47
+ */
48
+ declare class AsyncC3Type extends C3Type {
49
+ /**
50
+ * The type of the value the asynchronous invocation resolves to
51
+ */
52
+ valueType: C3Type;
53
+ constructor(valueType: C3Type);
54
+ }
55
+ /**
38
56
  * The boolean type matches only two special values: true and false.
39
57
  * Note that values that evaluate to true or false, such as 1 and 0, are not accepted by the schema.
40
58
  * <p>
@@ -413,6 +431,17 @@ declare class ShortC3Type extends C3Type {
413
431
  constructor();
414
432
  }
415
433
  /**
434
+ * Represents a stream of values produced asynchronously, emitting zero or more results over time.
435
+ * Created by Navíd Mitchell 🤪 on 7/22/26.
436
+ */
437
+ declare class StreamC3Type extends C3Type {
438
+ /**
439
+ * The type of each value the stream emits
440
+ */
441
+ valueType: C3Type;
442
+ constructor(valueType: C3Type);
443
+ }
444
+ /**
416
445
  * The string type is used for strings of text. It may contain Unicode characters.
417
446
  * Created by navid on 2023-4-13.
418
447
  */
@@ -441,4 +470,4 @@ declare class UnionC3Type extends ComplexC3Type {
441
470
  declare class VoidC3Type extends C3Type {
442
471
  constructor();
443
472
  }
444
- export { VoidC3Type, UnionC3Type, StringC3Type, ShortC3Type, ServiceDefinition, ReferenceC3Type, PropertyDefinition, ParameterDefinition, ObjectC3Type, NotNullDecorator, NamespaceDefinition, MetadataType, MapC3Type, LongC3Type, IntC3Type, HasQualifiedName, HasMetadata, HasDecorators, FunctionDefinition, FloatC3Type, EnumC3Type, DoubleC3Type, DateC3Type, ComplexC3Type, CharC3Type, C3Type, C3Decorator, ByteC3Type, BooleanC3Type, ArrayC3Type };
473
+ export { VoidC3Type, UnionC3Type, StringC3Type, StreamC3Type, ShortC3Type, ServiceDefinition, ReferenceC3Type, PropertyDefinition, ParameterDefinition, ObjectC3Type, NotNullDecorator, NamespaceDefinition, MetadataType, MapC3Type, LongC3Type, IntC3Type, HasQualifiedName, HasMetadata, HasDecorators, FunctionDefinition, FloatC3Type, EnumC3Type, DoubleC3Type, DateC3Type, ComplexC3Type, CharC3Type, C3Type, C3Decorator, ByteC3Type, BooleanC3Type, AsyncC3Type, ArrayC3Type, AnyC3Type };
package/dist/index.d.ts CHANGED
@@ -23,6 +23,13 @@ declare class C3Type {
23
23
  protected constructor(type: string);
24
24
  }
25
25
  /**
26
+ * Represents a value of any type: the schema intentionally places no constraint on the shape.
27
+ * Created by Navíd Mitchell 🤪 on 7/22/26.
28
+ */
29
+ declare class AnyC3Type extends C3Type {
30
+ constructor();
31
+ }
32
+ /**
26
33
  * Arrays are used for ordered elements.
27
34
  * Created by navid on 2023-4-13.
28
35
  */
@@ -35,6 +42,17 @@ declare class ArrayC3Type extends C3Type {
35
42
  constructor(contains: C3Type);
36
43
  }
37
44
  /**
45
+ * Represents a value that is produced asynchronously, resolving to a single result.
46
+ * Created by Navíd Mitchell 🤪 on 7/22/26.
47
+ */
48
+ declare class AsyncC3Type extends C3Type {
49
+ /**
50
+ * The type of the value the asynchronous invocation resolves to
51
+ */
52
+ valueType: C3Type;
53
+ constructor(valueType: C3Type);
54
+ }
55
+ /**
38
56
  * The boolean type matches only two special values: true and false.
39
57
  * Note that values that evaluate to true or false, such as 1 and 0, are not accepted by the schema.
40
58
  * <p>
@@ -413,6 +431,17 @@ declare class ShortC3Type extends C3Type {
413
431
  constructor();
414
432
  }
415
433
  /**
434
+ * Represents a stream of values produced asynchronously, emitting zero or more results over time.
435
+ * Created by Navíd Mitchell 🤪 on 7/22/26.
436
+ */
437
+ declare class StreamC3Type extends C3Type {
438
+ /**
439
+ * The type of each value the stream emits
440
+ */
441
+ valueType: C3Type;
442
+ constructor(valueType: C3Type);
443
+ }
444
+ /**
416
445
  * The string type is used for strings of text. It may contain Unicode characters.
417
446
  * Created by navid on 2023-4-13.
418
447
  */
@@ -441,4 +470,4 @@ declare class UnionC3Type extends ComplexC3Type {
441
470
  declare class VoidC3Type extends C3Type {
442
471
  constructor();
443
472
  }
444
- export { VoidC3Type, UnionC3Type, StringC3Type, ShortC3Type, ServiceDefinition, ReferenceC3Type, PropertyDefinition, ParameterDefinition, ObjectC3Type, NotNullDecorator, NamespaceDefinition, MetadataType, MapC3Type, LongC3Type, IntC3Type, HasQualifiedName, HasMetadata, HasDecorators, FunctionDefinition, FloatC3Type, EnumC3Type, DoubleC3Type, DateC3Type, ComplexC3Type, CharC3Type, C3Type, C3Decorator, ByteC3Type, BooleanC3Type, ArrayC3Type };
473
+ export { VoidC3Type, UnionC3Type, StringC3Type, StreamC3Type, ShortC3Type, ServiceDefinition, ReferenceC3Type, PropertyDefinition, ParameterDefinition, ObjectC3Type, NotNullDecorator, NamespaceDefinition, MetadataType, MapC3Type, LongC3Type, IntC3Type, HasQualifiedName, HasMetadata, HasDecorators, FunctionDefinition, FloatC3Type, EnumC3Type, DoubleC3Type, DateC3Type, ComplexC3Type, CharC3Type, C3Type, C3Decorator, ByteC3Type, BooleanC3Type, AsyncC3Type, ArrayC3Type, AnyC3Type };
package/dist/index.js CHANGED
@@ -17,6 +17,12 @@ class C3Type {
17
17
  }
18
18
  }
19
19
 
20
+ // packages/idl/src/api/AnyC3Type.ts
21
+ class AnyC3Type extends C3Type {
22
+ constructor() {
23
+ super("any");
24
+ }
25
+ }
20
26
  // packages/idl/src/api/ArrayC3Type.ts
21
27
  class ArrayC3Type extends C3Type {
22
28
  contains;
@@ -25,6 +31,14 @@ class ArrayC3Type extends C3Type {
25
31
  this.contains = contains;
26
32
  }
27
33
  }
34
+ // packages/idl/src/api/AsyncC3Type.ts
35
+ class AsyncC3Type extends C3Type {
36
+ valueType;
37
+ constructor(valueType) {
38
+ super("async");
39
+ this.valueType = valueType;
40
+ }
41
+ }
28
42
  // packages/idl/src/api/BooleanC3Type.ts
29
43
  class BooleanC3Type extends C3Type {
30
44
  constructor() {
@@ -306,6 +320,14 @@ class ShortC3Type extends C3Type {
306
320
  super("short");
307
321
  }
308
322
  }
323
+ // packages/idl/src/api/StreamC3Type.ts
324
+ class StreamC3Type extends C3Type {
325
+ valueType;
326
+ constructor(valueType) {
327
+ super("stream");
328
+ this.valueType = valueType;
329
+ }
330
+ }
309
331
  // packages/idl/src/api/StringC3Type.ts
310
332
  class StringC3Type extends C3Type {
311
333
  constructor() {
@@ -323,6 +345,7 @@ export {
323
345
  VoidC3Type,
324
346
  UnionC3Type,
325
347
  StringC3Type,
348
+ StreamC3Type,
326
349
  ShortC3Type,
327
350
  ServiceDefinition,
328
351
  ReferenceC3Type,
@@ -345,5 +368,7 @@ export {
345
368
  C3Decorator,
346
369
  ByteC3Type,
347
370
  BooleanC3Type,
348
- ArrayC3Type
371
+ AsyncC3Type,
372
+ ArrayC3Type,
373
+ AnyC3Type
349
374
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/idl",
3
- "version": "1.0.9",
3
+ "version": "5.0.0-beta.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -28,24 +28,15 @@
28
28
  },
29
29
  "scripts": {
30
30
  "type-check": "tsc --noEmit",
31
- "test": "vitest run",
32
- "coverage": "vitest run --coverage",
33
- "ui-test": "vitest --ui --coverage.enabled=true --mode development"
34
- },
35
- "dependencies": {
36
- "reflect-metadata": "^0.2.2"
31
+ "test": "bun test --pass-with-no-tests",
32
+ "coverage": "bun test --coverage --pass-with-no-tests"
37
33
  },
34
+ "dependencies": {},
38
35
  "devDependencies": {
39
36
  "@types/node": "^25.3.2",
40
37
  "@types/ws": "^8.18.1",
41
- "@vitest/coverage-v8": "^4.0.18",
42
- "@vitest/runner": "^4.0.18",
43
- "@vitest/ui": "^4.0.18",
44
- "allure": "^3.3.1",
45
- "allure-vitest": "^3.5.0",
46
38
  "tslib": "^2.8.1",
47
- "typescript": "^5.9.3",
48
- "vitest": "^4.0.18"
39
+ "typescript": "^5.9.3"
49
40
  },
50
41
  "peerDependenciesMeta": {
51
42
  "typescript": {