@vibes.diy/api-types 4.5.4 → 5.0.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/app-documents.d.ts +12 -2
- package/app-documents.js +12 -1
- package/app-documents.js.map +1 -1
- package/app.d.ts +248 -194
- package/app.js +37 -0
- package/app.js.map +1 -1
- package/billing-msg.d.ts +78 -0
- package/billing-msg.js +67 -0
- package/billing-msg.js.map +1 -0
- package/cf-env.d.ts +4 -0
- package/email-unsubscribe.d.ts +3 -0
- package/email-unsubscribe.js +33 -0
- package/email-unsubscribe.js.map +1 -0
- package/home-feed.d.ts +79 -0
- package/home-feed.js +52 -0
- package/home-feed.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/invite.d.ts +14 -14
- package/notifications.d.ts +37 -1
- package/notifications.js +37 -1
- package/notifications.js.map +1 -1
- package/package.json +4 -4
- package/settings.d.ts +59 -24
- package/settings.js +14 -1
- package/settings.js.map +1 -1
- package/shard-policy.d.ts +7 -0
- package/shard-policy.js +7 -0
- package/shard-policy.js.map +1 -1
- package/types.d.ts +6 -0
- package/types.js +3 -0
- package/types.js.map +1 -1
- package/vibes-diy-api.d.ts +10 -1
- package/vibes-diy-api.js.map +1 -1
- package/vibes-diy-serv-ctx.js.map +1 -1
package/app-documents.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export declare const reqPutDoc: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2
2
|
type: "vibes.diy.req-put-doc";
|
|
3
|
-
auth
|
|
3
|
+
auth?: {
|
|
4
4
|
type: "clerk" | "device-id" | "ucan";
|
|
5
5
|
token: string;
|
|
6
|
-
};
|
|
6
|
+
} | undefined;
|
|
7
7
|
ownerHandle: string;
|
|
8
8
|
appSlug: string;
|
|
9
9
|
dbName: string;
|
|
10
10
|
doc: Record<string, unknown>;
|
|
11
11
|
docId?: string | undefined;
|
|
12
|
+
adminMode?: boolean | undefined;
|
|
12
13
|
}, {}>;
|
|
13
14
|
export type ReqPutDoc = typeof reqPutDoc.infer;
|
|
14
15
|
export declare function isReqPutDoc(obj: unknown): obj is ReqPutDoc;
|
|
@@ -94,6 +95,7 @@ export declare const reqDeleteDoc: import("arktype/internal/variants/object.ts")
|
|
|
94
95
|
appSlug: string;
|
|
95
96
|
dbName: string;
|
|
96
97
|
docId: string;
|
|
98
|
+
adminMode?: boolean | undefined;
|
|
97
99
|
}, {}>;
|
|
98
100
|
export type ReqDeleteDoc = typeof reqDeleteDoc.infer;
|
|
99
101
|
export declare function isReqDeleteDoc(obj: unknown): obj is ReqDeleteDoc;
|
|
@@ -147,6 +149,7 @@ export declare const reqListDbNames: import("arktype/internal/variants/object.ts
|
|
|
147
149
|
};
|
|
148
150
|
ownerHandle: string;
|
|
149
151
|
appSlug: string;
|
|
152
|
+
adminMode?: boolean | undefined;
|
|
150
153
|
}, {}>;
|
|
151
154
|
export type ReqListDbNames = typeof reqListDbNames.infer;
|
|
152
155
|
export declare function isReqListDbNames(obj: unknown): obj is ReqListDbNames;
|
|
@@ -217,6 +220,13 @@ export declare const evtCommentPosted: import("arktype/internal/variants/object.
|
|
|
217
220
|
}, {}>;
|
|
218
221
|
export type EvtCommentPosted = typeof evtCommentPosted.infer;
|
|
219
222
|
export declare function isEvtCommentPosted(obj: unknown): obj is EvtCommentPosted;
|
|
223
|
+
export declare const evtRemixCloneNotify: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
224
|
+
type: "vibes.diy.evt-remix-clone-notify";
|
|
225
|
+
ownerHandle: string;
|
|
226
|
+
appSlug: string;
|
|
227
|
+
}, {}>;
|
|
228
|
+
export type EvtRemixCloneNotify = typeof evtRemixCloneNotify.infer;
|
|
229
|
+
export declare function isEvtRemixCloneNotify(obj: unknown): obj is EvtRemixCloneNotify;
|
|
220
230
|
export declare const evtDmReceived: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
221
231
|
type: "vibes.diy.evt-dm-received";
|
|
222
232
|
senderUserId: string;
|
package/app-documents.js
CHANGED
|
@@ -2,12 +2,13 @@ import { type } from "arktype";
|
|
|
2
2
|
import { dashAuthType } from "./common.js";
|
|
3
3
|
export const reqPutDoc = type({
|
|
4
4
|
type: "'vibes.diy.req-put-doc'",
|
|
5
|
-
auth: dashAuthType,
|
|
5
|
+
"auth?": dashAuthType,
|
|
6
6
|
ownerHandle: "string",
|
|
7
7
|
appSlug: "string",
|
|
8
8
|
dbName: "string",
|
|
9
9
|
doc: "Record<string, unknown>",
|
|
10
10
|
"docId?": "string",
|
|
11
|
+
"adminMode?": "boolean",
|
|
11
12
|
});
|
|
12
13
|
export function isReqPutDoc(obj) {
|
|
13
14
|
return !(reqPutDoc(obj) instanceof type.errors);
|
|
@@ -82,6 +83,7 @@ export const reqDeleteDoc = type({
|
|
|
82
83
|
appSlug: "string",
|
|
83
84
|
dbName: "string",
|
|
84
85
|
docId: "string",
|
|
86
|
+
"adminMode?": "boolean",
|
|
85
87
|
});
|
|
86
88
|
export function isReqDeleteDoc(obj) {
|
|
87
89
|
return !(reqDeleteDoc(obj) instanceof type.errors);
|
|
@@ -132,6 +134,7 @@ export const reqListDbNames = type({
|
|
|
132
134
|
auth: dashAuthType,
|
|
133
135
|
ownerHandle: "string",
|
|
134
136
|
appSlug: "string",
|
|
137
|
+
"adminMode?": "boolean",
|
|
135
138
|
});
|
|
136
139
|
export function isReqListDbNames(obj) {
|
|
137
140
|
return !(reqListDbNames(obj) instanceof type.errors);
|
|
@@ -207,6 +210,14 @@ export const evtCommentPosted = type({
|
|
|
207
210
|
export function isEvtCommentPosted(obj) {
|
|
208
211
|
return !(evtCommentPosted(obj) instanceof type.errors);
|
|
209
212
|
}
|
|
213
|
+
export const evtRemixCloneNotify = type({
|
|
214
|
+
type: "'vibes.diy.evt-remix-clone-notify'",
|
|
215
|
+
ownerHandle: "string",
|
|
216
|
+
appSlug: "string",
|
|
217
|
+
});
|
|
218
|
+
export function isEvtRemixCloneNotify(obj) {
|
|
219
|
+
return !(evtRemixCloneNotify(obj) instanceof type.errors);
|
|
220
|
+
}
|
|
210
221
|
export const evtDmReceived = type({
|
|
211
222
|
type: "'vibes.diy.evt-dm-received'",
|
|
212
223
|
senderUserId: "string",
|
package/app-documents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-documents.js","sourceRoot":"","sources":["../jsr/app-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,yBAAyB;
|
|
1
|
+
{"version":3,"file":"app-documents.js","sourceRoot":"","sources":["../jsr/app-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,yBAAyB;IAM/B,OAAO,EAAE,YAAY;IACrB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,yBAAyB;IAC9B,QAAQ,EAAE,QAAQ;IAKlB,YAAY,EAAE,SAAS;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,yBAAyB;IAC/B,MAAM,EAAE,MAAM;IACd,EAAE,EAAE,QAAQ;CACb,CAAC,CAAC;AAEH,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,CAAC,CAAC,SA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AC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC"}
|
package/app.d.ts
CHANGED
|
@@ -393,200 +393,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
393
393
|
appSlug?: string | undefined;
|
|
394
394
|
ownerHandle?: string | undefined;
|
|
395
395
|
blocks: ({
|
|
396
|
-
blockId: string;
|
|
397
|
-
streamId: string;
|
|
398
|
-
seq: number;
|
|
399
|
-
blockNr: number;
|
|
400
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
401
|
-
type: "block.begin";
|
|
402
|
-
} | {
|
|
403
|
-
blockId: string;
|
|
404
|
-
streamId: string;
|
|
405
|
-
seq: number;
|
|
406
|
-
blockNr: number;
|
|
407
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
408
|
-
type: "block.end";
|
|
409
|
-
stats: {
|
|
410
|
-
toplevel: {
|
|
411
|
-
lines: number;
|
|
412
|
-
bytes: number;
|
|
413
|
-
cnt?: number | undefined;
|
|
414
|
-
};
|
|
415
|
-
code: {
|
|
416
|
-
lines: number;
|
|
417
|
-
bytes: number;
|
|
418
|
-
cnt?: number | undefined;
|
|
419
|
-
};
|
|
420
|
-
image: {
|
|
421
|
-
lines: number;
|
|
422
|
-
bytes: number;
|
|
423
|
-
cnt?: number | undefined;
|
|
424
|
-
};
|
|
425
|
-
total: {
|
|
426
|
-
lines: number;
|
|
427
|
-
bytes: number;
|
|
428
|
-
cnt?: number | undefined;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
usage: {
|
|
432
|
-
given: {
|
|
433
|
-
prompt_tokens: number;
|
|
434
|
-
completion_tokens: number;
|
|
435
|
-
total_tokens: number;
|
|
436
|
-
}[];
|
|
437
|
-
calculated: {
|
|
438
|
-
prompt_tokens: number;
|
|
439
|
-
completion_tokens: number;
|
|
440
|
-
total_tokens: number;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
fsRef?: ((In: {
|
|
444
|
-
appSlug: string;
|
|
445
|
-
ownerHandle?: string | undefined;
|
|
446
|
-
userSlug?: string | undefined;
|
|
447
|
-
mode: "dev" | "production";
|
|
448
|
-
fsId: string;
|
|
449
|
-
}) => import("arktype").Out<{
|
|
450
|
-
appSlug: string;
|
|
451
|
-
mode: "dev" | "production";
|
|
452
|
-
fsId: string;
|
|
453
|
-
ownerHandle: string;
|
|
454
|
-
}>) | undefined;
|
|
455
|
-
} | {
|
|
456
|
-
blockId: string;
|
|
457
|
-
streamId: string;
|
|
458
|
-
seq: number;
|
|
459
|
-
blockNr: number;
|
|
460
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
461
|
-
type: "block.toplevel.begin";
|
|
462
|
-
sectionId: string;
|
|
463
|
-
} | {
|
|
464
|
-
blockId: string;
|
|
465
|
-
streamId: string;
|
|
466
|
-
seq: number;
|
|
467
|
-
blockNr: number;
|
|
468
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
469
|
-
lineNr: number;
|
|
470
|
-
line: string;
|
|
471
|
-
type: "block.toplevel.line";
|
|
472
|
-
sectionId: string;
|
|
473
|
-
} | {
|
|
474
|
-
blockId: string;
|
|
475
|
-
streamId: string;
|
|
476
|
-
seq: number;
|
|
477
|
-
blockNr: number;
|
|
478
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
479
|
-
stats: {
|
|
480
|
-
lines: number;
|
|
481
|
-
bytes: number;
|
|
482
|
-
cnt?: number | undefined;
|
|
483
|
-
};
|
|
484
|
-
type: "block.toplevel.end";
|
|
485
|
-
sectionId: string;
|
|
486
|
-
} | {
|
|
487
|
-
blockId: string;
|
|
488
|
-
streamId: string;
|
|
489
|
-
seq: number;
|
|
490
|
-
blockNr: number;
|
|
491
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
492
|
-
type: "block.code.begin";
|
|
493
|
-
sectionId: string;
|
|
494
|
-
lang: string;
|
|
495
|
-
path?: string | undefined;
|
|
496
|
-
} | {
|
|
497
|
-
blockId: string;
|
|
498
|
-
streamId: string;
|
|
499
|
-
seq: number;
|
|
500
|
-
blockNr: number;
|
|
501
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
502
|
-
lineNr: number;
|
|
503
|
-
line: string;
|
|
504
|
-
type: "block.code.line";
|
|
505
|
-
sectionId: string;
|
|
506
|
-
lang: string;
|
|
507
|
-
path?: string | undefined;
|
|
508
|
-
} | {
|
|
509
|
-
blockId: string;
|
|
510
|
-
streamId: string;
|
|
511
|
-
seq: number;
|
|
512
|
-
blockNr: number;
|
|
513
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
514
|
-
stats: {
|
|
515
|
-
lines: number;
|
|
516
|
-
bytes: number;
|
|
517
|
-
cnt?: number | undefined;
|
|
518
|
-
};
|
|
519
|
-
type: "block.code.end";
|
|
520
|
-
sectionId: string;
|
|
521
|
-
lang: string;
|
|
522
|
-
path?: string | undefined;
|
|
523
|
-
} | {
|
|
524
|
-
blockId: string;
|
|
525
|
-
streamId: string;
|
|
526
|
-
seq: number;
|
|
527
|
-
blockNr: number;
|
|
528
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
529
|
-
type: "block.code.truncated";
|
|
530
|
-
sectionId: string;
|
|
531
|
-
lang: string;
|
|
532
|
-
path?: string | undefined;
|
|
533
|
-
reason: string;
|
|
534
|
-
kind: string;
|
|
535
|
-
truncatedAtLine: number;
|
|
536
|
-
errorCount: number;
|
|
537
|
-
} | {
|
|
538
|
-
blockId: string;
|
|
539
|
-
streamId: string;
|
|
540
|
-
seq: number;
|
|
541
|
-
blockNr: number;
|
|
542
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
543
|
-
stats: {
|
|
544
|
-
lines: number;
|
|
545
|
-
bytes: number;
|
|
546
|
-
cnt?: number | undefined;
|
|
547
|
-
};
|
|
548
|
-
type: "block.image";
|
|
549
|
-
sectionId: string;
|
|
550
|
-
url?: string | undefined;
|
|
551
|
-
uploadId?: string | undefined;
|
|
552
|
-
cid?: string | undefined;
|
|
553
|
-
mimeType?: string | undefined;
|
|
554
|
-
size?: number | undefined;
|
|
555
|
-
} | {
|
|
556
|
-
blockId: string;
|
|
557
|
-
streamId: string;
|
|
558
|
-
seq: number;
|
|
559
|
-
blockNr: number;
|
|
560
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
561
|
-
type: "block.stats";
|
|
562
|
-
stats: {
|
|
563
|
-
toplevel: {
|
|
564
|
-
lines: number;
|
|
565
|
-
bytes: number;
|
|
566
|
-
cnt?: number | undefined;
|
|
567
|
-
};
|
|
568
|
-
code: {
|
|
569
|
-
lines: number;
|
|
570
|
-
bytes: number;
|
|
571
|
-
cnt?: number | undefined;
|
|
572
|
-
};
|
|
573
|
-
image: {
|
|
574
|
-
lines: number;
|
|
575
|
-
bytes: number;
|
|
576
|
-
cnt?: number | undefined;
|
|
577
|
-
};
|
|
578
|
-
total: {
|
|
579
|
-
lines: number;
|
|
580
|
-
bytes: number;
|
|
581
|
-
cnt?: number | undefined;
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
usage: {
|
|
585
|
-
prompt_tokens: number;
|
|
586
|
-
completion_tokens: number;
|
|
587
|
-
total_tokens: number;
|
|
588
|
-
};
|
|
589
|
-
} | {
|
|
590
396
|
streamId: string;
|
|
591
397
|
chatId: string;
|
|
592
398
|
seq: number;
|
|
@@ -761,6 +567,200 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
761
567
|
fsId: string;
|
|
762
568
|
ownerHandle: string;
|
|
763
569
|
}>;
|
|
570
|
+
} | {
|
|
571
|
+
blockId: string;
|
|
572
|
+
streamId: string;
|
|
573
|
+
seq: number;
|
|
574
|
+
blockNr: number;
|
|
575
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
576
|
+
type: "block.begin";
|
|
577
|
+
} | {
|
|
578
|
+
blockId: string;
|
|
579
|
+
streamId: string;
|
|
580
|
+
seq: number;
|
|
581
|
+
blockNr: number;
|
|
582
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
583
|
+
type: "block.end";
|
|
584
|
+
stats: {
|
|
585
|
+
toplevel: {
|
|
586
|
+
lines: number;
|
|
587
|
+
bytes: number;
|
|
588
|
+
cnt?: number | undefined;
|
|
589
|
+
};
|
|
590
|
+
code: {
|
|
591
|
+
lines: number;
|
|
592
|
+
bytes: number;
|
|
593
|
+
cnt?: number | undefined;
|
|
594
|
+
};
|
|
595
|
+
image: {
|
|
596
|
+
lines: number;
|
|
597
|
+
bytes: number;
|
|
598
|
+
cnt?: number | undefined;
|
|
599
|
+
};
|
|
600
|
+
total: {
|
|
601
|
+
lines: number;
|
|
602
|
+
bytes: number;
|
|
603
|
+
cnt?: number | undefined;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
usage: {
|
|
607
|
+
given: {
|
|
608
|
+
prompt_tokens: number;
|
|
609
|
+
completion_tokens: number;
|
|
610
|
+
total_tokens: number;
|
|
611
|
+
}[];
|
|
612
|
+
calculated: {
|
|
613
|
+
prompt_tokens: number;
|
|
614
|
+
completion_tokens: number;
|
|
615
|
+
total_tokens: number;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
fsRef?: ((In: {
|
|
619
|
+
appSlug: string;
|
|
620
|
+
ownerHandle?: string | undefined;
|
|
621
|
+
userSlug?: string | undefined;
|
|
622
|
+
mode: "dev" | "production";
|
|
623
|
+
fsId: string;
|
|
624
|
+
}) => import("arktype").Out<{
|
|
625
|
+
appSlug: string;
|
|
626
|
+
mode: "dev" | "production";
|
|
627
|
+
fsId: string;
|
|
628
|
+
ownerHandle: string;
|
|
629
|
+
}>) | undefined;
|
|
630
|
+
} | {
|
|
631
|
+
blockId: string;
|
|
632
|
+
streamId: string;
|
|
633
|
+
seq: number;
|
|
634
|
+
blockNr: number;
|
|
635
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
636
|
+
type: "block.stats";
|
|
637
|
+
stats: {
|
|
638
|
+
toplevel: {
|
|
639
|
+
lines: number;
|
|
640
|
+
bytes: number;
|
|
641
|
+
cnt?: number | undefined;
|
|
642
|
+
};
|
|
643
|
+
code: {
|
|
644
|
+
lines: number;
|
|
645
|
+
bytes: number;
|
|
646
|
+
cnt?: number | undefined;
|
|
647
|
+
};
|
|
648
|
+
image: {
|
|
649
|
+
lines: number;
|
|
650
|
+
bytes: number;
|
|
651
|
+
cnt?: number | undefined;
|
|
652
|
+
};
|
|
653
|
+
total: {
|
|
654
|
+
lines: number;
|
|
655
|
+
bytes: number;
|
|
656
|
+
cnt?: number | undefined;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
usage: {
|
|
660
|
+
prompt_tokens: number;
|
|
661
|
+
completion_tokens: number;
|
|
662
|
+
total_tokens: number;
|
|
663
|
+
};
|
|
664
|
+
} | {
|
|
665
|
+
blockId: string;
|
|
666
|
+
streamId: string;
|
|
667
|
+
seq: number;
|
|
668
|
+
blockNr: number;
|
|
669
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
670
|
+
stats: {
|
|
671
|
+
lines: number;
|
|
672
|
+
bytes: number;
|
|
673
|
+
cnt?: number | undefined;
|
|
674
|
+
};
|
|
675
|
+
type: "block.image";
|
|
676
|
+
sectionId: string;
|
|
677
|
+
url?: string | undefined;
|
|
678
|
+
uploadId?: string | undefined;
|
|
679
|
+
cid?: string | undefined;
|
|
680
|
+
mimeType?: string | undefined;
|
|
681
|
+
size?: number | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
blockId: string;
|
|
684
|
+
streamId: string;
|
|
685
|
+
seq: number;
|
|
686
|
+
blockNr: number;
|
|
687
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
688
|
+
type: "block.code.begin";
|
|
689
|
+
sectionId: string;
|
|
690
|
+
lang: string;
|
|
691
|
+
path?: string | undefined;
|
|
692
|
+
} | {
|
|
693
|
+
blockId: string;
|
|
694
|
+
streamId: string;
|
|
695
|
+
seq: number;
|
|
696
|
+
blockNr: number;
|
|
697
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
698
|
+
lineNr: number;
|
|
699
|
+
line: string;
|
|
700
|
+
type: "block.code.line";
|
|
701
|
+
sectionId: string;
|
|
702
|
+
lang: string;
|
|
703
|
+
path?: string | undefined;
|
|
704
|
+
} | {
|
|
705
|
+
blockId: string;
|
|
706
|
+
streamId: string;
|
|
707
|
+
seq: number;
|
|
708
|
+
blockNr: number;
|
|
709
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
710
|
+
stats: {
|
|
711
|
+
lines: number;
|
|
712
|
+
bytes: number;
|
|
713
|
+
cnt?: number | undefined;
|
|
714
|
+
};
|
|
715
|
+
type: "block.code.end";
|
|
716
|
+
sectionId: string;
|
|
717
|
+
lang: string;
|
|
718
|
+
path?: string | undefined;
|
|
719
|
+
} | {
|
|
720
|
+
blockId: string;
|
|
721
|
+
streamId: string;
|
|
722
|
+
seq: number;
|
|
723
|
+
blockNr: number;
|
|
724
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
725
|
+
type: "block.code.truncated";
|
|
726
|
+
sectionId: string;
|
|
727
|
+
lang: string;
|
|
728
|
+
path?: string | undefined;
|
|
729
|
+
reason: string;
|
|
730
|
+
kind: string;
|
|
731
|
+
truncatedAtLine: number;
|
|
732
|
+
errorCount: number;
|
|
733
|
+
} | {
|
|
734
|
+
blockId: string;
|
|
735
|
+
streamId: string;
|
|
736
|
+
seq: number;
|
|
737
|
+
blockNr: number;
|
|
738
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
739
|
+
type: "block.toplevel.begin";
|
|
740
|
+
sectionId: string;
|
|
741
|
+
} | {
|
|
742
|
+
blockId: string;
|
|
743
|
+
streamId: string;
|
|
744
|
+
seq: number;
|
|
745
|
+
blockNr: number;
|
|
746
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
747
|
+
lineNr: number;
|
|
748
|
+
line: string;
|
|
749
|
+
type: "block.toplevel.line";
|
|
750
|
+
sectionId: string;
|
|
751
|
+
} | {
|
|
752
|
+
blockId: string;
|
|
753
|
+
streamId: string;
|
|
754
|
+
seq: number;
|
|
755
|
+
blockNr: number;
|
|
756
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
757
|
+
stats: {
|
|
758
|
+
lines: number;
|
|
759
|
+
bytes: number;
|
|
760
|
+
cnt?: number | undefined;
|
|
761
|
+
};
|
|
762
|
+
type: "block.toplevel.end";
|
|
763
|
+
sectionId: string;
|
|
764
764
|
})[];
|
|
765
765
|
}, {}>;
|
|
766
766
|
export type ResGetApplicationChat = typeof resGetApplicationChat.infer;
|
|
@@ -822,6 +822,9 @@ export declare const resGetAppByFsId: import("arktype/internal/variants/object.t
|
|
|
822
822
|
} | {
|
|
823
823
|
type: "remix-of";
|
|
824
824
|
srcFsId: string;
|
|
825
|
+
srcUserId?: string | undefined;
|
|
826
|
+
srcOwnerHandle?: string | undefined;
|
|
827
|
+
srcAppSlug?: string | undefined;
|
|
825
828
|
})[];
|
|
826
829
|
created: string;
|
|
827
830
|
}, {}>;
|
|
@@ -1135,4 +1138,55 @@ export declare const ResDeleteHandleBinding: import("arktype/internal/variants/o
|
|
|
1135
1138
|
}, {}>;
|
|
1136
1139
|
export type ResDeleteHandleBinding = typeof ResDeleteHandleBinding.infer;
|
|
1137
1140
|
export declare function isResDeleteHandleBinding(obj: unknown): obj is ResDeleteHandleBinding;
|
|
1141
|
+
export declare const reqListNotifications: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1142
|
+
type: "vibes.diy.req-list-notifications";
|
|
1143
|
+
auth: {
|
|
1144
|
+
type: "clerk" | "device-id" | "ucan";
|
|
1145
|
+
token: string;
|
|
1146
|
+
};
|
|
1147
|
+
appSlug?: string | undefined;
|
|
1148
|
+
ownerHandle?: string | undefined;
|
|
1149
|
+
notificationType?: "build-complete" | "build-failed" | "comment-posted" | "dm-received" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed" | undefined;
|
|
1150
|
+
cursor?: string | undefined;
|
|
1151
|
+
limit?: number | undefined;
|
|
1152
|
+
}, {}>;
|
|
1153
|
+
export type ReqListNotifications = typeof reqListNotifications.infer;
|
|
1154
|
+
export declare function isReqListNotifications(obj: unknown): obj is ReqListNotifications;
|
|
1155
|
+
export declare const resListNotifications: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1156
|
+
type: "vibes.diy.res-list-notifications";
|
|
1157
|
+
items: {
|
|
1158
|
+
id: string;
|
|
1159
|
+
userId: string;
|
|
1160
|
+
notificationType: "build-complete" | "build-failed" | "comment-posted" | "dm-received" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed";
|
|
1161
|
+
ownerHandle: string;
|
|
1162
|
+
appSlug: string;
|
|
1163
|
+
body: string;
|
|
1164
|
+
actorHandle?: string | null | undefined;
|
|
1165
|
+
actorUserId?: string | null | undefined;
|
|
1166
|
+
targetRef?: unknown;
|
|
1167
|
+
dedupeKey: string;
|
|
1168
|
+
created: string;
|
|
1169
|
+
readAt?: string | null | undefined;
|
|
1170
|
+
}[];
|
|
1171
|
+
nextCursor?: string | undefined;
|
|
1172
|
+
unreadCount: number;
|
|
1173
|
+
}, {}>;
|
|
1174
|
+
export type ResListNotifications = typeof resListNotifications.infer;
|
|
1175
|
+
export declare function isResListNotifications(obj: unknown): obj is ResListNotifications;
|
|
1176
|
+
export declare const reqMarkNotificationsRead: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1177
|
+
type: "vibes.diy.req-mark-notifications-read";
|
|
1178
|
+
auth: {
|
|
1179
|
+
type: "clerk" | "device-id" | "ucan";
|
|
1180
|
+
token: string;
|
|
1181
|
+
};
|
|
1182
|
+
ids?: string[] | undefined;
|
|
1183
|
+
}, {}>;
|
|
1184
|
+
export type ReqMarkNotificationsRead = typeof reqMarkNotificationsRead.infer;
|
|
1185
|
+
export declare function isReqMarkNotificationsRead(obj: unknown): obj is ReqMarkNotificationsRead;
|
|
1186
|
+
export declare const resMarkNotificationsRead: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1187
|
+
type: "vibes.diy.res-mark-notifications-read";
|
|
1188
|
+
ok: number;
|
|
1189
|
+
}, {}>;
|
|
1190
|
+
export type ResMarkNotificationsRead = typeof resMarkNotificationsRead.infer;
|
|
1191
|
+
export declare function isResMarkNotificationsRead(obj: unknown): obj is ResMarkNotificationsRead;
|
|
1138
1192
|
export {};
|
package/app.js
CHANGED
|
@@ -3,6 +3,7 @@ import { FileSystemRefFields } from "@vibes.diy/call-ai-v2";
|
|
|
3
3
|
import { fileSystemItem, MetaItem } from "./types.js";
|
|
4
4
|
import { dashAuthType, vibeUserEnv, vibeFile, FSMode, NeedOneAppSlugUserSlug } from "./common.js";
|
|
5
5
|
import { PromptAndBlockMsgs } from "./chat.js";
|
|
6
|
+
import { notificationRow, notificationTypeEnum } from "./notifications.js";
|
|
6
7
|
export const ReqEnsureAppSlug = type({
|
|
7
8
|
type: "'vibes.diy.req-ensure-app-slug'",
|
|
8
9
|
auth: dashAuthType,
|
|
@@ -377,4 +378,40 @@ export const ResDeleteHandleBinding = type({
|
|
|
377
378
|
export function isResDeleteHandleBinding(obj) {
|
|
378
379
|
return !(ResDeleteHandleBinding(obj) instanceof type.errors);
|
|
379
380
|
}
|
|
381
|
+
export const reqListNotifications = type({
|
|
382
|
+
type: "'vibes.diy.req-list-notifications'",
|
|
383
|
+
auth: dashAuthType,
|
|
384
|
+
"appSlug?": "string",
|
|
385
|
+
"ownerHandle?": "string",
|
|
386
|
+
"notificationType?": notificationTypeEnum,
|
|
387
|
+
"cursor?": "string",
|
|
388
|
+
"limit?": "number",
|
|
389
|
+
});
|
|
390
|
+
export function isReqListNotifications(obj) {
|
|
391
|
+
return !(reqListNotifications(obj) instanceof type.errors);
|
|
392
|
+
}
|
|
393
|
+
export const resListNotifications = type({
|
|
394
|
+
type: "'vibes.diy.res-list-notifications'",
|
|
395
|
+
items: notificationRow.array(),
|
|
396
|
+
"nextCursor?": "string",
|
|
397
|
+
unreadCount: "number",
|
|
398
|
+
});
|
|
399
|
+
export function isResListNotifications(obj) {
|
|
400
|
+
return !(resListNotifications(obj) instanceof type.errors);
|
|
401
|
+
}
|
|
402
|
+
export const reqMarkNotificationsRead = type({
|
|
403
|
+
type: "'vibes.diy.req-mark-notifications-read'",
|
|
404
|
+
auth: dashAuthType,
|
|
405
|
+
"ids?": "string[]",
|
|
406
|
+
});
|
|
407
|
+
export function isReqMarkNotificationsRead(obj) {
|
|
408
|
+
return !(reqMarkNotificationsRead(obj) instanceof type.errors);
|
|
409
|
+
}
|
|
410
|
+
export const resMarkNotificationsRead = type({
|
|
411
|
+
type: "'vibes.diy.res-mark-notifications-read'",
|
|
412
|
+
ok: "number",
|
|
413
|
+
});
|
|
414
|
+
export function isResMarkNotificationsRead(obj) {
|
|
415
|
+
return !(resMarkNotificationsRead(obj) instanceof type.errors);
|
|
416
|
+
}
|
|
380
417
|
//# sourceMappingURL=app.js.map
|