@interfere/types 0.2.0-alpha.1 → 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.
@@ -135,9 +135,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
135
  sessionId: z.ZodNullable<z.ZodString>;
136
136
  fingerprint: z.ZodNullable<z.ZodString>;
137
137
  errorSource: z.ZodNullable<z.ZodEnum<{
138
+ edge: "edge";
138
139
  client: "client";
139
140
  server: "server";
140
- edge: "edge";
141
141
  }>>;
142
142
  buildId: z.ZodNullable<z.ZodString>;
143
143
  timestamp: z.ZodDate;
@@ -221,9 +221,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
221
221
  sessionId: z.ZodNullable<z.ZodString>;
222
222
  fingerprint: z.ZodNullable<z.ZodString>;
223
223
  errorSource: z.ZodNullable<z.ZodEnum<{
224
+ edge: "edge";
224
225
  client: "client";
225
226
  server: "server";
226
- edge: "edge";
227
227
  }>>;
228
228
  buildId: z.ZodNullable<z.ZodString>;
229
229
  timestamp: z.ZodDate;
@@ -245,9 +245,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
245
245
  sessionId: z.ZodNullable<z.ZodString>;
246
246
  fingerprint: z.ZodNullable<z.ZodString>;
247
247
  errorSource: z.ZodNullable<z.ZodEnum<{
248
+ edge: "edge";
248
249
  client: "client";
249
250
  server: "server";
250
- edge: "edge";
251
251
  }>>;
252
252
  buildId: z.ZodNullable<z.ZodString>;
253
253
  timestamp: z.ZodDate;
@@ -268,9 +268,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
268
268
  sessionId: z.ZodNullable<z.ZodString>;
269
269
  fingerprint: z.ZodNullable<z.ZodString>;
270
270
  errorSource: z.ZodNullable<z.ZodEnum<{
271
+ edge: "edge";
271
272
  client: "client";
272
273
  server: "server";
273
- edge: "edge";
274
274
  }>>;
275
275
  buildId: z.ZodNullable<z.ZodString>;
276
276
  timestamp: z.ZodDate;
@@ -290,9 +290,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
290
290
  sessionId: z.ZodNullable<z.ZodString>;
291
291
  fingerprint: z.ZodNullable<z.ZodString>;
292
292
  errorSource: z.ZodNullable<z.ZodEnum<{
293
+ edge: "edge";
293
294
  client: "client";
294
295
  server: "server";
295
- edge: "edge";
296
296
  }>>;
297
297
  buildId: z.ZodNullable<z.ZodString>;
298
298
  timestamp: z.ZodDate;
@@ -316,9 +316,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
316
316
  sessionId: z.ZodNullable<z.ZodString>;
317
317
  fingerprint: z.ZodNullable<z.ZodString>;
318
318
  errorSource: z.ZodNullable<z.ZodEnum<{
319
+ edge: "edge";
319
320
  client: "client";
320
321
  server: "server";
321
- edge: "edge";
322
322
  }>>;
323
323
  buildId: z.ZodNullable<z.ZodString>;
324
324
  timestamp: z.ZodDate;
@@ -342,9 +342,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
342
342
  sessionId: z.ZodNullable<z.ZodString>;
343
343
  fingerprint: z.ZodNullable<z.ZodString>;
344
344
  errorSource: z.ZodNullable<z.ZodEnum<{
345
+ edge: "edge";
345
346
  client: "client";
346
347
  server: "server";
347
- edge: "edge";
348
348
  }>>;
349
349
  buildId: z.ZodNullable<z.ZodString>;
350
350
  timestamp: z.ZodDate;
@@ -370,9 +370,9 @@ declare const factsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
370
370
  sessionId: z.ZodNullable<z.ZodString>;
371
371
  fingerprint: z.ZodNullable<z.ZodString>;
372
372
  errorSource: z.ZodNullable<z.ZodEnum<{
373
+ edge: "edge";
373
374
  client: "client";
374
375
  server: "server";
375
- edge: "edge";
376
376
  }>>;
377
377
  buildId: z.ZodNullable<z.ZodString>;
378
378
  timestamp: z.ZodDate;
@@ -26,22 +26,22 @@ declare const destinationProviderSchema: z.ZodEnum<{
26
26
  }>;
27
27
  type DestinationProvider = z.infer<typeof destinationProviderSchema>;
