@kya-os/contracts 1.7.2 → 1.7.4
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/dashboard-config/schemas.d.ts +3179 -2262
- package/dist/handshake.d.ts +22 -22
- package/dist/tool-protection/index.d.ts +264 -36
- package/dist/tool-protection/index.js +164 -4
- package/package.json +1 -1
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;
|
|
27
26
|
version?: string | undefined;
|
|
28
27
|
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;
|
|
34
33
|
version?: string | undefined;
|
|
35
34
|
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;
|
|
54
53
|
version?: string | undefined;
|
|
55
54
|
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;
|
|
64
63
|
version?: string | undefined;
|
|
65
64
|
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;
|
|
88
87
|
version?: string | undefined;
|
|
89
88
|
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;
|
|
96
95
|
version?: string | undefined;
|
|
97
96
|
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;
|
|
105
106
|
nonce: string;
|
|
106
107
|
audience: string;
|
|
107
|
-
timestamp: number;
|
|
108
108
|
agentDid?: string | undefined;
|
|
109
109
|
clientInfo?: {
|
|
110
110
|
name: string;
|
|
111
|
-
title?: string | undefined;
|
|
112
111
|
version?: string | undefined;
|
|
113
112
|
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;
|
|
121
122
|
nonce: string;
|
|
122
123
|
audience: string;
|
|
123
|
-
timestamp: number;
|
|
124
124
|
agentDid?: string | undefined;
|
|
125
125
|
clientInfo?: {
|
|
126
126
|
name: string;
|
|
127
|
-
title?: string | undefined;
|
|
128
127
|
version?: string | undefined;
|
|
129
128
|
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;
|
|
164
163
|
version?: string | undefined;
|
|
165
164
|
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;
|
|
174
173
|
version?: string | undefined;
|
|
175
174
|
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;
|
|
207
209
|
nonce: string;
|
|
208
210
|
audience: string;
|
|
209
|
-
timestamp: number;
|
|
210
211
|
sessionId: string;
|
|
211
212
|
createdAt: number;
|
|
212
213
|
lastActivity: number;
|
|
213
|
-
ttlMinutes: number;
|
|
214
214
|
identityState: "anonymous" | "authenticated";
|
|
215
215
|
agentDid?: string | undefined;
|
|
216
|
+
serverDid?: string | undefined;
|
|
216
217
|
clientInfo?: {
|
|
217
218
|
name: string;
|
|
218
219
|
clientId: string;
|
|
219
|
-
title?: string | undefined;
|
|
220
220
|
version?: string | undefined;
|
|
221
221
|
platform?: string | undefined;
|
|
222
|
+
title?: string | undefined;
|
|
222
223
|
vendor?: string | undefined;
|
|
223
224
|
persistentId?: string | undefined;
|
|
224
225
|
protocolVersion?: string | undefined;
|
|
225
226
|
capabilities?: Record<string, unknown> | undefined;
|
|
226
227
|
} | 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;
|
|
237
238
|
nonce: string;
|
|
238
239
|
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;
|
|
244
246
|
clientInfo?: {
|
|
245
247
|
name: string;
|
|
246
248
|
clientId: string;
|
|
247
|
-
title?: string | undefined;
|
|
248
249
|
version?: string | undefined;
|
|
249
250
|
platform?: string | undefined;
|
|
251
|
+
title?: string | undefined;
|
|
250
252
|
vendor?: string | undefined;
|
|
251
253
|
persistentId?: string | undefined;
|
|
252
254
|
protocolVersion?: string | undefined;
|
|
253
255
|
capabilities?: Record<string, unknown> | undefined;
|
|
254
256
|
} | 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?: "cloudflare-kv" | "memory" | "redis" | "dynamodb" | 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?: "cloudflare-kv" | "memory" | "redis" | "dynamodb" | undefined;
|
|
366
366
|
redis?: {
|
|
367
367
|
url: string;
|
|
368
368
|
keyPrefix?: string | undefined;
|