@synnaxlabs/x 0.54.1 → 0.54.2
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/.turbo/turbo-build.log +7 -7
- package/dist/src/binary/codec.d.ts.map +1 -1
- package/dist/src/color/color.d.ts +1 -1
- package/dist/src/color/palette.d.ts +2 -2
- package/dist/src/deep/atKeys.d.ts +27 -0
- package/dist/src/deep/atKeys.d.ts.map +1 -0
- package/dist/src/deep/atKeys.spec.d.ts +2 -0
- package/dist/src/deep/atKeys.spec.d.ts.map +1 -0
- package/dist/src/deep/external.d.ts +1 -0
- package/dist/src/deep/external.d.ts.map +1 -1
- package/dist/src/fmt/external.d.ts +3 -0
- package/dist/src/fmt/external.d.ts.map +1 -0
- package/dist/src/fmt/index.d.ts +2 -0
- package/dist/src/fmt/index.d.ts.map +1 -0
- package/dist/src/fmt/path.d.ts +13 -0
- package/dist/src/fmt/path.d.ts.map +1 -0
- package/dist/src/fmt/path.spec.d.ts +2 -0
- package/dist/src/fmt/path.spec.d.ts.map +1 -0
- package/dist/src/fmt/value.d.ts +23 -0
- package/dist/src/fmt/value.d.ts.map +1 -0
- package/dist/src/fmt/value.spec.d.ts +2 -0
- package/dist/src/fmt/value.spec.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/label/types.gen.d.ts +2 -2
- package/dist/src/narrow/narrow.d.ts +9 -0
- package/dist/src/narrow/narrow.d.ts.map +1 -1
- package/dist/src/primitive/primitive.d.ts +10 -0
- package/dist/src/primitive/primitive.d.ts.map +1 -1
- package/dist/src/status/status.d.ts +14 -2
- package/dist/src/status/status.d.ts.map +1 -1
- package/dist/src/status/types.gen.d.ts +1 -1
- package/dist/src/telem/series.d.ts +4 -4
- package/dist/src/telem/telem.d.ts +10 -10
- package/dist/src/zod/external.d.ts +1 -0
- package/dist/src/zod/external.d.ts.map +1 -1
- package/dist/src/zod/parse.d.ts +47 -0
- package/dist/src/zod/parse.d.ts.map +1 -0
- package/dist/src/zod/parse.spec.d.ts +2 -0
- package/dist/src/zod/parse.spec.d.ts.map +1 -0
- package/dist/x.cjs +16 -7
- package/dist/x.js +2190 -1869
- package/package.json +3 -3
- package/src/binary/codec.ts +3 -2
- package/src/deep/atKeys.spec.ts +107 -0
- package/src/deep/atKeys.ts +49 -0
- package/src/deep/external.ts +1 -0
- package/src/fmt/external.ts +11 -0
- package/src/fmt/index.ts +10 -0
- package/src/fmt/path.spec.ts +46 -0
- package/src/fmt/path.ts +30 -0
- package/src/fmt/value.spec.ts +206 -0
- package/src/fmt/value.ts +83 -0
- package/src/index.ts +1 -0
- package/src/narrow/narrow.spec.ts +43 -0
- package/src/narrow/narrow.ts +15 -0
- package/src/primitive/primitive.spec.ts +51 -0
- package/src/primitive/primitive.ts +12 -0
- package/src/status/status.spec.ts +146 -0
- package/src/status/status.ts +65 -18
- package/src/zod/external.ts +1 -0
- package/src/zod/parse.spec.ts +702 -0
- package/src/zod/parse.ts +519 -0
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/x@0.54.
|
|
2
|
+
> @synnaxlabs/x@0.54.2 build /home/runner/work/synnax/synnax/x/ts
|
|
3
3
|
> tsc --noEmit && vite build
|
|
4
4
|
|
|
5
5
|
[34m Synnax - Production mode[0m
|
|
6
6
|
[36mvite v8.0.3 [32mbuilding client environment for production...[36m[39m
|
|
7
|
-
[2K
|
|
7
|
+
[2K
|
|
8
8
|
rendering chunks...
|
|
9
9
|
[32m
|
|
10
10
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
11
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
11
|
+
[32m[36m[vite:dts][32m Declaration files built in 5099ms.
|
|
12
12
|
[39m
|
|
13
13
|
computing gzip size...
|
|
14
|
-
dist/x.js
|
|
14
|
+
dist/x.js 140.19 kB │ gzip: 38.90 kB
|
|
15
15
|
|
|
16
16
|
[33m[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugin `vite:dts`. See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
17
17
|
[39m
|
|
18
|
-
[2K
|
|
18
|
+
[2K
|
|
19
19
|
rendering chunks...
|
|
20
20
|
computing gzip size...
|
|
21
|
-
dist/x.cjs
|
|
21
|
+
dist/x.cjs 113.80 kB │ gzip: 35.74 kB
|
|
22
22
|
|
|
23
|
-
[32m✓ built in 5.
|
|
23
|
+
[32m✓ built in 5.40s[39m
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../../src/binary/codec.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../../src/binary/codec.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAM7B;;;GAGG;AACH,MAAM,WAAW,KAAK;IACpB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,KAAK,UAAU,CAAC,WAAW,CAAC,CAAC;IAE1E;;;;;OAKG;IACH,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAC1B,IAAI,EAAE,UAAU,GAAG,WAAW,EAC9B,MAAM,CAAC,EAAE,CAAC,KACP,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;AAED,mDAAmD;AACnD,qBAAa,SAAU,YAAW,KAAK;IACrC,WAAW,SAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;;IAOtC,MAAM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AAE,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;CAIpF;AAED,eAAO,MAAM,UAAU,WAAkB,CAAC;AAC1C,eAAO,MAAM,SAAS,UAAiB,CAAC;AACxC,eAAO,MAAM,UAAU,WAAkB,CAAC;AAE1C,eAAO,MAAM,QAAQ,EAAE,KAAK,EAAiB,CAAC"}
|
|
@@ -51,7 +51,7 @@ export declare const colorZ: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTu
|
|
|
51
51
|
g: z.ZodInt;
|
|
52
52
|
b: z.ZodInt;
|
|
53
53
|
a: z.ZodNumber;
|
|
54
|
-
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number
|
|
54
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
55
55
|
rgba255: [number, number, number, number];
|
|
56
56
|
} | {
|
|
57
57
|
r: number;
|
|
@@ -9,7 +9,7 @@ declare const styleZ: z.ZodObject<{
|
|
|
9
9
|
g: z.ZodInt;
|
|
10
10
|
b: z.ZodInt;
|
|
11
11
|
a: z.ZodNumber;
|
|
12
|
-
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number
|
|
12
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
13
13
|
rgba255: [number, number, number, number];
|
|
14
14
|
} | {
|
|
15
15
|
r: number;
|
|
@@ -32,7 +32,7 @@ export declare const paletteZ: z.ZodObject<{
|
|
|
32
32
|
g: z.ZodInt;
|
|
33
33
|
b: z.ZodInt;
|
|
34
34
|
a: z.ZodNumber;
|
|
35
|
-
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number
|
|
35
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
36
36
|
rgba255: [number, number, number, number];
|
|
37
37
|
} | {
|
|
38
38
|
r: number;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface AtKeysResult<V = unknown> {
|
|
2
|
+
/** True if every key in the path resolved to a property that is present on its
|
|
3
|
+
* container (via `in`), false if any segment was missing. A key with an explicit
|
|
4
|
+
* `undefined` or `null` value is still considered present. */
|
|
5
|
+
present: boolean;
|
|
6
|
+
/** The value at the path. Undefined when `present` is false. */
|
|
7
|
+
value: V | undefined;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Walks a value by a strict `PropertyKey[]` path and returns whether the path is
|
|
11
|
+
* present along with the value at that location.
|
|
12
|
+
*
|
|
13
|
+
* Differs from {@link get}/{@link has} in three important ways:
|
|
14
|
+
*
|
|
15
|
+
* 1. Takes a `PropertyKey[]` instead of a dotted string, so keys containing literal
|
|
16
|
+
* `.` are handled unambiguously.
|
|
17
|
+
* 2. Uses plain positional key lookup (`container[key]`) without the
|
|
18
|
+
* `defaultGetter` fallback that searches arrays for items with matching `.key`.
|
|
19
|
+
* 3. Distinguishes "key missing from container" from "key present with
|
|
20
|
+
* `null`/`undefined` value" by using the `in` operator, which `has` does not.
|
|
21
|
+
*
|
|
22
|
+
* Intended for consumers that receive paths as `PropertyKey[]` (e.g. zod issues,
|
|
23
|
+
* JSON-pointer-like walkers) and need to render the exact state of the input,
|
|
24
|
+
* including present-but-null fields, without the ergonomic heuristics of `get`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const atKeys: <V = unknown>(root: unknown, path: ReadonlyArray<PropertyKey>) => AtKeysResult<V>;
|
|
27
|
+
//# sourceMappingURL=atKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atKeys.d.ts","sourceRoot":"","sources":["../../../src/deep/atKeys.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC;;kEAE8D;IAC9D,OAAO,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,GAAG,OAAO,EAChC,MAAM,OAAO,EACb,MAAM,aAAa,CAAC,WAAW,CAAC,KAC/B,YAAY,CAAC,CAAC,CAUhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atKeys.spec.d.ts","sourceRoot":"","sources":["../../../src/deep/atKeys.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/deep/external.ts"],"names":[],"mappings":"AASA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/deep/external.ts"],"names":[],"mappings":"AASA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/fmt/external.ts"],"names":[],"mappings":"AASA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fmt/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders an object path as a human-readable string.
|
|
3
|
+
*
|
|
4
|
+
* - An empty path becomes `<root>`.
|
|
5
|
+
* - String segments are joined with `.`.
|
|
6
|
+
* - Numeric segments are rendered as bracket indices (`items[0]`).
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* path([]) // "<root>"
|
|
10
|
+
* path(["config", "channels", 0, "port"]) // "config.channels[0].port"
|
|
11
|
+
*/
|
|
12
|
+
export declare const path: (segments: ReadonlyArray<PropertyKey>) => string;
|
|
13
|
+
//# sourceMappingURL=path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../src/fmt/path.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,IAAI,GAAI,UAAU,aAAa,CAAC,WAAW,CAAC,KAAG,MAS3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.spec.d.ts","sourceRoot":"","sources":["../../../src/fmt/path.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface Options {
|
|
2
|
+
maxStringLength?: number;
|
|
3
|
+
maxArrayLength?: number;
|
|
4
|
+
maxDepth?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Produces a safe, JSON-friendly representation of an arbitrary value for logging and
|
|
8
|
+
* display. Strings, arrays, and object depth are capped; non-plain values such as
|
|
9
|
+
* `Date`, `Error`, functions, and symbols are rendered as short bracketed tags.
|
|
10
|
+
*
|
|
11
|
+
* Intended for user-facing error messages, debug output, and any situation where the
|
|
12
|
+
* input may be untrusted or unbounded in size. The output is always structurally
|
|
13
|
+
* cloneable and safe to JSON.stringify.
|
|
14
|
+
*/
|
|
15
|
+
export declare const value: (input: unknown, options?: Options) => unknown;
|
|
16
|
+
/**
|
|
17
|
+
* Returns a pretty-printed JSON rendering of `input` after passing it through
|
|
18
|
+
* {@link value}. Safe for untrusted or unbounded data: `value()` always returns a
|
|
19
|
+
* JSON-compatible structure (primitives, arrays, plain objects, strings), breaks
|
|
20
|
+
* cycles at the depth cap, and converts bigints/symbols/functions to strings.
|
|
21
|
+
*/
|
|
22
|
+
export declare const stringify: (input: unknown, options?: Options) => string;
|
|
23
|
+
//# sourceMappingURL=value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../src/fmt/value.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,OAAO;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAMD;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,OAAO,EAAE,UAAS,OAAY,KAAG,OA2C7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,EAAE,UAAS,OAAY,KAAG,MAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value.spec.d.ts","sourceRoot":"","sources":["../../../src/fmt/value.spec.ts"],"names":[],"mappings":""}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW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,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,MAAM,CAAC;AACrB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
|
|
@@ -16,7 +16,7 @@ export declare const labelZ: z.ZodObject<{
|
|
|
16
16
|
g: z.ZodInt;
|
|
17
17
|
b: z.ZodInt;
|
|
18
18
|
a: z.ZodNumber;
|
|
19
|
-
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number
|
|
19
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
20
20
|
rgba255: [number, number, number, number];
|
|
21
21
|
} | {
|
|
22
22
|
r: number;
|
|
@@ -37,7 +37,7 @@ export declare const newZ: z.ZodObject<{
|
|
|
37
37
|
g: z.ZodInt;
|
|
38
38
|
b: z.ZodInt;
|
|
39
39
|
a: z.ZodNumber;
|
|
40
|
-
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | [number, number, number
|
|
40
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
41
41
|
rgba255: [number, number, number, number];
|
|
42
42
|
} | {
|
|
43
43
|
r: number;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { record } from '../record';
|
|
2
2
|
export type IsUndefined<T> = [T] extends [undefined] ? [undefined] extends [T] ? true : false : false;
|
|
3
3
|
export declare const isObject: <T extends record.Unknown = record.Unknown>(item?: unknown) => item is T;
|
|
4
|
+
/**
|
|
5
|
+
* A stricter version of {@link isObject} that additionally rejects class instances,
|
|
6
|
+
* arrays, and any non-`Object.prototype` objects. Returns true only for plain objects
|
|
7
|
+
* created via `{}`, `Object.create(null)`, or an object literal.
|
|
8
|
+
*
|
|
9
|
+
* Useful for walkers that need to distinguish "plain data bag" from "wrapped instance"
|
|
10
|
+
* (e.g. `Date`, `Map`, `Error`), which `isObject` treats the same.
|
|
11
|
+
*/
|
|
12
|
+
export declare const isPlainObject: (item?: unknown) => item is Record<string, unknown>;
|
|
4
13
|
//# sourceMappingURL=narrow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"narrow.d.ts","sourceRoot":"","sources":["../../../src/narrow/narrow.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,GAChD,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GACrB,IAAI,GACJ,KAAK,GACP,KAAK,CAAC;AAEV,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAChE,OAAO,OAAO,KACb,IAAI,IAAI,CAAqE,CAAC"}
|
|
1
|
+
{"version":3,"file":"narrow.d.ts","sourceRoot":"","sources":["../../../src/narrow/narrow.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,GAChD,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GACrB,IAAI,GACJ,KAAK,GACP,KAAK,CAAC;AAEV,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,EAChE,OAAO,OAAO,KACb,IAAI,IAAI,CAAqE,CAAC;AAEjF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAK5E,CAAC"}
|
|
@@ -52,4 +52,14 @@ export declare const isZero: <V extends Value>(value: V) => value is V & ZeroVal
|
|
|
52
52
|
* Type predicate function that narrows to non-zero values
|
|
53
53
|
*/
|
|
54
54
|
export declare const isNonZero: <V extends Value>(value: V) => value is V & NonZeroValue;
|
|
55
|
+
/**
|
|
56
|
+
* @returns true if the given value is a JavaScript primitive: `null`, `undefined`,
|
|
57
|
+
* or a value whose `typeof` is not `"object"` or `"function"`. Returns false for
|
|
58
|
+
* objects (including arrays), functions, and class instances.
|
|
59
|
+
*
|
|
60
|
+
* Complements {@link isZero} and {@link isNonZero}, which check for the zero value
|
|
61
|
+
* of a known primitive type. Use `is` when you have an `unknown` value and want to
|
|
62
|
+
* decide whether to render it inline vs. recurse into it.
|
|
63
|
+
*/
|
|
64
|
+
export declare const is: (value: unknown) => boolean;
|
|
55
65
|
//# source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SAAS,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AAErD;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,KAAK,EAAE,OAAO,CAAC,KAAG,KAAK,IAAI,CAAC,GAAG,SAkB/D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,KAAK,EAAE,OAAO,CAAC,KAAG,KAAK,IAAI,CAAC,GAAG,YACnD,CAAC;AAEjB;;;;;;;;GAQG;AACH,eAAO,MAAM,EAAE,GAAI,OAAO,OAAO,KAAG,OACyC,CAAC"}
|
|
@@ -13,10 +13,22 @@ type Base<V extends Variant> = {
|
|
|
13
13
|
export type Crude<DetailsSchema extends z.ZodType = z.ZodNever, V extends Variant = Variant> = optional.Optional<Base<V>, "key" | "time" | "name"> & ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
14
14
|
details: z.output<DetailsSchema>;
|
|
15
15
|
});
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Interface that errors may optionally implement to provide richer rendering when
|
|
18
|
+
* passed to {@link fromException}. Implementers return a partial {@link Crude} spec
|
|
19
|
+
* whose fields override the defaults derived from the underlying `Error`.
|
|
20
|
+
*
|
|
21
|
+
* This is a duck-typed contract: `fromException` checks for the presence of a
|
|
22
|
+
* `toStatus` method via the `in` operator, so there is no need to import this
|
|
23
|
+
* interface to use it.
|
|
24
|
+
*/
|
|
25
|
+
export interface Custom {
|
|
26
|
+
toStatus(): Partial<Crude<z.ZodRecord, "error">>;
|
|
27
|
+
}
|
|
28
|
+
export declare const exceptionDetailsSchema: z.ZodIntersection<z.ZodObject<{
|
|
17
29
|
stack: z.ZodString;
|
|
18
30
|
error: z.ZodCustom<Error, Error>;
|
|
19
|
-
}, z.core.$strip
|
|
31
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>;
|
|
20
32
|
export declare const fromException: (exc: unknown, message?: string) => Status<typeof exceptionDetailsSchema, z.ZodLiteral<"error">>;
|
|
21
33
|
export declare const create: <DetailsSchema extends z.ZodType = z.ZodNever, V extends Variant = Variant>(spec: Crude<DetailsSchema, V>) => Status<DetailsSchema, z.ZodType<V>>;
|
|
22
34
|
export declare const keepVariants: (variant?: Variant, keep?: Variant | Variant[]) => Variant | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/status/status.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/status/status.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,KAAK,IAAI,CAAC,CAAC,SAAS,OAAO,IAAI;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,KAAK,CACf,aAAa,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,EAC5C,CAAC,SAAS,OAAO,GAAG,OAAO,IACzB,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,MAA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AAS,eAAoB,KAC5B,MAoBF,CAAC"}
|
|
@@ -66,7 +66,7 @@ export declare const newZ: <Details extends z.ZodType = z.ZodNever, V extends z.
|
|
|
66
66
|
value: z.ZodBigInt;
|
|
67
67
|
}, z.core.$strip>, z.ZodTransform<telem.TimeStamp, {
|
|
68
68
|
value: bigint;
|
|
69
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<telem.TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<telem.TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<telem.TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<telem.TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<telem.TimeSpan, telem.TimeSpan>, z.ZodTransform<telem.TimeStamp, telem.TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<telem.TimeStamp, [number, number
|
|
69
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<telem.TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<telem.TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<telem.TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<telem.TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<telem.TimeSpan, telem.TimeSpan>, z.ZodTransform<telem.TimeStamp, telem.TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<telem.TimeStamp, [number, number, number] | [number, number] | [number]>>]>>>;
|
|
70
70
|
labels: ReturnType<typeof zod.nullToUndefined<z.ZodArray<typeof label.labelZ>>>;
|
|
71
71
|
details: [Details] extends [z.ZodNever] ? z.ZodOptional<z.ZodUnknown> : Details;
|
|
72
72
|
}, z.core.$strip>;
|
|
@@ -105,12 +105,12 @@ export declare class Series<T extends TelemValue = TelemValue> implements instan
|
|
|
105
105
|
value: z.ZodBigInt;
|
|
106
106
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
107
107
|
value: bigint;
|
|
108
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
108
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
109
109
|
end: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
110
110
|
value: z.ZodBigInt;
|
|
111
111
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
112
112
|
value: bigint;
|
|
113
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
113
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
114
114
|
}, z.core.$strip>, z.ZodTransform<TimeRange, {
|
|
115
115
|
start: TimeStamp;
|
|
116
116
|
end: TimeStamp;
|
|
@@ -133,12 +133,12 @@ export declare class Series<T extends TelemValue = TelemValue> implements instan
|
|
|
133
133
|
value: z.ZodBigInt;
|
|
134
134
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
135
135
|
value: bigint;
|
|
136
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
136
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
137
137
|
end: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
138
138
|
value: z.ZodBigInt;
|
|
139
139
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
140
140
|
value: bigint;
|
|
141
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
141
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
142
142
|
}, z.core.$strip>, z.ZodTransform<TimeRange, {
|
|
143
143
|
start: TimeStamp;
|
|
144
144
|
end: TimeStamp;
|
|
@@ -405,7 +405,7 @@ export declare class TimeStamp extends primitive.ValueExtension<bigint> implemen
|
|
|
405
405
|
value: z.ZodBigInt;
|
|
406
406
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
407
407
|
value: bigint;
|
|
408
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
408
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
409
409
|
/**
|
|
410
410
|
* Sorts two timestamps.
|
|
411
411
|
*
|
|
@@ -900,12 +900,12 @@ export declare class TimeRange implements primitive.Stringer {
|
|
|
900
900
|
value: z.ZodBigInt;
|
|
901
901
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
902
902
|
value: bigint;
|
|
903
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
903
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
904
904
|
end: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
905
905
|
value: z.ZodBigInt;
|
|
906
906
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
907
907
|
value: bigint;
|
|
908
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
908
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
909
909
|
}, z.core.$strip>, z.ZodTransform<TimeRange, {
|
|
910
910
|
start: TimeStamp;
|
|
911
911
|
end: TimeStamp;
|
|
@@ -919,12 +919,12 @@ export declare class TimeRange implements primitive.Stringer {
|
|
|
919
919
|
value: z.ZodBigInt;
|
|
920
920
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
921
921
|
value: bigint;
|
|
922
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
922
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
923
923
|
end: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
924
924
|
value: z.ZodBigInt;
|
|
925
925
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
926
926
|
value: bigint;
|
|
927
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
927
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
928
928
|
}, z.core.$strip>, z.ZodTransform<TimeRange, {
|
|
929
929
|
start: TimeStamp;
|
|
930
930
|
end: TimeStamp;
|
|
@@ -1198,12 +1198,12 @@ export declare const timeRangeZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
1198
1198
|
value: z.ZodBigInt;
|
|
1199
1199
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
1200
1200
|
value: bigint;
|
|
1201
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
1201
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
1202
1202
|
end: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
1203
1203
|
value: z.ZodBigInt;
|
|
1204
1204
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
1205
1205
|
value: bigint;
|
|
1206
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
1206
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
1207
1207
|
}, z.core.$strip>, z.ZodTransform<TimeRange, {
|
|
1208
1208
|
start: TimeStamp;
|
|
1209
1209
|
end: TimeStamp;
|
|
@@ -1212,7 +1212,7 @@ export declare const timeStampZ: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, Tim
|
|
|
1212
1212
|
value: z.ZodBigInt;
|
|
1213
1213
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
1214
1214
|
value: bigint;
|
|
1215
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
1215
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
1216
1216
|
export declare const timeSpanZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1217
1217
|
value: z.ZodBigInt;
|
|
1218
1218
|
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
@@ -1226,12 +1226,12 @@ export declare const timeRangeBoundedZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObje
|
|
|
1226
1226
|
value: z.ZodBigInt;
|
|
1227
1227
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
1228
1228
|
value: bigint;
|
|
1229
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
1229
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
1230
1230
|
end: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
1231
1231
|
value: z.ZodBigInt;
|
|
1232
1232
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
1233
1233
|
value: bigint;
|
|
1234
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number
|
|
1234
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
1235
1235
|
}, z.core.$strip>, z.ZodTransform<TimeRange, {
|
|
1236
1236
|
start: TimeStamp;
|
|
1237
1237
|
end: TimeStamp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/zod/external.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/zod/external.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { errors } from '../errors';
|
|
3
|
+
import { fmt } from '../fmt';
|
|
4
|
+
import { status } from '../status';
|
|
5
|
+
export interface ParseOptions {
|
|
6
|
+
label?: string;
|
|
7
|
+
context?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
export interface ParseErrorArgs {
|
|
10
|
+
issues: ReadonlyArray<z.core.$ZodIssue>;
|
|
11
|
+
input: unknown;
|
|
12
|
+
label: string;
|
|
13
|
+
context?: Record<string, unknown>;
|
|
14
|
+
cause?: unknown;
|
|
15
|
+
formatOptions?: fmt.Options;
|
|
16
|
+
}
|
|
17
|
+
declare const ParseError_base: errors.TypedClass;
|
|
18
|
+
/**
|
|
19
|
+
* An error thrown by `zod.parse` when a value fails to parse. It retains the original
|
|
20
|
+
* input, a human-readable label, and optional context so that callers and the status
|
|
21
|
+
* system can render a richer failure message than a raw `ZodError`.
|
|
22
|
+
*
|
|
23
|
+
* Extends the typed error system in `@/errors` so callers can match against it with
|
|
24
|
+
* `ParseError.matches(err)` rather than `instanceof`, which is robust across worker
|
|
25
|
+
* boundaries and network hops.
|
|
26
|
+
*
|
|
27
|
+
* Note that `err.issues.length` and the `(N issues)` count shown in `err.message` can
|
|
28
|
+
* differ: the message counts "leaves" after union/element flattening and
|
|
29
|
+
* unrecognized-keys expansion, while `err.issues` exposes the original zod array
|
|
30
|
+
* unchanged for programmatic consumers.
|
|
31
|
+
*/
|
|
32
|
+
export declare class ParseError extends ParseError_base implements status.Custom {
|
|
33
|
+
readonly issues: ReadonlyArray<z.core.$ZodIssue>;
|
|
34
|
+
readonly input: unknown;
|
|
35
|
+
readonly label: string;
|
|
36
|
+
readonly context?: Record<string, unknown>;
|
|
37
|
+
constructor({ issues, input, label, context, cause, formatOptions }: ParseErrorArgs);
|
|
38
|
+
toStatus(): Partial<status.Crude<z.ZodRecord, "error">>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Parses `value` against `schema`. On failure, throws a `ParseError` that retains the
|
|
42
|
+
* original input along with a human-readable label and optional context fields. The
|
|
43
|
+
* error's `message` is a pre-formatted breakdown suitable for logs and status display.
|
|
44
|
+
*/
|
|
45
|
+
export declare const parse: <S extends z.ZodType>(schema: S, value: unknown, options?: ParseOptions) => z.infer<S>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/zod/parse.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAqYD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACxC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CAC7B;;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,UACX,SAAQ,eACR,YAAW,MAAM,CAAC,MAAM;IAExB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ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