@tangleai/outcomes 0.24.1

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 (65) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE +21 -0
  3. package/README.md +142 -0
  4. package/docs/ADAPTERS.md +215 -0
  5. package/package.json +80 -0
  6. package/schemas/direction-delta.schema.json +55 -0
  7. package/schemas/exact-match.schema.json +88 -0
  8. package/schemas/outcomes.contract.json +4084 -0
  9. package/schemas/outcomes.schema.json +3936 -0
  10. package/src/adapters/direction-delta.d.ts +2 -0
  11. package/src/adapters/direction-delta.gen.d.ts +13 -0
  12. package/src/adapters/direction-delta.gen.js +3 -0
  13. package/src/adapters/direction-delta.js +29 -0
  14. package/src/adapters/exact-match.d.ts +2 -0
  15. package/src/adapters/exact-match.gen.d.ts +39 -0
  16. package/src/adapters/exact-match.gen.js +3 -0
  17. package/src/adapters/exact-match.js +40 -0
  18. package/src/adapters.d.ts +50 -0
  19. package/src/adapters.js +1 -0
  20. package/src/contract.d.ts +3285 -0
  21. package/src/contract.js +6 -0
  22. package/src/domain.d.ts +19 -0
  23. package/src/domain.js +45 -0
  24. package/src/errors.d.ts +23 -0
  25. package/src/errors.js +11 -0
  26. package/src/evaluation.d.ts +49 -0
  27. package/src/evaluation.js +174 -0
  28. package/src/handlers.d.ts +15 -0
  29. package/src/handlers.js +18 -0
  30. package/src/history.d.ts +4 -0
  31. package/src/history.js +56 -0
  32. package/src/identity.d.ts +9 -0
  33. package/src/identity.js +17 -0
  34. package/src/index.d.ts +15 -0
  35. package/src/index.js +9 -0
  36. package/src/operations.d.ts +16 -0
  37. package/src/operations.js +108 -0
  38. package/src/outcomes.contracts.gen.d.ts +1767 -0
  39. package/src/outcomes.contracts.gen.js +3 -0
  40. package/src/persistence.d.ts +10 -0
  41. package/src/persistence.js +88 -0
  42. package/src/projection.d.ts +13 -0
  43. package/src/projection.js +59 -0
  44. package/src/promotion.d.ts +17 -0
  45. package/src/promotion.js +96 -0
  46. package/src/proposal-operation.d.ts +17 -0
  47. package/src/proposal-operation.js +110 -0
  48. package/src/proposer.d.ts +107 -0
  49. package/src/proposer.js +89 -0
  50. package/src/refinement.d.ts +40 -0
  51. package/src/refinement.js +167 -0
  52. package/src/resolution.d.ts +12 -0
  53. package/src/resolution.js +62 -0
  54. package/src/schema.d.ts +8 -0
  55. package/src/schema.js +34 -0
  56. package/src/scoring.d.ts +15 -0
  57. package/src/scoring.js +37 -0
  58. package/src/service-context.d.ts +50 -0
  59. package/src/service-context.js +81 -0
  60. package/src/service.d.ts +22 -0
  61. package/src/service.js +159 -0
  62. package/src/store.d.ts +42 -0
  63. package/src/store.js +70 -0
  64. package/src/transitions.d.ts +7 -0
  65. package/src/transitions.js +56 -0
