@chainfuse/types 4.2.7 → 4.2.8
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/zod-4/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type JSON = z4.infer<z4.ZodJSONSchema>;
|
|
|
3
3
|
export declare const WorkflowId: z4.ZodString;
|
|
4
4
|
export declare const DoId: z4.ZodCustomStringFormat<"hex">;
|
|
5
5
|
export declare const ZodCoordinate: z4.ZodString;
|
|
6
|
-
export declare const ZodBlob: z4.ZodUnion<readonly [z4.
|
|
6
|
+
export declare const ZodBlob: z4.ZodUnion<readonly [z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z4.ZodPipe<z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z4.ZodPipe<z4.ZodTuple<[z4.ZodInt], z4.ZodInt>, z4.ZodTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>;
|
|
7
7
|
export declare const ZodBlobExport: z4.ZodPipe<z4.ZodTuple<[z4.ZodInt], z4.ZodInt>, z4.ZodTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>;
|
|
8
8
|
export declare const PrefixedUuidRaw: z4.ZodString;
|
|
9
9
|
export declare const PrefixedUuid7Raw: z4.ZodString;
|
|
@@ -26,4 +26,4 @@ export declare const Zod4FakeUuidExport: z4.ZodObject<{
|
|
|
26
26
|
base64: z4.ZodBase64;
|
|
27
27
|
base64url: z4.ZodBase64URL;
|
|
28
28
|
}, z4.z.core.$strip>;
|
|
29
|
-
export declare const ZodSuruId: z4.ZodUnion<readonly [z4.ZodCustomStringFormat<"hex">, z4.ZodBase64, z4.ZodBase64URL]>;
|
|
29
|
+
export declare const ZodSuruId: z4.ZodUnion<readonly [z4.ZodCustomStringFormat<"hex">, z4.ZodUnion<readonly [z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z4.ZodPipe<z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z4.ZodPipe<z4.ZodTuple<[z4.ZodInt], z4.ZodInt>, z4.ZodTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z4.ZodBase64, z4.ZodBase64URL]>;
|
package/dist/zod-4/index.js
CHANGED
|
@@ -16,12 +16,9 @@ export const ZodCoordinate = z4
|
|
|
16
16
|
.regex(new RegExp(/^-?\d+\.\d+$/i));
|
|
17
17
|
export const ZodBlob = z4.union([
|
|
18
18
|
// Uint8Array
|
|
19
|
-
z4.instanceof(Uint8Array)
|
|
19
|
+
z4.instanceof(Uint8Array),
|
|
20
20
|
// ArrayBuffer
|
|
21
|
-
z4
|
|
22
|
-
.instanceof(ArrayBuffer)
|
|
23
|
-
.transform((ab) => ab)
|
|
24
|
-
.transform((abl) => new Uint8Array(abl)),
|
|
21
|
+
z4.instanceof(ArrayBuffer).transform((abl) => new Uint8Array(abl)),
|
|
25
22
|
// D0Blob
|
|
26
23
|
z4.tuple([z4.int().min(0).max(255)], z4.int().min(0).max(255)).transform((arr) => new Uint8Array(arr)),
|
|
27
24
|
]);
|
|
@@ -95,6 +92,7 @@ export const Zod4FakeUuidExport = z4.object({
|
|
|
95
92
|
export const ZodSuruId = z4.union([
|
|
96
93
|
//
|
|
97
94
|
z4.hex().trim().toLowerCase().length(96),
|
|
95
|
+
ZodBlob.refine((blob) => blob.byteLength === 384 / 8),
|
|
98
96
|
z4.base64().trim().max(64),
|
|
99
97
|
z4.base64url().trim().max(64),
|
|
100
98
|
]);
|
package/dist/zod-mini/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type JSON = zm.infer<zm.ZodMiniJSONSchema>;
|
|
|
10
10
|
export declare const WorkflowId: zm.ZodMiniString<string>;
|
|
11
11
|
export declare const DoId: zm.ZodMiniCustomStringFormat<"hex">;
|
|
12
12
|
export declare const ZodCoordinate: zm.ZodMiniString<string>;
|
|
13
|
-
export declare const ZodBlob: zm.ZodMiniUnion<readonly [zm.
|
|
13
|
+
export declare const ZodBlob: zm.ZodMiniUnion<readonly [zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>;
|
|
14
14
|
export declare const ZodBlobExport: zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>;
|
|
15
15
|
export declare const prefixedUuidRegex: RegExp;
|
|
16
16
|
export declare const hexUuidRegex: RegExp;
|
|
@@ -38,4 +38,4 @@ export declare const Zod4FakeUuidExport: zm.ZodMiniObject<{
|
|
|
38
38
|
base64: zm.ZodMiniBase64;
|
|
39
39
|
base64url: zm.ZodMiniBase64URL;
|
|
40
40
|
}, zm.z.core.$strip>;
|
|
41
|
-
export declare const ZodSuruId: zm.ZodMiniUnion<readonly [zm.ZodMiniCustomStringFormat<"hex">, zm.ZodMiniUnion<readonly [zm.
|
|
41
|
+
export declare const ZodSuruId: zm.ZodMiniUnion<readonly [zm.ZodMiniCustomStringFormat<"hex">, zm.ZodMiniUnion<readonly [zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, zm.ZodMiniBase64, zm.ZodMiniBase64URL]>;
|
package/dist/zod-mini/index.js
CHANGED
|
@@ -8,9 +8,9 @@ export const DoId = zm.hex().check(zm.trim(), zm.length(64), zm.toLowerCase());
|
|
|
8
8
|
export const ZodCoordinate = zm.string().check(zm.trim(), zm.minLength(3), zm.regex(new RegExp(/^-?\d+\.\d+$/i)));
|
|
9
9
|
export const ZodBlob = zm.union([
|
|
10
10
|
// Uint8Array
|
|
11
|
-
zm.
|
|
11
|
+
zm.instanceof(Uint8Array),
|
|
12
12
|
// ArrayBuffer
|
|
13
|
-
zm.pipe(zm.
|
|
13
|
+
zm.pipe(zm.instanceof(ArrayBuffer), zm.transform((abl) => new Uint8Array(abl))),
|
|
14
14
|
// D0Blob
|
|
15
15
|
zm.pipe(zm.tuple([zm.int().check(zm.minimum(0), zm.maximum(255))], zm.int().check(zm.minimum(0), zm.maximum(255))), zm.transform((arr) => new Uint8Array(arr))),
|
|
16
16
|
]);
|
|
@@ -89,7 +89,7 @@ export const Zod4FakeUuidExport = zm.object({
|
|
|
89
89
|
export const ZodSuruId = zm.union([
|
|
90
90
|
//
|
|
91
91
|
zm.hex().check(zm.trim(), zm.toLowerCase(), zm.length(96)),
|
|
92
|
-
ZodBlob,
|
|
92
|
+
ZodBlob.check(zm.refine((blob) => blob.byteLength === 384 / 8)),
|
|
93
93
|
zm.base64().check(zm.trim(), zm.maxLength(64)),
|
|
94
94
|
zm.base64url().check(zm.trim(), zm.maxLength(64)),
|
|
95
95
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"@cloudflare/workers-types": "^4.20260120.0",
|
|
102
102
|
"@types/validator": "^13.15.10"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "7465800b60661c071d9ca65c41368bb474e6c94c"
|
|
105
105
|
}
|