@enclave-vm/types 2.9.2 → 2.10.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/esm/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // libs/enclavejs-types/src/protocol.ts
1
+ // libs/types/src/protocol.ts
2
2
  var PROTOCOL_VERSION = 1;
3
3
  var SESSION_ID_PREFIX = "s_";
4
4
  var CALL_ID_PREFIX = "c_";
@@ -56,7 +56,7 @@ var LogLevel = {
56
56
  Error: "error"
57
57
  };
58
58
 
59
- // libs/enclavejs-types/src/events.ts
59
+ // libs/types/src/events.ts
60
60
  var EventType = {
61
61
  /** Session initialization */
62
62
  SessionInit: "session_init",
@@ -111,7 +111,7 @@ var RuntimeChannelMessageType = {
111
111
  Cancel: "cancel"
112
112
  };
113
113
 
114
- // libs/enclavejs-types/src/encryption.ts
114
+ // libs/types/src/encryption.ts
115
115
  var SupportedCurve = {
116
116
  P256: "P-256"
117
117
  };
@@ -163,7 +163,7 @@ var AES_GCM_TAG_SIZE = 16;
163
163
  var AES_256_KEY_SIZE = 32;
164
164
  var MAX_MESSAGES_PER_KEY = 1073741824n;
165
165
 
166
- // libs/enclavejs-types/src/schemas.ts
166
+ // libs/types/src/schemas.ts
167
167
  import { z } from "zod";
168
168
  var ProtocolVersionSchema = z.literal(PROTOCOL_VERSION);
169
169
  var SessionIdSchema = z.string().startsWith(SESSION_ID_PREFIX).min(SESSION_ID_PREFIX.length + 1);
@@ -380,7 +380,7 @@ function parseStreamEventOrEncrypted(data) {
380
380
  return StreamEventSchema.safeParse(data);
381
381
  }
382
382
 
383
- // libs/enclavejs-types/src/filter.ts
383
+ // libs/types/src/filter.ts
384
384
  var FilterMode = {
385
385
  /** Include only events matching the filter (whitelist) */
386
386
  Include: "include",
package/index.js CHANGED
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // libs/enclavejs-types/src/index.ts
20
+ // libs/types/src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  AES_256_KEY_SIZE: () => AES_256_KEY_SIZE,
@@ -113,7 +113,7 @@ __export(index_exports, {
113
113
  });
114
114
  module.exports = __toCommonJS(index_exports);
115
115
 
116
- // libs/enclavejs-types/src/protocol.ts
116
+ // libs/types/src/protocol.ts
117
117
  var PROTOCOL_VERSION = 1;
118
118
  var SESSION_ID_PREFIX = "s_";
119
119
  var CALL_ID_PREFIX = "c_";
@@ -171,7 +171,7 @@ var LogLevel = {
171
171
  Error: "error"
172
172
  };
173
173
 
174
- // libs/enclavejs-types/src/events.ts
174
+ // libs/types/src/events.ts
175
175
  var EventType = {
176
176
  /** Session initialization */
177
177
  SessionInit: "session_init",
@@ -226,7 +226,7 @@ var RuntimeChannelMessageType = {
226
226
  Cancel: "cancel"
227
227
  };
228
228
 
229
- // libs/enclavejs-types/src/encryption.ts
229
+ // libs/types/src/encryption.ts
230
230
  var SupportedCurve = {
231
231
  P256: "P-256"
232
232
  };
@@ -278,7 +278,7 @@ var AES_GCM_TAG_SIZE = 16;
278
278
  var AES_256_KEY_SIZE = 32;
279
279
  var MAX_MESSAGES_PER_KEY = 1073741824n;
280
280
 
281
- // libs/enclavejs-types/src/schemas.ts
281
+ // libs/types/src/schemas.ts
282
282
  var import_zod = require("zod");
283
283
  var ProtocolVersionSchema = import_zod.z.literal(PROTOCOL_VERSION);
284
284
  var SessionIdSchema = import_zod.z.string().startsWith(SESSION_ID_PREFIX).min(SESSION_ID_PREFIX.length + 1);
@@ -495,7 +495,7 @@ function parseStreamEventOrEncrypted(data) {
495
495
  return StreamEventSchema.safeParse(data);
496
496
  }
497
497
 
498
- // libs/enclavejs-types/src/filter.ts
498
+ // libs/types/src/filter.ts
499
499
  var FilterMode = {
500
500
  /** Include only events matching the filter (whitelist) */
501
501
  Include: "include",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enclave-vm/types",
3
- "version": "2.9.2",
3
+ "version": "2.10.1",
4
4
  "description": "Type definitions and Zod schemas for the EnclaveJS streaming runtime protocol",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://github.com/agentfront/enclave",
@@ -34,6 +34,6 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "zod": "^4.1.13"
37
+ "zod": "^4.3.6"
38
38
  }
39
39
  }