@chainfuse/types 2.2.2 → 2.3.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.
- package/dist/ai-tools/workers-ai/catalog.d.ts +64 -25
- package/dist/ai-tools/workers-ai/catalog.js +69 -25
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/wf/index.js +1 -2
- package/package.json +3 -3
|
@@ -52,10 +52,12 @@ export declare const workersAiCatalog: {
|
|
|
52
52
|
readonly properties: {
|
|
53
53
|
readonly price: readonly [{
|
|
54
54
|
readonly unit: "per M input tokens";
|
|
55
|
-
readonly price:
|
|
55
|
+
readonly price: 0.28;
|
|
56
|
+
readonly currency: "USD";
|
|
56
57
|
}, {
|
|
57
58
|
readonly unit: "per M output tokens";
|
|
58
|
-
readonly price:
|
|
59
|
+
readonly price: 0.83;
|
|
60
|
+
readonly currency: "USD";
|
|
59
61
|
}];
|
|
60
62
|
readonly context_window: 7968;
|
|
61
63
|
readonly info: "https://llama.meta.com";
|
|
@@ -71,10 +73,12 @@ export declare const workersAiCatalog: {
|
|
|
71
73
|
readonly properties: {
|
|
72
74
|
readonly price: readonly [{
|
|
73
75
|
readonly unit: "per M input tokens";
|
|
74
|
-
readonly price:
|
|
76
|
+
readonly price: 0.051;
|
|
77
|
+
readonly currency: "USD";
|
|
75
78
|
}, {
|
|
76
79
|
readonly unit: "per M output tokens";
|
|
77
|
-
readonly price:
|
|
80
|
+
readonly price: 0.34;
|
|
81
|
+
readonly currency: "USD";
|
|
78
82
|
}];
|
|
79
83
|
readonly context_window: 128000;
|
|
80
84
|
readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE";
|
|
@@ -111,10 +115,12 @@ export declare const workersAiCatalog: {
|
|
|
111
115
|
readonly properties: {
|
|
112
116
|
readonly price: readonly [{
|
|
113
117
|
readonly unit: "per M input tokens";
|
|
114
|
-
readonly price:
|
|
118
|
+
readonly price: 0.48;
|
|
119
|
+
readonly currency: "USD";
|
|
115
120
|
}, {
|
|
116
121
|
readonly unit: "per M output tokens";
|
|
117
|
-
readonly price:
|
|
122
|
+
readonly price: 0.03;
|
|
123
|
+
readonly currency: "USD";
|
|
118
124
|
}];
|
|
119
125
|
};
|
|
120
126
|
}, {
|
|
@@ -204,10 +210,12 @@ export declare const workersAiCatalog: {
|
|
|
204
210
|
readonly properties: {
|
|
205
211
|
readonly price: readonly [{
|
|
206
212
|
readonly unit: "per M input tokens";
|
|
207
|
-
readonly price:
|
|
213
|
+
readonly price: 0.5;
|
|
214
|
+
readonly currency: "USD";
|
|
208
215
|
}, {
|
|
209
216
|
readonly unit: "per M output tokens";
|
|
210
|
-
readonly price:
|
|
217
|
+
readonly price: 4.88;
|
|
218
|
+
readonly currency: "USD";
|
|
211
219
|
}];
|
|
212
220
|
readonly terms: "https://github.com/deepseek-ai/DeepSeek-R1/blob/main/LICENSE";
|
|
213
221
|
};
|
|
@@ -243,10 +251,12 @@ export declare const workersAiCatalog: {
|
|
|
243
251
|
readonly properties: {
|
|
244
252
|
readonly price: readonly [{
|
|
245
253
|
readonly unit: "per M input tokens";
|
|
246
|
-
readonly price:
|
|
254
|
+
readonly price: 0.15;
|
|
255
|
+
readonly currency: "USD";
|
|
247
256
|
}, {
|
|
248
257
|
readonly unit: "per M output tokens";
|
|
249
|
-
readonly price:
|
|
258
|
+
readonly price: 0.29;
|
|
259
|
+
readonly currency: "USD";
|
|
250
260
|
}];
|
|
251
261
|
readonly context_window: 32000;
|
|
252
262
|
readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE";
|
|
@@ -285,10 +295,12 @@ export declare const workersAiCatalog: {
|
|
|
285
295
|
readonly properties: {
|
|
286
296
|
readonly price: readonly [{
|
|
287
297
|
readonly unit: "per M input tokens";
|
|
288
|
-
readonly price:
|
|
298
|
+
readonly price: 0.027;
|
|
299
|
+
readonly currency: "USD";
|
|
289
300
|
}, {
|
|
290
301
|
readonly unit: "per M output tokens";
|
|
291
|
-
readonly price:
|
|
302
|
+
readonly price: 0.2;
|
|
303
|
+
readonly currency: "USD";
|
|
292
304
|
}];
|
|
293
305
|
readonly context_window: 60000;
|
|
294
306
|
readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE";
|
|
@@ -339,10 +351,12 @@ export declare const workersAiCatalog: {
|
|
|
339
351
|
readonly properties: {
|
|
340
352
|
readonly price: readonly [{
|
|
341
353
|
readonly unit: "per M input tokens";
|
|
342
|
-
readonly price:
|
|
354
|
+
readonly price: 0.29;
|
|
355
|
+
readonly currency: "USD";
|
|
343
356
|
}, {
|
|
344
357
|
readonly unit: "per M output tokens";
|
|
345
|
-
readonly price:
|
|
358
|
+
readonly price: 2.25;
|
|
359
|
+
readonly currency: "USD";
|
|
346
360
|
}];
|
|
347
361
|
readonly context_window: 24000;
|
|
348
362
|
readonly function_calling: true;
|
|
@@ -419,10 +433,12 @@ export declare const workersAiCatalog: {
|
|
|
419
433
|
readonly properties: {
|
|
420
434
|
readonly price: readonly [{
|
|
421
435
|
readonly unit: "per M input tokens";
|
|
422
|
-
readonly price:
|
|
436
|
+
readonly price: 0.28;
|
|
437
|
+
readonly currency: "USD";
|
|
423
438
|
}, {
|
|
424
439
|
readonly unit: "per M output tokens";
|
|
425
|
-
readonly price:
|
|
440
|
+
readonly price: 0.83;
|
|
441
|
+
readonly currency: "USD";
|
|
426
442
|
}];
|
|
427
443
|
readonly context_window: 7968;
|
|
428
444
|
readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE";
|
|
@@ -437,10 +453,12 @@ export declare const workersAiCatalog: {
|
|
|
437
453
|
readonly properties: {
|
|
438
454
|
readonly price: readonly [{
|
|
439
455
|
readonly unit: "per M input tokens";
|
|
440
|
-
readonly price:
|
|
456
|
+
readonly price: 0.12;
|
|
457
|
+
readonly currency: "USD";
|
|
441
458
|
}, {
|
|
442
459
|
readonly unit: "per M output tokens";
|
|
443
|
-
readonly price:
|
|
460
|
+
readonly price: 0.27;
|
|
461
|
+
readonly currency: "USD";
|
|
444
462
|
}];
|
|
445
463
|
readonly context_window: 8192;
|
|
446
464
|
readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE";
|
|
@@ -491,10 +509,12 @@ export declare const workersAiCatalog: {
|
|
|
491
509
|
readonly properties: {
|
|
492
510
|
readonly price: readonly [{
|
|
493
511
|
readonly unit: "per M input tokens";
|
|
494
|
-
readonly price:
|
|
512
|
+
readonly price: 0.12;
|
|
513
|
+
readonly currency: "USD";
|
|
495
514
|
}, {
|
|
496
515
|
readonly unit: "per M output tokens";
|
|
497
|
-
readonly price:
|
|
516
|
+
readonly price: 0.27;
|
|
517
|
+
readonly currency: "USD";
|
|
498
518
|
}];
|
|
499
519
|
readonly context_window: 8192;
|
|
500
520
|
readonly info: "https://llama.meta.com";
|
|
@@ -510,10 +530,12 @@ export declare const workersAiCatalog: {
|
|
|
510
530
|
readonly properties: {
|
|
511
531
|
readonly price: readonly [{
|
|
512
532
|
readonly unit: "per M input tokens";
|
|
513
|
-
readonly price:
|
|
533
|
+
readonly price: 0.049;
|
|
534
|
+
readonly currency: "USD";
|
|
514
535
|
}, {
|
|
515
536
|
readonly unit: "per M output tokens";
|
|
516
|
-
readonly price:
|
|
537
|
+
readonly price: 0.68;
|
|
538
|
+
readonly currency: "USD";
|
|
517
539
|
}];
|
|
518
540
|
readonly terms: "https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE";
|
|
519
541
|
};
|
|
@@ -602,7 +624,13 @@ export declare const workersAiCatalog: {
|
|
|
602
624
|
readonly description: "Multi-Functionality, Multi-Linguality, and Multi-Granularity embeddings model.";
|
|
603
625
|
readonly created_at: "2024-05-22 19:27:09.781";
|
|
604
626
|
readonly tags: readonly [];
|
|
605
|
-
readonly properties: {
|
|
627
|
+
readonly properties: {
|
|
628
|
+
readonly price: readonly [{
|
|
629
|
+
readonly unit: "per M input tokens";
|
|
630
|
+
readonly price: 0.012;
|
|
631
|
+
readonly currency: "USD";
|
|
632
|
+
}];
|
|
633
|
+
};
|
|
606
634
|
}, {
|
|
607
635
|
readonly id: "57fbd08a-a4c4-411c-910d-b9459ff36c20";
|
|
608
636
|
readonly source: 1;
|
|
@@ -730,7 +758,8 @@ export declare const workersAiCatalog: {
|
|
|
730
758
|
readonly properties: {
|
|
731
759
|
readonly price: readonly [{
|
|
732
760
|
readonly unit: "per audio minute";
|
|
733
|
-
readonly price:
|
|
761
|
+
readonly price: 0.00051;
|
|
762
|
+
readonly currency: "USD";
|
|
734
763
|
}];
|
|
735
764
|
};
|
|
736
765
|
}];
|
|
@@ -783,7 +812,17 @@ export declare const workersAiCatalog: {
|
|
|
783
812
|
readonly description: "FLUX.1 [schnell] is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. ";
|
|
784
813
|
readonly created_at: "2024-08-29 16:37:39.541";
|
|
785
814
|
readonly tags: readonly [];
|
|
786
|
-
readonly properties: {
|
|
815
|
+
readonly properties: {
|
|
816
|
+
readonly price: readonly [{
|
|
817
|
+
readonly unit: "per 512 by 512 tile";
|
|
818
|
+
readonly price: 0.000053;
|
|
819
|
+
readonly currency: "USD";
|
|
820
|
+
}, {
|
|
821
|
+
readonly unit: "per step";
|
|
822
|
+
readonly price: 0.00011;
|
|
823
|
+
readonly currency: "USD";
|
|
824
|
+
}];
|
|
825
|
+
};
|
|
787
826
|
}, {
|
|
788
827
|
readonly id: "7f797b20-3eb0-44fd-b571-6cbbaa3c423b";
|
|
789
828
|
readonly source: 1;
|
|
@@ -57,11 +57,13 @@ export const workersAiCatalog = {
|
|
|
57
57
|
price: [
|
|
58
58
|
{
|
|
59
59
|
unit: 'per M input tokens',
|
|
60
|
-
price:
|
|
60
|
+
price: 0.28,
|
|
61
|
+
currency: 'USD',
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
64
|
unit: 'per M output tokens',
|
|
64
|
-
price:
|
|
65
|
+
price: 0.83,
|
|
66
|
+
currency: 'USD',
|
|
65
67
|
},
|
|
66
68
|
],
|
|
67
69
|
context_window: 7968,
|
|
@@ -80,11 +82,13 @@ export const workersAiCatalog = {
|
|
|
80
82
|
price: [
|
|
81
83
|
{
|
|
82
84
|
unit: 'per M input tokens',
|
|
83
|
-
price:
|
|
85
|
+
price: 0.051,
|
|
86
|
+
currency: 'USD',
|
|
84
87
|
},
|
|
85
88
|
{
|
|
86
89
|
unit: 'per M output tokens',
|
|
87
|
-
price:
|
|
90
|
+
price: 0.34,
|
|
91
|
+
currency: 'USD',
|
|
88
92
|
},
|
|
89
93
|
],
|
|
90
94
|
context_window: 128000,
|
|
@@ -126,11 +130,13 @@ export const workersAiCatalog = {
|
|
|
126
130
|
price: [
|
|
127
131
|
{
|
|
128
132
|
unit: 'per M input tokens',
|
|
129
|
-
price:
|
|
133
|
+
price: 0.48,
|
|
134
|
+
currency: 'USD',
|
|
130
135
|
},
|
|
131
136
|
{
|
|
132
137
|
unit: 'per M output tokens',
|
|
133
|
-
price:
|
|
138
|
+
price: 0.03,
|
|
139
|
+
currency: 'USD',
|
|
134
140
|
},
|
|
135
141
|
],
|
|
136
142
|
},
|
|
@@ -229,11 +235,13 @@ export const workersAiCatalog = {
|
|
|
229
235
|
price: [
|
|
230
236
|
{
|
|
231
237
|
unit: 'per M input tokens',
|
|
232
|
-
price:
|
|
238
|
+
price: 0.5,
|
|
239
|
+
currency: 'USD',
|
|
233
240
|
},
|
|
234
241
|
{
|
|
235
242
|
unit: 'per M output tokens',
|
|
236
|
-
price:
|
|
243
|
+
price: 4.88,
|
|
244
|
+
currency: 'USD',
|
|
237
245
|
},
|
|
238
246
|
],
|
|
239
247
|
terms: 'https://github.com/deepseek-ai/DeepSeek-R1/blob/main/LICENSE',
|
|
@@ -274,11 +282,13 @@ export const workersAiCatalog = {
|
|
|
274
282
|
price: [
|
|
275
283
|
{
|
|
276
284
|
unit: 'per M input tokens',
|
|
277
|
-
price:
|
|
285
|
+
price: 0.15,
|
|
286
|
+
currency: 'USD',
|
|
278
287
|
},
|
|
279
288
|
{
|
|
280
289
|
unit: 'per M output tokens',
|
|
281
|
-
price:
|
|
290
|
+
price: 0.29,
|
|
291
|
+
currency: 'USD',
|
|
282
292
|
},
|
|
283
293
|
],
|
|
284
294
|
context_window: 32000,
|
|
@@ -322,11 +332,13 @@ export const workersAiCatalog = {
|
|
|
322
332
|
price: [
|
|
323
333
|
{
|
|
324
334
|
unit: 'per M input tokens',
|
|
325
|
-
price:
|
|
335
|
+
price: 0.027,
|
|
336
|
+
currency: 'USD',
|
|
326
337
|
},
|
|
327
338
|
{
|
|
328
339
|
unit: 'per M output tokens',
|
|
329
|
-
price:
|
|
340
|
+
price: 0.2,
|
|
341
|
+
currency: 'USD',
|
|
330
342
|
},
|
|
331
343
|
],
|
|
332
344
|
context_window: 60000,
|
|
@@ -383,11 +395,13 @@ export const workersAiCatalog = {
|
|
|
383
395
|
price: [
|
|
384
396
|
{
|
|
385
397
|
unit: 'per M input tokens',
|
|
386
|
-
price:
|
|
398
|
+
price: 0.29,
|
|
399
|
+
currency: 'USD',
|
|
387
400
|
},
|
|
388
401
|
{
|
|
389
402
|
unit: 'per M output tokens',
|
|
390
|
-
price:
|
|
403
|
+
price: 2.25,
|
|
404
|
+
currency: 'USD',
|
|
391
405
|
},
|
|
392
406
|
],
|
|
393
407
|
context_window: 24000,
|
|
@@ -472,11 +486,13 @@ export const workersAiCatalog = {
|
|
|
472
486
|
price: [
|
|
473
487
|
{
|
|
474
488
|
unit: 'per M input tokens',
|
|
475
|
-
price:
|
|
489
|
+
price: 0.28,
|
|
490
|
+
currency: 'USD',
|
|
476
491
|
},
|
|
477
492
|
{
|
|
478
493
|
unit: 'per M output tokens',
|
|
479
|
-
price:
|
|
494
|
+
price: 0.83,
|
|
495
|
+
currency: 'USD',
|
|
480
496
|
},
|
|
481
497
|
],
|
|
482
498
|
context_window: 7968,
|
|
@@ -494,11 +510,13 @@ export const workersAiCatalog = {
|
|
|
494
510
|
price: [
|
|
495
511
|
{
|
|
496
512
|
unit: 'per M input tokens',
|
|
497
|
-
price:
|
|
513
|
+
price: 0.12,
|
|
514
|
+
currency: 'USD',
|
|
498
515
|
},
|
|
499
516
|
{
|
|
500
517
|
unit: 'per M output tokens',
|
|
501
|
-
price:
|
|
518
|
+
price: 0.27,
|
|
519
|
+
currency: 'USD',
|
|
502
520
|
},
|
|
503
521
|
],
|
|
504
522
|
context_window: 8192,
|
|
@@ -555,11 +573,13 @@ export const workersAiCatalog = {
|
|
|
555
573
|
price: [
|
|
556
574
|
{
|
|
557
575
|
unit: 'per M input tokens',
|
|
558
|
-
price:
|
|
576
|
+
price: 0.12,
|
|
577
|
+
currency: 'USD',
|
|
559
578
|
},
|
|
560
579
|
{
|
|
561
580
|
unit: 'per M output tokens',
|
|
562
|
-
price:
|
|
581
|
+
price: 0.27,
|
|
582
|
+
currency: 'USD',
|
|
563
583
|
},
|
|
564
584
|
],
|
|
565
585
|
context_window: 8192,
|
|
@@ -578,11 +598,13 @@ export const workersAiCatalog = {
|
|
|
578
598
|
price: [
|
|
579
599
|
{
|
|
580
600
|
unit: 'per M input tokens',
|
|
581
|
-
price:
|
|
601
|
+
price: 0.049,
|
|
602
|
+
currency: 'USD',
|
|
582
603
|
},
|
|
583
604
|
{
|
|
584
605
|
unit: 'per M output tokens',
|
|
585
|
-
price:
|
|
606
|
+
price: 0.68,
|
|
607
|
+
currency: 'USD',
|
|
586
608
|
},
|
|
587
609
|
],
|
|
588
610
|
terms: 'https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE',
|
|
@@ -680,7 +702,15 @@ export const workersAiCatalog = {
|
|
|
680
702
|
description: 'Multi-Functionality, Multi-Linguality, and Multi-Granularity embeddings model.',
|
|
681
703
|
created_at: '2024-05-22 19:27:09.781',
|
|
682
704
|
tags: [],
|
|
683
|
-
properties: {
|
|
705
|
+
properties: {
|
|
706
|
+
price: [
|
|
707
|
+
{
|
|
708
|
+
unit: 'per M input tokens',
|
|
709
|
+
price: 0.012,
|
|
710
|
+
currency: 'USD',
|
|
711
|
+
},
|
|
712
|
+
],
|
|
713
|
+
},
|
|
684
714
|
},
|
|
685
715
|
{
|
|
686
716
|
id: '57fbd08a-a4c4-411c-910d-b9459ff36c20',
|
|
@@ -823,7 +853,8 @@ export const workersAiCatalog = {
|
|
|
823
853
|
price: [
|
|
824
854
|
{
|
|
825
855
|
unit: 'per audio minute',
|
|
826
|
-
price:
|
|
856
|
+
price: 0.00051,
|
|
857
|
+
currency: 'USD',
|
|
827
858
|
},
|
|
828
859
|
],
|
|
829
860
|
},
|
|
@@ -883,7 +914,20 @@ export const workersAiCatalog = {
|
|
|
883
914
|
description: 'FLUX.1 [schnell] is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. ',
|
|
884
915
|
created_at: '2024-08-29 16:37:39.541',
|
|
885
916
|
tags: [],
|
|
886
|
-
properties: {
|
|
917
|
+
properties: {
|
|
918
|
+
price: [
|
|
919
|
+
{
|
|
920
|
+
unit: 'per 512 by 512 tile',
|
|
921
|
+
price: 0.000053,
|
|
922
|
+
currency: 'USD',
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
unit: 'per step',
|
|
926
|
+
price: 0.00011,
|
|
927
|
+
currency: 'USD',
|
|
928
|
+
},
|
|
929
|
+
],
|
|
930
|
+
},
|
|
887
931
|
},
|
|
888
932
|
{
|
|
889
933
|
id: '7f797b20-3eb0-44fd-b571-6cbbaa3c423b',
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './ai-tools/index.js';
|
|
|
2
2
|
export * from './d0/index.js';
|
|
3
3
|
export * from './d1/index.js';
|
|
4
4
|
export * from './discourse/index.js';
|
|
5
|
-
export * from './wf/index.js';
|
|
6
5
|
type MethodKeys<T> = {
|
|
7
6
|
[P in keyof T]: T[P] extends (...args: any[]) => any ? P : never;
|
|
8
7
|
}[keyof T];
|
package/dist/index.js
CHANGED
package/dist/wf/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import isHexadecimal from 'validator/es/lib/isHexadecimal.js';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export const ZodUuidExportInput = z.union([
|
|
4
3
|
// PrefixedUuid
|
|
@@ -15,7 +14,7 @@ export const ZodUuidExportInput = z.union([
|
|
|
15
14
|
.string()
|
|
16
15
|
.trim()
|
|
17
16
|
.length(32)
|
|
18
|
-
.refine((
|
|
17
|
+
.refine((values) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(values)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(values)))),
|
|
19
18
|
z.string().trim().nonempty().base64(),
|
|
20
19
|
z.string().trim().nonempty().base64url(),
|
|
21
20
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"zod": "^3.24.2"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cloudflare/workers-types": "^4.
|
|
97
|
+
"@cloudflare/workers-types": "^4.20250327.0",
|
|
98
98
|
"@types/validator": "^13.12.3"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "0e791ace039e29822b615aa2091e07950797f52d"
|
|
101
101
|
}
|