28
28
  declare const releaseSourceIdEnvKeySchema: z.ZodEnum<{
29
+ VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
30
+ GITHUB_SHA: "GITHUB_SHA";
29
31
  NEXT_PUBLIC_INTERFERE_BUILD_ID: "NEXT_PUBLIC_INTERFERE_BUILD_ID";
30
32
  INTERFERE_SOURCE_ID: "INTERFERE_SOURCE_ID";
31
33
  NEXT_BUILD_ID: "NEXT_BUILD_ID";
32
- VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
33
- GITHUB_SHA: "GITHUB_SHA";
34
34
  }>;
35
35
  type ReleaseSourceIdEnvKey = z.infer<typeof releaseSourceIdEnvKeySchema>;
36
- declare const releaseSourceIdEnvKeys: ("NEXT_PUBLIC_INTERFERE_BUILD_ID" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID" | "VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA")[];
36
+ declare const releaseSourceIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "NEXT_PUBLIC_INTERFERE_BUILD_ID" | "INTERFERE_SOURCE_ID" | "NEXT_BUILD_ID")[];
37
37
  declare const releaseDestinationIdEnvKeySchema: z.ZodEnum<{
38
38
  VERCEL_GIT_COMMIT_SHA: "VERCEL_GIT_COMMIT_SHA";
39
39
  GITHUB_SHA: "GITHUB_SHA";
40
+ VERCEL_DEPLOYMENT_ID: "VERCEL_DEPLOYMENT_ID";
40
41
  NEXT_PUBLIC_INTERFERE_RELEASE_ID: "NEXT_PUBLIC_INTERFERE_RELEASE_ID";
41
42
  INTERFERE_DESTINATION_ID: "INTERFERE_DESTINATION_ID";
42
- VERCEL_DEPLOYMENT_ID: "VERCEL_DEPLOYMENT_ID";
43
43
  }>;
44
44
  type ReleaseDestinationIdEnvKey = z.infer<typeof releaseDestinationIdEnvKeySchema>;
45
- declare const releaseDestinationIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "INTERFERE_DESTINATION_ID" | "VERCEL_DEPLOYMENT_ID")[];
45
+ declare const releaseDestinationIdEnvKeys: ("VERCEL_GIT_COMMIT_SHA" | "GITHUB_SHA" | "VERCEL_DEPLOYMENT_ID" | "NEXT_PUBLIC_INTERFERE_RELEASE_ID" | "INTERFERE_DESTINATION_ID")[];
46
46
  //#endregion
47
47
  export { DestinationProvider, ReleaseDestinationIdEnvKey, ReleaseDestinationMetadata, ReleaseSourceIdEnvKey, ReleaseSourceMetadata, SourceProvider, destinationProviderSchema, releaseDestinationIdEnvKeySchema, releaseDestinationIdEnvKeys, releaseDestinationMetadataSchema, releaseSourceIdEnvKeySchema, releaseSourceIdEnvKeys, releaseSourceMetadataSchema, sourceProviderSchema };
@@ -11,8 +11,8 @@ declare const apiBaseUrlSchema: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
11
11
  "http://localhost:3001": "http://localhost:3001";
12
12
  }>]>;
13
13
  declare const featuresSchema: z.ZodDefault<z.ZodObject<{
14
- fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
14
  errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
+ fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
16
  pageEvents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
17
  rageClick: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
18
18
  replay: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -20,8 +20,8 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
20
20
  type Features = z.infer<typeof featuresSchema>;
21
21
  declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
22
22
  features: z.ZodDefault<z.ZodObject<{
23
- fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
24
23
  errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
24
+ fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
25
25
  pageEvents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
26
  rageClick: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
27
27
  replay: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -35,9 +35,9 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
35
35
  production: "production";
36
36
  }>>;
37
37
  runtime: z.ZodNullable<z.ZodEnum<{
38
- edge: "edge";
39
38
  browser: "browser";
40
39
  node: "node";
40
+ edge: "edge";
41
41
  }>>;
42
42
  }, z.core.$strip>;
