@kya-os/contracts 1.5.3-canary.11 → 1.5.3-canary.13

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.
@@ -21,18 +21,22 @@ exports.AuditContextSchema = zod_1.z.object({
21
21
  * Agent identity
22
22
  * Only `did` and `keyId` are logged. Private key is NEVER logged.
23
23
  */
24
- identity: zod_1.z.object({
24
+ identity: zod_1.z
25
+ .object({
25
26
  did: zod_1.z.string().min(1),
26
27
  kid: zod_1.z.string().min(1),
27
- }).passthrough(), // Allow additional fields but only did/kid are used
28
+ })
29
+ .passthrough(), // Allow additional fields but only did/kid are used
28
30
  /**
29
31
  * Session context
30
32
  * Only `sessionId` and `audience` are logged. Nonce is NEVER logged.
31
33
  */
32
- session: zod_1.z.object({
34
+ session: zod_1.z
35
+ .object({
33
36
  sessionId: zod_1.z.string().min(1),
34
37
  audience: zod_1.z.string().min(1),
35
- }).passthrough(), // Allow additional fields but only sessionId/audience are used
38
+ })
39
+ .passthrough(), // Allow additional fields but only sessionId/audience are used
36
40
  /**
37
41
  * Request hash (SHA-256 with `sha256:` prefix)
38
42
  */
@@ -70,18 +74,22 @@ exports.AuditEventContextSchema = zod_1.z.object({
70
74
  * Agent identity
71
75
  * Only `did` and `keyId` are logged. Private key is NEVER logged.
72
76
  */
73
- identity: zod_1.z.object({
77
+ identity: zod_1.z
78
+ .object({
74
79
  did: zod_1.z.string().min(1),
75
80
  kid: zod_1.z.string().min(1),
76
- }).passthrough(), // Allow additional fields but only did/kid are used
81
+ })
82
+ .passthrough(), // Allow additional fields but only did/kid are used
77
83
  /**
78
84
  * Session context
79
85
  * Only `sessionId` and `audience` are logged. Nonce is NEVER logged.
80
86
  */
81
- session: zod_1.z.object({
87
+ session: zod_1.z
88
+ .object({
82
89
  sessionId: zod_1.z.string().min(1),
83
90
  audience: zod_1.z.string().min(1),
84
- }).passthrough(), // Allow additional fields but only sessionId/audience are used
91
+ })
92
+ .passthrough(), // Allow additional fields but only sessionId/audience are used
85
93
  /**
86
94
  * Optional event-specific data
87
95
  * Used for generating event hash. Not logged directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.5.3-canary.11",
3
+ "version": "1.5.3-canary.13",
4
4
  "description": "Shared types and schemas for XMCP-I ecosystem",
5
5
  "type": "commonjs",
6
6
  "sideEffects": false,