@chainfuse/types 2.10.18 → 2.10.20

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.
@@ -842,6 +842,16 @@ export declare const workersAiCatalog: {
842
842
  readonly currency: "USD";
843
843
  }];
844
844
  };
845
+ }, {
846
+ readonly id: "88c5e2c0-100c-40f9-86a1-ae68ff22ffa7";
847
+ readonly source: 1;
848
+ readonly name: "@cf/facebook/omni-detr-resnet-50";
849
+ readonly description: "DEtection TRansformer (DETR) model trained end-to-end on COCO 2017 object detection (118k annotated images).";
850
+ readonly created_at: "2025-05-26 22:05:25.581";
851
+ readonly tags: readonly [];
852
+ readonly properties: {
853
+ readonly beta: true;
854
+ };
845
855
  }];
846
856
  };
847
857
  readonly 'Text-to-Speech': {
@@ -965,6 +965,17 @@ export const workersAiCatalog = {
965
965
  ],
966
966
  },
967
967
  },
968
+ {
969
+ id: '88c5e2c0-100c-40f9-86a1-ae68ff22ffa7',
970
+ source: 1,
971
+ name: '@cf/facebook/omni-detr-resnet-50',
972
+ description: 'DEtection TRansformer (DETR) model trained end-to-end on COCO 2017 object detection (118k annotated images).',
973
+ created_at: '2025-05-26 22:05:25.581',
974
+ tags: [],
975
+ properties: {
976
+ beta: true,
977
+ },
978
+ },
968
979
  ],
969
980
  },
970
981
  'Text-to-Speech': {
@@ -1,14 +1,16 @@
1
+ import { z as z3 } from 'zod/v3';
2
+ import { z as z4 } from 'zod/v4';
1
3
  export type D0Blob = [number, ...number[]];
2
- export declare const PrefixedUuidRaw: import("zod/v4").ZodString;
4
+ export declare const PrefixedUuidRaw: z4.ZodString;
3
5
  /**
4
6
  * @deprecated
5
7
  */
6
- export declare const PrefixedUuid3: import("zod/v3").ZodEffects<import("zod/v3").ZodString, {
8
+ export declare const PrefixedUuid3: z3.ZodEffects<z3.ZodString, {
7
9
  type: "dataspace" | "tenant" | "user";
8
10
  value: string;
9
11
  preview: boolean;
10
12
  }, string>;
11
- export declare const PrefixedUuid: import("zod/v4").ZodPipe<import("zod/v4").ZodString, import("zod/v4").ZodTransform<{
13
+ export declare const PrefixedUuid: z4.ZodPipe<z4.ZodString, z4.ZodTransform<{
12
14
  type: "dataspace" | "tenant" | "user";
13
15
  value: string;
14
16
  preview: boolean;
@@ -16,5 +18,5 @@ export declare const PrefixedUuid: import("zod/v4").ZodPipe<import("zod/v4").Zod
16
18
  /**
17
19
  * @deprecated
18
20
  */
19
- 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]>;
20
- 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]>;
21
+ export declare const ZodUuid3: z3.ZodUnion<[z3.ZodString, z3.ZodEffects<z3.ZodString, string, string>, z3.ZodEffects<z3.ZodString, string, string>, z3.ZodString, z3.ZodString]>;
22
+ export declare const ZodUuid: z4.ZodUnion<readonly [z4.ZodString, z4.ZodUUID, z4.ZodString, z4.ZodBase64, z4.ZodBase64URL]>;
package/dist/d0/index.js CHANGED
@@ -1,20 +1,11 @@
1
+ import { z as z3 } from 'zod/v3';
2
+ import { z as z4 } from 'zod/v4';
3
+ const prefixedUuidRegex = /^((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;
1
4
  /**
2
5
  * @deprecated
3
6
  */
4
- const PrefixedUuidRaw3 = await import('zod/v3').then(({ z }) => z
5
- .string()
6
- .trim()
7
- .toLowerCase()
8
- .min(38)
9
- .max(40)
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
- export 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)));
7
+ const PrefixedUuidRaw3 = z3.string().trim().toLowerCase().min(38).max(40).regex(prefixedUuidRegex);
8
+ export const PrefixedUuidRaw = z4.string().trim().toLowerCase().min(38).max(40).regex(prefixedUuidRegex);
18
9
  /**
19
10
  * @deprecated
20
11
  */
@@ -53,36 +44,36 @@ export const PrefixedUuid = PrefixedUuidRaw.transform((value) => {
53
44
  /**
54
45
  * @deprecated
55
46
  */
56
- export const ZodUuid3 = await import('zod/v3').then(({ z }) => z.union([
47
+ export const ZodUuid3 = z3.union([
57
48
  PrefixedUuidRaw3,
58
49
  // utf-8
59
- z
50
+ z3
60
51
  .string()
61
52
  .trim()
62
53
  .toLowerCase()
63
54
  .uuid()
64
55
  .refine((value) => import('validator/es/lib/isUUID').then(({ default: isUUID }) => isUUID(value, 7)).catch(() => import('validator').then(({ default: validator }) => validator.isUUID(value, 7)))),
65
56
  // hex
66
- z
57
+ z3
67
58
  .string()
68
59
  .trim()
69
60
  .toLowerCase()
70
61
  .length(32)
71
62
  .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().base64(),
73
- z.string().trim().nonempty().base64url(),
74
- ]));
75
- export const ZodUuid = await import('zod/v4').then(({ z }) => z.union([
63
+ z3.string().trim().nonempty().base64(),
64
+ z3.string().trim().nonempty().base64url(),
65
+ ]);
66
+ export const ZodUuid = z4.union([
76
67
  PrefixedUuidRaw,
77
68
  // utf-8
78
- z.uuidv7().trim().toLowerCase(),
69
+ z4.uuidv7().trim().toLowerCase(),
79
70
  // hex
80
- z
71
+ z4
81
72
  .string()
82
73
  .trim()
83
74
  .toLowerCase()
84
75
  .length(32)
85
76
  .refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
86
- z.base64().trim().nonempty(),
87
- z.base64url().trim().nonempty(),
88
- ]));
77
+ z4.base64().trim().nonempty(),
78
+ z4.base64url().trim().nonempty(),
79
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "2.10.18",
3
+ "version": "2.10.20",
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.15",
102
- "zod": "^3.25.42"
102
+ "zod": "^3.25.49"
103
103
  },
104
104
  "devDependencies": {
105
- "@cloudflare/workers-types": "^4.20250529.0",
105
+ "@cloudflare/workers-types": "^4.20250603.0",
106
106
  "@types/validator": "^13.15.1"
107
107
  },
108
- "gitHead": "e7723806e2f740dd24652028891ddc4aa4fa0e57"
108
+ "gitHead": "932b7500502575cce5fc6751d594f14098bdd543"
109
109
  }