@interfere/types 0.1.0-alpha.3 → 0.2.0-alpha.2

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.
@@ -36,8 +36,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
36
36
  }>>;
37
37
  runtime: z.ZodNullable<z.ZodEnum<{
38
38
  browser: "browser";
39
- edge: "edge";
40
39
  node: "node";
40
+ edge: "edge";
41
41
  }>>;
42
42
  }, z.core.$strip>;
43
43
  batch: z.ZodDefault<z.ZodObject<{
@@ -65,7 +65,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
65
65
  buildId: string | null;
66
66
  releaseId: string | null;
67
67
  environment: "development" | "preview" | "production" | null;
68
- runtime: "browser" | "edge" | "node" | null;
68
+ runtime: "browser" | "node" | "edge" | null;
69
69
  };
70
70
  batch: {
71
71
  size: number;
@@ -89,7 +89,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
89
89
  buildId: string | null;
90
90
  releaseId: string | null;
91
91
  environment: "development" | "preview" | "production" | null;
92
- runtime: "browser" | "edge" | "node" | null;
92
+ runtime: "browser" | "node" | "edge" | null;
93
93
  };
94
94
  batch: {
95
95
  size: number;
@@ -114,7 +114,7 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
114
114
  buildId: string | null;
115
115
  releaseId: string | null;
116
116
  environment: "development" | "preview" | "production" | null;
117
- runtime: "browser" | "edge" | "node" | null;
117
+ runtime: "browser" | "node" | "edge" | null;
118
118
  };
119
119
  batch: {
120
120
  size: number;
@@ -149,8 +149,8 @@ declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
149
149
  }>>>;
150
150
  runtime: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
151
151
  browser: "browser";
152
- edge: "edge";
153
152
  node: "node";
153
+ edge: "edge";
154
154
  }>>>;
155
155
  }, z.core.$strip>>;
156
156
  batch: z.ZodOptional<z.ZodObject<{
@@ -12,10 +12,10 @@ type EnvelopeVersion = z.infer<typeof envelopeVersion>;
12
12
  * - "client": Session ID was set on the client (browser SDK)
13
13
  */
14
14
  declare const sessionSourceSchema: z.ZodOptional<z.ZodEnum<{
15
+ client: "client";
15
16
  header: "header";
16
17
  async_context: "async_context";
17
18
  fallback: "fallback";
18
- client: "client";
19
19
  }>>;
20
20
  type SessionSource = z.infer<typeof sessionSourceSchema>;
21
21
  declare const envelopeContextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -172,15 +172,15 @@ declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
172
172
  releaseId: z.ZodNullable<z.ZodString>;
173
173
  runtime: z.ZodNullable<z.ZodEnum<{
174
174
  browser: "browser";
175
- edge: "edge";
176
175
  node: "node";
176
+ edge: "edge";
177
177
  }>>;
178
178
  sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
179
179
  sessionSource: z.ZodOptional<z.ZodEnum<{
180
+ client: "client";
180
181
  header: "header";
181
182
  async_context: "async_context";
182
183
  fallback: "fallback";
183
- client: "client";
184
184
  }>>;
185
185
  uuid: z.ZodUUID;
186
186
  v: z.ZodUnion<readonly [z.ZodLiteral<0>]>;
@@ -330,15 +330,15 @@ declare const stampedEnvelopeSchema: z.ZodIntersection<z.ZodIntersection<z.ZodOb
330
330
  releaseId: z.ZodNullable<z.ZodString>;
331
331
  runtime: z.ZodNullable<z.ZodEnum<{
332
332
  browser: "browser";
333
- edge: "edge";
334
333
  node: "node";
334
+ edge: "edge";
335
335
  }>>;
336
336
  sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
337
337
  sessionSource: z.ZodOptional<z.ZodEnum<{
338
+ client: "client";
338
339
  header: "header";
339
340
  async_context: "async_context";
340
341
  fallback: "fallback";
341
- client: "client";
342
342
  }>>;
343
343
  uuid: z.ZodUUID;
344
344
  v: z.ZodUnion<readonly [z.ZodLiteral<0>]>;
@@ -9,8 +9,8 @@ declare const envSchema: z.ZodNullable<z.ZodEnum<{
9
9
  type Env = z.infer<typeof envSchema>;
10
10
  declare const runtimeSchema: z.ZodNullable<z.ZodEnum<{
11
11
  browser: "browser";
12
- edge: "edge";
13
12
  node: "node";
13
+ edge: "edge";
14
14
  }>>;
15
15
  type Runtime = z.infer<typeof runtimeSchema>;
16
16
  declare function inferRuntime(options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.2.0-alpha.2",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript & Zod types for Interfere",
6
6
  "keywords": [
@@ -106,14 +106,14 @@
106
106
  "typecheck": "tsc --noEmit --incremental"
107
107
  },
108
108
  "dependencies": {
109
- "@interfere/constants": "0.1.0-alpha.2",
109
+ "@interfere/constants": "0.2.0-alpha.2",
110
110
  "error-stack-parser-es": "^1.0.5",
111
111
  "zod": "^4.3.6"
112
112
  },
113
113
  "devDependencies": {
114
- "@interfere/typescript-config": "1.1.0-alpha.3",
115
- "@interfere/vitest-config": "1.1.0-alpha.3",
116
- "@types/node": "^24.10.13",
114
+ "@interfere/typescript-config": "1.1.0-alpha.4",
115
+ "@interfere/vitest-config": "1.1.0-alpha.4",
116
+ "@types/node": "^24.12.0",
117
117
  "@vitest/coverage-v8": "^4.0.18",
118
118
  "tsdown": "0.21.2",
119
119
  "typescript": "5.9.3",