@kya-os/contracts 1.7.15 → 1.7.17
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 +279 -195
- package/dist/agentshield-api/schemas.js +8 -1
- package/dist/agentshield-api/types.d.ts +5 -1
- package/dist/audit/index.d.ts +21 -21
- package/dist/dashboard-config/schemas.d.ts +3355 -2307
- package/dist/delegation/schemas.d.ts +1090 -245
- package/dist/delegation/schemas.js +114 -4
- package/dist/handshake.d.ts +30 -30
- package/dist/handshake.js +11 -2
- package/dist/tool-protection/index.d.ts +204 -30
- package/dist/tool-protection/index.js +24 -0
- package/package.json +2 -2
|
@@ -131,9 +131,16 @@ exports.delegationCredentialSchema = zod_1.z.object({
|
|
|
131
131
|
credential_jwt: zod_1.z.string().optional(),
|
|
132
132
|
authorization: zod_1.z.object({
|
|
133
133
|
// 'oauth' is deprecated, use 'oauth2' instead (will be removed in v2.0.0)
|
|
134
|
-
|
|
134
|
+
// 'webauthn' and 'siwe' added in v1.7.16
|
|
135
|
+
type: zod_1.z.enum(['oauth', 'oauth2', 'password', 'credential', 'webauthn', 'siwe', 'none']),
|
|
135
136
|
provider: zod_1.z.string().optional(),
|
|
136
137
|
credentialType: zod_1.z.string().optional(),
|
|
138
|
+
// WebAuthn-specific fields
|
|
139
|
+
rpId: zod_1.z.string().optional(),
|
|
140
|
+
userVerification: zod_1.z.enum(['required', 'preferred', 'discouraged']).optional(),
|
|
141
|
+
// SIWE-specific fields
|
|
142
|
+
chainId: zod_1.z.number().optional(),
|
|
143
|
+
domain: zod_1.z.string().optional(),
|
|
137
144
|
}),
|
|
138
145
|
});
|
|
139
146
|
/**
|
|
@@ -150,9 +150,13 @@ export interface DelegationCredential {
|
|
|
150
150
|
created_at: number;
|
|
151
151
|
credential_jwt?: string;
|
|
152
152
|
authorization: {
|
|
153
|
-
type: 'oauth' | 'oauth2' | 'password' | 'credential' | 'none';
|
|
153
|
+
type: 'oauth' | 'oauth2' | 'password' | 'credential' | 'webauthn' | 'siwe' | 'none';
|
|
154
154
|
provider?: string;
|
|
155
155
|
credentialType?: string;
|
|
156
|
+
rpId?: string;
|
|
157
|
+
userVerification?: 'required' | 'preferred' | 'discouraged';
|
|
158
|
+
chainId?: number;
|
|
159
|
+
domain?: string;
|
|
156
160
|
};
|
|
157
161
|
}
|
|
158
162
|
/**
|
package/dist/audit/index.d.ts
CHANGED
|
@@ -65,38 +65,38 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
65
65
|
*/
|
|
66
66
|
scopeId: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
identity: {
|
|
69
|
+
did: string;
|
|
70
|
+
kid: string;
|
|
71
|
+
} & {
|
|
72
|
+
[k: string]: unknown;
|
|
73
|
+
};
|
|
70
74
|
session: {
|
|
71
75
|
audience: string;
|
|
72
76
|
sessionId: string;
|
|
73
77
|
} & {
|
|
74
78
|
[k: string]: unknown;
|
|
75
79
|
};
|
|
80
|
+
requestHash: string;
|
|
81
|
+
responseHash: string;
|
|
76
82
|
verified: "yes" | "no";
|
|
83
|
+
scopeId?: string | undefined;
|
|
84
|
+
}, {
|
|
77
85
|
identity: {
|
|
78
86
|
did: string;
|
|
79
87
|
kid: string;
|
|
80
88
|
} & {
|
|
81
89
|
[k: string]: unknown;
|
|
82
90
|
};
|
|
83
|
-
scopeId?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
requestHash: string;
|
|
86
|
-
responseHash: string;
|
|
87
91
|
session: {
|
|
88
92
|
audience: string;
|
|
89
93
|
sessionId: string;
|
|
90
94
|
} & {
|
|
91
95
|
[k: string]: unknown;
|
|
92
96
|
};
|
|
97
|
+
requestHash: string;
|
|
98
|
+
responseHash: string;
|
|
93
99
|
verified: "yes" | "no";
|
|
94
|
-
identity: {
|
|
95
|
-
did: string;
|
|
96
|
-
kid: string;
|
|
97
|
-
} & {
|
|
98
|
-
[k: string]: unknown;
|
|
99
|
-
};
|
|
100
100
|
scopeId?: string | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
export type AuditContext = {
|
|
@@ -153,33 +153,33 @@ export declare const AuditEventContextSchema: z.ZodObject<{
|
|
|
153
153
|
*/
|
|
154
154
|
eventData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
session: {
|
|
157
|
-
audience: string;
|
|
158
|
-
sessionId: string;
|
|
159
|
-
} & {
|
|
160
|
-
[k: string]: unknown;
|
|
161
|
-
};
|
|
162
156
|
identity: {
|
|
163
157
|
did: string;
|
|
164
158
|
kid: string;
|
|
165
159
|
} & {
|
|
166
160
|
[k: string]: unknown;
|
|
167
161
|
};
|
|
168
|
-
eventType: string;
|
|
169
|
-
eventData?: Record<string, unknown> | undefined;
|
|
170
|
-
}, {
|
|
171
162
|
session: {
|
|
172
163
|
audience: string;
|
|
173
164
|
sessionId: string;
|
|
174
165
|
} & {
|
|
175
166
|
[k: string]: unknown;
|
|
176
167
|
};
|
|
168
|
+
eventType: string;
|
|
169
|
+
eventData?: Record<string, unknown> | undefined;
|
|
170
|
+
}, {
|
|
177
171
|
identity: {
|
|
178
172
|
did: string;
|
|
179
173
|
kid: string;
|
|
180
174
|
} & {
|
|
181
175
|
[k: string]: unknown;
|
|
182
176
|
};
|
|
177
|
+
session: {
|
|
178
|
+
audience: string;
|
|
179
|
+
sessionId: string;
|
|
180
|
+
} & {
|
|
181
|
+
[k: string]: unknown;
|
|
182
|
+
};
|
|
183
183
|
eventType: string;
|
|
184
184
|
eventData?: Record<string, unknown> | undefined;
|
|
185
185
|
}>;
|