@kya-os/contracts 1.6.19 → 1.7.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/agentshield-api/schemas.d.ts +154 -154
- package/dist/audit/index.d.ts +24 -24
- package/dist/cli.d.ts +26 -26
- package/dist/consent/index.d.ts +8 -2
- package/dist/consent/index.js +73 -17
- package/dist/consent/schemas.d.ts +123 -123
- package/dist/consent/schemas.js +1 -1
- package/dist/consent/types.d.ts +1 -1
- package/dist/dashboard-config/schemas.d.ts +2241 -2241
- package/dist/delegation/schemas.d.ts +34 -34
- package/dist/deploy/schemas.d.ts +110 -110
- package/dist/handshake.d.ts +4 -4
- package/dist/handshake.js +2 -2
- package/dist/proof.d.ts +12 -12
- package/dist/registry.d.ts +8 -8
- package/dist/reputation/api.d.ts +146 -146
- package/dist/reputation/credentials.d.ts +60 -60
- package/dist/reputation/schemas.d.ts +24 -24
- package/dist/test.d.ts +12 -12
- package/dist/tool-protection/index.d.ts +18 -18
- package/dist/verifier.d.ts +8 -8
- package/dist/well-known/index.d.ts +716 -11
- package/dist/well-known/index.js +169 -1
- package/package.json +2 -1
package/dist/test.d.ts
CHANGED
|
@@ -37,17 +37,17 @@ export declare const MockIdentitySchema: z.ZodObject<{
|
|
|
37
37
|
lastRotated: z.ZodOptional<z.ZodString>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
did: string;
|
|
40
|
-
kid: string;
|
|
41
|
-
privateKey: string;
|
|
42
40
|
publicKey: string;
|
|
41
|
+
privateKey: string;
|
|
43
42
|
createdAt: string;
|
|
43
|
+
kid: string;
|
|
44
44
|
lastRotated?: string | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
did: string;
|
|
47
|
-
kid: string;
|
|
48
|
-
privateKey: string;
|
|
49
47
|
publicKey: string;
|
|
48
|
+
privateKey: string;
|
|
50
49
|
createdAt: string;
|
|
50
|
+
kid: string;
|
|
51
51
|
lastRotated?: string | undefined;
|
|
52
52
|
}>;
|
|
53
53
|
export type MockIdentity = z.infer<typeof MockIdentitySchema>;
|
|
@@ -74,17 +74,17 @@ export declare const MockIdentityProviderConfigSchema: z.ZodObject<{
|
|
|
74
74
|
lastRotated: z.ZodOptional<z.ZodString>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
76
|
did: string;
|
|
77
|
-
kid: string;
|
|
78
|
-
privateKey: string;
|
|
79
77
|
publicKey: string;
|
|
78
|
+
privateKey: string;
|
|
80
79
|
createdAt: string;
|
|
80
|
+
kid: string;
|
|
81
81
|
lastRotated?: string | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
did: string;
|
|
84
|
-
kid: string;
|
|
85
|
-
privateKey: string;
|
|
86
84
|
publicKey: string;
|
|
85
|
+
privateKey: string;
|
|
87
86
|
createdAt: string;
|
|
87
|
+
kid: string;
|
|
88
88
|
lastRotated?: string | undefined;
|
|
89
89
|
}>>;
|
|
90
90
|
delegations: z.ZodRecord<z.ZodString, z.ZodEnum<["active", "revoked", "pending"]>>;
|
|
@@ -93,10 +93,10 @@ export declare const MockIdentityProviderConfigSchema: z.ZodObject<{
|
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
94
|
identities: Record<string, {
|
|
95
95
|
did: string;
|
|
96
|
-
kid: string;
|
|
97
|
-
privateKey: string;
|
|
98
96
|
publicKey: string;
|
|
97
|
+
privateKey: string;
|
|
99
98
|
createdAt: string;
|
|
99
|
+
kid: string;
|
|
100
100
|
lastRotated?: string | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
delegations: Record<string, "pending" | "active" | "revoked">;
|
|
@@ -105,10 +105,10 @@ export declare const MockIdentityProviderConfigSchema: z.ZodObject<{
|
|
|
105
105
|
}, {
|
|
106
106
|
identities: Record<string, {
|
|
107
107
|
did: string;
|
|
108
|
-
kid: string;
|
|
109
|
-
privateKey: string;
|
|
110
108
|
publicKey: string;
|
|
109
|
+
privateKey: string;
|
|
111
110
|
createdAt: string;
|
|
111
|
+
kid: string;
|
|
112
112
|
lastRotated?: string | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
delegations: Record<string, "pending" | "active" | "revoked">;
|
|
@@ -282,8 +282,6 @@ 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;
|
|
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;
|
|
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;
|
|
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;
|
|
@@ -391,8 +391,6 @@ 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;
|
|
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;
|
|
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;
|
|
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<{
|
|
@@ -501,8 +501,6 @@ 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;
|
|
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;
|
|
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;
|
|
530
528
|
authorization?: {
|
|
531
529
|
type: "oauth";
|
|
532
530
|
provider: string;
|
|
@@ -546,6 +544,8 @@ 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>;
|
|
@@ -564,8 +564,6 @@ 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;
|
|
569
567
|
authorization?: {
|
|
570
568
|
type: "oauth";
|
|
571
569
|
provider: string;
|
|
@@ -585,6 +583,8 @@ 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
590
|
version?: string | undefined;
|
|
@@ -595,8 +595,6 @@ 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;
|
|
600
598
|
authorization?: {
|
|
601
599
|
type: "oauth";
|
|
602
600
|
provider: string;
|
|
@@ -616,6 +614,8 @@ 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
621
|
version?: string | undefined;
|
|
@@ -632,14 +632,14 @@ export declare const DelegationRequiredErrorDataSchema: z.ZodObject<{
|
|
|
632
632
|
}, "strip", z.ZodTypeAny, {
|
|
633
633
|
requiredScopes: string[];
|
|
634
634
|
toolName: string;
|
|
635
|
-
reason?: string | undefined;
|
|
636
635
|
authorizationUrl?: string | undefined;
|
|
636
|
+
reason?: string | undefined;
|
|
637
637
|
consentUrl?: string | undefined;
|
|
638
638
|
}, {
|
|
639
639
|
requiredScopes: string[];
|
|
640
640
|
toolName: string;
|
|
641
|
-
reason?: string | undefined;
|
|
642
641
|
authorizationUrl?: string | undefined;
|
|
642
|
+
reason?: string | undefined;
|
|
643
643
|
consentUrl?: string | undefined;
|
|
644
644
|
}>;
|
|
645
645
|
/**
|
package/dist/verifier.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export declare const AgentContextSchema: z.ZodObject<{
|
|
|
13
13
|
registry: z.ZodString;
|
|
14
14
|
verifiedAt: z.ZodNumber;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
scopes: string[];
|
|
16
17
|
did: string;
|
|
17
18
|
kid: string;
|
|
18
19
|
session: string;
|
|
19
|
-
scopes: string[];
|
|
20
20
|
confidence: "verified";
|
|
21
21
|
registry: string;
|
|
22
22
|
verifiedAt: number;
|
|
@@ -29,9 +29,9 @@ export declare const AgentContextSchema: z.ZodObject<{
|
|
|
29
29
|
confidence: "verified";
|
|
30
30
|
registry: string;
|
|
31
31
|
verifiedAt: number;
|
|
32
|
+
scopes?: string[] | undefined;
|
|
32
33
|
delegationRef?: string | undefined;
|
|
33
34
|
subject?: string | undefined;
|
|
34
|
-
scopes?: string[] | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export declare const VerifierResultSchema: z.ZodObject<{
|
|
37
37
|
success: z.ZodBoolean;
|
|
@@ -47,10 +47,10 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
47
47
|
registry: z.ZodString;
|
|
48
48
|
verifiedAt: z.ZodNumber;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
scopes: string[];
|
|
50
51
|
did: string;
|
|
51
52
|
kid: string;
|
|
52
53
|
session: string;
|
|
53
|
-
scopes: string[];
|
|
54
54
|
confidence: "verified";
|
|
55
55
|
registry: string;
|
|
56
56
|
verifiedAt: number;
|
|
@@ -63,9 +63,9 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
63
63
|
confidence: "verified";
|
|
64
64
|
registry: string;
|
|
65
65
|
verifiedAt: number;
|
|
66
|
+
scopes?: string[] | undefined;
|
|
66
67
|
delegationRef?: string | undefined;
|
|
67
68
|
subject?: string | undefined;
|
|
68
|
-
scopes?: string[] | undefined;
|
|
69
69
|
}>>;
|
|
70
70
|
error: z.ZodOptional<z.ZodObject<{
|
|
71
71
|
code: z.ZodString;
|
|
@@ -85,18 +85,18 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
85
85
|
}>>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
success: boolean;
|
|
88
|
+
headers?: Record<string, string> | undefined;
|
|
88
89
|
error?: {
|
|
89
90
|
code: string;
|
|
90
91
|
message: string;
|
|
91
92
|
httpStatus: number;
|
|
92
93
|
details?: any;
|
|
93
94
|
} | undefined;
|
|
94
|
-
headers?: Record<string, string> | undefined;
|
|
95
95
|
agentContext?: {
|
|
96
|
+
scopes: string[];
|
|
96
97
|
did: string;
|
|
97
98
|
kid: string;
|
|
98
99
|
session: string;
|
|
99
|
-
scopes: string[];
|
|
100
100
|
confidence: "verified";
|
|
101
101
|
registry: string;
|
|
102
102
|
verifiedAt: number;
|
|
@@ -105,13 +105,13 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
105
105
|
} | undefined;
|
|
106
106
|
}, {
|
|
107
107
|
success: boolean;
|
|
108
|
+
headers?: Record<string, string> | undefined;
|
|
108
109
|
error?: {
|
|
109
110
|
code: string;
|
|
110
111
|
message: string;
|
|
111
112
|
httpStatus: number;
|
|
112
113
|
details?: any;
|
|
113
114
|
} | undefined;
|
|
114
|
-
headers?: Record<string, string> | undefined;
|
|
115
115
|
agentContext?: {
|
|
116
116
|
did: string;
|
|
117
117
|
kid: string;
|
|
@@ -119,9 +119,9 @@ export declare const VerifierResultSchema: z.ZodObject<{
|
|
|
119
119
|
confidence: "verified";
|
|
120
120
|
registry: string;
|
|
121
121
|
verifiedAt: number;
|
|
122
|
+
scopes?: string[] | undefined;
|
|
122
123
|
delegationRef?: string | undefined;
|
|
123
124
|
subject?: string | undefined;
|
|
124
|
-
scopes?: string[] | undefined;
|
|
125
125
|
} | undefined;
|
|
126
126
|
}>;
|
|
127
127
|
export declare const StructuredErrorSchema: z.ZodObject<{
|