@chainfuse/types 3.0.6 → 3.0.8

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.
@@ -170,7 +170,6 @@ export declare const ZodImageModelValues: z.ZodMiniEnum<{
170
170
  export type ImageModelValues = z.infer<typeof ZodImageModelValues>;
171
171
  export declare const ZodTextEmbeddingModelValues: z.ZodMiniEnum<{
172
172
  "workersai:@cf/baai/bge-m3": "workersai:@cf/baai/bge-m3";
173
- "workersai:@cf/baai/omni-bge-m3": "workersai:@cf/baai/omni-bge-m3";
174
173
  "workersai:@cf/baai/bge-small-en-v1.5": "workersai:@cf/baai/bge-small-en-v1.5";
175
174
  "workersai:@cf/baai/bge-base-en-v1.5": "workersai:@cf/baai/bge-base-en-v1.5";
176
175
  "workersai:@cf/google/embeddinggemma-300m": "workersai:@cf/google/embeddinggemma-300m";
@@ -815,16 +815,6 @@ 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
- };
828
818
  }, {
829
819
  readonly id: "57fbd08a-a4c4-411c-910d-b9459ff36c20";
830
820
  readonly source: 1;
@@ -930,17 +930,6 @@ 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
- },
944
933
  {
945
934
  id: '57fbd08a-a4c4-411c-910d-b9459ff36c20',
946
935
  source: 1,
@@ -1,11 +1,16 @@
1
- import type { util, infer as zInfer, ZodMiniJSONSchema, ZodMiniObject, ZodMiniOptional } from 'zod/mini';
1
+ import type { output, infer as zInfer, ZodMiniJSONSchema, ZodMiniObject, ZodMiniOptional } from 'zod/mini';
2
2
  import * as z from 'zod/mini';
3
- export type ZodPick<T extends ZodMiniObject> = util.Mask<keyof T['shape']>;
3
+ export type ZodPick<O extends ZodMiniObject> = Partial<Record<keyof output<O>, boolean>>;
4
+ export type ZodPickedKeys<P extends ZodPick<O>, O extends ZodMiniObject> = Extract<{
5
+ [K in keyof P]: P[K] extends true ? K : never;
6
+ }[keyof P], keyof output<O>>;
4
7
  export type ZodPartial<T extends ZodMiniObject> = ZodMiniObject<{
5
8
  [k in keyof T['shape']]: ZodMiniOptional<T['shape'][k]>;
6
9
  }, T['_zod']['config']>;
7
10
  export type JSON = zInfer<ZodMiniJSONSchema>;
8
11
  export declare const ZodCoordinate: z.ZodMiniString<string>;
12
+ export declare const WorkflowId: z.ZodMiniString<string>;
13
+ export declare const DoId: z.ZodMiniCustomStringFormat<"hex">;
9
14
  export declare const PrefixedUuidRaw: z.ZodMiniString<string>;
10
15
  export declare const PrefixedUuid7Raw: z.ZodMiniString<string>;
11
16
  export declare const PrefixedUuid8Raw: z.ZodMiniString<string>;
package/dist/zod/index.js CHANGED
@@ -1,5 +1,11 @@
1
1
  import * as z from 'zod/mini';
2
2
  export const ZodCoordinate = z.string().check(z.trim(), z.minLength(3), z.regex(new RegExp(/^-?\d+\.\d+$/i)));
3
+ export const WorkflowId = z.string().check(z.trim(), z.maxLength(64),
4
+ /**
5
+ * @link https://developers.cloudflare.com/workflows/reference/limits/
6
+ */
7
+ z.regex(/^[a-zA-Z0-9_][a-zA-Z0-9-_]*$/));
8
+ export const DoId = z.hex().check(z.trim(), z.length(64), z.toLowerCase());
3
9
  const prefixedUuidRegex = /^((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;
4
10
  const hexUuidRegex = /^[0-9a-f]{8}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{12}$/i;
5
11
  const hexUuid4Regex = /^[0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[0-9a-f]{4}[0-9a-f]{12}$/i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
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.8"
99
99
  },
100
100
  "devDependencies": {
101
- "@cloudflare/workers-types": "^4.20250910.0",
101
+ "@cloudflare/workers-types": "^4.20250913.0",
102
102
  "@types/validator": "^13.15.3"
103
103
  },
104
- "gitHead": "eec909dcd19b90bf4a87bf4e33d5c2be1326c83c"
104
+ "gitHead": "3bcadb3f4996a6725b5530d2dccd72dd0681c6b8"
105
105
  }