@kya-os/contracts 1.7.8 → 1.7.10
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/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/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/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.10",
|
|
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.9",
|
|
99
99
|
"zod": "^3.25.76"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|