@chainfuse/types 2.10.10 → 2.10.12
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/ai-tools/azure/catalog.d.ts +461 -175
- package/dist/ai-tools/azure/catalog.js +608 -186
- package/dist/ai-tools/workers-ai/catalog.d.ts +1 -1
- package/dist/ai-tools/workers-ai/catalog.js +1 -1
- package/dist/d0/index.d.ts +14 -3
- package/dist/d0/index.js +56 -6
- package/dist/wf/index.js +1 -1
- package/dist/zod/index.d.ts +1 -1
- package/dist/zod/index.js +1 -1
- package/package.json +5 -5
|
@@ -747,7 +747,7 @@ export declare const workersAiCatalog: {
|
|
|
747
747
|
readonly price: 0.02;
|
|
748
748
|
readonly currency: "USD";
|
|
749
749
|
}];
|
|
750
|
-
readonly info: "https://huggingface.co/BAAI/bge-
|
|
750
|
+
readonly info: "https://huggingface.co/BAAI/bge-small-en-v1.5";
|
|
751
751
|
readonly max_input_tokens: 512;
|
|
752
752
|
readonly output_dimensions: 384;
|
|
753
753
|
};
|
package/dist/d0/index.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { z } from 'zod/v4';
|
|
2
1
|
export type D0Blob = [number, ...number[]];
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export declare const PrefixedUuid3: import("zod/v3").ZodEffects<import("zod/v3").ZodString, {
|
|
6
|
+
type: "dataspace" | "tenant" | "user";
|
|
7
|
+
value: string;
|
|
8
|
+
preview: boolean;
|
|
9
|
+
}, string>;
|
|
10
|
+
export declare const PrefixedUuid: import("zod/v4").ZodPipe<import("zod/v4").ZodString, import("zod/v4").ZodTransform<{
|
|
4
11
|
type: "dataspace" | "tenant" | "user";
|
|
5
12
|
value: string;
|
|
6
13
|
preview: boolean;
|
|
7
14
|
}, string>>;
|
|
8
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
18
|
+
export declare const ZodUuid3: import("zod/v3").ZodUnion<[import("zod/v3").ZodString, import("zod/v3").ZodEffects<import("zod/v3").ZodString, string, string>, import("zod/v3").ZodEffects<import("zod/v3").ZodString, string, string>, import("zod/v3").ZodString, import("zod/v3").ZodString]>;
|
|
19
|
+
export declare const ZodUuid: import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodUUID, import("zod/v4").ZodString, import("zod/v4").ZodBase64, import("zod/v4").ZodBase64URL]>;
|
package/dist/d0/index.js
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated
|
|
3
|
+
*/
|
|
4
|
+
const PrefixedUuidRaw3 = await import('zod/v3').then(({ z }) => z
|
|
3
5
|
.string()
|
|
4
6
|
.trim()
|
|
5
7
|
.toLowerCase()
|
|
6
8
|
.min(38)
|
|
7
9
|
.max(40)
|
|
8
|
-
.regex(new RegExp(/^((d|t|u)_)?[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}(_p)?$/i));
|
|
10
|
+
.regex(new RegExp(/^((d|t|u)_)?[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}(_p)?$/i)));
|
|
11
|
+
const PrefixedUuidRaw = await import('zod/v4').then(({ z }) => z
|
|
12
|
+
.string()
|
|
13
|
+
.trim()
|
|
14
|
+
.toLowerCase()
|
|
15
|
+
.min(38)
|
|
16
|
+
.max(40)
|
|
17
|
+
.regex(new RegExp(/^((d|t|u)_)?[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}(_p)?$/i)));
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
|
+
export const PrefixedUuid3 = PrefixedUuidRaw3.transform((value) => {
|
|
22
|
+
let type;
|
|
23
|
+
if (value.startsWith('d_')) {
|
|
24
|
+
type = 'dataspace';
|
|
25
|
+
}
|
|
26
|
+
else if (value.startsWith('t_')) {
|
|
27
|
+
type = 'tenant';
|
|
28
|
+
}
|
|
29
|
+
else if (value.startsWith('u_')) {
|
|
30
|
+
type = 'user';
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
throw new Error('Invalid UUID prefix');
|
|
34
|
+
}
|
|
35
|
+
return { type, value, preview: value.endsWith('_p') };
|
|
36
|
+
});
|
|
9
37
|
export const PrefixedUuid = PrefixedUuidRaw.transform((value) => {
|
|
10
38
|
let type;
|
|
11
39
|
if (value.startsWith('d_')) {
|
|
@@ -22,9 +50,31 @@ export const PrefixedUuid = PrefixedUuidRaw.transform((value) => {
|
|
|
22
50
|
}
|
|
23
51
|
return { type, value, preview: value.endsWith('_p') };
|
|
24
52
|
});
|
|
25
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated
|
|
55
|
+
*/
|
|
56
|
+
export const ZodUuid3 = await import('zod/v3').then(({ z }) => z.union([
|
|
57
|
+
PrefixedUuidRaw3,
|
|
58
|
+
// utf-8
|
|
59
|
+
z
|
|
60
|
+
.string()
|
|
61
|
+
.trim()
|
|
62
|
+
.toLowerCase()
|
|
63
|
+
.uuid()
|
|
64
|
+
.refine((value) => import('validator/es/lib/isUUID').then(({ default: isUUID }) => isUUID(value, 7)).catch(() => import('validator').then(({ default: validator }) => validator.isUUID(value, 7)))),
|
|
65
|
+
// hex
|
|
66
|
+
z
|
|
67
|
+
.string()
|
|
68
|
+
.trim()
|
|
69
|
+
.toLowerCase()
|
|
70
|
+
.length(32)
|
|
71
|
+
.refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
|
|
72
|
+
z.string().trim().nonempty().toLowerCase().base64(),
|
|
73
|
+
z.string().trim().nonempty().toLowerCase().base64url(),
|
|
74
|
+
]));
|
|
75
|
+
export const ZodUuid = await import('zod/v4').then(({ z }) => z.union([
|
|
26
76
|
PrefixedUuidRaw,
|
|
27
|
-
// utf
|
|
77
|
+
// utf-8
|
|
28
78
|
z.uuidv7().trim().toLowerCase(),
|
|
29
79
|
// hex
|
|
30
80
|
z
|
|
@@ -35,4 +85,4 @@ export const ZodUuid = z.union([
|
|
|
35
85
|
.refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
|
|
36
86
|
z.base64().trim().nonempty().toLowerCase(),
|
|
37
87
|
z.base64url().trim().nonempty().toLowerCase(),
|
|
38
|
-
]);
|
|
88
|
+
]));
|
package/dist/wf/index.js
CHANGED
package/dist/zod/index.d.ts
CHANGED
package/dist/zod/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
"prettier": "@demosjarco/prettier-config",
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"validator": "^13.15.0",
|
|
102
|
-
"zod": "^3.25.
|
|
102
|
+
"zod": "^3.25.20"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@cloudflare/workers-types": "^4.
|
|
106
|
-
"@types/validator": "^13.15.
|
|
105
|
+
"@cloudflare/workers-types": "^4.20250521.0",
|
|
106
|
+
"@types/validator": "^13.15.1"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "8219e1206d620aa362f76107d3f7fe21e5c913b1"
|
|
109
109
|
}
|