@kya-os/contracts 1.7.12 → 1.7.14
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 +157 -157
- package/dist/agentshield-api/schemas.js +2 -1
- package/dist/agentshield-api/types.d.ts +1 -1
- package/dist/audit/index.d.ts +20 -20
- package/dist/dashboard-config/schemas.d.ts +524 -0
- package/dist/handshake.d.ts +42 -42
- package/dist/tool-protection/index.d.ts +102 -7
- package/dist/tool-protection/index.js +41 -8
- package/package.json +1 -1
|
@@ -130,7 +130,8 @@ exports.delegationCredentialSchema = zod_1.z.object({
|
|
|
130
130
|
created_at: zod_1.z.number().int().positive(),
|
|
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
|
+
type: zod_1.z.enum(['oauth', 'oauth2', 'password', 'credential', 'none']),
|
|
134
135
|
provider: zod_1.z.string().optional(),
|
|
135
136
|
credentialType: zod_1.z.string().optional(),
|
|
136
137
|
}),
|
|
@@ -150,7 +150,7 @@ export interface DelegationCredential {
|
|
|
150
150
|
created_at: number;
|
|
151
151
|
credential_jwt?: string;
|
|
152
152
|
authorization: {
|
|
153
|
-
type: 'oauth' | 'credential' | 'none';
|
|
153
|
+
type: 'oauth' | 'oauth2' | 'password' | 'credential' | 'none';
|
|
154
154
|
provider?: string;
|
|
155
155
|
credentialType?: string;
|
|
156
156
|
};
|
package/dist/audit/index.d.ts
CHANGED
|
@@ -67,12 +67,6 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
requestHash: string;
|
|
69
69
|
responseHash: string;
|
|
70
|
-
identity: {
|
|
71
|
-
did: string;
|
|
72
|
-
kid: string;
|
|
73
|
-
} & {
|
|
74
|
-
[k: string]: unknown;
|
|
75
|
-
};
|
|
76
70
|
session: {
|
|
77
71
|
audience: string;
|
|
78
72
|
sessionId: string;
|
|
@@ -80,16 +74,16 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
80
74
|
[k: string]: unknown;
|
|
81
75
|
};
|
|
82
76
|
verified: "yes" | "no";
|
|
83
|
-
scopeId?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
requestHash: string;
|
|
86
|
-
responseHash: string;
|
|
87
77
|
identity: {
|
|
88
78
|
did: string;
|
|
89
79
|
kid: string;
|
|
90
80
|
} & {
|
|
91
81
|
[k: string]: unknown;
|
|
92
82
|
};
|
|
83
|
+
scopeId?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
requestHash: string;
|
|
86
|
+
responseHash: string;
|
|
93
87
|
session: {
|
|
94
88
|
audience: string;
|
|
95
89
|
sessionId: string;
|
|
@@ -97,6 +91,12 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
97
91
|
[k: string]: unknown;
|
|
98
92
|
};
|
|
99
93
|
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,34 +153,34 @@ 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
|
-
eventType: string;
|
|
157
|
-
identity: {
|
|
158
|
-
did: string;
|
|
159
|
-
kid: string;
|
|
160
|
-
} & {
|
|
161
|
-
[k: string]: unknown;
|
|
162
|
-
};
|
|
163
156
|
session: {
|
|
164
157
|
audience: string;
|
|
165
158
|
sessionId: string;
|
|
166
159
|
} & {
|
|
167
160
|
[k: string]: unknown;
|
|
168
161
|
};
|
|
169
|
-
eventData?: Record<string, unknown> | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
eventType: string;
|
|
172
162
|
identity: {
|
|
173
163
|
did: string;
|
|
174
164
|
kid: string;
|
|
175
165
|
} & {
|
|
176
166
|
[k: string]: unknown;
|
|
177
167
|
};
|
|
168
|
+
eventType: string;
|
|
169
|
+
eventData?: Record<string, unknown> | undefined;
|
|
170
|
+
}, {
|
|
178
171
|
session: {
|
|
179
172
|
audience: string;
|
|
180
173
|
sessionId: string;
|
|
181
174
|
} & {
|
|
182
175
|
[k: string]: unknown;
|
|
183
176
|
};
|
|
177
|
+
identity: {
|
|
178
|
+
did: string;
|
|
179
|
+
kid: string;
|
|
180
|
+
} & {
|
|
181
|
+
[k: string]: unknown;
|
|
182
|
+
};
|
|
183
|
+
eventType: string;
|
|
184
184
|
eventData?: Record<string, unknown> | undefined;
|
|
185
185
|
}>;
|
|
186
186
|
export type AuditEventContext = {
|