@usherlabs/cex-broker 0.2.49 → 0.2.51

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.
Files changed (55) hide show
  1. package/dist/commands/cex-canonical-orderbook-export.js +7747 -883
  2. package/dist/commands/cex-canonical-orderbook-export.js.map +41 -10
  3. package/dist/commands/cli.js +127 -34
  4. package/dist/commands/market-data-vendor-backfill.js +8284 -6391
  5. package/dist/commands/market-data-vendor-backfill.js.map +16 -15
  6. package/dist/helpers/canonical-orderbook-export/parquet-projection.d.ts +19 -0
  7. package/dist/helpers/market-data-archive/canonical-orderbook.d.ts +1 -1
  8. package/dist/helpers/market-data-preparation/conformance-fixtures.d.ts +114 -2
  9. package/dist/helpers/market-data-preparation/contracts.d.ts +1298 -18
  10. package/dist/helpers/market-data-preparation/required-clock-qualification.d.ts +43 -0
  11. package/dist/helpers/market-data-preparation/source-tape-dependencies.d.ts +19 -0
  12. package/dist/helpers/market-data-preparation/source-tape-operation.d.ts +109 -0
  13. package/dist/helpers/market-data-source-forensics.d.ts +400 -0
  14. package/dist/helpers/market-data-vendor-backfill/conformance-fixtures.d.ts +3 -5
  15. package/dist/helpers/market-data-vendor-backfill/contracts.d.ts +21 -56
  16. package/dist/helpers/market-data-vendor-backfill/core.d.ts +1 -0
  17. package/dist/helpers/market-data-vendor-backfill/cryptohftdata.d.ts +45 -5
  18. package/dist/helpers/market-data-vendor-backfill/manifests.d.ts +31 -1083
  19. package/dist/helpers/market-data-vendor-backfill/promotion.d.ts +1 -0
  20. package/dist/helpers/source-tape-sandbox.d.ts +82 -0
  21. package/dist/helpers/source-tape.d.ts +165 -0
  22. package/dist/helpers/trace-context.d.ts +8 -0
  23. package/dist/index.js +128 -35
  24. package/dist/index.js.map +7 -6
  25. package/dist/market-data-preparation/fixtures/{conformance-v2.json → conformance-v3.json} +257 -60
  26. package/dist/market-data-preparation/policies/capability-policy.json +15 -4
  27. package/dist/market-data-preparation/policies/resource-policy.json +3 -3
  28. package/dist/market-data-preparation/policies/source-tape-capability-v1.json +35 -0
  29. package/dist/market-data-preparation/schema-manifest.json +30 -10
  30. package/dist/market-data-preparation/schemas/canonical-orderbook-export-request-v1.schema.json +5 -1
  31. package/dist/market-data-preparation/schemas/{canonical-orderbook-export-result-v1.schema.json → canonical-orderbook-export-result-v2.schema.json} +20 -6
  32. package/dist/market-data-preparation/schemas/order-book-depth-summary-parquet-projection-v1.schema.json +256 -0
  33. package/dist/market-data-preparation/schemas/order-book-levels-parquet-projection-v1.schema.json +220 -0
  34. package/dist/market-data-preparation/schemas/{preparation-product-pin-v1.schema.json → preparation-product-pin-v2.schema.json} +59 -9
  35. package/dist/market-data-preparation/schemas/promotion-receipt-v1.schema.json +5 -1
  36. package/dist/market-data-preparation/schemas/source-forensics-ledger-v1.schema.json +463 -0
  37. package/dist/market-data-preparation/schemas/source-qualification-record-v1.schema.json +394 -0
  38. package/dist/market-data-preparation.d.ts +7 -0
  39. package/dist/market-data-preparation.js +35443 -25203
  40. package/dist/market-data-preparation.js.map +118 -78
  41. package/dist/market-data-vendor-backfill.d.ts +8 -5
  42. package/dist/market-data-vendor-backfill.js +19444 -15553
  43. package/dist/market-data-vendor-backfill.js.map +65 -60
  44. package/package.json +1 -5
  45. package/dist/market-data-preparation/policies/capability-policy-v1.json +0 -28
  46. package/dist/market-data-vendor-backfill/fixtures/conformance-v1.json +0 -448
  47. package/dist/market-data-vendor-backfill/policies/capability-policy-v2.json +0 -28
  48. package/dist/market-data-vendor-backfill/policies/capability-policy.json +0 -28
  49. package/dist/market-data-vendor-backfill/policies/resource-policy.json +0 -16
  50. package/dist/market-data-vendor-backfill/schema-manifest.json +0 -31
  51. package/dist/market-data-vendor-backfill/schemas/archive-selection.schema.json +0 -224
  52. package/dist/market-data-vendor-backfill/schemas/promotion-receipt.schema.json +0 -171
  53. package/dist/market-data-vendor-backfill/schemas/request.schema.json +0 -166
  54. package/dist/market-data-vendor-backfill/schemas/required-clock.schema.json +0 -47
  55. package/dist/market-data-vendor-backfill/schemas/result.schema.json +0 -198
