@usherlabs/cex-broker 0.2.50 → 0.2.52

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