@kya-os/contracts 1.6.0 → 1.6.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/config/identity.d.ts +11 -2
- package/dist/config/identity.js +1 -0
- package/dist/consent/schemas.d.ts +90 -90
- package/dist/dashboard-config/schemas.d.ts +1436 -1436
- package/dist/tool-protection/index.d.ts +32 -32
- package/package.json +1 -1
|
@@ -280,10 +280,8 @@ export declare const ToolProtectionSchema: z.ZodObject<{
|
|
|
280
280
|
type: "none";
|
|
281
281
|
}>]>>;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
requiredScopes: string[];
|
|
284
283
|
requiresDelegation: boolean;
|
|
285
|
-
|
|
286
|
-
oauthProvider?: string | undefined;
|
|
284
|
+
requiredScopes: string[];
|
|
287
285
|
authorization?: {
|
|
288
286
|
type: "oauth";
|
|
289
287
|
provider: string;
|
|
@@ -303,11 +301,11 @@ export declare const ToolProtectionSchema: z.ZodObject<{
|
|
|
303
301
|
} | {
|
|
304
302
|
type: "none";
|
|
305
303
|
} | undefined;
|
|
306
|
-
}, {
|
|
307
|
-
requiredScopes: string[];
|
|
308
|
-
requiresDelegation: boolean;
|
|
309
304
|
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
310
305
|
oauthProvider?: string | undefined;
|
|
306
|
+
}, {
|
|
307
|
+
requiresDelegation: boolean;
|
|
308
|
+
requiredScopes: string[];
|
|
311
309
|
authorization?: {
|
|
312
310
|
type: "oauth";
|
|
313
311
|
provider: string;
|
|
@@ -327,6 +325,8 @@ export declare const ToolProtectionSchema: z.ZodObject<{
|
|
|
327
325
|
} | {
|
|
328
326
|
type: "none";
|
|
329
327
|
} | 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;
|
|
@@ -389,10 +389,8 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
|
|
|
389
389
|
type: "none";
|
|
390
390
|
}>]>>;
|
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
requiredScopes: string[];
|
|
393
392
|
requiresDelegation: boolean;
|
|
394
|
-
|
|
395
|
-
oauthProvider?: string | undefined;
|
|
393
|
+
requiredScopes: string[];
|
|
396
394
|
authorization?: {
|
|
397
395
|
type: "oauth";
|
|
398
396
|
provider: string;
|
|
@@ -412,11 +410,11 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
|
|
|
412
410
|
} | {
|
|
413
411
|
type: "none";
|
|
414
412
|
} | undefined;
|
|
415
|
-
}, {
|
|
416
|
-
requiredScopes: string[];
|
|
417
|
-
requiresDelegation: boolean;
|
|
418
413
|
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
419
414
|
oauthProvider?: string | undefined;
|
|
415
|
+
}, {
|
|
416
|
+
requiresDelegation: boolean;
|
|
417
|
+
requiredScopes: string[];
|
|
420
418
|
authorization?: {
|
|
421
419
|
type: "oauth";
|
|
422
420
|
provider: string;
|
|
@@ -436,6 +434,8 @@ export declare const ToolProtectionMapSchema: z.ZodRecord<z.ZodString, z.ZodObje
|
|
|
436
434
|
} | {
|
|
437
435
|
type: "none";
|
|
438
436
|
} | 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<{
|
|
@@ -499,10 +499,8 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
499
499
|
type: "none";
|
|
500
500
|
}>]>>;
|
|
501
501
|
}, "strip", z.ZodTypeAny, {
|
|
502
|
-
requiredScopes: string[];
|
|
503
502
|
requiresDelegation: boolean;
|
|
504
|
-
|
|
505
|
-
oauthProvider?: string | undefined;
|
|
503
|
+
requiredScopes: string[];
|
|
506
504
|
authorization?: {
|
|
507
505
|
type: "oauth";
|
|
508
506
|
provider: string;
|
|
@@ -522,11 +520,11 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
522
520
|
} | {
|
|
523
521
|
type: "none";
|
|
524
522
|
} | undefined;
|
|
525
|
-
}, {
|
|
526
|
-
requiredScopes: string[];
|
|
527
|
-
requiresDelegation: boolean;
|
|
528
523
|
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
529
524
|
oauthProvider?: string | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
requiresDelegation: boolean;
|
|
527
|
+
requiredScopes: string[];
|
|
530
528
|
authorization?: {
|
|
531
529
|
type: "oauth";
|
|
532
530
|
provider: string;
|
|
@@ -546,26 +544,26 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
546
544
|
} | {
|
|
547
545
|
type: "none";
|
|
548
546
|
} | 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>;
|
|
552
552
|
version: z.ZodOptional<z.ZodString>;
|
|
553
553
|
source: z.ZodOptional<z.ZodString>;
|
|
554
554
|
}, "strip", z.ZodTypeAny, {
|
|
555
|
-
lastUpdated?: string | undefined;
|
|
556
555
|
version?: string | undefined;
|
|
556
|
+
lastUpdated?: string | undefined;
|
|
557
557
|
source?: string | undefined;
|
|
558
558
|
}, {
|
|
559
|
-
lastUpdated?: string | undefined;
|
|
560
559
|
version?: string | undefined;
|
|
560
|
+
lastUpdated?: string | undefined;
|
|
561
561
|
source?: string | undefined;
|
|
562
562
|
}>>;
|
|
563
563
|
}, "strip", z.ZodTypeAny, {
|
|
564
564
|
toolProtections: Record<string, {
|
|
565
|
-
requiredScopes: string[];
|
|
566
565
|
requiresDelegation: boolean;
|
|
567
|
-
|
|
568
|
-
oauthProvider?: string | undefined;
|
|
566
|
+
requiredScopes: string[];
|
|
569
567
|
authorization?: {
|
|
570
568
|
type: "oauth";
|
|
571
569
|
provider: string;
|
|
@@ -585,18 +583,18 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
585
583
|
} | {
|
|
586
584
|
type: "none";
|
|
587
585
|
} | undefined;
|
|
586
|
+
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
587
|
+
oauthProvider?: string | undefined;
|
|
588
588
|
}>;
|
|
589
589
|
metadata?: {
|
|
590
|
-
lastUpdated?: string | undefined;
|
|
591
590
|
version?: string | undefined;
|
|
591
|
+
lastUpdated?: string | undefined;
|
|
592
592
|
source?: string | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
}, {
|
|
595
595
|
toolProtections: Record<string, {
|
|
596
|
-
requiredScopes: string[];
|
|
597
596
|
requiresDelegation: boolean;
|
|
598
|
-
|
|
599
|
-
oauthProvider?: string | undefined;
|
|
597
|
+
requiredScopes: string[];
|
|
600
598
|
authorization?: {
|
|
601
599
|
type: "oauth";
|
|
602
600
|
provider: string;
|
|
@@ -616,10 +614,12 @@ export declare const ToolProtectionResponseSchema: z.ZodObject<{
|
|
|
616
614
|
} | {
|
|
617
615
|
type: "none";
|
|
618
616
|
} | undefined;
|
|
617
|
+
riskLevel?: "low" | "medium" | "high" | "critical" | undefined;
|
|
618
|
+
oauthProvider?: string | undefined;
|
|
619
619
|
}>;
|
|
620
620
|
metadata?: {
|
|
621
|
-
lastUpdated?: string | undefined;
|
|
622
621
|
version?: string | undefined;
|
|
622
|
+
lastUpdated?: string | undefined;
|
|
623
623
|
source?: string | undefined;
|
|
624
624
|
} | undefined;
|
|
625
625
|
}>;
|
|
@@ -632,15 +632,15 @@ export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
|
|
|
632
632
|
}, "strip", z.ZodTypeAny, {
|
|
633
633
|
requiredScopes: string[];
|
|
634
634
|
toolName: string;
|
|
635
|
-
consentUrl?: string | undefined;
|
|
636
|
-
authorizationUrl?: string | undefined;
|
|
637
635
|
reason?: string | undefined;
|
|
636
|
+
authorizationUrl?: string | undefined;
|
|
637
|
+
consentUrl?: string | undefined;
|
|
638
638
|
}, {
|
|
639
639
|
requiredScopes: string[];
|
|
640
640
|
toolName: string;
|
|
641
|
-
consentUrl?: string | undefined;
|
|
642
|
-
authorizationUrl?: string | undefined;
|
|
643
641
|
reason?: string | undefined;
|
|
642
|
+
authorizationUrl?: string | undefined;
|
|
643
|
+
consentUrl?: string | undefined;
|
|
644
644
|
}>;
|
|
645
645
|
/**
|
|
646
646
|
* Type Guards
|