@chainfuse/types 2.10.8 → 2.10.9
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
CHANGED
|
@@ -69,7 +69,7 @@ export declare namespace AiModels {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
export declare const ZodLanguageModelValues: z.ZodEnum<["workersai:@cf/qwen/qwen1.5-0.5b-chat" | "workersai:@cf/google/gemma-2b-it-lora" | "workersai:@hf/nexusflow/starling-lm-7b-beta" | "workersai:@cf/meta/llama-3-8b-instruct" | "workersai:@cf/meta/llama-3.2-3b-instruct" | "workersai:@hf/thebloke/llamaguard-7b-awq" | "workersai:@hf/thebloke/neural-chat-7b-v3-1-awq" | "workersai:@cf/meta/llama-guard-3-8b" | "workersai:@cf/meta/llama-2-7b-chat-fp16" | "workersai:@cf/mistral/mistral-7b-instruct-v0.1" | "workersai:@cf/mistral/mistral-7b-instruct-v0.2-lora" | "workersai:@cf/tinyllama/tinyllama-1.1b-chat-v1.0" | "workersai:@hf/mistral/mistral-7b-instruct-v0.2" | "workersai:@cf/fblgit/una-cybertron-7b-v2-bf16" | "workersai:@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "workersai:@cf/thebloke/discolm-german-7b-v1-awq" | "workersai:@cf/meta/llama-2-7b-chat-int8" | "workersai:@cf/meta/llama-3.1-8b-instruct-fp8" | "workersai:@hf/thebloke/mistral-7b-instruct-v0.1-awq" | "workersai:@cf/qwen/qwen1.5-7b-chat-awq" | "workersai:@cf/meta/llama-3.2-1b-instruct" | "workersai:@hf/thebloke/llama-2-13b-chat-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-base-awq" | "workersai:@cf/meta-llama/llama-2-7b-chat-hf-lora" | "workersai:@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "workersai:@hf/thebloke/openhermes-2.5-mistral-7b-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-instruct-awq" | "workersai:@cf/qwen/qwen2.5-coder-32b-instruct" | "workersai:@cf/deepseek-ai/deepseek-math-7b-instruct" | "workersai:@cf/tiiuae/falcon-7b-instruct" | "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b" | "workersai:@cf/meta/llama-3.1-8b-instruct
|
|
72
|
+
export declare const ZodLanguageModelValues: z.ZodEnum<["workersai:@cf/qwen/qwen1.5-0.5b-chat" | "workersai:@cf/google/gemma-2b-it-lora" | "workersai:@hf/nexusflow/starling-lm-7b-beta" | "workersai:@cf/meta/llama-3-8b-instruct" | "workersai:@cf/meta/llama-3.2-3b-instruct" | "workersai:@hf/thebloke/llamaguard-7b-awq" | "workersai:@hf/thebloke/neural-chat-7b-v3-1-awq" | "workersai:@cf/meta/llama-guard-3-8b" | "workersai:@cf/meta/llama-2-7b-chat-fp16" | "workersai:@cf/mistral/mistral-7b-instruct-v0.1" | "workersai:@cf/mistral/mistral-7b-instruct-v0.2-lora" | "workersai:@cf/tinyllama/tinyllama-1.1b-chat-v1.0" | "workersai:@hf/mistral/mistral-7b-instruct-v0.2" | "workersai:@cf/fblgit/una-cybertron-7b-v2-bf16" | "workersai:@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "workersai:@cf/thebloke/discolm-german-7b-v1-awq" | "workersai:@cf/meta/llama-2-7b-chat-int8" | "workersai:@cf/meta/llama-3.1-8b-instruct-fp8" | "workersai:@hf/thebloke/mistral-7b-instruct-v0.1-awq" | "workersai:@cf/qwen/qwen1.5-7b-chat-awq" | "workersai:@cf/meta/llama-3.2-1b-instruct" | "workersai:@hf/thebloke/llama-2-13b-chat-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-base-awq" | "workersai:@cf/meta-llama/llama-2-7b-chat-hf-lora" | "workersai:@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "workersai:@hf/thebloke/openhermes-2.5-mistral-7b-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-instruct-awq" | "workersai:@cf/qwen/qwen2.5-coder-32b-instruct" | "workersai:@cf/deepseek-ai/deepseek-math-7b-instruct" | "workersai:@cf/tiiuae/falcon-7b-instruct" | "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b" | "workersai:@cf/meta/llama-3.1-8b-instruct-awq" | "workersai:@hf/thebloke/zephyr-7b-beta-awq" | "workersai:@cf/google/gemma-7b-it-lora" | "workersai:@cf/qwen/qwen1.5-1.8b-chat" | "workersai:@cf/mistralai/mistral-small-3.1-24b-instruct" | "workersai:@cf/meta/llama-3-8b-instruct-awq" | "workersai:@cf/meta/llama-3.2-11b-vision-instruct" | "workersai:@cf/defog/sqlcoder-7b-2" | "workersai:@cf/microsoft/phi-2" | "workersai:@hf/meta-llama/meta-llama-3-8b-instruct" | "workersai:@hf/google/gemma-7b-it" | "workersai:@cf/qwen/qwen1.5-14b-chat-awq" | "workersai:@cf/openchat/openchat-3.5-0106" | "workersai:@cf/meta/llama-4-scout-17b-16e-instruct" | "workersai:@cf/google/gemma-3-12b-it" | "workersai:@cf/qwen/qwq-32b" | AiModels.LanguageModels.Azure | AiModels.LanguageModels.Anthropic | AiModels.LanguageModels.GoogleGenerativeAi | AiModels.LanguageModels.OpenAi, ...("workersai:@cf/qwen/qwen1.5-0.5b-chat" | "workersai:@cf/google/gemma-2b-it-lora" | "workersai:@hf/nexusflow/starling-lm-7b-beta" | "workersai:@cf/meta/llama-3-8b-instruct" | "workersai:@cf/meta/llama-3.2-3b-instruct" | "workersai:@hf/thebloke/llamaguard-7b-awq" | "workersai:@hf/thebloke/neural-chat-7b-v3-1-awq" | "workersai:@cf/meta/llama-guard-3-8b" | "workersai:@cf/meta/llama-2-7b-chat-fp16" | "workersai:@cf/mistral/mistral-7b-instruct-v0.1" | "workersai:@cf/mistral/mistral-7b-instruct-v0.2-lora" | "workersai:@cf/tinyllama/tinyllama-1.1b-chat-v1.0" | "workersai:@hf/mistral/mistral-7b-instruct-v0.2" | "workersai:@cf/fblgit/una-cybertron-7b-v2-bf16" | "workersai:@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "workersai:@cf/thebloke/discolm-german-7b-v1-awq" | "workersai:@cf/meta/llama-2-7b-chat-int8" | "workersai:@cf/meta/llama-3.1-8b-instruct-fp8" | "workersai:@hf/thebloke/mistral-7b-instruct-v0.1-awq" | "workersai:@cf/qwen/qwen1.5-7b-chat-awq" | "workersai:@cf/meta/llama-3.2-1b-instruct" | "workersai:@hf/thebloke/llama-2-13b-chat-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-base-awq" | "workersai:@cf/meta-llama/llama-2-7b-chat-hf-lora" | "workersai:@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "workersai:@hf/thebloke/openhermes-2.5-mistral-7b-awq" | "workersai:@hf/thebloke/deepseek-coder-6.7b-instruct-awq" | "workersai:@cf/qwen/qwen2.5-coder-32b-instruct" | "workersai:@cf/deepseek-ai/deepseek-math-7b-instruct" | "workersai:@cf/tiiuae/falcon-7b-instruct" | "workersai:@hf/nousresearch/hermes-2-pro-mistral-7b" | "workersai:@cf/meta/llama-3.1-8b-instruct-awq" | "workersai:@hf/thebloke/zephyr-7b-beta-awq" | "workersai:@cf/google/gemma-7b-it-lora" | "workersai:@cf/qwen/qwen1.5-1.8b-chat" | "workersai:@cf/mistralai/mistral-small-3.1-24b-instruct" | "workersai:@cf/meta/llama-3-8b-instruct-awq" | "workersai:@cf/meta/llama-3.2-11b-vision-instruct" | "workersai:@cf/defog/sqlcoder-7b-2" | "workersai:@cf/microsoft/phi-2" | "workersai:@hf/meta-llama/meta-llama-3-8b-instruct" | "workersai:@hf/google/gemma-7b-it" | "workersai:@cf/qwen/qwen1.5-14b-chat-awq" | "workersai:@cf/openchat/openchat-3.5-0106" | "workersai:@cf/meta/llama-4-scout-17b-16e-instruct" | "workersai:@cf/google/gemma-3-12b-it" | "workersai:@cf/qwen/qwq-32b" | AiModels.LanguageModels.Azure | AiModels.LanguageModels.Anthropic | AiModels.LanguageModels.GoogleGenerativeAi | AiModels.LanguageModels.OpenAi)[]]>;
|
|
73
73
|
export type LanguageModelValues = z.infer<typeof ZodLanguageModelValues>;
|
|
74
74
|
export declare const ZodImageModelValues: z.ZodEnum<["workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting" | "workersai:@cf/black-forest-labs/flux-1-schnell" | "workersai:@cf/bytedance/stable-diffusion-xl-lightning" | "workersai:@cf/lykon/dreamshaper-8-lcm" | "workersai:@cf/stabilityai/stable-diffusion-xl-base-1.0" | "workersai:@cf/runwayml/stable-diffusion-v1-5-img2img" | AiModels.ImageModels.Azure | AiModels.ImageModels.GoogleGenerativeAi | AiModels.ImageModels.OpenAi, ...("workersai:@cf/runwayml/stable-diffusion-v1-5-inpainting" | "workersai:@cf/black-forest-labs/flux-1-schnell" | "workersai:@cf/bytedance/stable-diffusion-xl-lightning" | "workersai:@cf/lykon/dreamshaper-8-lcm" | "workersai:@cf/stabilityai/stable-diffusion-xl-base-1.0" | "workersai:@cf/runwayml/stable-diffusion-v1-5-img2img" | AiModels.ImageModels.Azure | AiModels.ImageModels.GoogleGenerativeAi | AiModels.ImageModels.OpenAi)[]]>;
|
|
75
75
|
export type ImageModelValues = z.infer<typeof ZodImageModelValues>;
|
|
@@ -462,26 +462,6 @@ export declare const workersAiCatalog: {
|
|
|
462
462
|
readonly function_calling: true;
|
|
463
463
|
readonly info: "https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B";
|
|
464
464
|
};
|
|
465
|
-
}, {
|
|
466
|
-
readonly id: "41975cc2-c82e-4e98-b7b8-88ffb186a545";
|
|
467
|
-
readonly source: 1;
|
|
468
|
-
readonly name: "@cf/meta/llama-3.1-8b-instruct";
|
|
469
|
-
readonly description: "The Meta Llama 3.1 collection of multilingual large language models (LLMs) is a collection of pretrained and instruction tuned generative models. The Llama 3.1 instruction tuned text only models are optimized for multilingual dialogue use cases and outperform many of the available open source and closed chat models on common industry benchmarks.";
|
|
470
|
-
readonly created_at: "2024-07-18 22:53:33.746";
|
|
471
|
-
readonly tags: readonly [];
|
|
472
|
-
readonly properties: {
|
|
473
|
-
readonly price: readonly [{
|
|
474
|
-
readonly unit: "per M input tokens";
|
|
475
|
-
readonly price: 0.28;
|
|
476
|
-
readonly currency: "USD";
|
|
477
|
-
}, {
|
|
478
|
-
readonly unit: "per M output tokens";
|
|
479
|
-
readonly price: 0.83;
|
|
480
|
-
readonly currency: "USD";
|
|
481
|
-
}];
|
|
482
|
-
readonly context_window: 7968;
|
|
483
|
-
readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE";
|
|
484
|
-
};
|
|
485
465
|
}, {
|
|
486
466
|
readonly id: "3dcb4f2d-26a8-412b-b6e3-2a368beff66b";
|
|
487
467
|
readonly source: 1;
|
|
@@ -524,30 +524,6 @@ export const workersAiCatalog = {
|
|
|
524
524
|
info: 'https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B',
|
|
525
525
|
},
|
|
526
526
|
},
|
|
527
|
-
{
|
|
528
|
-
id: '41975cc2-c82e-4e98-b7b8-88ffb186a545',
|
|
529
|
-
source: 1,
|
|
530
|
-
name: '@cf/meta/llama-3.1-8b-instruct',
|
|
531
|
-
description: 'The Meta Llama 3.1 collection of multilingual large language models (LLMs) is a collection of pretrained and instruction tuned generative models. The Llama 3.1 instruction tuned text only models are optimized for multilingual dialogue use cases and outperform many of the available open source and closed chat models on common industry benchmarks.',
|
|
532
|
-
created_at: '2024-07-18 22:53:33.746',
|
|
533
|
-
tags: [],
|
|
534
|
-
properties: {
|
|
535
|
-
price: [
|
|
536
|
-
{
|
|
537
|
-
unit: 'per M input tokens',
|
|
538
|
-
price: 0.28,
|
|
539
|
-
currency: 'USD',
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
unit: 'per M output tokens',
|
|
543
|
-
price: 0.83,
|
|
544
|
-
currency: 'USD',
|
|
545
|
-
},
|
|
546
|
-
],
|
|
547
|
-
context_window: 7968,
|
|
548
|
-
terms: 'https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE',
|
|
549
|
-
},
|
|
550
|
-
},
|
|
551
527
|
{
|
|
552
528
|
id: '3dcb4f2d-26a8-412b-b6e3-2a368beff66b',
|
|
553
529
|
source: 1,
|
package/dist/d0/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type D0Blob = [number, ...number[]];
|
|
3
|
+
export declare const PrefixedUuid: z.ZodEffects<z.ZodString, {
|
|
4
|
+
type: "dataspace" | "tenant" | "user";
|
|
5
|
+
value: string;
|
|
6
|
+
preview: boolean;
|
|
7
|
+
}, string>;
|
|
3
8
|
export declare const ZodUuid: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodString]>;
|
package/dist/d0/index.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
const PrefixedUuidRaw = z
|
|
3
|
+
.string()
|
|
4
|
+
.trim()
|
|
5
|
+
.min(38)
|
|
6
|
+
.max(40)
|
|
7
|
+
.toLowerCase()
|
|
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
|
+
export const PrefixedUuid = PrefixedUuidRaw.transform((value) => {
|
|
10
|
+
let type;
|
|
11
|
+
if (value.startsWith('d_')) {
|
|
12
|
+
type = 'dataspace';
|
|
13
|
+
}
|
|
14
|
+
else if (value.startsWith('t_')) {
|
|
15
|
+
type = 'tenant';
|
|
16
|
+
}
|
|
17
|
+
else if (value.startsWith('u_')) {
|
|
18
|
+
type = 'user';
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
throw new Error('Invalid UUID prefix');
|
|
22
|
+
}
|
|
23
|
+
return { type, value, preview: value.endsWith('_p') };
|
|
24
|
+
});
|
|
2
25
|
export const ZodUuid = z.union([
|
|
3
|
-
|
|
4
|
-
z
|
|
5
|
-
.string()
|
|
6
|
-
.trim()
|
|
7
|
-
.min(38)
|
|
8
|
-
.max(40)
|
|
9
|
-
.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)),
|
|
26
|
+
PrefixedUuidRaw,
|
|
10
27
|
// utf=8
|
|
11
28
|
z
|
|
12
29
|
.string()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"zod": "^3.24.4"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@cloudflare/workers-types": "^4.
|
|
105
|
+
"@cloudflare/workers-types": "^4.20250515.0",
|
|
106
106
|
"@types/validator": "^13.15.0"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "eef59aa71a535f0747a1de9f8ce8ed3e333cc17f"
|
|
109
109
|
}
|