@kya-os/contracts 1.7.7 → 1.7.9
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/audit/index.d.ts +4 -4
- package/dist/cli.d.ts +5 -5
- package/dist/consent/schemas.d.ts +120 -120
- package/dist/dashboard-config/schemas.d.ts +2298 -2298
- package/dist/delegation/schemas.d.ts +24 -24
- package/dist/deploy/schemas.d.ts +110 -110
- package/dist/handshake.d.ts +22 -22
- package/dist/reputation/api.d.ts +18 -18
- package/dist/reputation/schemas.d.ts +10 -10
- package/dist/tool-protection/index.d.ts +30 -30
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/handshake.d.ts
CHANGED
|
@@ -23,16 +23,16 @@ export declare const MCPClientInfoSchema: z.ZodObject<{
|
|
|
23
23
|
persistentId: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
name: string;
|
|
26
|
+
title?: string | undefined;
|
|
26
27
|
version?: string | undefined;
|
|
27
28
|
platform?: string | undefined;
|
|
28
|
-
title?: string | undefined;
|
|
29
29
|
vendor?: string | undefined;
|
|
30
30
|
persistentId?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
name: string;
|
|
33
|
+
title?: string | undefined;
|
|
33
34
|
version?: string | undefined;
|
|
34
35
|
platform?: string | undefined;
|
|
35
|
-
title?: string | undefined;
|
|
36
36
|
vendor?: string | undefined;
|
|
37
37
|
persistentId?: string | undefined;
|
|
38
38
|
}>;
|
|
@@ -50,9 +50,9 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
|
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
51
|
name: string;
|
|
52
52
|
clientId: string;
|
|
53
|
+
title?: string | undefined;
|
|
53
54
|
version?: string | undefined;
|
|
54
55
|
platform?: string | undefined;
|
|
55
|
-
title?: string | undefined;
|
|
56
56
|
vendor?: string | undefined;
|
|
57
57
|
persistentId?: string | undefined;
|
|
58
58
|
protocolVersion?: string | undefined;
|
|
@@ -60,9 +60,9 @@ export declare const MCPClientSessionInfoSchema: z.ZodObject<{
|
|
|
60
60
|
}, {
|
|
61
61
|
name: string;
|
|
62
62
|
clientId: string;
|
|
63
|
+
title?: string | undefined;
|
|
63
64
|
version?: string | undefined;
|
|
64
65
|
platform?: string | undefined;
|
|
65
|
-
title?: string | undefined;
|
|
66
66
|
vendor?: string | undefined;
|
|
67
67
|
persistentId?: string | undefined;
|
|
68
68
|
protocolVersion?: string | undefined;
|
|
@@ -84,17 +84,17 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
84
84
|
clientId: z.ZodOptional<z.ZodString>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
name: string;
|
|
87
|
+
title?: string | undefined;
|
|
87
88
|
version?: string | undefined;
|
|
88
89
|
platform?: string | undefined;
|
|
89
|
-
title?: string | undefined;
|
|
90
90
|
vendor?: string | undefined;
|
|
91
91
|
persistentId?: string | undefined;
|
|
92
92
|
clientId?: string | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
name: string;
|
|
95
|
+
title?: string | undefined;
|
|
95
96
|
version?: string | undefined;
|
|
96
97
|
platform?: string | undefined;
|
|
97
|
-
title?: string | undefined;
|
|
98
98
|
vendor?: string | undefined;
|
|
99
99
|
persistentId?: string | undefined;
|
|
100
100
|
clientId?: string | undefined;
|
|
@@ -102,15 +102,15 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
102
102
|
clientProtocolVersion: z.ZodOptional<z.ZodString>;
|
|
103
103
|
clientCapabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
timestamp: number;
|
|
106
105
|
nonce: string;
|
|
107
106
|
audience: string;
|
|
107
|
+
timestamp: number;
|
|
108
108
|
agentDid?: string | undefined;
|
|
109
109
|
clientInfo?: {
|
|
110
110
|
name: string;
|
|
111
|
+
title?: string | undefined;
|
|
111
112
|
version?: string | undefined;
|
|
112
113
|
platform?: string | undefined;
|
|
113
|
-
title?: string | undefined;
|
|
114
114
|
vendor?: string | undefined;
|
|
115
115
|
persistentId?: string | undefined;
|
|
116
116
|
clientId?: string | undefined;
|
|
@@ -118,15 +118,15 @@ export declare const HandshakeRequestSchema: z.ZodObject<{
|
|
|
118
118
|
clientProtocolVersion?: string | undefined;
|
|
119
119
|
clientCapabilities?: Record<string, unknown> | undefined;
|
|
120
120
|
}, {
|
|
121
|
-
timestamp: number;
|
|
122
121
|
nonce: string;
|
|
123
122
|
audience: string;
|
|
123
|
+
timestamp: number;
|
|
124
124
|
agentDid?: string | undefined;
|
|
125
125
|
clientInfo?: {
|
|
126
126
|
name: string;
|
|
127
|
+
title?: string | undefined;
|
|
127
128
|
version?: string | undefined;
|
|
128
129
|
platform?: string | undefined;
|
|
129
|
-
title?: string | undefined;
|
|
130
130
|
vendor?: string | undefined;
|
|
131
131
|
persistentId?: string | undefined;
|
|
132
132
|
clientId?: string | undefined;
|
|
@@ -160,9 +160,9 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
161
|
name: string;
|
|
162
162
|
clientId: string;
|
|
163
|
+
title?: string | undefined;
|
|
163
164
|
version?: string | undefined;
|
|
164
165
|
platform?: string | undefined;
|
|
165
|
-
title?: string | undefined;
|
|
166
166
|
vendor?: string | undefined;
|
|
167
167
|
persistentId?: string | undefined;
|
|
168
168
|
protocolVersion?: string | undefined;
|
|
@@ -170,9 +170,9 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
170
170
|
}, {
|
|
171
171
|
name: string;
|
|
172
172
|
clientId: string;
|
|
173
|
+
title?: string | undefined;
|
|
173
174
|
version?: string | undefined;
|
|
174
175
|
platform?: string | undefined;
|
|
175
|
-
title?: string | undefined;
|
|
176
176
|
vendor?: string | undefined;
|
|
177
177
|
persistentId?: string | undefined;
|
|
178
178
|
protocolVersion?: string | undefined;
|
|
@@ -204,27 +204,27 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
204
204
|
name?: string | undefined;
|
|
205
205
|
}>>;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
|
-
ttlMinutes: number;
|
|
208
|
-
timestamp: number;
|
|
209
207
|
nonce: string;
|
|
210
208
|
audience: string;
|
|
209
|
+
timestamp: number;
|
|
211
210
|
sessionId: string;
|
|
212
211
|
createdAt: number;
|
|
213
212
|
lastActivity: number;
|
|
213
|
+
ttlMinutes: number;
|
|
214
214
|
identityState: "anonymous" | "authenticated";
|
|
215
215
|
agentDid?: string | undefined;
|
|
216
|
-
serverDid?: string | undefined;
|
|
217
216
|
clientInfo?: {
|
|
218
217
|
name: string;
|
|
219
218
|
clientId: string;
|
|
219
|
+
title?: string | undefined;
|
|
220
220
|
version?: string | undefined;
|
|
221
221
|
platform?: string | undefined;
|
|
222
|
-
title?: string | undefined;
|
|
223
222
|
vendor?: string | undefined;
|
|
224
223
|
persistentId?: string | undefined;
|
|
225
224
|
protocolVersion?: string | undefined;
|
|
226
225
|
capabilities?: Record<string, unknown> | undefined;
|
|
227
226
|
} | undefined;
|
|
227
|
+
serverDid?: string | undefined;
|
|
228
228
|
clientDid?: string | undefined;
|
|
229
229
|
userDid?: string | undefined;
|
|
230
230
|
oauthIdentity?: {
|
|
@@ -234,26 +234,26 @@ export declare const SessionContextSchema: z.ZodObject<{
|
|
|
234
234
|
name?: string | undefined;
|
|
235
235
|
} | undefined;
|
|
236
236
|
}, {
|
|
237
|
-
timestamp: number;
|
|
238
237
|
nonce: string;
|
|
239
238
|
audience: string;
|
|
239
|
+
timestamp: number;
|
|
240
240
|
sessionId: string;
|
|
241
241
|
createdAt: number;
|
|
242
242
|
lastActivity: number;
|
|
243
243
|
agentDid?: string | undefined;
|
|
244
|
-
serverDid?: string | undefined;
|
|
245
|
-
ttlMinutes?: number | undefined;
|
|
246
244
|
clientInfo?: {
|
|
247
245
|
name: string;
|
|
248
246
|
clientId: string;
|
|
247
|
+
title?: string | undefined;
|
|
249
248
|
version?: string | undefined;
|
|
250
249
|
platform?: string | undefined;
|
|
251
|
-
title?: string | undefined;
|
|
252
250
|
vendor?: string | undefined;
|
|
253
251
|
persistentId?: string | undefined;
|
|
254
252
|
protocolVersion?: string | undefined;
|
|
255
253
|
capabilities?: Record<string, unknown> | undefined;
|
|
256
254
|
} | undefined;
|
|
255
|
+
ttlMinutes?: number | undefined;
|
|
256
|
+
serverDid?: string | undefined;
|
|
257
257
|
clientDid?: string | undefined;
|
|
258
258
|
userDid?: string | undefined;
|
|
259
259
|
identityState?: "anonymous" | "authenticated" | undefined;
|
|
@@ -346,7 +346,7 @@ export declare const NonceCacheConfigSchema: z.ZodObject<{
|
|
|
346
346
|
keyPrefix?: string | undefined;
|
|
347
347
|
}>>;
|
|
348
348
|
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
type?: "
|
|
349
|
+
type?: "memory" | "redis" | "dynamodb" | "cloudflare-kv" | undefined;
|
|
350
350
|
redis?: {
|
|
351
351
|
url: string;
|
|
352
352
|
keyPrefix: string;
|
|
@@ -362,7 +362,7 @@ export declare const NonceCacheConfigSchema: z.ZodObject<{
|
|
|
362
362
|
namespace: string;
|
|
363
363
|
} | undefined;
|
|
364
364
|
}, {
|
|
365
|
-
type?: "
|
|
365
|
+
type?: "memory" | "redis" | "dynamodb" | "cloudflare-kv" | undefined;
|
|
366
366
|
redis?: {
|
|
367
367
|
url: string;
|
|
368
368
|
keyPrefix?: string | undefined;
|
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
|
-
createdAt?: string | undefined;
|
|
124
123
|
metadata?: Record<string, unknown> | undefined;
|
|
124
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
133
132
|
metadata?: Record<string, unknown> | undefined;
|
|
133
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
234
233
|
metadata?: Record<string, unknown> | undefined;
|
|
234
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
256
255
|
metadata?: Record<string, unknown> | undefined;
|
|
256
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
572
571
|
metadata?: Record<string, unknown> | undefined;
|
|
572
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
581
580
|
metadata?: Record<string, unknown> | undefined;
|
|
581
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
682
681
|
metadata?: Record<string, unknown> | undefined;
|
|
682
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
704
703
|
metadata?: Record<string, unknown> | undefined;
|
|
704
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1337
1336
|
metadata?: Record<string, unknown> | undefined;
|
|
1337
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1346
1345
|
metadata?: Record<string, unknown> | undefined;
|
|
1346
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1468
1467
|
metadata?: Record<string, unknown> | undefined;
|
|
1468
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1496
1495
|
metadata?: Record<string, unknown> | undefined;
|
|
1496
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
2207
2206
|
metadata?: Record<string, unknown> | undefined;
|
|
2207
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
2271
2270
|
metadata?: Record<string, unknown> | undefined;
|
|
2271
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
2297
2296
|
metadata?: Record<string, unknown> | undefined;
|
|
2297
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
2361
2360
|
metadata?: Record<string, unknown> | undefined;
|
|
2361
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
2393
2392
|
metadata?: Record<string, unknown> | undefined;
|
|
2393
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
2463
2462
|
metadata?: Record<string, unknown> | undefined;
|
|
2463
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
271
270
|
metadata?: Record<string, unknown> | undefined;
|
|
271
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
280
279
|
metadata?: Record<string, unknown> | undefined;
|
|
280
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
408
407
|
metadata?: Record<string, unknown> | undefined;
|
|
408
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
438
437
|
metadata?: Record<string, unknown> | undefined;
|
|
438
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
903
902
|
metadata?: Record<string, unknown> | undefined;
|
|
903
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
912
911
|
metadata?: Record<string, unknown> | undefined;
|
|
912
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1048
1047
|
metadata?: Record<string, unknown> | undefined;
|
|
1048
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1076
1075
|
metadata?: Record<string, unknown> | undefined;
|
|
1076
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1440
1439
|
metadata?: Record<string, unknown> | undefined;
|
|
1440
|
+
createdAt?: string | 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
|
-
createdAt?: string | undefined;
|
|
1491
1490
|
metadata?: Record<string, unknown> | undefined;
|
|
1491
|
+
createdAt?: string | undefined;
|
|
1492
1492
|
}>;
|
|
1493
1493
|
/**
|
|
1494
1494
|
* Validate reputation score
|
|
@@ -345,10 +345,8 @@ export declare const ToolProtectionSchema: z.ZodObject<{
|
|
|
345
345
|
type: "none";
|
|
346
346
|
}>]>>;
|
|
347
347
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
-
requiredScopes: string[];
|
|
349
348
|
requiresDelegation: boolean;
|
|
350
|
-
|
|
351
|
-
oauthProvider?: string | undefined;
|
|
349
|
+
requiredScopes: string[];
|
|
352
350
|
authorization?: {
|
|
353
351
|
type: "oauth";
|
|
354
352
|
provider: string;
|
|
@@ -375,11 +373,11 @@ export declare const ToolProtectionSchema: z.ZodObject<{
|
|
|
375
373
|
} | {
|
|
376
374
|
type: "none";
|
|
377
375
|
} | undefined;
|
|
378
|
-
}, {
|
|
379
|
-
requiredScopes: string[];
|
|
380
|
-
requiresDelegation: boolean;
|
|
381
376
|
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
382
377
|
oauthProvider?: string | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
requiresDelegation: boolean;
|
|
380
|
+
requiredScopes: string[];
|
|
383
381
|
authorization?: {
|
|
384
382
|
type: "oauth";
|
|
385
383
|
provider: string;
|
|
@@ -406,6 +404,8 @@ export declare const ToolProtectionSchema: z.ZodObject<{
|
|
|
406
404
|
} | {
|
|
407
405
|
type: "none";
|
|
408
406
|
} | undefined;
|
|
407
|
+
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
408
|
+
oauthProvider?: string | undefined;
|
|
409
409
|
}>;
|
|
410
410
|
export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
411
411
|
requiresDelegation: z.ZodBoolean;
|
|
@@ -489,10 +489,8 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
|
|
|
489
489
|
type: "none";
|
|
490
490
|
}>]>>;
|
|
491
491
|
}, "strip", z.ZodTypeAny, {
|
|
492
|
-
requiredScopes: string[];
|
|
493
492
|
requiresDelegation: boolean;
|
|
494
|
-
|
|
495
|
-
oauthProvider?: string | undefined;
|
|
493
|
+
requiredScopes: string[];
|
|
496
494
|
authorization?: {
|
|
497
495
|
type: "oauth";
|
|
498
496
|
provider: string;
|
|
@@ -519,11 +517,11 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
|
|
|
519
517
|
} | {
|
|
520
518
|
type: "none";
|
|
521
519
|
} | undefined;
|
|
522
|
-
}, {
|
|
523
|
-
requiredScopes: string[];
|
|
524
|
-
requiresDelegation: boolean;
|
|
525
520
|
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
526
521
|
oauthProvider?: string | undefined;
|
|
522
|
+
}, {
|
|
523
|
+
requiresDelegation: boolean;
|
|
524
|
+
requiredScopes: string[];
|
|
527
525
|
authorization?: {
|
|
528
526
|
type: "oauth";
|
|
529
527
|
provider: string;
|
|
@@ -550,6 +548,8 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
|
|
|
550
548
|
} | {
|
|
551
549
|
type: "none";
|
|
552
550
|
} | undefined;
|
|
551
|
+
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
552
|
+
oauthProvider?: string | undefined;
|
|
553
553
|
}>>;
|
|
554
554
|
export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
555
555
|
toolProtections: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -634,10 +634,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
634
634
|
type: "none";
|
|
635
635
|
}>]>>;
|
|
636
636
|
}, "strip", z.ZodTypeAny, {
|
|
637
|
-
requiredScopes: string[];
|
|
638
637
|
requiresDelegation: boolean;
|
|
639
|
-
|
|
640
|
-
oauthProvider?: string | undefined;
|
|
638
|
+
requiredScopes: string[];
|
|
641
639
|
authorization?: {
|
|
642
640
|
type: "oauth";
|
|
643
641
|
provider: string;
|
|
@@ -664,11 +662,11 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
664
662
|
} | {
|
|
665
663
|
type: "none";
|
|
666
664
|
} | undefined;
|
|
667
|
-
}, {
|
|
668
|
-
requiredScopes: string[];
|
|
669
|
-
requiresDelegation: boolean;
|
|
670
665
|
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
671
666
|
oauthProvider?: string | undefined;
|
|
667
|
+
}, {
|
|
668
|
+
requiresDelegation: boolean;
|
|
669
|
+
requiredScopes: string[];
|
|
672
670
|
authorization?: {
|
|
673
671
|
type: "oauth";
|
|
674
672
|
provider: string;
|
|
@@ -695,26 +693,26 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
695
693
|
} | {
|
|
696
694
|
type: "none";
|
|
697
695
|
} | undefined;
|
|
696
|
+
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
697
|
+
oauthProvider?: string | undefined;
|
|
698
698
|
}>>;
|
|
699
699
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
700
700
|
lastUpdated: z.ZodOptional<z.ZodString>;
|
|
701
701
|
version: z.ZodOptional<z.ZodString>;
|
|
702
702
|
source: z.ZodOptional<z.ZodString>;
|
|
703
703
|
}, "strip", z.ZodTypeAny, {
|
|
704
|
-
lastUpdated?: string | undefined;
|
|
705
704
|
version?: string | undefined;
|
|
705
|
+
lastUpdated?: string | undefined;
|
|
706
706
|
source?: string | undefined;
|
|
707
707
|
}, {
|
|
708
|
-
lastUpdated?: string | undefined;
|
|
709
708
|
version?: string | undefined;
|
|
709
|
+
lastUpdated?: string | undefined;
|
|
710
710
|
source?: string | undefined;
|
|
711
711
|
}>>;
|
|
712
712
|
}, "strip", z.ZodTypeAny, {
|
|
713
713
|
toolProtections: Record<string, {
|
|
714
|
-
requiredScopes: string[];
|
|
715
714
|
requiresDelegation: boolean;
|
|
716
|
-
|
|
717
|
-
oauthProvider?: string | undefined;
|
|
715
|
+
requiredScopes: string[];
|
|
718
716
|
authorization?: {
|
|
719
717
|
type: "oauth";
|
|
720
718
|
provider: string;
|
|
@@ -741,18 +739,18 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
741
739
|
} | {
|
|
742
740
|
type: "none";
|
|
743
741
|
} | undefined;
|
|
742
|
+
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
743
|
+
oauthProvider?: string | undefined;
|
|
744
744
|
}>;
|
|
745
745
|
metadata?: {
|
|
746
|
-
lastUpdated?: string | undefined;
|
|
747
746
|
version?: string | undefined;
|
|
747
|
+
lastUpdated?: string | undefined;
|
|
748
748
|
source?: string | undefined;
|
|
749
749
|
} | undefined;
|
|
750
750
|
}, {
|
|
751
751
|
toolProtections: Record<string, {
|
|
752
|
-
requiredScopes: string[];
|
|
753
752
|
requiresDelegation: boolean;
|
|
754
|
-
|
|
755
|
-
oauthProvider?: string | undefined;
|
|
753
|
+
requiredScopes: string[];
|
|
756
754
|
authorization?: {
|
|
757
755
|
type: "oauth";
|
|
758
756
|
provider: string;
|
|
@@ -779,10 +777,12 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
779
777
|
} | {
|
|
780
778
|
type: "none";
|
|
781
779
|
} | undefined;
|
|
780
|
+
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
781
|
+
oauthProvider?: string | undefined;
|
|
782
782
|
}>;
|
|
783
783
|
metadata?: {
|
|
784
|
-
lastUpdated?: string | undefined;
|
|
785
784
|
version?: string | undefined;
|
|
785
|
+
lastUpdated?: string | undefined;
|
|
786
786
|
source?: string | undefined;
|
|
787
787
|
} | undefined;
|
|
788
788
|
}>;
|
|
@@ -795,15 +795,15 @@ export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
|
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
requiredScopes: string[];
|
|
797
797
|
toolName: string;
|
|
798
|
-
consentUrl?: string | undefined;
|
|
799
798
|
authorizationUrl?: string | undefined;
|
|
800
799
|
reason?: string | undefined;
|
|
800
|
+
consentUrl?: string | undefined;
|
|
801
801
|
}, {
|
|
802
802
|
requiredScopes: string[];
|
|
803
803
|
toolName: string;
|
|
804
|
-
consentUrl?: string | undefined;
|
|
805
804
|
authorizationUrl?: string | undefined;
|
|
806
805
|
reason?: string | undefined;
|
|
806
|
+
consentUrl?: string | undefined;
|
|
807
807
|
}>;
|
|
808
808
|
/**
|
|
809
809
|
* Type Guards
|
|
@@ -778,8 +778,8 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
|
|
|
778
778
|
name: string;
|
|
779
779
|
url: string;
|
|
780
780
|
transport: "sse" | "stdio" | "http";
|
|
781
|
-
version?: string | undefined;
|
|
782
781
|
metadata?: Record<string, unknown> | undefined;
|
|
782
|
+
version?: string | undefined;
|
|
783
783
|
capabilities?: string[] | undefined;
|
|
784
784
|
agentDid?: string | undefined;
|
|
785
785
|
description?: string | undefined;
|
|
@@ -789,8 +789,8 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
|
|
|
789
789
|
name: string;
|
|
790
790
|
url: string;
|
|
791
791
|
transport: "sse" | "stdio" | "http";
|
|
792
|
-
version?: string | undefined;
|
|
793
792
|
metadata?: Record<string, unknown> | undefined;
|
|
793
|
+
version?: string | undefined;
|
|
794
794
|
capabilities?: string[] | undefined;
|
|
795
795
|
agentDid?: string | undefined;
|
|
796
796
|
description?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/contracts",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"description": "Shared contracts, types, and schemas for MCP-I framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
"sideEffects": false,
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@kya-os/consent": "^0.1.
|
|
98
|
+
"@kya-os/consent": "^0.1.8",
|
|
99
99
|
"zod": "^3.25.76"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|