@kya-os/contracts 1.6.19 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agentshield-api/schemas.d.ts +154 -154
- package/dist/audit/index.d.ts +24 -24
- package/dist/cli.d.ts +26 -26
- package/dist/consent/index.d.ts +8 -2
- package/dist/consent/index.js +73 -17
- package/dist/consent/schemas.d.ts +123 -123
- package/dist/consent/schemas.js +1 -1
- package/dist/consent/types.d.ts +1 -1
- package/dist/dashboard-config/schemas.d.ts +2241 -2241
- package/dist/delegation/schemas.d.ts +34 -34
- package/dist/deploy/schemas.d.ts +110 -110
- package/dist/handshake.d.ts +4 -4
- package/dist/handshake.js +2 -2
- package/dist/proof.d.ts +12 -12
- package/dist/registry.d.ts +8 -8
- package/dist/reputation/api.d.ts +146 -146
- package/dist/reputation/credentials.d.ts +60 -60
- package/dist/reputation/schemas.d.ts +24 -24
- package/dist/test.d.ts +12 -12
- package/dist/tool-protection/index.d.ts +18 -18
- package/dist/verifier.d.ts +8 -8
- package/dist/well-known/index.d.ts +716 -11
- package/dist/well-known/index.js +169 -1
- package/package.json +2 -1
|
@@ -69,8 +69,8 @@ export declare const ReputationCredentialSubjectSchema: z.ZodObject<{
|
|
|
69
69
|
priorWeight: number;
|
|
70
70
|
}>>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
score: number;
|
|
73
72
|
confidence: number;
|
|
73
|
+
score: number;
|
|
74
74
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
75
75
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
76
76
|
isProvisional: boolean;
|
|
@@ -82,8 +82,8 @@ export declare const ReputationCredentialSubjectSchema: z.ZodObject<{
|
|
|
82
82
|
priorWeight: number;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
score: number;
|
|
86
85
|
confidence: number;
|
|
86
|
+
score: number;
|
|
87
87
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
88
88
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
89
89
|
isProvisional: boolean;
|
|
@@ -105,18 +105,18 @@ export declare const ReputationCredentialSubjectSchema: z.ZodObject<{
|
|
|
105
105
|
region: z.ZodOptional<z.ZodString>;
|
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
|
107
107
|
scope: string;
|
|
108
|
-
domain?: string | undefined;
|
|
109
108
|
region?: string | undefined;
|
|
109
|
+
domain?: string | undefined;
|
|
110
110
|
}, {
|
|
111
|
+
region?: string | undefined;
|
|
111
112
|
scope?: string | undefined;
|
|
112
113
|
domain?: string | undefined;
|
|
113
|
-
region?: string | undefined;
|
|
114
114
|
}>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
id: string;
|
|
117
117
|
reputation: {
|
|
118
|
-
score: number;
|
|
119
118
|
confidence: number;
|
|
119
|
+
score: number;
|
|
120
120
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
121
121
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
122
122
|
isProvisional: boolean;
|
|
@@ -130,14 +130,14 @@ export declare const ReputationCredentialSubjectSchema: z.ZodObject<{
|
|
|
130
130
|
};
|
|
131
131
|
context?: {
|
|
132
132
|
scope: string;
|
|
133
|
-
domain?: string | undefined;
|
|
134
133
|
region?: string | undefined;
|
|
134
|
+
domain?: string | undefined;
|
|
135
135
|
} | undefined;
|
|
136
136
|
}, {
|
|
137
137
|
id: string;
|
|
138
138
|
reputation: {
|
|
139
|
-
score: number;
|
|
140
139
|
confidence: number;
|
|
140
|
+
score: number;
|
|
141
141
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
142
142
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
143
143
|
isProvisional: boolean;
|
|
@@ -150,9 +150,9 @@ export declare const ReputationCredentialSubjectSchema: z.ZodObject<{
|
|
|
150
150
|
} | undefined;
|
|
151
151
|
};
|
|
152
152
|
context?: {
|
|
153
|
+
region?: string | undefined;
|
|
153
154
|
scope?: string | undefined;
|
|
154
155
|
domain?: string | undefined;
|
|
155
|
-
region?: string | undefined;
|
|
156
156
|
} | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
export type ReputationCredentialSubject = z.infer<typeof ReputationCredentialSubjectSchema>;
|
|
@@ -221,8 +221,8 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
221
221
|
priorWeight: number;
|
|
222
222
|
}>>;
|
|
223
223
|
}, "strip", z.ZodTypeAny, {
|
|
224
|
-
score: number;
|
|
225
224
|
confidence: number;
|
|
225
|
+
score: number;
|
|
226
226
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
227
227
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
228
228
|
isProvisional: boolean;
|
|
@@ -234,8 +234,8 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
234
234
|
priorWeight: number;
|
|
235
235
|
} | undefined;
|
|
236
236
|
}, {
|
|
237
|
-
score: number;
|
|
238
237
|
confidence: number;
|
|
238
|
+
score: number;
|
|
239
239
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
240
240
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
241
241
|
isProvisional: boolean;
|
|
@@ -257,18 +257,18 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
257
257
|
region: z.ZodOptional<z.ZodString>;
|
|
258
258
|
}, "strip", z.ZodTypeAny, {
|
|
259
259
|
scope: string;
|
|
260
|
-
domain?: string | undefined;
|
|
261
260
|
region?: string | undefined;
|
|
261
|
+
domain?: string | undefined;
|
|
262
262
|
}, {
|
|
263
|
+
region?: string | undefined;
|
|
263
264
|
scope?: string | undefined;
|
|
264
265
|
domain?: string | undefined;
|
|
265
|
-
region?: string | undefined;
|
|
266
266
|
}>>;
|
|
267
267
|
}, "strip", z.ZodTypeAny, {
|
|
268
268
|
id: string;
|
|
269
269
|
reputation: {
|
|
270
|
-
score: number;
|
|
271
270
|
confidence: number;
|
|
271
|
+
score: number;
|
|
272
272
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
273
273
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
274
274
|
isProvisional: boolean;
|
|
@@ -282,14 +282,14 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
282
282
|
};
|
|
283
283
|
context?: {
|
|
284
284
|
scope: string;
|
|
285
|
-
domain?: string | undefined;
|
|
286
285
|
region?: string | undefined;
|
|
286
|
+
domain?: string | undefined;
|
|
287
287
|
} | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
id: string;
|
|
290
290
|
reputation: {
|
|
291
|
-
score: number;
|
|
292
291
|
confidence: number;
|
|
292
|
+
score: number;
|
|
293
293
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
294
294
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
295
295
|
isProvisional: boolean;
|
|
@@ -302,9 +302,9 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
302
302
|
} | undefined;
|
|
303
303
|
};
|
|
304
304
|
context?: {
|
|
305
|
+
region?: string | undefined;
|
|
305
306
|
scope?: string | undefined;
|
|
306
307
|
domain?: string | undefined;
|
|
307
|
-
region?: string | undefined;
|
|
308
308
|
} | undefined;
|
|
309
309
|
}>;
|
|
310
310
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
@@ -391,8 +391,8 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
391
391
|
priorWeight: number;
|
|
392
392
|
}>>;
|
|
393
393
|
}, "strip", z.ZodTypeAny, {
|
|
394
|
-
score: number;
|
|
395
394
|
confidence: number;
|
|
395
|
+
score: number;
|
|
396
396
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
397
397
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
398
398
|
isProvisional: boolean;
|
|
@@ -404,8 +404,8 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
404
404
|
priorWeight: number;
|
|
405
405
|
} | undefined;
|
|
406
406
|
}, {
|
|
407
|
-
score: number;
|
|
408
407
|
confidence: number;
|
|
408
|
+
score: number;
|
|
409
409
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
410
410
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
411
411
|
isProvisional: boolean;
|
|
@@ -427,18 +427,18 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
427
427
|
region: z.ZodOptional<z.ZodString>;
|
|
428
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
429
|
scope: string;
|
|
430
|
-
domain?: string | undefined;
|
|
431
430
|
region?: string | undefined;
|
|
431
|
+
domain?: string | undefined;
|
|
432
432
|
}, {
|
|
433
|
+
region?: string | undefined;
|
|
433
434
|
scope?: string | undefined;
|
|
434
435
|
domain?: string | undefined;
|
|
435
|
-
region?: string | undefined;
|
|
436
436
|
}>>;
|
|
437
437
|
}, "strip", z.ZodTypeAny, {
|
|
438
438
|
id: string;
|
|
439
439
|
reputation: {
|
|
440
|
-
score: number;
|
|
441
440
|
confidence: number;
|
|
441
|
+
score: number;
|
|
442
442
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
443
443
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
444
444
|
isProvisional: boolean;
|
|
@@ -452,14 +452,14 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
452
452
|
};
|
|
453
453
|
context?: {
|
|
454
454
|
scope: string;
|
|
455
|
-
domain?: string | undefined;
|
|
456
455
|
region?: string | undefined;
|
|
456
|
+
domain?: string | undefined;
|
|
457
457
|
} | undefined;
|
|
458
458
|
}, {
|
|
459
459
|
id: string;
|
|
460
460
|
reputation: {
|
|
461
|
-
score: number;
|
|
462
461
|
confidence: number;
|
|
462
|
+
score: number;
|
|
463
463
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
464
464
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
465
465
|
isProvisional: boolean;
|
|
@@ -472,9 +472,9 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
472
472
|
} | undefined;
|
|
473
473
|
};
|
|
474
474
|
context?: {
|
|
475
|
+
region?: string | undefined;
|
|
475
476
|
scope?: string | undefined;
|
|
476
477
|
domain?: string | undefined;
|
|
477
|
-
region?: string | undefined;
|
|
478
478
|
} | undefined;
|
|
479
479
|
}>;
|
|
480
480
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
@@ -561,8 +561,8 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
561
561
|
priorWeight: number;
|
|
562
562
|
}>>;
|
|
563
563
|
}, "strip", z.ZodTypeAny, {
|
|
564
|
-
score: number;
|
|
565
564
|
confidence: number;
|
|
565
|
+
score: number;
|
|
566
566
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
567
567
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
568
568
|
isProvisional: boolean;
|
|
@@ -574,8 +574,8 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
574
574
|
priorWeight: number;
|
|
575
575
|
} | undefined;
|
|
576
576
|
}, {
|
|
577
|
-
score: number;
|
|
578
577
|
confidence: number;
|
|
578
|
+
score: number;
|
|
579
579
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
580
580
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
581
581
|
isProvisional: boolean;
|
|
@@ -597,18 +597,18 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
597
597
|
region: z.ZodOptional<z.ZodString>;
|
|
598
598
|
}, "strip", z.ZodTypeAny, {
|
|
599
599
|
scope: string;
|
|
600
|
-
domain?: string | undefined;
|
|
601
600
|
region?: string | undefined;
|
|
601
|
+
domain?: string | undefined;
|
|
602
602
|
}, {
|
|
603
|
+
region?: string | undefined;
|
|
603
604
|
scope?: string | undefined;
|
|
604
605
|
domain?: string | undefined;
|
|
605
|
-
region?: string | undefined;
|
|
606
606
|
}>>;
|
|
607
607
|
}, "strip", z.ZodTypeAny, {
|
|
608
608
|
id: string;
|
|
609
609
|
reputation: {
|
|
610
|
-
score: number;
|
|
611
610
|
confidence: number;
|
|
611
|
+
score: number;
|
|
612
612
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
613
613
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
614
614
|
isProvisional: boolean;
|
|
@@ -622,14 +622,14 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
622
622
|
};
|
|
623
623
|
context?: {
|
|
624
624
|
scope: string;
|
|
625
|
-
domain?: string | undefined;
|
|
626
625
|
region?: string | undefined;
|
|
626
|
+
domain?: string | undefined;
|
|
627
627
|
} | undefined;
|
|
628
628
|
}, {
|
|
629
629
|
id: string;
|
|
630
630
|
reputation: {
|
|
631
|
-
score: number;
|
|
632
631
|
confidence: number;
|
|
632
|
+
score: number;
|
|
633
633
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
634
634
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
635
635
|
isProvisional: boolean;
|
|
@@ -642,9 +642,9 @@ export declare const ReputationCredentialSchema: z.ZodObject<{
|
|
|
642
642
|
} | undefined;
|
|
643
643
|
};
|
|
644
644
|
context?: {
|
|
645
|
+
region?: string | undefined;
|
|
645
646
|
scope?: string | undefined;
|
|
646
647
|
domain?: string | undefined;
|
|
647
|
-
region?: string | undefined;
|
|
648
648
|
} | undefined;
|
|
649
649
|
}>;
|
|
650
650
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
@@ -702,15 +702,15 @@ export declare const ReputationAttestationSubjectSchema: z.ZodObject<{
|
|
|
702
702
|
/** Specific capability or context being attested */
|
|
703
703
|
capability: z.ZodOptional<z.ZodString>;
|
|
704
704
|
}, "strip", z.ZodTypeAny, {
|
|
705
|
+
id: string;
|
|
705
706
|
score: number;
|
|
706
707
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
707
|
-
id: string;
|
|
708
708
|
highConfidence: boolean;
|
|
709
709
|
capability?: string | undefined;
|
|
710
710
|
}, {
|
|
711
|
+
id: string;
|
|
711
712
|
score: number;
|
|
712
713
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
713
|
-
id: string;
|
|
714
714
|
highConfidence: boolean;
|
|
715
715
|
capability?: string | undefined;
|
|
716
716
|
}>;
|
|
@@ -781,15 +781,15 @@ export declare const ReputationAttestationSchema: z.ZodObject<{
|
|
|
781
781
|
/** Specific capability or context being attested */
|
|
782
782
|
capability: z.ZodOptional<z.ZodString>;
|
|
783
783
|
}, "strip", z.ZodTypeAny, {
|
|
784
|
+
id: string;
|
|
784
785
|
score: number;
|
|
785
786
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
786
|
-
id: string;
|
|
787
787
|
highConfidence: boolean;
|
|
788
788
|
capability?: string | undefined;
|
|
789
789
|
}, {
|
|
790
|
+
id: string;
|
|
790
791
|
score: number;
|
|
791
792
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
792
|
-
id: string;
|
|
793
793
|
highConfidence: boolean;
|
|
794
794
|
capability?: string | undefined;
|
|
795
795
|
}>;
|
|
@@ -854,15 +854,15 @@ export declare const ReputationAttestationSchema: z.ZodObject<{
|
|
|
854
854
|
/** Specific capability or context being attested */
|
|
855
855
|
capability: z.ZodOptional<z.ZodString>;
|
|
856
856
|
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
id: string;
|
|
857
858
|
score: number;
|
|
858
859
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
859
|
-
id: string;
|
|
860
860
|
highConfidence: boolean;
|
|
861
861
|
capability?: string | undefined;
|
|
862
862
|
}, {
|
|
863
|
+
id: string;
|
|
863
864
|
score: number;
|
|
864
865
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
865
|
-
id: string;
|
|
866
866
|
highConfidence: boolean;
|
|
867
867
|
capability?: string | undefined;
|
|
868
868
|
}>;
|
|
@@ -927,15 +927,15 @@ export declare const ReputationAttestationSchema: z.ZodObject<{
|
|
|
927
927
|
/** Specific capability or context being attested */
|
|
928
928
|
capability: z.ZodOptional<z.ZodString>;
|
|
929
929
|
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
id: string;
|
|
930
931
|
score: number;
|
|
931
932
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
932
|
-
id: string;
|
|
933
933
|
highConfidence: boolean;
|
|
934
934
|
capability?: string | undefined;
|
|
935
935
|
}, {
|
|
936
|
+
id: string;
|
|
936
937
|
score: number;
|
|
937
938
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
938
|
-
id: string;
|
|
939
939
|
highConfidence: boolean;
|
|
940
940
|
capability?: string | undefined;
|
|
941
941
|
}>;
|
|
@@ -996,8 +996,8 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
996
996
|
priorWeight: number;
|
|
997
997
|
}>>;
|
|
998
998
|
}, "strip", z.ZodTypeAny, {
|
|
999
|
-
score: number;
|
|
1000
999
|
confidence: number;
|
|
1000
|
+
score: number;
|
|
1001
1001
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1002
1002
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1003
1003
|
isProvisional: boolean;
|
|
@@ -1009,8 +1009,8 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1009
1009
|
priorWeight: number;
|
|
1010
1010
|
} | undefined;
|
|
1011
1011
|
}, {
|
|
1012
|
-
score: number;
|
|
1013
1012
|
confidence: number;
|
|
1013
|
+
score: number;
|
|
1014
1014
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1015
1015
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1016
1016
|
isProvisional: boolean;
|
|
@@ -1032,18 +1032,18 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1032
1032
|
region: z.ZodOptional<z.ZodString>;
|
|
1033
1033
|
}, "strip", z.ZodTypeAny, {
|
|
1034
1034
|
scope: string;
|
|
1035
|
-
domain?: string | undefined;
|
|
1036
1035
|
region?: string | undefined;
|
|
1036
|
+
domain?: string | undefined;
|
|
1037
1037
|
}, {
|
|
1038
|
+
region?: string | undefined;
|
|
1038
1039
|
scope?: string | undefined;
|
|
1039
1040
|
domain?: string | undefined;
|
|
1040
|
-
region?: string | undefined;
|
|
1041
1041
|
}>>;
|
|
1042
1042
|
}, "strip", z.ZodTypeAny, {
|
|
1043
1043
|
id: string;
|
|
1044
1044
|
reputation: {
|
|
1045
|
-
score: number;
|
|
1046
1045
|
confidence: number;
|
|
1046
|
+
score: number;
|
|
1047
1047
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1048
1048
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1049
1049
|
isProvisional: boolean;
|
|
@@ -1057,14 +1057,14 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1057
1057
|
};
|
|
1058
1058
|
context?: {
|
|
1059
1059
|
scope: string;
|
|
1060
|
-
domain?: string | undefined;
|
|
1061
1060
|
region?: string | undefined;
|
|
1061
|
+
domain?: string | undefined;
|
|
1062
1062
|
} | undefined;
|
|
1063
1063
|
}, {
|
|
1064
1064
|
id: string;
|
|
1065
1065
|
reputation: {
|
|
1066
|
-
score: number;
|
|
1067
1066
|
confidence: number;
|
|
1067
|
+
score: number;
|
|
1068
1068
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1069
1069
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1070
1070
|
isProvisional: boolean;
|
|
@@ -1077,9 +1077,9 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1077
1077
|
} | undefined;
|
|
1078
1078
|
};
|
|
1079
1079
|
context?: {
|
|
1080
|
+
region?: string | undefined;
|
|
1080
1081
|
scope?: string | undefined;
|
|
1081
1082
|
domain?: string | undefined;
|
|
1082
|
-
region?: string | undefined;
|
|
1083
1083
|
} | undefined;
|
|
1084
1084
|
}>;
|
|
1085
1085
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
@@ -1166,8 +1166,8 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1166
1166
|
priorWeight: number;
|
|
1167
1167
|
}>>;
|
|
1168
1168
|
}, "strip", z.ZodTypeAny, {
|
|
1169
|
-
score: number;
|
|
1170
1169
|
confidence: number;
|
|
1170
|
+
score: number;
|
|
1171
1171
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1172
1172
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1173
1173
|
isProvisional: boolean;
|
|
@@ -1179,8 +1179,8 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1179
1179
|
priorWeight: number;
|
|
1180
1180
|
} | undefined;
|
|
1181
1181
|
}, {
|
|
1182
|
-
score: number;
|
|
1183
1182
|
confidence: number;
|
|
1183
|
+
score: number;
|
|
1184
1184
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1185
1185
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1186
1186
|
isProvisional: boolean;
|
|
@@ -1202,18 +1202,18 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1202
1202
|
region: z.ZodOptional<z.ZodString>;
|
|
1203
1203
|
}, "strip", z.ZodTypeAny, {
|
|
1204
1204
|
scope: string;
|
|
1205
|
-
domain?: string | undefined;
|
|
1206
1205
|
region?: string | undefined;
|
|
1206
|
+
domain?: string | undefined;
|
|
1207
1207
|
}, {
|
|
1208
|
+
region?: string | undefined;
|
|
1208
1209
|
scope?: string | undefined;
|
|
1209
1210
|
domain?: string | undefined;
|
|
1210
|
-
region?: string | undefined;
|
|
1211
1211
|
}>>;
|
|
1212
1212
|
}, "strip", z.ZodTypeAny, {
|
|
1213
1213
|
id: string;
|
|
1214
1214
|
reputation: {
|
|
1215
|
-
score: number;
|
|
1216
1215
|
confidence: number;
|
|
1216
|
+
score: number;
|
|
1217
1217
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1218
1218
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1219
1219
|
isProvisional: boolean;
|
|
@@ -1227,14 +1227,14 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1227
1227
|
};
|
|
1228
1228
|
context?: {
|
|
1229
1229
|
scope: string;
|
|
1230
|
-
domain?: string | undefined;
|
|
1231
1230
|
region?: string | undefined;
|
|
1231
|
+
domain?: string | undefined;
|
|
1232
1232
|
} | undefined;
|
|
1233
1233
|
}, {
|
|
1234
1234
|
id: string;
|
|
1235
1235
|
reputation: {
|
|
1236
|
-
score: number;
|
|
1237
1236
|
confidence: number;
|
|
1237
|
+
score: number;
|
|
1238
1238
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1239
1239
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1240
1240
|
isProvisional: boolean;
|
|
@@ -1247,9 +1247,9 @@ export declare function validateReputationCredential(credential: unknown): z.Saf
|
|
|
1247
1247
|
} | undefined;
|
|
1248
1248
|
};
|
|
1249
1249
|
context?: {
|
|
1250
|
+
region?: string | undefined;
|
|
1250
1251
|
scope?: string | undefined;
|
|
1251
1252
|
domain?: string | undefined;
|
|
1252
|
-
region?: string | undefined;
|
|
1253
1253
|
} | undefined;
|
|
1254
1254
|
}>;
|
|
1255
1255
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
@@ -1355,15 +1355,15 @@ export declare function validateReputationAttestation(attestation: unknown): z.S
|
|
|
1355
1355
|
/** Specific capability or context being attested */
|
|
1356
1356
|
capability: z.ZodOptional<z.ZodString>;
|
|
1357
1357
|
}, "strip", z.ZodTypeAny, {
|
|
1358
|
+
id: string;
|
|
1358
1359
|
score: number;
|
|
1359
1360
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1360
|
-
id: string;
|
|
1361
1361
|
highConfidence: boolean;
|
|
1362
1362
|
capability?: string | undefined;
|
|
1363
1363
|
}, {
|
|
1364
|
+
id: string;
|
|
1364
1365
|
score: number;
|
|
1365
1366
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1366
|
-
id: string;
|
|
1367
1367
|
highConfidence: boolean;
|
|
1368
1368
|
capability?: string | undefined;
|
|
1369
1369
|
}>;
|
|
@@ -1428,15 +1428,15 @@ export declare function validateReputationAttestation(attestation: unknown): z.S
|
|
|
1428
1428
|
/** Specific capability or context being attested */
|
|
1429
1429
|
capability: z.ZodOptional<z.ZodString>;
|
|
1430
1430
|
}, "strip", z.ZodTypeAny, {
|
|
1431
|
+
id: string;
|
|
1431
1432
|
score: number;
|
|
1432
1433
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1433
|
-
id: string;
|
|
1434
1434
|
highConfidence: boolean;
|
|
1435
1435
|
capability?: string | undefined;
|
|
1436
1436
|
}, {
|
|
1437
|
+
id: string;
|
|
1437
1438
|
score: number;
|
|
1438
1439
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1439
|
-
id: string;
|
|
1440
1440
|
highConfidence: boolean;
|
|
1441
1441
|
capability?: string | undefined;
|
|
1442
1442
|
}>;
|
|
@@ -626,8 +626,8 @@ export declare const ReputationScoreSchema: z.ZodObject<{
|
|
|
626
626
|
agentDid: z.ZodString;
|
|
627
627
|
}, "strip", z.ZodTypeAny, {
|
|
628
628
|
agentDid: string;
|
|
629
|
-
score: number;
|
|
630
629
|
confidence: number;
|
|
630
|
+
score: number;
|
|
631
631
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
632
632
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
633
633
|
components: {
|
|
@@ -647,8 +647,8 @@ export declare const ReputationScoreSchema: z.ZodObject<{
|
|
|
647
647
|
} | undefined;
|
|
648
648
|
}, {
|
|
649
649
|
agentDid: string;
|
|
650
|
-
score: number;
|
|
651
650
|
confidence: number;
|
|
651
|
+
score: number;
|
|
652
652
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
653
653
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
654
654
|
components: {
|
|
@@ -1010,6 +1010,12 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
1010
1010
|
maxPriorScore?: number | undefined;
|
|
1011
1011
|
}>>;
|
|
1012
1012
|
}, "strip", z.ZodTypeAny, {
|
|
1013
|
+
changes: {
|
|
1014
|
+
additionalReviews?: number | undefined;
|
|
1015
|
+
newAverageRating?: number | undefined;
|
|
1016
|
+
additionalInteractions?: number | undefined;
|
|
1017
|
+
additionalSuccessfulInteractions?: number | undefined;
|
|
1018
|
+
};
|
|
1013
1019
|
current: {
|
|
1014
1020
|
issues: {
|
|
1015
1021
|
disputesFiled: number;
|
|
@@ -1041,12 +1047,6 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
1041
1047
|
createdAt?: string | undefined;
|
|
1042
1048
|
metadata?: Record<string, unknown> | undefined;
|
|
1043
1049
|
};
|
|
1044
|
-
changes: {
|
|
1045
|
-
additionalReviews?: number | undefined;
|
|
1046
|
-
newAverageRating?: number | undefined;
|
|
1047
|
-
additionalInteractions?: number | undefined;
|
|
1048
|
-
additionalSuccessfulInteractions?: number | undefined;
|
|
1049
|
-
};
|
|
1050
1050
|
config?: {
|
|
1051
1051
|
kValue: number;
|
|
1052
1052
|
basePriorScore: number;
|
|
@@ -1059,6 +1059,12 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
1059
1059
|
} | undefined;
|
|
1060
1060
|
} | undefined;
|
|
1061
1061
|
}, {
|
|
1062
|
+
changes: {
|
|
1063
|
+
additionalReviews?: number | undefined;
|
|
1064
|
+
newAverageRating?: number | undefined;
|
|
1065
|
+
additionalInteractions?: number | undefined;
|
|
1066
|
+
additionalSuccessfulInteractions?: number | undefined;
|
|
1067
|
+
};
|
|
1062
1068
|
current: {
|
|
1063
1069
|
did: string;
|
|
1064
1070
|
issues?: {
|
|
@@ -1090,12 +1096,6 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
1090
1096
|
negativeReviews?: number | undefined;
|
|
1091
1097
|
} | undefined;
|
|
1092
1098
|
};
|
|
1093
|
-
changes: {
|
|
1094
|
-
additionalReviews?: number | undefined;
|
|
1095
|
-
newAverageRating?: number | undefined;
|
|
1096
|
-
additionalInteractions?: number | undefined;
|
|
1097
|
-
additionalSuccessfulInteractions?: number | undefined;
|
|
1098
|
-
};
|
|
1099
1099
|
config?: {
|
|
1100
1100
|
kValue?: number | undefined;
|
|
1101
1101
|
preset?: "Testing" | "Conservative" | "Aggressive" | undefined;
|
|
@@ -1177,8 +1177,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1177
1177
|
agentDid: z.ZodString;
|
|
1178
1178
|
}, "strip", z.ZodTypeAny, {
|
|
1179
1179
|
agentDid: string;
|
|
1180
|
-
score: number;
|
|
1181
1180
|
confidence: number;
|
|
1181
|
+
score: number;
|
|
1182
1182
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1183
1183
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1184
1184
|
components: {
|
|
@@ -1198,8 +1198,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1198
1198
|
} | undefined;
|
|
1199
1199
|
}, {
|
|
1200
1200
|
agentDid: string;
|
|
1201
|
-
score: number;
|
|
1202
1201
|
confidence: number;
|
|
1202
|
+
score: number;
|
|
1203
1203
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1204
1204
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1205
1205
|
components: {
|
|
@@ -1282,8 +1282,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1282
1282
|
agentDid: z.ZodString;
|
|
1283
1283
|
}, "strip", z.ZodTypeAny, {
|
|
1284
1284
|
agentDid: string;
|
|
1285
|
-
score: number;
|
|
1286
1285
|
confidence: number;
|
|
1286
|
+
score: number;
|
|
1287
1287
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1288
1288
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1289
1289
|
components: {
|
|
@@ -1303,8 +1303,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1303
1303
|
} | undefined;
|
|
1304
1304
|
}, {
|
|
1305
1305
|
agentDid: string;
|
|
1306
|
-
score: number;
|
|
1307
1306
|
confidence: number;
|
|
1307
|
+
score: number;
|
|
1308
1308
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1309
1309
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1310
1310
|
components: {
|
|
@@ -1330,8 +1330,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1330
1330
|
}, "strip", z.ZodTypeAny, {
|
|
1331
1331
|
currentScore: {
|
|
1332
1332
|
agentDid: string;
|
|
1333
|
-
score: number;
|
|
1334
1333
|
confidence: number;
|
|
1334
|
+
score: number;
|
|
1335
1335
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1336
1336
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1337
1337
|
components: {
|
|
@@ -1352,8 +1352,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1352
1352
|
};
|
|
1353
1353
|
predictedScore: {
|
|
1354
1354
|
agentDid: string;
|
|
1355
|
-
score: number;
|
|
1356
1355
|
confidence: number;
|
|
1356
|
+
score: number;
|
|
1357
1357
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1358
1358
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1359
1359
|
components: {
|
|
@@ -1377,8 +1377,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1377
1377
|
}, {
|
|
1378
1378
|
currentScore: {
|
|
1379
1379
|
agentDid: string;
|
|
1380
|
-
score: number;
|
|
1381
1380
|
confidence: number;
|
|
1381
|
+
score: number;
|
|
1382
1382
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1383
1383
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1384
1384
|
components: {
|
|
@@ -1399,8 +1399,8 @@ export declare const ScoreChangePredictionResponseSchema: z.ZodObject<{
|
|
|
1399
1399
|
};
|
|
1400
1400
|
predictedScore: {
|
|
1401
1401
|
agentDid: string;
|
|
1402
|
-
score: number;
|
|
1403
1402
|
confidence: number;
|
|
1403
|
+
score: number;
|
|
1404
1404
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1405
1405
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1406
1406
|
components: {
|
|
@@ -1498,8 +1498,8 @@ export declare function validateAgentData(data: unknown): z.SafeParseReturnType<
|
|
|
1498
1498
|
*/
|
|
1499
1499
|
export declare function validateReputationScore(score: unknown): z.SafeParseReturnType<{
|
|
1500
1500
|
agentDid: string;
|
|
1501
|
-
score: number;
|
|
1502
1501
|
confidence: number;
|
|
1502
|
+
score: number;
|
|
1503
1503
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1504
1504
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1505
1505
|
components: {
|
|
@@ -1519,8 +1519,8 @@ export declare function validateReputationScore(score: unknown): z.SafeParseRetu
|
|
|
1519
1519
|
} | undefined;
|
|
1520
1520
|
}, {
|
|
1521
1521
|
agentDid: string;
|
|
1522
|
-
score: number;
|
|
1523
1522
|
confidence: number;
|
|
1523
|
+
score: number;
|
|
1524
1524
|
confidenceLevel: "Low" | "Medium" | "High" | "VeryHigh";
|
|
1525
1525
|
level: "Unknown" | "Poor" | "BelowAverage" | "Average" | "Good" | "Excellent" | "Outstanding";
|
|
1526
1526
|
components: {
|