@chainfuse/types 4.0.6 → 4.0.7
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.ZodPipe<z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z4.ZodTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, z4.ZodPipe<z4.
|
|
6
|
+
export declare const ZodBlob: z4.ZodUnion<readonly [z4.ZodPipe<z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z4.ZodTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, z4.ZodPipe<z4.ZodPipe<z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodTransform<ArrayBuffer | SharedArrayBuffer, ArrayBuffer>>, z4.ZodTransform<Uint8Array<ArrayBuffer | SharedArrayBuffer>, ArrayBuffer | SharedArrayBuffer>>, 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;
|
package/dist/zod-4/index.js
CHANGED
|
@@ -19,11 +19,8 @@ export const ZodBlob = z4.union([
|
|
|
19
19
|
z4.instanceof(Uint8Array).transform((ui8a) => ui8a),
|
|
20
20
|
// ArrayBuffer
|
|
21
21
|
z4
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
z4.instanceof(ArrayBuffer).transform((ab) => ab),
|
|
25
|
-
z4.instanceof(SharedArrayBuffer).transform((sab) => sab),
|
|
26
|
-
])
|
|
22
|
+
.instanceof(ArrayBuffer)
|
|
23
|
+
.transform((ab) => ab)
|
|
27
24
|
.transform((abl) => new Uint8Array(abl)),
|
|
28
25
|
// D0Blob
|
|
29
26
|
z4.tuple([z4.int().min(0).max(255)], z4.int().min(0).max(255)).transform((arr) => new Uint8Array(arr)),
|
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.ZodMiniPipe<zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, zm.ZodMiniPipe<zm.
|
|
13
|
+
export declare const ZodBlob: zm.ZodMiniUnion<readonly [zm.ZodMiniPipe<zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, zm.ZodMiniPipe<zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<ArrayBufferLike, ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, ArrayBufferLike>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, [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.ZodMiniPipe<zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, zm.ZodMiniPipe<zm.
|
|
41
|
+
export declare const ZodSuruId: zm.ZodMiniUnion<readonly [zm.ZodMiniCustomStringFormat<"hex">, zm.ZodMiniUnion<readonly [zm.ZodMiniPipe<zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, zm.ZodMiniPipe<zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<ArrayBufferLike, ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, ArrayBufferLike>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, [number, ...number[]]>>]>, zm.ZodMiniBase64, zm.ZodMiniBase64URL]>;
|
package/dist/zod-mini/index.js
CHANGED
|
@@ -10,11 +10,7 @@ export const ZodBlob = zm.union([
|
|
|
10
10
|
// Uint8Array
|
|
11
11
|
zm.pipe(zm.instanceof(Uint8Array), zm.transform((ui8a) => ui8a)),
|
|
12
12
|
// ArrayBuffer
|
|
13
|
-
zm.pipe(zm.
|
|
14
|
-
// Each one has to be manually specified
|
|
15
|
-
zm.pipe(zm.instanceof(ArrayBuffer), zm.transform((ab) => ab)),
|
|
16
|
-
zm.pipe(zm.instanceof(SharedArrayBuffer), zm.transform((sab) => sab)),
|
|
17
|
-
]), zm.transform((abl) => new Uint8Array(abl))),
|
|
13
|
+
zm.pipe(zm.pipe(zm.instanceof(ArrayBuffer), zm.transform((ab) => ab)), zm.transform((abl) => new Uint8Array(abl))),
|
|
18
14
|
// D0Blob
|
|
19
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))),
|
|
20
16
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"@cloudflare/workers-types": "^4.20250927.0",
|
|
106
106
|
"@types/validator": "^13.15.3"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "dffad00676bba58bc4e92b0d868738f7092b2da5"
|
|
109
109
|
}
|