@kya-os/contracts 1.6.1 → 1.6.2

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.
@@ -282,6 +282,8 @@ export declare const ToolProtectionSchema: z.ZodObject<{
282
282
  }, "strip", z.ZodTypeAny, {
283
283
  requiresDelegation: boolean;
284
284
  requiredScopes: string[];
285
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
286
+ oauthProvider?: string | undefined;
285
287
  authorization?: {
286
288
  type: "oauth";
287
289
  provider: string;
@@ -301,11 +303,11 @@ export declare const ToolProtectionSchema: z.ZodObject<{
301
303
  } | {
302
304
  type: "none";
303
305
  } | undefined;
304
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
305
- oauthProvider?: string | undefined;
306
306
  }, {
307
307
  requiresDelegation: boolean;
308
308
  requiredScopes: string[];
309
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
310
+ oauthProvider?: string | undefined;
309
311
  authorization?: {
310
312
  type: "oauth";
311
313
  provider: string;
@@ -325,8 +327,6 @@ export declare const ToolProtectionSchema: z.ZodObject<{
325
327
  } | {
326
328
  type: "none";
327
329
  } | undefined;
328
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
329
- oauthProvider?: string | undefined;
330
330
  }>;
331
331
  export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
332
332
  requiresDelegation: z.ZodBoolean;
@@ -391,6 +391,8 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
391
391
  }, "strip", z.ZodTypeAny, {
392
392
  requiresDelegation: boolean;
393
393
  requiredScopes: string[];
394
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
395
+ oauthProvider?: string | undefined;
394
396
  authorization?: {
395
397
  type: "oauth";
396
398
  provider: string;
@@ -410,11 +412,11 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
410
412
  } | {
411
413
  type: "none";
412
414
  } | undefined;
413
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
414
- oauthProvider?: string | undefined;
415
415
  }, {
416
416
  requiresDelegation: boolean;
417
417
  requiredScopes: string[];
418
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
419
+ oauthProvider?: string | undefined;
418
420
  authorization?: {
419
421
  type: "oauth";
420
422
  provider: string;
@@ -434,8 +436,6 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
434
436
  } | {
435
437
  type: "none";
436
438
  } | undefined;
437
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
438
- oauthProvider?: string | undefined;
439
439
  }>>;
440
440
  export declare const ToolProtectionResponseSchema: z.ZodObject<{
441
441
  toolProtections: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -501,6 +501,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
501
501
  }, "strip", z.ZodTypeAny, {
502
502
  requiresDelegation: boolean;
503
503
  requiredScopes: string[];
504
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
505
+ oauthProvider?: string | undefined;
504
506
  authorization?: {
505
507
  type: "oauth";
506
508
  provider: string;
@@ -520,11 +522,11 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
520
522
  } | {
521
523
  type: "none";
522
524
  } | undefined;
523
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
524
- oauthProvider?: string | undefined;
525
525
  }, {
526
526
  requiresDelegation: boolean;
527
527
  requiredScopes: string[];
528
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
529
+ oauthProvider?: string | undefined;
528
530
  authorization?: {
529
531
  type: "oauth";
530
532
  provider: string;
@@ -544,8 +546,6 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
544
546
  } | {
545
547
  type: "none";
546
548
  } | undefined;
547
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
548
- oauthProvider?: string | undefined;
549
549
  }>>;
550
550
  metadata: z.ZodOptional<z.ZodObject<{
551
551
  lastUpdated: z.ZodOptional<z.ZodString>;
@@ -564,6 +564,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
564
564
  toolProtections: Record<string, {
565
565
  requiresDelegation: boolean;
566
566
  requiredScopes: string[];
567
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
568
+ oauthProvider?: string | undefined;
567
569
  authorization?: {
568
570
  type: "oauth";
569
571
  provider: string;
@@ -583,8 +585,6 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
583
585
  } | {
584
586
  type: "none";
585
587
  } | undefined;
586
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
587
- oauthProvider?: string | undefined;
588
588
  }>;
589
589
  metadata?: {
590
590
  version?: string | undefined;
@@ -595,6 +595,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
595
595
  toolProtections: Record<string, {
596
596
  requiresDelegation: boolean;
597
597
  requiredScopes: string[];
598
+ riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
599
+ oauthProvider?: string | undefined;
598
600
  authorization?: {
599
601
  type: "oauth";
600
602
  provider: string;
@@ -614,8 +616,6 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
614
616
  } | {
615
617
  type: "none";
616
618
  } | undefined;
617
- riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
618
- oauthProvider?: string | undefined;
619
619
  }>;
620
620
  metadata?: {
621
621
  version?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
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",