@kineviz/gl 0.4.3 → 0.4.5

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.
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+
3
+ /** Positional argument layout of one API method. */
4
+ type ArgDecl = {
5
+ kind: "param";
6
+ name: string;
7
+ schema: z.ZodTypeAny;
8
+ optional?: boolean;
9
+ description?: string;
10
+ } | {
11
+ kind: "options";
12
+ name: string;
13
+ schema: z.ZodObject<z.ZodRawShape>;
14
+ optional?: boolean;
15
+ };
16
+ interface MethodSchemaEntry {
17
+ method: string;
18
+ description: string;
19
+ args: ArgDecl[];
20
+ }
21
+
22
+ /**
23
+ * @kineviz/gl/schemas — engine-owned method schema registry.
24
+ * See notes/specs/2026-06-12-api-method-schema-registry.md.
25
+ */
26
+
27
+ declare const METHOD_SCHEMAS: ReadonlyMap<string, MethodSchemaEntry>;
28
+
29
+ export { type ArgDecl, METHOD_SCHEMAS, type MethodSchemaEntry };
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+
3
+ /** Positional argument layout of one API method. */
4
+ type ArgDecl = {
5
+ kind: "param";
6
+ name: string;
7
+ schema: z.ZodTypeAny;
8
+ optional?: boolean;
9
+ description?: string;
10
+ } | {
11
+ kind: "options";
12
+ name: string;
13
+ schema: z.ZodObject<z.ZodRawShape>;
14
+ optional?: boolean;
15
+ };
16
+ interface MethodSchemaEntry {
17
+ method: string;
18
+ description: string;
19
+ args: ArgDecl[];
20
+ }
21
+
22
+ /**
23
+ * @kineviz/gl/schemas — engine-owned method schema registry.
24
+ * See notes/specs/2026-06-12-api-method-schema-registry.md.
25
+ */
26
+
27
+ declare const METHOD_SCHEMAS: ReadonlyMap<string, MethodSchemaEntry>;
28
+
29
+ export { type ArgDecl, METHOD_SCHEMAS, type MethodSchemaEntry };