43
43
  batch: z.ZodDefault<z.ZodObject<{
@@ -55,8 +55,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
55
55
  surfaceToken: z.ZodString;
56
56
  }, z.core.$strip>]>>, z.ZodTransform<({
57
57
  features: {
58
- fingerprint?: boolean | undefined;
59
58
  errors?: boolean | undefined;
59
+ fingerprint?: boolean | undefined;
60
60
  pageEvents?: boolean | undefined;
61
61
  rageClick?: boolean | undefined;
62
62
  replay?: boolean | undefined;
@@ -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: "edge" | "browser" | "node" | null;
68
+ runtime: "browser" | "node" | "edge" | null;
69
69
  };
70
70
  batch: {
71
71
  size: number;
@@ -79,8 +79,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
79
79
  proxyUrl: string;
80
80
  }) | ({
81
81
  features: {
82
- fingerprint?: boolean | undefined;
83
82
  errors?: boolean | undefined;
83
+ fingerprint?: boolean | undefined;
84
84
  pageEvents?: boolean | undefined;
85
85
  rageClick?: boolean | undefined;
86
86
  replay?: boolean | undefined;
@@ -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: "edge" | "browser" | "node" | null;
92
+ runtime: "browser" | "node" | "edge" | null;
93
93
  };
94
94
  batch: {
95
95
  size: number;
@@ -104,8 +104,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
104
104
  surfaceToken: string;
105
105
  }), {
106
106
  features: {
107
- fingerprint?: boolean | undefined;
108
107
  errors?: boolean | undefined;
108
+ fingerprint?: boolean | undefined;
109
109
  pageEvents?: boolean | undefined;
110
110
  rageClick?: boolean | undefined;
111
111
  replay?: boolean | undefined;
@@ -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: "edge" | "browser" | "node" | null;
117
+ runtime: "browser" | "node" | "edge" | null;
118
118
  };
119
119
  batch: {
120
120
  size: number;
@@ -133,8 +133,8 @@ declare const configSchema: z.ZodPipe<z.ZodIntersection<z.ZodObject<{
133
133
  type Config = z.output<typeof configSchema>;
134
134
  declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
135
135
  features: z.ZodOptional<z.ZodDefault<z.ZodObject<{
136
- fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
137
136
  errors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
137
+ fingerprint: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
138
138
  pageEvents: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
139
139
  rageClick: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
140
140
  replay: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -148,9 +148,9 @@ declare const configInputSchema: z.ZodIntersection<z.ZodObject<{
148
148
  production: "production";
149
149
  }>>>;
150
150
  runtime: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
151
- edge: "edge";
152
151
  browser: "browser";
153
152
  node: "node";
153
+ edge: "edge";
154
154
  }>>>;
155
155
  }, z.core.$strip>>;
156
156
  batch: z.ZodOptional<z.ZodObject<{
@@ -171,9 +171,9 @@ declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
171
171
  }>>;
172
172
  releaseId: z.ZodNullable<z.ZodString>;
173
173
  runtime: z.ZodNullable<z.ZodEnum<{
174
- edge: "edge";
175
174
  browser: "browser";
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<{
@@ -329,9 +329,9 @@ declare const stampedEnvelopeSchema: z.ZodIntersection<z.ZodIntersection<z.ZodOb
329
329
  }>>;
330
330
  releaseId: z.ZodNullable<z.ZodString>;
331
331
  runtime: z.ZodNullable<z.ZodEnum<{
332
- edge: "edge";
333
332
  browser: "browser";
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<{
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
 
3
3
  //#region src/sdk/plugins/payload/errors.d.ts
4
4
  declare const errorSourceSchema: z.ZodEnum<{
5
+ edge: "edge";
5
6
  client: "client";
6
7
  server: "server";
7
- edge: "edge";
8
8
  }>;
9
9
  type ErrorSource = z.infer<typeof errorSourceSchema>;
10
10
  declare const errorMechanismSchema: z.ZodObject<{
@@ -8,9 +8,9 @@ declare const envSchema: z.ZodNullable<z.ZodEnum<{
8
8
  }>>;
9
9
  type Env = z.infer<typeof envSchema>;
10
10
  declare const runtimeSchema: z.ZodNullable<z.ZodEnum<{
11
- edge: "edge";
12
11
  browser: "browser";
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.2.0-alpha.1",
3
+ "version": "0.2.0-alpha.2",
4
4
  "license": "MIT",
5
5
  "description": "TypeScript & Zod types for Interfere",
6
6
  "keywords": [
@@ -106,13 +106,13 @@
106
106
  "typecheck": "tsc --noEmit --incremental"
107
107
  },
108
108
  "dependencies": {
109
- "@interfere/constants": "0.2.0-alpha.1",
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",
114
+ "@interfere/typescript-config": "1.1.0-alpha.4",
115
+ "@interfere/vitest-config": "1.1.0-alpha.4",
116
116
  "@types/node": "^24.12.0",
117
117
  "@vitest/coverage-v8": "^4.0.18",
118
118
  "tsdown": "0.21.2",