@chainfuse/types 2.10.9 → 2.10.10
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/index.d.ts +93 -4
- package/dist/ai-tools/index.js +1 -1
- package/dist/d0/index.d.ts +4 -4
- package/dist/d0/index.js +6 -9
- package/dist/wf/index.d.ts +2 -2
- package/dist/wf/index.js +5 -4
- package/dist/zod/index.d.ts +1 -1
- package/dist/zod/index.js +2 -2
- package/package.json +4 -4
package/dist/ai-tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
import type { ZodCoordinate } from '../zod/index.js';
|
|
3
3
|
import { type CloudflareFunctionModelsEnum, type CloudflareModelsEnum } from './workers-ai/index.js';
|
|
4
4
|
export interface Coordinate {
|
|
@@ -69,11 +69,100 @@ export declare namespace AiModels {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
export declare const ZodLanguageModelValues: z.ZodEnum<
|
|
72
|
+
export declare const ZodLanguageModelValues: z.ZodEnum<{
|
|
73
|
+
"workersai:@cf/qwen/qwen1.5-0.5b-chat": "workersai:@cf/qwen/qwen1.5-0.5b-chat";
|
|
74
|
+
"workersai:@cf/google/gemma-2b-it-lora": "workersai:@cf/google/gemma-2b-it-lora";
|
|
75
|
+
"workersai:@hf/nexusflow/starling-lm-7b-beta": "workersai:@hf/nexusflow/starling-lm-7b-beta";
|
|
76
|
+
"workersai:@cf/meta/llama-3-8b-instruct": "workersai:@cf/meta/llama-3-8b-instruct";
|
|
77
|
+
"workersai:@cf/meta/llama-3.2-3b-instruct": "workersai:@cf/meta/llama-3.2-3b-instruct";
|
|
78
|
+
"workersai:@hf/thebloke/llamaguard-7b-awq": "workersai:@hf/thebloke/llamaguard-7b-awq";
|
|
79
|
+
"workersai:@hf/thebloke/neural-chat-7b-v3-1-awq": "workersai:@hf/thebloke/neural-chat-7b-v3-1-awq";
|
|
80
|
+
"workersai:@cf/meta/llama-guard-3-8b": "workersai:@cf/meta/llama-guard-3-8b";
|
|
81
|
+
"workersai:@cf/meta/llama-2-7b-chat-fp16": "workersai:@cf/meta/llama-2-7b-chat-fp16";
|
|
82
|
+
"workersai:@cf/mistral/mistral-7b-instruct-v0.1": "workersai:@cf/mistral/mistral-7b-instruct-v0.1";
|
|
83
|
+
"workersai:@cf/mistral/mistral-7b-instruct-v0.2-lora": "workersai:@cf/mistral/mistral-7b-instruct-v0.2-lora";
|
|
84
|
+
"workersai:@cf/tinyllama/tinyllama-1.1b-chat-v1.0": "workersai:@cf/tinyllama/tinyllama-1.1b-chat-v1.0";
|
|
85
|
+
"workersai:@hf/mistral/mistral-7b-instruct-v0.2": "workersai:@hf/mistral/mistral-7b-instruct-v0.2";
|
|
86
|
+
"workersai:@cf/fblgit/una-cybertron-7b-v2-bf16": "workersai:@cf/fblgit/una-cybertron-7b-v2-bf16";
|
|
87
|
+
"workersai:@cf/deepseek-ai/deepseek-r1-distill-qwen-32b": "workersai:@cf/deepseek-ai/deepseek-r1-distill-qwen-32b";
|
|
88
|
+
"workersai:@cf/thebloke/discolm-german-7b-v1-awq": "workersai:@cf/thebloke/discolm-german-7b-v1-awq";
|
|
89
|
+
"workersai:@cf/meta/llama-2-7b-chat-int8": "workersai:@cf/meta/llama-2-7b-chat-int8";
|
|
90
|
+
"workersai:@cf/meta/llama-3.1-8b-instruct-fp8": "workersai:@cf/meta/llama-3.1-8b-instruct-fp8";
|
|
91
|
+
"workersai:@hf/thebloke/mistral-7b-instruct-v0.1-awq": "workersai:@hf/thebloke/mistral-7b-instruct-v0.1-awq";
|
|
92
|
+
"workersai:@cf/qwen/qwen1.5-7b-chat-awq": "workersai:@cf/qwen/qwen1.5-7b-chat-awq";
|
|
93
|
+
"workersai:@cf/meta/llama-3.2-1b-instruct": "workersai:@cf/meta/llama-3.2-1b-instruct";
|
|
94
|
+
"workersai:@hf/thebloke/llama-2-13b-chat-awq": "workersai:@hf/thebloke/llama-2-13b-chat-awq";
|
|
95
|
+
"workersai:@hf/thebloke/deepseek-coder-6.7b-base-awq": "workersai:@hf/thebloke/deepseek-coder-6.7b-base-awq";
|
|
96
|
+
"workersai:@cf/meta-llama/llama-2-7b-chat-hf-lora": "workersai:@cf/meta-llama/llama-2-7b-chat-hf-lora";
|
|
97
|
+
"workersai:@cf/meta/llama-3.3-70b-instruct-fp8-fast": "workersai:@cf/meta/llama-3.3-70b-instruct-fp8-fast";
|
|
98
|
+
"workersai:@hf/thebloke/openhermes-2.5-mistral-7b-awq": "workersai:@hf/thebloke/openhermes-2.5-mistral-7b-awq";
|
|
99
|
+
"workersai:@hf/thebloke/deepseek-coder-6.7b-instruct-awq": "workersai:@hf/thebloke/deepseek-coder-6.7b-instruct-awq";
|
|
100
|
+
"workersai:@cf/qwen/qwen2.5-coder-32b-instruct": "workersai:@cf/qwen/qwen2.5-coder-32b-instruct";
|
|
101
|
+
"workersai:@cf/deepseek-ai/deepseek-math-7b-instruct": "workersai:@cf/deepseek-ai/deepseek-math-7b-instruct";
|
|
102
|
+
"workersai:@cf/tiiuae/falcon-7b-instruct": "workersai:@cf/tiiuae/falcon-7b-instruct";
|
|
103
|
+
"workersai:@hf/nousresearch/hermes-2-pro-mistral-7b": "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b";
|
|
104
|
+
"workersai:@cf/meta/llama-3.1-8b-instruct-awq": "workersai:@cf/meta/llama-3.1-8b-instruct-awq";
|
|
105
|
+
"workersai:@hf/thebloke/zephyr-7b-beta-awq": "workersai:@hf/thebloke/zephyr-7b-beta-awq";
|
|
106
|
+
"workersai:@cf/google/gemma-7b-it-lora": "workersai:@cf/google/gemma-7b-it-lora";
|
|
107
|
+
"workersai:@cf/qwen/qwen1.5-1.8b-chat": "workersai:@cf/qwen/qwen1.5-1.8b-chat";
|
|
108
|
+
"workersai:@cf/mistralai/mistral-small-3.1-24b-instruct": "workersai:@cf/mistralai/mistral-small-3.1-24b-instruct";
|
|
109
|
+
"workersai:@cf/meta/llama-3-8b-instruct-awq": "workersai:@cf/meta/llama-3-8b-instruct-awq";
|
|
110
|
+
"workersai:@cf/meta/llama-3.2-11b-vision-instruct": "workersai:@cf/meta/llama-3.2-11b-vision-instruct";
|
|
111
|
+
"workersai:@cf/defog/sqlcoder-7b-2": "workersai:@cf/defog/sqlcoder-7b-2";
|
|
112
|
+
"workersai:@cf/microsoft/phi-2": "workersai:@cf/microsoft/phi-2";
|
|
113
|
+
"workersai:@hf/meta-llama/meta-llama-3-8b-instruct": "workersai:@hf/meta-llama/meta-llama-3-8b-instruct";
|
|
114
|
+
"workersai:@hf/google/gemma-7b-it": "workersai:@hf/google/gemma-7b-it";
|
|
115
|
+
"workersai:@cf/qwen/qwen1.5-14b-chat-awq": "workersai:@cf/qwen/qwen1.5-14b-chat-awq";
|
|
116
|
+
"workersai:@cf/openchat/openchat-3.5-0106": "workersai:@cf/openchat/openchat-3.5-0106";
|
|
117
|
+
"workersai:@cf/meta/llama-4-scout-17b-16e-instruct": "workersai:@cf/meta/llama-4-scout-17b-16e-instruct";
|
|
118
|
+
"workersai:@cf/google/gemma-3-12b-it": "workersai:@cf/google/gemma-3-12b-it";
|
|
119
|
+
"workersai:@cf/qwen/qwq-32b": "workersai:@cf/qwen/qwq-32b";
|
|
120
|
+
"azure:gpt-35-turbo": AiModels.LanguageModels.Azure.gpt3;
|
|
121
|
+
"azure:gpt-4o-mini": AiModels.LanguageModels.Azure.gpt4o_mini;
|
|
122
|
+
"azure:gpt-4-turbo": AiModels.LanguageModels.Azure.gpt4;
|
|
123
|
+
"azure:gpt-4o": AiModels.LanguageModels.Azure.gpt4o;
|
|
124
|
+
"anthropic:claude-3-5-haiku-latest": AiModels.LanguageModels.Anthropic.haiku;
|
|
125
|
+
"anthropic:claude-3-5-sonnet-latest": AiModels.LanguageModels.Anthropic.sonnet;
|
|
126
|
+
"google.generative-ai:gemini-2.0-flash-lite": AiModels.LanguageModels.GoogleGenerativeAi.gemini_flash_lite;
|
|
127
|
+
"google.generative-ai:gemini-2.0-flash-lite:search": AiModels.LanguageModels.GoogleGenerativeAi.gemini_flash_lite_search;
|
|
128
|
+
"google.generative-ai:gemini-2.5-flash-preview": AiModels.LanguageModels.GoogleGenerativeAi.gemini_flash;
|
|
129
|
+
"google.generative-ai:gemini-2.5-flash-preview:search": AiModels.LanguageModels.GoogleGenerativeAi.gemini_flash_search;
|
|
130
|
+
"google.generative-ai:gemini-2.5-pro-preview": AiModels.LanguageModels.GoogleGenerativeAi.gemini_pro;
|
|
131
|
+
"google.generative-ai:gemini-2.5-pro-preview:search": AiModels.LanguageModels.GoogleGenerativeAi.gemini_pro_search;
|
|
132
|
+
"openai:gpt-3.5-turbo": AiModels.LanguageModels.OpenAi.gpt3;
|
|
133
|
+
"openai:gpt-4o-mini": AiModels.LanguageModels.OpenAi.gpt4o_mini;
|
|
134
|
+
"openai:o1-mini": AiModels.LanguageModels.OpenAi.o1_mini;
|
|
135
|
+
"openai:gpt-4-turbo": AiModels.LanguageModels.OpenAi.gpt4;
|
|
136
|
+
"openai:gpt-4o": AiModels.LanguageModels.OpenAi.gpt4o;
|
|
137
|
+
"openai:o1-preview": AiModels.LanguageModels.OpenAi.o1;
|
|
138
|
+
}>;
|
|
73
139
|
export type LanguageModelValues = z.infer<typeof ZodLanguageModelValues>;
|
|
74
|
-
export declare const ZodImageModelValues: z.ZodEnum<
|
|
140
|
+
export declare const ZodImageModelValues: z.ZodEnum<{
|
|
141
|
+
"workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting": "workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting";
|
|
142
|
+
"workersai:@cf/black-forest-labs/flux-1-schnell": "workersai:@cf/black-forest-labs/flux-1-schnell";
|
|
143
|
+
"workersai:@cf/bytedance/stable-diffusion-xl-lightning": "workersai:@cf/bytedance/stable-diffusion-xl-lightning";
|
|
144
|
+
"workersai:@cf/lykon/dreamshaper-8-lcm": "workersai:@cf/lykon/dreamshaper-8-lcm";
|
|
145
|
+
"workersai:@cf/stabilityai/stable-diffusion-xl-base-1.0": "workersai:@cf/stabilityai/stable-diffusion-xl-base-1.0";
|
|
146
|
+
"workersai:@cf/runwayml/stable-diffusion-v1-5-img2img": "workersai:@cf/runwayml/stable-diffusion-v1-5-img2img";
|
|
147
|
+
"azure:dall-e-3": AiModels.ImageModels.Azure.dalle3;
|
|
148
|
+
"azure:dall-e-2": AiModels.ImageModels.Azure.dalle2;
|
|
149
|
+
"google.generative-ai:imagen-3.0-generate-002": AiModels.ImageModels.GoogleGenerativeAi.imagen;
|
|
150
|
+
"google.generative-ai:imagen-3.0-fast-generate-001": AiModels.ImageModels.GoogleGenerativeAi.imagen_fast;
|
|
151
|
+
"openai:dall-e-3": AiModels.ImageModels.OpenAi.dalle3;
|
|
152
|
+
"openai:dall-e-2": AiModels.ImageModels.OpenAi.dalle2;
|
|
153
|
+
}>;
|
|
75
154
|
export type ImageModelValues = z.infer<typeof ZodImageModelValues>;
|
|
76
|
-
export declare const ZodTextEmbeddingModelValues: z.ZodEnum<
|
|
155
|
+
export declare const ZodTextEmbeddingModelValues: z.ZodEnum<{
|
|
156
|
+
"workersai:@cf/baai/bge-m3": "workersai:@cf/baai/bge-m3";
|
|
157
|
+
"workersai:@cf/baai/bge-small-en-v1.5": "workersai:@cf/baai/bge-small-en-v1.5";
|
|
158
|
+
"workersai:@cf/baai/bge-base-en-v1.5": "workersai:@cf/baai/bge-base-en-v1.5";
|
|
159
|
+
"workersai:@cf/baai/bge-large-en-v1.5": "workersai:@cf/baai/bge-large-en-v1.5";
|
|
160
|
+
"azure:text-embedding-3-large": AiModels.TextEmbeddingModels.Azure.te3_large;
|
|
161
|
+
"azure:text-embedding-3-small": AiModels.TextEmbeddingModels.Azure.te3_small;
|
|
162
|
+
"google.generative-ai:text-embedding-004": AiModels.TextEmbeddingModels.GoogleGenerativeAi.te4;
|
|
163
|
+
"openai:text-embedding-3-large": AiModels.TextEmbeddingModels.OpenAi.te3_large;
|
|
164
|
+
"openai:text-embedding-3-small": AiModels.TextEmbeddingModels.OpenAi.te3_small;
|
|
165
|
+
}>;
|
|
77
166
|
export type TextEmbeddingModelValues = z.infer<typeof ZodTextEmbeddingModelValues>;
|
|
78
167
|
export declare const default_mc_generic: LanguageModelValues;
|
|
79
168
|
export declare const default_mc_summary: LanguageModelValues;
|
package/dist/ai-tools/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
import { enabledCloudflareLlmEmbeddingProviders, enabledCloudflareLlmFunctionProviders, enabledCloudflareLlmImageProviders, enabledCloudflareLlmProviders } from './workers-ai/index.js';
|
|
3
3
|
export var AiModels;
|
|
4
4
|
(function (AiModels) {
|
package/dist/d0/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
export type D0Blob = [number, ...number[]];
|
|
3
|
-
export declare const PrefixedUuid: z.
|
|
3
|
+
export declare const PrefixedUuid: z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
4
4
|
type: "dataspace" | "tenant" | "user";
|
|
5
5
|
value: string;
|
|
6
6
|
preview: boolean;
|
|
7
|
-
}, string
|
|
8
|
-
export declare const ZodUuid: z.ZodUnion<[z.ZodString, z.
|
|
7
|
+
}, string>>;
|
|
8
|
+
export declare const ZodUuid: z.ZodUnion<readonly [z.ZodString, z.ZodUUID, z.ZodString, z.ZodBase64, z.ZodBase64URL]>;
|
package/dist/d0/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
const PrefixedUuidRaw = z
|
|
3
3
|
.string()
|
|
4
4
|
.trim()
|
|
5
|
+
.toLowerCase()
|
|
5
6
|
.min(38)
|
|
6
7
|
.max(40)
|
|
7
|
-
.toLowerCase()
|
|
8
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));
|
|
9
9
|
export const PrefixedUuid = PrefixedUuidRaw.transform((value) => {
|
|
10
10
|
let type;
|
|
@@ -25,17 +25,14 @@ export const PrefixedUuid = PrefixedUuidRaw.transform((value) => {
|
|
|
25
25
|
export const ZodUuid = z.union([
|
|
26
26
|
PrefixedUuidRaw,
|
|
27
27
|
// utf=8
|
|
28
|
-
z
|
|
29
|
-
.string()
|
|
30
|
-
.trim()
|
|
31
|
-
.uuid()
|
|
32
|
-
.refine((value) => import('validator/es/lib/isUUID').then(({ default: isUUID }) => isUUID(value, 7)).catch(() => import('validator').then(({ default: validator }) => validator.isUUID(value, 7)))),
|
|
28
|
+
z.uuidv7().trim().toLowerCase(),
|
|
33
29
|
// hex
|
|
34
30
|
z
|
|
35
31
|
.string()
|
|
36
32
|
.trim()
|
|
33
|
+
.toLowerCase()
|
|
37
34
|
.length(32)
|
|
38
35
|
.refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
|
|
39
|
-
z.
|
|
40
|
-
z.
|
|
36
|
+
z.base64().trim().nonempty().toLowerCase(),
|
|
37
|
+
z.base64url().trim().nonempty().toLowerCase(),
|
|
41
38
|
]);
|
package/dist/wf/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ZodUuidExportInput: z.ZodUnion<[z.ZodString, z.
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const ZodUuidExportInput: z.ZodUnion<readonly [z.ZodString, z.ZodUUID, z.ZodString, z.ZodBase64, z.ZodBase64URL]>;
|
package/dist/wf/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
2
|
export const ZodUuidExportInput = z.union([
|
|
3
3
|
// PrefixedUuid
|
|
4
4
|
z
|
|
@@ -8,13 +8,14 @@ export const ZodUuidExportInput = z.union([
|
|
|
8
8
|
.max(40)
|
|
9
9
|
.regex(new RegExp(/^((d|t|u)_)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(_p)?$/i)),
|
|
10
10
|
// utf=8
|
|
11
|
-
z.
|
|
11
|
+
z.uuid().trim().toLowerCase(),
|
|
12
12
|
// hex
|
|
13
13
|
z
|
|
14
14
|
.string()
|
|
15
15
|
.trim()
|
|
16
|
+
.toLowerCase()
|
|
16
17
|
.length(32)
|
|
17
18
|
.refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
|
|
18
|
-
z.
|
|
19
|
-
z.
|
|
19
|
+
z.base64().trim().nonempty().toLowerCase(),
|
|
20
|
+
z.base64url().trim().nonempty().toLowerCase(),
|
|
20
21
|
]);
|
package/dist/zod/index.d.ts
CHANGED
package/dist/zod/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
const literalSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
6
6
|
export const jsonSchema = z.lazy(() => z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)]));
|
|
7
|
-
export const ZodCoordinate = z
|
|
7
|
+
export const ZodCoordinate = await import('zod/v4').then(({ z }) => z
|
|
8
8
|
.string()
|
|
9
9
|
.trim()
|
|
10
10
|
.min(3)
|
|
11
|
-
.regex(new RegExp(/^-?\d+\.\d+$/i));
|
|
11
|
+
.regex(new RegExp(/^-?\d+\.\d+$/i)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.10",
|
|
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.
|
|
102
|
+
"zod": "^3.25.7"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@cloudflare/workers-types": "^4.
|
|
105
|
+
"@cloudflare/workers-types": "^4.20250520.0",
|
|
106
106
|
"@types/validator": "^13.15.0"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "b5d775fa16d56df8df0548d457407eb590379ec1"
|
|
109
109
|
}
|