@chainfuse/types 4.2.7 → 4.2.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.
@@ -860,6 +860,7 @@ export declare const workersAiCatalog: {
860
860
  readonly created_at: "2025-06-18 20:23:22.086";
861
861
  readonly tags: readonly [];
862
862
  readonly properties: {
863
+ readonly context_window: 8192;
863
864
  readonly price: readonly [{
864
865
  readonly unit: "per M input tokens";
865
866
  readonly price: 0.012;
@@ -985,6 +985,7 @@ export const workersAiCatalog = {
985
985
  created_at: '2025-06-18 20:23:22.086',
986
986
  tags: [],
987
987
  properties: {
988
+ context_window: 8192,
988
989
  price: [
989
990
  {
990
991
  unit: 'per M input tokens',
@@ -24,7 +24,11 @@ export declare enum D0CombinedLocations {
24
24
  }
25
25
  export declare enum D0ShardType {
26
26
  None = 0,
27
- Storage = 1
27
+ Storage = 1,
28
+ Scheduler = 2,
29
+ MCP = 3,
30
+ EphemeralAgent = 4,
31
+ Session = 5
28
32
  }
29
33
  export declare enum D0Environment {
30
34
  Production = 0,
package/dist/d0/index.js CHANGED
@@ -28,6 +28,10 @@ export var D0ShardType;
28
28
  (function (D0ShardType) {
29
29
  D0ShardType[D0ShardType["None"] = 0] = "None";
30
30
  D0ShardType[D0ShardType["Storage"] = 1] = "Storage";
31
+ D0ShardType[D0ShardType["Scheduler"] = 2] = "Scheduler";
32
+ D0ShardType[D0ShardType["MCP"] = 3] = "MCP";
33
+ D0ShardType[D0ShardType["EphemeralAgent"] = 4] = "EphemeralAgent";
34
+ D0ShardType[D0ShardType["Session"] = 5] = "Session";
31
35
  })(D0ShardType || (D0ShardType = {}));
32
36
  export var D0Environment;
33
37
  (function (D0Environment) {
@@ -3,7 +3,7 @@ export type JSON = z4.infer<z4.ZodJSONSchema>;
3
3
  export declare const WorkflowId: z4.ZodString;
4
4
  export declare const DoId: z4.ZodCustomStringFormat<"hex">;
5
5
  export declare const ZodCoordinate: z4.ZodString;
6
- export declare const ZodBlob: z4.ZodUnion<readonly [z4.ZodPipe<z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z4.ZodTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, z4.ZodPipe<z4.ZodPipe<z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodTransform<ArrayBuffer | SharedArrayBuffer, ArrayBuffer>>, z4.ZodTransform<Uint8Array<ArrayBuffer | SharedArrayBuffer>, ArrayBuffer | SharedArrayBuffer>>, z4.ZodPipe<z4.ZodTuple<[z4.ZodInt], z4.ZodInt>, z4.ZodTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>;
6
+ export declare const ZodBlob: z4.ZodUnion<readonly [z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z4.ZodPipe<z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z4.ZodPipe<z4.ZodTuple<[z4.ZodInt], z4.ZodInt>, z4.ZodTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>;
7
7
  export declare const ZodBlobExport: z4.ZodPipe<z4.ZodTuple<[z4.ZodInt], z4.ZodInt>, z4.ZodTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>;
8
8
  export declare const PrefixedUuidRaw: z4.ZodString;
9
9
  export declare const PrefixedUuid7Raw: z4.ZodString;
@@ -26,4 +26,4 @@ export declare const Zod4FakeUuidExport: z4.ZodObject<{
26
26
  base64: z4.ZodBase64;
27
27
  base64url: z4.ZodBase64URL;
28
28
  }, z4.z.core.$strip>;
29
- export declare const ZodSuruId: z4.ZodUnion<readonly [z4.ZodCustomStringFormat<"hex">, z4.ZodBase64, z4.ZodBase64URL]>;
29
+ export declare const ZodSuruId: z4.ZodUnion<readonly [z4.ZodCustomStringFormat<"hex">, z4.ZodUnion<readonly [z4.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z4.ZodPipe<z4.ZodCustom<ArrayBuffer, ArrayBuffer>, z4.ZodTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z4.ZodPipe<z4.ZodTuple<[z4.ZodInt], z4.ZodInt>, z4.ZodTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z4.ZodBase64, z4.ZodBase64URL]>;
@@ -16,12 +16,9 @@ export const ZodCoordinate = z4
16
16
  .regex(new RegExp(/^-?\d+\.\d+$/i));
17
17
  export const ZodBlob = z4.union([
18
18
  // Uint8Array
19
- z4.instanceof(Uint8Array).transform((ui8a) => ui8a),
19
+ z4.instanceof(Uint8Array),
20
20
  // ArrayBuffer
21
- z4
22
- .instanceof(ArrayBuffer)
23
- .transform((ab) => ab)
24
- .transform((abl) => new Uint8Array(abl)),
21
+ z4.instanceof(ArrayBuffer).transform((abl) => new Uint8Array(abl)),
25
22
  // D0Blob
26
23
  z4.tuple([z4.int().min(0).max(255)], z4.int().min(0).max(255)).transform((arr) => new Uint8Array(arr)),
27
24
  ]);
@@ -95,6 +92,7 @@ export const Zod4FakeUuidExport = z4.object({
95
92
  export const ZodSuruId = z4.union([
96
93
  //
97
94
  z4.hex().trim().toLowerCase().length(96),
95
+ ZodBlob.refine((blob) => blob.byteLength === 384 / 8),
98
96
  z4.base64().trim().max(64),
99
97
  z4.base64url().trim().max(64),
100
98
  ]);
@@ -10,7 +10,7 @@ export type JSON = zm.infer<zm.ZodMiniJSONSchema>;
10
10
  export declare const WorkflowId: zm.ZodMiniString<string>;
11
11
  export declare const DoId: zm.ZodMiniCustomStringFormat<"hex">;
12
12
  export declare const ZodCoordinate: zm.ZodMiniString<string>;
13
- export declare const ZodBlob: zm.ZodMiniUnion<readonly [zm.ZodMiniPipe<zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, zm.ZodMiniPipe<zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<ArrayBufferLike, ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, ArrayBufferLike>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, [number, ...number[]]>>]>;
13
+ export declare const ZodBlob: zm.ZodMiniUnion<readonly [zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>;
14
14
  export declare const ZodBlobExport: zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>;
15
15
  export declare const prefixedUuidRegex: RegExp;
16
16
  export declare const hexUuidRegex: RegExp;
@@ -38,4 +38,4 @@ export declare const Zod4FakeUuidExport: zm.ZodMiniObject<{
38
38
  base64: zm.ZodMiniBase64;
39
39
  base64url: zm.ZodMiniBase64URL;
40
40
  }, zm.z.core.$strip>;
41
- export declare const ZodSuruId: zm.ZodMiniUnion<readonly [zm.ZodMiniCustomStringFormat<"hex">, zm.ZodMiniUnion<readonly [zm.ZodMiniPipe<zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBuffer>>>, zm.ZodMiniPipe<zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<ArrayBufferLike, ArrayBuffer>>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, ArrayBufferLike>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBufferLike>, [number, ...number[]]>>]>, zm.ZodMiniBase64, zm.ZodMiniBase64URL]>;
41
+ export declare const ZodSuruId: zm.ZodMiniUnion<readonly [zm.ZodMiniCustomStringFormat<"hex">, zm.ZodMiniUnion<readonly [zm.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, zm.ZodMiniPipe<zm.ZodMiniTuple<readonly [zm.ZodMiniNumberFormat], zm.ZodMiniNumberFormat>, zm.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, zm.ZodMiniBase64, zm.ZodMiniBase64URL]>;
@@ -8,9 +8,9 @@ export const DoId = zm.hex().check(zm.trim(), zm.length(64), zm.toLowerCase());
8
8
  export const ZodCoordinate = zm.string().check(zm.trim(), zm.minLength(3), zm.regex(new RegExp(/^-?\d+\.\d+$/i)));
9
9
  export const ZodBlob = zm.union([
10
10
  // Uint8Array
11
- zm.pipe(zm.instanceof(Uint8Array), zm.transform((ui8a) => ui8a)),
11
+ zm.instanceof(Uint8Array),
12
12
  // ArrayBuffer
13
- zm.pipe(zm.pipe(zm.instanceof(ArrayBuffer), zm.transform((ab) => ab)), zm.transform((abl) => new Uint8Array(abl))),
13
+ zm.pipe(zm.instanceof(ArrayBuffer), zm.transform((abl) => new Uint8Array(abl))),
14
14
  // D0Blob
15
15
  zm.pipe(zm.tuple([zm.int().check(zm.minimum(0), zm.maximum(255))], zm.int().check(zm.minimum(0), zm.maximum(255))), zm.transform((arr) => new Uint8Array(arr))),
16
16
  ]);
@@ -89,7 +89,7 @@ export const Zod4FakeUuidExport = zm.object({
89
89
  export const ZodSuruId = zm.union([
90
90
  //
91
91
  zm.hex().check(zm.trim(), zm.toLowerCase(), zm.length(96)),
92
- ZodBlob,
92
+ ZodBlob.check(zm.refine((blob) => blob.byteLength === 384 / 8)),
93
93
  zm.base64().check(zm.trim(), zm.maxLength(64)),
94
94
  zm.base64url().check(zm.trim(), zm.maxLength(64)),
95
95
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "4.2.7",
3
+ "version": "4.2.9",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -101,5 +101,5 @@
101
101
  "@cloudflare/workers-types": "^4.20260120.0",
102
102
  "@types/validator": "^13.15.10"
103
103
  },
104
- "gitHead": "f3f640cdfb107c1eb2a7dfca285571f11866d1b1"
104
+ "gitHead": "663e28a42038883bb7bd65b55bf7d0f7772e0a7b"
105
105
  }