@vibes.diy/api-types 2.0.0-dev-cli-d → 2.0.0-dev-cli-f

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/settings.d.ts ADDED
@@ -0,0 +1,1227 @@
1
+ export declare const sharingGrantItem: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ grant: "allow" | "deny";
3
+ appSlug: string;
4
+ userSlug: string;
5
+ dbName: string;
6
+ }, {}>;
7
+ export type SharingGrantItem = typeof sharingGrantItem.infer;
8
+ export declare const userSettingShareing: import("arktype/internal/variants/object.ts").ObjectType<{
9
+ type: "sharing";
10
+ grants: {
11
+ grant: "allow" | "deny";
12
+ appSlug: string;
13
+ userSlug: string;
14
+ dbName: string;
15
+ }[];
16
+ }, {}>;
17
+ export type UserSettingSharing = typeof userSettingShareing.infer;
18
+ export declare function isUserSettingSharing(obj: unknown): obj is UserSettingSharing;
19
+ export declare const userSettingModelDefaults: import("arktype/internal/variants/object.ts").ObjectType<{
20
+ type: "modelDefaults";
21
+ chat?: {
22
+ model?: {
23
+ id: string;
24
+ name: string;
25
+ description: string;
26
+ featured?: boolean | undefined;
27
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
28
+ } | undefined;
29
+ apiKey?: string | undefined;
30
+ } | undefined;
31
+ app?: {
32
+ model?: {
33
+ id: string;
34
+ name: string;
35
+ description: string;
36
+ featured?: boolean | undefined;
37
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
38
+ } | undefined;
39
+ apiKey?: string | undefined;
40
+ } | undefined;
41
+ img?: {
42
+ model?: {
43
+ id: string;
44
+ name: string;
45
+ description: string;
46
+ featured?: boolean | undefined;
47
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
48
+ } | undefined;
49
+ apiKey?: string | undefined;
50
+ } | undefined;
51
+ }, {}>;
52
+ export type UserSettingModelDefaults = typeof userSettingModelDefaults.infer;
53
+ export declare function isUserSettingModelDefaults(obj: unknown): obj is UserSettingModelDefaults;
54
+ export declare const userSettingDefaultUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{
55
+ type: "defaultUserSlug";
56
+ userSlug: string;
57
+ }, {}>;
58
+ export type UserSettingDefaultUserSlug = typeof userSettingDefaultUserSlug.infer;
59
+ export declare function isUserSettingDefaultUserSlug(obj: unknown): obj is UserSettingDefaultUserSlug;
60
+ export declare const userSettingItem: import("arktype/internal/variants/object.ts").ObjectType<{
61
+ type: "sharing";
62
+ grants: {
63
+ grant: "allow" | "deny";
64
+ appSlug: string;
65
+ userSlug: string;
66
+ dbName: string;
67
+ }[];
68
+ } | {
69
+ type: "modelDefaults";
70
+ chat?: {
71
+ model?: {
72
+ id: string;
73
+ name: string;
74
+ description: string;
75
+ featured?: boolean | undefined;
76
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
77
+ } | undefined;
78
+ apiKey?: string | undefined;
79
+ } | undefined;
80
+ app?: {
81
+ model?: {
82
+ id: string;
83
+ name: string;
84
+ description: string;
85
+ featured?: boolean | undefined;
86
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
87
+ } | undefined;
88
+ apiKey?: string | undefined;
89
+ } | undefined;
90
+ img?: {
91
+ model?: {
92
+ id: string;
93
+ name: string;
94
+ description: string;
95
+ featured?: boolean | undefined;
96
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
97
+ } | undefined;
98
+ apiKey?: string | undefined;
99
+ } | undefined;
100
+ } | {
101
+ type: "defaultUserSlug";
102
+ userSlug: string;
103
+ }, {}>;
104
+ export type UserSettingItem = typeof userSettingItem.infer;
105
+ export declare const reqEnsureUserSettings: import("arktype/internal/variants/object.ts").ObjectType<{
106
+ type: "vibes.diy.req-ensure-user-settings";
107
+ auth: {
108
+ type: "clerk" | "device-id" | "ucan";
109
+ token: string;
110
+ };
111
+ settings: ({
112
+ type: "sharing";
113
+ grants: {
114
+ grant: "allow" | "deny";
115
+ appSlug: string;
116
+ userSlug: string;
117
+ dbName: string;
118
+ }[];
119
+ } | {
120
+ type: "modelDefaults";
121
+ chat?: {
122
+ model?: {
123
+ id: string;
124
+ name: string;
125
+ description: string;
126
+ featured?: boolean | undefined;
127
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
128
+ } | undefined;
129
+ apiKey?: string | undefined;
130
+ } | undefined;
131
+ app?: {
132
+ model?: {
133
+ id: string;
134
+ name: string;
135
+ description: string;
136
+ featured?: boolean | undefined;
137
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
138
+ } | undefined;
139
+ apiKey?: string | undefined;
140
+ } | undefined;
141
+ img?: {
142
+ model?: {
143
+ id: string;
144
+ name: string;
145
+ description: string;
146
+ featured?: boolean | undefined;
147
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
148
+ } | undefined;
149
+ apiKey?: string | undefined;
150
+ } | undefined;
151
+ } | {
152
+ type: "defaultUserSlug";
153
+ userSlug: string;
154
+ })[];
155
+ }, {}>;
156
+ export type ReqEnsureUserSettings = typeof reqEnsureUserSettings.infer;
157
+ export declare const resEnsureUserSettings: import("arktype/internal/variants/object.ts").ObjectType<{
158
+ type: "vibes.diy.res-ensure-user-settings";
159
+ userId: string;
160
+ settings: ({
161
+ type: "sharing";
162
+ grants: {
163
+ grant: "allow" | "deny";
164
+ appSlug: string;
165
+ userSlug: string;
166
+ dbName: string;
167
+ }[];
168
+ } | {
169
+ type: "modelDefaults";
170
+ chat?: {
171
+ model?: {
172
+ id: string;
173
+ name: string;
174
+ description: string;
175
+ featured?: boolean | undefined;
176
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
177
+ } | undefined;
178
+ apiKey?: string | undefined;
179
+ } | undefined;
180
+ app?: {
181
+ model?: {
182
+ id: string;
183
+ name: string;
184
+ description: string;
185
+ featured?: boolean | undefined;
186
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
187
+ } | undefined;
188
+ apiKey?: string | undefined;
189
+ } | undefined;
190
+ img?: {
191
+ model?: {
192
+ id: string;
193
+ name: string;
194
+ description: string;
195
+ featured?: boolean | undefined;
196
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
197
+ } | undefined;
198
+ apiKey?: string | undefined;
199
+ } | undefined;
200
+ } | {
201
+ type: "defaultUserSlug";
202
+ userSlug: string;
203
+ })[];
204
+ updated: string;
205
+ created: string;
206
+ }, {}>;
207
+ export type ResEnsureUserSettings = typeof resEnsureUserSettings.infer;
208
+ export declare function isResEnsureUserSettings(obj: unknown): obj is ResEnsureUserSettings;
209
+ export declare const reqEnsureAppSettingsBase: import("arktype/internal/variants/object.ts").ObjectType<{
210
+ type: "vibes.diy.req-ensure-app-settings";
211
+ auth?: {
212
+ type: "clerk" | "device-id" | "ucan";
213
+ token: string;
214
+ } | undefined;
215
+ appSlug: string;
216
+ userSlug: string;
217
+ }, {}>;
218
+ export type ReqEnsureAppSettingsBase = typeof reqEnsureAppSettingsBase.infer;
219
+ export declare function isReqEnsureAppSettingsBase(obj: unknown): obj is ReqEnsureAppSettingsBase;
220
+ export declare const reqEnsureAppSettingsAcl: import("arktype/internal/variants/object.ts").ObjectType<{
221
+ type: "vibes.diy.req-ensure-app-settings";
222
+ auth?: {
223
+ type: "clerk" | "device-id" | "ucan";
224
+ token: string;
225
+ } | undefined;
226
+ appSlug: string;
227
+ userSlug: string;
228
+ aclEntry: {
229
+ entry: {
230
+ type: "app.acl.active.invite";
231
+ role: "editor";
232
+ state: "pending";
233
+ invite: {
234
+ email: string;
235
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
236
+ };
237
+ token: string;
238
+ } | {
239
+ type: "app.acl.active.invite";
240
+ role: "viewer";
241
+ state: "pending";
242
+ invite: {
243
+ email: string;
244
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
245
+ };
246
+ token: string;
247
+ } | {
248
+ type: "app.acl.active.invite";
249
+ role: "editor";
250
+ state: "accepted";
251
+ invite: {
252
+ email: string;
253
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
254
+ };
255
+ grant: {
256
+ ownerId: string;
257
+ key?: string | undefined;
258
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
259
+ };
260
+ tick: {
261
+ count: number;
262
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
263
+ };
264
+ } | {
265
+ type: "app.acl.active.invite";
266
+ role: "viewer";
267
+ state: "accepted";
268
+ invite: {
269
+ email: string;
270
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
271
+ };
272
+ grant: {
273
+ ownerId: string;
274
+ key?: string | undefined;
275
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
276
+ };
277
+ tick: {
278
+ count: number;
279
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
280
+ };
281
+ } | {
282
+ type: "app.acl.active.invite";
283
+ role: "editor";
284
+ state: "revoked";
285
+ invite: {
286
+ email: string;
287
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
288
+ };
289
+ grant: {
290
+ ownerId: string;
291
+ key?: string | undefined;
292
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
293
+ };
294
+ tick: {
295
+ count: number;
296
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
297
+ };
298
+ } | {
299
+ type: "app.acl.active.invite";
300
+ role: "viewer";
301
+ state: "revoked";
302
+ invite: {
303
+ email: string;
304
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
305
+ };
306
+ grant: {
307
+ ownerId: string;
308
+ key?: string | undefined;
309
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
310
+ };
311
+ tick: {
312
+ count: number;
313
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
314
+ };
315
+ } | {
316
+ type: "app.acl.active.request";
317
+ role: "viewer";
318
+ state: "pending";
319
+ request: {
320
+ key: string;
321
+ provider: "clerk" | "github" | "google";
322
+ msg?: string | undefined;
323
+ userId: string;
324
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
325
+ };
326
+ } | {
327
+ type: "app.acl.active.request";
328
+ role: "editor" | "viewer";
329
+ state: "approved";
330
+ request: {
331
+ key: string;
332
+ provider: "clerk" | "github" | "google";
333
+ msg?: string | undefined;
334
+ userId: string;
335
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
336
+ };
337
+ tick: {
338
+ count: number;
339
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
340
+ };
341
+ grant: {
342
+ ownerId: string;
343
+ key?: string | undefined;
344
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
345
+ };
346
+ } | {
347
+ type: "app.acl.active.request";
348
+ role: "editor" | "viewer";
349
+ state: "rejected";
350
+ request: {
351
+ key: string;
352
+ provider: "clerk" | "github" | "google";
353
+ msg?: string | undefined;
354
+ userId: string;
355
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
356
+ };
357
+ grant: {
358
+ ownerId: string;
359
+ key?: string | undefined;
360
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
361
+ };
362
+ };
363
+ op: "delete" | "upsert";
364
+ };
365
+ }, {}>;
366
+ export type ReqEnsureAppSettingsAcl = typeof reqEnsureAppSettingsAcl.infer;
367
+ export declare function isReqEnsureAppSettingsAcl(obj: unknown): obj is ReqEnsureAppSettingsAcl;
368
+ export declare const reqPublicAccess: import("arktype/internal/variants/object.ts").ObjectType<{
369
+ type: "vibes.diy.req-ensure-app-settings";
370
+ auth?: {
371
+ type: "clerk" | "device-id" | "ucan";
372
+ token: string;
373
+ } | undefined;
374
+ appSlug: string;
375
+ userSlug: string;
376
+ publicAccess: {
377
+ enable: boolean;
378
+ };
379
+ }, {}>;
380
+ export type ReqPublicAccess = typeof reqPublicAccess.infer;
381
+ export declare function isReqPublicAccess(obj: unknown): obj is ReqPublicAccess;
382
+ export declare const reqRequest: import("arktype/internal/variants/object.ts").ObjectType<{
383
+ type: "vibes.diy.req-ensure-app-settings";
384
+ auth?: {
385
+ type: "clerk" | "device-id" | "ucan";
386
+ token: string;
387
+ } | undefined;
388
+ appSlug: string;
389
+ userSlug: string;
390
+ request: {
391
+ enable: boolean;
392
+ autoAcceptViewRequest?: boolean | undefined;
393
+ };
394
+ }, {}>;
395
+ export type ReqRequest = typeof reqRequest.infer;
396
+ export declare function isReqRequest(obj: unknown): obj is ReqRequest;
397
+ export declare const reqEnsureAppSettingsTitle: import("arktype/internal/variants/object.ts").ObjectType<{
398
+ type: "vibes.diy.req-ensure-app-settings";
399
+ auth?: {
400
+ type: "clerk" | "device-id" | "ucan";
401
+ token: string;
402
+ } | undefined;
403
+ appSlug: string;
404
+ userSlug: string;
405
+ title: string;
406
+ }, {}>;
407
+ export type ReqEnsureAppSettingsTitle = typeof reqEnsureAppSettingsTitle.infer;
408
+ export declare function isReqEnsureAppSettingsTitle(obj: unknown): obj is ReqEnsureAppSettingsTitle;
409
+ export declare const reqEnsureAppSettingsApp: import("arktype/internal/variants/object.ts").ObjectType<{
410
+ type: "vibes.diy.req-ensure-app-settings";
411
+ auth?: {
412
+ type: "clerk" | "device-id" | "ucan";
413
+ token: string;
414
+ } | undefined;
415
+ appSlug: string;
416
+ userSlug: string;
417
+ app: {
418
+ model?: {
419
+ id: string;
420
+ name: string;
421
+ description: string;
422
+ featured?: boolean | undefined;
423
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
424
+ } | undefined;
425
+ apiKey?: string | undefined;
426
+ };
427
+ }, {}>;
428
+ export type ReqEnsureAppSettingsApp = typeof reqEnsureAppSettingsApp.infer;
429
+ export declare function isReqEnsureAppSettingsApp(obj: unknown): obj is ReqEnsureAppSettingsApp;
430
+ export declare const reqEnsureAppSettingsChat: import("arktype/internal/variants/object.ts").ObjectType<{
431
+ type: "vibes.diy.req-ensure-app-settings";
432
+ auth?: {
433
+ type: "clerk" | "device-id" | "ucan";
434
+ token: string;
435
+ } | undefined;
436
+ appSlug: string;
437
+ userSlug: string;
438
+ chat: {
439
+ model?: {
440
+ id: string;
441
+ name: string;
442
+ description: string;
443
+ featured?: boolean | undefined;
444
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
445
+ } | undefined;
446
+ apiKey?: string | undefined;
447
+ };
448
+ }, {}>;
449
+ export type ReqEnsureAppSettingsChat = typeof reqEnsureAppSettingsChat.infer;
450
+ export declare function isReqEnsureAppSettingsChat(obj: unknown): obj is ReqEnsureAppSettingsChat;
451
+ export declare const reqEnsureAppSettingsImg: import("arktype/internal/variants/object.ts").ObjectType<{
452
+ type: "vibes.diy.req-ensure-app-settings";
453
+ auth?: {
454
+ type: "clerk" | "device-id" | "ucan";
455
+ token: string;
456
+ } | undefined;
457
+ appSlug: string;
458
+ userSlug: string;
459
+ img: {
460
+ model?: {
461
+ id: string;
462
+ name: string;
463
+ description: string;
464
+ featured?: boolean | undefined;
465
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
466
+ } | undefined;
467
+ apiKey?: string | undefined;
468
+ };
469
+ }, {}>;
470
+ export type ReqEnsureAppSettingsImg = typeof reqEnsureAppSettingsImg.infer;
471
+ export declare function isReqEnsureAppSettingsImg(obj: unknown): obj is ReqEnsureAppSettingsImg;
472
+ export declare const reqEnsureAppSettingsEnv: import("arktype/internal/variants/object.ts").ObjectType<{
473
+ type: "vibes.diy.req-ensure-app-settings";
474
+ auth?: {
475
+ type: "clerk" | "device-id" | "ucan";
476
+ token: string;
477
+ } | undefined;
478
+ appSlug: string;
479
+ userSlug: string;
480
+ env: {
481
+ key: string;
482
+ value: string;
483
+ }[];
484
+ }, {}>;
485
+ export type ReqEnsureAppSettingsEnv = typeof reqEnsureAppSettingsEnv.infer;
486
+ export declare function isReqEnsureAppSettingsEnv(obj: unknown): obj is ReqEnsureAppSettingsEnv;
487
+ export type ReqEnsureAppSettings = ReqPublicAccess | ReqRequest | ReqEnsureAppSettingsTitle | ReqEnsureAppSettingsApp | ReqEnsureAppSettingsChat | ReqEnsureAppSettingsImg | ReqEnsureAppSettingsEnv | ReqEnsureAppSettingsBase;
488
+ export declare function isReqEnsureAppSettings(obj: unknown): obj is ReqEnsureAppSettings;
489
+ export declare const AppSettings: import("arktype/internal/variants/object.ts").ObjectType<{
490
+ entries: ({
491
+ type: "app.acl.active.invite";
492
+ role: "editor";
493
+ state: "pending";
494
+ invite: {
495
+ email: string;
496
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
497
+ };
498
+ token: string;
499
+ } | {
500
+ type: "app.acl.active.invite";
501
+ role: "viewer";
502
+ state: "pending";
503
+ invite: {
504
+ email: string;
505
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
506
+ };
507
+ token: string;
508
+ } | {
509
+ type: "app.acl.active.invite";
510
+ role: "editor";
511
+ state: "accepted";
512
+ invite: {
513
+ email: string;
514
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
515
+ };
516
+ grant: {
517
+ ownerId: string;
518
+ key?: string | undefined;
519
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
520
+ };
521
+ tick: {
522
+ count: number;
523
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
524
+ };
525
+ } | {
526
+ type: "app.acl.active.invite";
527
+ role: "viewer";
528
+ state: "accepted";
529
+ invite: {
530
+ email: string;
531
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
532
+ };
533
+ grant: {
534
+ ownerId: string;
535
+ key?: string | undefined;
536
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
537
+ };
538
+ tick: {
539
+ count: number;
540
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
541
+ };
542
+ } | {
543
+ type: "app.acl.active.invite";
544
+ role: "editor";
545
+ state: "revoked";
546
+ invite: {
547
+ email: string;
548
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
549
+ };
550
+ grant: {
551
+ ownerId: string;
552
+ key?: string | undefined;
553
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
554
+ };
555
+ tick: {
556
+ count: number;
557
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
558
+ };
559
+ } | {
560
+ type: "app.acl.active.invite";
561
+ role: "viewer";
562
+ state: "revoked";
563
+ invite: {
564
+ email: string;
565
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
566
+ };
567
+ grant: {
568
+ ownerId: string;
569
+ key?: string | undefined;
570
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
571
+ };
572
+ tick: {
573
+ count: number;
574
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
575
+ };
576
+ } | {
577
+ type: "app.acl.active.request";
578
+ role: "viewer";
579
+ state: "pending";
580
+ request: {
581
+ key: string;
582
+ provider: "clerk" | "github" | "google";
583
+ msg?: string | undefined;
584
+ userId: string;
585
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
586
+ };
587
+ } | {
588
+ type: "app.acl.active.request";
589
+ role: "editor" | "viewer";
590
+ state: "approved";
591
+ request: {
592
+ key: string;
593
+ provider: "clerk" | "github" | "google";
594
+ msg?: string | undefined;
595
+ userId: string;
596
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
597
+ };
598
+ tick: {
599
+ count: number;
600
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
601
+ };
602
+ grant: {
603
+ ownerId: string;
604
+ key?: string | undefined;
605
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
606
+ };
607
+ } | {
608
+ type: "app.acl.active.request";
609
+ role: "editor" | "viewer";
610
+ state: "rejected";
611
+ request: {
612
+ key: string;
613
+ provider: "clerk" | "github" | "google";
614
+ msg?: string | undefined;
615
+ userId: string;
616
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
617
+ };
618
+ grant: {
619
+ ownerId: string;
620
+ key?: string | undefined;
621
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
622
+ };
623
+ } | {
624
+ type: "app.public.access";
625
+ enable: boolean;
626
+ tick?: {
627
+ count: number;
628
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
629
+ } | undefined;
630
+ } | {
631
+ type: "app.request";
632
+ enable: boolean;
633
+ autoAcceptViewRequest?: boolean | null | undefined;
634
+ } | {
635
+ type: "active.title";
636
+ title: string;
637
+ } | {
638
+ type: "active.model";
639
+ param: {
640
+ model: {
641
+ id: string;
642
+ name: string;
643
+ description: string;
644
+ featured?: boolean | undefined;
645
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
646
+ };
647
+ apiKey?: string | undefined;
648
+ };
649
+ usage: "chat";
650
+ } | {
651
+ type: "active.model";
652
+ param: {
653
+ model: {
654
+ id: string;
655
+ name: string;
656
+ description: string;
657
+ featured?: boolean | undefined;
658
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
659
+ };
660
+ apiKey?: string | undefined;
661
+ };
662
+ usage: "app";
663
+ } | {
664
+ type: "active.model";
665
+ param: {
666
+ model: {
667
+ id: string;
668
+ name: string;
669
+ description: string;
670
+ featured?: boolean | undefined;
671
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
672
+ };
673
+ apiKey?: string | undefined;
674
+ };
675
+ usage: "img";
676
+ } | {
677
+ type: "active.env";
678
+ env: {
679
+ key: string;
680
+ value: string;
681
+ }[];
682
+ })[];
683
+ entry: {
684
+ settings: {
685
+ title?: string | undefined;
686
+ app?: {
687
+ model?: {
688
+ id: string;
689
+ name: string;
690
+ description: string;
691
+ featured?: boolean | undefined;
692
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
693
+ } | undefined;
694
+ apiKey?: string | undefined;
695
+ } | undefined;
696
+ chat?: {
697
+ model?: {
698
+ id: string;
699
+ name: string;
700
+ description: string;
701
+ featured?: boolean | undefined;
702
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
703
+ } | undefined;
704
+ apiKey?: string | undefined;
705
+ } | undefined;
706
+ img?: {
707
+ model?: {
708
+ id: string;
709
+ name: string;
710
+ description: string;
711
+ featured?: boolean | undefined;
712
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
713
+ } | undefined;
714
+ apiKey?: string | undefined;
715
+ } | undefined;
716
+ env: {
717
+ key: string;
718
+ value: string;
719
+ }[];
720
+ };
721
+ publicAccess?: {
722
+ type: "app.public.access";
723
+ enable: boolean;
724
+ tick?: {
725
+ count: number;
726
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
727
+ } | undefined;
728
+ } | undefined;
729
+ enableRequest?: {
730
+ type: "app.request";
731
+ enable: boolean;
732
+ autoAcceptViewRequest?: boolean | null | undefined;
733
+ } | undefined;
734
+ };
735
+ }, {}>;
736
+ export type AppSettings = typeof AppSettings.infer;
737
+ export declare const resEnsureAppSettings: import("arktype/internal/variants/object.ts").ObjectType<{
738
+ type: "vibes.diy.res-ensure-app-settings";
739
+ userId: string;
740
+ appSlug: string;
741
+ ledger: string;
742
+ userSlug: string;
743
+ tenant: string;
744
+ error?: string | undefined;
745
+ settings: {
746
+ entries: ({
747
+ type: "app.acl.active.invite";
748
+ role: "editor";
749
+ state: "pending";
750
+ invite: {
751
+ email: string;
752
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
753
+ };
754
+ token: string;
755
+ } | {
756
+ type: "app.acl.active.invite";
757
+ role: "viewer";
758
+ state: "pending";
759
+ invite: {
760
+ email: string;
761
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
762
+ };
763
+ token: string;
764
+ } | {
765
+ type: "app.acl.active.invite";
766
+ role: "editor";
767
+ state: "accepted";
768
+ invite: {
769
+ email: string;
770
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
771
+ };
772
+ grant: {
773
+ ownerId: string;
774
+ key?: string | undefined;
775
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
776
+ };
777
+ tick: {
778
+ count: number;
779
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
780
+ };
781
+ } | {
782
+ type: "app.acl.active.invite";
783
+ role: "viewer";
784
+ state: "accepted";
785
+ invite: {
786
+ email: string;
787
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
788
+ };
789
+ grant: {
790
+ ownerId: string;
791
+ key?: string | undefined;
792
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
793
+ };
794
+ tick: {
795
+ count: number;
796
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
797
+ };
798
+ } | {
799
+ type: "app.acl.active.invite";
800
+ role: "editor";
801
+ state: "revoked";
802
+ invite: {
803
+ email: string;
804
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
805
+ };
806
+ grant: {
807
+ ownerId: string;
808
+ key?: string | undefined;
809
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
810
+ };
811
+ tick: {
812
+ count: number;
813
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
814
+ };
815
+ } | {
816
+ type: "app.acl.active.invite";
817
+ role: "viewer";
818
+ state: "revoked";
819
+ invite: {
820
+ email: string;
821
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
822
+ };
823
+ grant: {
824
+ ownerId: string;
825
+ key?: string | undefined;
826
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
827
+ };
828
+ tick: {
829
+ count: number;
830
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
831
+ };
832
+ } | {
833
+ type: "app.acl.active.request";
834
+ role: "viewer";
835
+ state: "pending";
836
+ request: {
837
+ key: string;
838
+ provider: "clerk" | "github" | "google";
839
+ msg?: string | undefined;
840
+ userId: string;
841
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
842
+ };
843
+ } | {
844
+ type: "app.acl.active.request";
845
+ role: "editor" | "viewer";
846
+ state: "approved";
847
+ request: {
848
+ key: string;
849
+ provider: "clerk" | "github" | "google";
850
+ msg?: string | undefined;
851
+ userId: string;
852
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
853
+ };
854
+ tick: {
855
+ count: number;
856
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
857
+ };
858
+ grant: {
859
+ ownerId: string;
860
+ key?: string | undefined;
861
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
862
+ };
863
+ } | {
864
+ type: "app.acl.active.request";
865
+ role: "editor" | "viewer";
866
+ state: "rejected";
867
+ request: {
868
+ key: string;
869
+ provider: "clerk" | "github" | "google";
870
+ msg?: string | undefined;
871
+ userId: string;
872
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
873
+ };
874
+ grant: {
875
+ ownerId: string;
876
+ key?: string | undefined;
877
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
878
+ };
879
+ } | {
880
+ type: "app.public.access";
881
+ enable: boolean;
882
+ tick?: {
883
+ count: number;
884
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
885
+ } | undefined;
886
+ } | {
887
+ type: "app.request";
888
+ enable: boolean;
889
+ autoAcceptViewRequest?: boolean | null | undefined;
890
+ } | {
891
+ type: "active.title";
892
+ title: string;
893
+ } | {
894
+ type: "active.model";
895
+ param: {
896
+ model: {
897
+ id: string;
898
+ name: string;
899
+ description: string;
900
+ featured?: boolean | undefined;
901
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
902
+ };
903
+ apiKey?: string | undefined;
904
+ };
905
+ usage: "chat";
906
+ } | {
907
+ type: "active.model";
908
+ param: {
909
+ model: {
910
+ id: string;
911
+ name: string;
912
+ description: string;
913
+ featured?: boolean | undefined;
914
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
915
+ };
916
+ apiKey?: string | undefined;
917
+ };
918
+ usage: "app";
919
+ } | {
920
+ type: "active.model";
921
+ param: {
922
+ model: {
923
+ id: string;
924
+ name: string;
925
+ description: string;
926
+ featured?: boolean | undefined;
927
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
928
+ };
929
+ apiKey?: string | undefined;
930
+ };
931
+ usage: "img";
932
+ } | {
933
+ type: "active.env";
934
+ env: {
935
+ key: string;
936
+ value: string;
937
+ }[];
938
+ })[];
939
+ entry: {
940
+ settings: {
941
+ title?: string | undefined;
942
+ app?: {
943
+ model?: {
944
+ id: string;
945
+ name: string;
946
+ description: string;
947
+ featured?: boolean | undefined;
948
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
949
+ } | undefined;
950
+ apiKey?: string | undefined;
951
+ } | undefined;
952
+ chat?: {
953
+ model?: {
954
+ id: string;
955
+ name: string;
956
+ description: string;
957
+ featured?: boolean | undefined;
958
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
959
+ } | undefined;
960
+ apiKey?: string | undefined;
961
+ } | undefined;
962
+ img?: {
963
+ model?: {
964
+ id: string;
965
+ name: string;
966
+ description: string;
967
+ featured?: boolean | undefined;
968
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
969
+ } | undefined;
970
+ apiKey?: string | undefined;
971
+ } | undefined;
972
+ env: {
973
+ key: string;
974
+ value: string;
975
+ }[];
976
+ };
977
+ publicAccess?: {
978
+ type: "app.public.access";
979
+ enable: boolean;
980
+ tick?: {
981
+ count: number;
982
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
983
+ } | undefined;
984
+ } | undefined;
985
+ enableRequest?: {
986
+ type: "app.request";
987
+ enable: boolean;
988
+ autoAcceptViewRequest?: boolean | null | undefined;
989
+ } | undefined;
990
+ };
991
+ };
992
+ updated: string;
993
+ created: string;
994
+ }, {}>;
995
+ export type ResEnsureAppSettings = typeof resEnsureAppSettings.infer;
996
+ export declare function isResEnsureAppSettings(obj: unknown): obj is ResEnsureAppSettings;
997
+ export declare const reqListApplicationChats: import("arktype/internal/variants/object.ts").ObjectType<{
998
+ type: "vibes.diy.req-list-application-chats";
999
+ auth: {
1000
+ type: "clerk" | "device-id" | "ucan";
1001
+ token: string;
1002
+ };
1003
+ appSlug?: string | undefined;
1004
+ userSlug?: string | undefined;
1005
+ limit?: number | undefined;
1006
+ cursor?: string | undefined;
1007
+ }, {}>;
1008
+ export type ReqListApplicationChats = typeof reqListApplicationChats.infer;
1009
+ export declare const resListApplicationChatsItem: import("arktype/internal/variants/object.ts").ObjectType<{
1010
+ chatId: string;
1011
+ appSlug: string;
1012
+ userSlug: string;
1013
+ created: string;
1014
+ }, {}>;
1015
+ export type ResListApplicationChatsItem = typeof resListApplicationChatsItem.infer;
1016
+ export declare const resListApplicationChats: import("arktype/internal/variants/object.ts").ObjectType<{
1017
+ type: "vibes.diy.res-list-application-chats";
1018
+ items: {
1019
+ chatId: string;
1020
+ appSlug: string;
1021
+ userSlug: string;
1022
+ created: string;
1023
+ }[];
1024
+ nextCursor?: string | undefined;
1025
+ }, {}>;
1026
+ export type ResListApplicationChats = typeof resListApplicationChats.infer;
1027
+ export declare function isResListApplicationChats(obj: unknown): obj is ResListApplicationChats;
1028
+ export declare const evtAppSetting: import("arktype/internal/variants/object.ts").ObjectType<{
1029
+ type: "vibes.diy.evt-app-setting";
1030
+ userSlug: string;
1031
+ appSlug: string;
1032
+ settings: ({
1033
+ type: "app.acl.active.invite";
1034
+ role: "editor";
1035
+ state: "pending";
1036
+ invite: {
1037
+ email: string;
1038
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1039
+ };
1040
+ token: string;
1041
+ } | {
1042
+ type: "app.acl.active.invite";
1043
+ role: "viewer";
1044
+ state: "pending";
1045
+ invite: {
1046
+ email: string;
1047
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1048
+ };
1049
+ token: string;
1050
+ } | {
1051
+ type: "app.acl.active.invite";
1052
+ role: "editor";
1053
+ state: "accepted";
1054
+ invite: {
1055
+ email: string;
1056
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1057
+ };
1058
+ grant: {
1059
+ ownerId: string;
1060
+ key?: string | undefined;
1061
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1062
+ };
1063
+ tick: {
1064
+ count: number;
1065
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1066
+ };
1067
+ } | {
1068
+ type: "app.acl.active.invite";
1069
+ role: "viewer";
1070
+ state: "accepted";
1071
+ invite: {
1072
+ email: string;
1073
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1074
+ };
1075
+ grant: {
1076
+ ownerId: string;
1077
+ key?: string | undefined;
1078
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1079
+ };
1080
+ tick: {
1081
+ count: number;
1082
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1083
+ };
1084
+ } | {
1085
+ type: "app.acl.active.invite";
1086
+ role: "editor";
1087
+ state: "revoked";
1088
+ invite: {
1089
+ email: string;
1090
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1091
+ };
1092
+ grant: {
1093
+ ownerId: string;
1094
+ key?: string | undefined;
1095
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1096
+ };
1097
+ tick: {
1098
+ count: number;
1099
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1100
+ };
1101
+ } | {
1102
+ type: "app.acl.active.invite";
1103
+ role: "viewer";
1104
+ state: "revoked";
1105
+ invite: {
1106
+ email: string;
1107
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1108
+ };
1109
+ grant: {
1110
+ ownerId: string;
1111
+ key?: string | undefined;
1112
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1113
+ };
1114
+ tick: {
1115
+ count: number;
1116
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1117
+ };
1118
+ } | {
1119
+ type: "app.acl.active.request";
1120
+ role: "viewer";
1121
+ state: "pending";
1122
+ request: {
1123
+ key: string;
1124
+ provider: "clerk" | "github" | "google";
1125
+ msg?: string | undefined;
1126
+ userId: string;
1127
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1128
+ };
1129
+ } | {
1130
+ type: "app.acl.active.request";
1131
+ role: "editor" | "viewer";
1132
+ state: "approved";
1133
+ request: {
1134
+ key: string;
1135
+ provider: "clerk" | "github" | "google";
1136
+ msg?: string | undefined;
1137
+ userId: string;
1138
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1139
+ };
1140
+ tick: {
1141
+ count: number;
1142
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1143
+ };
1144
+ grant: {
1145
+ ownerId: string;
1146
+ key?: string | undefined;
1147
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1148
+ };
1149
+ } | {
1150
+ type: "app.acl.active.request";
1151
+ role: "editor" | "viewer";
1152
+ state: "rejected";
1153
+ request: {
1154
+ key: string;
1155
+ provider: "clerk" | "github" | "google";
1156
+ msg?: string | undefined;
1157
+ userId: string;
1158
+ created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1159
+ };
1160
+ grant: {
1161
+ ownerId: string;
1162
+ key?: string | undefined;
1163
+ on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1164
+ };
1165
+ } | {
1166
+ type: "app.public.access";
1167
+ enable: boolean;
1168
+ tick?: {
1169
+ count: number;
1170
+ last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1171
+ } | undefined;
1172
+ } | {
1173
+ type: "app.request";
1174
+ enable: boolean;
1175
+ autoAcceptViewRequest?: boolean | null | undefined;
1176
+ } | {
1177
+ type: "active.title";
1178
+ title: string;
1179
+ } | {
1180
+ type: "active.model";
1181
+ param: {
1182
+ model: {
1183
+ id: string;
1184
+ name: string;
1185
+ description: string;
1186
+ featured?: boolean | undefined;
1187
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
1188
+ };
1189
+ apiKey?: string | undefined;
1190
+ };
1191
+ usage: "chat";
1192
+ } | {
1193
+ type: "active.model";
1194
+ param: {
1195
+ model: {
1196
+ id: string;
1197
+ name: string;
1198
+ description: string;
1199
+ featured?: boolean | undefined;
1200
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
1201
+ };
1202
+ apiKey?: string | undefined;
1203
+ };
1204
+ usage: "app";
1205
+ } | {
1206
+ type: "active.model";
1207
+ param: {
1208
+ model: {
1209
+ id: string;
1210
+ name: string;
1211
+ description: string;
1212
+ featured?: boolean | undefined;
1213
+ preSelected?: ("app" | "chat" | "img")[] | undefined;
1214
+ };
1215
+ apiKey?: string | undefined;
1216
+ };
1217
+ usage: "img";
1218
+ } | {
1219
+ type: "active.env";
1220
+ env: {
1221
+ key: string;
1222
+ value: string;
1223
+ }[];
1224
+ })[];
1225
+ }, {}>;
1226
+ export type EvtAppSetting = typeof evtAppSetting.infer;
1227
+ export declare function isEvtAppSetting(obj: unknown): obj is EvtAppSetting;