@vibes.diy/api-svc 2.5.18 → 2.5.26

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.
@@ -240,68 +240,6 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
240
240
  error?: string | undefined;
241
241
  settings: {
242
242
  entries: ({
243
- type: "active.db-acl";
244
- dbName: string;
245
- acl: {
246
- read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
247
- write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
248
- delete?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
249
- };
250
- } | {
251
- type: "app.public.access";
252
- enable: boolean;
253
- tick?: {
254
- count: number;
255
- last: Date;
256
- } | undefined;
257
- } | {
258
- type: "app.acl.active.request";
259
- role: "viewer";
260
- state: "pending";
261
- request: {
262
- key: string;
263
- provider: "clerk" | "github" | "google";
264
- msg?: string | undefined;
265
- userId: string;
266
- created: Date;
267
- };
268
- } | {
269
- type: "app.acl.active.request";
270
- role: "editor" | "submitter" | "viewer";
271
- state: "approved";
272
- request: {
273
- key: string;
274
- provider: "clerk" | "github" | "google";
275
- msg?: string | undefined;
276
- userId: string;
277
- created: Date;
278
- };
279
- tick: {
280
- count: number;
281
- last: Date;
282
- };
283
- grant: {
284
- ownerId: string;
285
- key?: string | undefined;
286
- on: Date;
287
- };
288
- } | {
289
- type: "app.acl.active.request";
290
- role: "editor" | "submitter" | "viewer";
291
- state: "rejected";
292
- request: {
293
- key: string;
294
- provider: "clerk" | "github" | "google";
295
- msg?: string | undefined;
296
- userId: string;
297
- created: Date;
298
- };
299
- grant: {
300
- ownerId: string;
301
- key?: string | undefined;
302
- on: Date;
303
- };
304
- } | {
305
243
  type: "app.acl.active.invite";
306
244
  role: "editor";
307
245
  state: "pending";
@@ -387,6 +325,60 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
387
325
  count: number;
388
326
  last: Date;
389
327
  };
328
+ } | {
329
+ type: "app.acl.active.request";
330
+ role: "viewer";
331
+ state: "pending";
332
+ request: {
333
+ key: string;
334
+ provider: "clerk" | "github" | "google";
335
+ msg?: string | undefined;
336
+ userId: string;
337
+ created: Date;
338
+ };
339
+ } | {
340
+ type: "app.acl.active.request";
341
+ role: "editor" | "submitter" | "viewer";
342
+ state: "approved";
343
+ request: {
344
+ key: string;
345
+ provider: "clerk" | "github" | "google";
346
+ msg?: string | undefined;
347
+ userId: string;
348
+ created: Date;
349
+ };
350
+ tick: {
351
+ count: number;
352
+ last: Date;
353
+ };
354
+ grant: {
355
+ ownerId: string;
356
+ key?: string | undefined;
357
+ on: Date;
358
+ };
359
+ } | {
360
+ type: "app.acl.active.request";
361
+ role: "editor" | "submitter" | "viewer";
362
+ state: "rejected";
363
+ request: {
364
+ key: string;
365
+ provider: "clerk" | "github" | "google";
366
+ msg?: string | undefined;
367
+ userId: string;
368
+ created: Date;
369
+ };
370
+ grant: {
371
+ ownerId: string;
372
+ key?: string | undefined;
373
+ on: Date;
374
+ };
375
+ } | {
376
+ type: "app.public.access";
377
+ enable: boolean;
378
+ tick?: {
379
+ count: number;
380
+ last: Date;
381
+ } | undefined;
390
382
  } | {
391
383
  type: "app.request";
392
384
  enable: boolean;
@@ -434,14 +426,14 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
434
426
  name: string;
435
427
  description: string;
436
428
  featured?: boolean | undefined;
437
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
438
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
439
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
429
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
430
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
431
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
440
432
  imageInput?: boolean | undefined;
441
433
  };
442
434
  apiKey?: string | undefined;
443
435
  };
444
- usage: "chat";
436
+ usage: "chat" | "codegen";
445
437
  } | {
446
438
  type: "active.model";
447
439
  param: {
@@ -450,14 +442,14 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
450
442
  name: string;
451
443
  description: string;
452
444
  featured?: boolean | undefined;
453
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
454
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
455
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
445
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
446
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
447
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
456
448
  imageInput?: boolean | undefined;
457
449
  };
458
450
  apiKey?: string | undefined;
459
451
  };
