@chainfuse/types 2.11.9 → 2.12.1

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.
@@ -171,9 +171,10 @@ export declare const ZodImageModelValues: z4.ZodEnum<{
171
171
  "openai:dall-e-3": AiModels.ImageModels.OpenAi.dalle3;
172
172
  }>;
173
173
  export type ImageModelValues = z4.infer<typeof ZodImageModelValues>;
174
- export declare const ZodTextEmbeddingModelValues3: z3.ZodEnum<["workersai:@cf/baai/bge-m3" | "workersai:@cf/baai/bge-small-en-v1.5" | "workersai:@cf/baai/bge-base-en-v1.5" | "workersai:@cf/google/embeddinggemma-300m" | "workersai:@cf/baai/bge-large-en-v1.5" | AiModels.TextEmbeddingModels.Azure | AiModels.TextEmbeddingModels.GoogleGenerativeAi.te4 | AiModels.TextEmbeddingModels.OpenAi, ...("workersai:@cf/baai/bge-m3" | "workersai:@cf/baai/bge-small-en-v1.5" | "workersai:@cf/baai/bge-base-en-v1.5" | "workersai:@cf/google/embeddinggemma-300m" | "workersai:@cf/baai/bge-large-en-v1.5" | AiModels.TextEmbeddingModels.Azure | AiModels.TextEmbeddingModels.GoogleGenerativeAi.te4 | AiModels.TextEmbeddingModels.OpenAi)[]]>;
174
+ export declare const ZodTextEmbeddingModelValues3: z3.ZodEnum<["workersai:@cf/baai/bge-m3" | "workersai:@cf/baai/omni-bge-m3" | "workersai:@cf/baai/bge-small-en-v1.5" | "workersai:@cf/baai/bge-base-en-v1.5" | "workersai:@cf/google/embeddinggemma-300m" | "workersai:@cf/baai/bge-large-en-v1.5" | AiModels.TextEmbeddingModels.Azure | AiModels.TextEmbeddingModels.GoogleGenerativeAi.te4 | AiModels.TextEmbeddingModels.OpenAi, ...("workersai:@cf/baai/bge-m3" | "workersai:@cf/baai/omni-bge-m3" | "workersai:@cf/baai/bge-small-en-v1.5" | "workersai:@cf/baai/bge-base-en-v1.5" | "workersai:@cf/google/embeddinggemma-300m" | "workersai:@cf/baai/bge-large-en-v1.5" | AiModels.TextEmbeddingModels.Azure | AiModels.TextEmbeddingModels.GoogleGenerativeAi.te4 | AiModels.TextEmbeddingModels.OpenAi)[]]>;
175
175
  export declare const ZodTextEmbeddingModelValues: z4.ZodEnum<{
176
176
  "workersai:@cf/baai/bge-m3": "workersai:@cf/baai/bge-m3";
177
+ "workersai:@cf/baai/omni-bge-m3": "workersai:@cf/baai/omni-bge-m3";
177
178
  "workersai:@cf/baai/bge-small-en-v1.5": "workersai:@cf/baai/bge-small-en-v1.5";
178
179
  "workersai:@cf/baai/bge-base-en-v1.5": "workersai:@cf/baai/bge-base-en-v1.5";
179
180
  "workersai:@cf/google/embeddinggemma-300m": "workersai:@cf/google/embeddinggemma-300m";
@@ -815,6 +815,16 @@ export declare const workersAiCatalog: {
815
815
  readonly currency: "USD";
816
816
  }];
817
817
  };
818
+ }, {
819
+ readonly id: "e93e59ea-73d0-47dd-b0e1-469c6bda37c1";
820
+ readonly source: 1;
821
+ readonly name: "@cf/baai/omni-bge-m3";
822
+ readonly description: "Multi-Functionality, Multi-Linguality, and Multi-Granularity embeddings model.";
823
+ readonly created_at: "2025-09-01 15:23:18.431";
824
+ readonly tags: readonly [];
825
+ readonly properties: {
826
+ readonly async_queue: true;
827
+ };
818
828
  }, {
819
829
  readonly id: "57fbd08a-a4c4-411c-910d-b9459ff36c20";
820
830
  readonly source: 1;
@@ -930,6 +930,17 @@ export const workersAiCatalog = {
930
930
  ],
931
931
  },
932
932
  },
