@holonograph/client 0.3.0 → 0.5.0
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.
- package/README.md +31 -0
- package/dist/index.d.ts +621 -251
- package/dist/index.js +229 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1768,6 +1768,9 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1768
1768
|
declare const RunModeSchema: ZodEnum<["production", "test", "eval", "replay", "local_dev"]>;
|
|
1769
1769
|
type RunMode = TypeOf<typeof RunModeSchema>;
|
|
1770
1770
|
|
|
1771
|
+
declare const EmissionExpectationSchema: ZodEnum$1<["always", "conditional"]>;
|
|
1772
|
+
type EmissionExpectation = TypeOf$1<typeof EmissionExpectationSchema>;
|
|
1773
|
+
|
|
1771
1774
|
declare const SubstrateSnapshotSchema: ZodObject<{
|
|
1772
1775
|
lensVersion: ZodString;
|
|
1773
1776
|
lightSourceIdentifier: ZodString;
|
|
@@ -1778,19 +1781,19 @@ declare const SubstrateSnapshotSchema: ZodObject<{
|
|
|
1778
1781
|
|
|
1779
1782
|
columns: ZodRecord<ZodString, ZodString>;
|
|
1780
1783
|
}, "strip", ZodTypeAny$1, {
|
|
1781
|
-
provenance: "
|
|
1784
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
1782
1785
|
timestamp: string;
|
|
1783
1786
|
lensVersion: string;
|
|
1784
1787
|
lightSourceIdentifier: string;
|
|
1785
|
-
runMode: "
|
|
1788
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
1786
1789
|
correlationId: string;
|
|
1787
1790
|
columns: Record<string, string>;
|
|
1788
1791
|
}, {
|
|
1789
|
-
provenance: "
|
|
1792
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
1790
1793
|
timestamp: string;
|
|
1791
1794
|
lensVersion: string;
|
|
1792
1795
|
lightSourceIdentifier: string;
|
|
1793
|
-
runMode: "
|
|
1796
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
1794
1797
|
correlationId: string;
|
|
1795
1798
|
columns: Record<string, string>;
|
|
1796
1799
|
}>;
|
|
@@ -1894,7 +1897,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
1894
1897
|
} | undefined;
|
|
1895
1898
|
}>>;
|
|
1896
1899
|
}, "strip", ZodTypeAny$1, {
|
|
1897
|
-
activeRunModes: ("
|
|
1900
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
1898
1901
|
enabled: boolean;
|
|
1899
1902
|
passThreshold: number;
|
|
1900
1903
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -1919,7 +1922,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
1919
1922
|
}, {
|
|
1920
1923
|
passThreshold: number;
|
|
1921
1924
|
failureAction: "retry" | "flag" | "block";
|
|
1922
|
-
activeRunModes?: ("
|
|
1925
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
1923
1926
|
retry?: {
|
|
1924
1927
|
maxAttempts: number;
|
|
1925
1928
|
augmentPrompt?: string | undefined;
|
|
@@ -1940,7 +1943,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
1940
1943
|
} | undefined;
|
|
1941
1944
|
enabled?: boolean | undefined;
|
|
1942
1945
|
}>, {
|
|
1943
|
-
activeRunModes: ("
|
|
1946
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
1944
1947
|
enabled: boolean;
|
|
1945
1948
|
passThreshold: number;
|
|
1946
1949
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -1965,7 +1968,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
1965
1968
|
}, {
|
|
1966
1969
|
passThreshold: number;
|
|
1967
1970
|
failureAction: "retry" | "flag" | "block";
|
|
1968
|
-
activeRunModes?: ("
|
|
1971
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
1969
1972
|
retry?: {
|
|
1970
1973
|
maxAttempts: number;
|
|
1971
1974
|
augmentPrompt?: string | undefined;
|
|
@@ -1986,7 +1989,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
1986
1989
|
} | undefined;
|
|
1987
1990
|
enabled?: boolean | undefined;
|
|
1988
1991
|
}>, {
|
|
1989
|
-
activeRunModes: ("
|
|
1992
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
1990
1993
|
enabled: boolean;
|
|
1991
1994
|
passThreshold: number;
|
|
1992
1995
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2011,7 +2014,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2011
2014
|
}, {
|
|
2012
2015
|
passThreshold: number;
|
|
2013
2016
|
failureAction: "retry" | "flag" | "block";
|
|
2014
|
-
activeRunModes?: ("
|
|
2017
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2015
2018
|
retry?: {
|
|
2016
2019
|
maxAttempts: number;
|
|
2017
2020
|
augmentPrompt?: string | undefined;
|
|
@@ -2050,7 +2053,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2050
2053
|
passThreshold?: number | undefined;
|
|
2051
2054
|
rubricRef?: string | undefined;
|
|
2052
2055
|
gatePolicy?: {
|
|
2053
|
-
activeRunModes: ("
|
|
2056
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2054
2057
|
enabled: boolean;
|
|
2055
2058
|
passThreshold: number;
|
|
2056
2059
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2086,7 +2089,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2086
2089
|
gatePolicy?: {
|
|
2087
2090
|
passThreshold: number;
|
|
2088
2091
|
failureAction: "retry" | "flag" | "block";
|
|
2089
|
-
activeRunModes?: ("
|
|
2092
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2090
2093
|
retry?: {
|
|
2091
2094
|
maxAttempts: number;
|
|
2092
2095
|
augmentPrompt?: string | undefined;
|
|
@@ -2250,7 +2253,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2250
2253
|
passThreshold?: number | undefined;
|
|
2251
2254
|
rubricRef?: string | undefined;
|
|
2252
2255
|
gatePolicy?: {
|
|
2253
|
-
activeRunModes: ("
|
|
2256
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2254
2257
|
enabled: boolean;
|
|
2255
2258
|
passThreshold: number;
|
|
2256
2259
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2322,7 +2325,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2322
2325
|
gatePolicy?: {
|
|
2323
2326
|
passThreshold: number;
|
|
2324
2327
|
failureAction: "retry" | "flag" | "block";
|
|
2325
|
-
activeRunModes?: ("
|
|
2328
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2326
2329
|
retry?: {
|
|
2327
2330
|
maxAttempts: number;
|
|
2328
2331
|
augmentPrompt?: string | undefined;
|
|
@@ -2391,11 +2394,11 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2391
2394
|
}, "strip", ZodTypeAny$1, {
|
|
2392
2395
|
surfaceId: string;
|
|
2393
2396
|
lightSourceId: string | readonly string[];
|
|
2394
|
-
activeRunModes?: ("
|
|
2397
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2395
2398
|
}, {
|
|
2396
2399
|
surfaceId: string;
|
|
2397
2400
|
lightSourceId: string | readonly string[];
|
|
2398
|
-
activeRunModes?: ("
|
|
2401
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2399
2402
|
}>, "many">>;
|
|
2400
2403
|
|
|
2401
2404
|
pricing: ZodOptional$1<ZodRecord<ZodString, ZodObject<{
|
|
@@ -2513,7 +2516,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2513
2516
|
} | undefined;
|
|
2514
2517
|
}>>;
|
|
2515
2518
|
}, "strip", ZodTypeAny$1, {
|
|
2516
|
-
activeRunModes: ("
|
|
2519
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2517
2520
|
enabled: boolean;
|
|
2518
2521
|
passThreshold: number;
|
|
2519
2522
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2538,7 +2541,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2538
2541
|
}, {
|
|
2539
2542
|
passThreshold: number;
|
|
2540
2543
|
failureAction: "retry" | "flag" | "block";
|
|
2541
|
-
activeRunModes?: ("
|
|
2544
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2542
2545
|
retry?: {
|
|
2543
2546
|
maxAttempts: number;
|
|
2544
2547
|
augmentPrompt?: string | undefined;
|
|
@@ -2559,7 +2562,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2559
2562
|
} | undefined;
|
|
2560
2563
|
enabled?: boolean | undefined;
|
|
2561
2564
|
}>, {
|
|
2562
|
-
activeRunModes: ("
|
|
2565
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2563
2566
|
enabled: boolean;
|
|
2564
2567
|
passThreshold: number;
|
|
2565
2568
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2584,7 +2587,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2584
2587
|
}, {
|
|
2585
2588
|
passThreshold: number;
|
|
2586
2589
|
failureAction: "retry" | "flag" | "block";
|
|
2587
|
-
activeRunModes?: ("
|
|
2590
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2588
2591
|
retry?: {
|
|
2589
2592
|
maxAttempts: number;
|
|
2590
2593
|
augmentPrompt?: string | undefined;
|
|
@@ -2605,7 +2608,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2605
2608
|
} | undefined;
|
|
2606
2609
|
enabled?: boolean | undefined;
|
|
2607
2610
|
}>, {
|
|
2608
|
-
activeRunModes: ("
|
|
2611
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2609
2612
|
enabled: boolean;
|
|
2610
2613
|
passThreshold: number;
|
|
2611
2614
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2630,7 +2633,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2630
2633
|
}, {
|
|
2631
2634
|
passThreshold: number;
|
|
2632
2635
|
failureAction: "retry" | "flag" | "block";
|
|
2633
|
-
activeRunModes?: ("
|
|
2636
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2634
2637
|
retry?: {
|
|
2635
2638
|
maxAttempts: number;
|
|
2636
2639
|
augmentPrompt?: string | undefined;
|
|
@@ -2669,7 +2672,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2669
2672
|
passThreshold?: number | undefined;
|
|
2670
2673
|
rubricRef?: string | undefined;
|
|
2671
2674
|
gatePolicy?: {
|
|
2672
|
-
activeRunModes: ("
|
|
2675
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2673
2676
|
enabled: boolean;
|
|
2674
2677
|
passThreshold: number;
|
|
2675
2678
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2705,7 +2708,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2705
2708
|
gatePolicy?: {
|
|
2706
2709
|
passThreshold: number;
|
|
2707
2710
|
failureAction: "retry" | "flag" | "block";
|
|
2708
|
-
activeRunModes?: ("
|
|
2711
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2709
2712
|
retry?: {
|
|
2710
2713
|
maxAttempts: number;
|
|
2711
2714
|
augmentPrompt?: string | undefined;
|
|
@@ -2734,7 +2737,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2734
2737
|
}, "strip", ZodTypeAny$1, {
|
|
2735
2738
|
surfaceId: string;
|
|
2736
2739
|
lightSourceId: string | readonly string[];
|
|
2737
|
-
activeRunModes?: ("
|
|
2740
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2738
2741
|
dimensions?: {
|
|
2739
2742
|
id: string;
|
|
2740
2743
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -2742,7 +2745,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2742
2745
|
passThreshold?: number | undefined;
|
|
2743
2746
|
rubricRef?: string | undefined;
|
|
2744
2747
|
gatePolicy?: {
|
|
2745
|
-
activeRunModes: ("
|
|
2748
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2746
2749
|
enabled: boolean;
|
|
2747
2750
|
passThreshold: number;
|
|
2748
2751
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2773,7 +2776,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2773
2776
|
}, {
|
|
2774
2777
|
surfaceId: string;
|
|
2775
2778
|
lightSourceId: string | readonly string[];
|
|
2776
|
-
activeRunModes?: ("
|
|
2779
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2777
2780
|
dimensions?: {
|
|
2778
2781
|
id: string;
|
|
2779
2782
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -2783,7 +2786,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2783
2786
|
gatePolicy?: {
|
|
2784
2787
|
passThreshold: number;
|
|
2785
2788
|
failureAction: "retry" | "flag" | "block";
|
|
2786
|
-
activeRunModes?: ("
|
|
2789
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2787
2790
|
retry?: {
|
|
2788
2791
|
maxAttempts: number;
|
|
2789
2792
|
augmentPrompt?: string | undefined;
|
|
@@ -2903,7 +2906,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2903
2906
|
} | undefined;
|
|
2904
2907
|
}>>;
|
|
2905
2908
|
}, "strip", ZodTypeAny$1, {
|
|
2906
|
-
activeRunModes: ("
|
|
2909
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2907
2910
|
enabled: boolean;
|
|
2908
2911
|
passThreshold: number;
|
|
2909
2912
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2928,7 +2931,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2928
2931
|
}, {
|
|
2929
2932
|
passThreshold: number;
|
|
2930
2933
|
failureAction: "retry" | "flag" | "block";
|
|
2931
|
-
activeRunModes?: ("
|
|
2934
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2932
2935
|
retry?: {
|
|
2933
2936
|
maxAttempts: number;
|
|
2934
2937
|
augmentPrompt?: string | undefined;
|
|
@@ -2949,7 +2952,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2949
2952
|
} | undefined;
|
|
2950
2953
|
enabled?: boolean | undefined;
|
|
2951
2954
|
}>, {
|
|
2952
|
-
activeRunModes: ("
|
|
2955
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2953
2956
|
enabled: boolean;
|
|
2954
2957
|
passThreshold: number;
|
|
2955
2958
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -2974,7 +2977,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2974
2977
|
}, {
|
|
2975
2978
|
passThreshold: number;
|
|
2976
2979
|
failureAction: "retry" | "flag" | "block";
|
|
2977
|
-
activeRunModes?: ("
|
|
2980
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
2978
2981
|
retry?: {
|
|
2979
2982
|
maxAttempts: number;
|
|
2980
2983
|
augmentPrompt?: string | undefined;
|
|
@@ -2995,7 +2998,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
2995
2998
|
} | undefined;
|
|
2996
2999
|
enabled?: boolean | undefined;
|
|
2997
3000
|
}>, {
|
|
2998
|
-
activeRunModes: ("
|
|
3001
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
2999
3002
|
enabled: boolean;
|
|
3000
3003
|
passThreshold: number;
|
|
3001
3004
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3020,7 +3023,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3020
3023
|
}, {
|
|
3021
3024
|
passThreshold: number;
|
|
3022
3025
|
failureAction: "retry" | "flag" | "block";
|
|
3023
|
-
activeRunModes?: ("
|
|
3026
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3024
3027
|
retry?: {
|
|
3025
3028
|
maxAttempts: number;
|
|
3026
3029
|
augmentPrompt?: string | undefined;
|
|
@@ -3059,7 +3062,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3059
3062
|
passThreshold?: number | undefined;
|
|
3060
3063
|
rubricRef?: string | undefined;
|
|
3061
3064
|
gatePolicy?: {
|
|
3062
|
-
activeRunModes: ("
|
|
3065
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3063
3066
|
enabled: boolean;
|
|
3064
3067
|
passThreshold: number;
|
|
3065
3068
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3095,7 +3098,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3095
3098
|
gatePolicy?: {
|
|
3096
3099
|
passThreshold: number;
|
|
3097
3100
|
failureAction: "retry" | "flag" | "block";
|
|
3098
|
-
activeRunModes?: ("
|
|
3101
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3099
3102
|
retry?: {
|
|
3100
3103
|
maxAttempts: number;
|
|
3101
3104
|
augmentPrompt?: string | undefined;
|
|
@@ -3124,7 +3127,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3124
3127
|
}, "strip", ZodTypeAny$1, {
|
|
3125
3128
|
surfaceId: string;
|
|
3126
3129
|
lightSourceId: string | readonly string[];
|
|
3127
|
-
activeRunModes?: ("
|
|
3130
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3128
3131
|
dimensions?: {
|
|
3129
3132
|
id: string;
|
|
3130
3133
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -3132,7 +3135,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3132
3135
|
passThreshold?: number | undefined;
|
|
3133
3136
|
rubricRef?: string | undefined;
|
|
3134
3137
|
gatePolicy?: {
|
|
3135
|
-
activeRunModes: ("
|
|
3138
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3136
3139
|
enabled: boolean;
|
|
3137
3140
|
passThreshold: number;
|
|
3138
3141
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3163,7 +3166,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3163
3166
|
}, {
|
|
3164
3167
|
surfaceId: string;
|
|
3165
3168
|
lightSourceId: string | readonly string[];
|
|
3166
|
-
activeRunModes?: ("
|
|
3169
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3167
3170
|
dimensions?: {
|
|
3168
3171
|
id: string;
|
|
3169
3172
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -3173,7 +3176,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3173
3176
|
gatePolicy?: {
|
|
3174
3177
|
passThreshold: number;
|
|
3175
3178
|
failureAction: "retry" | "flag" | "block";
|
|
3176
|
-
activeRunModes?: ("
|
|
3179
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3177
3180
|
retry?: {
|
|
3178
3181
|
maxAttempts: number;
|
|
3179
3182
|
augmentPrompt?: string | undefined;
|
|
@@ -3293,7 +3296,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3293
3296
|
} | undefined;
|
|
3294
3297
|
}>>;
|
|
3295
3298
|
}, "strip", ZodTypeAny$1, {
|
|
3296
|
-
activeRunModes: ("
|
|
3299
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3297
3300
|
enabled: boolean;
|
|
3298
3301
|
passThreshold: number;
|
|
3299
3302
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3318,7 +3321,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3318
3321
|
}, {
|
|
3319
3322
|
passThreshold: number;
|
|
3320
3323
|
failureAction: "retry" | "flag" | "block";
|
|
3321
|
-
activeRunModes?: ("
|
|
3324
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3322
3325
|
retry?: {
|
|
3323
3326
|
maxAttempts: number;
|
|
3324
3327
|
augmentPrompt?: string | undefined;
|
|
@@ -3339,7 +3342,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3339
3342
|
} | undefined;
|
|
3340
3343
|
enabled?: boolean | undefined;
|
|
3341
3344
|
}>, {
|
|
3342
|
-
activeRunModes: ("
|
|
3345
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3343
3346
|
enabled: boolean;
|
|
3344
3347
|
passThreshold: number;
|
|
3345
3348
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3364,7 +3367,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3364
3367
|
}, {
|
|
3365
3368
|
passThreshold: number;
|
|
3366
3369
|
failureAction: "retry" | "flag" | "block";
|
|
3367
|
-
activeRunModes?: ("
|
|
3370
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3368
3371
|
retry?: {
|
|
3369
3372
|
maxAttempts: number;
|
|
3370
3373
|
augmentPrompt?: string | undefined;
|
|
@@ -3385,7 +3388,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3385
3388
|
} | undefined;
|
|
3386
3389
|
enabled?: boolean | undefined;
|
|
3387
3390
|
}>, {
|
|
3388
|
-
activeRunModes: ("
|
|
3391
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3389
3392
|
enabled: boolean;
|
|
3390
3393
|
passThreshold: number;
|
|
3391
3394
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3410,7 +3413,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3410
3413
|
}, {
|
|
3411
3414
|
passThreshold: number;
|
|
3412
3415
|
failureAction: "retry" | "flag" | "block";
|
|
3413
|
-
activeRunModes?: ("
|
|
3416
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3414
3417
|
retry?: {
|
|
3415
3418
|
maxAttempts: number;
|
|
3416
3419
|
augmentPrompt?: string | undefined;
|
|
@@ -3449,7 +3452,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3449
3452
|
passThreshold?: number | undefined;
|
|
3450
3453
|
rubricRef?: string | undefined;
|
|
3451
3454
|
gatePolicy?: {
|
|
3452
|
-
activeRunModes: ("
|
|
3455
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3453
3456
|
enabled: boolean;
|
|
3454
3457
|
passThreshold: number;
|
|
3455
3458
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3485,7 +3488,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3485
3488
|
gatePolicy?: {
|
|
3486
3489
|
passThreshold: number;
|
|
3487
3490
|
failureAction: "retry" | "flag" | "block";
|
|
3488
|
-
activeRunModes?: ("
|
|
3491
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3489
3492
|
retry?: {
|
|
3490
3493
|
maxAttempts: number;
|
|
3491
3494
|
augmentPrompt?: string | undefined;
|
|
@@ -3514,7 +3517,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3514
3517
|
}, "strip", ZodTypeAny$1, {
|
|
3515
3518
|
surfaceId: string;
|
|
3516
3519
|
lightSourceId: string | readonly string[];
|
|
3517
|
-
activeRunModes?: ("
|
|
3520
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3518
3521
|
dimensions?: {
|
|
3519
3522
|
id: string;
|
|
3520
3523
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -3522,7 +3525,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3522
3525
|
passThreshold?: number | undefined;
|
|
3523
3526
|
rubricRef?: string | undefined;
|
|
3524
3527
|
gatePolicy?: {
|
|
3525
|
-
activeRunModes: ("
|
|
3528
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3526
3529
|
enabled: boolean;
|
|
3527
3530
|
passThreshold: number;
|
|
3528
3531
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3553,7 +3556,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3553
3556
|
}, {
|
|
3554
3557
|
surfaceId: string;
|
|
3555
3558
|
lightSourceId: string | readonly string[];
|
|
3556
|
-
activeRunModes?: ("
|
|
3559
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3557
3560
|
dimensions?: {
|
|
3558
3561
|
id: string;
|
|
3559
3562
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -3563,7 +3566,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3563
3566
|
gatePolicy?: {
|
|
3564
3567
|
passThreshold: number;
|
|
3565
3568
|
failureAction: "retry" | "flag" | "block";
|
|
3566
|
-
activeRunModes?: ("
|
|
3569
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3567
3570
|
retry?: {
|
|
3568
3571
|
maxAttempts: number;
|
|
3569
3572
|
augmentPrompt?: string | undefined;
|
|
@@ -3683,7 +3686,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3683
3686
|
} | undefined;
|
|
3684
3687
|
}>>;
|
|
3685
3688
|
}, "strip", ZodTypeAny$1, {
|
|
3686
|
-
activeRunModes: ("
|
|
3689
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3687
3690
|
enabled: boolean;
|
|
3688
3691
|
passThreshold: number;
|
|
3689
3692
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3708,7 +3711,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3708
3711
|
}, {
|
|
3709
3712
|
passThreshold: number;
|
|
3710
3713
|
failureAction: "retry" | "flag" | "block";
|
|
3711
|
-
activeRunModes?: ("
|
|
3714
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3712
3715
|
retry?: {
|
|
3713
3716
|
maxAttempts: number;
|
|
3714
3717
|
augmentPrompt?: string | undefined;
|
|
@@ -3729,7 +3732,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3729
3732
|
} | undefined;
|
|
3730
3733
|
enabled?: boolean | undefined;
|
|
3731
3734
|
}>, {
|
|
3732
|
-
activeRunModes: ("
|
|
3735
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3733
3736
|
enabled: boolean;
|
|
3734
3737
|
passThreshold: number;
|
|
3735
3738
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3754,7 +3757,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3754
3757
|
}, {
|
|
3755
3758
|
passThreshold: number;
|
|
3756
3759
|
failureAction: "retry" | "flag" | "block";
|
|
3757
|
-
activeRunModes?: ("
|
|
3760
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3758
3761
|
retry?: {
|
|
3759
3762
|
maxAttempts: number;
|
|
3760
3763
|
augmentPrompt?: string | undefined;
|
|
@@ -3775,7 +3778,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3775
3778
|
} | undefined;
|
|
3776
3779
|
enabled?: boolean | undefined;
|
|
3777
3780
|
}>, {
|
|
3778
|
-
activeRunModes: ("
|
|
3781
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3779
3782
|
enabled: boolean;
|
|
3780
3783
|
passThreshold: number;
|
|
3781
3784
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3800,7 +3803,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3800
3803
|
}, {
|
|
3801
3804
|
passThreshold: number;
|
|
3802
3805
|
failureAction: "retry" | "flag" | "block";
|
|
3803
|
-
activeRunModes?: ("
|
|
3806
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3804
3807
|
retry?: {
|
|
3805
3808
|
maxAttempts: number;
|
|
3806
3809
|
augmentPrompt?: string | undefined;
|
|
@@ -3839,7 +3842,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3839
3842
|
passThreshold?: number | undefined;
|
|
3840
3843
|
rubricRef?: string | undefined;
|
|
3841
3844
|
gatePolicy?: {
|
|
3842
|
-
activeRunModes: ("
|
|
3845
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3843
3846
|
enabled: boolean;
|
|
3844
3847
|
passThreshold: number;
|
|
3845
3848
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3875,7 +3878,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3875
3878
|
gatePolicy?: {
|
|
3876
3879
|
passThreshold: number;
|
|
3877
3880
|
failureAction: "retry" | "flag" | "block";
|
|
3878
|
-
activeRunModes?: ("
|
|
3881
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3879
3882
|
retry?: {
|
|
3880
3883
|
maxAttempts: number;
|
|
3881
3884
|
augmentPrompt?: string | undefined;
|
|
@@ -3904,7 +3907,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3904
3907
|
}, "strip", ZodTypeAny$1, {
|
|
3905
3908
|
surfaceId: string;
|
|
3906
3909
|
lightSourceId: string | readonly string[];
|
|
3907
|
-
activeRunModes?: ("
|
|
3910
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3908
3911
|
dimensions?: {
|
|
3909
3912
|
id: string;
|
|
3910
3913
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -3912,7 +3915,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3912
3915
|
passThreshold?: number | undefined;
|
|
3913
3916
|
rubricRef?: string | undefined;
|
|
3914
3917
|
gatePolicy?: {
|
|
3915
|
-
activeRunModes: ("
|
|
3918
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
3916
3919
|
enabled: boolean;
|
|
3917
3920
|
passThreshold: number;
|
|
3918
3921
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -3943,7 +3946,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3943
3946
|
}, {
|
|
3944
3947
|
surfaceId: string;
|
|
3945
3948
|
lightSourceId: string | readonly string[];
|
|
3946
|
-
activeRunModes?: ("
|
|
3949
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3947
3950
|
dimensions?: {
|
|
3948
3951
|
id: string;
|
|
3949
3952
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -3953,7 +3956,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
3953
3956
|
gatePolicy?: {
|
|
3954
3957
|
passThreshold: number;
|
|
3955
3958
|
failureAction: "retry" | "flag" | "block";
|
|
3956
|
-
activeRunModes?: ("
|
|
3959
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
3957
3960
|
retry?: {
|
|
3958
3961
|
maxAttempts: number;
|
|
3959
3962
|
augmentPrompt?: string | undefined;
|
|
@@ -4073,7 +4076,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4073
4076
|
} | undefined;
|
|
4074
4077
|
}>>;
|
|
4075
4078
|
}, "strip", ZodTypeAny$1, {
|
|
4076
|
-
activeRunModes: ("
|
|
4079
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4077
4080
|
enabled: boolean;
|
|
4078
4081
|
passThreshold: number;
|
|
4079
4082
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4098,7 +4101,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4098
4101
|
}, {
|
|
4099
4102
|
passThreshold: number;
|
|
4100
4103
|
failureAction: "retry" | "flag" | "block";
|
|
4101
|
-
activeRunModes?: ("
|
|
4104
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4102
4105
|
retry?: {
|
|
4103
4106
|
maxAttempts: number;
|
|
4104
4107
|
augmentPrompt?: string | undefined;
|
|
@@ -4119,7 +4122,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4119
4122
|
} | undefined;
|
|
4120
4123
|
enabled?: boolean | undefined;
|
|
4121
4124
|
}>, {
|
|
4122
|
-
activeRunModes: ("
|
|
4125
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4123
4126
|
enabled: boolean;
|
|
4124
4127
|
passThreshold: number;
|
|
4125
4128
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4144,7 +4147,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4144
4147
|
}, {
|
|
4145
4148
|
passThreshold: number;
|
|
4146
4149
|
failureAction: "retry" | "flag" | "block";
|
|
4147
|
-
activeRunModes?: ("
|
|
4150
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4148
4151
|
retry?: {
|
|
4149
4152
|
maxAttempts: number;
|
|
4150
4153
|
augmentPrompt?: string | undefined;
|
|
@@ -4165,7 +4168,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4165
4168
|
} | undefined;
|
|
4166
4169
|
enabled?: boolean | undefined;
|
|
4167
4170
|
}>, {
|
|
4168
|
-
activeRunModes: ("
|
|
4171
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4169
4172
|
enabled: boolean;
|
|
4170
4173
|
passThreshold: number;
|
|
4171
4174
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4190,7 +4193,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4190
4193
|
}, {
|
|
4191
4194
|
passThreshold: number;
|
|
4192
4195
|
failureAction: "retry" | "flag" | "block";
|
|
4193
|
-
activeRunModes?: ("
|
|
4196
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4194
4197
|
retry?: {
|
|
4195
4198
|
maxAttempts: number;
|
|
4196
4199
|
augmentPrompt?: string | undefined;
|
|
@@ -4229,7 +4232,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4229
4232
|
passThreshold?: number | undefined;
|
|
4230
4233
|
rubricRef?: string | undefined;
|
|
4231
4234
|
gatePolicy?: {
|
|
4232
|
-
activeRunModes: ("
|
|
4235
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4233
4236
|
enabled: boolean;
|
|
4234
4237
|
passThreshold: number;
|
|
4235
4238
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4265,7 +4268,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4265
4268
|
gatePolicy?: {
|
|
4266
4269
|
passThreshold: number;
|
|
4267
4270
|
failureAction: "retry" | "flag" | "block";
|
|
4268
|
-
activeRunModes?: ("
|
|
4271
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4269
4272
|
retry?: {
|
|
4270
4273
|
maxAttempts: number;
|
|
4271
4274
|
augmentPrompt?: string | undefined;
|
|
@@ -4294,7 +4297,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4294
4297
|
}, "strip", ZodTypeAny$1, {
|
|
4295
4298
|
surfaceId: string;
|
|
4296
4299
|
lightSourceId: string | readonly string[];
|
|
4297
|
-
activeRunModes?: ("
|
|
4300
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4298
4301
|
dimensions?: {
|
|
4299
4302
|
id: string;
|
|
4300
4303
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4302,7 +4305,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4302
4305
|
passThreshold?: number | undefined;
|
|
4303
4306
|
rubricRef?: string | undefined;
|
|
4304
4307
|
gatePolicy?: {
|
|
4305
|
-
activeRunModes: ("
|
|
4308
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4306
4309
|
enabled: boolean;
|
|
4307
4310
|
passThreshold: number;
|
|
4308
4311
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4333,7 +4336,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4333
4336
|
}, {
|
|
4334
4337
|
surfaceId: string;
|
|
4335
4338
|
lightSourceId: string | readonly string[];
|
|
4336
|
-
activeRunModes?: ("
|
|
4339
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4337
4340
|
dimensions?: {
|
|
4338
4341
|
id: string;
|
|
4339
4342
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4343,7 +4346,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4343
4346
|
gatePolicy?: {
|
|
4344
4347
|
passThreshold: number;
|
|
4345
4348
|
failureAction: "retry" | "flag" | "block";
|
|
4346
|
-
activeRunModes?: ("
|
|
4349
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4347
4350
|
retry?: {
|
|
4348
4351
|
maxAttempts: number;
|
|
4349
4352
|
augmentPrompt?: string | undefined;
|
|
@@ -4374,7 +4377,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4374
4377
|
skillDrafting: {
|
|
4375
4378
|
surfaceId: string;
|
|
4376
4379
|
lightSourceId: string | readonly string[];
|
|
4377
|
-
activeRunModes?: ("
|
|
4380
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4378
4381
|
dimensions?: {
|
|
4379
4382
|
id: string;
|
|
4380
4383
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4382,7 +4385,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4382
4385
|
passThreshold?: number | undefined;
|
|
4383
4386
|
rubricRef?: string | undefined;
|
|
4384
4387
|
gatePolicy?: {
|
|
4385
|
-
activeRunModes: ("
|
|
4388
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4386
4389
|
enabled: boolean;
|
|
4387
4390
|
passThreshold: number;
|
|
4388
4391
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4414,7 +4417,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4414
4417
|
lessonDrafting?: {
|
|
4415
4418
|
surfaceId: string;
|
|
4416
4419
|
lightSourceId: string | readonly string[];
|
|
4417
|
-
activeRunModes?: ("
|
|
4420
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4418
4421
|
dimensions?: {
|
|
4419
4422
|
id: string;
|
|
4420
4423
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4422,7 +4425,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4422
4425
|
passThreshold?: number | undefined;
|
|
4423
4426
|
rubricRef?: string | undefined;
|
|
4424
4427
|
gatePolicy?: {
|
|
4425
|
-
activeRunModes: ("
|
|
4428
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4426
4429
|
enabled: boolean;
|
|
4427
4430
|
passThreshold: number;
|
|
4428
4431
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4454,7 +4457,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4454
4457
|
fixtureGeneration?: {
|
|
4455
4458
|
surfaceId: string;
|
|
4456
4459
|
lightSourceId: string | readonly string[];
|
|
4457
|
-
activeRunModes?: ("
|
|
4460
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4458
4461
|
dimensions?: {
|
|
4459
4462
|
id: string;
|
|
4460
4463
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4462,7 +4465,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4462
4465
|
passThreshold?: number | undefined;
|
|
4463
4466
|
rubricRef?: string | undefined;
|
|
4464
4467
|
gatePolicy?: {
|
|
4465
|
-
activeRunModes: ("
|
|
4468
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4466
4469
|
enabled: boolean;
|
|
4467
4470
|
passThreshold: number;
|
|
4468
4471
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4494,7 +4497,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4494
4497
|
codeChangeRecommendationDrafting?: {
|
|
4495
4498
|
surfaceId: string;
|
|
4496
4499
|
lightSourceId: string | readonly string[];
|
|
4497
|
-
activeRunModes?: ("
|
|
4500
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4498
4501
|
dimensions?: {
|
|
4499
4502
|
id: string;
|
|
4500
4503
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4502,7 +4505,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4502
4505
|
passThreshold?: number | undefined;
|
|
4503
4506
|
rubricRef?: string | undefined;
|
|
4504
4507
|
gatePolicy?: {
|
|
4505
|
-
activeRunModes: ("
|
|
4508
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4506
4509
|
enabled: boolean;
|
|
4507
4510
|
passThreshold: number;
|
|
4508
4511
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4534,7 +4537,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4534
4537
|
blastRadiusJudging?: {
|
|
4535
4538
|
surfaceId: string;
|
|
4536
4539
|
lightSourceId: string | readonly string[];
|
|
4537
|
-
activeRunModes?: ("
|
|
4540
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4538
4541
|
dimensions?: {
|
|
4539
4542
|
id: string;
|
|
4540
4543
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4542,7 +4545,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4542
4545
|
passThreshold?: number | undefined;
|
|
4543
4546
|
rubricRef?: string | undefined;
|
|
4544
4547
|
gatePolicy?: {
|
|
4545
|
-
activeRunModes: ("
|
|
4548
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4546
4549
|
enabled: boolean;
|
|
4547
4550
|
passThreshold: number;
|
|
4548
4551
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4575,7 +4578,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4575
4578
|
skillDrafting: {
|
|
4576
4579
|
surfaceId: string;
|
|
4577
4580
|
lightSourceId: string | readonly string[];
|
|
4578
|
-
activeRunModes?: ("
|
|
4581
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4579
4582
|
dimensions?: {
|
|
4580
4583
|
id: string;
|
|
4581
4584
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4585,7 +4588,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4585
4588
|
gatePolicy?: {
|
|
4586
4589
|
passThreshold: number;
|
|
4587
4590
|
failureAction: "retry" | "flag" | "block";
|
|
4588
|
-
activeRunModes?: ("
|
|
4591
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4589
4592
|
retry?: {
|
|
4590
4593
|
maxAttempts: number;
|
|
4591
4594
|
augmentPrompt?: string | undefined;
|
|
@@ -4615,7 +4618,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4615
4618
|
lessonDrafting?: {
|
|
4616
4619
|
surfaceId: string;
|
|
4617
4620
|
lightSourceId: string | readonly string[];
|
|
4618
|
-
activeRunModes?: ("
|
|
4621
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4619
4622
|
dimensions?: {
|
|
4620
4623
|
id: string;
|
|
4621
4624
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4625,7 +4628,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4625
4628
|
gatePolicy?: {
|
|
4626
4629
|
passThreshold: number;
|
|
4627
4630
|
failureAction: "retry" | "flag" | "block";
|
|
4628
|
-
activeRunModes?: ("
|
|
4631
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4629
4632
|
retry?: {
|
|
4630
4633
|
maxAttempts: number;
|
|
4631
4634
|
augmentPrompt?: string | undefined;
|
|
@@ -4655,7 +4658,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4655
4658
|
fixtureGeneration?: {
|
|
4656
4659
|
surfaceId: string;
|
|
4657
4660
|
lightSourceId: string | readonly string[];
|
|
4658
|
-
activeRunModes?: ("
|
|
4661
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4659
4662
|
dimensions?: {
|
|
4660
4663
|
id: string;
|
|
4661
4664
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4665,7 +4668,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4665
4668
|
gatePolicy?: {
|
|
4666
4669
|
passThreshold: number;
|
|
4667
4670
|
failureAction: "retry" | "flag" | "block";
|
|
4668
|
-
activeRunModes?: ("
|
|
4671
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4669
4672
|
retry?: {
|
|
4670
4673
|
maxAttempts: number;
|
|
4671
4674
|
augmentPrompt?: string | undefined;
|
|
@@ -4695,7 +4698,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4695
4698
|
codeChangeRecommendationDrafting?: {
|
|
4696
4699
|
surfaceId: string;
|
|
4697
4700
|
lightSourceId: string | readonly string[];
|
|
4698
|
-
activeRunModes?: ("
|
|
4701
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4699
4702
|
dimensions?: {
|
|
4700
4703
|
id: string;
|
|
4701
4704
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4705,7 +4708,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4705
4708
|
gatePolicy?: {
|
|
4706
4709
|
passThreshold: number;
|
|
4707
4710
|
failureAction: "retry" | "flag" | "block";
|
|
4708
|
-
activeRunModes?: ("
|
|
4711
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4709
4712
|
retry?: {
|
|
4710
4713
|
maxAttempts: number;
|
|
4711
4714
|
augmentPrompt?: string | undefined;
|
|
@@ -4735,7 +4738,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4735
4738
|
blastRadiusJudging?: {
|
|
4736
4739
|
surfaceId: string;
|
|
4737
4740
|
lightSourceId: string | readonly string[];
|
|
4738
|
-
activeRunModes?: ("
|
|
4741
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4739
4742
|
dimensions?: {
|
|
4740
4743
|
id: string;
|
|
4741
4744
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4745,7 +4748,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4745
4748
|
gatePolicy?: {
|
|
4746
4749
|
passThreshold: number;
|
|
4747
4750
|
failureAction: "retry" | "flag" | "block";
|
|
4748
|
-
activeRunModes?: ("
|
|
4751
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4749
4752
|
retry?: {
|
|
4750
4753
|
maxAttempts: number;
|
|
4751
4754
|
augmentPrompt?: string | undefined;
|
|
@@ -4785,7 +4788,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4785
4788
|
passThreshold?: number | undefined;
|
|
4786
4789
|
rubricRef?: string | undefined;
|
|
4787
4790
|
gatePolicy?: {
|
|
4788
|
-
activeRunModes: ("
|
|
4791
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4789
4792
|
enabled: boolean;
|
|
4790
4793
|
passThreshold: number;
|
|
4791
4794
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4851,7 +4854,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4851
4854
|
routings?: {
|
|
4852
4855
|
surfaceId: string;
|
|
4853
4856
|
lightSourceId: string | readonly string[];
|
|
4854
|
-
activeRunModes?: ("
|
|
4857
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4855
4858
|
}[] | undefined;
|
|
4856
4859
|
pricing?: Record<string, {
|
|
4857
4860
|
perMillionInput: number;
|
|
@@ -4863,7 +4866,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4863
4866
|
skillDrafting: {
|
|
4864
4867
|
surfaceId: string;
|
|
4865
4868
|
lightSourceId: string | readonly string[];
|
|
4866
|
-
activeRunModes?: ("
|
|
4869
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4867
4870
|
dimensions?: {
|
|
4868
4871
|
id: string;
|
|
4869
4872
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4871,7 +4874,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4871
4874
|
passThreshold?: number | undefined;
|
|
4872
4875
|
rubricRef?: string | undefined;
|
|
4873
4876
|
gatePolicy?: {
|
|
4874
|
-
activeRunModes: ("
|
|
4877
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4875
4878
|
enabled: boolean;
|
|
4876
4879
|
passThreshold: number;
|
|
4877
4880
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4903,7 +4906,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4903
4906
|
lessonDrafting?: {
|
|
4904
4907
|
surfaceId: string;
|
|
4905
4908
|
lightSourceId: string | readonly string[];
|
|
4906
|
-
activeRunModes?: ("
|
|
4909
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4907
4910
|
dimensions?: {
|
|
4908
4911
|
id: string;
|
|
4909
4912
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4911,7 +4914,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4911
4914
|
passThreshold?: number | undefined;
|
|
4912
4915
|
rubricRef?: string | undefined;
|
|
4913
4916
|
gatePolicy?: {
|
|
4914
|
-
activeRunModes: ("
|
|
4917
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4915
4918
|
enabled: boolean;
|
|
4916
4919
|
passThreshold: number;
|
|
4917
4920
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4943,7 +4946,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4943
4946
|
fixtureGeneration?: {
|
|
4944
4947
|
surfaceId: string;
|
|
4945
4948
|
lightSourceId: string | readonly string[];
|
|
4946
|
-
activeRunModes?: ("
|
|
4949
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4947
4950
|
dimensions?: {
|
|
4948
4951
|
id: string;
|
|
4949
4952
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4951,7 +4954,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4951
4954
|
passThreshold?: number | undefined;
|
|
4952
4955
|
rubricRef?: string | undefined;
|
|
4953
4956
|
gatePolicy?: {
|
|
4954
|
-
activeRunModes: ("
|
|
4957
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4955
4958
|
enabled: boolean;
|
|
4956
4959
|
passThreshold: number;
|
|
4957
4960
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -4983,7 +4986,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4983
4986
|
codeChangeRecommendationDrafting?: {
|
|
4984
4987
|
surfaceId: string;
|
|
4985
4988
|
lightSourceId: string | readonly string[];
|
|
4986
|
-
activeRunModes?: ("
|
|
4989
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
4987
4990
|
dimensions?: {
|
|
4988
4991
|
id: string;
|
|
4989
4992
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -4991,7 +4994,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
4991
4994
|
passThreshold?: number | undefined;
|
|
4992
4995
|
rubricRef?: string | undefined;
|
|
4993
4996
|
gatePolicy?: {
|
|
4994
|
-
activeRunModes: ("
|
|
4997
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
4995
4998
|
enabled: boolean;
|
|
4996
4999
|
passThreshold: number;
|
|
4997
5000
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -5023,7 +5026,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5023
5026
|
blastRadiusJudging?: {
|
|
5024
5027
|
surfaceId: string;
|
|
5025
5028
|
lightSourceId: string | readonly string[];
|
|
5026
|
-
activeRunModes?: ("
|
|
5029
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5027
5030
|
dimensions?: {
|
|
5028
5031
|
id: string;
|
|
5029
5032
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -5031,7 +5034,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5031
5034
|
passThreshold?: number | undefined;
|
|
5032
5035
|
rubricRef?: string | undefined;
|
|
5033
5036
|
gatePolicy?: {
|
|
5034
|
-
activeRunModes: ("
|
|
5037
|
+
activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
|
|
5035
5038
|
enabled: boolean;
|
|
5036
5039
|
passThreshold: number;
|
|
5037
5040
|
failureAction: "retry" | "flag" | "block";
|
|
@@ -5074,7 +5077,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5074
5077
|
gatePolicy?: {
|
|
5075
5078
|
passThreshold: number;
|
|
5076
5079
|
failureAction: "retry" | "flag" | "block";
|
|
5077
|
-
activeRunModes?: ("
|
|
5080
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5078
5081
|
retry?: {
|
|
5079
5082
|
maxAttempts: number;
|
|
5080
5083
|
augmentPrompt?: string | undefined;
|
|
@@ -5139,7 +5142,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5139
5142
|
routings?: {
|
|
5140
5143
|
surfaceId: string;
|
|
5141
5144
|
lightSourceId: string | readonly string[];
|
|
5142
|
-
activeRunModes?: ("
|
|
5145
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5143
5146
|
}[] | undefined;
|
|
5144
5147
|
pricing?: Record<string, {
|
|
5145
5148
|
perMillionInput: number;
|
|
@@ -5151,7 +5154,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5151
5154
|
skillDrafting: {
|
|
5152
5155
|
surfaceId: string;
|
|
5153
5156
|
lightSourceId: string | readonly string[];
|
|
5154
|
-
activeRunModes?: ("
|
|
5157
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5155
5158
|
dimensions?: {
|
|
5156
5159
|
id: string;
|
|
5157
5160
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -5161,7 +5164,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5161
5164
|
gatePolicy?: {
|
|
5162
5165
|
passThreshold: number;
|
|
5163
5166
|
failureAction: "retry" | "flag" | "block";
|
|
5164
|
-
activeRunModes?: ("
|
|
5167
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5165
5168
|
retry?: {
|
|
5166
5169
|
maxAttempts: number;
|
|
5167
5170
|
augmentPrompt?: string | undefined;
|
|
@@ -5191,7 +5194,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5191
5194
|
lessonDrafting?: {
|
|
5192
5195
|
surfaceId: string;
|
|
5193
5196
|
lightSourceId: string | readonly string[];
|
|
5194
|
-
activeRunModes?: ("
|
|
5197
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5195
5198
|
dimensions?: {
|
|
5196
5199
|
id: string;
|
|
5197
5200
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -5201,7 +5204,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5201
5204
|
gatePolicy?: {
|
|
5202
5205
|
passThreshold: number;
|
|
5203
5206
|
failureAction: "retry" | "flag" | "block";
|
|
5204
|
-
activeRunModes?: ("
|
|
5207
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5205
5208
|
retry?: {
|
|
5206
5209
|
maxAttempts: number;
|
|
5207
5210
|
augmentPrompt?: string | undefined;
|
|
@@ -5231,7 +5234,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5231
5234
|
fixtureGeneration?: {
|
|
5232
5235
|
surfaceId: string;
|
|
5233
5236
|
lightSourceId: string | readonly string[];
|
|
5234
|
-
activeRunModes?: ("
|
|
5237
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5235
5238
|
dimensions?: {
|
|
5236
5239
|
id: string;
|
|
5237
5240
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -5241,7 +5244,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5241
5244
|
gatePolicy?: {
|
|
5242
5245
|
passThreshold: number;
|
|
5243
5246
|
failureAction: "retry" | "flag" | "block";
|
|
5244
|
-
activeRunModes?: ("
|
|
5247
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5245
5248
|
retry?: {
|
|
5246
5249
|
maxAttempts: number;
|
|
5247
5250
|
augmentPrompt?: string | undefined;
|
|
@@ -5271,7 +5274,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5271
5274
|
codeChangeRecommendationDrafting?: {
|
|
5272
5275
|
surfaceId: string;
|
|
5273
5276
|
lightSourceId: string | readonly string[];
|
|
5274
|
-
activeRunModes?: ("
|
|
5277
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5275
5278
|
dimensions?: {
|
|
5276
5279
|
id: string;
|
|
5277
5280
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -5281,7 +5284,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5281
5284
|
gatePolicy?: {
|
|
5282
5285
|
passThreshold: number;
|
|
5283
5286
|
failureAction: "retry" | "flag" | "block";
|
|
5284
|
-
activeRunModes?: ("
|
|
5287
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5285
5288
|
retry?: {
|
|
5286
5289
|
maxAttempts: number;
|
|
5287
5290
|
augmentPrompt?: string | undefined;
|
|
@@ -5311,7 +5314,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5311
5314
|
blastRadiusJudging?: {
|
|
5312
5315
|
surfaceId: string;
|
|
5313
5316
|
lightSourceId: string | readonly string[];
|
|
5314
|
-
activeRunModes?: ("
|
|
5317
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5315
5318
|
dimensions?: {
|
|
5316
5319
|
id: string;
|
|
5317
5320
|
scoring: "custom" | "exact-match" | "llm-judge";
|
|
@@ -5321,7 +5324,7 @@ declare const SurfaceContractSchema: ZodObject<{
|
|
|
5321
5324
|
gatePolicy?: {
|
|
5322
5325
|
passThreshold: number;
|
|
5323
5326
|
failureAction: "retry" | "flag" | "block";
|
|
5324
|
-
activeRunModes?: ("
|
|
5327
|
+
activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
|
|
5325
5328
|
retry?: {
|
|
5326
5329
|
maxAttempts: number;
|
|
5327
5330
|
augmentPrompt?: string | undefined;
|
|
@@ -5932,6 +5935,22 @@ declare const LightSnapshotSchema: ZodObject<{
|
|
|
5932
5935
|
|
|
5933
5936
|
rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
|
|
5934
5937
|
}, "strip", ZodTypeAny$1, {
|
|
5938
|
+
rawResponse?: unknown;
|
|
5939
|
+
toolCalls?: unknown[] | undefined;
|
|
5940
|
+
tokens?: {
|
|
5941
|
+
input?: number | undefined;
|
|
5942
|
+
output?: number | undefined;
|
|
5943
|
+
cacheRead?: number | undefined;
|
|
5944
|
+
cacheWrite?: number | undefined;
|
|
5945
|
+
} | undefined;
|
|
5946
|
+
latencyMs?: number | undefined;
|
|
5947
|
+
reasoning?: string | undefined;
|
|
5948
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
5949
|
+
error?: {
|
|
5950
|
+
message: string;
|
|
5951
|
+
type: string;
|
|
5952
|
+
vendorErrorCode?: string | undefined;
|
|
5953
|
+
} | undefined;
|
|
5935
5954
|
rawRequest?: objectOutputType<{
|
|
5936
5955
|
surfaceId: ZodString;
|
|
5937
5956
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -6110,8 +6129,10 @@ declare const LightSnapshotSchema: ZodObject<{
|
|
|
6110
6129
|
strict: ZodOptional$1<ZodBoolean>;
|
|
6111
6130
|
stream: ZodOptional$1<ZodBoolean>;
|
|
6112
6131
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
6132
|
+
rawRequestOmitted?: boolean | undefined;
|
|
6133
|
+
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
6134
|
+
}, {
|
|
6113
6135
|
rawResponse?: unknown;
|
|
6114
|
-
reasoning?: string | undefined;
|
|
6115
6136
|
toolCalls?: unknown[] | undefined;
|
|
6116
6137
|
tokens?: {
|
|
6117
6138
|
input?: number | undefined;
|
|
@@ -6120,15 +6141,13 @@ declare const LightSnapshotSchema: ZodObject<{
|
|
|
6120
6141
|
cacheWrite?: number | undefined;
|
|
6121
6142
|
} | undefined;
|
|
6122
6143
|
latencyMs?: number | undefined;
|
|
6144
|
+
reasoning?: string | undefined;
|
|
6145
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
6123
6146
|
error?: {
|
|
6124
6147
|
message: string;
|
|
6125
6148
|
type: string;
|
|
6126
6149
|
vendorErrorCode?: string | undefined;
|
|
6127
6150
|
} | undefined;
|
|
6128
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
6129
|
-
rawRequestOmitted?: boolean | undefined;
|
|
6130
|
-
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
6131
|
-
}, {
|
|
6132
6151
|
rawRequest?: objectInputType<{
|
|
6133
6152
|
surfaceId: ZodString;
|
|
6134
6153
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -6307,22 +6326,6 @@ declare const LightSnapshotSchema: ZodObject<{
|
|
|
6307
6326
|
strict: ZodOptional$1<ZodBoolean>;
|
|
6308
6327
|
stream: ZodOptional$1<ZodBoolean>;
|
|
6309
6328
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
6310
|
-
rawResponse?: unknown;
|
|
6311
|
-
reasoning?: string | undefined;
|
|
6312
|
-
toolCalls?: unknown[] | undefined;
|
|
6313
|
-
tokens?: {
|
|
6314
|
-
input?: number | undefined;
|
|
6315
|
-
output?: number | undefined;
|
|
6316
|
-
cacheRead?: number | undefined;
|
|
6317
|
-
cacheWrite?: number | undefined;
|
|
6318
|
-
} | undefined;
|
|
6319
|
-
latencyMs?: number | undefined;
|
|
6320
|
-
error?: {
|
|
6321
|
-
message: string;
|
|
6322
|
-
type: string;
|
|
6323
|
-
vendorErrorCode?: string | undefined;
|
|
6324
|
-
} | undefined;
|
|
6325
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
6326
6329
|
rawRequestOmitted?: boolean | undefined;
|
|
6327
6330
|
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
6328
6331
|
}>;
|
|
@@ -6388,9 +6391,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
6388
6391
|
|
|
6389
6392
|
correlationId: ZodString;
|
|
6390
6393
|
|
|
6394
|
+
emissionStreamId: ZodOptional$1<ZodString>;
|
|
6395
|
+
|
|
6391
6396
|
lensVersion: ZodString;
|
|
6392
6397
|
|
|
6393
|
-
kind: ZodDefault$1<ZodEnum$1<["evaluation", "availability.transition", "analysis.noise-floor-calibration", "analysis.variance-decomposition", "analysis.lifecycle-transition", "analysis.eval-recommendation", "analysis.conformance-fixture", "analysis.emission-coverage"]>>;
|
|
6398
|
+
kind: ZodDefault$1<ZodEnum$1<["evaluation", "availability.transition", "analysis.noise-floor-calibration", "analysis.variance-decomposition", "analysis.lifecycle-transition", "analysis.eval-recommendation", "analysis.conformance-fixture", "analysis.emission-coverage", "analysis.delivery-orphan", "analysis.orthogonality-hypothesis"]>>;
|
|
6394
6399
|
|
|
6395
6400
|
light: ZodOptional$1<ZodObject<{
|
|
6396
6401
|
|
|
@@ -6972,6 +6977,22 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
6972
6977
|
|
|
6973
6978
|
rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
|
|
6974
6979
|
}, "strip", ZodTypeAny$1, {
|
|
6980
|
+
rawResponse?: unknown;
|
|
6981
|
+
toolCalls?: unknown[] | undefined;
|
|
6982
|
+
tokens?: {
|
|
6983
|
+
input?: number | undefined;
|
|
6984
|
+
output?: number | undefined;
|
|
6985
|
+
cacheRead?: number | undefined;
|
|
6986
|
+
cacheWrite?: number | undefined;
|
|
6987
|
+
} | undefined;
|
|
6988
|
+
latencyMs?: number | undefined;
|
|
6989
|
+
reasoning?: string | undefined;
|
|
6990
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
6991
|
+
error?: {
|
|
6992
|
+
message: string;
|
|
6993
|
+
type: string;
|
|
6994
|
+
vendorErrorCode?: string | undefined;
|
|
6995
|
+
} | undefined;
|
|
6975
6996
|
rawRequest?: objectOutputType<{
|
|
6976
6997
|
surfaceId: ZodString;
|
|
6977
6998
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -7150,8 +7171,10 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
7150
7171
|
strict: ZodOptional$1<ZodBoolean>;
|
|
7151
7172
|
stream: ZodOptional$1<ZodBoolean>;
|
|
7152
7173
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
7174
|
+
rawRequestOmitted?: boolean | undefined;
|
|
7175
|
+
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
7176
|
+
}, {
|
|
7153
7177
|
rawResponse?: unknown;
|
|
7154
|
-
reasoning?: string | undefined;
|
|
7155
7178
|
toolCalls?: unknown[] | undefined;
|
|
7156
7179
|
tokens?: {
|
|
7157
7180
|
input?: number | undefined;
|
|
@@ -7160,15 +7183,13 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
7160
7183
|
cacheWrite?: number | undefined;
|
|
7161
7184
|
} | undefined;
|
|
7162
7185
|
latencyMs?: number | undefined;
|
|
7186
|
+
reasoning?: string | undefined;
|
|
7187
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
7163
7188
|
error?: {
|
|
7164
7189
|
message: string;
|
|
7165
7190
|
type: string;
|
|
7166
7191
|
vendorErrorCode?: string | undefined;
|
|
7167
7192
|
} | undefined;
|
|
7168
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
7169
|
-
rawRequestOmitted?: boolean | undefined;
|
|
7170
|
-
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
7171
|
-
}, {
|
|
7172
7193
|
rawRequest?: objectInputType<{
|
|
7173
7194
|
surfaceId: ZodString;
|
|
7174
7195
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -7347,22 +7368,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
7347
7368
|
strict: ZodOptional$1<ZodBoolean>;
|
|
7348
7369
|
stream: ZodOptional$1<ZodBoolean>;
|
|
7349
7370
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
7350
|
-
rawResponse?: unknown;
|
|
7351
|
-
reasoning?: string | undefined;
|
|
7352
|
-
toolCalls?: unknown[] | undefined;
|
|
7353
|
-
tokens?: {
|
|
7354
|
-
input?: number | undefined;
|
|
7355
|
-
output?: number | undefined;
|
|
7356
|
-
cacheRead?: number | undefined;
|
|
7357
|
-
cacheWrite?: number | undefined;
|
|
7358
|
-
} | undefined;
|
|
7359
|
-
latencyMs?: number | undefined;
|
|
7360
|
-
error?: {
|
|
7361
|
-
message: string;
|
|
7362
|
-
type: string;
|
|
7363
|
-
vendorErrorCode?: string | undefined;
|
|
7364
|
-
} | undefined;
|
|
7365
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
7366
7371
|
rawRequestOmitted?: boolean | undefined;
|
|
7367
7372
|
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
7368
7373
|
}>>;
|
|
@@ -7376,19 +7381,19 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
7376
7381
|
timestamp: ZodString;
|
|
7377
7382
|
columns: ZodRecord<ZodString, ZodString>;
|
|
7378
7383
|
}, "strip", ZodTypeAny$1, {
|
|
7379
|
-
provenance: "
|
|
7384
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
7380
7385
|
timestamp: string;
|
|
7381
7386
|
lensVersion: string;
|
|
7382
7387
|
lightSourceIdentifier: string;
|
|
7383
|
-
runMode: "
|
|
7388
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
7384
7389
|
correlationId: string;
|
|
7385
7390
|
columns: Record<string, string>;
|
|
7386
7391
|
}, {
|
|
7387
|
-
provenance: "
|
|
7392
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
7388
7393
|
timestamp: string;
|
|
7389
7394
|
lensVersion: string;
|
|
7390
7395
|
lightSourceIdentifier: string;
|
|
7391
|
-
runMode: "
|
|
7396
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
7392
7397
|
correlationId: string;
|
|
7393
7398
|
columns: Record<string, string>;
|
|
7394
7399
|
}>>;
|
|
@@ -8287,23 +8292,123 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
8287
8292
|
finalSeen: boolean;
|
|
8288
8293
|
observedAtMs: number;
|
|
8289
8294
|
}>>;
|
|
8295
|
+
|
|
8296
|
+
deliveryOrphan: ZodOptional$1<ZodObject<{
|
|
8297
|
+
|
|
8298
|
+
darkEventId: ZodString;
|
|
8299
|
+
|
|
8300
|
+
emissionStreamId: ZodString;
|
|
8301
|
+
|
|
8302
|
+
surfaceId: ZodString;
|
|
8303
|
+
|
|
8304
|
+
witnessedAtMs: ZodNumber;
|
|
8305
|
+
}, "strip", ZodTypeAny$1, {
|
|
8306
|
+
surfaceId: string;
|
|
8307
|
+
darkEventId: string;
|
|
8308
|
+
emissionStreamId: string;
|
|
8309
|
+
witnessedAtMs: number;
|
|
8310
|
+
}, {
|
|
8311
|
+
surfaceId: string;
|
|
8312
|
+
darkEventId: string;
|
|
8313
|
+
emissionStreamId: string;
|
|
8314
|
+
witnessedAtMs: number;
|
|
8315
|
+
}>>;
|
|
8316
|
+
|
|
8317
|
+
orthogonalityHypothesis: ZodOptional$1<ZodObject<{
|
|
8318
|
+
|
|
8319
|
+
draftId: ZodString;
|
|
8320
|
+
|
|
8321
|
+
targetSurfaceId: ZodString;
|
|
8322
|
+
|
|
8323
|
+
targetDimensionId: ZodString;
|
|
8324
|
+
|
|
8325
|
+
candidateColumnId: ZodString;
|
|
8326
|
+
|
|
8327
|
+
proposedHypothesis: ZodString;
|
|
8328
|
+
|
|
8329
|
+
evidence: ZodObject<{
|
|
8330
|
+
scoredEventCount: ZodNumber;
|
|
8331
|
+
sigmaObservedSquared: ZodNumber;
|
|
8332
|
+
sigmaAgentSquared: ZodNumber;
|
|
8333
|
+
sigmaAgentCILower: ZodNumber;
|
|
8334
|
+
}, "strip", ZodTypeAny$1, {
|
|
8335
|
+
scoredEventCount: number;
|
|
8336
|
+
sigmaObservedSquared: number;
|
|
8337
|
+
sigmaAgentSquared: number;
|
|
8338
|
+
sigmaAgentCILower: number;
|
|
8339
|
+
}, {
|
|
8340
|
+
scoredEventCount: number;
|
|
8341
|
+
sigmaObservedSquared: number;
|
|
8342
|
+
sigmaAgentSquared: number;
|
|
8343
|
+
sigmaAgentCILower: number;
|
|
8344
|
+
}>;
|
|
8345
|
+
|
|
8346
|
+
approverId: ZodString;
|
|
8347
|
+
|
|
8348
|
+
occurredAt: ZodString;
|
|
8349
|
+
}, "strip", ZodTypeAny$1, {
|
|
8350
|
+
approverId: string;
|
|
8351
|
+
occurredAt: string;
|
|
8352
|
+
draftId: string;
|
|
8353
|
+
targetSurfaceId: string;
|
|
8354
|
+
targetDimensionId: string;
|
|
8355
|
+
candidateColumnId: string;
|
|
8356
|
+
proposedHypothesis: string;
|
|
8357
|
+
evidence: {
|
|
8358
|
+
scoredEventCount: number;
|
|
8359
|
+
sigmaObservedSquared: number;
|
|
8360
|
+
sigmaAgentSquared: number;
|
|
8361
|
+
sigmaAgentCILower: number;
|
|
8362
|
+
};
|
|
8363
|
+
}, {
|
|
8364
|
+
approverId: string;
|
|
8365
|
+
occurredAt: string;
|
|
8366
|
+
draftId: string;
|
|
8367
|
+
targetSurfaceId: string;
|
|
8368
|
+
targetDimensionId: string;
|
|
8369
|
+
candidateColumnId: string;
|
|
8370
|
+
proposedHypothesis: string;
|
|
8371
|
+
evidence: {
|
|
8372
|
+
scoredEventCount: number;
|
|
8373
|
+
sigmaObservedSquared: number;
|
|
8374
|
+
sigmaAgentSquared: number;
|
|
8375
|
+
sigmaAgentCILower: number;
|
|
8376
|
+
};
|
|
8377
|
+
}>>;
|
|
8290
8378
|
}, "strip", ZodTypeAny$1, {
|
|
8291
8379
|
lensVersion: string;
|
|
8292
8380
|
correlationId: string;
|
|
8293
8381
|
surfaceId: string;
|
|
8294
|
-
kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage";
|
|
8382
|
+
kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis";
|
|
8295
8383
|
occurredAt: string;
|
|
8296
8384
|
eventId: string;
|
|
8297
8385
|
substrate?: {
|
|
8298
|
-
provenance: "
|
|
8386
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
8299
8387
|
timestamp: string;
|
|
8300
8388
|
lensVersion: string;
|
|
8301
8389
|
lightSourceIdentifier: string;
|
|
8302
|
-
runMode: "
|
|
8390
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
8303
8391
|
correlationId: string;
|
|
8304
8392
|
columns: Record<string, string>;
|
|
8305
8393
|
} | undefined;
|
|
8394
|
+
emissionStreamId?: string | undefined;
|
|
8306
8395
|
light?: {
|
|
8396
|
+
rawResponse?: unknown;
|
|
8397
|
+
toolCalls?: unknown[] | undefined;
|
|
8398
|
+
tokens?: {
|
|
8399
|
+
input?: number | undefined;
|
|
8400
|
+
output?: number | undefined;
|
|
8401
|
+
cacheRead?: number | undefined;
|
|
8402
|
+
cacheWrite?: number | undefined;
|
|
8403
|
+
} | undefined;
|
|
8404
|
+
latencyMs?: number | undefined;
|
|
8405
|
+
reasoning?: string | undefined;
|
|
8406
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
8407
|
+
error?: {
|
|
8408
|
+
message: string;
|
|
8409
|
+
type: string;
|
|
8410
|
+
vendorErrorCode?: string | undefined;
|
|
8411
|
+
} | undefined;
|
|
8307
8412
|
rawRequest?: objectOutputType<{
|
|
8308
8413
|
surfaceId: ZodString;
|
|
8309
8414
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -8482,22 +8587,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
8482
8587
|
strict: ZodOptional$1<ZodBoolean>;
|
|
8483
8588
|
stream: ZodOptional$1<ZodBoolean>;
|
|
8484
8589
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
8485
|
-
rawResponse?: unknown;
|
|
8486
|
-
reasoning?: string | undefined;
|
|
8487
|
-
toolCalls?: unknown[] | undefined;
|
|
8488
|
-
tokens?: {
|
|
8489
|
-
input?: number | undefined;
|
|
8490
|
-
output?: number | undefined;
|
|
8491
|
-
cacheRead?: number | undefined;
|
|
8492
|
-
cacheWrite?: number | undefined;
|
|
8493
|
-
} | undefined;
|
|
8494
|
-
latencyMs?: number | undefined;
|
|
8495
|
-
error?: {
|
|
8496
|
-
message: string;
|
|
8497
|
-
type: string;
|
|
8498
|
-
vendorErrorCode?: string | undefined;
|
|
8499
|
-
} | undefined;
|
|
8500
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
8501
8590
|
rawRequestOmitted?: boolean | undefined;
|
|
8502
8591
|
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
8503
8592
|
} | undefined;
|
|
@@ -8661,6 +8750,27 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
8661
8750
|
finalSeen: boolean;
|
|
8662
8751
|
observedAtMs: number;
|
|
8663
8752
|
} | undefined;
|
|
8753
|
+
deliveryOrphan?: {
|
|
8754
|
+
surfaceId: string;
|
|
8755
|
+
darkEventId: string;
|
|
8756
|
+
emissionStreamId: string;
|
|
8757
|
+
witnessedAtMs: number;
|
|
8758
|
+
} | undefined;
|
|
8759
|
+
orthogonalityHypothesis?: {
|
|
8760
|
+
approverId: string;
|
|
8761
|
+
occurredAt: string;
|
|
8762
|
+
draftId: string;
|
|
8763
|
+
targetSurfaceId: string;
|
|
8764
|
+
targetDimensionId: string;
|
|
8765
|
+
candidateColumnId: string;
|
|
8766
|
+
proposedHypothesis: string;
|
|
8767
|
+
evidence: {
|
|
8768
|
+
scoredEventCount: number;
|
|
8769
|
+
sigmaObservedSquared: number;
|
|
8770
|
+
sigmaAgentSquared: number;
|
|
8771
|
+
sigmaAgentCILower: number;
|
|
8772
|
+
};
|
|
8773
|
+
} | undefined;
|
|
8664
8774
|
}, {
|
|
8665
8775
|
lensVersion: string;
|
|
8666
8776
|
correlationId: string;
|
|
@@ -8668,16 +8778,33 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
8668
8778
|
occurredAt: string;
|
|
8669
8779
|
eventId: string;
|
|
8670
8780
|
substrate?: {
|
|
8671
|
-
provenance: "
|
|
8781
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
8672
8782
|
timestamp: string;
|
|
8673
8783
|
lensVersion: string;
|
|
8674
8784
|
lightSourceIdentifier: string;
|
|
8675
|
-
runMode: "
|
|
8785
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
8676
8786
|
correlationId: string;
|
|
8677
8787
|
columns: Record<string, string>;
|
|
8678
8788
|
} | undefined;
|
|
8679
|
-
kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | undefined;
|
|
8789
|
+
kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis" | undefined;
|
|
8790
|
+
emissionStreamId?: string | undefined;
|
|
8680
8791
|
light?: {
|
|
8792
|
+
rawResponse?: unknown;
|
|
8793
|
+
toolCalls?: unknown[] | undefined;
|
|
8794
|
+
tokens?: {
|
|
8795
|
+
input?: number | undefined;
|
|
8796
|
+
output?: number | undefined;
|
|
8797
|
+
cacheRead?: number | undefined;
|
|
8798
|
+
cacheWrite?: number | undefined;
|
|
8799
|
+
} | undefined;
|
|
8800
|
+
latencyMs?: number | undefined;
|
|
8801
|
+
reasoning?: string | undefined;
|
|
8802
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
8803
|
+
error?: {
|
|
8804
|
+
message: string;
|
|
8805
|
+
type: string;
|
|
8806
|
+
vendorErrorCode?: string | undefined;
|
|
8807
|
+
} | undefined;
|
|
8681
8808
|
rawRequest?: objectInputType<{
|
|
8682
8809
|
surfaceId: ZodString;
|
|
8683
8810
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -8856,22 +8983,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
8856
8983
|
strict: ZodOptional$1<ZodBoolean>;
|
|
8857
8984
|
stream: ZodOptional$1<ZodBoolean>;
|
|
8858
8985
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
8859
|
-
rawResponse?: unknown;
|
|
8860
|
-
reasoning?: string | undefined;
|
|
8861
|
-
toolCalls?: unknown[] | undefined;
|
|
8862
|
-
tokens?: {
|
|
8863
|
-
input?: number | undefined;
|
|
8864
|
-
output?: number | undefined;
|
|
8865
|
-
cacheRead?: number | undefined;
|
|
8866
|
-
cacheWrite?: number | undefined;
|
|
8867
|
-
} | undefined;
|
|
8868
|
-
latencyMs?: number | undefined;
|
|
8869
|
-
error?: {
|
|
8870
|
-
message: string;
|
|
8871
|
-
type: string;
|
|
8872
|
-
vendorErrorCode?: string | undefined;
|
|
8873
|
-
} | undefined;
|
|
8874
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
8875
8986
|
rawRequestOmitted?: boolean | undefined;
|
|
8876
8987
|
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
8877
8988
|
} | undefined;
|
|
@@ -9035,23 +9146,61 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
9035
9146
|
finalSeen: boolean;
|
|
9036
9147
|
observedAtMs: number;
|
|
9037
9148
|
} | undefined;
|
|
9149
|
+
deliveryOrphan?: {
|
|
9150
|
+
surfaceId: string;
|
|
9151
|
+
darkEventId: string;
|
|
9152
|
+
emissionStreamId: string;
|
|
9153
|
+
witnessedAtMs: number;
|
|
9154
|
+
} | undefined;
|
|
9155
|
+
orthogonalityHypothesis?: {
|
|
9156
|
+
approverId: string;
|
|
9157
|
+
occurredAt: string;
|
|
9158
|
+
draftId: string;
|
|
9159
|
+
targetSurfaceId: string;
|
|
9160
|
+
targetDimensionId: string;
|
|
9161
|
+
candidateColumnId: string;
|
|
9162
|
+
proposedHypothesis: string;
|
|
9163
|
+
evidence: {
|
|
9164
|
+
scoredEventCount: number;
|
|
9165
|
+
sigmaObservedSquared: number;
|
|
9166
|
+
sigmaAgentSquared: number;
|
|
9167
|
+
sigmaAgentCILower: number;
|
|
9168
|
+
};
|
|
9169
|
+
} | undefined;
|
|
9038
9170
|
}>, {
|
|
9039
9171
|
lensVersion: string;
|
|
9040
9172
|
correlationId: string;
|
|
9041
9173
|
surfaceId: string;
|
|
9042
|
-
kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage";
|
|
9174
|
+
kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis";
|
|
9043
9175
|
occurredAt: string;
|
|
9044
9176
|
eventId: string;
|
|
9045
9177
|
substrate?: {
|
|
9046
|
-
provenance: "
|
|
9178
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
9047
9179
|
timestamp: string;
|
|
9048
9180
|
lensVersion: string;
|
|
9049
9181
|
lightSourceIdentifier: string;
|
|
9050
|
-
runMode: "
|
|
9182
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
9051
9183
|
correlationId: string;
|
|
9052
9184
|
columns: Record<string, string>;
|
|
9053
9185
|
} | undefined;
|
|
9186
|
+
emissionStreamId?: string | undefined;
|
|
9054
9187
|
light?: {
|
|
9188
|
+
rawResponse?: unknown;
|
|
9189
|
+
toolCalls?: unknown[] | undefined;
|
|
9190
|
+
tokens?: {
|
|
9191
|
+
input?: number | undefined;
|
|
9192
|
+
output?: number | undefined;
|
|
9193
|
+
cacheRead?: number | undefined;
|
|
9194
|
+
cacheWrite?: number | undefined;
|
|
9195
|
+
} | undefined;
|
|
9196
|
+
latencyMs?: number | undefined;
|
|
9197
|
+
reasoning?: string | undefined;
|
|
9198
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
9199
|
+
error?: {
|
|
9200
|
+
message: string;
|
|
9201
|
+
type: string;
|
|
9202
|
+
vendorErrorCode?: string | undefined;
|
|
9203
|
+
} | undefined;
|
|
9055
9204
|
rawRequest?: objectOutputType<{
|
|
9056
9205
|
surfaceId: ZodString;
|
|
9057
9206
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -9230,22 +9379,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
9230
9379
|
strict: ZodOptional$1<ZodBoolean>;
|
|
9231
9380
|
stream: ZodOptional$1<ZodBoolean>;
|
|
9232
9381
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
9233
|
-
rawResponse?: unknown;
|
|
9234
|
-
reasoning?: string | undefined;
|
|
9235
|
-
toolCalls?: unknown[] | undefined;
|
|
9236
|
-
tokens?: {
|
|
9237
|
-
input?: number | undefined;
|
|
9238
|
-
output?: number | undefined;
|
|
9239
|
-
cacheRead?: number | undefined;
|
|
9240
|
-
cacheWrite?: number | undefined;
|
|
9241
|
-
} | undefined;
|
|
9242
|
-
latencyMs?: number | undefined;
|
|
9243
|
-
error?: {
|
|
9244
|
-
message: string;
|
|
9245
|
-
type: string;
|
|
9246
|
-
vendorErrorCode?: string | undefined;
|
|
9247
|
-
} | undefined;
|
|
9248
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
9249
9382
|
rawRequestOmitted?: boolean | undefined;
|
|
9250
9383
|
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
9251
9384
|
} | undefined;
|
|
@@ -9409,6 +9542,27 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
9409
9542
|
finalSeen: boolean;
|
|
9410
9543
|
observedAtMs: number;
|
|
9411
9544
|
} | undefined;
|
|
9545
|
+
deliveryOrphan?: {
|
|
9546
|
+
surfaceId: string;
|
|
9547
|
+
darkEventId: string;
|
|
9548
|
+
emissionStreamId: string;
|
|
9549
|
+
witnessedAtMs: number;
|
|
9550
|
+
} | undefined;
|
|
9551
|
+
orthogonalityHypothesis?: {
|
|
9552
|
+
approverId: string;
|
|
9553
|
+
occurredAt: string;
|
|
9554
|
+
draftId: string;
|
|
9555
|
+
targetSurfaceId: string;
|
|
9556
|
+
targetDimensionId: string;
|
|
9557
|
+
candidateColumnId: string;
|
|
9558
|
+
proposedHypothesis: string;
|
|
9559
|
+
evidence: {
|
|
9560
|
+
scoredEventCount: number;
|
|
9561
|
+
sigmaObservedSquared: number;
|
|
9562
|
+
sigmaAgentSquared: number;
|
|
9563
|
+
sigmaAgentCILower: number;
|
|
9564
|
+
};
|
|
9565
|
+
} | undefined;
|
|
9412
9566
|
}, {
|
|
9413
9567
|
lensVersion: string;
|
|
9414
9568
|
correlationId: string;
|
|
@@ -9416,16 +9570,33 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
9416
9570
|
occurredAt: string;
|
|
9417
9571
|
eventId: string;
|
|
9418
9572
|
substrate?: {
|
|
9419
|
-
provenance: "
|
|
9573
|
+
provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
|
|
9420
9574
|
timestamp: string;
|
|
9421
9575
|
lensVersion: string;
|
|
9422
9576
|
lightSourceIdentifier: string;
|
|
9423
|
-
runMode: "
|
|
9577
|
+
runMode: "local_dev" | "replay" | "production" | "test" | "eval";
|
|
9424
9578
|
correlationId: string;
|
|
9425
9579
|
columns: Record<string, string>;
|
|
9426
9580
|
} | undefined;
|
|
9427
|
-
kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | undefined;
|
|
9581
|
+
kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis" | undefined;
|
|
9582
|
+
emissionStreamId?: string | undefined;
|
|
9428
9583
|
light?: {
|
|
9584
|
+
rawResponse?: unknown;
|
|
9585
|
+
toolCalls?: unknown[] | undefined;
|
|
9586
|
+
tokens?: {
|
|
9587
|
+
input?: number | undefined;
|
|
9588
|
+
output?: number | undefined;
|
|
9589
|
+
cacheRead?: number | undefined;
|
|
9590
|
+
cacheWrite?: number | undefined;
|
|
9591
|
+
} | undefined;
|
|
9592
|
+
latencyMs?: number | undefined;
|
|
9593
|
+
reasoning?: string | undefined;
|
|
9594
|
+
vendorMetadata?: Record<string, unknown> | undefined;
|
|
9595
|
+
error?: {
|
|
9596
|
+
message: string;
|
|
9597
|
+
type: string;
|
|
9598
|
+
vendorErrorCode?: string | undefined;
|
|
9599
|
+
} | undefined;
|
|
9429
9600
|
rawRequest?: objectInputType<{
|
|
9430
9601
|
surfaceId: ZodString;
|
|
9431
9602
|
correlationId: ZodOptional$1<ZodString>;
|
|
@@ -9604,22 +9775,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
9604
9775
|
strict: ZodOptional$1<ZodBoolean>;
|
|
9605
9776
|
stream: ZodOptional$1<ZodBoolean>;
|
|
9606
9777
|
}, ZodTypeAny$1, "passthrough"> | undefined;
|
|
9607
|
-
rawResponse?: unknown;
|
|
9608
|
-
reasoning?: string | undefined;
|
|
9609
|
-
toolCalls?: unknown[] | undefined;
|
|
9610
|
-
tokens?: {
|
|
9611
|
-
input?: number | undefined;
|
|
9612
|
-
output?: number | undefined;
|
|
9613
|
-
cacheRead?: number | undefined;
|
|
9614
|
-
cacheWrite?: number | undefined;
|
|
9615
|
-
} | undefined;
|
|
9616
|
-
latencyMs?: number | undefined;
|
|
9617
|
-
error?: {
|
|
9618
|
-
message: string;
|
|
9619
|
-
type: string;
|
|
9620
|
-
vendorErrorCode?: string | undefined;
|
|
9621
|
-
} | undefined;
|
|
9622
|
-
vendorMetadata?: Record<string, unknown> | undefined;
|
|
9623
9778
|
rawRequestOmitted?: boolean | undefined;
|
|
9624
9779
|
rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
|
|
9625
9780
|
} | undefined;
|
|
@@ -9783,6 +9938,27 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
|
|
|
9783
9938
|
finalSeen: boolean;
|
|
9784
9939
|
observedAtMs: number;
|
|
9785
9940
|
} | undefined;
|
|
9941
|
+
deliveryOrphan?: {
|
|
9942
|
+
surfaceId: string;
|
|
9943
|
+
darkEventId: string;
|
|
9944
|
+
emissionStreamId: string;
|
|
9945
|
+
witnessedAtMs: number;
|
|
9946
|
+
} | undefined;
|
|
9947
|
+
orthogonalityHypothesis?: {
|
|
9948
|
+
approverId: string;
|
|
9949
|
+
occurredAt: string;
|
|
9950
|
+
draftId: string;
|
|
9951
|
+
targetSurfaceId: string;
|
|
9952
|
+
targetDimensionId: string;
|
|
9953
|
+
candidateColumnId: string;
|
|
9954
|
+
proposedHypothesis: string;
|
|
9955
|
+
evidence: {
|
|
9956
|
+
scoredEventCount: number;
|
|
9957
|
+
sigmaObservedSquared: number;
|
|
9958
|
+
sigmaAgentSquared: number;
|
|
9959
|
+
sigmaAgentCILower: number;
|
|
9960
|
+
};
|
|
9961
|
+
} | undefined;
|
|
9786
9962
|
}>;
|
|
9787
9963
|
type EvaluationEvent = TypeOf$1<typeof EvaluationEventSchema>;
|
|
9788
9964
|
|
|
@@ -10023,6 +10199,7 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
|
|
|
10023
10199
|
output?: unknown;
|
|
10024
10200
|
isError?: boolean | undefined;
|
|
10025
10201
|
})[];
|
|
10202
|
+
ok: true;
|
|
10026
10203
|
tokens: {
|
|
10027
10204
|
input: number;
|
|
10028
10205
|
output: number;
|
|
@@ -10030,14 +10207,13 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
|
|
|
10030
10207
|
cacheWrite?: number | undefined;
|
|
10031
10208
|
};
|
|
10032
10209
|
latencyMs: number;
|
|
10033
|
-
ok: true;
|
|
10034
10210
|
rawResponse?: unknown;
|
|
10035
|
-
reasoning?: string | undefined;
|
|
10036
10211
|
toolCalls?: {
|
|
10037
10212
|
toolUseId: string;
|
|
10038
10213
|
toolName: string;
|
|
10039
10214
|
input?: unknown;
|
|
10040
10215
|
}[] | undefined;
|
|
10216
|
+
reasoning?: string | undefined;
|
|
10041
10217
|
vendorMetadata?: Record<string, unknown> | undefined;
|
|
10042
10218
|
stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
|
|
10043
10219
|
}, {
|
|
@@ -10056,6 +10232,7 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
|
|
|
10056
10232
|
output?: unknown;
|
|
10057
10233
|
isError?: boolean | undefined;
|
|
10058
10234
|
})[];
|
|
10235
|
+
ok: true;
|
|
10059
10236
|
tokens: {
|
|
10060
10237
|
input: number;
|
|
10061
10238
|
output: number;
|
|
@@ -10063,14 +10240,13 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
|
|
|
10063
10240
|
cacheWrite?: number | undefined;
|
|
10064
10241
|
};
|
|
10065
10242
|
latencyMs: number;
|
|
10066
|
-
ok: true;
|
|
10067
10243
|
rawResponse?: unknown;
|
|
10068
|
-
reasoning?: string | undefined;
|
|
10069
10244
|
toolCalls?: {
|
|
10070
10245
|
toolUseId: string;
|
|
10071
10246
|
toolName: string;
|
|
10072
10247
|
input?: unknown;
|
|
10073
10248
|
}[] | undefined;
|
|
10249
|
+
reasoning?: string | undefined;
|
|
10074
10250
|
vendorMetadata?: Record<string, unknown> | undefined;
|
|
10075
10251
|
stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
|
|
10076
10252
|
}>, ZodObject<{
|
|
@@ -10101,6 +10277,7 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
|
|
|
10101
10277
|
|
|
10102
10278
|
vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
|
|
10103
10279
|
}, "strip", ZodTypeAny$1, {
|
|
10280
|
+
ok: false;
|
|
10104
10281
|
latencyMs: number;
|
|
10105
10282
|
error: {
|
|
10106
10283
|
message: string;
|
|
@@ -10108,10 +10285,10 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
|
|
|
10108
10285
|
retryable: boolean;
|
|
10109
10286
|
vendorErrorCode?: string | undefined;
|
|
10110
10287
|
};
|
|
10111
|
-
ok: false;
|
|
10112
10288
|
rawResponse?: unknown;
|
|
10113
10289
|
vendorMetadata?: Record<string, unknown> | undefined;
|
|
10114
10290
|
}, {
|
|
10291
|
+
ok: false;
|
|
10115
10292
|
latencyMs: number;
|
|
10116
10293
|
error: {
|
|
10117
10294
|
message: string;
|
|
@@ -10119,7 +10296,6 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
|
|
|
10119
10296
|
retryable: boolean;
|
|
10120
10297
|
vendorErrorCode?: string | undefined;
|
|
10121
10298
|
};
|
|
10122
|
-
ok: false;
|
|
10123
10299
|
rawResponse?: unknown;
|
|
10124
10300
|
vendorMetadata?: Record<string, unknown> | undefined;
|
|
10125
10301
|
}>]>;
|
|
@@ -10998,6 +11174,92 @@ declare const LensAvailabilityMarkResponseSchema: ZodObject<{
|
|
|
10998
11174
|
}>;
|
|
10999
11175
|
type LensAvailabilityMarkResponse = TypeOf$1<typeof LensAvailabilityMarkResponseSchema>;
|
|
11000
11176
|
|
|
11177
|
+
interface LensReadWindow {
|
|
11178
|
+
readonly since?: string;
|
|
11179
|
+
readonly until?: string;
|
|
11180
|
+
}
|
|
11181
|
+
|
|
11182
|
+
interface ReconciliationQuery extends LensReadWindow {
|
|
11183
|
+
readonly emissionStreamId?: string;
|
|
11184
|
+
}
|
|
11185
|
+
|
|
11186
|
+
interface EmissionAuditQuery extends LensReadWindow {
|
|
11187
|
+
readonly surfaceId?: string;
|
|
11188
|
+
}
|
|
11189
|
+
|
|
11190
|
+
interface EmitterReconciliation {
|
|
11191
|
+
readonly emissionStreamId: string;
|
|
11192
|
+
|
|
11193
|
+
readonly persisted: number;
|
|
11194
|
+
|
|
11195
|
+
readonly dark: number;
|
|
11196
|
+
|
|
11197
|
+
readonly total: number;
|
|
11198
|
+
|
|
11199
|
+
readonly completeness: number;
|
|
11200
|
+
|
|
11201
|
+
readonly darkEventIds: readonly string[];
|
|
11202
|
+
}
|
|
11203
|
+
|
|
11204
|
+
interface ReconciliationSummary {
|
|
11205
|
+
readonly emitterCount: number;
|
|
11206
|
+
readonly totalPersisted: number;
|
|
11207
|
+
readonly totalDark: number;
|
|
11208
|
+
|
|
11209
|
+
readonly overallCompleteness: number;
|
|
11210
|
+
}
|
|
11211
|
+
|
|
11212
|
+
interface ReconciliationReport {
|
|
11213
|
+
readonly emitters: readonly EmitterReconciliation[];
|
|
11214
|
+
readonly summary: ReconciliationSummary;
|
|
11215
|
+
}
|
|
11216
|
+
|
|
11217
|
+
interface ReconciliationResponse extends ReconciliationReport {
|
|
11218
|
+
readonly since?: string;
|
|
11219
|
+
readonly until?: string;
|
|
11220
|
+
}
|
|
11221
|
+
|
|
11222
|
+
type ColumnEmissionVerdict = 'no-data' | 'ok' | 'partial' | 'expectation-mismatch' | 'missing' | 'present' | 'absent';
|
|
11223
|
+
interface ColumnEmissionByDay {
|
|
11224
|
+
|
|
11225
|
+
readonly date: string;
|
|
11226
|
+
|
|
11227
|
+
readonly populated: number;
|
|
11228
|
+
|
|
11229
|
+
readonly total: number;
|
|
11230
|
+
}
|
|
11231
|
+
interface ColumnEmissionRow {
|
|
11232
|
+
readonly columnId: string;
|
|
11233
|
+
|
|
11234
|
+
readonly emissionExpectation: EmissionExpectation;
|
|
11235
|
+
|
|
11236
|
+
readonly populated: number;
|
|
11237
|
+
|
|
11238
|
+
readonly total: number;
|
|
11239
|
+
|
|
11240
|
+
readonly verdict: ColumnEmissionVerdict;
|
|
11241
|
+
|
|
11242
|
+
readonly byDay: readonly ColumnEmissionByDay[];
|
|
11243
|
+
|
|
11244
|
+
readonly firstEmittedAt: string | null;
|
|
11245
|
+
readonly lastEmittedAt: string | null;
|
|
11246
|
+
}
|
|
11247
|
+
interface SurfaceColumnEmission {
|
|
11248
|
+
readonly surfaceId: string;
|
|
11249
|
+
|
|
11250
|
+
readonly total: number;
|
|
11251
|
+
|
|
11252
|
+
readonly columns: readonly ColumnEmissionRow[];
|
|
11253
|
+
|
|
11254
|
+
readonly undeclaredObserved: readonly string[];
|
|
11255
|
+
}
|
|
11256
|
+
|
|
11257
|
+
interface EmissionAuditResponse {
|
|
11258
|
+
readonly since?: string;
|
|
11259
|
+
readonly until?: string;
|
|
11260
|
+
readonly surfaces: readonly SurfaceColumnEmission[];
|
|
11261
|
+
}
|
|
11262
|
+
|
|
11001
11263
|
interface HolonographCallHandle {
|
|
11002
11264
|
|
|
11003
11265
|
result: MediatorCallResult | GateExecutionResult;
|
|
@@ -11098,6 +11360,10 @@ interface EmitOptions {
|
|
|
11098
11360
|
|
|
11099
11361
|
mode?: EmitMode;
|
|
11100
11362
|
|
|
11363
|
+
deployment?: 'serverless' | 'persistent';
|
|
11364
|
+
|
|
11365
|
+
streamId?: string;
|
|
11366
|
+
|
|
11101
11367
|
otlp?: OtlpEmitConfig;
|
|
11102
11368
|
|
|
11103
11369
|
bufferSize?: number;
|
|
@@ -11168,6 +11434,10 @@ interface Transport {
|
|
|
11168
11434
|
|
|
11169
11435
|
getContract?(): Promise<ContractRegisterResponse>;
|
|
11170
11436
|
|
|
11437
|
+
getReconciliation?(query?: ReconciliationQuery): Promise<ReconciliationResponse>;
|
|
11438
|
+
|
|
11439
|
+
getEmission?(query?: EmissionAuditQuery): Promise<EmissionAuditResponse>;
|
|
11440
|
+
|
|
11171
11441
|
markAvailability?(req: LensAvailabilityMarkRequest): Promise<LensAvailabilityMarkResponse>;
|
|
11172
11442
|
}
|
|
11173
11443
|
|
|
@@ -11210,12 +11480,112 @@ declare class HttpTransport implements Transport {
|
|
|
11210
11480
|
shutdown(): Promise<void>;
|
|
11211
11481
|
postContract(contract: SurfaceContract): Promise<ContractRegisterResponse>;
|
|
11212
11482
|
getContract(): Promise<ContractRegisterResponse>;
|
|
11483
|
+
getReconciliation(query?: ReconciliationQuery): Promise<ReconciliationResponse>;
|
|
11484
|
+
getEmission(query?: EmissionAuditQuery): Promise<EmissionAuditResponse>;
|
|
11213
11485
|
markAvailability(req: LensAvailabilityMarkRequest): Promise<LensAvailabilityMarkResponse>;
|
|
11214
11486
|
private post;
|
|
11215
11487
|
|
|
11216
11488
|
private get;
|
|
11217
11489
|
}
|
|
11218
11490
|
|
|
11491
|
+
interface KeyedDiff<T> {
|
|
11492
|
+
|
|
11493
|
+
added: T[];
|
|
11494
|
+
|
|
11495
|
+
removed: T[];
|
|
11496
|
+
|
|
11497
|
+
changed: {
|
|
11498
|
+
key: string;
|
|
11499
|
+
prev: T;
|
|
11500
|
+
next: T;
|
|
11501
|
+
}[];
|
|
11502
|
+
|
|
11503
|
+
unchanged: T[];
|
|
11504
|
+
}
|
|
11505
|
+
|
|
11506
|
+
declare function hasChanges<T>(diff: KeyedDiff<T>): boolean;
|
|
11507
|
+
|
|
11508
|
+
declare function diffByKey<T>(prev: readonly T[], next: readonly T[], keyOf: (item: T) => string, opts?: {
|
|
11509
|
+
equals?: (a: T, b: T) => boolean;
|
|
11510
|
+
}): KeyedDiff<T>;
|
|
11511
|
+
|
|
11512
|
+
interface PollerHandle {
|
|
11513
|
+
|
|
11514
|
+
stop(): void;
|
|
11515
|
+
}
|
|
11516
|
+
interface PollerOptions<T> {
|
|
11517
|
+
|
|
11518
|
+
poll: (signal: AbortSignal) => Promise<T>;
|
|
11519
|
+
|
|
11520
|
+
intervalMs: number;
|
|
11521
|
+
|
|
11522
|
+
onResult: (result: T) => void | Promise<void>;
|
|
11523
|
+
|
|
11524
|
+
onError?: (err: unknown) => void;
|
|
11525
|
+
|
|
11526
|
+
signal?: AbortSignal;
|
|
11527
|
+
|
|
11528
|
+
immediate?: boolean;
|
|
11529
|
+
}
|
|
11530
|
+
|
|
11531
|
+
declare function createPoller<T>(opts: PollerOptions<T>): PollerHandle;
|
|
11532
|
+
interface WatchByKeyOptions<T> {
|
|
11533
|
+
|
|
11534
|
+
poll: (signal: AbortSignal) => Promise<readonly T[]>;
|
|
11535
|
+
|
|
11536
|
+
intervalMs: number;
|
|
11537
|
+
|
|
11538
|
+
keyOf: (item: T) => string;
|
|
11539
|
+
|
|
11540
|
+
onChange: (diff: KeyedDiff<T>) => void | Promise<void>;
|
|
11541
|
+
|
|
11542
|
+
equals?: (a: T, b: T) => boolean;
|
|
11543
|
+
|
|
11544
|
+
onError?: (err: unknown) => void;
|
|
11545
|
+
|
|
11546
|
+
signal?: AbortSignal;
|
|
11547
|
+
|
|
11548
|
+
emitInitial?: boolean;
|
|
11549
|
+
}
|
|
11550
|
+
|
|
11551
|
+
declare function watchByKey<T>(opts: WatchByKeyOptions<T>): PollerHandle;
|
|
11552
|
+
|
|
11553
|
+
interface ReconciliationReader {
|
|
11554
|
+
getReconciliation(query?: ReconciliationQuery): Promise<ReconciliationResponse>;
|
|
11555
|
+
}
|
|
11556
|
+
|
|
11557
|
+
interface EmissionReader {
|
|
11558
|
+
getEmission(query?: EmissionAuditQuery): Promise<EmissionAuditResponse>;
|
|
11559
|
+
}
|
|
11560
|
+
interface CommonWatchOptions {
|
|
11561
|
+
intervalMs: number;
|
|
11562
|
+
onError?: (err: unknown) => void;
|
|
11563
|
+
signal?: AbortSignal;
|
|
11564
|
+
emitInitial?: boolean;
|
|
11565
|
+
}
|
|
11566
|
+
interface WatchReconciliationOptions extends CommonWatchOptions {
|
|
11567
|
+
reader: ReconciliationReader;
|
|
11568
|
+
|
|
11569
|
+
query?: ReconciliationQuery;
|
|
11570
|
+
|
|
11571
|
+
onChange: (diff: KeyedDiff<EmitterReconciliation>) => void | Promise<void>;
|
|
11572
|
+
|
|
11573
|
+
equals?: (a: EmitterReconciliation, b: EmitterReconciliation) => boolean;
|
|
11574
|
+
}
|
|
11575
|
+
|
|
11576
|
+
declare function watchReconciliation(opts: WatchReconciliationOptions): PollerHandle;
|
|
11577
|
+
interface WatchEmissionOptions extends CommonWatchOptions {
|
|
11578
|
+
reader: EmissionReader;
|
|
11579
|
+
|
|
11580
|
+
query?: EmissionAuditQuery;
|
|
11581
|
+
|
|
11582
|
+
onChange: (diff: KeyedDiff<SurfaceColumnEmission>) => void | Promise<void>;
|
|
11583
|
+
|
|
11584
|
+
equals?: (a: SurfaceColumnEmission, b: SurfaceColumnEmission) => boolean;
|
|
11585
|
+
}
|
|
11586
|
+
|
|
11587
|
+
declare function watchEmission(opts: WatchEmissionOptions): PollerHandle;
|
|
11588
|
+
|
|
11219
11589
|
interface HolonographClientOptions {
|
|
11220
11590
|
|
|
11221
11591
|
endpoint: string;
|
|
@@ -11260,5 +11630,5 @@ interface HolonographClient {
|
|
|
11260
11630
|
|
|
11261
11631
|
declare const HolonographClient: new (options: HolonographClientOptions) => HolonographClient;
|
|
11262
11632
|
|
|
11263
|
-
export { HolonographClient, HolonographGradeAfterReportError, HolonographHttpError, HolonographMarkerPairingWarningError, HolonographNoObserversError, HolonographObserverNotFoundError, HttpTransport };
|
|
11264
|
-
export type { AvailabilityMarkOptions, CompletenessWindow, ContractRegisterResponse, ContractSurfaceSummary, EmitChannel, EmitChannelCompleteness, EmitMode, EmitOptions, ExtremeSustainedLoadEvent, HolonographCallHandle, HolonographClientOptions, HolonographMessageRequest as HolonographMessageRequest, HolonographMessageResponse as HolonographMessageResponse, HttpTransportOptions, MediatorCallRequest, OtlpEmitConfig, SurfaceOutcomeReport };
|
|
11633
|
+
export { HolonographClient, HolonographGradeAfterReportError, HolonographHttpError, HolonographMarkerPairingWarningError, HolonographNoObserversError, HolonographObserverNotFoundError, HttpTransport, createPoller, diffByKey, hasChanges, watchByKey, watchEmission, watchReconciliation };
|
|
11634
|
+
export type { AvailabilityMarkOptions, CompletenessWindow, ContractRegisterResponse, ContractSurfaceSummary, EmissionReader, EmitChannel, EmitChannelCompleteness, EmitMode, EmitOptions, ExtremeSustainedLoadEvent, HolonographCallHandle, HolonographClientOptions, HolonographMessageRequest as HolonographMessageRequest, HolonographMessageResponse as HolonographMessageResponse, HttpTransportOptions, KeyedDiff, MediatorCallRequest, OtlpEmitConfig, PollerHandle, PollerOptions, ReconciliationReader, SurfaceOutcomeReport, WatchByKeyOptions, WatchEmissionOptions, WatchReconciliationOptions };
|