@treeseed/sdk 0.13.0-rc.113 → 0.13.0-rc.115

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