933
+ {
934
+ id: 'e93e59ea-73d0-47dd-b0e1-469c6bda37c1',
935
+ source: 1,
936
+ name: '@cf/baai/omni-bge-m3',
937
+ description: 'Multi-Functionality, Multi-Linguality, and Multi-Granularity embeddings model.',
938
+ created_at: '2025-09-01 15:23:18.431',
939
+ tags: [],
940
+ properties: {
941
+ async_queue: true,
942
+ },
943
+ },
933
944
  {
934
945
  id: '57fbd08a-a4c4-411c-910d-b9459ff36c20',
935
946
  source: 1,
@@ -1 +1,5 @@
1
1
  export type D0Blob = [number, ...number[]];
2
+ export declare enum ShardType {
3
+ Director = 0,
4
+ Storage = 1
5
+ }
package/dist/d0/index.js CHANGED
@@ -1 +1,5 @@
1
- export {};
1
+ export var ShardType;
2
+ (function (ShardType) {
3
+ ShardType[ShardType["Director"] = 0] = "Director";
4
+ ShardType[ShardType["Storage"] = 1] = "Storage";
5
+ })(ShardType || (ShardType = {}));
@@ -1,4 +1,7 @@
1
1
  import type { Buffer } from 'node:buffer';
2
+ import * as z from 'zod/mini';
3
+ import { ShardType } from '../d0/index.js';
4
+ import { DOCombinedLocations } from '../index.js';
2
5
  export type PrefixedUuid = `${'t_' | 'd_' | 'u_'}${UuidExport['utf8']}${'' | '_p'}`;
3
6
  export interface UuidExport {
4
7
  utf8: ReturnType<typeof crypto.randomUUID>;
@@ -7,6 +10,20 @@ export interface UuidExport {
7
10
  base64: string;
8
11
  base64url: string;
9
12
  }
13
+ export declare const UUIDExtract7: z.ZodMiniObject<{
14
+ date: z.ZodMiniDate<unknown>;
15
+ }, z.core.$strip>;
16
+ export declare const UUIDExtract8: z.ZodMiniObject<{
17
+ date: z.ZodMiniDate<unknown>;
18
+ location: z.ZodMiniEnum<typeof DOCombinedLocations>;
19
+ shardType: z.ZodMiniEnum<typeof ShardType>;
20
+ suffix: z.ZodMiniOptional<z.ZodMiniObject<{
21
+ hex: z.ZodMiniCustomStringFormat<"hex">;
22
+ base64: z.ZodMiniBase64;
23
+ base64url: z.ZodMiniBase64URL;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ export type UUIDExtract = z.output<typeof UUIDExtract7> | z.output<typeof UUIDExtract8>;
10
27
  export type ISODateString = `${number}-${number}-${number}T${number}:${number}:${number}.${number}Z`;
11
28
  /**
12
29
  * Represents a cron expression string (in UTC time).
package/dist/d1/index.js CHANGED
@@ -1 +1,15 @@
1
- export {};
1
+ import * as z from 'zod/mini';
2
+ import { ShardType } from '../d0/index.js';
3
+ import { DOCombinedLocations } from '../index.js';
4
+ export const UUIDExtract7 = z.object({
5
+ date: z.coerce.date(),
6
+ });
7
+ export const UUIDExtract8 = z.extend(UUIDExtract7, {
8
+ location: z.enum(DOCombinedLocations),
9
+ shardType: z.enum(ShardType),
10
+ suffix: z.optional(z.object({
11
+ hex: z.hex().check(z.length(3)),
12
+ base64: z.base64(),
13
+ base64url: z.base64url(),
14
+ })),
15
+ });
package/dist/index.d.ts CHANGED
@@ -69,4 +69,18 @@ export declare enum DOLocations {
69
69
  'Africa' = "afr",
70
70
  'Middle East' = "me"
71
71
  }
72
+ export declare enum DOCombinedLocations {
73
+ none = 0,
74
+ eu = 1,
75
+ fedramp = 2,
76
+ wnam = 10,
77
+ enam = 11,
78
+ sam = 12,
79
+ weur = 13,
80
+ eeur = 14,
81
+ apac = 15,
82
+ oc = 16,
83
+ afr = 17,
84
+ me = 18
85
+ }
72
86
  export {};
package/dist/index.js CHANGED
@@ -21,3 +21,18 @@ export var DOLocations;
21
21
  DOLocations["Africa"] = "afr";
22
22
  DOLocations["Middle East"] = "me";
23
23
  })(DOLocations || (DOLocations = {}));
24
+ export var DOCombinedLocations;
25
+ (function (DOCombinedLocations) {
26
+ DOCombinedLocations[DOCombinedLocations["none"] = 0] = "none";
27
+ DOCombinedLocations[DOCombinedLocations["eu"] = 1] = "eu";
28
+ DOCombinedLocations[DOCombinedLocations["fedramp"] = 2] = "fedramp";
29
+ DOCombinedLocations[DOCombinedLocations["wnam"] = 10] = "wnam";
30
+ DOCombinedLocations[DOCombinedLocations["enam"] = 11] = "enam";
31
+ DOCombinedLocations[DOCombinedLocations["sam"] = 12] = "sam";
32
+ DOCombinedLocations[DOCombinedLocations["weur"] = 13] = "weur";
33
+ DOCombinedLocations[DOCombinedLocations["eeur"] = 14] = "eeur";
34
+ DOCombinedLocations[DOCombinedLocations["apac"] = 15] = "apac";
35
+ DOCombinedLocations[DOCombinedLocations["oc"] = 16] = "oc";
36
+ DOCombinedLocations[DOCombinedLocations["afr"] = 17] = "afr";
37
+ DOCombinedLocations[DOCombinedLocations["me"] = 18] = "me";
38
+ })(DOCombinedLocations || (DOCombinedLocations = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "2.11.9",
3
+ "version": "2.12.1",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -98,8 +98,8 @@
98
98
  "zod": "^4.1.5"
99
99
  },
100
100
  "devDependencies": {
101
- "@cloudflare/workers-types": "^4.20250906.0",
101
+ "@cloudflare/workers-types": "^4.20250909.0",
102
102
  "@types/validator": "^13.15.3"
103
103
  },
104
- "gitHead": "cf7960f52cb435d5d305007caaf725f29c3e46b4"
104
+ "gitHead": "4259cf9c169a4aced88159526927fe52bde6d658"
105
105
  }