@@ -0,0 +1,3285 @@
1
+ /** The portable operation contract; host authentication is supplied by handlers. */
2
+ import { type Contract } from '@jarenjs/contract';
3
+ export declare const outcomeContractDocument: {
4
+ $contract: string;
5
+ id: string;
6
+ version: string;
7
+ $defs: {
8
+ json: {
9
+ anyOf: ({
10
+ type: string;
11
+ items?: undefined;
12
+ minItems?: undefined;
13
+ additionalProperties?: undefined;
14
+ } | {
15
+ type: string;
16
+ items: {
17
+ $ref: string;
18
+ };
19
+ minItems: number;
20
+ additionalProperties?: undefined;
21
+ } | {
22
+ type: string;
23
+ additionalProperties: {
24
+ $ref: string;
25
+ };
26
+ items?: undefined;
27
+ minItems?: undefined;
28
+ })[];
29
+ };
30
+ scope: {
31
+ type: string;
32
+ properties: {
33
+ namespace: {
34
+ type: string;
35
+ minLength: number;
36
+ pattern: string;
37
+ };
38
+ domain: {
39
+ type: string;
40
+ minLength: number;
41
+ pattern: string;
42
+ };
43
+ subject: {
44
+ type: string;
45
+ minLength: number;
46
+ pattern: string;
47
+ };
48
+ };
49
+ required: string[];
50
+ additionalProperties: boolean;
51
+ };
52
+ head: {
53
+ type: string;
54
+ properties: {
55
+ versionId: {
56
+ anyOf: ({
57
+ type: string;
58
+ pattern: string;
59
+ } | {
60
+ type: string;
61
+ pattern?: undefined;
62
+ })[];
63
+ };
64
+ revision: {
65
+ type: string;
66
+ minimum: number;
67
+ };
68
+ };
69
+ required: string[];
70
+ additionalProperties: boolean;
71
+ };
72
+ issue: {
73
+ type: string;
74
+ properties: {
75
+ code: {
76
+ enum: string[];
77
+ };
78
+ path: {
79
+ type: string;
80
+ };
81
+ detail: {
82
+ type: string;
83
+ minLength: number;
84
+ pattern: string;
85
+ };
86
+ retryable: {
87
+ type: string;
88
+ };
89
+ };
90
+ required: string[];
91
+ additionalProperties: boolean;
92
+ };
93
+ result: {
94
+ oneOf: ({
95
+ type: string;
96
+ properties: {
97
+ ok: {
98
+ const: boolean;
99
+ };
100
+ value: {
101
+ $ref: string;
102
+ };
103
+ replayed: {
104
+ type: string;
105
+ };
106
+ writes: {
107
+ type: string;
108
+ minimum: number;
109
+ };
110
+ issues?: undefined;
111
+ };
112
+ required: string[];
113
+ additionalProperties: boolean;
114
+ } | {
115
+ type: string;
116
+ properties: {
117
+ ok: {
118
+ const: boolean;
119
+ };
120
+ issues: {
121
+ type: string;
122
+ items: {
123
+ $ref: string;
124
+ };
125
+ minItems: number;
126
+ };
127
+ value?: undefined;
128
+ replayed?: undefined;
129
+ writes?: undefined;
130
+ };
131
+ required: string[];
132
+ additionalProperties: boolean;
133
+ })[];
134
+ };
135
+ policy: {
136
+ type: string;
137
+ properties: {
138
+ maxVersions: {
139
+ type: string;
140
+ minimum: number;
141
+ };
142
+ maxPayloadBytes: {
143
+ type: string;
144
+ minimum: number;
145
+ };
146
+ maxOperations: {
147
+ type: string;
148
+ minimum: number;
149
+ };
150
+ maxChangedLeaves: {
151
+ type: string;
152
+ minimum: number;
153
+ };
154
+ maxReflectionBytes: {
155
+ type: string;
156
+ minimum: number;
157
+ };
158
+ };
159
+ required: string[];
160
+ additionalProperties: boolean;
161
+ };
162
+ adapterIdentity: {
163
+ type: string;
164
+ properties: {
165
+ id: {
166
+ type: string;
167
+ minLength: number;
168
+ pattern: string;
169
+ };
170
+ revision: {
171
+ type: string;
172
+ pattern: string;
173
+ };
174
+ inputSchema: {
175
+ type: string;
176
+ pattern: string;
177
+ };
178
+ outputSchema: {
179
+ type: string;
180
+ pattern: string;
181
+ };
182
+ resolutionSchema: {
183
+ type: string;
184
+ pattern: string;
185
+ };
186
+ artifactSchema: {
187
+ type: string;
188
+ pattern: string;
189
+ };
190
+ scorerRevision: {
191
+ type: string;
192
+ pattern: string;
193
+ };
194
+ };
195
+ required: string[];
196
+ additionalProperties: boolean;
197
+ };
198
+ configuration: {
199
+ oneOf: ({
200
+ type: string;
201
+ properties: {
202
+ kind: {
203
+ const: string;
204
+ };
205
+ revision: {
206
+ type: string;
207
+ pattern: string;
208
+ };
209
+ identityId?: undefined;
210
+ };
211
+ required: string[];
212
+ additionalProperties: boolean;
213
+ } | {
214
+ type: string;
215
+ properties: {
216
+ kind: {
217
+ const: string;
218
+ };
219
+ identityId: {
220
+ type: string;
221
+ pattern: string;
222
+ };
223
+ revision?: undefined;
224
+ };
225
+ required: string[];
226
+ additionalProperties: boolean;
227
+ })[];
228
+ };
229
+ source: {
230
+ type: string;
231
+ properties: {
232
+ sourceId: {
233
+ type: string;
234
+ minLength: number;
235
+ pattern: string;
236
+ };
237
+ scopeId: {
238
+ type: string;
239
+ pattern: string;
240
+ };
241
+ subject: {
242
+ type: string;
243
+ minLength: number;
244
+ pattern: string;
245
+ };
246
+ issuer: {
247
+ type: string;
248
+ minLength: number;
249
+ pattern: string;
250
+ };
251
+ observedAt: {
252
+ type: string;
253
+ pattern: string;
254
+ };
255
+ payload: {
256
+ $ref: string;
257
+ };
258
+ digest: {
259
+ type: string;
260
+ pattern: string;
261
+ };
262
+ decisionId: {
263
+ anyOf: ({
264
+ $ref: string;
265
+ type?: undefined;
266
+ } | {
267
+ type: string;
268
+ $ref?: undefined;
269
+ })[];
270
+ };
271
+ };
272
+ required: string[];
273
+ additionalProperties: boolean;
274
+ };
275
+ sourceRef: {
276
+ type: string;
277
+ properties: {
278
+ sourceId: {
279
+ type: string;
280
+ minLength: number;
281
+ pattern: string;
282
+ };
283
+ digest: {
284
+ type: string;
285
+ pattern: string;
286
+ };
287
+ };
288
+ required: string[];
289
+ additionalProperties: boolean;
290
+ };
291
+ evaluationCase: {
292
+ type: string;
293
+ properties: {
294
+ id: {
295
+ type: string;
296
+ minLength: number;
297
+ pattern: string;
298
+ };
299
+ domain: {
300
+ type: string;
301
+ minLength: number;
302
+ pattern: string;
303
+ };
304
+ input: {
305
+ $ref: string;
306
+ };
307
+ source: {
308
+ $ref: string;
309
+ };
310
+ };
311
+ required: string[];
312
+ additionalProperties: boolean;
313
+ };
314
+ caseResult: {
315
+ type: string;
316
+ properties: {
317
+ id: {
318
+ type: string;
319
+ minLength: number;
320
+ pattern: string;
321
+ };
322
+ contentDigest: {
323
+ type: string;
324
+ pattern: string;
325
+ };
326
+ output: {
327
+ $ref: string;
328
+ };
329
+ baselineOutput: {
330
+ $ref: string;
331
+ };
332
+ category: {
333
+ enum: string[];
334
+ };
335
+ baselineCategory: {
336
+ enum: string[];
337
+ };
338
+ utility: {
339
+ type: string;
340
+ };
341
+ baselineUtility: {
342
+ type: string;
343
+ };
344
+ };
345
+ required: string[];
346
+ additionalProperties: boolean;
347
+ };
348
+ projectionItem: {
349
+ type: string;
350
+ properties: {
351
+ memoryId: {
352
+ type: string;
353
+ minLength: number;
354
+ pattern: string;
355
+ };
356
+ before: {
357
+ anyOf: ({
358
+ type: string;
359
+ pattern: string;
360
+ } | {
361
+ type: string;
362
+ pattern?: undefined;
363
+ })[];
364
+ };
365
+ after: {
366
+ anyOf: ({
367
+ type: string;
368
+ pattern: string;
369
+ } | {
370
+ type: string;
371
+ pattern?: undefined;
372
+ })[];
373
+ };
374
+ status: {
375
+ enum: string[];
376
+ };
377
+ changed: {
378
+ type: string;
379
+ };
380
+ };
381
+ required: string[];
382
+ additionalProperties: boolean;
383
+ };
384
+ decision: {
385
+ type: string;
386
+ properties: {
387
+ schemaVersion: {
388
+ const: number;
389
+ };
390
+ id: {
391
+ type: string;
392
+ pattern: string;
393
+ };
394
+ scopeId: {
395
+ type: string;
396
+ pattern: string;
397
+ };
398
+ artifactKey: {
399
+ type: string;
400
+ minLength: number;
401
+ pattern: string;
402
+ };
403
+ recordedAt: {
404
+ type: string;
405
+ pattern: string;
406
+ };
407
+ kind: {
408
+ const: string;
409
+ };
410
+ decisionKey: {
411
+ type: string;
412
+ minLength: number;
413
+ pattern: string;
414
+ };
415
+ scope: {
416
+ $ref: string;
417
+ };
418
+ adapter: {
419
+ $ref: string;
420
+ };
421
+ input: {
422
+ $ref: string;
423
+ };
424
+ output: {
425
+ $ref: string;
426
+ };
427
+ decidedAt: {
428
+ type: string;
429
+ pattern: string;
430
+ };
431
+ cutoffAt: {
432
+ type: string;
433
+ pattern: string;
434
+ };
435
+ expectedResolutionAt: {
436
+ anyOf: ({
437
+ type: string;
438
+ pattern: string;
439
+ } | {
440
+ type: string;
441
+ pattern?: undefined;
442
+ })[];
443
+ };
444
+ memoryIds: {
445
+ type: string;
446
+ items: {
447
+ type: string;
448
+ minLength: number;
449
+ pattern: string;
450
+ };
451
+ minItems: number;
452
+ };
453
+ configuration: {
454
+ $ref: string;
455
+ };
456
+ usedVersionId: {
457
+ anyOf: ({
458
+ type: string;
459
+ pattern: string;
460
+ } | {
461
+ type: string;
462
+ pattern?: undefined;
463
+ })[];
464
+ };
465
+ staticPayload: {
466
+ $ref: string;
467
+ };
468
+ };
469
+ required: string[];
470
+ additionalProperties: boolean;
471
+ };
472
+ resolution: {
473
+ type: string;
474
+ properties: {
475
+ schemaVersion: {
476
+ const: number;
477
+ };
478
+ id: {
479
+ type: string;
480
+ pattern: string;
481
+ };
482
+ scopeId: {
483
+ type: string;
484
+ pattern: string;
485
+ };
486
+ artifactKey: {
487
+ type: string;
488
+ minLength: number;
489
+ pattern: string;
490
+ };
491
+ recordedAt: {
492
+ type: string;
493
+ pattern: string;
494
+ };
495
+ kind: {
496
+ const: string;
497
+ };
498
+ decisionId: {
499
+ type: string;
500
+ pattern: string;
501
+ };
502
+ resolverRevision: {
503
+ type: string;
504
+ pattern: string;
505
+ };
506
+ sources: {
507
+ type: string;
508
+ items: {
509
+ $ref: string;
510
+ };
511
+ minItems: number;
512
+ };
513
+ payload: {
514
+ $ref: string;
515
+ };
516
+ receivedAt: {
517
+ type: string;
518
+ pattern: string;
519
+ };
520
+ late: {
521
+ anyOf: {
522
+ type: string;
523
+ }[];
524
+ };
525
+ resolutionSchema: {
526
+ type: string;
527
+ pattern: string;
528
+ };
529
+ };
530
+ required: string[];
531
+ additionalProperties: boolean;
532
+ };
533
+ score: {
534
+ type: string;
535
+ properties: {
536
+ schemaVersion: {
537
+ const: number;
538
+ };
539
+ id: {
540
+ type: string;
541
+ pattern: string;
542
+ };
543
+ scopeId: {
544
+ type: string;
545
+ pattern: string;
546
+ };
547
+ artifactKey: {
548
+ type: string;
549
+ minLength: number;
550
+ pattern: string;
551
+ };
552
+ recordedAt: {
553
+ type: string;
554
+ pattern: string;
555
+ };
556
+ kind: {
557
+ const: string;
558
+ };
559
+ decisionId: {
560
+ type: string;
561
+ pattern: string;
562
+ };
563
+ resolutionId: {
564
+ type: string;
565
+ pattern: string;
566
+ };
567
+ scorerRevision: {
568
+ type: string;
569
+ pattern: string;
570
+ };
571
+ outcome: {
572
+ enum: string[];
573
+ };
574
+ utility: {
575
+ type: string;
576
+ };
577
+ diagnostics: {
578
+ $ref: string;
579
+ };
580
+ policyId: {
581
+ type: string;
582
+ pattern: string;
583
+ };
584
+ };
585
+ required: string[];
586
+ additionalProperties: boolean;
587
+ };
588
+ projectionIntent: {
589
+ type: string;
590
+ properties: {
591
+ schemaVersion: {
592
+ const: number;
593
+ };
594
+ id: {
595
+ type: string;
596
+ pattern: string;
597
+ };
598
+ scopeId: {
599
+ type: string;
600
+ pattern: string;
601
+ };
602
+ artifactKey: {
603
+ type: string;
604
+ minLength: number;
605
+ pattern: string;
606
+ };
607
+ recordedAt: {
608
+ type: string;
609
+ pattern: string;
610
+ };
611
+ kind: {
612
+ const: string;
613
+ };
614
+ scoreId: {
615
+ type: string;
616
+ pattern: string;
617
+ };
618
+ memoryIds: {
619
+ type: string;
620
+ items: {
621
+ type: string;
622
+ minLength: number;
623
+ pattern: string;
624
+ };
625
+ minItems: number;
626
+ };
627
+ authorizationId: {
628
+ type: string;
629
+ pattern: string;
630
+ };
631
+ policyId: {
632
+ type: string;
633
+ pattern: string;
634
+ };
635
+ };
636
+ required: string[];
637
+ additionalProperties: boolean;
638
+ };
639
+ projectionReceipt: {
640
+ type: string;
641
+ properties: {
642
+ schemaVersion: {
643
+ const: number;
644
+ };
645
+ id: {
646
+ type: string;
647
+ pattern: string;
648
+ };
649
+ scopeId: {
650
+ type: string;
651
+ pattern: string;
652
+ };
653
+ artifactKey: {
654
+ type: string;
655
+ minLength: number;
656
+ pattern: string;
657
+ };
658
+ recordedAt: {
659
+ type: string;
660
+ pattern: string;
661
+ };
662
+ kind: {
663
+ const: string;
664
+ };
665
+ scoreId: {
666
+ type: string;
667
+ pattern: string;
668
+ };
669
+ intentId: {
670
+ type: string;
671
+ pattern: string;
672
+ };
673
+ policyId: {
674
+ type: string;
675
+ pattern: string;
676
+ };
677
+ items: {
678
+ type: string;
679
+ items: {
680
+ $ref: string;
681
+ };
682
+ minItems: number;
683
+ };
684
+ applied: {
685
+ type: string;
686
+ minimum: number;
687
+ };
688
+ missing: {
689
+ type: string;
690
+ minimum: number;
691
+ };
692
+ changedMemoryWrites: {
693
+ type: string;
694
+ minimum: number;
695
+ };
696
+ };
697
+ required: string[];
698
+ additionalProperties: boolean;
699
+ };
700
+ reflection: {
701
+ type: string;
702
+ properties: {
703
+ schemaVersion: {
704
+ const: number;
705
+ };
706
+ id: {
707
+ type: string;
708
+ pattern: string;
709
+ };
710
+ scopeId: {
711
+ type: string;
712
+ pattern: string;
713
+ };
714
+ artifactKey: {
715
+ type: string;
716
+ minLength: number;
717
+ pattern: string;
718
+ };
719
+ recordedAt: {
720
+ type: string;
721
+ pattern: string;
722
+ };
723
+ kind: {
724
+ const: string;
725
+ };
726
+ scoreIds: {
727
+ type: string;
728
+ items: {
729
+ type: string;
730
+ pattern: string;
731
+ };
732
+ minItems: number;
733
+ maxItems: number;
734
+ };
735
+ parentVersionId: {
736
+ anyOf: ({
737
+ type: string;
738
+ pattern: string;
739
+ } | {
740
+ type: string;
741
+ pattern?: undefined;
742
+ })[];
743
+ };
744
+ configuration: {
745
+ $ref: string;
746
+ };
747
+ text: {
748
+ type: string;
749
+ };
750
+ citations: {
751
+ type: string;
752
+ items: {
753
+ type: string;
754
+ pattern: string;
755
+ };
756
+ minItems: number;
757
+ maxItems: number;
758
+ };
759
+ attemptId: {
760
+ type: string;
761
+ pattern: string;
762
+ };
763
+ };
764
+ required: string[];
765
+ additionalProperties: boolean;
766
+ };
767
+ artifactVersion: {
768
+ type: string;
769
+ properties: {
770
+ schemaVersion: {
771
+ const: number;
772
+ };
773
+ id: {
774
+ type: string;
775
+ pattern: string;
776
+ };
777
+ scopeId: {
778
+ type: string;
779
+ pattern: string;
780
+ };
781
+ artifactKey: {
782
+ type: string;
783
+ minLength: number;
784
+ pattern: string;
785
+ };
786
+ recordedAt: {
787
+ type: string;
788
+ pattern: string;
789
+ };
790
+ kind: {
791
+ const: string;
792
+ };
793
+ parentVersionId: {
794
+ anyOf: ({
795
+ type: string;
796
+ pattern: string;
797
+ } | {
798
+ type: string;
799
+ pattern?: undefined;
800
+ })[];
801
+ };
802
+ payload: {
803
+ $ref: string;
804
+ };
805
+ payloadSchema: {
806
+ type: string;
807
+ pattern: string;
808
+ };
809
+ adapter: {
810
+ $ref: string;
811
+ };
812
+ reflectionId: {
813
+ type: string;
814
+ pattern: string;
815
+ };
816
+ mode: {
817
+ enum: string[];
818
+ };
819
+ policyId: {
820
+ type: string;
821
+ pattern: string;
822
+ };
823
+ policy: {
824
+ $ref: string;
825
+ };
826
+ issues: {
827
+ type: string;
828
+ items: {
829
+ $ref: string;
830
+ };
831
+ minItems: number;
832
+ };
833
+ expectedHead: {
834
+ $ref: string;
835
+ };
836
+ };
837
+ required: string[];
838
+ additionalProperties: boolean;
839
+ };
840
+ evaluationRegistration: {
841
+ type: string;
842
+ properties: {
843
+ schemaVersion: {
844
+ const: number;
845
+ };
846
+ id: {
847
+ type: string;
848
+ pattern: string;
849
+ };
850
+ scopeId: {
851
+ type: string;
852
+ pattern: string;
853
+ };
854
+ artifactKey: {
855
+ type: string;
856
+ minLength: number;
857
+ pattern: string;
858
+ };
859
+ recordedAt: {
860
+ type: string;
861
+ pattern: string;
862
+ };
863
+ kind: {
864
+ const: string;
865
+ };
866
+ slotId: {
867
+ type: string;
868
+ minLength: number;
869
+ pattern: string;
870
+ };
871
+ versionId: {
872
+ type: string;
873
+ pattern: string;
874
+ };
875
+ expectedHead: {
876
+ $ref: string;
877
+ };
878
+ trainingScoreIds: {
879
+ type: string;
880
+ items: {
881
+ type: string;
882
+ pattern: string;
883
+ };
884
+ minItems: number;
885
+ };
886
+ cases: {
887
+ type: string;
888
+ items: {
889
+ $ref: string;
890
+ };
891
+ minItems: number;
892
+ maxItems: number;
893
+ };
894
+ evaluatorRevision: {
895
+ type: string;
896
+ pattern: string;
897
+ };
898
+ gatePolicyId: {
899
+ type: string;
900
+ pattern: string;
901
+ };
902
+ maxPhysicalRequests: {
903
+ type: string;
904
+ minimum: number;
905
+ };
906
+ maxCost: {
907
+ anyOf: ({
908
+ type: string;
909
+ minimum: number;
910
+ } | {
911
+ type: string;
912
+ minimum?: undefined;
913
+ })[];
914
+ };
915
+ };
916
+ required: string[];
917
+ additionalProperties: boolean;
918
+ };
919
+ evaluation: {
920
+ type: string;
921
+ properties: {
922
+ schemaVersion: {
923
+ const: number;
924
+ };
925
+ id: {
926
+ type: string;
927
+ pattern: string;
928
+ };
929
+ scopeId: {
930
+ type: string;
931
+ pattern: string;
932
+ };
933
+ artifactKey: {
934
+ type: string;
935
+ minLength: number;
936
+ pattern: string;
937
+ };
938
+ recordedAt: {
939
+ type: string;
940
+ pattern: string;
941
+ };
942
+ kind: {
943
+ const: string;
944
+ };
945
+ versionId: {
946
+ type: string;
947
+ pattern: string;
948
+ };
949
+ registrationId: {
950
+ type: string;
951
+ pattern: string;
952
+ };
953
+ expectedHead: {
954
+ $ref: string;
955
+ };
956
+ trainingScoreIds: {
957
+ type: string;
958
+ items: {
959
+ type: string;
960
+ pattern: string;
961
+ };
962
+ minItems: number;
963
+ };
964
+ caseResults: {
965
+ type: string;
966
+ items: {
967
+ $ref: string;
968
+ };
969
+ minItems: number;
970
+ };
971
+ caseReportId: {
972
+ type: string;
973
+ pattern: string;
974
+ };
975
+ evaluatorRevision: {
976
+ type: string;
977
+ pattern: string;
978
+ };
979
+ gatePolicyId: {
980
+ type: string;
981
+ pattern: string;
982
+ };
983
+ eligible: {
984
+ type: string;
985
+ };
986
+ issues: {
987
+ type: string;
988
+ items: {
989
+ $ref: string;
990
+ };
991
+ minItems: number;
992
+ };
993
+ meanDelta: {
994
+ anyOf: {
995
+ type: string;
996
+ }[];
997
+ };
998
+ physicalRequests: {
999
+ type: string;
1000
+ minimum: number;
1001
+ };
1002
+ cost: {
1003
+ anyOf: {
1004
+ type: string;
1005
+ }[];
1006
+ };
1007
+ };
1008
+ required: string[];
1009
+ additionalProperties: boolean;
1010
+ };
1011
+ approval: {
1012
+ type: string;
1013
+ properties: {
1014
+ schemaVersion: {
1015
+ const: number;
1016
+ };
1017
+ id: {
1018
+ type: string;
1019
+ pattern: string;
1020
+ };
1021
+ scopeId: {
1022
+ type: string;
1023
+ pattern: string;
1024
+ };
1025
+ artifactKey: {
1026
+ type: string;
1027
+ minLength: number;
1028
+ pattern: string;
1029
+ };
1030
+ recordedAt: {
1031
+ type: string;
1032
+ pattern: string;
1033
+ };
1034
+ kind: {
1035
+ const: string;
1036
+ };
1037
+ action: {
1038
+ enum: string[];
1039
+ };
1040
+ actorId: {
1041
+ type: string;
1042
+ minLength: number;
1043
+ pattern: string;
1044
+ };
1045
+ authorityId: {
1046
+ type: string;
1047
+ pattern: string;
1048
+ };
1049
+ versionId: {
1050
+ type: string;
1051
+ pattern: string;
1052
+ };
1053
+ evaluationId: {
1054
+ type: string;
1055
+ pattern: string;
1056
+ };
1057
+ expectedHead: {
1058
+ $ref: string;
1059
+ };
1060
+ gatePolicyId: {
1061
+ type: string;
1062
+ pattern: string;
1063
+ };
1064
+ reason: {
1065
+ type: string;
1066
+ minLength: number;
1067
+ pattern: string;
1068
+ };
1069
+ requestId: {
1070
+ $ref: string;
1071
+ };
1072
+ };
1073
+ required: string[];
1074
+ additionalProperties: boolean;
1075
+ };
1076
+ activationEvent: {
1077
+ type: string;
1078
+ properties: {
1079
+ schemaVersion: {
1080
+ const: number;
1081
+ };
1082
+ id: {
1083
+ type: string;
1084
+ pattern: string;
1085
+ };
1086
+ scopeId: {
1087
+ type: string;
1088
+ pattern: string;
1089
+ };
1090
+ artifactKey: {
1091
+ type: string;
1092
+ minLength: number;
1093
+ pattern: string;
1094
+ };
1095
+ recordedAt: {
1096
+ type: string;
1097
+ pattern: string;
1098
+ };
1099
+ kind: {
1100
+ const: string;
1101
+ };
1102
+ action: {
1103
+ enum: string[];
1104
+ };
1105
+ approvalId: {
1106
+ type: string;
1107
+ pattern: string;
1108
+ };
1109
+ previousHead: {
1110
+ $ref: string;
1111
+ };
1112
+ nextHead: {
1113
+ $ref: string;
1114
+ };
1115
+ versionId: {
1116
+ type: string;
1117
+ pattern: string;
1118
+ };
1119
+ evaluationId: {
1120
+ type: string;
1121
+ pattern: string;
1122
+ };
1123
+ };
1124
+ required: string[];
1125
+ additionalProperties: boolean;
1126
+ };
1127
+ operationReceipt: {
1128
+ type: string;
1129
+ properties: {
1130
+ schemaVersion: {
1131
+ const: number;
1132
+ };
1133
+ id: {
1134
+ type: string;
1135
+ pattern: string;
1136
+ };
1137
+ scopeId: {
1138
+ type: string;
1139
+ pattern: string;
1140
+ };
1141
+ artifactKey: {
1142
+ type: string;
1143
+ minLength: number;
1144
+ pattern: string;
1145
+ };
1146
+ recordedAt: {
1147
+ type: string;
1148
+ pattern: string;
1149
+ };
1150
+ kind: {
1151
+ const: string;
1152
+ };
1153
+ requestKey: {
1154
+ type: string;
1155
+ minLength: number;
1156
+ pattern: string;
1157
+ };
1158
+ inputDigest: {
1159
+ type: string;
1160
+ pattern: string;
1161
+ };
1162
+ operation: {
1163
+ type: string;
1164
+ minLength: number;
1165
+ pattern: string;
1166
+ };
1167
+ result: {
1168
+ $ref: string;
1169
+ };
1170
+ requestId: {
1171
+ type: string;
1172
+ pattern: string;
1173
+ };
1174
+ };
1175
+ required: string[];
1176
+ additionalProperties: boolean;
1177
+ };
1178
+ attemptEvent: {
1179
+ type: string;
1180
+ properties: {
1181
+ schemaVersion: {
1182
+ const: number;
1183
+ };
1184
+ id: {
1185
+ type: string;
1186
+ pattern: string;
1187
+ };
1188
+ scopeId: {
1189
+ type: string;
1190
+ pattern: string;
1191
+ };
1192
+ artifactKey: {
1193
+ type: string;
1194
+ minLength: number;
1195
+ pattern: string;
1196
+ };
1197
+ recordedAt: {
1198
+ type: string;
1199
+ pattern: string;
1200
+ };
1201
+ kind: {
1202
+ const: string;
1203
+ };
1204
+ requestId: {
1205
+ type: string;
1206
+ pattern: string;
1207
+ };
1208
+ stage: {
1209
+ enum: string[];
1210
+ };
1211
+ inputDigest: {
1212
+ type: string;
1213
+ pattern: string;
1214
+ };
1215
+ details: {
1216
+ $ref: string;
1217
+ };
1218
+ };
1219
+ required: string[];
1220
+ additionalProperties: boolean;
1221
+ };
1222
+ outcomeRecord: {
1223
+ oneOf: {
1224
+ $ref: string;
1225
+ }[];
1226
+ };
1227
+ headRow: {
1228
+ type: string;
1229
+ properties: {
1230
+ id: {
1231
+ type: string;
1232
+ pattern: string;
1233
+ };
1234
+ scopeId: {
1235
+ type: string;
1236
+ pattern: string;
1237
+ };
1238
+ artifactKey: {
1239
+ type: string;
1240
+ minLength: number;
1241
+ pattern: string;
1242
+ };
1243
+ head: {
1244
+ $ref: string;
1245
+ };
1246
+ eventId: {
1247
+ anyOf: ({
1248
+ type: string;
1249
+ pattern: string;
1250
+ } | {
1251
+ type: string;
1252
+ pattern?: undefined;
1253
+ })[];
1254
+ };
1255
+ };
1256
+ required: string[];
1257
+ additionalProperties: boolean;
1258
+ };
1259
+ keyRow: {
1260
+ type: string;
1261
+ properties: {
1262
+ id: {
1263
+ type: string;
1264
+ pattern: string;
1265
+ };
1266
+ scopeId: {
1267
+ type: string;
1268
+ pattern: string;
1269
+ };
1270
+ value: {
1271
+ anyOf: ({
1272
+ type: string;
1273
+ pattern: string;
1274
+ minimum?: undefined;
1275
+ } | {
1276
+ type: string;
1277
+ minimum: number;
1278
+ pattern?: undefined;
1279
+ })[];
1280
+ };
1281
+ };
1282
+ required: string[];
1283
+ additionalProperties: boolean;
1284
+ };
1285
+ operation: {
1286
+ type: string;
1287
+ properties: {
1288
+ id: {
1289
+ type: string;
1290
+ pattern: string;
1291
+ };
1292
+ scopeId: {
1293
+ type: string;
1294
+ pattern: string;
1295
+ };
1296
+ artifactKey: {
1297
+ type: string;
1298
+ minLength: number;
1299
+ pattern: string;
1300
+ };
1301
+ requestKey: {
1302
+ type: string;
1303
+ minLength: number;
1304
+ pattern: string;
1305
+ };
1306
+ operation: {
1307
+ type: string;
1308
+ minLength: number;
1309
+ pattern: string;
1310
+ };
1311
+ inputDigest: {
1312
+ type: string;
1313
+ pattern: string;
1314
+ };
1315
+ state: {
1316
+ enum: string[];
1317
+ };
1318
+ receiptId: {
1319
+ anyOf: ({
1320
+ type: string;
1321
+ pattern: string;
1322
+ } | {
1323
+ type: string;
1324
+ pattern?: undefined;
1325
+ })[];
1326
+ };
1327
+ output: {
1328
+ $ref: string;
1329
+ };
1330
+ capacityReserved: {
1331
+ type: string;
1332
+ };
1333
+ attempt: {
1334
+ type: string;
1335
+ minimum: number;
1336
+ };
1337
+ preparationWrites: {
1338
+ type: string;
1339
+ minimum: number;
1340
+ };
1341
+ };
1342
+ required: string[];
1343
+ additionalProperties: boolean;
1344
+ };
1345
+ storedRecord: {
1346
+ type: string;
1347
+ properties: {
1348
+ id: {
1349
+ type: string;
1350
+ pattern: string;
1351
+ };
1352
+ scopeId: {
1353
+ type: string;
1354
+ pattern: string;
1355
+ };
1356
+ artifactKey: {
1357
+ type: string;
1358
+ minLength: number;
1359
+ pattern: string;
1360
+ };
1361
+ kind: {
1362
+ type: string;
1363
+ minLength: number;
1364
+ pattern: string;
1365
+ };
1366
+ seq: {
1367
+ type: string;
1368
+ minimum: number;
1369
+ };
1370
+ record: {
1371
+ $ref: string;
1372
+ };
1373
+ };
1374
+ required: string[];
1375
+ additionalProperties: boolean;
1376
+ };
1377
+ confidencePolicy: {
1378
+ type: string;
1379
+ properties: {
1380
+ successBoost: {
1381
+ type: string;
1382
+ minimum: number;
1383
+ };
1384
+ failurePenalty: {
1385
+ type: string;
1386
+ minimum: number;
1387
+ };
1388
+ partialBoost: {
1389
+ type: string;
1390
+ minimum: number;
1391
+ };
1392
+ minConfidence: {
1393
+ type: string;
1394
+ minimum: number;
1395
+ maximum: number;
1396
+ };
1397
+ maxConfidence: {
1398
+ type: string;
1399
+ minimum: number;
1400
+ maximum: number;
1401
+ };
1402
+ };
1403
+ required: string[];
1404
+ additionalProperties: boolean;
1405
+ };
1406
+ createInput: {
1407
+ type: string;
1408
+ properties: {
1409
+ decisionKey: {
1410
+ type: string;
1411
+ minLength: number;
1412
+ pattern: string;
1413
+ };
1414
+ adapter: {
1415
+ $ref: string;
1416
+ };
1417
+ input: {
1418
+ $ref: string;
1419
+ };
1420
+ output: {
1421
+ $ref: string;
1422
+ };
1423
+ decidedAt: {
1424
+ type: string;
1425
+ pattern: string;
1426
+ };
1427
+ cutoffAt: {
1428
+ type: string;
1429
+ pattern: string;
1430
+ };
1431
+ expectedResolutionAt: {
1432
+ anyOf: ({
1433
+ type: string;
1434
+ pattern: string;
1435
+ } | {
1436
+ type: string;
1437
+ pattern?: undefined;
1438
+ })[];
1439
+ };
1440
+ memoryIds: {
1441
+ type: string;
1442
+ items: {
1443
+ type: string;
1444
+ minLength: number;
1445
+ pattern: string;
1446
+ };
1447
+ minItems: number;
1448
+ };
1449
+ configuration: {
1450
+ $ref: string;
1451
+ };
1452
+ usedVersionId: {
1453
+ anyOf: ({
1454
+ type: string;
1455
+ pattern: string;
1456
+ } | {
1457
+ type: string;
1458
+ pattern?: undefined;
1459
+ })[];
1460
+ };
1461
+ staticPayload: {
1462
+ $ref: string;
1463
+ };
1464
+ };
1465
+ required: string[];
1466
+ additionalProperties: boolean;
1467
+ };
1468
+ resolveInput: {
1469
+ type: string;
1470
+ properties: {
1471
+ decisionId: {
1472
+ type: string;
1473
+ pattern: string;
1474
+ };
1475
+ evidence: {
1476
+ type: string;
1477
+ items: {
1478
+ $ref: string;
1479
+ };
1480
+ minItems: number;
1481
+ maxItems: number;
1482
+ };
1483
+ receivedAt: {
1484
+ type: string;
1485
+ pattern: string;
1486
+ };
1487
+ };
1488
+ required: string[];
1489
+ additionalProperties: boolean;
1490
+ };
1491
+ scoreInput: {
1492
+ type: string;
1493
+ properties: {
1494
+ resolutionId: {
1495
+ type: string;
1496
+ pattern: string;
1497
+ };
1498
+ };
1499
+ required: string[];
1500
+ additionalProperties: boolean;
1501
+ };
1502
+ projectInput: {
1503
+ type: string;
1504
+ properties: {
1505
+ scoreId: {
1506
+ type: string;
1507
+ pattern: string;
1508
+ };
1509
+ };
1510
+ required: string[];
1511
+ additionalProperties: boolean;
1512
+ };
1513
+ patch: {
1514
+ oneOf: ({
1515
+ type: string;
1516
+ properties: {
1517
+ op: {
1518
+ enum: string[];
1519
+ const?: undefined;
1520
+ };
1521
+ path: {
1522
+ type: string;
1523
+ };
1524
+ value: {
1525
+ $ref: string;
1526
+ };
1527
+ };
1528
+ required: string[];
1529
+ additionalProperties: boolean;
1530
+ } | {
1531
+ type: string;
1532
+ properties: {
1533
+ op: {
1534
+ const: string;
1535
+ enum?: undefined;
1536
+ };
1537
+ path: {
1538
+ type: string;
1539
+ };
1540
+ value?: undefined;
1541
+ };
1542
+ required: string[];
1543
+ additionalProperties: boolean;
1544
+ })[];
1545
+ };
1546
+ reflectInput: {
1547
+ type: string;
1548
+ properties: {
1549
+ mode: {
1550
+ enum: string[];
1551
+ };
1552
+ scoreIds: {
1553
+ type: string;
1554
+ items: {
1555
+ type: string;
1556
+ pattern: string;
1557
+ };
1558
+ minItems: number;
1559
+ maxItems: number;
1560
+ };
1561
+ parentVersionId: {
1562
+ anyOf: ({
1563
+ type: string;
1564
+ pattern: string;
1565
+ } | {
1566
+ type: string;
1567
+ pattern?: undefined;
1568
+ })[];
1569
+ };
1570
+ payload: {
1571
+ $ref: string;
1572
+ };
1573
+ patch: {
1574
+ type: string;
1575
+ items: {
1576
+ $ref: string;
1577
+ };
1578
+ minItems: number;
1579
+ };
1580
+ text: {
1581
+ type: string;
1582
+ };
1583
+ citations: {
1584
+ type: string;
1585
+ items: {
1586
+ type: string;
1587
+ pattern: string;
1588
+ };
1589
+ minItems: number;
1590
+ maxItems: number;
1591
+ };
1592
+ configuration: {
1593
+ $ref: string;
1594
+ };
1595
+ };
1596
+ required: string[];
1597
+ additionalProperties: boolean;
1598
+ };
1599
+ evaluateInput: {
1600
+ type: string;
1601
+ properties: {
1602
+ versionId: {
1603
+ type: string;
1604
+ pattern: string;
1605
+ };
1606
+ slotId: {
1607
+ type: string;
1608
+ minLength: number;
1609
+ pattern: string;
1610
+ };
1611
+ };
1612
+ required: string[];
1613
+ additionalProperties: boolean;
1614
+ };
1615
+ approveInput: {
1616
+ type: string;
1617
+ properties: {
1618
+ action: {
1619
+ enum: string[];
1620
+ };
1621
+ versionId: {
1622
+ type: string;
1623
+ pattern: string;
1624
+ };
1625
+ evaluationId: {
1626
+ type: string;
1627
+ pattern: string;
1628
+ };
1629
+ expectedHead: {
1630
+ $ref: string;
1631
+ };
1632
+ reason: {
1633
+ type: string;
1634
+ minLength: number;
1635
+ pattern: string;
1636
+ };
1637
+ };
1638
+ required: string[];
1639
+ additionalProperties: boolean;
1640
+ };
1641
+ promoteInput: {
1642
+ type: string;
1643
+ properties: {
1644
+ approvalId: {
1645
+ type: string;
1646
+ pattern: string;
1647
+ };
1648
+ };
1649
+ required: string[];
1650
+ additionalProperties: boolean;
1651
+ };
1652
+ rollbackInput: {
1653
+ type: string;
1654
+ properties: {
1655
+ approvalId: {
1656
+ type: string;
1657
+ pattern: string;
1658
+ };
1659
+ };
1660
+ required: string[];
1661
+ additionalProperties: boolean;
1662
+ };
1663
+ reconcileInput: {
1664
+ type: string;
1665
+ properties: {
1666
+ attemptId: {
1667
+ type: string;
1668
+ pattern: string;
1669
+ };
1670
+ evidence: {
1671
+ $ref: string;
1672
+ };
1673
+ };
1674
+ required: string[];
1675
+ additionalProperties: boolean;
1676
+ };
1677
+ inspectInput: {
1678
+ type: string;
1679
+ properties: {
1680
+ id: {
1681
+ type: string;
1682
+ pattern: string;
1683
+ };
1684
+ includeLineage: {
1685
+ type: string;
1686
+ };
1687
+ };
1688
+ required: string[];
1689
+ additionalProperties: boolean;
1690
+ };
1691
+ injectInput: {
1692
+ type: string;
1693
+ properties: {};
1694
+ required: never[];
1695
+ additionalProperties: boolean;
1696
+ };
1697
+ cursor: {
1698
+ type: string;
1699
+ properties: {
1700
+ scopeId: {
1701
+ type: string;
1702
+ pattern: string;
1703
+ };
1704
+ artifactKey: {
1705
+ type: string;
1706
+ minLength: number;
1707
+ pattern: string;
1708
+ };
1709
+ after: {
1710
+ type: string;
1711
+ minimum: number;
1712
+ };
1713
+ upper: {
1714
+ type: string;
1715
+ minimum: number;
1716
+ };
1717
+ filterId: {
1718
+ type: string;
1719
+ pattern: string;
1720
+ };
1721
+ };
1722
+ required: string[];
1723
+ additionalProperties: boolean;
1724
+ };
1725
+ historyInput: {
1726
+ type: string;
1727
+ properties: {
1728
+ pageSize: {
1729
+ type: string;
1730
+ minimum: number;
1731
+ maximum: number;
1732
+ };
1733
+ cursor: {
1734
+ anyOf: ({
1735
+ $ref: string;
1736
+ type?: undefined;
1737
+ } | {
1738
+ type: string;
1739
+ $ref?: undefined;
1740
+ })[];
1741
+ };
1742
+ };
1743
+ required: never[];
1744
+ additionalProperties: boolean;
1745
+ };
1746
+ createCommand: {
1747
+ type: string;
1748
+ properties: {
1749
+ scopeId: {
1750
+ type: string;
1751
+ pattern: string;
1752
+ };
1753
+ artifactKey: {
1754
+ type: string;
1755
+ minLength: number;
1756
+ pattern: string;
1757
+ };
1758
+ requestKey: {
1759
+ type: string;
1760
+ minLength: number;
1761
+ pattern: string;
1762
+ };
1763
+ at: {
1764
+ type: string;
1765
+ pattern: string;
1766
+ };
1767
+ input: {
1768
+ $ref: string;
1769
+ };
1770
+ };
1771
+ required: string[];
1772
+ additionalProperties: boolean;
1773
+ };
1774
+ resolveCommand: {
1775
+ type: string;
1776
+ properties: {
1777
+ scopeId: {
1778
+ type: string;
1779
+ pattern: string;
1780
+ };
1781
+ artifactKey: {
1782
+ type: string;
1783
+ minLength: number;
1784
+ pattern: string;
1785
+ };
1786
+ requestKey: {
1787
+ type: string;
1788
+ minLength: number;
1789
+ pattern: string;
1790
+ };
1791
+ at: {
1792
+ type: string;
1793
+ pattern: string;
1794
+ };
1795
+ input: {
1796
+ $ref: string;
1797
+ };
1798
+ };
1799
+ required: string[];
1800
+ additionalProperties: boolean;
1801
+ };
1802
+ scoreCommand: {
1803
+ type: string;
1804
+ properties: {
1805
+ scopeId: {
1806
+ type: string;
1807
+ pattern: string;
1808
+ };
1809
+ artifactKey: {
1810
+ type: string;
1811
+ minLength: number;
1812
+ pattern: string;
1813
+ };
1814
+ requestKey: {
1815
+ type: string;
1816
+ minLength: number;
1817
+ pattern: string;
1818
+ };
1819
+ at: {
1820
+ type: string;
1821
+ pattern: string;
1822
+ };
1823
+ input: {
1824
+ $ref: string;
1825
+ };
1826
+ };
1827
+ required: string[];
1828
+ additionalProperties: boolean;
1829
+ };
1830
+ projectCommand: {
1831
+ type: string;
1832
+ properties: {
1833
+ scopeId: {
1834
+ type: string;
1835
+ pattern: string;
1836
+ };
1837
+ artifactKey: {
1838
+ type: string;
1839
+ minLength: number;
1840
+ pattern: string;
1841
+ };
1842
+ requestKey: {
1843
+ type: string;
1844
+ minLength: number;
1845
+ pattern: string;
1846
+ };
1847
+ at: {
1848
+ type: string;
1849
+ pattern: string;
1850
+ };
1851
+ input: {
1852
+ $ref: string;
1853
+ };
1854
+ };
1855
+ required: string[];
1856
+ additionalProperties: boolean;
1857
+ };
1858
+ reflectCommand: {
1859
+ type: string;
1860
+ properties: {
1861
+ scopeId: {
1862
+ type: string;
1863
+ pattern: string;
1864
+ };
1865
+ artifactKey: {
1866
+ type: string;
1867
+ minLength: number;
1868
+ pattern: string;
1869
+ };
1870
+ requestKey: {
1871
+ type: string;
1872
+ minLength: number;
1873
+ pattern: string;
1874
+ };
1875
+ at: {
1876
+ type: string;
1877
+ pattern: string;
1878
+ };
1879
+ input: {
1880
+ $ref: string;
1881
+ };
1882
+ };
1883
+ required: string[];
1884
+ additionalProperties: boolean;
1885
+ };
1886
+ evaluateCommand: {
1887
+ type: string;
1888
+ properties: {
1889
+ scopeId: {
1890
+ type: string;
1891
+ pattern: string;
1892
+ };
1893
+ artifactKey: {
1894
+ type: string;
1895
+ minLength: number;
1896
+ pattern: string;
1897
+ };
1898
+ requestKey: {
1899
+ type: string;
1900
+ minLength: number;
1901
+ pattern: string;
1902
+ };
1903
+ at: {
1904
+ type: string;
1905
+ pattern: string;
1906
+ };
1907
+ input: {
1908
+ $ref: string;
1909
+ };
1910
+ };
1911
+ required: string[];
1912
+ additionalProperties: boolean;
1913
+ };
1914
+ approveCommand: {
1915
+ type: string;
1916
+ properties: {
1917
+ scopeId: {
1918
+ type: string;
1919
+ pattern: string;
1920
+ };
1921
+ artifactKey: {
1922
+ type: string;
1923
+ minLength: number;
1924
+ pattern: string;
1925
+ };
1926
+ requestKey: {
1927
+ type: string;
1928
+ minLength: number;
1929
+ pattern: string;
1930
+ };
1931
+ at: {
1932
+ type: string;
1933
+ pattern: string;
1934
+ };
1935
+ input: {
1936
+ $ref: string;
1937
+ };
1938
+ };
1939
+ required: string[];
1940
+ additionalProperties: boolean;
1941
+ };
1942
+ promoteCommand: {
1943
+ type: string;
1944
+ properties: {
1945
+ scopeId: {
1946
+ type: string;
1947
+ pattern: string;
1948
+ };
1949
+ artifactKey: {
1950
+ type: string;
1951
+ minLength: number;
1952
+ pattern: string;
1953
+ };
1954
+ requestKey: {
1955
+ type: string;
1956
+ minLength: number;
1957
+ pattern: string;
1958
+ };
1959
+ at: {
1960
+ type: string;
1961
+ pattern: string;
1962
+ };
1963
+ input: {
1964
+ $ref: string;
1965
+ };
1966
+ };
1967
+ required: string[];
1968
+ additionalProperties: boolean;
1969
+ };
1970
+ rollbackCommand: {
1971
+ type: string;
1972
+ properties: {
1973
+ scopeId: {
1974
+ type: string;
1975
+ pattern: string;
1976
+ };
1977
+ artifactKey: {
1978
+ type: string;
1979
+ minLength: number;
1980
+ pattern: string;
1981
+ };
1982
+ requestKey: {
1983
+ type: string;
1984
+ minLength: number;
1985
+ pattern: string;
1986
+ };
1987
+ at: {
1988
+ type: string;
1989
+ pattern: string;
1990
+ };
1991
+ input: {
1992
+ $ref: string;
1993
+ };
1994
+ };
1995
+ required: string[];
1996
+ additionalProperties: boolean;
1997
+ };
1998
+ reconcileCommand: {
1999
+ type: string;
2000
+ properties: {
2001
+ scopeId: {
2002
+ type: string;
2003
+ pattern: string;
2004
+ };
2005
+ artifactKey: {
2006
+ type: string;
2007
+ minLength: number;
2008
+ pattern: string;
2009
+ };
2010
+ requestKey: {
2011
+ type: string;
2012
+ minLength: number;
2013
+ pattern: string;
2014
+ };
2015
+ at: {
2016
+ type: string;
2017
+ pattern: string;
2018
+ };
2019
+ input: {
2020
+ $ref: string;
2021
+ };
2022
+ };
2023
+ required: string[];
2024
+ additionalProperties: boolean;
2025
+ };
2026
+ inspectCommand: {
2027
+ type: string;
2028
+ properties: {
2029
+ scopeId: {
2030
+ type: string;
2031
+ pattern: string;
2032
+ };
2033
+ artifactKey: {
2034
+ type: string;
2035
+ minLength: number;
2036
+ pattern: string;
2037
+ };
2038
+ input: {
2039
+ $ref: string;
2040
+ };
2041
+ };
2042
+ required: string[];
2043
+ additionalProperties: boolean;
2044
+ };
2045
+ injectCommand: {
2046
+ type: string;
2047
+ properties: {
2048
+ scopeId: {
2049
+ type: string;
2050
+ pattern: string;
2051
+ };
2052
+ artifactKey: {
2053
+ type: string;
2054
+ minLength: number;
2055
+ pattern: string;
2056
+ };
2057
+ input: {
2058
+ $ref: string;
2059
+ };
2060
+ };
2061
+ required: string[];
2062
+ additionalProperties: boolean;
2063
+ };
2064
+ historyCommand: {
2065
+ type: string;
2066
+ properties: {
2067
+ scopeId: {
2068
+ type: string;
2069
+ pattern: string;
2070
+ };
2071
+ artifactKey: {
2072
+ type: string;
2073
+ minLength: number;
2074
+ pattern: string;
2075
+ };
2076
+ input: {
2077
+ $ref: string;
2078
+ };
2079
+ };
2080
+ required: string[];
2081
+ additionalProperties: boolean;
2082
+ };
2083
+ hash: {
2084
+ type: string;
2085
+ pattern: string;
2086
+ };
2087
+ category: {
2088
+ enum: string[];
2089
+ };
2090
+ evaluationSlot: {
2091
+ type: string;
2092
+ properties: {
2093
+ slotId: {
2094
+ type: string;
2095
+ minLength: number;
2096
+ pattern: string;
2097
+ };
2098
+ versionId: {
2099
+ type: string;
2100
+ pattern: string;
2101
+ };
2102
+ expectedHead: {
2103
+ $ref: string;
2104
+ };
2105
+ trainingScoreIds: {
2106
+ type: string;
2107
+ items: {
2108
+ type: string;
2109
+ pattern: string;
2110
+ };
2111
+ minItems: number;
2112
+ };
2113
+ cases: {
2114
+ type: string;
2115
+ items: {
2116
+ $ref: string;
2117
+ };
2118
+ minItems: number;
2119
+ maxItems: number;
2120
+ };
2121
+ evaluatorRevision: {
2122
+ type: string;
2123
+ pattern: string;
2124
+ };
2125
+ gatePolicyId: {
2126
+ type: string;
2127
+ pattern: string;
2128
+ };
2129
+ maxPhysicalRequests: {
2130
+ type: string;
2131
+ minimum: number;
2132
+ };
2133
+ maxCost: {
2134
+ anyOf: ({
2135
+ type: string;
2136
+ minimum: number;
2137
+ } | {
2138
+ type: string;
2139
+ minimum?: undefined;
2140
+ })[];
2141
+ };
2142
+ };
2143
+ required: string[];
2144
+ additionalProperties: boolean;
2145
+ };
2146
+ proposal: {
2147
+ type: string;
2148
+ properties: {
2149
+ payload: {
2150
+ $ref: string;
2151
+ };
2152
+ patch: {
2153
+ type: string;
2154
+ items: {
2155
+ $ref: string;
2156
+ };
2157
+ minItems: number;
2158
+ };
2159
+ text: {
2160
+ type: string;
2161
+ };
2162
+ citations: {
2163
+ type: string;
2164
+ items: {
2165
+ type: string;
2166
+ pattern: string;
2167
+ };
2168
+ minItems: number;
2169
+ maxItems: number;
2170
+ };
2171
+ };
2172
+ required: string[];
2173
+ additionalProperties: boolean;
2174
+ };
2175
+ proposalReply: {
2176
+ type: string;
2177
+ properties: {
2178
+ proposal: {
2179
+ anyOf: ({
2180
+ $ref: string;
2181
+ type?: undefined;
2182
+ } | {
2183
+ type: string;
2184
+ $ref?: undefined;
2185
+ })[];
2186
+ };
2187
+ issues: {
2188
+ type: string;
2189
+ items: {
2190
+ $ref: string;
2191
+ };
2192
+ maxItems: number;
2193
+ };
2194
+ requestDigest: {
2195
+ $ref: string;
2196
+ };
2197
+ identityId: {
2198
+ $ref: string;
2199
+ };
2200
+ physicalRequests: {
2201
+ type: string;
2202
+ minimum: number;
2203
+ maximum: number;
2204
+ };
2205
+ replayed: {
2206
+ type: string;
2207
+ };
2208
+ usage: {
2209
+ $ref: string;
2210
+ };
2211
+ usageKnown: {
2212
+ type: string;
2213
+ };
2214
+ cost: {
2215
+ anyOf: ({
2216
+ type: string;
2217
+ minimum: number;
2218
+ } | {
2219
+ type: string;
2220
+ minimum?: undefined;
2221
+ })[];
2222
+ };
2223
+ outputDigest: {
2224
+ $ref: string;
2225
+ };
2226
+ };
2227
+ required: string[];
2228
+ additionalProperties: boolean;
2229
+ };
2230
+ dispatchSnapshot: {
2231
+ type: string;
2232
+ properties: {
2233
+ input: {
2234
+ $ref: string;
2235
+ };
2236
+ head: {
2237
+ $ref: string;
2238
+ };
2239
+ previous: {
2240
+ $ref: string;
2241
+ };
2242
+ identity: {
2243
+ $ref: string;
2244
+ };
2245
+ requestDigest: {
2246
+ $ref: string;
2247
+ };
2248
+ };
2249
+ required: string[];
2250
+ additionalProperties: boolean;
2251
+ };
2252
+ preparedModelOutput: {
2253
+ type: string;
2254
+ properties: {
2255
+ input: {
2256
+ $ref: string;
2257
+ };
2258
+ head: {
2259
+ $ref: string;
2260
+ };
2261
+ previous: {
2262
+ $ref: string;
2263
+ };
2264
+ reply: {
2265
+ $ref: string;
2266
+ };
2267
+ };
2268
+ required: string[];
2269
+ additionalProperties: boolean;
2270
+ };
2271
+ reconciliationProof: {
2272
+ oneOf: ({
2273
+ type: string;
2274
+ properties: {
2275
+ attemptId: {
2276
+ $ref: string;
2277
+ };
2278
+ attempt: {
2279
+ type: string;
2280
+ minimum: number;
2281
+ };
2282
+ inputDigest: {
2283
+ $ref: string;
2284
+ };
2285
+ kind: {
2286
+ const: string;
2287
+ };
2288
+ reply: {
2289
+ $ref: string;
2290
+ };
2291
+ reason?: undefined;
2292
+ };
2293
+ required: string[];
2294
+ additionalProperties: boolean;
2295
+ } | {
2296
+ type: string;
2297
+ properties: {
2298
+ attemptId: {
2299
+ $ref: string;
2300
+ };
2301
+ attempt: {
2302
+ type: string;
2303
+ minimum: number;
2304
+ };
2305
+ inputDigest: {
2306
+ $ref: string;
2307
+ };
2308
+ kind: {
2309
+ const: string;
2310
+ };
2311
+ reason: {
2312
+ type: string;
2313
+ minLength: number;
2314
+ maxLength: number;
2315
+ };
2316
+ reply?: undefined;
2317
+ };
2318
+ required: string[];
2319
+ additionalProperties: boolean;
2320
+ })[];
2321
+ };
2322
+ principal: {
2323
+ type: string;
2324
+ properties: {
2325
+ id: {
2326
+ type: string;
2327
+ minLength: number;
2328
+ };
2329
+ authorityId: {
2330
+ $ref: string;
2331
+ };
2332
+ approve: {
2333
+ type: string;
2334
+ };
2335
+ reconcile: {
2336
+ type: string;
2337
+ };
2338
+ };
2339
+ required: string[];
2340
+ additionalProperties: boolean;
2341
+ };
2342
+ historyEntry: {
2343
+ type: string;
2344
+ properties: {
2345
+ sequence: {
2346
+ type: string;
2347
+ minimum: number;
2348
+ };
2349
+ record: {
2350
+ $ref: string;
2351
+ };
2352
+ };
2353
+ required: string[];
2354
+ additionalProperties: boolean;
2355
+ };
2356
+ inspection: {
2357
+ type: string;
2358
+ properties: {
2359
+ record: {
2360
+ $ref: string;
2361
+ };
2362
+ lineage: {
2363
+ type: string;
2364
+ items: {
2365
+ $ref: string;
2366
+ };
2367
+ };
2368
+ };
2369
+ required: string[];
2370
+ additionalProperties: boolean;
2371
+ };
2372
+ historyPage: {
2373
+ type: string;
2374
+ properties: {
2375
+ entries: {
2376
+ type: string;
2377
+ maxItems: number;
2378
+ items: {
2379
+ $ref: string;
2380
+ };
2381
+ };
2382
+ cursor: {
2383
+ anyOf: ({
2384
+ $ref: string;
2385
+ type?: undefined;
2386
+ } | {
2387
+ type: string;
2388
+ $ref?: undefined;
2389
+ })[];
2390
+ };
2391
+ upper: {
2392
+ type: string;
2393
+ minimum: number;
2394
+ };
2395
+ };
2396
+ required: string[];
2397
+ additionalProperties: boolean;
2398
+ };
2399
+ createValue: {
2400
+ type: string;
2401
+ properties: {
2402
+ decisionId: {
2403
+ $ref: string;
2404
+ };
2405
+ };
2406
+ required: string[];
2407
+ additionalProperties: boolean;
2408
+ };
2409
+ createResult: {
2410
+ oneOf: ({
2411
+ type: string;
2412
+ properties: {
2413
+ ok: {
2414
+ const: boolean;
2415
+ };
2416
+ value: {
2417
+ $ref: string;
2418
+ };
2419
+ replayed: {
2420
+ type: string;
2421
+ };
2422
+ writes: {
2423
+ type: string;
2424
+ minimum: number;
2425
+ };
2426
+ issues?: undefined;
2427
+ };
2428
+ required: string[];
2429
+ additionalProperties: boolean;
2430
+ } | {
2431
+ type: string;
2432
+ properties: {
2433
+ ok: {
2434
+ const: boolean;
2435
+ };
2436
+ issues: {
2437
+ type: string;
2438
+ items: {
2439
+ $ref: string;
2440
+ };
2441
+ minItems: number;
2442
+ };
2443
+ value?: undefined;
2444
+ replayed?: undefined;
2445
+ writes?: undefined;
2446
+ };
2447
+ required: string[];
2448
+ additionalProperties: boolean;
2449
+ })[];
2450
+ };
2451
+ resolveValue: {
2452
+ type: string;
2453
+ properties: {
2454
+ resolutionId: {
2455
+ $ref: string;
2456
+ };
2457
+ };
2458
+ required: string[];
2459
+ additionalProperties: boolean;
2460
+ };
2461
+ resolveResult: {
2462
+ oneOf: ({
2463
+ type: string;
2464
+ properties: {
2465
+ ok: {
2466
+ const: boolean;
2467
+ };
2468
+ value: {
2469
+ $ref: string;
2470
+ };
2471
+ replayed: {
2472
+ type: string;
2473
+ };
2474
+ writes: {
2475
+ type: string;
2476
+ minimum: number;
2477
+ };
2478
+ issues?: undefined;
2479
+ };
2480
+ required: string[];
2481
+ additionalProperties: boolean;
2482
+ } | {
2483
+ type: string;
2484
+ properties: {
2485
+ ok: {
2486
+ const: boolean;
2487
+ };
2488
+ issues: {
2489
+ type: string;
2490
+ items: {
2491
+ $ref: string;
2492
+ };
2493
+ minItems: number;
2494
+ };
2495
+ value?: undefined;
2496
+ replayed?: undefined;
2497
+ writes?: undefined;
2498
+ };
2499
+ required: string[];
2500
+ additionalProperties: boolean;
2501
+ })[];
2502
+ };
2503
+ scoreValue: {
2504
+ type: string;
2505
+ properties: {
2506
+ scoreId: {
2507
+ $ref: string;
2508
+ };
2509
+ projectionIntentId: {
2510
+ $ref: string;
2511
+ };
2512
+ };
2513
+ required: string[];
2514
+ additionalProperties: boolean;
2515
+ };
2516
+ scoreResult: {
2517
+ oneOf: ({
2518
+ type: string;
2519
+ properties: {
2520
+ ok: {
2521
+ const: boolean;
2522
+ };
2523
+ value: {
2524
+ $ref: string;
2525
+ };
2526
+ replayed: {
2527
+ type: string;
2528
+ };
2529
+ writes: {
2530
+ type: string;
2531
+ minimum: number;
2532
+ };
2533
+ issues?: undefined;
2534
+ };
2535
+ required: string[];
2536
+ additionalProperties: boolean;
2537
+ } | {
2538
+ type: string;
2539
+ properties: {
2540
+ ok: {
2541
+ const: boolean;
2542
+ };
2543
+ issues: {
2544
+ type: string;
2545
+ items: {
2546
+ $ref: string;
2547
+ };
2548
+ minItems: number;
2549
+ };
2550
+ value?: undefined;
2551
+ replayed?: undefined;
2552
+ writes?: undefined;
2553
+ };
2554
+ required: string[];
2555
+ additionalProperties: boolean;
2556
+ })[];
2557
+ };
2558
+ projectValue: {
2559
+ type: string;
2560
+ properties: {
2561
+ projectionReceiptId: {
2562
+ $ref: string;
2563
+ };
2564
+ applied: {
2565
+ type: string;
2566
+ minimum: number;
2567
+ };
2568
+ missing: {
2569
+ type: string;
2570
+ minimum: number;
2571
+ };
2572
+ changedMemoryWrites: {
2573
+ type: string;
2574
+ minimum: number;
2575
+ };
2576
+ };
2577
+ required: string[];
2578
+ additionalProperties: boolean;
2579
+ };
2580
+ projectResult: {
2581
+ oneOf: ({
2582
+ type: string;
2583
+ properties: {
2584
+ ok: {
2585
+ const: boolean;
2586
+ };
2587
+ value: {
2588
+ $ref: string;
2589
+ };
2590
+ replayed: {
2591
+ type: string;
2592
+ };
2593
+ writes: {
2594
+ type: string;
2595
+ minimum: number;
2596
+ };
2597
+ issues?: undefined;
2598
+ };
2599
+ required: string[];
2600
+ additionalProperties: boolean;
2601
+ } | {
2602
+ type: string;
2603
+ properties: {
2604
+ ok: {
2605
+ const: boolean;
2606
+ };
2607
+ issues: {
2608
+ type: string;
2609
+ items: {
2610
+ $ref: string;
2611
+ };
2612
+ minItems: number;
2613
+ };
2614
+ value?: undefined;
2615
+ replayed?: undefined;
2616
+ writes?: undefined;
2617
+ };
2618
+ required: string[];
2619
+ additionalProperties: boolean;
2620
+ })[];
2621
+ };
2622
+ reflectValue: {
2623
+ type: string;
2624
+ properties: {
2625
+ reflectionId: {
2626
+ $ref: string;
2627
+ };
2628
+ versionId: {
2629
+ anyOf: ({
2630
+ $ref: string;
2631
+ type?: undefined;
2632
+ } | {
2633
+ type: string;
2634
+ $ref?: undefined;
2635
+ })[];
2636
+ };
2637
+ noOp: {
2638
+ type: string;
2639
+ };
2640
+ issues: {
2641
+ type: string;
2642
+ items: {
2643
+ $ref: string;
2644
+ };
2645
+ };
2646
+ };
2647
+ required: string[];
2648
+ additionalProperties: boolean;
2649
+ };
2650
+ reflectResult: {
2651
+ oneOf: ({
2652
+ type: string;
2653
+ properties: {
2654
+ ok: {
2655
+ const: boolean;
2656
+ };
2657
+ value: {
2658
+ $ref: string;
2659
+ };
2660
+ replayed: {
2661
+ type: string;
2662
+ };
2663
+ writes: {
2664
+ type: string;
2665
+ minimum: number;
2666
+ };
2667
+ issues?: undefined;
2668
+ };
2669
+ required: string[];
2670
+ additionalProperties: boolean;
2671
+ } | {
2672
+ type: string;
2673
+ properties: {
2674
+ ok: {
2675
+ const: boolean;
2676
+ };
2677
+ issues: {
2678
+ type: string;
2679
+ items: {
2680
+ $ref: string;
2681
+ };
2682
+ minItems: number;
2683
+ };
2684
+ value?: undefined;
2685
+ replayed?: undefined;
2686
+ writes?: undefined;
2687
+ };
2688
+ required: string[];
2689
+ additionalProperties: boolean;
2690
+ })[];
2691
+ };
2692
+ evaluateValue: {
2693
+ type: string;
2694
+ properties: {
2695
+ evaluationId: {
2696
+ $ref: string;
2697
+ };
2698
+ eligible: {
2699
+ type: string;
2700
+ };
2701
+ issues: {
2702
+ type: string;
2703
+ items: {
2704
+ $ref: string;
2705
+ };
2706
+ };
2707
+ caseReportId: {
2708
+ $ref: string;
2709
+ };
2710
+ };
2711
+ required: string[];
2712
+ additionalProperties: boolean;
2713
+ };
2714
+ evaluateResult: {
2715
+ oneOf: ({
2716
+ type: string;
2717
+ properties: {
2718
+ ok: {
2719
+ const: boolean;
2720
+ };
2721
+ value: {
2722
+ $ref: string;
2723
+ };
2724
+ replayed: {
2725
+ type: string;
2726
+ };
2727
+ writes: {
2728
+ type: string;
2729
+ minimum: number;
2730
+ };
2731
+ issues?: undefined;
2732
+ };
2733
+ required: string[];
2734
+ additionalProperties: boolean;
2735
+ } | {
2736
+ type: string;
2737
+ properties: {
2738
+ ok: {
2739
+ const: boolean;
2740
+ };
2741
+ issues: {
2742
+ type: string;
2743
+ items: {
2744
+ $ref: string;
2745
+ };
2746
+ minItems: number;
2747
+ };
2748
+ value?: undefined;
2749
+ replayed?: undefined;
2750
+ writes?: undefined;
2751
+ };
2752
+ required: string[];
2753
+ additionalProperties: boolean;
2754
+ })[];
2755
+ };
2756
+ approveValue: {
2757
+ type: string;
2758
+ properties: {
2759
+ approvalId: {
2760
+ $ref: string;
2761
+ };
2762
+ };
2763
+ required: string[];
2764
+ additionalProperties: boolean;
2765
+ };
2766
+ approveResult: {
2767
+ oneOf: ({
2768
+ type: string;
2769
+ properties: {
2770
+ ok: {
2771
+ const: boolean;
2772
+ };
2773
+ value: {
2774
+ $ref: string;
2775
+ };
2776
+ replayed: {
2777
+ type: string;
2778
+ };
2779
+ writes: {
2780
+ type: string;
2781
+ minimum: number;
2782
+ };
2783
+ issues?: undefined;
2784
+ };
2785
+ required: string[];
2786
+ additionalProperties: boolean;
2787
+ } | {
2788
+ type: string;
2789
+ properties: {
2790
+ ok: {
2791
+ const: boolean;
2792
+ };
2793
+ issues: {
2794
+ type: string;
2795
+ items: {
2796
+ $ref: string;
2797
+ };
2798
+ minItems: number;
2799
+ };
2800
+ value?: undefined;
2801
+ replayed?: undefined;
2802
+ writes?: undefined;
2803
+ };
2804
+ required: string[];
2805
+ additionalProperties: boolean;
2806
+ })[];
2807
+ };
2808
+ promoteValue: {
2809
+ type: string;
2810
+ properties: {
2811
+ activationEventId: {
2812
+ $ref: string;
2813
+ };
2814
+ head: {
2815
+ $ref: string;
2816
+ };
2817
+ };
2818
+ required: string[];
2819
+ additionalProperties: boolean;
2820
+ };
2821
+ promoteResult: {
2822
+ oneOf: ({
2823
+ type: string;
2824
+ properties: {
2825
+ ok: {
2826
+ const: boolean;
2827
+ };
2828
+ value: {
2829
+ $ref: string;
2830
+ };
2831
+ replayed: {
2832
+ type: string;
2833
+ };
2834
+ writes: {
2835
+ type: string;
2836
+ minimum: number;
2837
+ };
2838
+ issues?: undefined;
2839
+ };
2840
+ required: string[];
2841
+ additionalProperties: boolean;
2842
+ } | {
2843
+ type: string;
2844
+ properties: {
2845
+ ok: {
2846
+ const: boolean;
2847
+ };
2848
+ issues: {
2849
+ type: string;
2850
+ items: {
2851
+ $ref: string;
2852
+ };
2853
+ minItems: number;
2854
+ };
2855
+ value?: undefined;
2856
+ replayed?: undefined;
2857
+ writes?: undefined;
2858
+ };
2859
+ required: string[];
2860
+ additionalProperties: boolean;
2861
+ })[];
2862
+ };
2863
+ rollbackValue: {
2864
+ type: string;
2865
+ properties: {
2866
+ activationEventId: {
2867
+ $ref: string;
2868
+ };
2869
+ head: {
2870
+ $ref: string;
2871
+ };
2872
+ };
2873
+ required: string[];
2874
+ additionalProperties: boolean;
2875
+ };
2876
+ rollbackResult: {
2877
+ oneOf: ({
2878
+ type: string;
2879
+ properties: {
2880
+ ok: {
2881
+ const: boolean;
2882
+ };
2883
+ value: {
2884
+ $ref: string;
2885
+ };
2886
+ replayed: {
2887
+ type: string;
2888
+ };
2889
+ writes: {
2890
+ type: string;
2891
+ minimum: number;
2892
+ };
2893
+ issues?: undefined;
2894
+ };
2895
+ required: string[];
2896
+ additionalProperties: boolean;
2897
+ } | {
2898
+ type: string;
2899
+ properties: {
2900
+ ok: {
2901
+ const: boolean;
2902
+ };
2903
+ issues: {
2904
+ type: string;
2905
+ items: {
2906
+ $ref: string;
2907
+ };
2908
+ minItems: number;
2909
+ };
2910
+ value?: undefined;
2911
+ replayed?: undefined;
2912
+ writes?: undefined;
2913
+ };
2914
+ required: string[];
2915
+ additionalProperties: boolean;
2916
+ })[];
2917
+ };
2918
+ injectValue: {
2919
+ type: string;
2920
+ properties: {
2921
+ payload: {
2922
+ $ref: string;
2923
+ };
2924
+ versionId: {
2925
+ $ref: string;
2926
+ };
2927
+ evaluationId: {
2928
+ $ref: string;
2929
+ };
2930
+ activationEventId: {
2931
+ $ref: string;
2932
+ };
2933
+ head: {
2934
+ $ref: string;
2935
+ };
2936
+ };
2937
+ required: string[];
2938
+ additionalProperties: boolean;
2939
+ };
2940
+ injectResult: {
2941
+ oneOf: ({
2942
+ type: string;
2943
+ properties: {
2944
+ ok: {
2945
+ const: boolean;
2946
+ };
2947
+ value: {
2948
+ $ref: string;
2949
+ };
2950
+ replayed: {
2951
+ type: string;
2952
+ };
2953
+ writes: {
2954
+ type: string;
2955
+ minimum: number;
2956
+ };
2957
+ issues?: undefined;
2958
+ };
2959
+ required: string[];
2960
+ additionalProperties: boolean;
2961
+ } | {
2962
+ type: string;
2963
+ properties: {
2964
+ ok: {
2965
+ const: boolean;
2966
+ };
2967
+ issues: {
2968
+ type: string;
2969
+ items: {
2970
+ $ref: string;
2971
+ };
2972
+ minItems: number;
2973
+ };
2974
+ value?: undefined;
2975
+ replayed?: undefined;
2976
+ writes?: undefined;
2977
+ };
2978
+ required: string[];
2979
+ additionalProperties: boolean;
2980
+ })[];
2981
+ };
2982
+ inspectValue: {
2983
+ anyOf: {
2984
+ $ref: string;
2985
+ }[];
2986
+ };
2987
+ inspectResult: {
2988
+ oneOf: ({
2989
+ type: string;
2990
+ properties: {
2991
+ ok: {
2992
+ const: boolean;
2993
+ };
2994
+ value: {
2995
+ $ref: string;
2996
+ };
2997
+ replayed: {
2998
+ type: string;
2999
+ };
3000
+ writes: {
3001
+ type: string;
3002
+ minimum: number;
3003
+ };
3004
+ issues?: undefined;
3005
+ };
3006
+ required: string[];
3007
+ additionalProperties: boolean;
3008
+ } | {
3009
+ type: string;
3010
+ properties: {
3011
+ ok: {
3012
+ const: boolean;
3013
+ };
3014
+ issues: {
3015
+ type: string;
3016
+ items: {
3017
+ $ref: string;
3018
+ };
3019
+ minItems: number;
3020
+ };
3021
+ value?: undefined;
3022
+ replayed?: undefined;
3023
+ writes?: undefined;
3024
+ };
3025
+ required: string[];
3026
+ additionalProperties: boolean;
3027
+ })[];
3028
+ };
3029
+ historyValue: {
3030
+ $ref: string;
3031
+ };
3032
+ historyResult: {
3033
+ oneOf: ({
3034
+ type: string;
3035
+ properties: {
3036
+ ok: {
3037
+ const: boolean;
3038
+ };
3039
+ value: {
3040
+ $ref: string;
3041
+ };
3042
+ replayed: {
3043
+ type: string;
3044
+ };
3045
+ writes: {
3046
+ type: string;
3047
+ minimum: number;
3048
+ };
3049
+ issues?: undefined;
3050
+ };
3051
+ required: string[];
3052
+ additionalProperties: boolean;
3053
+ } | {
3054
+ type: string;
3055
+ properties: {
3056
+ ok: {
3057
+ const: boolean;
3058
+ };
3059
+ issues: {
3060
+ type: string;
3061
+ items: {
3062
+ $ref: string;
3063
+ };
3064
+ minItems: number;
3065
+ };
3066
+ value?: undefined;
3067
+ replayed?: undefined;
3068
+ writes?: undefined;
3069
+ };
3070
+ required: string[];
3071
+ additionalProperties: boolean;
3072
+ })[];
3073
+ };
3074
+ reconcileValue: {
3075
+ type: string;
3076
+ properties: {
3077
+ attemptId: {
3078
+ $ref: string;
3079
+ };
3080
+ reconciliationId: {
3081
+ $ref: string;
3082
+ };
3083
+ state: {
3084
+ enum: string[];
3085
+ };
3086
+ };
3087
+ required: string[];
3088
+ additionalProperties: boolean;
3089
+ };
3090
+ reconcileResult: {
3091
+ oneOf: ({
3092
+ type: string;
3093
+ properties: {
3094
+ ok: {
3095
+ const: boolean;
3096
+ };
3097
+ value: {
3098
+ $ref: string;
3099
+ };
3100
+ replayed: {
3101
+ type: string;
3102
+ };
3103
+ writes: {
3104
+ type: string;
3105
+ minimum: number;
3106
+ };
3107
+ issues?: undefined;
3108
+ };
3109
+ required: string[];
3110
+ additionalProperties: boolean;
3111
+ } | {
3112
+ type: string;
3113
+ properties: {
3114
+ ok: {
3115
+ const: boolean;
3116
+ };
3117
+ issues: {
3118
+ type: string;
3119
+ items: {
3120
+ $ref: string;
3121
+ };
3122
+ minItems: number;
3123
+ };
3124
+ value?: undefined;
3125
+ replayed?: undefined;
3126
+ writes?: undefined;
3127
+ };
3128
+ required: string[];
3129
+ additionalProperties: boolean;
3130
+ })[];
3131
+ };
3132
+ };
3133
+ operations: {
3134
+ "outcomes.create": {
3135
+ kind: string;
3136
+ input: {
3137
+ $ref: string;
3138
+ };
3139
+ output: {
3140
+ $ref: string;
3141
+ };
3142
+ policy: {
3143
+ idempotency: string;
3144
+ };
3145
+ };
3146
+ "outcomes.resolve": {
3147
+ kind: string;
3148
+ input: {
3149
+ $ref: string;
3150
+ };
3151
+ output: {
3152
+ $ref: string;
3153
+ };
3154
+ policy: {
3155
+ idempotency: string;
3156
+ };
3157
+ };
3158
+ "outcomes.score": {
3159
+ kind: string;
3160
+ input: {
3161
+ $ref: string;
3162
+ };
3163
+ output: {
3164
+ $ref: string;
3165
+ };
3166
+ policy: {
3167
+ idempotency: string;
3168
+ };
3169
+ };
3170
+ "outcomes.project": {
3171
+ kind: string;
3172
+ input: {
3173
+ $ref: string;
3174
+ };
3175
+ output: {
3176
+ $ref: string;
3177
+ };
3178
+ policy: {
3179
+ idempotency: string;
3180
+ };
3181
+ };
3182
+ "outcomes.reflect": {
3183
+ kind: string;
3184
+ input: {
3185
+ $ref: string;
3186
+ };
3187
+ output: {
3188
+ $ref: string;
3189
+ };
3190
+ policy: {
3191
+ idempotency: string;
3192
+ };
3193
+ };
3194
+ "outcomes.evaluate": {
3195
+ kind: string;
3196
+ input: {
3197
+ $ref: string;
3198
+ };
3199
+ output: {
3200
+ $ref: string;
3201
+ };
3202
+ policy: {
3203
+ idempotency: string;
3204
+ };
3205
+ };
3206
+ "outcomes.approve": {
3207
+ kind: string;
3208
+ input: {
3209
+ $ref: string;
3210
+ };
3211
+ output: {
3212
+ $ref: string;
3213
+ };
3214
+ policy: {
3215
+ idempotency: string;
3216
+ };
3217
+ };
3218
+ "outcomes.promote": {
3219
+ kind: string;
3220
+ input: {
3221
+ $ref: string;
3222
+ };
3223
+ output: {
3224
+ $ref: string;
3225
+ };
3226
+ policy: {
3227
+ idempotency: string;
3228
+ };
3229
+ };
3230
+ "outcomes.rollback": {
3231
+ kind: string;
3232
+ input: {
3233
+ $ref: string;
3234
+ };
3235
+ output: {
3236
+ $ref: string;
3237
+ };
3238
+ policy: {
3239
+ idempotency: string;
3240
+ };
3241
+ };
3242
+ "outcomes.inject": {
3243
+ kind: string;
3244
+ input: {
3245
+ $ref: string;
3246
+ };
3247
+ output: {
3248
+ $ref: string;
3249
+ };
3250
+ };
3251
+ "outcomes.inspect": {
3252
+ kind: string;
3253
+ input: {
3254
+ $ref: string;
3255
+ };
3256
+ output: {
3257
+ $ref: string;
3258
+ };
3259
+ };
3260
+ "outcomes.history": {
3261
+ kind: string;
3262
+ input: {
3263
+ $ref: string;
3264
+ };
3265
+ output: {
3266
+ $ref: string;
3267
+ };
3268
+ };
3269
+ "outcomes.reconcile": {
3270
+ kind: string;
3271
+ input: {
3272
+ $ref: string;
3273
+ };
3274
+ output: {
3275
+ $ref: string;
3276
+ };
3277
+ policy: {
3278
+ idempotency: string;
3279
+ };
3280
+ };
3281
+ };
3282
+ };
3283
+ export declare function createOutcomeContract(): Contract;
3284
+ export { createOutcomeHandlers, OUTCOME_MODEL_OPERATIONS } from './handlers.ts';
3285
+ export type { OutcomeHandlerOptions, OutcomeHandlerBinding } from './handlers.ts';