@@ -1,74 +1,47 @@
1
- export declare const LEGACY_CAPABILITY_POLICY_ID: "market-data-vendor-backfill-capabilities/v1";
2
- export declare const CAPABILITY_POLICY_ID: "market-data-vendor-backfill-capabilities/v2";
3
- export declare const RESOURCE_POLICY_ID: "market-data-vendor-backfill-resources/v1";
1
+ export declare const CAPABILITY_POLICY_ID: "market-data-vendor-backfill-capabilities/v3";
2
+ export declare const RESOURCE_POLICY_ID: "market-data-vendor-backfill-resources/v2";
4
3
  export declare const ADAPTER_POLICY_ID: "cryptohftdata-orderbook-adapter/v1";
5
- export declare const ACQUISITION_POLICY_ID: "cryptohftdata-hourly-acquisition/v1";
6
- export declare const LEGACY_CAPABILITY_POLICY: Readonly<{
4
+ export declare const ACQUISITION_POLICY_ID: "cryptohftdata-hourly-acquisition/v2";
5
+ export declare const CAPABILITY_POLICY: Readonly<{
6
+ policy_id: "market-data-vendor-backfill-capabilities/v3";
7
7
  policy_sha256: string;
8
- policy_id: "market-data-vendor-backfill-capabilities/v1";
9
- provider: "cryptohftdata";
8
+ provider: string;
10
9
  adapter_policy: {
11
- readonly policy_id: "cryptohftdata-orderbook-adapter/v1";
12
- readonly adapter_version: "cryptohftdata-orderbook/v2";
10
+ policy_id: string;
11
+ adapter_version: string;
13
12
  };
14
13
  acquisition_policy: {
15
- readonly policy_id: "cryptohftdata-hourly-acquisition/v1";
16
- readonly object_granularity: "utc_hour";
17
- readonly authentication: "bearer";
18
- readonly initialization_lookback_ms: 0;
14
+ policy_id: string;
15
+ object_granularity: string;
16
+ authentication: string;
17
+ initialization_lookback_ms: number;
19
18
  };
20
- profiles: readonly [{
21
- readonly exchange: "okx";
22
- readonly market_type: "spot";
23
- readonly feed: "ORDERBOOK";
24
- readonly canonical_trading_pair: "ARB-USDT";
25
- readonly provider_exchange_id: "okx_spot";
26
- readonly resolved_symbol: "ARB-USDT";
27
- readonly construction_modes: readonly ["sampled_top_n_snapshot"];
28
- readonly source_policies: readonly ["authoritative_window"];
29
- readonly max_depth: 400;
30
- }];
31
- }>;
32
- export declare const CAPABILITY_POLICY: Readonly<{
33
- policy_sha256: string;
34
- policy_id: "market-data-vendor-backfill-capabilities/v2";
35
19
  profiles: {
36
- source_policies: readonly ["authoritative_window", "fill_gaps"];
37
- exchange: "okx";
38
- market_type: "spot";
39
- feed: "ORDERBOOK";
40
- canonical_trading_pair: "ARB-USDT";
41
- provider_exchange_id: "okx_spot";
42
- resolved_symbol: "ARB-USDT";
43
- construction_modes: readonly ["sampled_top_n_snapshot"];
44
- max_depth: 400;
20
+ exchange: string;
21
+ market_type: string;
22
+ feed: string;
23
+ canonical_trading_pair: string;
24
+ provider_exchange_id: string;
25
+ resolved_symbol: string;
26
+ construction_modes: string[];
27
+ source_policies: string[];
28
+ max_depth: number;
45
29
  }[];
46
- provider: "cryptohftdata";
47
- adapter_policy: {
48
- readonly policy_id: "cryptohftdata-orderbook-adapter/v1";
49
- readonly adapter_version: "cryptohftdata-orderbook/v2";
50
- };
51
- acquisition_policy: {
52
- readonly policy_id: "cryptohftdata-hourly-acquisition/v1";
53
- readonly object_granularity: "utc_hour";
54
- readonly authentication: "bearer";
55
- readonly initialization_lookback_ms: 0;
56
- };
57
30
  }>;
58
31
  export declare const RESOURCE_POLICY: Readonly<{
32
+ policy_id: "market-data-vendor-backfill-resources/v2";
59
33
  policy_sha256: string;
60
- policy_id: "market-data-vendor-backfill-resources/v1";
61
34
  limits: {
62
- readonly max_files: 10000;
63
- readonly max_bytes: number;
64
- readonly max_rows: 1000000000;
65
- readonly max_duration_ms: number;
66
- readonly max_boundary_lookback_ms: number;
35
+ max_files: number;
36
+ max_bytes: number;
37
+ max_rows: number;
38
+ max_duration_ms: number;
39
+ max_boundary_lookback_ms: number;
67
40
  };
68
41
  request_bounds: {
69
- readonly max_depth: 500;
70
- readonly max_window_ms: number;
71
- readonly max_required_events: 100000;
42
+ max_depth: number;
43
+ max_window_ms: number;
44
+ max_required_events: number;
72
45
  };
73
46
  }>;
74
47
  export declare const EFFECTIVE_ADAPTER_POLICY_PIN: Readonly<{
@@ -76,1034 +49,9 @@ export declare const EFFECTIVE_ADAPTER_POLICY_PIN: Readonly<{
76
49
  policy_sha256: string;
77
50
  }>;
78
51
  export declare const EFFECTIVE_ACQUISITION_POLICY_PIN: Readonly<{
79
- policy_id: "cryptohftdata-hourly-acquisition/v1";
52
+ policy_id: "cryptohftdata-hourly-acquisition/v2";
80
53
  policy_sha256: string;
81
54
  }>;
82
- export declare const SCHEMA_ARTIFACTS: readonly Readonly<{
83
- schema_id: string;
84
- path: "schemas/request.schema.json" | "schemas/result.schema.json" | "schemas/required-clock.schema.json" | "schemas/archive-selection.schema.json" | "schemas/promotion-receipt.schema.json";
85
- schema_sha256: string;
86
- schema: {
87
- $schema: string;
88
- $id: string;
89
- title: string;
90
- type: string;
91
- additionalProperties: boolean;
92
- required: string[];
93
- properties: {
94
- schema_id: {
95
- const: string;
96
- };
97
- selection_sha256: {
98
- $ref: string;
99
- };
100
- scope: {
101
- $ref: string;
102
- };
103
- required_clock: {
104
- $ref: string;
105
- };
106
- coverage_policy: {
107
- $ref: string;
108
- };
109
- source_policy: {
110
- enum: string[];
111
- };
112
- coverage_class: {
113
- enum: string[];
114
- };
115
- requested_intervals: {
116
- type: string;
117
- minItems: number;
118
- items: {
119
- $ref: string;
120
- };
121
- };
122
- selected_intervals: {
123
- type: string;
124
- items: {
125
- type: string;
126
- additionalProperties: boolean;
127
- required: string[];
128
- properties: {
129
- start_at: {
130
- $ref: string;
131
- };
132
- end_at: {
133
- $ref: string;
134
- };
135
- capture_bundle_id: {
136
- $ref: string;
137
- };
138
- capture_origin: {
139
- $ref: string;
140
- };
141
- };
142
- };
143
- };
144
- precedence: {
145
- type: string;
146
- minItems: number;
147
- maxItems: number;
148
- uniqueItems: boolean;
149
- items: {
150
- enum: string[];
151
- };
152
- };
153
- bundles: {
154
- type: string;
155
- items: {
156
- type: string;
157
- additionalProperties: boolean;
158
- required: string[];
159
- properties: {
160
- capture_bundle_id: {
161
- $ref: string;
162
- };
163
- capture_origin: {
164
- $ref: string;
165
- };
166
- interval: {
167
- $ref: string;
168
- };
169
- qualification: {
170
- oneOf: ({
171
- type: string;
172
- additionalProperties?: undefined;
173
- required?: undefined;
174
- properties?: undefined;
175
- } | {
176
- type: string;
177
- additionalProperties: boolean;
178
- required: string[];
179
- properties: {
180
- qualification_event_id: {
181
- $ref: string;
182
- };
183
- state: {
184
- const: string;
185
- };
186
- receipt_id: {
187
- $ref: string;
188
- };
189
- promotion_identity_sha256: {
190
- $ref: string;
191
- };
192
- };
193
- })[];
194
- };
195
- };
196
- };
197
- };
198
- support_anchors: {
199
- type: string;
200
- items: {
201
- type: string;
202
- additionalProperties: boolean;
203
- required: string[];
204
- properties: {
205
- capture_bundle_id: {
206
- $ref: string;
207
- };
208
- raw_capture_id: {
209
- $ref: string;
210
- };
211
- snapshot_id: {
212
- $ref: string;
213
- };
214
- source_time: {
215
- $ref: string;
216
- };
217
- normalized_summary_checksum: {
218
- $ref: string;
219
- };
220
- metadata_ref: {
221
- type: string;
222
- additionalProperties: boolean;
223
- required: string[];
224
- properties: {
225
- capture_origin: {
226
- $ref: string;
227
- };
228
- qualification_event_id: {
229
- oneOf: ({
230
- type: string;
231
- $ref?: undefined;
232
- } | {
233
- $ref: string;
234
- type?: undefined;
235
- })[];
236
- };
237
- receipt_id: {
238
- oneOf: ({
239
- type: string;
240
- $ref?: undefined;
241
- } | {
242
- $ref: string;
243
- type?: undefined;
244
- })[];
245
- };
246
- };
247
- };
248
- };
249
- };
250
- };
251
- receipt_ids: {
252
- type: string;
253
- uniqueItems: boolean;
254
- items: {
255
- $ref: string;
256
- };
257
- };
258
- qualification_event_ids: {
259
- type: string;
260
- uniqueItems: boolean;
261
- items: {
262
- $ref: string;
263
- };
264
- };
265
- resolved_at: {
266
- $ref: string;
267
- };
268
- };
269
- $defs: {
270
- uuid: {
271
- type: string;
272
- pattern: string;
273
- };
274
- sha256: {
275
- type: string;
276
- pattern: string;
277
- };
278
- timestamp: {
279
- type: string;
280
- pattern: string;
281
- };
282
- safeInteger: {
283
- type: string;
284
- minimum: number;
285
- maximum: number;
286
- };
287
- captureOrigin: {
288
- enum: string[];
289
- };
290
- scope: {
291
- type: string;
292
- additionalProperties: boolean;
293
- required: string[];
294
- properties: {
295
- exchange: {
296
- type: string;
297
- pattern: string;
298
- };
299
- trading_pair: {
300
- type: string;
301
- minLength: number;
302
- maxLength: number;
303
- };
304
- market_type: {
305
- enum: string[];
306
- };
307
- feed: {
308
- const: string;
309
- };
310
- };
311
- };
312
- clockReference: {
313
- type: string;
314
- additionalProperties: boolean;
315
- required: string[];
316
- properties: {
317
- clock_id: {
318
- $ref: string;
319
- };
320
- clock_sha256: {
321
- $ref: string;
322
- };
323
- event_count: {
324
- $ref: string;
325
- };
326
- };
327
- };
328
- coveragePolicy: {
329
- type: string;
330
- additionalProperties: boolean;
331
- required: string[];
332
- properties: {
333
- policy_id: {
334
- const: string;
335
- };
336
- max_asof_lag_ms: {
337
- $ref: string;
338
- };
339
- future_rows: {
340
- const: string;
341
- };
342
- missing_required_event: {
343
- const: string;
344
- };
345
- };
346
- };
347
- interval: {
348
- type: string;
349
- additionalProperties: boolean;
350
- required: string[];
351
- properties: {
352
- start_at: {
353
- $ref: string;
354
- };
355
- end_at: {
356
- $ref: string;
357
- };
358
- };
359
- };
360
- };
361
- } | {
362
- $schema: string;
363
- $id: string;
364
- title: string;
365
- type: string;
366
- additionalProperties: boolean;
367
- required: string[];
368
- properties: {
369
- schema_id: {
370
- const: string;
371
- };
372
- receipt_id: {
373
- $ref: string;
374
- };
375
- promotion_identity_sha256: {
376
- $ref: string;
377
- };
378
- verified_at: {
379
- $ref: string;
380
- };
381
- request_id: {
382
- $ref: string;
383
- };
384
- idempotency_key: {
385
- $ref: string;
386
- };
387
- source: {
388
- const: string;
389
- };
390
- capture_origin: {
391
- const: string;
392
- };
393
- source_mode: {
394
- const: string;
395
- };
396
- provider: {
397
- type: string;
398
- minLength: number;
399
- maxLength: number;
400
- };
401
- adapter_version: {
402
- type: string;
403
- minLength: number;
404
- maxLength: number;
405
- };
406
- effective_policies: {
407
- type: string;
408
- additionalProperties: boolean;
409
- required: string[];
410
- properties: {
411
- capability_policy: {
412
- $ref: string;
413
- };
414
- resource_policy: {
415
- $ref: string;
416
- };
417
- adapter_policy: {
418
- $ref: string;
419
- };
420
- acquisition_policy: {
421
- $ref: string;
422
- };
423
- };
424
- };
425
- capture_bundle_id: {
426
- $ref: string;
427
- };
428
- scope: {
429
- $ref: string;
430
- };
431
- window: {
432
- $ref: string;
433
- };
434
- depth: {
435
- type: string;
436
- minimum: number;
437
- maximum: number;
438
- };
439
- construction_mode: {
440
- enum: string[];
441
- };
442
- canonical_schema: {
443
- type: string;
444
- additionalProperties: boolean;
445
- required: string[];
446
- properties: {
447
- schema_id: {
448
- type: string;
449
- minLength: number;
450
- maxLength: number;
451
- };
452
- schema_sha256: {
453
- $ref: string;
454
- };
455
- };
456
- };
457
- coverage_policy: {
458
- $ref: string;
459
- };
460
- selection_sha256: {
461
- $ref: string;
462
- };
463
- vendor_semantic_digest: {
464
- $ref: string;
465
- };
466
- canonical_semantic_digest: {
467
- $ref: string;
468
- };
469
- prefix_digest: {
470
- $ref: string;
471
- };
472
- suffix_digest: {
473
- $ref: string;
474
- };
475
- seam_verified: {
476
- const: boolean;
477
- };
478
- coverage_verified: {
479
- const: boolean;
480
- };
481
- dataset_objects: {
482
- type: string;
483
- minItems: number;
484
- maxItems: number;
485
- items: {
486
- type: string;
487
- additionalProperties: boolean;
488
- required: string[];
489
- properties: {
490
- identity: {
491
- type: string;
492
- minLength: number;
493
- maxLength: number;
494
- };
495
- checksum: {
496
- $ref: string;
497
- };
498
- bytes: {
499
- $ref: string;
500
- };
501
- rows: {
502
- $ref: string;
503
- };
504
- };
505
- };
506
- };
507
- };
508
- $defs: {
509
- uuid: {
510
- type: string;
511
- pattern: string;
512
- };
513
- sha256: {
514
- type: string;
515
- pattern: string;
516
- };
517
- timestamp: {
518
- type: string;
519
- pattern: string;
520
- };
521
- safeInteger: {
522
- type: string;
523
- minimum: number;
524
- maximum: number;
525
- };
526
- scope: {
527
- type: string;
528
- additionalProperties: boolean;
529
- required: string[];
530
- properties: {
531
- exchange: {
532
- type: string;
533
- pattern: string;
534
- };
535
- trading_pair: {
536
- type: string;
537
- minLength: number;
538
- maxLength: number;
539
- };
540
- market_type: {
541
- enum: string[];
542
- };
543
- feed: {
544
- const: string;
545
- };
546
- };
547
- };
548
- interval: {
549
- type: string;
550
- additionalProperties: boolean;
551
- required: string[];
552
- properties: {
553
- start_at: {
554
- $ref: string;
555
- };
556
- end_at: {
557
- $ref: string;
558
- };
559
- };
560
- };
561
- coveragePolicy: {
562
- type: string;
563
- additionalProperties: boolean;
564
- required: string[];
565
- properties: {
566
- policy_id: {
567
- const: string;
568
- };
569
- max_asof_lag_ms: {
570
- $ref: string;
571
- };
572
- future_rows: {
573
- const: string;
574
- };
575
- missing_required_event: {
576
- const: string;
577
- };
578
- };
579
- };
580
- policyPin: {
581
- type: string;
582
- additionalProperties: boolean;
583
- required: string[];
584
- properties: {
585
- policy_id: {
586
- type: string;
587
- minLength: number;
588
- maxLength: number;
589
- };
590
- policy_sha256: {
591
- $ref: string;
592
- };
593
- };
594
- };
595
- };
596
- } | {
597
- $schema: string;
598
- $id: string;
599
- title: string;
600
- type: string;
601
- additionalProperties: boolean;
602
- required: string[];
603
- properties: {
604
- schema_id: {
605
- const: string;
606
- };
607
- request_id: {
608
- $ref: string;
609
- };
610
- attempt_id: {
611
- $ref: string;
612
- };
613
- idempotency_key: {
614
- $ref: string;
615
- };
616
- scope: {
617
- $ref: string;
618
- };
619
- window: {
620
- $ref: string;
621
- };
622
- depth: {
623
- type: string;
624
- minimum: number;
625
- maximum: number;
626
- };
627
- construction_mode: {
628
- enum: string[];
629
- };
630
- source_policy: {
631
- enum: string[];
632
- };
633
- target: {
634
- type: string;
635
- additionalProperties: boolean;
636
- required: string[];
637
- properties: {
638
- environment: {
639
- type: string;
640
- pattern: string;
641
- };
642
- cluster: {
643
- type: string;
644
- pattern: string;
645
- };
646
- };
647
- };
648
- coverage_policy: {
649
- $ref: string;
650
- };
651
- required_clock: {
652
- type: string;
653
- additionalProperties: boolean;
654
- required: string[];
655
- properties: {
656
- schema_id: {
657
- const: string;
658
- };
659
- clock_id: {
660
- $ref: string;
661
- };
662
- file_name: {
663
- type: string;
664
- pattern: string;
665
- };
666
- clock_sha256: {
667
- $ref: string;
668
- };
669
- event_count: {
670
- $ref: string;
671
- };
672
- };
673
- };
674
- initial_selection: {
675
- $ref: string;
676
- };
677
- expected_canonical_schema: {
678
- $ref: string;
679
- };
680
- product_pins: {
681
- type: string;
682
- additionalProperties: boolean;
683
- required: string[];
684
- properties: {
685
- capability_policy: {
686
- $ref: string;
687
- };
688
- resource_policy: {
689
- $ref: string;
690
- };
691
- };
692
- };
693
- production_authorization_id: {
694
- $ref: string;
695
- };
696
- };
697
- $defs: {
698
- uuid: {
699
- type: string;
700
- pattern: string;
701
- };
702
- sha256: {
703
- type: string;
704
- pattern: string;
705
- };
706
- timestamp: {
707
- type: string;
708
- pattern: string;
709
- };
710
- safeInteger: {
711
- type: string;
712
- minimum: number;
713
- maximum: number;
714
- };
715
- scope: {
716
- type: string;
717
- additionalProperties: boolean;
718
- required: string[];
719
- properties: {
720
- exchange: {
721
- type: string;
722
- pattern: string;
723
- };
724
- trading_pair: {
725
- type: string;
726
- minLength: number;
727
- maxLength: number;
728
- };
729
- market_type: {
730
- enum: string[];
731
- };
732
- feed: {
733
- const: string;
734
- };
735
- };
736
- };
737
- interval: {
738
- type: string;
739
- additionalProperties: boolean;
740
- required: string[];
741
- properties: {
742
- start_at: {
743
- $ref: string;
744
- };
745
- end_at: {
746
- $ref: string;
747
- };
748
- };
749
- };
750
- coveragePolicy: {
751
- type: string;
752
- additionalProperties: boolean;
753
- required: string[];
754
- properties: {
755
- policy_id: {
756
- const: string;
757
- };
758
- max_asof_lag_ms: {
759
- $ref: string;
760
- };
761
- future_rows: {
762
- const: string;
763
- };
764
- missing_required_event: {
765
- const: string;
766
- };
767
- };
768
- };
769
- artifactPin: {
770
- type: string;
771
- additionalProperties: boolean;
772
- required: string[];
773
- properties: {
774
- schema_id: {
775
- type: string;
776
- minLength: number;
777
- maxLength: number;
778
- };
779
- schema_sha256: {
780
- $ref: string;
781
- };
782
- };
783
- };
784
- policyPin: {
785
- type: string;
786
- additionalProperties: boolean;
787
- required: string[];
788
- properties: {
789
- policy_id: {
790
- type: string;
791
- minLength: number;
792
- maxLength: number;
793
- };
794
- policy_sha256: {
795
- $ref: string;
796
- };
797
- };
798
- };
799
- };
800
- } | {
801
- $schema: string;
802
- $id: string;
803
- title: string;
804
- type: string;
805
- additionalProperties: boolean;
806
- required: string[];
807
- properties: {
808
- schema_id: {
809
- const: string;
810
- };
811
- clock_id: {
812
- $ref: string;
813
- };
814
- clock_sha256: {
815
- $ref: string;
816
- };
817
- created_at: {
818
- $ref: string;
819
- };
820
- targets: {
821
- type: string;
822
- minItems: number;
823
- maxItems: number;
824
- items: {
825
- type: string;
826
- additionalProperties: boolean;
827
- required: string[];
828
- properties: {
829
- target_id: {
830
- $ref: string;
831
- };
832
- target_at: {
833
- $ref: string;
834
- };
835
- };
836
- };
837
- };
838
- };
839
- $defs: {
840
- uuid: {
841
- type: string;
842
- pattern: string;
843
- };
844
- sha256: {
845
- type: string;
846
- pattern: string;
847
- };
848
- timestamp: {
849
- type: string;
850
- pattern: string;
851
- };
852
- };
853
- } | {
854
- $schema: string;
855
- $id: string;
856
- title: string;
857
- type: string;
858
- additionalProperties: boolean;
859
- required: string[];
860
- properties: {
861
- schema_id: {
862
- const: string;
863
- };
864
- result_sha256: {
865
- $ref: string;
866
- };
867
- job_id: {
868
- $ref: string;
869
- };
870
- request_file_sha256: {
871
- oneOf: ({
872
- type: string;
873
- $ref?: undefined;
874
- } | {
875
- $ref: string;
876
- type?: undefined;
877
- })[];
878
- };
879
- executable_sha256: {
880
- $ref: string;
881
- };
882
- schema_manifest_sha256: {
883
- $ref: string;
884
- };
885
- cex_package: {
886
- type: string;
887
- additionalProperties: boolean;
888
- required: string[];
889
- properties: {
890
- name: {
891
- const: string;
892
- };
893
- version: {
894
- type: string;
895
- pattern: string;
896
- };
897
- package_sha256: {
898
- $ref: string;
899
- };
900
- };
901
- };
902
- capability_policy: {
903
- $ref: string;
904
- };
905
- resource_policy: {
906
- $ref: string;
907
- };
908
- build: {
909
- type: string;
910
- additionalProperties: boolean;
911
- required: string[];
912
- properties: {
913
- fiet_tee_commit: {
914
- type: string;
915
- pattern: string;
916
- };
917
- created_at: {
918
- $ref: string;
919
- };
920
- };
921
- };
922
- started_at: {
923
- $ref: string;
924
- };
925
- completed_at: {
926
- $ref: string;
927
- };
928
- outcome: {
929
- type: string;
930
- additionalProperties: boolean;
931
- required: string[];
932
- properties: {
933
- status: {
934
- enum: string[];
935
- };
936
- reason_code: {
937
- type: string;
938
- pattern: string;
939
- };
940
- reason_subcode: {
941
- oneOf: ({
942
- type: string;
943
- pattern?: undefined;
944
- } | {
945
- type: string;
946
- pattern: string;
947
- })[];
948
- };
949
- request_id: {
950
- oneOf: ({
951
- type: string;
952
- $ref?: undefined;
953
- } | {
954
- $ref: string;
955
- type?: undefined;
956
- })[];
957
- };
958
- idempotency_key: {
959
- oneOf: ({
960
- type: string;
961
- $ref?: undefined;
962
- } | {
963
- $ref: string;
964
- type?: undefined;
965
- })[];
966
- };
967
- target: {
968
- oneOf: ({
969
- type: string;
970
- additionalProperties?: undefined;
971
- required?: undefined;
972
- properties?: undefined;
973
- } | {
974
- type: string;
975
- additionalProperties: boolean;
976
- required: string[];
977
- properties: {
978
- environment: {
979
- type: string;
980
- pattern: string;
981
- };
982
- cluster: {
983
- type: string;
984
- pattern: string;
985
- };
986
- };
987
- })[];
988
- };
989
- selection: {
990
- oneOf: ({
991
- type: string;
992
- $ref?: undefined;
993
- } | {
994
- $ref: string;
995
- type?: undefined;
996
- })[];
997
- };
998
- receipt: {
999
- oneOf: ({
1000
- type: string;
1001
- $ref?: undefined;
1002
- } | {
1003
- $ref: string;
1004
- type?: undefined;
1005
- })[];
1006
- };
1007
- diagnostics: {
1008
- type: string;
1009
- maxProperties: number;
1010
- additionalProperties: {
1011
- oneOf: ({
1012
- type: string;
1013
- maxLength: number;
1014
- minimum?: undefined;
1015
- maximum?: undefined;
1016
- } | {
1017
- type: string;
1018
- minimum: number;
1019
- maximum: number;
1020
- maxLength?: undefined;
1021
- } | {
1022
- type: string;
1023
- maxLength?: undefined;
1024
- minimum?: undefined;
1025
- maximum?: undefined;
1026
- })[];
1027
- };
1028
- };
1029
- };
1030
- };
1031
- };
1032
- allOf: {
1033
- if: {
1034
- properties: {
1035
- outcome: {
1036
- type: string;
1037
- properties: {
1038
- status: {
1039
- const: string;
1040
- };
1041
- reason_subcode: {
1042
- const: string;
1043
- };
1044
- };
1045
- required: string[];
1046
- };
1047
- };
1048
- required: string[];
1049
- };
1050
- then: {
1051
- type: string;
1052
- properties: {
1053
- request_file_sha256: {
1054
- type: string;
1055
- };
1056
- };
1057
- };
1058
- else: {
1059
- type: string;
1060
- properties: {
1061
- request_file_sha256: {
1062
- $ref: string;
1063
- };
1064
- };
1065
- };
1066
- }[];
1067
- $defs: {
1068
- uuid: {
1069
- type: string;
1070
- pattern: string;
1071
- };
1072
- sha256: {
1073
- type: string;
1074
- pattern: string;
1075
- };
1076
- timestamp: {
1077
- type: string;
1078
- pattern: string;
1079
- };
1080
- policyPin: {
1081
- type: string;
1082
- additionalProperties: boolean;
1083
- required: string[];
1084
- properties: {
1085
- policy_id: {
1086
- type: string;
1087
- minLength: number;
1088
- maxLength: number;
1089
- };
1090
- policy_sha256: {
1091
- $ref: string;
1092
- };
1093
- };
1094
- };
1095
- };
1096
- };
1097
- }>[];
1098
- export declare const SCHEMA_MANIFEST: Readonly<{
1099
- manifest_sha256: string;
1100
- schema_id: string;
1101
- artifacts: {
1102
- schema_id: string;
1103
- path: "schemas/request.schema.json" | "schemas/result.schema.json" | "schemas/required-clock.schema.json" | "schemas/archive-selection.schema.json" | "schemas/promotion-receipt.schema.json";
1104
- schema_sha256: string;
1105
- }[];
1106
- }>;
1107
55
  export type PolicyPin = {
1108
56
  policy_id: string;
1109
57
  policy_sha256: string;