@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/app.d.ts ADDED
@@ -0,0 +1,558 @@
1
+ export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ appSlug: string;
3
+ userSlug: string;
4
+ type: "vibes.diy.req-ensure-app-slug";
5
+ auth: {
6
+ type: "clerk" | "device-id" | "ucan";
7
+ token: string;
8
+ };
9
+ mode: "dev" | "production";
10
+ env?: Record<string, string> | undefined;
11
+ fileSystem: ({
12
+ filename: string;
13
+ entryPoint?: boolean | undefined;
14
+ mimetype?: string | undefined;
15
+ type: "code-block";
16
+ lang: string;
17
+ content: string;
18
+ } | {
19
+ filename: string;
20
+ entryPoint?: boolean | undefined;
21
+ mimetype?: string | undefined;
22
+ type: "code-ref";
23
+ refId: string;
24
+ } | {
25
+ filename: string;
26
+ entryPoint?: boolean | undefined;
27
+ mimetype?: string | undefined;
28
+ type: "str-asset-block";
29
+ content: string;
30
+ } | {
31
+ filename: string;
32
+ entryPoint?: boolean | undefined;
33
+ mimetype?: string | undefined;
34
+ type: "str-asset-ref";
35
+ refId: string;
36
+ } | {
37
+ filename: string;
38
+ entryPoint?: boolean | undefined;
39
+ mimetype?: string | undefined;
40
+ type: "uint8-asset-block";
41
+ content: Uint8Array<ArrayBuffer>;
42
+ } | {
43
+ filename: string;
44
+ entryPoint?: boolean | undefined;
45
+ mimetype?: string | undefined;
46
+ type: "uint8-asset-ref";
47
+ refId: string;
48
+ })[];
49
+ } | {
50
+ appSlug?: string | undefined;
51
+ userSlug: string;
52
+ type: "vibes.diy.req-ensure-app-slug";
53
+ auth: {
54
+ type: "clerk" | "device-id" | "ucan";
55
+ token: string;
56
+ };
57
+ mode: "dev" | "production";
58
+ env?: Record<string, string> | undefined;
59
+ fileSystem: ({
60
+ filename: string;
61
+ entryPoint?: boolean | undefined;
62
+ mimetype?: string | undefined;
63
+ type: "code-block";
64
+ lang: string;
65
+ content: string;
66
+ } | {
67
+ filename: string;
68
+ entryPoint?: boolean | undefined;
69
+ mimetype?: string | undefined;
70
+ type: "code-ref";
71
+ refId: string;
72
+ } | {
73
+ filename: string;
74
+ entryPoint?: boolean | undefined;
75
+ mimetype?: string | undefined;
76
+ type: "str-asset-block";
77
+ content: string;
78
+ } | {
79
+ filename: string;
80
+ entryPoint?: boolean | undefined;
81
+ mimetype?: string | undefined;
82
+ type: "str-asset-ref";
83
+ refId: string;
84
+ } | {
85
+ filename: string;
86
+ entryPoint?: boolean | undefined;
87
+ mimetype?: string | undefined;
88
+ type: "uint8-asset-block";
89
+ content: Uint8Array<ArrayBuffer>;
90
+ } | {
91
+ filename: string;
92
+ entryPoint?: boolean | undefined;
93
+ mimetype?: string | undefined;
94
+ type: "uint8-asset-ref";
95
+ refId: string;
96
+ })[];
97
+ } | {
98
+ appSlug: string;
99
+ userSlug?: string | undefined;
100
+ type: "vibes.diy.req-ensure-app-slug";
101
+ auth: {
102
+ type: "clerk" | "device-id" | "ucan";
103
+ token: string;
104
+ };
105
+ mode: "dev" | "production";
106
+ env?: Record<string, string> | undefined;
107
+ fileSystem: ({
108
+ filename: string;
109
+ entryPoint?: boolean | undefined;
110
+ mimetype?: string | undefined;
111
+ type: "code-block";
112
+ lang: string;
113
+ content: string;
114
+ } | {
115
+ filename: string;
116
+ entryPoint?: boolean | undefined;
117
+ mimetype?: string | undefined;
118
+ type: "code-ref";
119
+ refId: string;
120
+ } | {
121
+ filename: string;
122
+ entryPoint?: boolean | undefined;
123
+ mimetype?: string | undefined;
124
+ type: "str-asset-block";
125
+ content: string;
126
+ } | {
127
+ filename: string;
128
+ entryPoint?: boolean | undefined;
129
+ mimetype?: string | undefined;
130
+ type: "str-asset-ref";
131
+ refId: string;
132
+ } | {
133
+ filename: string;
134
+ entryPoint?: boolean | undefined;
135
+ mimetype?: string | undefined;
136
+ type: "uint8-asset-block";
137
+ content: Uint8Array<ArrayBuffer>;
138
+ } | {
139
+ filename: string;
140
+ entryPoint?: boolean | undefined;
141
+ mimetype?: string | undefined;
142
+ type: "uint8-asset-ref";
143
+ refId: string;
144
+ })[];
145
+ } | {
146
+ appSlug?: string | undefined;
147
+ userSlug?: string | undefined;
148
+ type: "vibes.diy.req-ensure-app-slug";
149
+ auth: {
150
+ type: "clerk" | "device-id" | "ucan";
151
+ token: string;
152
+ };
153
+ mode: "dev" | "production";
154
+ env?: Record<string, string> | undefined;
155
+ fileSystem: ({
156
+ filename: string;
157
+ entryPoint?: boolean | undefined;
158
+ mimetype?: string | undefined;
159
+ type: "code-block";
160
+ lang: string;
161
+ content: string;
162
+ } | {
163
+ filename: string;
164
+ entryPoint?: boolean | undefined;
165
+ mimetype?: string | undefined;
166
+ type: "code-ref";
167
+ refId: string;
168
+ } | {
169
+ filename: string;
170
+ entryPoint?: boolean | undefined;
171
+ mimetype?: string | undefined;
172
+ type: "str-asset-block";
173
+ content: string;
174
+ } | {
175
+ filename: string;
176
+ entryPoint?: boolean | undefined;
177
+ mimetype?: string | undefined;
178
+ type: "str-asset-ref";
179
+ refId: string;
180
+ } | {
181
+ filename: string;
182
+ entryPoint?: boolean | undefined;
183
+ mimetype?: string | undefined;
184
+ type: "uint8-asset-block";
185
+ content: Uint8Array<ArrayBuffer>;
186
+ } | {
187
+ filename: string;
188
+ entryPoint?: boolean | undefined;
189
+ mimetype?: string | undefined;
190
+ type: "uint8-asset-ref";
191
+ refId: string;
192
+ })[];
193
+ }, {}>;
194
+ export type ReqEnsureAppSlug = typeof ReqEnsureAppSlug.infer;
195
+ export declare const resEnsureAppSlugOk: import("arktype/internal/variants/object.ts").ObjectType<{
196
+ appSlug: string;
197
+ userSlug: string;
198
+ mode: "dev" | "production";
199
+ fsId: string;
200
+ type: "vibes.diy.res-ensure-app-slug";
201
+ env: Record<string, string>;
202
+ fileSystem: {
203
+ fileName: string;
204
+ mimeType: string;
205
+ assetId: string;
206
+ assetURI: string;
207
+ transform?: {
208
+ type: "jsx-to-js";
209
+ transformedAssetId: string;
210
+ } | {
211
+ type: "imports";
212
+ importMapAssetId: string;
213
+ } | {
214
+ type: "import-map";
215
+ fromAssetIds: string[];
216
+ } | {
217
+ type: "transformed";
218
+ action: "jsx-to-js";
219
+ transformedAssetId: string;
220
+ } | undefined;
221
+ entryPoint?: boolean | undefined;
222
+ size: number;
223
+ }[];
224
+ }, {}>;
225
+ export type ResEnsureAppSlugOk = typeof resEnsureAppSlugOk.infer;
226
+ export declare const resEnsureAppSlugRequireLogin: import("arktype/internal/variants/object.ts").ObjectType<{
227
+ type: "vibes.diy.error";
228
+ message: string;
229
+ code: "require-login";
230
+ stack?: string[] | undefined;
231
+ }, {}>;
232
+ export type ResEnsureAppSlugRequireLogin = typeof resEnsureAppSlugRequireLogin.infer;
233
+ export declare function isResEnsureAppSlugOk(obj: unknown): obj is ResEnsureAppSlugOk;
234
+ export declare const resEnsureAppSlugUserSlugInvalid: import("arktype/internal/variants/object.ts").ObjectType<{
235
+ type: "vibes.diy.error";
236
+ message: string;
237
+ code: "user-slug-invalid";
238
+ stack?: string[] | undefined;
239
+ }, {}>;
240
+ export type ResEnsureAppSlugUserSlugInvalid = typeof resEnsureAppSlugUserSlugInvalid.infer;
241
+ export declare function isResEnsureAppSlugUserSlugInvalid(obj: unknown): obj is ResEnsureAppSlugUserSlugInvalid;
242
+ export declare const resEnsureAppSlugInvalid: import("arktype/internal/variants/object.ts").ObjectType<{
243
+ type: "vibes.diy.error";
244
+ message: string;
245
+ code: "app-slug-invalid";
246
+ stack?: string[] | undefined;
247
+ }, {}>;
248
+ export type ResEnsureAppSlugInvalid = typeof resEnsureAppSlugInvalid.infer;
249
+ declare const resEnsureAppSlugMaxAppsError: import("arktype/internal/variants/object.ts").ObjectType<{
250
+ type: "vibes.diy.error";
251
+ message: string;
252
+ code: "max-app-slugs-reached";
253
+ }, {}>;
254
+ export type ResEnsureAppSlugMaxAppsError = typeof resEnsureAppSlugMaxAppsError.infer;
255
+ export declare function isResEnsureAppSlugMaxAppsError(obj: unknown): obj is ResEnsureAppSlugMaxAppsError;
256
+ export declare function isResEnsureAppSlugInvalid(obj: unknown): obj is ResEnsureAppSlugInvalid;
257
+ export declare const resEnsureAppSlugError: import("arktype/internal/variants/object.ts").ObjectType<{
258
+ type: "vibes.diy.error";
259
+ message: string;
260
+ code: "require-login";
261
+ stack?: string[] | undefined;
262
+ } | {
263
+ type: "vibes.diy.error";
264
+ message: string;
265
+ code: "user-slug-invalid";
266
+ stack?: string[] | undefined;
267
+ } | {
268
+ type: "vibes.diy.error";
269
+ message: string;
270
+ code: "app-slug-invalid";
271
+ stack?: string[] | undefined;
272
+ } | {
273
+ type: "vibes.diy.error";
274
+ message: string;
275
+ code: "max-app-slugs-reached";
276
+ }, {}>;
277
+ export declare const resEnsureAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
278
+ appSlug: string;
279
+ userSlug: string;
280
+ mode: "dev" | "production";
281
+ fsId: string;
282
+ type: "vibes.diy.res-ensure-app-slug";
283
+ env: Record<string, string>;
284
+ fileSystem: {
285
+ fileName: string;
286
+ mimeType: string;
287
+ assetId: string;
288
+ assetURI: string;
289
+ transform?: {
290
+ type: "jsx-to-js";
291
+ transformedAssetId: string;
292
+ } | {
293
+ type: "imports";
294
+ importMapAssetId: string;
295
+ } | {
296
+ type: "import-map";
297
+ fromAssetIds: string[];
298
+ } | {
299
+ type: "transformed";
300
+ action: "jsx-to-js";
301
+ transformedAssetId: string;
302
+ } | undefined;
303
+ entryPoint?: boolean | undefined;
304
+ size: number;
305
+ }[];
306
+ } | {
307
+ type: "vibes.diy.error";
308
+ message: string;
309
+ code: "require-login";
310
+ stack?: string[] | undefined;
311
+ } | {
312
+ type: "vibes.diy.error";
313
+ message: string;
314
+ code: "user-slug-invalid";
315
+ stack?: string[] | undefined;
316
+ } | {
317
+ type: "vibes.diy.error";
318
+ message: string;
319
+ code: "app-slug-invalid";
320
+ stack?: string[] | undefined;
321
+ } | {
322
+ type: "vibes.diy.error";
323
+ message: string;
324
+ code: "max-app-slugs-reached";
325
+ }, {}>;
326
+ export type ResEnsureAppSlugError = typeof resEnsureAppSlugError.infer;
327
+ export declare function isResEnsureAppSlugError(obj: unknown): obj is ResEnsureAppSlugError;
328
+ export type ResEnsureAppSlug = typeof resEnsureAppSlug.infer;
329
+ export declare function isResEnsureAppSlug(obj: unknown): obj is ResEnsureAppSlug;
330
+ export declare const reqGetChatDetails: import("arktype/internal/variants/object.ts").ObjectType<{
331
+ type: "vibes.diy.req-get-chat-details";
332
+ auth: {
333
+ type: "clerk" | "device-id" | "ucan";
334
+ token: string;
335
+ };
336
+ userSlug: string;
337
+ appSlug: string;
338
+ }, {}>;
339
+ export type ReqGetChatDetails = typeof reqGetChatDetails.infer;
340
+ export declare const resChatDetailsPrompt: import("arktype/internal/variants/object.ts").ObjectType<{
341
+ prompt: string;
342
+ fsId: string;
343
+ created: string;
344
+ }, {}>;
345
+ export type ResChatDetailsPrompt = typeof resChatDetailsPrompt.infer;
346
+ export declare const resGetChatDetails: import("arktype/internal/variants/object.ts").ObjectType<{
347
+ type: "vibes.diy.res-get-chat-details";
348
+ chatId: string;
349
+ userSlug: string;
350
+ appSlug: string;
351
+ prompts: {
352
+ prompt: string;
353
+ fsId: string;
354
+ created: string;
355
+ }[];
356
+ }, {}>;
357
+ export type ResGetChatDetails = typeof resGetChatDetails.infer;
358
+ export declare function isResGetChatDetails(obj: unknown): obj is ResGetChatDetails;
359
+ export declare const reqGetAppByFsId: import("arktype/internal/variants/object.ts").ObjectType<{
360
+ type: "vibes.diy.req-get-app-by-fsid";
361
+ auth?: {
362
+ type: "clerk" | "device-id" | "ucan";
363
+ token: string;
364
+ } | undefined;
365
+ fsId?: string | undefined;
366
+ appSlug: string;
367
+ userSlug: string;
368
+ token?: string | undefined;
369
+ }, {}>;
370
+ export type ReqGetAppByFsId = typeof reqGetAppByFsId.infer;
371
+ export declare function isReqGetAppByFsId(obj: unknown): obj is ReqGetAppByFsId;
372
+ export declare const resGetAppByFsId: import("arktype/internal/variants/object.ts").ObjectType<{
373
+ type: "vibes.diy.res-get-app-by-fsid";
374
+ error?: string | undefined;
375
+ appSlug: string;
376
+ userSlug: string;
377
+ fsId?: string | undefined;
378
+ mode: "dev" | "production";
379
+ grant: "accepted-email-invite" | "granted-access.editor" | "granted-access.viewer" | "not-found" | "not-grant" | "owner" | "pending-request" | "public-access" | "req-login.invite" | "req-login.request" | "revoked-access";
380
+ releaseSeq: number;
381
+ env: Record<string, string>;
382
+ fileSystem: {
383
+ fileName: string;
384
+ mimeType: string;
385
+ assetId: string;
386
+ assetURI: string;
387
+ transform?: {
388
+ type: "jsx-to-js";
389
+ transformedAssetId: string;
390
+ } | {
391
+ type: "imports";
392
+ importMapAssetId: string;
393
+ } | {
394
+ type: "import-map";
395
+ fromAssetIds: string[];
396
+ } | {
397
+ type: "transformed";
398
+ action: "jsx-to-js";
399
+ transformedAssetId: string;
400
+ } | undefined;
401
+ entryPoint?: boolean | undefined;
402
+ size: number;
403
+ }[];
404
+ meta: ({
405
+ type: "screen-shot-ref";
406
+ assetUrl: string;
407
+ mime: string;
408
+ } | {
409
+ type: "title";
410
+ title: string;
411
+ })[];
412
+ created: string;
413
+ }, {}>;
414
+ export type ResGetAppByFsId = typeof resGetAppByFsId.infer;
415
+ export declare function isResGetAppByFsId(obj: unknown): obj is ResGetAppByFsId;
416
+ export declare const reqGetByUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
417
+ type: "vibes.diy.req-get-by-user-slug-app-slug";
418
+ auth: {
419
+ type: "clerk" | "device-id" | "ucan";
420
+ token: string;
421
+ };
422
+ userSlug: string;
423
+ appSlug: string;
424
+ }, {}>;
425
+ export declare const reqListUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
426
+ type: "vibes.diy.req-list-user-slug-app-slug";
427
+ auth: {
428
+ type: "clerk" | "device-id" | "ucan";
429
+ token: string;
430
+ };
431
+ userSlug?: string | undefined;
432
+ appSlug?: string | undefined;
433
+ }, {}>;
434
+ export type ReqListUserSlugAppSlug = typeof reqListUserSlugAppSlug.infer;
435
+ export declare function isReqListUserSlugAppSlug(obj: unknown): obj is ReqListUserSlugAppSlug;
436
+ export declare const resListUserSlugAppSlugItem: import("arktype/internal/variants/object.ts").ObjectType<{
437
+ userId: string;
438
+ userSlug: string;
439
+ appSlugs: string[];
440
+ }, {}>;
441
+ export type ResListUserSlugAppSlugItem = typeof resListUserSlugAppSlugItem.infer;
442
+ export declare const resListUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
443
+ type: "vibes.diy.res-list-user-slug-app-slug";
444
+ items: {
445
+ userId: string;
446
+ userSlug: string;
447
+ appSlugs: string[];
448
+ }[];
449
+ }, {}>;
450
+ export type ResListUserSlugAppSlug = typeof resListUserSlugAppSlug.infer;
451
+ export declare function isResListUserSlugAppSlug(obj: unknown): obj is ResListUserSlugAppSlug;
452
+ export type ReqGetByUserSlugAppSlug = typeof reqGetByUserSlugAppSlug.infer;
453
+ export declare function isReqGetByUserSlugAppSlug(obj: unknown): obj is ReqGetByUserSlugAppSlug;
454
+ export declare const resGetByUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
455
+ appSlug: string;
456
+ userSlug: string;
457
+ mode: "dev" | "production";
458
+ fsId: string;
459
+ type: "vibes.diy.res-get-by-user-slug-app-slug";
460
+ }, {}>;
461
+ export type ResGetByUserSlugAppSlug = typeof resGetByUserSlugAppSlug.infer;
462
+ export declare function isResGetByUserSlugAppSlug(obj: unknown): obj is ResGetByUserSlugAppSlug;
463
+ export declare const ResSetModeFs: import("arktype/internal/variants/object.ts").ObjectType<{
464
+ type: "vibes.diy.res-set-mode-fs";
465
+ fsId: string;
466
+ appSlug: string;
467
+ userSlug: string;
468
+ mode: "dev" | "production";
469
+ }, {}>;
470
+ export type ResSetModeFs = typeof ResSetModeFs.infer;
471
+ export declare function isResSetModeFs(obj: unknown): obj is ResSetModeFs;
472
+ export declare const ReqSetModeFs: import("arktype/internal/variants/object.ts").ObjectType<{
473
+ type: "vibes.diy.req-set-mode-fs";
474
+ auth: {
475
+ type: "clerk" | "device-id" | "ucan";
476
+ token: string;
477
+ };
478
+ fsId: string;
479
+ appSlug: string;
480
+ userSlug: string;
481
+ mode: "dev" | "production";
482
+ }, {}>;
483
+ export declare const reqSetModeFs: import("arktype/internal/variants/object.ts").ObjectType<{
484
+ type: "vibes.diy.req-set-mode-fs";
485
+ auth: {
486
+ type: "clerk" | "device-id" | "ucan";
487
+ token: string;
488
+ };
489
+ fsId: string;
490
+ appSlug: string;
491
+ userSlug: string;
492
+ mode: "dev" | "production";
493
+ }, {}>;
494
+ export type ReqSetModeFs = typeof ReqSetModeFs.infer;
495
+ export declare function isReqSetModeFs(obj: unknown): obj is ReqSetModeFs;
496
+ export declare const ReqListUserSlugBindings: import("arktype/internal/variants/object.ts").ObjectType<{
497
+ type: "vibes.diy.req-list-user-slug-bindings";
498
+ auth: {
499
+ type: "clerk" | "device-id" | "ucan";
500
+ token: string;
501
+ };
502
+ }, {}>;
503
+ export type ReqListUserSlugBindings = typeof ReqListUserSlugBindings.infer;
504
+ export declare function isReqListUserSlugBindings(obj: unknown): obj is ReqListUserSlugBindings;
505
+ export declare const UserSlugBindingItem: import("arktype/internal/variants/object.ts").ObjectType<{
506
+ userSlug: string;
507
+ tenant: string;
508
+ created: string;
509
+ appSlugCount: number;
510
+ }, {}>;
511
+ export type UserSlugBindingItem = typeof UserSlugBindingItem.infer;
512
+ export declare const ResListUserSlugBindings: import("arktype/internal/variants/object.ts").ObjectType<{
513
+ type: "vibes.diy.res-list-user-slug-bindings";
514
+ items: {
515
+ userSlug: string;
516
+ tenant: string;
517
+ created: string;
518
+ appSlugCount: number;
519
+ }[];
520
+ }, {}>;
521
+ export type ResListUserSlugBindings = typeof ResListUserSlugBindings.infer;
522
+ export declare function isResListUserSlugBindings(obj: unknown): obj is ResListUserSlugBindings;
523
+ export declare const ReqCreateUserSlugBinding: import("arktype/internal/variants/object.ts").ObjectType<{
524
+ type: "vibes.diy.req-create-user-slug-binding";
525
+ auth: {
526
+ type: "clerk" | "device-id" | "ucan";
527
+ token: string;
528
+ };
529
+ userSlug?: string | undefined;
530
+ }, {}>;
531
+ export type ReqCreateUserSlugBinding = typeof ReqCreateUserSlugBinding.infer;
532
+ export declare function isReqCreateUserSlugBinding(obj: unknown): obj is ReqCreateUserSlugBinding;
533
+ export declare const ResCreateUserSlugBinding: import("arktype/internal/variants/object.ts").ObjectType<{
534
+ type: "vibes.diy.res-create-user-slug-binding";
535
+ userSlug: string;
536
+ tenant: string;
537
+ created: string;
538
+ }, {}>;
539
+ export type ResCreateUserSlugBinding = typeof ResCreateUserSlugBinding.infer;
540
+ export declare function isResCreateUserSlugBinding(obj: unknown): obj is ResCreateUserSlugBinding;
541
+ export declare const ReqDeleteUserSlugBinding: import("arktype/internal/variants/object.ts").ObjectType<{
542
+ type: "vibes.diy.req-delete-user-slug-binding";
543
+ auth: {
544
+ type: "clerk" | "device-id" | "ucan";
545
+ token: string;
546
+ };
547
+ userSlug: string;
548
+ }, {}>;
549
+ export type ReqDeleteUserSlugBinding = typeof ReqDeleteUserSlugBinding.infer;
550
+ export declare function isReqDeleteUserSlugBinding(obj: unknown): obj is ReqDeleteUserSlugBinding;
551
+ export declare const ResDeleteUserSlugBinding: import("arktype/internal/variants/object.ts").ObjectType<{
552
+ type: "vibes.diy.res-delete-user-slug-binding";
553
+ userSlug: string;
554
+ deleted: boolean;
555
+ }, {}>;
556
+ export type ResDeleteUserSlugBinding = typeof ResDeleteUserSlugBinding.infer;
557
+ export declare function isResDeleteUserSlugBinding(obj: unknown): obj is ResDeleteUserSlugBinding;
558
+ export {};