@kya-os/contracts 1.7.12 → 1.7.13
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 +149 -149
- package/dist/agentshield-api/schemas.js +1 -1
- package/dist/agentshield-api/types.d.ts +1 -1
- package/dist/audit/index.d.ts +6 -6
- package/dist/cli.d.ts +5 -5
- package/dist/consent/schemas.d.ts +28 -28
- package/dist/dashboard-config/schemas.d.ts +1584 -1584
- package/dist/delegation/schemas.d.ts +24 -24
- package/dist/deploy/schemas.d.ts +2 -2
- package/dist/handshake.d.ts +29 -29
- package/dist/proof/proof-record.d.ts +12 -12
- package/dist/proof/signing-spec.d.ts +4 -4
- package/dist/proof.d.ts +24 -24
- package/dist/reputation/api.d.ts +18 -18
- package/dist/reputation/schemas.d.ts +10 -10
- package/dist/tool-protection/index.d.ts +4 -4
- package/dist/verifier.d.ts +6 -6
- package/dist/well-known/index.d.ts +18 -18
- package/package.json +1 -1
package/dist/proof.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ export declare const ProofMetaSchema: z.ZodObject<{
|
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
did: string;
|
|
26
26
|
kid: string;
|
|
27
|
+
sessionId: string;
|
|
27
28
|
nonce: string;
|
|
28
29
|
audience: string;
|
|
29
|
-
sessionId: string;
|
|
30
30
|
ts: number;
|
|
31
31
|
requestHash: string;
|
|
32
32
|
responseHash: string;
|
|
@@ -36,9 +36,9 @@ export declare const ProofMetaSchema: z.ZodObject<{
|
|
|
36
36
|
}, {
|
|
37
37
|
did: string;
|
|
38
38
|
kid: string;
|
|
39
|
+
sessionId: string;
|
|
39
40
|
nonce: string;
|
|
40
41
|
audience: string;
|
|
41
|
-
sessionId: string;
|
|
42
42
|
ts: number;
|
|
43
43
|
requestHash: string;
|
|
44
44
|
responseHash: string;
|
|
@@ -63,9 +63,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
|
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
did: string;
|
|
65
65
|
kid: string;
|
|
66
|
+
sessionId: string;
|
|
66
67
|
nonce: string;
|
|
67
68
|
audience: string;
|
|
68
|
-
sessionId: string;
|
|
69
69
|
ts: number;
|
|
70
70
|
requestHash: string;
|
|
71
71
|
responseHash: string;
|
|
@@ -75,9 +75,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
|
|
|
75
75
|
}, {
|
|
76
76
|
did: string;
|
|
77
77
|
kid: string;
|
|
78
|
+
sessionId: string;
|
|
78
79
|
nonce: string;
|
|
79
80
|
audience: string;
|
|
80
|
-
sessionId: string;
|
|
81
81
|
ts: number;
|
|
82
82
|
requestHash: string;
|
|
83
83
|
responseHash: string;
|
|
@@ -90,9 +90,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
|
|
|
90
90
|
meta: {
|
|
91
91
|
did: string;
|
|
92
92
|
kid: string;
|
|
93
|
+
sessionId: string;
|
|
93
94
|
nonce: string;
|
|
94
95
|
audience: string;
|
|
95
|
-
sessionId: string;
|
|
96
96
|
ts: number;
|
|
97
97
|
requestHash: string;
|
|
98
98
|
responseHash: string;
|
|
@@ -105,9 +105,9 @@ export declare const DetachedProofSchema: z.ZodObject<{
|
|
|
105
105
|
meta: {
|
|
106
106
|
did: string;
|
|
107
107
|
kid: string;
|
|
108
|
+
sessionId: string;
|
|
108
109
|
nonce: string;
|
|
109
110
|
audience: string;
|
|
110
|
-
sessionId: string;
|
|
111
111
|
ts: number;
|
|
112
112
|
requestHash: string;
|
|
113
113
|
responseHash: string;
|
|
@@ -178,14 +178,14 @@ export declare const ToolCallContextSchema: z.ZodObject<{
|
|
|
178
178
|
scopeId: z.ZodString;
|
|
179
179
|
userId: z.ZodOptional<z.ZodString>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
scopeId: string;
|
|
182
181
|
tool: string;
|
|
182
|
+
scopeId: string;
|
|
183
183
|
args: Record<string, unknown>;
|
|
184
184
|
userId?: string | undefined;
|
|
185
185
|
result?: unknown;
|
|
186
186
|
}, {
|
|
187
|
-
scopeId: string;
|
|
188
187
|
tool: string;
|
|
188
|
+
scopeId: string;
|
|
189
189
|
args: Record<string, unknown>;
|
|
190
190
|
userId?: string | undefined;
|
|
191
191
|
result?: unknown;
|
|
@@ -202,14 +202,14 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
|
|
|
202
202
|
scopeId: z.ZodString;
|
|
203
203
|
userId: z.ZodOptional<z.ZodString>;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
scopeId: string;
|
|
206
205
|
tool: string;
|
|
206
|
+
scopeId: string;
|
|
207
207
|
args: Record<string, unknown>;
|
|
208
208
|
userId?: string | undefined;
|
|
209
209
|
result?: unknown;
|
|
210
210
|
}, {
|
|
211
|
-
scopeId: string;
|
|
212
211
|
tool: string;
|
|
212
|
+
scopeId: string;
|
|
213
213
|
args: Record<string, unknown>;
|
|
214
214
|
userId?: string | undefined;
|
|
215
215
|
result?: unknown;
|
|
@@ -217,8 +217,8 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
|
|
|
217
217
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
219
|
toolCalls: {
|
|
220
|
-
scopeId: string;
|
|
221
220
|
tool: string;
|
|
221
|
+
scopeId: string;
|
|
222
222
|
args: Record<string, unknown>;
|
|
223
223
|
userId?: string | undefined;
|
|
224
224
|
result?: unknown;
|
|
@@ -226,8 +226,8 @@ export declare const ProofSubmissionContextSchema: z.ZodObject<{
|
|
|
226
226
|
mcpServerUrl?: string | undefined;
|
|
227
227
|
}, {
|
|
228
228
|
toolCalls: {
|
|
229
|
-
scopeId: string;
|
|
230
229
|
tool: string;
|
|
230
|
+
scopeId: string;
|
|
231
231
|
args: Record<string, unknown>;
|
|
232
232
|
userId?: string | undefined;
|
|
233
233
|
result?: unknown;
|
|
@@ -257,9 +257,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
did: string;
|
|
259
259
|
kid: string;
|
|
260
|
+
sessionId: string;
|
|
260
261
|
nonce: string;
|
|
261
262
|
audience: string;
|
|
262
|
-
sessionId: string;
|
|
263
263
|
ts: number;
|
|
264
264
|
requestHash: string;
|
|
265
265
|
responseHash: string;
|
|
@@ -269,9 +269,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
269
269
|
}, {
|
|
270
270
|
did: string;
|
|
271
271
|
kid: string;
|
|
272
|
+
sessionId: string;
|
|
272
273
|
nonce: string;
|
|
273
274
|
audience: string;
|
|
274
|
-
sessionId: string;
|
|
275
275
|
ts: number;
|
|
276
276
|
requestHash: string;
|
|
277
277
|
responseHash: string;
|
|
@@ -284,9 +284,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
284
284
|
meta: {
|
|
285
285
|
did: string;
|
|
286
286
|
kid: string;
|
|
287
|
+
sessionId: string;
|
|
287
288
|
nonce: string;
|
|
288
289
|
audience: string;
|
|
289
|
-
sessionId: string;
|
|
290
290
|
ts: number;
|
|
291
291
|
requestHash: string;
|
|
292
292
|
responseHash: string;
|
|
@@ -299,9 +299,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
299
299
|
meta: {
|
|
300
300
|
did: string;
|
|
301
301
|
kid: string;
|
|
302
|
+
sessionId: string;
|
|
302
303
|
nonce: string;
|
|
303
304
|
audience: string;
|
|
304
|
-
sessionId: string;
|
|
305
305
|
ts: number;
|
|
306
306
|
requestHash: string;
|
|
307
307
|
responseHash: string;
|
|
@@ -318,14 +318,14 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
318
318
|
scopeId: z.ZodString;
|
|
319
319
|
userId: z.ZodOptional<z.ZodString>;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
scopeId: string;
|
|
322
321
|
tool: string;
|
|
322
|
+
scopeId: string;
|
|
323
323
|
args: Record<string, unknown>;
|
|
324
324
|
userId?: string | undefined;
|
|
325
325
|
result?: unknown;
|
|
326
326
|
}, {
|
|
327
|
-
scopeId: string;
|
|
328
327
|
tool: string;
|
|
328
|
+
scopeId: string;
|
|
329
329
|
args: Record<string, unknown>;
|
|
330
330
|
userId?: string | undefined;
|
|
331
331
|
result?: unknown;
|
|
@@ -333,8 +333,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
333
333
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
335
|
toolCalls: {
|
|
336
|
-
scopeId: string;
|
|
337
336
|
tool: string;
|
|
337
|
+
scopeId: string;
|
|
338
338
|
args: Record<string, unknown>;
|
|
339
339
|
userId?: string | undefined;
|
|
340
340
|
result?: unknown;
|
|
@@ -342,8 +342,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
342
342
|
mcpServerUrl?: string | undefined;
|
|
343
343
|
}, {
|
|
344
344
|
toolCalls: {
|
|
345
|
-
scopeId: string;
|
|
346
345
|
tool: string;
|
|
346
|
+
scopeId: string;
|
|
347
347
|
args: Record<string, unknown>;
|
|
348
348
|
userId?: string | undefined;
|
|
349
349
|
result?: unknown;
|
|
@@ -357,9 +357,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
357
357
|
meta: {
|
|
358
358
|
did: string;
|
|
359
359
|
kid: string;
|
|
360
|
+
sessionId: string;
|
|
360
361
|
nonce: string;
|
|
361
362
|
audience: string;
|
|
362
|
-
sessionId: string;
|
|
363
363
|
ts: number;
|
|
364
364
|
requestHash: string;
|
|
365
365
|
responseHash: string;
|
|
@@ -371,8 +371,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
371
371
|
delegation_id?: string | null | undefined;
|
|
372
372
|
context?: {
|
|
373
373
|
toolCalls: {
|
|
374
|
-
scopeId: string;
|
|
375
374
|
tool: string;
|
|
375
|
+
scopeId: string;
|
|
376
376
|
args: Record<string, unknown>;
|
|
377
377
|
userId?: string | undefined;
|
|
378
378
|
result?: unknown;
|
|
@@ -386,9 +386,9 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
386
386
|
meta: {
|
|
387
387
|
did: string;
|
|
388
388
|
kid: string;
|
|
389
|
+
sessionId: string;
|
|
389
390
|
nonce: string;
|
|
390
391
|
audience: string;
|
|
391
|
-
sessionId: string;
|
|
392
392
|
ts: number;
|
|
393
393
|
requestHash: string;
|
|
394
394
|
responseHash: string;
|
|
@@ -400,8 +400,8 @@ export declare const ProofSubmissionRequestSchema: z.ZodObject<{
|
|
|
400
400
|
delegation_id?: string | null | undefined;
|
|
401
401
|
context?: {
|
|
402
402
|
toolCalls: {
|
|
403
|
-
scopeId: string;
|
|
404
403
|
tool: string;
|
|
404
|
+
scopeId: string;
|
|
405
405
|
args: Record<string, unknown>;
|
|
406
406
|
userId?: string | undefined;
|
|
407
407
|
result?: unknown;
|
package/dist/reputation/api.d.ts
CHANGED
|
@@ -120,8 +120,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
|
|
|
120
120
|
negativeReviews: number;
|
|
121
121
|
averageRating?: number | undefined;
|
|
122
122
|
};
|
|
123
|
-
metadata?: Record<string, unknown> | undefined;
|
|
124
123
|
createdAt?: string | undefined;
|
|
124
|
+
metadata?: Record<string, unknown> | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
did: string;
|
|
127
127
|
issues?: {
|
|
@@ -129,8 +129,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
|
|
|
129
129
|
disputesLost?: number | undefined;
|
|
130
130
|
abuseReportsVerified?: number | undefined;
|
|
131
131
|
} | undefined;
|
|
132
|
-
metadata?: Record<string, unknown> | undefined;
|
|
133
132
|
createdAt?: string | undefined;
|
|
133
|
+
metadata?: Record<string, unknown> | undefined;
|
|
134
134
|
mcpLevel?: number | undefined;
|
|
135
135
|
credentials?: {
|
|
136
136
|
identityVerified?: boolean | undefined;
|
|
@@ -230,8 +230,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
|
|
|
230
230
|
negativeReviews: number;
|
|
231
231
|
averageRating?: number | undefined;
|
|
232
232
|
};
|
|
233
|
-
metadata?: Record<string, unknown> | undefined;
|
|
234
233
|
createdAt?: string | undefined;
|
|
234
|
+
metadata?: Record<string, unknown> | undefined;
|
|
235
235
|
};
|
|
236
236
|
config?: {
|
|
237
237
|
kValue: number;
|
|
@@ -252,8 +252,8 @@ export declare const CalculateReputationRequestSchema: z.ZodObject<{
|
|
|
252
252
|
disputesLost?: number | undefined;
|
|
253
253
|
abuseReportsVerified?: number | undefined;
|
|
254
254
|
} | undefined;
|
|
255
|
-
metadata?: Record<string, unknown> | undefined;
|
|
256
255
|
createdAt?: string | undefined;
|
|
256
|
+
metadata?: Record<string, unknown> | undefined;
|
|
257
257
|
mcpLevel?: number | undefined;
|
|
258
258
|
credentials?: {
|
|
259
259
|
identityVerified?: boolean | undefined;
|
|
@@ -568,8 +568,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
|
|
|
568
568
|
negativeReviews: number;
|
|
569
569
|
averageRating?: number | undefined;
|
|
570
570
|
};
|
|
571
|
-
metadata?: Record<string, unknown> | undefined;
|
|
572
571
|
createdAt?: string | undefined;
|
|
572
|
+
metadata?: Record<string, unknown> | undefined;
|
|
573
573
|
}, {
|
|
574
574
|
did: string;
|
|
575
575
|
issues?: {
|
|
@@ -577,8 +577,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
|
|
|
577
577
|
disputesLost?: number | undefined;
|
|
578
578
|
abuseReportsVerified?: number | undefined;
|
|
579
579
|
} | undefined;
|
|
580
|
-
metadata?: Record<string, unknown> | undefined;
|
|
581
580
|
createdAt?: string | undefined;
|
|
581
|
+
metadata?: Record<string, unknown> | undefined;
|
|
582
582
|
mcpLevel?: number | undefined;
|
|
583
583
|
credentials?: {
|
|
584
584
|
identityVerified?: boolean | undefined;
|
|
@@ -678,8 +678,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
|
|
|
678
678
|
negativeReviews: number;
|
|
679
679
|
averageRating?: number | undefined;
|
|
680
680
|
};
|
|
681
|
-
metadata?: Record<string, unknown> | undefined;
|
|
682
681
|
createdAt?: string | undefined;
|
|
682
|
+
metadata?: Record<string, unknown> | undefined;
|
|
683
683
|
}[];
|
|
684
684
|
config?: {
|
|
685
685
|
kValue: number;
|
|
@@ -700,8 +700,8 @@ export declare const BatchCalculateRequestSchema: z.ZodObject<{
|
|
|
700
700
|
disputesLost?: number | undefined;
|
|
701
701
|
abuseReportsVerified?: number | undefined;
|
|
702
702
|
} | undefined;
|
|
703
|
-
metadata?: Record<string, unknown> | undefined;
|
|
704
703
|
createdAt?: string | undefined;
|
|
704
|
+
metadata?: Record<string, unknown> | undefined;
|
|
705
705
|
mcpLevel?: number | undefined;
|
|
706
706
|
credentials?: {
|
|
707
707
|
identityVerified?: boolean | undefined;
|
|
@@ -1333,8 +1333,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
|
|
|
1333
1333
|
negativeReviews: number;
|
|
1334
1334
|
averageRating?: number | undefined;
|
|
1335
1335
|
};
|
|
1336
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1337
1336
|
createdAt?: string | undefined;
|
|
1337
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1338
1338
|
}, {
|
|
1339
1339
|
did: string;
|
|
1340
1340
|
issues?: {
|
|
@@ -1342,8 +1342,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
|
|
|
1342
1342
|
disputesLost?: number | undefined;
|
|
1343
1343
|
abuseReportsVerified?: number | undefined;
|
|
1344
1344
|
} | undefined;
|
|
1345
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1346
1345
|
createdAt?: string | undefined;
|
|
1346
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1347
1347
|
mcpLevel?: number | undefined;
|
|
1348
1348
|
credentials?: {
|
|
1349
1349
|
identityVerified?: boolean | undefined;
|
|
@@ -1464,8 +1464,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
|
|
|
1464
1464
|
negativeReviews: number;
|
|
1465
1465
|
averageRating?: number | undefined;
|
|
1466
1466
|
};
|
|
1467
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1468
1467
|
createdAt?: string | undefined;
|
|
1468
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1469
1469
|
};
|
|
1470
1470
|
config?: {
|
|
1471
1471
|
kValue: number;
|
|
@@ -1492,8 +1492,8 @@ export declare const PredictScoreChangeRequestSchema: z.ZodObject<{
|
|
|
1492
1492
|
disputesLost?: number | undefined;
|
|
1493
1493
|
abuseReportsVerified?: number | undefined;
|
|
1494
1494
|
} | undefined;
|
|
1495
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1496
1495
|
createdAt?: string | undefined;
|
|
1496
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1497
1497
|
mcpLevel?: number | undefined;
|
|
1498
1498
|
credentials?: {
|
|
1499
1499
|
identityVerified?: boolean | undefined;
|
|
@@ -2203,8 +2203,8 @@ export declare function validateCalculateRequest(data: unknown): z.SafeParseRetu
|
|
|
2203
2203
|
disputesLost?: number | undefined;
|
|
2204
2204
|
abuseReportsVerified?: number | undefined;
|
|
2205
2205
|
} | undefined;
|
|
2206
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2207
2206
|
createdAt?: string | undefined;
|
|
2207
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2208
2208
|
mcpLevel?: number | undefined;
|
|
2209
2209
|
credentials?: {
|
|
2210
2210
|
identityVerified?: boolean | undefined;
|
|
@@ -2267,8 +2267,8 @@ export declare function validateCalculateRequest(data: unknown): z.SafeParseRetu
|
|
|
2267
2267
|
negativeReviews: number;
|
|
2268
2268
|
averageRating?: number | undefined;
|
|
2269
2269
|
};
|
|
2270
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2271
2270
|
createdAt?: string | undefined;
|
|
2271
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2272
2272
|
};
|
|
2273
2273
|
config?: {
|
|
2274
2274
|
kValue: number;
|
|
@@ -2293,8 +2293,8 @@ export declare function validateBatchCalculateRequest(data: unknown): z.SafePars
|
|
|
2293
2293
|
disputesLost?: number | undefined;
|
|
2294
2294
|
abuseReportsVerified?: number | undefined;
|
|
2295
2295
|
} | undefined;
|
|
2296
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2297
2296
|
createdAt?: string | undefined;
|
|
2297
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2298
2298
|
mcpLevel?: number | undefined;
|
|
2299
2299
|
credentials?: {
|
|
2300
2300
|
identityVerified?: boolean | undefined;
|
|
@@ -2357,8 +2357,8 @@ export declare function validateBatchCalculateRequest(data: unknown): z.SafePars
|
|
|
2357
2357
|
negativeReviews: number;
|
|
2358
2358
|
averageRating?: number | undefined;
|
|
2359
2359
|
};
|
|
2360
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2361
2360
|
createdAt?: string | undefined;
|
|
2361
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2362
2362
|
}[];
|
|
2363
2363
|
config?: {
|
|
2364
2364
|
kValue: number;
|
|
@@ -2389,8 +2389,8 @@ export declare function validatePredictRequest(data: unknown): z.SafeParseReturn
|
|
|
2389
2389
|
disputesLost?: number | undefined;
|
|
2390
2390
|
abuseReportsVerified?: number | undefined;
|
|
2391
2391
|
} | undefined;
|
|
2392
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2393
2392
|
createdAt?: string | undefined;
|
|
2393
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2394
2394
|
mcpLevel?: number | undefined;
|
|
2395
2395
|
credentials?: {
|
|
2396
2396
|
identityVerified?: boolean | undefined;
|
|
@@ -2459,8 +2459,8 @@ export declare function validatePredictRequest(data: unknown): z.SafeParseReturn
|
|
|
2459
2459
|
negativeReviews: number;
|
|
2460
2460
|
averageRating?: number | undefined;
|
|
2461
2461
|
};
|
|
2462
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2463
2462
|
createdAt?: string | undefined;
|
|
2463
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2464
2464
|
};
|
|
2465
2465
|
config?: {
|
|
2466
2466
|
kValue: number;
|
|
@@ -267,8 +267,8 @@ export declare const AgentDataSchema: z.ZodObject<{
|
|
|
267
267
|
negativeReviews: number;
|
|
268
268
|
averageRating?: number | undefined;
|
|
269
269
|
};
|
|
270
|
-
metadata?: Record<string, unknown> | undefined;
|
|
271
270
|
createdAt?: string | undefined;
|
|
271
|
+
metadata?: Record<string, unknown> | undefined;
|
|
272
272
|
}, {
|
|
273
273
|
did: string;
|
|
274
274
|
issues?: {
|
|
@@ -276,8 +276,8 @@ export declare const AgentDataSchema: z.ZodObject<{
|
|
|
276
276
|
disputesLost?: number | undefined;
|
|
277
277
|
abuseReportsVerified?: number | undefined;
|
|
278
278
|
} | undefined;
|
|
279
|
-
metadata?: Record<string, unknown> | undefined;
|
|
280
279
|
createdAt?: string | undefined;
|
|
280
|
+
metadata?: Record<string, unknown> | undefined;
|
|
281
281
|
mcpLevel?: number | undefined;
|
|
282
282
|
credentials?: {
|
|
283
283
|
identityVerified?: boolean | undefined;
|
|
@@ -404,8 +404,8 @@ export declare const PartialAgentDataSchema: z.ZodObject<{
|
|
|
404
404
|
disputesLost: number;
|
|
405
405
|
abuseReportsVerified: number;
|
|
406
406
|
} | undefined;
|
|
407
|
-
metadata?: Record<string, unknown> | undefined;
|
|
408
407
|
createdAt?: string | undefined;
|
|
408
|
+
metadata?: Record<string, unknown> | undefined;
|
|
409
409
|
mcpLevel?: number | undefined;
|
|
410
410
|
credentials?: {
|
|
411
411
|
identityVerified: boolean;
|
|
@@ -434,8 +434,8 @@ export declare const PartialAgentDataSchema: z.ZodObject<{
|
|
|
434
434
|
disputesLost?: number | undefined;
|
|
435
435
|
abuseReportsVerified?: number | undefined;
|
|
436
436
|
} | undefined;
|
|
437
|
-
metadata?: Record<string, unknown> | undefined;
|
|
438
437
|
createdAt?: string | undefined;
|
|
438
|
+
metadata?: Record<string, unknown> | undefined;
|
|
439
439
|
mcpLevel?: number | undefined;
|
|
440
440
|
credentials?: {
|
|
441
441
|
identityVerified?: boolean | undefined;
|
|
@@ -899,8 +899,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
899
899
|
negativeReviews: number;
|
|
900
900
|
averageRating?: number | undefined;
|
|
901
901
|
};
|
|
902
|
-
metadata?: Record<string, unknown> | undefined;
|
|
903
902
|
createdAt?: string | undefined;
|
|
903
|
+
metadata?: Record<string, unknown> | undefined;
|
|
904
904
|
}, {
|
|
905
905
|
did: string;
|
|
906
906
|
issues?: {
|
|
@@ -908,8 +908,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
908
908
|
disputesLost?: number | undefined;
|
|
909
909
|
abuseReportsVerified?: number | undefined;
|
|
910
910
|
} | undefined;
|
|
911
|
-
metadata?: Record<string, unknown> | undefined;
|
|
912
911
|
createdAt?: string | undefined;
|
|
912
|
+
metadata?: Record<string, unknown> | undefined;
|
|
913
913
|
mcpLevel?: number | undefined;
|
|
914
914
|
credentials?: {
|
|
915
915
|
identityVerified?: boolean | undefined;
|
|
@@ -1044,8 +1044,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
1044
1044
|
negativeReviews: number;
|
|
1045
1045
|
averageRating?: number | undefined;
|
|
1046
1046
|
};
|
|
1047
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1048
1047
|
createdAt?: string | undefined;
|
|
1048
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1049
1049
|
};
|
|
1050
1050
|
config?: {
|
|
1051
1051
|
kValue: number;
|
|
@@ -1072,8 +1072,8 @@ export declare const ScoreChangePredictionRequestSchema: z.ZodObject<{
|
|
|
1072
1072
|
disputesLost?: number | undefined;
|
|
1073
1073
|
abuseReportsVerified?: number | undefined;
|
|
1074
1074
|
} | undefined;
|
|
1075
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1076
1075
|
createdAt?: string | undefined;
|
|
1076
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1077
1077
|
mcpLevel?: number | undefined;
|
|
1078
1078
|
credentials?: {
|
|
1079
1079
|
identityVerified?: boolean | undefined;
|
|
@@ -1436,8 +1436,8 @@ export declare function validateAgentData(data: unknown): z.SafeParseReturnType<
|
|
|
1436
1436
|
disputesLost?: number | undefined;
|
|
1437
1437
|
abuseReportsVerified?: number | undefined;
|
|
1438
1438
|
} | undefined;
|
|
1439
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1440
1439
|
createdAt?: string | undefined;
|
|
1440
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1441
1441
|
mcpLevel?: number | undefined;
|
|
1442
1442
|
credentials?: {
|
|
1443
1443
|
identityVerified?: boolean | undefined;
|
|
@@ -1487,8 +1487,8 @@ export declare function validateAgentData(data: unknown): z.SafeParseReturnType<
|
|
|
1487
1487
|
negativeReviews: number;
|
|
1488
1488
|
averageRating?: number | undefined;
|
|
1489
1489
|
};
|
|
1490
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1491
1490
|
createdAt?: string | undefined;
|
|
1491
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1492
1492
|
}>;
|
|
1493
1493
|
/**
|
|
1494
1494
|
* Validate reputation score
|
|
@@ -702,12 +702,12 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
702
702
|
source: z.ZodOptional<z.ZodString>;
|
|
703
703
|
}, "strip", z.ZodTypeAny, {
|
|
704
704
|
version?: string | undefined;
|
|
705
|
-
lastUpdated?: string | undefined;
|
|
706
705
|
source?: string | undefined;
|
|
706
|
+
lastUpdated?: string | undefined;
|
|
707
707
|
}, {
|
|
708
708
|
version?: string | undefined;
|
|
709
|
-
lastUpdated?: string | undefined;
|
|
710
709
|
source?: string | undefined;
|
|
710
|
+
lastUpdated?: string | undefined;
|
|
711
711
|
}>>;
|
|
712
712
|
}, "strip", z.ZodTypeAny, {
|
|
713
713
|
toolProtections: Record<string, {
|
|
@@ -744,8 +744,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
744
744
|
}>;
|
|
745
745
|
metadata?: {
|
|
746
746
|
version?: string | undefined;
|
|
747
|
-
lastUpdated?: string | undefined;
|
|
748
747
|
source?: string | undefined;
|
|
748
|
+
lastUpdated?: string | undefined;
|
|
749
749
|
} | undefined;
|
|
750
750
|
}, {
|
|
751
751
|
toolProtections: Record<string, {
|
|
@@ -782,8 +782,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
782
782
|
}>;
|
|
783
783
|
metadata?: {
|
|
784
784
|
version?: string | undefined;
|
|
785
|
-
lastUpdated?: string | undefined;
|
|
786
785
|
source?: string | undefined;
|
|
786
|
+
lastUpdated?: string | undefined;
|
|
787
787
|
} | undefined;
|
|
788
788
|
}>;
|
|
789
789
|
export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
|
package/dist/verifier.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ export declare const AgentContextSchema: z.ZodObject<{
|
|
|
20
20
|
confidence: "verified";
|
|
21
21
|
registry: string;
|
|
22
22
|
verifiedAt: number;
|
|
23
|
-
delegationRef?: string | undefined;
|
|
24
23
|
subject?: string | undefined;
|
|
24
|
+
delegationRef?: string | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
did: string;
|
|
27
27
|
kid: string;
|
|
@@ -30,8 +30,8 @@ export declare const AgentContextSchema: z.ZodObject<{
|
|
|
30
30
|
registry: string;
|
|
31
31
|
verifiedAt: number;
|
|
32
32
|
scopes?: string[] | undefined;
|
|
33
|
-
delegationRef?: string | undefined;
|
|
34
33
|
subject?: string | undefined;
|
|
34
|
+
delegationRef?: string | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export declare const VerifierResultSchema: z.ZodObject<{
|
|
37
37
|
success: z.ZodBoolean;
|
|
@@ -54,8 +54,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
54
54
|
confidence: "verified";
|
|
55
55
|
registry: string;
|
|
56
56
|
verifiedAt: number;
|
|
57
|
-
delegationRef?: string | undefined;
|
|
58
57
|
subject?: string | undefined;
|
|
58
|
+
delegationRef?: string | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
did: string;
|
|
61
61
|
kid: string;
|
|
@@ -64,8 +64,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
64
64
|
registry: string;
|
|
65
65
|
verifiedAt: number;
|
|
66
66
|
scopes?: string[] | undefined;
|
|
67
|
-
delegationRef?: string | undefined;
|
|
68
67
|
subject?: string | undefined;
|
|
68
|
+
delegationRef?: string | undefined;
|
|
69
69
|
}>>;
|
|
70
70
|
error: z.ZodOptional<z.ZodObject<{
|
|
71
71
|
code: z.ZodString;
|
|
@@ -100,8 +100,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
100
100
|
confidence: "verified";
|
|
101
101
|
registry: string;
|
|
102
102
|
verifiedAt: number;
|
|
103
|
-
delegationRef?: string | undefined;
|
|
104
103
|
subject?: string | undefined;
|
|
104
|
+
delegationRef?: string | undefined;
|
|
105
105
|
} | undefined;
|
|
106
106
|
}, {
|
|
107
107
|
success: boolean;
|
|
@@ -120,8 +120,8 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
120
120
|
registry: string;
|
|
121
121
|
verifiedAt: number;
|
|
122
122
|
scopes?: string[] | undefined;
|
|
123
|
-
delegationRef?: string | undefined;
|
|
124
123
|
subject?: string | undefined;
|
|
124
|
+
delegationRef?: string | undefined;
|
|
125
125
|
} | undefined;
|
|
126
126
|
}>;
|
|
127
127
|
export declare const StructuredErrorSchema: z.ZodObject<{
|