460
- usage: "app";
452
+ usage: "app" | "runtime";
461
453
  } | {
462
454
  type: "active.model";
463
455
  param: {
@@ -466,9 +458,9 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
466
458
  name: string;
467
459
  description: string;
468
460
  featured?: boolean | undefined;
469
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
470
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
471
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
461
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
462
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
463
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
472
464
  imageInput?: boolean | undefined;
473
465
  };
474
466
  apiKey?: string | undefined;
@@ -480,6 +472,14 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
480
472
  key: string;
481
473
  value: string;
482
474
  }[];
475
+ } | {
476
+ type: "active.db-acl";
477
+ dbName: string;
478
+ acl: {
479
+ read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
480
+ write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
481
+ delete?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
482
+ };
483
483
  })[];
484
484
  entry: {
485
485
  settings: {
@@ -492,28 +492,28 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
492
492
  cid: string;
493
493
  mime: string;
494
494
  } | undefined;
495
- app?: {
495
+ runtime?: {
496
496
  model?: {
497
497
  id: string;
498
498
  name: string;
499
499
  description: string;
500
500
  featured?: boolean | undefined;
501
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
502
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
503
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
501
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
502
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
503
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
504
504
  imageInput?: boolean | undefined;
505
505
  } | undefined;
506
506
  apiKey?: string | undefined;
507
507
  } | undefined;
508
- chat?: {
508
+ codegen?: {
509
509
  model?: {
510
510
  id: string;
511
511
  name: string;
512
512
  description: string;
513
513
  featured?: boolean | undefined;
514
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
515
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
516
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
514
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
515
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
516
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
517
517
  imageInput?: boolean | undefined;
518
518
  } | undefined;
519
519
  apiKey?: string | undefined;
@@ -524,9 +524,9 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
524
524
  name: string;
525
525
  description: string;
526
526
  featured?: boolean | undefined;
527
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
528
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
529
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
527
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
528
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
529
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
530
530
  imageInput?: boolean | undefined;
531
531
  } | undefined;
532
532
  apiKey?: string | undefined;
@@ -592,13 +592,6 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
592
592
  token: string;
593
593
  };
594
594
  settings: ({
595
- type: "profile";
596
- avatarCid?: string | undefined;
597
- displayName?: string | undefined;
598
- } | {
599
- type: "defaultHandle";
600
- ownerHandle: string;
601
- } | {
602
595
  type: "sharing";
603
596
  grants: {
604
597
  grant: "allow" | "deny";
@@ -608,28 +601,28 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
608
601
  }[];
609
602
  } | {
610
603
  type: "modelDefaults";
611
- chat?: {
604
+ codegen?: {
612
605
  model?: {
613
606
  id: string;
614
607
  name: string;
615
608
  description: string;
616
609
  featured?: boolean | undefined;
617
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
618
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
619
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
610
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
611
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
612
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
620
613
  imageInput?: boolean | undefined;
621
614
  } | undefined;
622
615
  apiKey?: string | undefined;
623
616
  } | undefined;
624
- app?: {
617
+ runtime?: {
625
618
  model?: {
626
619
  id: string;
627
620
  name: string;
628
621
  description: string;
629
622
  featured?: boolean | undefined;
630
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
631
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
632
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
623
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
624
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
625
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
633
626
  imageInput?: boolean | undefined;
634
627
  } | undefined;
635
628
  apiKey?: string | undefined;
@@ -640,13 +633,46 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
640
633
  name: string;
641
634
  description: string;
642
635
  featured?: boolean | undefined;
643
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
644
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
645
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
636
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
637
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
638
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
639
+ imageInput?: boolean | undefined;
640
+ } | undefined;
641
+ apiKey?: string | undefined;
642
+ } | undefined;
643
+ chat?: {
644
+ model?: {
645
+ id: string;
646
+ name: string;
647
+ description: string;
648
+ featured?: boolean | undefined;
649
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
650
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
651
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
652
+ imageInput?: boolean | undefined;
653
+ } | undefined;
654
+ apiKey?: string | undefined;
655
+ } | undefined;
656
+ app?: {
657
+ model?: {
658
+ id: string;
659
+ name: string;
660
+ description: string;
661
+ featured?: boolean | undefined;
662
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
663
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
664
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
646
665
  imageInput?: boolean | undefined;
647
666
  } | undefined;
648
667
  apiKey?: string | undefined;
649
668
  } | undefined;
669
+ } | {
670
+ type: "defaultHandle";
671
+ ownerHandle: string;
672
+ } | {
673
+ type: "profile";
674
+ avatarCid?: string | undefined;
675
+ displayName?: string | undefined;
650
676
  } | {
651
677
  type: "notifications";
652
678
  buildComplete?: boolean | undefined;
@@ -663,13 +689,6 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
663
689
  type: "vibes.diy.res-ensure-user-settings";
664
690
  userId: string;
665
691
  settings: ({
666
- type: "profile";
667
- avatarCid?: string | undefined;
668
- displayName?: string | undefined;
669
- } | {
670
- type: "defaultHandle";
671
- ownerHandle: string;
672
- } | {
673
692
  type: "sharing";
674
693
  grants: {
675
694
  grant: "allow" | "deny";
@@ -679,28 +698,28 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
679
698
  }[];
680
699
  } | {
681
700
  type: "modelDefaults";
682
- chat?: {
701
+ codegen?: {
683
702
  model?: {
684
703
  id: string;
685
704
  name: string;
686
705
  description: string;
687
706
  featured?: boolean | undefined;
688
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
689
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
690
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
707
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
708
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
709
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
691
710
  imageInput?: boolean | undefined;
692
711
  } | undefined;
693
712
  apiKey?: string | undefined;
694
713
  } | undefined;
695
- app?: {
714
+ runtime?: {
696
715
  model?: {
697
716
  id: string;
698
717
  name: string;
699
718
  description: string;
700
719
  featured?: boolean | undefined;
701
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
702
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
703
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
720
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
721
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
722
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
704
723
  imageInput?: boolean | undefined;
705
724
  } | undefined;
706
725
  apiKey?: string | undefined;
@@ -711,13 +730,46 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
711
730
  name: string;
712
731
  description: string;
713
732
  featured?: boolean | undefined;
714
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
715
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
716
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
733
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
734
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
735
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
736
+ imageInput?: boolean | undefined;
737
+ } | undefined;
738
+ apiKey?: string | undefined;
739
+ } | undefined;
740
+ chat?: {
741
+ model?: {
742
+ id: string;
743
+ name: string;
744
+ description: string;
745
+ featured?: boolean | undefined;
746
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
747
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
748
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
717
749
  imageInput?: boolean | undefined;
718
750
  } | undefined;
719
751
  apiKey?: string | undefined;
720
752
  } | undefined;
753
+ app?: {
754
+ model?: {
755
+ id: string;
756
+ name: string;
757
+ description: string;
758
+ featured?: boolean | undefined;
759
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
760
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
761
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
762
+ imageInput?: boolean | undefined;
763
+ } | undefined;
764
+ apiKey?: string | undefined;
765
+ } | undefined;
766
+ } | {
767
+ type: "defaultHandle";
768
+ ownerHandle: string;
769
+ } | {
770
+ type: "profile";
771
+ avatarCid?: string | undefined;
772
+ displayName?: string | undefined;
721
773
  } | {
722
774
  type: "notifications";
723
775
  buildComplete?: boolean | undefined;
@@ -812,9 +864,9 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
812
864
  name: string;
813
865
  description: string;
814
866
  featured?: boolean | undefined;
815
- preSelected?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
816
- fallbackFor?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
817
- supports?: ("app" | "chat" | "img" | "img-edit")[] | undefined;
867
+ preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
868
+ fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
869
+ supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
818
870
  imageInput?: boolean | undefined;
819
871
  }[];
820
872
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
@@ -2384,8 +2436,8 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2384
2436
  error?: unknown;
2385
2437
  };
2386
2438
  }, import("@vibes.diy/api-types").MsgBase<{
2387
- appSlug?: string | undefined;
2388
- ownerHandle?: string | undefined;
2439
+ appSlug: string;
2440
+ ownerHandle: string;
2389
2441
  type: "vibes.diy.req-ensure-app-slug";
2390
2442
  auth: {
2391
2443
  type: "clerk" | "device-id" | "ucan";
@@ -2528,8 +2580,8 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2528
2580
  refId: string;
2529
2581
  })[];
2530
2582
  } | {
2531
- appSlug: string;
2532
- ownerHandle: string;
2583
+ appSlug?: string | undefined;
2584
+ ownerHandle?: string | undefined;
2533
2585
  type: "vibes.diy.req-ensure-app-slug";
2534
2586
  auth: {
2535
2587
  type: "clerk" | "device-id" | "ucan";