@layernorm/overlay-agent-bridge-protocol 0.3.11 → 0.4.2

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.
@@ -0,0 +1,775 @@
1
+ import { z } from 'zod';
2
+ export declare const driveStartDescriptorSchema: z.ZodObject<{
3
+ version: z.ZodLiteral<1>;
4
+ sessionId: z.ZodString;
5
+ location: z.ZodEnum<["cloud", "approved-root"]>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ version: 1;
8
+ sessionId: string;
9
+ location: "cloud" | "approved-root";
10
+ }, {
11
+ version: 1;
12
+ sessionId: string;
13
+ location: "cloud" | "approved-root";
14
+ }>;
15
+ export declare const driveSavedEntrySchema: z.ZodObject<{
16
+ fileId: z.ZodString;
17
+ path: z.ZodEffects<z.ZodString, string, string>;
18
+ kind: z.ZodEnum<["file", "folder"]>;
19
+ }, "strict", z.ZodTypeAny, {
20
+ path: string;
21
+ fileId: string;
22
+ kind: "file" | "folder";
23
+ }, {
24
+ path: string;
25
+ fileId: string;
26
+ kind: "file" | "folder";
27
+ }>;
28
+ export declare const driveSyncStatusSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
29
+ state: z.ZodLiteral<"saving">;
30
+ }, "strict", z.ZodTypeAny, {
31
+ state: "saving";
32
+ }, {
33
+ state: "saving";
34
+ }>, z.ZodObject<{
35
+ state: z.ZodLiteral<"saved">;
36
+ fileCount: z.ZodNumber;
37
+ folderCount: z.ZodNumber;
38
+ entries: z.ZodArray<z.ZodObject<{
39
+ fileId: z.ZodString;
40
+ path: z.ZodEffects<z.ZodString, string, string>;
41
+ kind: z.ZodEnum<["file", "folder"]>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ path: string;
44
+ fileId: string;
45
+ kind: "file" | "folder";
46
+ }, {
47
+ path: string;
48
+ fileId: string;
49
+ kind: "file" | "folder";
50
+ }>, "many">;
51
+ }, "strict", z.ZodTypeAny, {
52
+ entries: {
53
+ path: string;
54
+ fileId: string;
55
+ kind: "file" | "folder";
56
+ }[];
57
+ state: "saved";
58
+ fileCount: number;
59
+ folderCount: number;
60
+ }, {
61
+ entries: {
62
+ path: string;
63
+ fileId: string;
64
+ kind: "file" | "folder";
65
+ }[];
66
+ state: "saved";
67
+ fileCount: number;
68
+ folderCount: number;
69
+ }>, z.ZodObject<{
70
+ state: z.ZodLiteral<"unsaved">;
71
+ code: z.ZodString;
72
+ message: z.ZodString;
73
+ }, "strict", z.ZodTypeAny, {
74
+ code: string;
75
+ message: string;
76
+ state: "unsaved";
77
+ }, {
78
+ code: string;
79
+ message: string;
80
+ state: "unsaved";
81
+ }>]>, {
82
+ state: "saving";
83
+ } | {
84
+ entries: {
85
+ path: string;
86
+ fileId: string;
87
+ kind: "file" | "folder";
88
+ }[];
89
+ state: "saved";
90
+ fileCount: number;
91
+ folderCount: number;
92
+ } | {
93
+ code: string;
94
+ message: string;
95
+ state: "unsaved";
96
+ }, {
97
+ state: "saving";
98
+ } | {
99
+ entries: {
100
+ path: string;
101
+ fileId: string;
102
+ kind: "file" | "folder";
103
+ }[];
104
+ state: "saved";
105
+ fileCount: number;
106
+ folderCount: number;
107
+ } | {
108
+ code: string;
109
+ message: string;
110
+ state: "unsaved";
111
+ }>;
112
+ export type DriveStartDescriptor = z.infer<typeof driveStartDescriptorSchema>;
113
+ export type DriveSavedEntry = z.infer<typeof driveSavedEntrySchema>;
114
+ export type DriveSyncStatus = z.infer<typeof driveSyncStatusSchema>;
115
+ /** Metadata operations intentionally select only identity/revision from a full manifest entry. */
116
+ export declare const driveMetadataEntrySchema: z.ZodObject<{
117
+ kind: z.ZodEnum<["file", "folder"]>;
118
+ fileId: z.ZodString;
119
+ path: z.ZodString;
120
+ updatedAt: z.ZodNumber;
121
+ }, "strip", z.ZodTypeAny, {
122
+ path: string;
123
+ fileId: string;
124
+ kind: "file" | "folder";
125
+ updatedAt: number;
126
+ }, {
127
+ path: string;
128
+ fileId: string;
129
+ kind: "file" | "folder";
130
+ updatedAt: number;
131
+ }>;
132
+ export declare const driveMetadataBodySchema: z.ZodObject<{
133
+ action: z.ZodLiteral<"metadata">;
134
+ requestId: z.ZodString;
135
+ operation: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
136
+ kind: z.ZodLiteral<"mkdir">;
137
+ name: z.ZodString;
138
+ parentId: z.ZodOptional<z.ZodString>;
139
+ }, "strict", z.ZodTypeAny, {
140
+ kind: "mkdir";
141
+ name: string;
142
+ parentId?: string | undefined;
143
+ }, {
144
+ kind: "mkdir";
145
+ name: string;
146
+ parentId?: string | undefined;
147
+ }>, z.ZodObject<{
148
+ name: z.ZodString;
149
+ parentId: z.ZodOptional<z.ZodString>;
150
+ entry: z.ZodObject<{
151
+ kind: z.ZodEnum<["file", "folder"]>;
152
+ fileId: z.ZodString;
153
+ path: z.ZodString;
154
+ updatedAt: z.ZodNumber;
155
+ }, "strip", z.ZodTypeAny, {
156
+ path: string;
157
+ fileId: string;
158
+ kind: "file" | "folder";
159
+ updatedAt: number;
160
+ }, {
161
+ path: string;
162
+ fileId: string;
163
+ kind: "file" | "folder";
164
+ updatedAt: number;
165
+ }>;
166
+ metadataMac: z.ZodString;
167
+ kind: z.ZodLiteral<"move">;
168
+ }, "strict", z.ZodTypeAny, {
169
+ kind: "move";
170
+ name: string;
171
+ entry: {
172
+ path: string;
173
+ fileId: string;
174
+ kind: "file" | "folder";
175
+ updatedAt: number;
176
+ };
177
+ metadataMac: string;
178
+ parentId?: string | undefined;
179
+ }, {
180
+ kind: "move";
181
+ name: string;
182
+ entry: {
183
+ path: string;
184
+ fileId: string;
185
+ kind: "file" | "folder";
186
+ updatedAt: number;
187
+ };
188
+ metadataMac: string;
189
+ parentId?: string | undefined;
190
+ }>, z.ZodObject<{
191
+ entry: z.ZodObject<{
192
+ kind: z.ZodEnum<["file", "folder"]>;
193
+ fileId: z.ZodString;
194
+ path: z.ZodString;
195
+ updatedAt: z.ZodNumber;
196
+ }, "strip", z.ZodTypeAny, {
197
+ path: string;
198
+ fileId: string;
199
+ kind: "file" | "folder";
200
+ updatedAt: number;
201
+ }, {
202
+ path: string;
203
+ fileId: string;
204
+ kind: "file" | "folder";
205
+ updatedAt: number;
206
+ }>;
207
+ metadataMac: z.ZodString;
208
+ kind: z.ZodLiteral<"remove">;
209
+ }, "strict", z.ZodTypeAny, {
210
+ kind: "remove";
211
+ entry: {
212
+ path: string;
213
+ fileId: string;
214
+ kind: "file" | "folder";
215
+ updatedAt: number;
216
+ };
217
+ metadataMac: string;
218
+ }, {
219
+ kind: "remove";
220
+ entry: {
221
+ path: string;
222
+ fileId: string;
223
+ kind: "file" | "folder";
224
+ updatedAt: number;
225
+ };
226
+ metadataMac: string;
227
+ }>]>;
228
+ }, "strict", z.ZodTypeAny, {
229
+ action: "metadata";
230
+ requestId: string;
231
+ operation: {
232
+ kind: "mkdir";
233
+ name: string;
234
+ parentId?: string | undefined;
235
+ } | {
236
+ kind: "move";
237
+ name: string;
238
+ entry: {
239
+ path: string;
240
+ fileId: string;
241
+ kind: "file" | "folder";
242
+ updatedAt: number;
243
+ };
244
+ metadataMac: string;
245
+ parentId?: string | undefined;
246
+ } | {
247
+ kind: "remove";
248
+ entry: {
249
+ path: string;
250
+ fileId: string;
251
+ kind: "file" | "folder";
252
+ updatedAt: number;
253
+ };
254
+ metadataMac: string;
255
+ };
256
+ }, {
257
+ action: "metadata";
258
+ requestId: string;
259
+ operation: {
260
+ kind: "mkdir";
261
+ name: string;
262
+ parentId?: string | undefined;
263
+ } | {
264
+ kind: "move";
265
+ name: string;
266
+ entry: {
267
+ path: string;
268
+ fileId: string;
269
+ kind: "file" | "folder";
270
+ updatedAt: number;
271
+ };
272
+ metadataMac: string;
273
+ parentId?: string | undefined;
274
+ } | {
275
+ kind: "remove";
276
+ entry: {
277
+ path: string;
278
+ fileId: string;
279
+ kind: "file" | "folder";
280
+ updatedAt: number;
281
+ };
282
+ metadataMac: string;
283
+ };
284
+ }>;
285
+ export declare const driveMetadataResultSchema: z.ZodObject<{
286
+ fileId: z.ZodString;
287
+ updatedAt: z.ZodNumber;
288
+ }, "strict", z.ZodTypeAny, {
289
+ fileId: string;
290
+ updatedAt: number;
291
+ }, {
292
+ fileId: string;
293
+ updatedAt: number;
294
+ }>;
295
+ export declare const driveUploadBodySchema: z.ZodObject<{
296
+ action: z.ZodLiteral<"upload">;
297
+ requestId: z.ZodString;
298
+ operation: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
299
+ kind: z.ZodLiteral<"create">;
300
+ name: z.ZodString;
301
+ parentId: z.ZodOptional<z.ZodString>;
302
+ }, "strict", z.ZodTypeAny, {
303
+ kind: "create";
304
+ name: string;
305
+ parentId?: string | undefined;
306
+ }, {
307
+ kind: "create";
308
+ name: string;
309
+ parentId?: string | undefined;
310
+ }>, z.ZodObject<{
311
+ entry: z.ZodObject<{
312
+ kind: z.ZodEnum<["file", "folder"]>;
313
+ fileId: z.ZodString;
314
+ path: z.ZodString;
315
+ updatedAt: z.ZodNumber;
316
+ }, "strip", z.ZodTypeAny, {
317
+ path: string;
318
+ fileId: string;
319
+ kind: "file" | "folder";
320
+ updatedAt: number;
321
+ }, {
322
+ path: string;
323
+ fileId: string;
324
+ kind: "file" | "folder";
325
+ updatedAt: number;
326
+ }>;
327
+ metadataMac: z.ZodString;
328
+ kind: z.ZodLiteral<"replace">;
329
+ }, "strict", z.ZodTypeAny, {
330
+ kind: "replace";
331
+ entry: {
332
+ path: string;
333
+ fileId: string;
334
+ kind: "file" | "folder";
335
+ updatedAt: number;
336
+ };
337
+ metadataMac: string;
338
+ }, {
339
+ kind: "replace";
340
+ entry: {
341
+ path: string;
342
+ fileId: string;
343
+ kind: "file" | "folder";
344
+ updatedAt: number;
345
+ };
346
+ metadataMac: string;
347
+ }>]>;
348
+ sha256: z.ZodString;
349
+ sizeBytes: z.ZodNumber;
350
+ mimeType: z.ZodString;
351
+ }, "strict", z.ZodTypeAny, {
352
+ action: "upload";
353
+ requestId: string;
354
+ operation: {
355
+ kind: "create";
356
+ name: string;
357
+ parentId?: string | undefined;
358
+ } | {
359
+ kind: "replace";
360
+ entry: {
361
+ path: string;
362
+ fileId: string;
363
+ kind: "file" | "folder";
364
+ updatedAt: number;
365
+ };
366
+ metadataMac: string;
367
+ };
368
+ sha256: string;
369
+ sizeBytes: number;
370
+ mimeType: string;
371
+ }, {
372
+ action: "upload";
373
+ requestId: string;
374
+ operation: {
375
+ kind: "create";
376
+ name: string;
377
+ parentId?: string | undefined;
378
+ } | {
379
+ kind: "replace";
380
+ entry: {
381
+ path: string;
382
+ fileId: string;
383
+ kind: "file" | "folder";
384
+ updatedAt: number;
385
+ };
386
+ metadataMac: string;
387
+ };
388
+ sha256: string;
389
+ sizeBytes: number;
390
+ mimeType: string;
391
+ }>;
392
+ export declare const driveCommitBodySchema: z.ZodObject<{
393
+ action: z.ZodLiteral<"commit">;
394
+ uploadId: z.ZodString;
395
+ }, "strict", z.ZodTypeAny, {
396
+ action: "commit";
397
+ uploadId: string;
398
+ }, {
399
+ action: "commit";
400
+ uploadId: string;
401
+ }>;
402
+ export declare const driveContentResultSchema: z.ZodObject<{
403
+ fileId: z.ZodString;
404
+ updatedAt: z.ZodNumber;
405
+ name: z.ZodString;
406
+ conflict: z.ZodBoolean;
407
+ objectStored: z.ZodBoolean;
408
+ sha256: z.ZodString;
409
+ sizeBytes: z.ZodNumber;
410
+ }, "strict", z.ZodTypeAny, {
411
+ fileId: string;
412
+ updatedAt: number;
413
+ name: string;
414
+ sha256: string;
415
+ sizeBytes: number;
416
+ conflict: boolean;
417
+ objectStored: boolean;
418
+ }, {
419
+ fileId: string;
420
+ updatedAt: number;
421
+ name: string;
422
+ sha256: string;
423
+ sizeBytes: number;
424
+ conflict: boolean;
425
+ objectStored: boolean;
426
+ }>;
427
+ export declare const driveUploadResponseSchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
428
+ state: z.ZodLiteral<"pending">;
429
+ uploadId: z.ZodString;
430
+ url: z.ZodString;
431
+ headers: z.ZodObject<{
432
+ 'content-type': z.ZodString;
433
+ 'x-amz-checksum-sha256': z.ZodString;
434
+ }, "strict", z.ZodTypeAny, {
435
+ 'content-type': string;
436
+ 'x-amz-checksum-sha256': string;
437
+ }, {
438
+ 'content-type': string;
439
+ 'x-amz-checksum-sha256': string;
440
+ }>;
441
+ sizeBytes: z.ZodNumber;
442
+ expiresIn: z.ZodNumber;
443
+ }, "strict", z.ZodTypeAny, {
444
+ state: "pending";
445
+ sizeBytes: number;
446
+ uploadId: string;
447
+ url: string;
448
+ headers: {
449
+ 'content-type': string;
450
+ 'x-amz-checksum-sha256': string;
451
+ };
452
+ expiresIn: number;
453
+ }, {
454
+ state: "pending";
455
+ sizeBytes: number;
456
+ uploadId: string;
457
+ url: string;
458
+ headers: {
459
+ 'content-type': string;
460
+ 'x-amz-checksum-sha256': string;
461
+ };
462
+ expiresIn: number;
463
+ }>, z.ZodObject<{
464
+ state: z.ZodLiteral<"committed">;
465
+ uploadId: z.ZodString;
466
+ result: z.ZodObject<{
467
+ fileId: z.ZodString;
468
+ updatedAt: z.ZodNumber;
469
+ name: z.ZodString;
470
+ conflict: z.ZodBoolean;
471
+ objectStored: z.ZodBoolean;
472
+ sha256: z.ZodString;
473
+ sizeBytes: z.ZodNumber;
474
+ }, "strict", z.ZodTypeAny, {
475
+ fileId: string;
476
+ updatedAt: number;
477
+ name: string;
478
+ sha256: string;
479
+ sizeBytes: number;
480
+ conflict: boolean;
481
+ objectStored: boolean;
482
+ }, {
483
+ fileId: string;
484
+ updatedAt: number;
485
+ name: string;
486
+ sha256: string;
487
+ sizeBytes: number;
488
+ conflict: boolean;
489
+ objectStored: boolean;
490
+ }>;
491
+ }, "strict", z.ZodTypeAny, {
492
+ state: "committed";
493
+ uploadId: string;
494
+ result: {
495
+ fileId: string;
496
+ updatedAt: number;
497
+ name: string;
498
+ sha256: string;
499
+ sizeBytes: number;
500
+ conflict: boolean;
501
+ objectStored: boolean;
502
+ };
503
+ }, {
504
+ state: "committed";
505
+ uploadId: string;
506
+ result: {
507
+ fileId: string;
508
+ updatedAt: number;
509
+ name: string;
510
+ sha256: string;
511
+ sizeBytes: number;
512
+ conflict: boolean;
513
+ objectStored: boolean;
514
+ };
515
+ }>]>;
516
+ export declare const driveReadyEntrySchema: z.ZodObject<{
517
+ kind: z.ZodLiteral<"file">;
518
+ hydration: z.ZodLiteral<"ready">;
519
+ sizeBytes: z.ZodNumber;
520
+ sha256: z.ZodString;
521
+ metadataMac: z.ZodString;
522
+ downloadMac: z.ZodString;
523
+ fileId: z.ZodString;
524
+ path: z.ZodString;
525
+ updatedAt: z.ZodNumber;
526
+ }, "strict", z.ZodTypeAny, {
527
+ path: string;
528
+ fileId: string;
529
+ kind: "file";
530
+ updatedAt: number;
531
+ metadataMac: string;
532
+ sha256: string;
533
+ sizeBytes: number;
534
+ hydration: "ready";
535
+ downloadMac: string;
536
+ }, {
537
+ path: string;
538
+ fileId: string;
539
+ kind: "file";
540
+ updatedAt: number;
541
+ metadataMac: string;
542
+ sha256: string;
543
+ sizeBytes: number;
544
+ hydration: "ready";
545
+ downloadMac: string;
546
+ }>;
547
+ export declare const driveManifestEntrySchema: z.ZodUnion<[z.ZodObject<{
548
+ kind: z.ZodLiteral<"folder">;
549
+ metadataMac: z.ZodString;
550
+ fileId: z.ZodString;
551
+ path: z.ZodString;
552
+ updatedAt: z.ZodNumber;
553
+ }, "strict", z.ZodTypeAny, {
554
+ path: string;
555
+ fileId: string;
556
+ kind: "folder";
557
+ updatedAt: number;
558
+ metadataMac: string;
559
+ }, {
560
+ path: string;
561
+ fileId: string;
562
+ kind: "folder";
563
+ updatedAt: number;
564
+ metadataMac: string;
565
+ }>, z.ZodObject<{
566
+ kind: z.ZodLiteral<"file">;
567
+ hydration: z.ZodLiteral<"ready">;
568
+ sizeBytes: z.ZodNumber;
569
+ sha256: z.ZodString;
570
+ metadataMac: z.ZodString;
571
+ downloadMac: z.ZodString;
572
+ fileId: z.ZodString;
573
+ path: z.ZodString;
574
+ updatedAt: z.ZodNumber;
575
+ }, "strict", z.ZodTypeAny, {
576
+ path: string;
577
+ fileId: string;
578
+ kind: "file";
579
+ updatedAt: number;
580
+ metadataMac: string;
581
+ sha256: string;
582
+ sizeBytes: number;
583
+ hydration: "ready";
584
+ downloadMac: string;
585
+ }, {
586
+ path: string;
587
+ fileId: string;
588
+ kind: "file";
589
+ updatedAt: number;
590
+ metadataMac: string;
591
+ sha256: string;
592
+ sizeBytes: number;
593
+ hydration: "ready";
594
+ downloadMac: string;
595
+ }>, z.ZodObject<{
596
+ kind: z.ZodLiteral<"file">;
597
+ hydration: z.ZodLiteral<"deferred">;
598
+ sizeBytes: z.ZodNumber;
599
+ reason: z.ZodEnum<["file_limit", "cache_limit"]>;
600
+ fileId: z.ZodString;
601
+ path: z.ZodString;
602
+ updatedAt: z.ZodNumber;
603
+ }, "strict", z.ZodTypeAny, {
604
+ path: string;
605
+ fileId: string;
606
+ kind: "file";
607
+ updatedAt: number;
608
+ sizeBytes: number;
609
+ hydration: "deferred";
610
+ reason: "file_limit" | "cache_limit";
611
+ }, {
612
+ path: string;
613
+ fileId: string;
614
+ kind: "file";
615
+ updatedAt: number;
616
+ sizeBytes: number;
617
+ hydration: "deferred";
618
+ reason: "file_limit" | "cache_limit";
619
+ }>]>;
620
+ export declare const driveManifestFrameSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
621
+ type: z.ZodLiteral<"manifest">;
622
+ version: z.ZodLiteral<1>;
623
+ }, "strict", z.ZodTypeAny, {
624
+ version: 1;
625
+ type: "manifest";
626
+ }, {
627
+ version: 1;
628
+ type: "manifest";
629
+ }>, z.ZodObject<{
630
+ type: z.ZodLiteral<"entry">;
631
+ entry: z.ZodUnion<[z.ZodObject<{
632
+ kind: z.ZodLiteral<"folder">;
633
+ metadataMac: z.ZodString;
634
+ fileId: z.ZodString;
635
+ path: z.ZodString;
636
+ updatedAt: z.ZodNumber;
637
+ }, "strict", z.ZodTypeAny, {
638
+ path: string;
639
+ fileId: string;
640
+ kind: "folder";
641
+ updatedAt: number;
642
+ metadataMac: string;
643
+ }, {
644
+ path: string;
645
+ fileId: string;
646
+ kind: "folder";
647
+ updatedAt: number;
648
+ metadataMac: string;
649
+ }>, z.ZodObject<{
650
+ kind: z.ZodLiteral<"file">;
651
+ hydration: z.ZodLiteral<"ready">;
652
+ sizeBytes: z.ZodNumber;
653
+ sha256: z.ZodString;
654
+ metadataMac: z.ZodString;
655
+ downloadMac: z.ZodString;
656
+ fileId: z.ZodString;
657
+ path: z.ZodString;
658
+ updatedAt: z.ZodNumber;
659
+ }, "strict", z.ZodTypeAny, {
660
+ path: string;
661
+ fileId: string;
662
+ kind: "file";
663
+ updatedAt: number;
664
+ metadataMac: string;
665
+ sha256: string;
666
+ sizeBytes: number;
667
+ hydration: "ready";
668
+ downloadMac: string;
669
+ }, {
670
+ path: string;
671
+ fileId: string;
672
+ kind: "file";
673
+ updatedAt: number;
674
+ metadataMac: string;
675
+ sha256: string;
676
+ sizeBytes: number;
677
+ hydration: "ready";
678
+ downloadMac: string;
679
+ }>, z.ZodObject<{
680
+ kind: z.ZodLiteral<"file">;
681
+ hydration: z.ZodLiteral<"deferred">;
682
+ sizeBytes: z.ZodNumber;
683
+ reason: z.ZodEnum<["file_limit", "cache_limit"]>;
684
+ fileId: z.ZodString;
685
+ path: z.ZodString;
686
+ updatedAt: z.ZodNumber;
687
+ }, "strict", z.ZodTypeAny, {
688
+ path: string;
689
+ fileId: string;
690
+ kind: "file";
691
+ updatedAt: number;
692
+ sizeBytes: number;
693
+ hydration: "deferred";
694
+ reason: "file_limit" | "cache_limit";
695
+ }, {
696
+ path: string;
697
+ fileId: string;
698
+ kind: "file";
699
+ updatedAt: number;
700
+ sizeBytes: number;
701
+ hydration: "deferred";
702
+ reason: "file_limit" | "cache_limit";
703
+ }>]>;
704
+ }, "strict", z.ZodTypeAny, {
705
+ type: "entry";
706
+ entry: {
707
+ path: string;
708
+ fileId: string;
709
+ kind: "file";
710
+ updatedAt: number;
711
+ metadataMac: string;
712
+ sha256: string;
713
+ sizeBytes: number;
714
+ hydration: "ready";
715
+ downloadMac: string;
716
+ } | {
717
+ path: string;
718
+ fileId: string;
719
+ kind: "folder";
720
+ updatedAt: number;
721
+ metadataMac: string;
722
+ } | {
723
+ path: string;
724
+ fileId: string;
725
+ kind: "file";
726
+ updatedAt: number;
727
+ sizeBytes: number;
728
+ hydration: "deferred";
729
+ reason: "file_limit" | "cache_limit";
730
+ };
731
+ }, {
732
+ type: "entry";
733
+ entry: {
734
+ path: string;
735
+ fileId: string;
736
+ kind: "file";
737
+ updatedAt: number;
738
+ metadataMac: string;
739
+ sha256: string;
740
+ sizeBytes: number;
741
+ hydration: "ready";
742
+ downloadMac: string;
743
+ } | {
744
+ path: string;
745
+ fileId: string;
746
+ kind: "folder";
747
+ updatedAt: number;
748
+ metadataMac: string;
749
+ } | {
750
+ path: string;
751
+ fileId: string;
752
+ kind: "file";
753
+ updatedAt: number;
754
+ sizeBytes: number;
755
+ hydration: "deferred";
756
+ reason: "file_limit" | "cache_limit";
757
+ };
758
+ }>, z.ZodObject<{
759
+ type: z.ZodLiteral<"complete">;
760
+ entries: z.ZodNumber;
761
+ }, "strict", z.ZodTypeAny, {
762
+ entries: number;
763
+ type: "complete";
764
+ }, {
765
+ entries: number;
766
+ type: "complete";
767
+ }>]>;
768
+ export type DriveManifestEntry = z.infer<typeof driveManifestEntrySchema>;
769
+ export type DriveReadyEntry = z.infer<typeof driveReadyEntrySchema>;
770
+ export type DriveUploadRequest = z.infer<typeof driveUploadBodySchema>;
771
+ export type DriveUploadResponse = z.infer<typeof driveUploadResponseSchema>;
772
+ export type DriveContentResult = z.infer<typeof driveContentResultSchema>;
773
+ export type DriveMetadataRequest = z.infer<typeof driveMetadataBodySchema>;
774
+ export type DriveMetadataResult = z.infer<typeof driveMetadataResultSchema>;
775
+ //# sourceMappingURL=drive.d.ts.map