@vibes.diy/api-types 12.2.9 → 12.2.10

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/app.d.ts CHANGED
@@ -682,11 +682,19 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
682
682
  content: ({
683
683
  type: "text";
684
684
  text: string;
685
+ cache_control?: {
686
+ type: "ephemeral";
687
+ ttl?: "1h" | "5m" | undefined;
688
+ } | undefined;
685
689
  } | {
686
690
  type: "image_url";
687
691
  image_url: {
688
692
  url: string;
689
693
  };
694
+ cache_control?: {
695
+ type: "ephemeral";
696
+ ttl?: "1h" | "5m" | undefined;
697
+ } | undefined;
690
698
  } | {
691
699
  type: "vibes_file";
692
700
  uploadId: string;
@@ -803,11 +811,19 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
803
811
  content: ({
804
812
  type: "text";
805
813
  text: string;
814
+ cache_control?: {
815
+ type: "ephemeral";
816
+ ttl?: "1h" | "5m" | undefined;
817
+ } | undefined;
806
818
  } | {
807
819
  type: "image_url";
808
820
  image_url: {
809
821
  url: string;
810
822
  };
823
+ cache_control?: {
824
+ type: "ephemeral";
825
+ ttl?: "1h" | "5m" | undefined;
826
+ } | undefined;
811
827
  } | {
812
828
  type: "vibes_file";
813
829
  uploadId: string;
package/chat.d.ts CHANGED
@@ -122,11 +122,19 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
122
122
  content: ({
123
123
  type: "text";
124
124
  text: string;
125
+ cache_control?: {
126
+ type: "ephemeral";
127
+ ttl?: "1h" | "5m" | undefined;
128
+ } | undefined;
125
129
  } | {
126
130
  type: "image_url";
127
131
  image_url: {
128
132
  url: string;
129
133
  };
134
+ cache_control?: {
135
+ type: "ephemeral";
136
+ ttl?: "1h" | "5m" | undefined;
137
+ } | undefined;
130
138
  } | {
131
139
  type: "vibes_file";
132
140
  uploadId: string;
@@ -267,11 +275,19 @@ export declare const reqPromptApplicationChatSection: import("arktype/internal/v
267
275
  content: ({
268
276
  type: "text";
269
277
  text: string;
278
+ cache_control?: {
279
+ type: "ephemeral";
280
+ ttl?: "1h" | "5m" | undefined;
281
+ } | undefined;
270
282
  } | {
271
283
  type: "image_url";
272
284
  image_url: {
273
285
  url: string;
274
286
  };
287
+ cache_control?: {
288
+ type: "ephemeral";
289
+ ttl?: "1h" | "5m" | undefined;
290
+ } | undefined;
275
291
  } | {
276
292
  type: "vibes_file";
277
293
  uploadId: string;
@@ -343,11 +359,19 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
343
359
  content: ({
344
360
  type: "text";
345
361
  text: string;
362
+ cache_control?: {
363
+ type: "ephemeral";
364
+ ttl?: "1h" | "5m" | undefined;
365
+ } | undefined;
346
366
  } | {
347
367
  type: "image_url";
348
368
  image_url: {
349
369
  url: string;
350
370
  };
371
+ cache_control?: {
372
+ type: "ephemeral";
373
+ ttl?: "1h" | "5m" | undefined;
374
+ } | undefined;
351
375
  } | {
352
376
  type: "vibes_file";
353
377
  uploadId: string;
@@ -577,11 +601,19 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
577
601
  content: ({
578
602
  type: "text";
579
603
  text: string;
604
+ cache_control?: {
605
+ type: "ephemeral";
606
+ ttl?: "1h" | "5m" | undefined;
607
+ } | undefined;
580
608
  } | {
581
609
  type: "image_url";
582
610
  image_url: {
583
611
  url: string;
584
612
  };
613
+ cache_control?: {
614
+ type: "ephemeral";
615
+ ttl?: "1h" | "5m" | undefined;
616
+ } | undefined;
585
617
  } | {
586
618
  type: "vibes_file";
587
619
  uploadId: string;
@@ -708,11 +740,19 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
708
740
  content: ({
709
741
  type: "text";
710
742
  text: string;
743
+ cache_control?: {
744
+ type: "ephemeral";
745
+ ttl?: "1h" | "5m" | undefined;
746
+ } | undefined;
711
747
  } | {
712
748
  type: "image_url";
713
749
  image_url: {
714
750
  url: string;
715
751
  };
752
+ cache_control?: {
753
+ type: "ephemeral";
754
+ ttl?: "1h" | "5m" | undefined;
755
+ } | undefined;
716
756
  } | {
717
757
  type: "vibes_file";
718
758
  uploadId: string;
@@ -782,11 +822,19 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
782
822
  content: ({
783
823
  type: "text";
784
824
  text: string;
825
+ cache_control?: {
826
+ type: "ephemeral";
827
+ ttl?: "1h" | "5m" | undefined;
828
+ } | undefined;
785
829
  } | {
786
830
  type: "image_url";
787
831
  image_url: {
788
832
  url: string;
789
833
  };
834
+ cache_control?: {
835
+ type: "ephemeral";
836
+ ttl?: "1h" | "5m" | undefined;
837
+ } | undefined;
790
838
  } | {
791
839
  type: "vibes_file";
792
840
  uploadId: string;
@@ -969,11 +1017,19 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
969
1017
  content: ({
970
1018
  type: "text";
971
1019
  text: string;
1020
+ cache_control?: {
1021
+ type: "ephemeral";
1022
+ ttl?: "1h" | "5m" | undefined;
1023
+ } | undefined;
972
1024
  } | {
973
1025
  type: "image_url";
974
1026
  image_url: {
975
1027
  url: string;
976
1028
  };
1029
+ cache_control?: {
1030
+ type: "ephemeral";
1031
+ ttl?: "1h" | "5m" | undefined;
1032
+ } | undefined;
977
1033
  } | {
978
1034
  type: "vibes_file";
979
1035
  uploadId: string;
@@ -1100,11 +1156,19 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1100
1156
  content: ({
1101
1157
  type: "text";
1102
1158
  text: string;
1159
+ cache_control?: {
1160
+ type: "ephemeral";
1161
+ ttl?: "1h" | "5m" | undefined;
1162
+ } | undefined;
1103
1163
  } | {
1104
1164
  type: "image_url";
1105
1165
  image_url: {
1106
1166
  url: string;
1107
1167
  };
1168
+ cache_control?: {
1169
+ type: "ephemeral";
1170
+ ttl?: "1h" | "5m" | undefined;
1171
+ } | undefined;
1108
1172
  } | {
1109
1173
  type: "vibes_file";
1110
1174
  uploadId: string;
@@ -1174,11 +1238,19 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1174
1238
  content: ({
1175
1239
  type: "text";
1176
1240
  text: string;
1241
+ cache_control?: {
1242
+ type: "ephemeral";
1243
+ ttl?: "1h" | "5m" | undefined;
1244
+ } | undefined;
1177
1245
  } | {
1178
1246
  type: "image_url";
1179
1247
  image_url: {
1180
1248
  url: string;
1181
1249
  };
1250
+ cache_control?: {
1251
+ type: "ephemeral";
1252
+ ttl?: "1h" | "5m" | undefined;
1253
+ } | undefined;
1182
1254
  } | {
1183
1255
  type: "vibes_file";
1184
1256
  uploadId: string;
@@ -1377,11 +1449,19 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
1377
1449
  content: ({
1378
1450
  type: "text";
1379
1451
  text: string;
1452
+ cache_control?: {
1453
+ type: "ephemeral";
1454
+ ttl?: "1h" | "5m" | undefined;
1455
+ } | undefined;
1380
1456
  } | {
1381
1457
  type: "image_url";
1382
1458
  image_url: {
1383
1459
  url: string;
1384
1460
  };
1461
+ cache_control?: {
1462
+ type: "ephemeral";
1463
+ ttl?: "1h" | "5m" | undefined;
1464
+ } | undefined;
1385
1465
  } | {
1386
1466
  type: "vibes_file";
1387
1467
  uploadId: string;
@@ -1498,11 +1578,19 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
1498
1578
  content: ({
1499
1579
  type: "text";
1500
1580
  text: string;
1581
+ cache_control?: {
1582
+ type: "ephemeral";
1583
+ ttl?: "1h" | "5m" | undefined;
1584
+ } | undefined;
1501
1585
  } | {
1502
1586
  type: "image_url";
1503
1587
  image_url: {
1504
1588
  url: string;
1505
1589
  };
1590
+ cache_control?: {
1591
+ type: "ephemeral";
1592
+ ttl?: "1h" | "5m" | undefined;
1593
+ } | undefined;
1506
1594
  } | {
1507
1595
  type: "vibes_file";
1508
1596
  uploadId: string;
@@ -1912,11 +2000,19 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
1912
2000
  content: ({
1913
2001
  type: "text";
1914
2002
  text: string;
2003
+ cache_control?: {
2004
+ type: "ephemeral";
2005
+ ttl?: "1h" | "5m" | undefined;
2006
+ } | undefined;
1915
2007
  } | {
1916
2008
  type: "image_url";
1917
2009
  image_url: {
1918
2010
  url: string;
1919
2011
  };
2012
+ cache_control?: {
2013
+ type: "ephemeral";
2014
+ ttl?: "1h" | "5m" | undefined;
2015
+ } | undefined;
1920
2016
  } | {
1921
2017
  type: "vibes_file";
1922
2018
  uploadId: string;
@@ -2033,11 +2129,19 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
2033
2129
  content: ({
2034
2130
  type: "text";
2035
2131
  text: string;
2132
+ cache_control?: {
2133
+ type: "ephemeral";
2134
+ ttl?: "1h" | "5m" | undefined;
2135
+ } | undefined;
2036
2136
  } | {
2037
2137
  type: "image_url";
2038
2138
  image_url: {
2039
2139
  url: string;
2040
2140
  };
2141
+ cache_control?: {
2142
+ type: "ephemeral";
2143
+ ttl?: "1h" | "5m" | undefined;
2144
+ } | undefined;
2041
2145
  } | {
2042
2146
  type: "vibes_file";
2043
2147
  uploadId: string;
@@ -2459,11 +2563,19 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
2459
2563
  content: ({
2460
2564
  type: "text";
2461
2565
  text: string;
2566
+ cache_control?: {
2567
+ type: "ephemeral";
2568
+ ttl?: "1h" | "5m" | undefined;
2569
+ } | undefined;
2462
2570
  } | {
2463
2571
  type: "image_url";
2464
2572
  image_url: {
2465
2573
  url: string;
2466
2574
  };
2575
+ cache_control?: {
2576
+ type: "ephemeral";
2577
+ ttl?: "1h" | "5m" | undefined;
2578
+ } | undefined;
2467
2579
  } | {
2468
2580
  type: "vibes_file";
2469
2581
  uploadId: string;
@@ -2580,11 +2692,19 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
2580
2692
  content: ({
2581
2693
  type: "text";
2582
2694
  text: string;
2695
+ cache_control?: {
2696
+ type: "ephemeral";
2697
+ ttl?: "1h" | "5m" | undefined;
2698
+ } | undefined;
2583
2699
  } | {
2584
2700
  type: "image_url";
2585
2701
  image_url: {
2586
2702
  url: string;
2587
2703
  };
2704
+ cache_control?: {
2705
+ type: "ephemeral";
2706
+ ttl?: "1h" | "5m" | undefined;
2707
+ } | undefined;
2588
2708
  } | {
2589
2709
  type: "vibes_file";
2590
2710
  uploadId: string;
@@ -2996,11 +3116,19 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
2996
3116
  content: ({
2997
3117
  type: "text";
2998
3118
  text: string;
3119
+ cache_control?: {
3120
+ type: "ephemeral";
3121
+ ttl?: "1h" | "5m" | undefined;
3122
+ } | undefined;
2999
3123
  } | {
3000
3124
  type: "image_url";
3001
3125
  image_url: {
3002
3126
  url: string;
3003
3127
  };
3128
+ cache_control?: {
3129
+ type: "ephemeral";
3130
+ ttl?: "1h" | "5m" | undefined;
3131
+ } | undefined;
3004
3132
  } | {
3005
3133
  type: "vibes_file";
3006
3134
  uploadId: string;
@@ -3117,11 +3245,19 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
3117
3245
  content: ({
3118
3246
  type: "text";
3119
3247
  text: string;
3248
+ cache_control?: {
3249
+ type: "ephemeral";
3250
+ ttl?: "1h" | "5m" | undefined;
3251
+ } | undefined;
3120
3252
  } | {
3121
3253
  type: "image_url";
3122
3254
  image_url: {
3123
3255
  url: string;
3124
3256
  };
3257
+ cache_control?: {
3258
+ type: "ephemeral";
3259
+ ttl?: "1h" | "5m" | undefined;
3260
+ } | undefined;
3125
3261
  } | {
3126
3262
  type: "vibes_file";
3127
3263
  uploadId: string;
@@ -3539,11 +3675,19 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
3539
3675
  content: ({
3540
3676
  type: "text";
3541
3677
  text: string;
3678
+ cache_control?: {
3679
+ type: "ephemeral";
3680
+ ttl?: "1h" | "5m" | undefined;
3681
+ } | undefined;
3542
3682
  } | {
3543
3683
  type: "image_url";
3544
3684
  image_url: {
3545
3685
  url: string;
3546
3686
  };
3687
+ cache_control?: {
3688
+ type: "ephemeral";
3689
+ ttl?: "1h" | "5m" | undefined;
3690
+ } | undefined;
3547
3691
  } | {
3548
3692
  type: "vibes_file";
3549
3693
  uploadId: string;
@@ -3660,11 +3804,19 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
3660
3804
  content: ({
3661
3805
  type: "text";
3662
3806
  text: string;
3807
+ cache_control?: {
3808
+ type: "ephemeral";
3809
+ ttl?: "1h" | "5m" | undefined;
3810
+ } | undefined;
3663
3811
  } | {
3664
3812
  type: "image_url";
3665
3813
  image_url: {
3666
3814
  url: string;
3667
3815
  };
3816
+ cache_control?: {
3817
+ type: "ephemeral";
3818
+ ttl?: "1h" | "5m" | undefined;
3819
+ } | undefined;
3668
3820
  } | {
3669
3821
  type: "vibes_file";
3670
3822
  uploadId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "12.2.9",
3
+ "version": "12.2.10",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -16,9 +16,9 @@
16
16
  "dependencies": {
17
17
  "@adviser/cement": "~0.5.34",
18
18
  "@cloudflare/workers-types": "~5.20260715.1",
19
- "@vibes.diy/call-ai-v2": "12.2.9",
20
- "@vibes.diy/identity": "12.2.9",
21
- "@vibes.diy/vibe-types": "12.2.9",
19
+ "@vibes.diy/call-ai-v2": "12.2.10",
20
+ "@vibes.diy/identity": "12.2.10",
21
+ "@vibes.diy/vibe-types": "12.2.10",
22
22
  "arktype": "~2.2.3"
23
23
  },
24
24
  "repository": {
package/prompt.d.ts CHANGED
@@ -18,11 +18,19 @@ export declare const PromptReq: import("arktype/internal/variants/object.ts").Ob
18
18
  content: ({
19
19
  type: "text";
20
20
  text: string;
21
+ cache_control?: {
22
+ type: "ephemeral";
23
+ ttl?: "1h" | "5m" | undefined;
24
+ } | undefined;
21
25
  } | {
22
26
  type: "image_url";
23
27
  image_url: {
24
28
  url: string;
25
29
  };
30
+ cache_control?: {
31
+ type: "ephemeral";
32
+ ttl?: "1h" | "5m" | undefined;
33
+ } | undefined;
26
34
  } | {
27
35
  type: "vibes_file";
28
36
  uploadId: string;
@@ -215,11 +223,19 @@ export declare const PromptDryRunPayload: import("arktype/internal/variants/obje
215
223
  content: ({
216
224
  type: "text";
217
225
  text: string;
226
+ cache_control?: {
227
+ type: "ephemeral";
228
+ ttl?: "1h" | "5m" | undefined;
229
+ } | undefined;
218
230
  } | {
219
231
  type: "image_url";
220
232
  image_url: {
221
233
  url: string;
222
234
  };
235
+ cache_control?: {
236
+ type: "ephemeral";
237
+ ttl?: "1h" | "5m" | undefined;
238
+ } | undefined;
223
239
  } | {
224
240
  type: "vibes_file";
225
241
  uploadId: string;
@@ -343,11 +359,19 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
343
359
  content: ({
344
360
  type: "text";
345
361
  text: string;
362
+ cache_control?: {
363
+ type: "ephemeral";
364
+ ttl?: "1h" | "5m" | undefined;
365
+ } | undefined;
346
366
  } | {
347
367
  type: "image_url";
348
368
  image_url: {
349
369
  url: string;
350
370
  };
371
+ cache_control?: {
372
+ type: "ephemeral";
373
+ ttl?: "1h" | "5m" | undefined;
374
+ } | undefined;
351
375
  } | {
352
376
  type: "vibes_file";
353
377
  uploadId: string;
@@ -515,11 +539,19 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
515
539
  content: ({
516
540
  type: "text";
517
541
  text: string;
542
+ cache_control?: {
543
+ type: "ephemeral";
544
+ ttl?: "1h" | "5m" | undefined;
545
+ } | undefined;
518
546
  } | {
519
547
  type: "image_url";
520
548
  image_url: {
521
549
  url: string;
522
550
  };
551
+ cache_control?: {
552
+ type: "ephemeral";
553
+ ttl?: "1h" | "5m" | undefined;
554
+ } | undefined;
523
555
  } | {
524
556
  type: "vibes_file";
525
557
  uploadId: string;
package/vibes-types.d.ts CHANGED
@@ -11,11 +11,6 @@ export interface PkgRepos {
11
11
  readonly workspace: string;
12
12
  readonly public: string;
13
13
  }
14
- export declare const LLMEnforced: import("arktype/internal/variants/object.ts").ObjectType<{
15
- debug: import("arktype/internal/attributes.ts").Default<boolean, false>;
16
- transforms: import("arktype/internal/attributes.ts").Default<string[], string[]>;
17
- }, {}>;
18
- export type LLMEnforced = typeof LLMEnforced.infer;
19
14
  export declare const LLMHeaders: import("arktype/internal/variants/object.ts").ObjectType<{
20
15
  [x: string]: string;
21
16
  "HTTP-Referer": import("arktype/internal/attributes.ts").Default<string, "https://vibes.diy">;
@@ -39,7 +34,6 @@ export type VibesFPApiParameters = Pick<FPApiParameters, "cloudPublicKeys" | "cl
39
34
  };
40
35
  assetCacheUrl: string;
41
36
  llm: {
42
- enforced: LLMEnforced;
43
37
  headers: LLMHeaders;
44
38
  url: string;
45
39
  apiKey: string;
package/vibes-types.js CHANGED
@@ -1,8 +1,4 @@
1
1
  import { type } from "arktype";
2
- export const LLMEnforced = type({
3
- debug: "boolean = false",
4
- transforms: type("string[]").default(() => ["middle-out"]),
5
- });
6
2
  export const LLMHeaders = type({
7
3
  "HTTP-Referer": type("string").default("https://vibes.diy"),
8
4
  "X-Title": type("string").default("Vibes DIY"),
@@ -1 +1 @@
1
- {"version":3,"file":"vibes-types.js","sourceRoot":"","sources":["../jsr/vibes-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAwB/B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC;CAC3D,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC3D,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC9C,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAC"}
1
+ {"version":3,"file":"vibes-types.js","sourceRoot":"","sources":["../jsr/vibes-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAwB/B,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC3D,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC9C,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAC"}